query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
sequencelengths
3
101
negative_scores
sequencelengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Parameterized constructor. When extending this class the derived class must invoke one of this classes constructors for proper initialization.
public MovementDAO(String drivername, String url, String user, String password) { super(drivername, url, user, password); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BaseParameters(){\r\n\t}", "public Constructor(){\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "public ParameterizedInstantiateFactory() {\r\n super();\r\n }", "public Parameters() {\n\t}", "protected abstract void construct();", "public Generic(){\n\t\tthis(null);\n\t}", "private Instantiation(){}", "private Params()\n {\n }", "private void __sep__Constructors__() {}", "public CustomEntitiesTaskParameters() {}", "public tn(String paramString, ho paramho)\r\n/* 12: */ {\r\n/* 13:11 */ super(paramString, paramho);\r\n/* 14: */ }", "public Identity()\n {\n super( Fields.ARGS );\n }", "public CacheFIFO(int paramInt)\r\n/* 11: */ {\r\n/* 12: 84 */ super(paramInt);\r\n/* 13: */ }", "defaultConstructor(){}", "ConstuctorOverloading(){\n\t\tSystem.out.println(\"I am non=argument constructor\");\n\t}", "protected AbstractReadablePacket() {\n this.constructor = createConstructor();\n }", "protected ParameterList(){\n //title = t;\n //cellWorld = cw;\n }", "public ModuleParams()\n\t{\n\t}", "@Override\n\tprotected void initParams() {\n\t\t\n\t}", "public AbstractClassExtend() {\n\t\tsuper(\"hello\");\n\t}", "public MapperBase() {\r\n }", "MyException(String str)\n {\n //parametrize constructor\n super(str);\n }", "@Override public void init()\n\t\t{\n\t\t}", "public Child() {\n\t\tsuper(20);\n\t}", "public LightParameter()\r\n\t{\r\n\t}", "protected ChildType() {/* intentionally empty block */}", "public Parameterized() {\n setParameters(null);\n }", "public AI(String n) {//constructor for super class\n super(n);\n }", "public ConStructorInheritance(){\r\n\t\t\r\n\t\tSystem.out.println(\"Parent Class Constructor\");\r\n\t\t\r\n\t\t\r\n\t}", "protected BaseFeat()\n {\n super(TYPE);\n }", "public ListParameter()\r\n\t{\r\n\t}", "public MLetter(Parameters parametersObj) {\r\n\t\tsuper(parametersObj);\r\n\t}", "public SuperClass(int x)\r\n {\r\n _x = x;\r\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public void init() {\r\n\t\t// to override\r\n\t}", "protected Animal() {\t\r\n\t}", "@Test\n\tpublic void testParameterizedConstructor() {\n\t\tQuestionsEntity questions=new QuestionsEntity(1,\"SOX\",\"Have all changes has been approved\",\"Yes\");\n\t assertEquals(\"Yes\",questions.getResponse());\n\t}", "public mapper3c() { super(); }", "public StudentPlayer() {\n super(\"260719721\");\n }", "public StudentPlayer() {\r\n super(\"260767897\");\r\n }", "public void init(Object[] parameters) {\n\n\t}", "private Converter()\n\t{\n\t\tsuper();\n\t}", "public Person(){\r\n\t\tsuper();\r\n\t}", "public bsm(PlayerStat paramtq)\r\n/* 7: */ {\r\n/* 8: 9 */ super(paramtq.e);\r\n/* 9:10 */ this.j = paramtq;\r\n/* 10: */ }", "public Kitten(String s, int a)\n {\n // initialise instance variables\n super(s, a);\n }", "@Override // opcional\n public void init(){\n\n }", "protected AbstractEvent(long t, EventEngine eng, String p) {\n // this sets the public final variables: time and engine\n time = t;\n engine = eng;\n parameters = p;\n }", "@Override\n protected void init() {\n }", "protected CoreHttpClientBase(final Object tfsConnection) {\r\n super(tfsConnection);\r\n }", "private void addConstructors() {\n\t\tthis.rootBindingClass.getConstructor().body.line(\"super({}.class);\\n\", this.name.getTypeWithoutGenerics());\n\t\tGMethod constructor = this.rootBindingClass.getConstructor(this.name.get() + \" value\");\n\t\tconstructor.body.line(\"super({}.class);\", this.name.getTypeWithoutGenerics());\n\t\tconstructor.body.line(\"this.set(value);\");\n\t}", "public AbstractClass() { //Sobrecarga del constructor AbstractClass ya que se puede inicializar de 2 maneras\n }", "public SalesPerson(String firstName, String lastName, String ppsNumber){\r\n //pulls the constructor with parameters from the superclass SalesEmployee\r\n super(firstName, lastName, ppsNumber);\r\n }", "public StudentPlayer() {\n super(\"260622641\");\n }", "public void constructor() {\n setEdibleAnimals();\n }", "public RepoSQL() { // constructor implicit\r\n\t\t super();\r\n\t }", "public PowerMethodParameter() {\r\n\t\t\r\n\t\t//constructor fara parametru, utilizat in cazul in care utilizatorul nu introduce\r\n\t\t//fisierul sursa si nici fiesierul destinatie ca parametrii in linia de comanda\r\n\t\tSystem.out.println(\"****The constructor without parameters PowerMethodParameter has been called****\");\r\n\t\tSystem.out.println(\"You did not specify the input file and the output file\");\r\n\t\t\r\n\t}", "Employee(int index, int jindex)\n \t{\n \t\t// calling base class constructor\n \t\tsuper(index,jindex);\n \t\t\n \t\tSystem.out.println(\"[EMP] : inside parameterised constructor (super method)\");\n \t\t\n \t\ti_Val = index;\n \t\tj_Val = jindex;\n \t}", "@Override\n\t\tpublic void init() {\n\t\t}", "public BaseElement() {\n }", "@Override\n public void init() {}", "private InstantiateTransformer(Class[] paramTypes, Object[] args) {\n super();\n if (((paramTypes == null) && (args != null))\n || ((paramTypes != null) && (args == null))\n || ((paramTypes != null) && (args != null) && (paramTypes.length != args.length))) {\n throw new IllegalArgumentException(\"InstantiateTransformer: The parameter types must match the arguments\");\n }\n if ((paramTypes == null) && (args == null)) {\n iParamTypes = null;\n iArgs = null;\n } else {\n iParamTypes = (Class[]) paramTypes.clone();\n iArgs = (Object[]) args.clone();\n }\n }", "public SqlContainerCreateUpdateParameters() {\n }", "public AbstractT153()\n {\n }", "public PSRelation()\n {\n }", "public Widget() {\n /*\n * THIS - You can use the \"this\" keyword as a method too, which will call the appropriate\n * constructor. This lets you reuse the initialization code you have written in a different\n * constructor.\n */\n this(\"Widget\");\n }", "void DefaultConstructor(){}", "public ParamJson() {\n\t\n\t}", "public Tbdtokhaihq3() {\n super();\n }", "public Student() {\n//\t\tname = \"\";\n//\t\tage = 0;\n\t\t\n\t\t\n\t\t//call constructors inside of other constructors\n\t\tthis(999,0);\n\t}", "public StudentPlayer() {\n super(\"260740998\");\n }", "@Override\r\n\tpublic void init() {}", "public MParameterSystem() {\n\t\tsuper();\n\t}", "public GXWebObjectBase(HttpContext httpContext)\n\t{\n\t\tsuper(httpContext);\n\t\tcastHttpContext();\n\t}", "private DBParameter() {\n }", "protected IPCGCallDetailCreator()\r\n {\r\n // empty\r\n }", "public PotionEffect(int paramInt1, int paramInt2, int paramInt3)\r\n/* 21: */ {\r\n/* 22: 32 */ this(paramInt1, paramInt2, paramInt3, false, true);\r\n/* 23: */ }", "_ExtendsNotAbstract() {\n super(\"s\"); // needs this if not default ctor;\n }", "public ModuleParams() {\n }", "@Override\n public void construct() throws IOException {\n \n }", "protected TreeChild () {\n }", "public CommonsFactoryImpl() {\n\t\tsuper();\n\t}", "@Override\n public void init() {\n }", "public Bicycle() {\n // You can also call another constructor:\n // this(1, 50, 5, \"Bontrager\");\n System.out.println(\"Bicycle.Bicycle- no arguments\");\n gear = 1;\n cadence = 50;\n speed = 5;\n name = \"Bontrager\";\n }", "@Override\n public void init() {\n\n super.init();\n\n }", "public Tbdcongvan36() {\n super();\n }", "public AccessSqlParser ()\n\t{\n\t}", "public PennyFarthing(int startCadence, int startSpeed) {\n // Call the parent constructor with super\n super(startCadence, startSpeed, 0, \"PennyFarthing\");\n System.out.println(\"PennyFarthing.PennyFarthing- constructor with arguments\");\n }", "public SocketParams() {\n init();\n }", "public AbstractT602()\n {\n }", "public TParametrosVOImpl() {\r\n }", "public aed(World paramaqu)\r\n/* 9: */ {\r\n/* 10: 24 */ super(paramaqu);\r\n/* 11: */ }", "protected DenseMatrix()\n\t{\n\t}", "protected AbstractEvent(long t, EventEngine eng) {\n // this sets the public final variables: time and engine\n time = t;\n engine = eng;\n parameters = null;\n }", "protected Product()\n\t{\n\t}", "protected StreamParser()\n {\n }", "Base1()\r\n\t{\r\n\t\tSystem.out.println(\"Base Constructor Called\");\r\n\t}", "private Parameter(int key, String name, String value){\n this.key = key;\n this.name = name;\n this.value = value;\n }", "public PipelineImpl() {\n }", "private LocalParameters() {\n\n\t}", "public Dog ()\n {\n super (\"Dog\", \"Hi! My name is Snoop Dawg\");\n this.x = \"A bone\";\n /*\n * This dog has many features to it\n * Do not provoke it or else it will bite!\n * Otherwise, It's a nice dog so have fun!\n */\n \n \n }" ]
[ "0.73017305", "0.7107994", "0.70598936", "0.6703999", "0.6669708", "0.659633", "0.6433473", "0.6425707", "0.6330248", "0.6329266", "0.6315734", "0.6314161", "0.6260822", "0.6233059", "0.6227793", "0.6203737", "0.6197841", "0.61917806", "0.6187595", "0.6186265", "0.61787593", "0.6151493", "0.61484855", "0.61143047", "0.6102606", "0.61011446", "0.609223", "0.6089875", "0.60892636", "0.60794234", "0.60764045", "0.6074446", "0.6068046", "0.6057857", "0.60480094", "0.6044947", "0.6033137", "0.6033133", "0.602655", "0.6021612", "0.6019211", "0.60120916", "0.60054046", "0.6004718", "0.5997236", "0.5991408", "0.59912544", "0.5988716", "0.5987988", "0.5985795", "0.59826916", "0.5980167", "0.597943", "0.59753484", "0.5974855", "0.5969959", "0.59667385", "0.5960946", "0.5955686", "0.59501886", "0.59485835", "0.5938798", "0.59380394", "0.5937789", "0.5937327", "0.5934119", "0.5925114", "0.5924422", "0.59206575", "0.5919399", "0.5919382", "0.5909879", "0.59048414", "0.59005386", "0.5898827", "0.5894936", "0.589412", "0.5891356", "0.58899003", "0.5888374", "0.5888287", "0.58869964", "0.5881933", "0.58785206", "0.5878372", "0.58768344", "0.5876575", "0.5873711", "0.5872775", "0.5870662", "0.5870223", "0.5863892", "0.5863853", "0.5858797", "0.584724", "0.5842665", "0.58381003", "0.5837017", "0.5835542", "0.58334947", "0.58151424" ]
0.0
-1
/ BEHAVIOR Called by create() to insert entity state into the data store for a new entity.
@Override public void dbInsert(MovementModel model) throws DAOSysException { dbInsert(model, MovementDAO.INSERT_STM); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@PostConstruct\n protected void initNewEntity() {\n setNewEntity(getService().create());\n }", "@Override\n public E insert(E entity) {\n LOG.info(\"[insert] Start: entity = \" + entity.getClass().getSimpleName());\n entityManager.persist(entity);\n LOG.info(\"[insert] End\");\n return entity;\n }", "@Override\n\tpublic Map<String, Object> create(StoreBase entity) {\n\t\treturn null;\n\t}", "public void createTaskStateData() throws DataLayerException\r\n\t{\r\n\t\t// ---------------------------------------------------------------\r\n\t\t// Task States\r\n\t\t// ---------------------------------------------------------------\r\n\t\tState[] values = TaskState.State.values();\r\n\t\tfor (TaskState.State state : values)\r\n\t\t{\r\n\t\t\tTaskState taskState = createHelper.createTaskState(0);\r\n\t\t\ttaskState.setState(state);\r\n\t\t\ttaskStateDao.save(taskState);\r\n\r\n\t\t\tLOG.info(taskState.toString());\r\n\t\t}\r\n\t}", "Entity createEntity();", "@Override\r\n public void createNewEntity(String entityName) {\n\r\n }", "@Override\n protected void createEntity() {\n ProjectStatus status = createProjectStatus(5);\n setEntity(status);\n }", "public UsStatePk insert(UsState dto) throws UsStateDaoException;", "void create(E entity);", "public void createBidStateData() throws DataLayerException\r\n\t{\r\n\t\t// ---------------------------------------------------------------\r\n\t\t// Task States\r\n\t\t// ---------------------------------------------------------------\r\n\t\tfor (BidState.State state : BidState.State.values())\r\n\t\t{\r\n\t\t\tBidState bidState = createHelper.createBidState(0);\r\n\t\t\tbidState.setState(state);\r\n\t\t\tbidStateDao.save(bidState);\r\n\t\t}\r\n\t}", "public T create(T entity) {\n\t \tgetEntityManager().getTransaction().begin();\n\t getEntityManager().persist(entity);\n\t getEntityManager().getTransaction().commit();\n\t getEntityManager().close();\n\t return entity;\n\t }", "protected abstract ENTITY createEntity();", "@Override\n\tpublic ImageEntity insert(Object entity) {\n\t\tDatabaseContext.insertRecord(entity);\n\t\treturn (ImageEntity) entity;\n\t}", "@Override\n\tpublic void insert(Factory factory) {\n\t\tfactory.setId(UUID.randomUUID().toString());\n\t\tfactory.setState(\"1\");\n\t\tmapper.insert(factory);\n\t}", "void create(T entity);", "public void create(GameSet entity) {\r\n\t\tgetDatabase().beginTransaction();\r\n\t\ttry {\r\n\t\t\tString sql = \"insert into GAME_SET (\" + GameSet.DbField.ID + \",\" + GameSet.DbField.GAME_ID + \",\" + GameSet.DbField.NAME + \",\" + GameSet.DbField.IMAGE\r\n\t\t\t\t\t+ \") values (?,?,?,?)\";\r\n\t\t\tObject[] params = new Object[4];\r\n\t\t\tparams[0] = entity.getId();\r\n\t\t\tparams[1] = entity.getGame().getId();\r\n\t\t\tparams[2] = entity.getName();\r\n\t\t\tparams[3] = entity.getImageName();\r\n\r\n\t\t\texecSQL(sql, params);\r\n\r\n\t\t\tgetDatabase().setTransactionSuccessful();\r\n\t\t\tentity.setState(DbState.LOADED);\r\n\r\n\t\t} finally {\r\n\t\t\tgetDatabase().endTransaction();\r\n\t\t}\r\n\t}", "E create(E entity);", "E create(E entity);", "@Override\n public int addState(String stateName) {\n int status=0;\n StateTb s=new StateTb();\n s.setStateName(stateName);\n s.setIsActive(1);\n em.persist(s);\n status=1;\n return status;\n }", "private void insertState(State state) {\n SQLiteDatabase db = dbHelper.getWritableDatabase();\n state.print();\n cupboard().withDatabase(db).put(state);\n IDToday++;\n aCache.put(Const.Cache_Lastime_Timepoint, state.getTime_point());\n }", "public void insert() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.save(this);\n\t\tsession.getTransaction().commit();\n\t}", "protected abstract EntityBase createEntity() throws Exception;", "public void createNewObject(Representation entity) throws ResourceException {\r\n\t\tT entry = createObjectFromHeaders(null, entity);\r\n\t\texecuteUpdate(entity, entry, createUpdateObject(entry));\r\n\r\n\t}", "@Override\n @LogMethod\n public T create(T entity) throws InventoryException {\n \tInventoryHelper.checkNull(entity, \"entity\");\n repository.persist(entity);\n return repository.getByKey(entity.getId());\n }", "void create(T entity) throws Exception;", "@Override\n public void create(T entity) throws SQLException {\n\n this.dao.create(entity);\n\n }", "public Entity newEntity() { return newMyEntity(); }", "public Entity newEntity() { return newMyEntity(); }", "@Override\n\tpublic void entityAdded(Entity entity)\n\t{\n\t\t\n\t}", "@Override\n\tpublic int insert(ElectricalCheck entity) throws Exception {\n\t\treturn electricalCheckMapper.insert(entity);\n\t}", "@Override\n\tpublic T create(T entity) {\n\t\t//TODO al anotar un metodo como transaccional spring de encarga de la transaccion por lo que no hay que \n\t\t//abrir la transaccion ni hacer commit, se encarga spring. Es más si lo intentas da un error, no se \n\t\t//pueden crear transacciones en una transaccion conpartida\n\t\t//Not allowed to create transaction on shared EntityManager - use Spring transactions\n\t\t//em.getTransaction().begin();\n\t\t\n\t\tSystem.out.println(em.contains(entity));\n\t\tem.persist(entity);\n\t\tSystem.out.println(em.contains(entity));\n\t\t//em.getTransaction().commit();\n\t\t\n\t\t//Session session = (Session) em.getDelegate();\n\t\t//Transaction tx = session.beginTransaction();\n\t\t//session.saveOrUpdate(entity);\n\t\t//session.flush();\n\t\t//tx.commit();\n\t\treturn entity;\n\t}", "@Override\n public int insert(StorePickStatus arg0) {\n return 0;\n }", "@Override\n\tpublic void persist(Recipe entity) {\n\t\t\n\t}", "@Override\n\tpublic void persist(Object entity) {\n\t\t\n\t}", "@Override\n\tpublic void Insert(PersonelContract entity) {\n\n\t}", "public void insert(EmployeeEntity entity){\n EmployeeDB.getInstance().insertOrUpdate(entity);\n }", "@Override\r\n\tpublic void create(T t) {\n\t\tsuper.getSessionFactory().getCurrentSession().save(t);\r\n\t\tsuper.getSessionFactory().getCurrentSession().flush();\r\n\t}", "public abstract boolean create(T entity) throws SQLException;", "@Override\n\tprotected CoreEntity createNewEntity() {\n\t\treturn null;\n\t}", "@Override\n\tpublic void add(Entity entity) throws Exception {\n\t\tsuper.add(entity);\n\t\tProduct prod = (Product) entity;\n\n\t\tSQLiteStatement st = db\n\t\t\t\t.prepare(\"INSERT INTO products(sessionID, name, priceMin, priceMax, quantity, category)\"\n\t\t\t\t\t\t+\"VALUES (?, ?, ?, ?, ?, ?)\");\n\t\tst.bind(1, sessionId).bind(2, prod.getName()).bind(3, prod.getPriceMin())\n\t\t\t\t.bind(4, prod.getPriceMin()).bind(5, prod.getQuantity())\n\t\t\t\t.bind(6, prod.getCategory());\n\t\tst.step();\n\t\ttotalQuantity += prod.quantity;\n\t\tif (!categoryList.containsKey(prod.getCategory())) {\n\t\t\tcategoryList.put(prod.getCategory(), new ArrayList<Product>());\n\t\t}\n\t\tcategoryList.get(prod.getCategory()).add(prod);\n\t\tif (availableProducts.get(entity.getName())==null) {\n\t\t\tavailableProducts.put(entity.getName(), \" \");\n\t\t}\n\t}", "public static void doStuff(){\n\t\tDatastoreService datastore = DatastoreServiceFactory.getDatastoreService();\n\n\t\t//As we omitted the argument, this will just create a new numeric ID\n\t\tEntity employee = new Entity(\"Employee\");\n\n\t\temployee.setProperty(\"firstName\", \"Patrick\");\n\t\temployee.setProperty(\"lastName\", \"MacDowell\");\n\n\t\tDate hireDate = new Date();\n\t\temployee.setProperty(\"hireDate\", hireDate);\n\n\t\temployee.setProperty(\"attendedHrTraining\", true);\n\n\t\tdatastore.put(employee);\n\t}", "@Override\n\tpublic Image creer(Image entity) throws InvalideGstoreException {\n\t\treturn imageRepository.save(entity);\n\t}", "public Long insert(State record) {\n Object newKey = getSqlMapClientTemplate().insert(\"lgk_state.abatorgenerated_insert\", record);\n return (Long) newKey;\n }", "protected abstract T createNewEntry(PersistentEntity persistentEntity);", "ID create(T entity);", "private void createTestData() {\n StoreEntity store = new StoreEntity();\n store.setStoreName(DEFAULT_STORE_NAME);\n store.setPecEmail(DEFAULT_PEC);\n store.setPhone(DEFAULT_PHONE);\n store.setImagePath(DEFAULT_IMAGE_PATH);\n store.setDefaultPassCode(STORE_DEFAULT_PASS_CODE);\n store.setStoreCap(DEFAULT_STORE_CAP);\n store.setCustomersInside(DEFAULT_CUSTOMERS_INSIDE);\n store.setAddress(new AddressEntity());\n\n // Create users for store.\n UserEntity manager = new UserEntity();\n manager.setUsercode(USER_CODE_MANAGER);\n manager.setRole(UserRole.MANAGER);\n\n UserEntity employee = new UserEntity();\n employee.setUsercode(USER_CODE_EMPLOYEE);\n employee.setRole(UserRole.EMPLOYEE);\n\n store.addUser(manager);\n store.addUser(employee);\n\n // Create a new ticket.\n TicketEntity ticket = new TicketEntity();\n ticket.setPassCode(INIT_PASS_CODE);\n ticket.setCustomerId(INIT_CUSTOMER_ID);\n ticket.setDate(new Date(new java.util.Date().getTime()));\n\n ticket.setArrivalTime(new Time(new java.util.Date().getTime()));\n ticket.setPassStatus(PassStatus.VALID);\n ticket.setQueueNumber(INIT_TICKET_QUEUE_NUMBER);\n store.addTicket(ticket);\n\n // Persist data.\n em.getTransaction().begin();\n\n em.persist(store);\n em.flush();\n\n // Saving ID generated from SQL after the persist.\n LAST_TICKET_ID = ticket.getTicketId();\n LAST_STORE_ID = store.getStoreId();\n LAST_MANAGER_ID = manager.getUserId();\n LAST_EMPLOYEE_ID = employee.getUserId();\n\n em.getTransaction().commit();\n }", "@Override\r\n public void saveOrUpdateEntity(String entityName, DataStoreEntity dataStoreEntity) {\n\r\n }", "@Transactional\n public void create(TaskInstanceEntity taskInstanceEntity) {\n entityManagerProvider.get().persist(taskInstanceEntity);\n }", "@Override\n\t@Transactional\n\tpublic T create(T entity) {\n\t\tif (entity == null) {\n\t\t\treturn null;\n\t\t}\n\t\thibernateTemplate.save(entity);\n\t\treturn entity;\n\t}", "@Override\n\tpublic void insert() {\n\t\tSystem.out.println(\"insert coin\");\n\t\tmachine.setState(machine.getHascoin());\n\t}", "public void store(final CastorConnection conn, final Identity identity,\r\n final ProposedEntity newentity,\r\n final ProposedEntity oldentity)\r\n throws PersistenceException {\n if (identity.size() != _ids.length) {\r\n throw new PersistenceException(\"Size of identity field mismatched!\");\r\n }\r\n\r\n _storeStatement.executeStatement(conn, identity, newentity, oldentity);\r\n\r\n // Must store values of whole extends hierarchy\r\n if (_extends != null) {\r\n _extends.store(conn, identity, newentity, oldentity);\r\n }\r\n }", "T insert(T entity) throws Exception;", "@Override\n\tpublic void initEntity() {\n\n\t}", "@Override\n public int save(T entity) {\n return mapper.insert(entity);\n }", "WriteRequest insert(PiEntity entity);", "T createEntity();", "public TIndiaState createTIndiaState(final TIndiaState tIndiaState) {\n\t\tLOGGER.info(\"=========== Create TIndiaState ===========\");\n//\t\treturn gisDAO.store(tIndiaState);\n\t\treturn null;\n\t}", "@Override\n\tpublic Entity createEntity() {\n\t\tEntity entity = new Entity(LINKS_ENTITY_KIND);\n\t\tentity.setProperty(id_property, ID);\n\t\tentity.setProperty(url_property, url);\n\t\tentity.setProperty(CategoryID_property, CategoryID);\n\t\tentity.setProperty(note_property, note);\n\t\tentity.setProperty(createdOn_property, createdOn);\n\t\tentity.setProperty(updatedOn_property, updatedOn);\t\t\t\n\t\treturn entity;\n\t}", "@ApiModelProperty(value = \"The object's current state.\")\n public CreationEntityState getState() {\n return state;\n }", "protected void onAdd( E entity, int index )\r\n\t{\r\n\t\t\r\n\t}", "public void saveState() {\n table.saveState(store);\n }", "@Override\n public void createRecipe(RecipeEntity recipeEntity)\n {\n this.save(recipeEntity);\n }", "@Override\n\tpublic void insert(UploadDF entity) {\n\t\tSession session = factory.openSession();\n\t\ttry{\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(entity);\n\t\t\tsession.getTransaction().commit();\n\t\t}catch(HibernateException exception){\n\t\t\tsession.getTransaction().rollback();\n\t\t\tthrow exception;\n\t\t}finally{\n\t\t\tsession.close();\n\t\t}\n\t}", "public void saveState() \n\t{\n\t\tsuper.saveState();\n\t}", "public void doCreateItem() {\r\n\t\tlogger.info(\"Se procede a crear el book \" + newItem.getDescription());\r\n\t\tBook entity = newItem.getEntity();\r\n\t\tentity.setUser(Global.activeUser());\r\n\t\tentity.setBookBalance(BigDecimal.ZERO);\r\n\t\tentity.setTotalBudget(BigDecimal.ZERO);\r\n\t\tentity.setTotalIncome(BigDecimal.ZERO);\r\n\t\tentity.setTotalExpenses(BigDecimal.ZERO);\r\n\t\tentity = bookService.create(entity);\r\n\r\n\t\t// Actualizar el mapa de books\r\n\t\tGlobalBook.instance().put(new BookData(entity));\r\n\r\n\t\tlogger.info(\"Se ha creado el book \" + newItem.getDescription());\r\n\t\tnewItem = new BookData(new Book());\r\n\t\tFacesContext.getCurrentInstance().addMessage(null,\r\n\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_INFO, \"Libro creado\", \"Libro creado correctamente\"));\r\n\t}", "public void saveState() {\n\t\tsuper.saveState();\n\t}", "@Override\r\n public void postBegin() {\r\n Iterable<EntityRef> scenario = entityManager.getEntitiesWith(ScenarioComponent.class); // Checks for existing Scenario\r\n\r\n if (!scenario.iterator().hasNext()) { //No scenario exists yet\r\n scenarioEntity = entityManager.create(assetManager.getAsset(\"scenario:scenarioEntity\", Prefab.class).get());\r\n }\r\n else {\r\n scenarioEntity = scenario.iterator().next();\r\n }\r\n }", "public ClientEntity newEntity() {\r\n if (entityType == null) {\r\n entityType = getEntityType(entitySet);\r\n }\r\n return odataClient.getObjectFactory().newEntity(new FullQualifiedName(NAMESPAVE, entityType));\r\n }", "@PostPersist\n\t@PostUpdate\n\tprivate void storeChangesToDw() {\n\t}", "E create(E entity, RequestContext context)\n throws TechnicalException, ConflictException;", "@Override\n public void persist() {\n }", "@Override\n public void beforeShowNewEntity()\n {\n entity = new Aluno();\n entity.setDataNascimento(new GregorianCalendar());\n String senha = CriptografiaLogic.encriptar(\"123\");\n entity.setSenha(senha);\n }", "@Override\r\n\tpublic void persist() {\n\t}", "@Override\n public void init(Entity entity) {\n entity.add(AI_DATA, new BuildingSpawnerStratAIData());\n }", "@Override\n\tpublic int insert(TestPoEntity entity) {\n\t\treturn 0;\n\t}", "protected void entityInit() {}", "ActionResult onInsert(HopperBlockEntity hopperBlockEntity, BlockPos insertPosition);", "final protected int getEntityState()\n {\n return state;\n }", "public QuestionEntity createQuestion(QuestionEntity questionEntity) {\n entityManager.persist(questionEntity);\n return questionEntity;\n }", "public void save(E entity){\n transaction.begin();\n entityManager.persist(entity);\n transaction.commit();\n }", "public abstract boolean create(T entity) throws ServiceException;", "void create(Student entity);", "public void commitEntity();", "public void create(DataSet dataSet) throws PreexistingEntityException, Exception {\n EntityManager em = null;\n try {\n em = getEntityManager();\n em.getTransaction().begin();\n em.persist(dataSet);\n em.getTransaction().commit();\n } catch (Exception ex) {\n if (findDataSet(dataSet.getWid()) != null) {\n throw new PreexistingEntityException(\"DataSet \" + dataSet + \" already exists.\", ex);\n }\n throw ex;\n } finally {\n if (em != null) {\n em.close();\n }\n }\n }", "public void insert(AsxDataVO entity) {\n\t\tmongoTemplate.insert(entity); \r\n\t}", "@Override\n public EntityResponse createEntity(String entitySetName, OEntity entity) {\n return super.createEntity(entitySetName, entity);\n }", "public void spawnEntity(Entity entity)\n\t{\n\t\tif(!entity.isLoadedResources() && !entity.loadResources())\n\t\t{\n\t\t\t//Don't add entity if an error occurs\n\t\t\treturn;\n\t\t}\n\t\tthis.newEntityBuffer.add(entity);\n\t\tLoggingHandler.logger.log(Level.FINE, \"Added entity to spawn queue: \" + entity);\n\t}", "@Override\n public EntityResponse createEntity(String entitySetName, OEntityKey entityKey, String navProp, OEntity entity) {\n return super.createEntity(entitySetName, entityKey, navProp, entity);\n }", "private boolean createInstance( View view, final EntityInstanceImpl ei )\n {\n final EntityDef entityDef = ei.getEntityDef();\n\n // Try to set the FKs for this instance. It will fail (return false) if one the source EI\n // for one of the FKs hasn't been created yet. This means it doesn't have a key.\n if ( ! setForeignKeys( ei ) )\n return false;\n\n // If we get here than all the FK's were copied successfully and we can create this instance.\n // We'll retrieve the generated key from the DB after the row has been inserted.\n try\n {\n if ( entityDef.getDbCreatedTimestamp() != null )\n {\n AttributeInstanceImpl timestamp = ei.getAttribute( entityDef.getDbCreatedTimestamp() );\n if ( timestamp.isNull() )\n {\n ZonedDateTime now = ZonedDateTime.now();\n timestamp.setValue( now );\n\n if ( entityDef.getDbUpdatedTimestamp() != null )\n ei.getAttribute( entityDef.getDbUpdatedTimestamp() ).setValue( now );\n }\n }\n\n // We need to handle multiple entities being created.\n List<EntityInstance> list = new ArrayList<EntityInstance>();\n list.add( ei );\n dbHandler.insertEntity( view, list );\n\n AttributeDef genkey = entityDef.getGenKey();\n if ( genkey != null )\n {\n List<Object> keys = dbHandler.getKeysGeneratedByDb();\n if ( keys.size() != 1 )\n throw new ZeidonException(\"Unexpected number of keys found: %s\", keys );\n\n AttributeDef keyAttrib = entityDef.getKeys().get( 0 );\n ei.getAttribute( keyAttrib ).setInternalValue( keys.get( 0 ), false );\n }\n\n // Indicate that--for now--we won't need to update later because of a FK.\n ei.dbhForeignKey = false;\n\n // Set the dbhCreated flag for ei and all its linked instances. This\n // will prevent us from trying to insert it again.\n for ( EntityInstanceImpl linked : ei.getAllLinkedInstances() )\n {\n linked.dbhCreated = true;\n\n // If the linked instance is flagged as created then we need\n // to set its included flag on so that the *relationship*\n // is still created.\n if ( linked.isCreated() )\n linked.dbhNeedsInclude = true;\n }\n }\n catch ( Exception e )\n {\n throw ZeidonException.wrapException( e ).prependEntityInstance( ei );\n }\n\n return true;\n }", "@Override\n @Transactional(propagation = Propagation.REQUIRED)\n public void insertNewEntity(BaseEntity baseEntity) throws UnableToInsertException {\n try{\n // transaction = openTransaction(sessionFactory.getCurrentSession());\n entityDAO.insert(baseEntity);\n // transaction.commit();\n }\n catch(Exception ex){\n /* if(transaction != null)\n transaction.rollback();*/\n throw new UnableToInsertException(ex.getMessage());\n }\n }", "private void insertData() {\n for (int i = 0; i < 3; i++) {\n PodamFactory factory = new PodamFactoryImpl();\n VisitaEntity entity = factory.manufacturePojo(VisitaEntity.class);\n em.persist(entity);\n data.add(entity);\n }\n }", "int insert(T entity);", "private static void saveEntity(TaskViewModel node, StorableFactory<Task> taskFactory) throws DatabaseException {\n Task dto = Infrastructure.getInstance().getTaskMapper().toDto(node);\n taskFactory.create(dto);\n // after creation in db id will be set\n node.setId(dto.getId());\n for (TaskViewModel child : node.getChildren()) {\n saveEntity(child, taskFactory);\n }\n }", "public static StoreMap createEntity(EntityManager em) {\n StoreMap storeMap = new StoreMap()\n .validityStart(DEFAULT_VALIDITY_START)\n .validityEnd(DEFAULT_VALIDITY_END)\n .url(DEFAULT_URL)\n .wallMap(DEFAULT_WALL_MAP)\n .pathMap(DEFAULT_PATH_MAP)\n .dimensionX(DEFAULT_DIMENSION_X)\n .dimensionY(DEFAULT_DIMENSION_Y)\n .scale(DEFAULT_SCALE);\n // Add required entity\n Store store = StoreResourceIntTest.createEntity(em);\n em.persist(store);\n em.flush();\n storeMap.setStore(store);\n return storeMap;\n }", "public abstract IState createState(ISemanticObject<?> observable, IContext context) throws ThinklabException;", "@Override\n\tpublic void save(EmpType entity) {\n\t\t\n\t}", "void create( State state );", "@Override\r\n\tpublic void insert(BbsDto dto) {\n\t}", "@PrePersist\n void preInsert() {\n this.isActive = true;\n }", "int insert(WizardValuationHistoryEntity record);", "@Override\n\tpublic int create(Tags tag) {\n\t\tentityMgr.persist(tag);\n\t\treturn 0;\n\t}" ]
[ "0.7009963", "0.6484128", "0.6280976", "0.62657833", "0.6248784", "0.62396634", "0.61984116", "0.61794245", "0.61711246", "0.6110991", "0.6109579", "0.6099154", "0.6094872", "0.6073424", "0.60319835", "0.60137326", "0.59853214", "0.59853214", "0.5967601", "0.5960698", "0.5947863", "0.59456486", "0.59291923", "0.5925325", "0.5894699", "0.5875992", "0.58526194", "0.58526194", "0.58432734", "0.5811206", "0.5803113", "0.57786024", "0.57766473", "0.5776636", "0.57747203", "0.5763556", "0.5740701", "0.57404685", "0.5740115", "0.5738295", "0.5710855", "0.5703004", "0.56993765", "0.56985766", "0.56866825", "0.5680843", "0.5677946", "0.56756", "0.5671188", "0.5669875", "0.5657177", "0.56546915", "0.5653146", "0.56418884", "0.56380296", "0.56321347", "0.56276715", "0.5614061", "0.5598448", "0.5593295", "0.5579362", "0.55755097", "0.557108", "0.5569675", "0.55688727", "0.55642235", "0.5558036", "0.55573744", "0.55443823", "0.55208683", "0.55091906", "0.5502806", "0.549244", "0.5489949", "0.54854393", "0.5485271", "0.54807067", "0.5479059", "0.5473261", "0.547", "0.54670334", "0.546489", "0.54633313", "0.5452657", "0.54499274", "0.54474354", "0.5442118", "0.5441467", "0.5435065", "0.5427075", "0.5423857", "0.5419174", "0.54099214", "0.5408962", "0.54055697", "0.540328", "0.54009086", "0.53976476", "0.53921586", "0.5390297", "0.5389793" ]
0.0
-1
Called by create() to insert entity state into the data store for a new entity.
@Override public void dbInsert(MovementModel model, String insertStm) throws DAOSysException { PreparedStatement preparedStm = null; Connection connection = null; try { connection = connectToDB(); preparedStm = connection.prepareStatement(insertStm); preparedStm.setInt(1, model.getMovementNumber()); preparedStm.setString(2, model.getMovementName()); preparedStm.executeUpdate(); } catch (SQLException sex) { throw new DAOSysException("Error adding composition <" + model.getMovementNumber() + " "+ model.getMovementName() + "> " + sex.getMessage()); } finally { try { releaseAll(null, preparedStm, connection); } catch (Exception ex) { System.err.println("Error releasing resources <" + ex.toString()); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@PostConstruct\n protected void initNewEntity() {\n setNewEntity(getService().create());\n }", "@Override\n public E insert(E entity) {\n LOG.info(\"[insert] Start: entity = \" + entity.getClass().getSimpleName());\n entityManager.persist(entity);\n LOG.info(\"[insert] End\");\n return entity;\n }", "@Override\n\tpublic Map<String, Object> create(StoreBase entity) {\n\t\treturn null;\n\t}", "public void createTaskStateData() throws DataLayerException\r\n\t{\r\n\t\t// ---------------------------------------------------------------\r\n\t\t// Task States\r\n\t\t// ---------------------------------------------------------------\r\n\t\tState[] values = TaskState.State.values();\r\n\t\tfor (TaskState.State state : values)\r\n\t\t{\r\n\t\t\tTaskState taskState = createHelper.createTaskState(0);\r\n\t\t\ttaskState.setState(state);\r\n\t\t\ttaskStateDao.save(taskState);\r\n\r\n\t\t\tLOG.info(taskState.toString());\r\n\t\t}\r\n\t}", "void create(E entity);", "public UsStatePk insert(UsState dto) throws UsStateDaoException;", "Entity createEntity();", "@Override\r\n public void createNewEntity(String entityName) {\n\r\n }", "void create(T entity);", "public void createBidStateData() throws DataLayerException\r\n\t{\r\n\t\t// ---------------------------------------------------------------\r\n\t\t// Task States\r\n\t\t// ---------------------------------------------------------------\r\n\t\tfor (BidState.State state : BidState.State.values())\r\n\t\t{\r\n\t\t\tBidState bidState = createHelper.createBidState(0);\r\n\t\t\tbidState.setState(state);\r\n\t\t\tbidStateDao.save(bidState);\r\n\t\t}\r\n\t}", "@Override\n\tpublic ImageEntity insert(Object entity) {\n\t\tDatabaseContext.insertRecord(entity);\n\t\treturn (ImageEntity) entity;\n\t}", "public void insert(EmployeeEntity entity){\n EmployeeDB.getInstance().insertOrUpdate(entity);\n }", "public T create(T entity) {\n\t \tgetEntityManager().getTransaction().begin();\n\t getEntityManager().persist(entity);\n\t getEntityManager().getTransaction().commit();\n\t getEntityManager().close();\n\t return entity;\n\t }", "protected abstract ENTITY createEntity();", "@Override\n protected void createEntity() {\n ProjectStatus status = createProjectStatus(5);\n setEntity(status);\n }", "@Override\n @LogMethod\n public T create(T entity) throws InventoryException {\n \tInventoryHelper.checkNull(entity, \"entity\");\n repository.persist(entity);\n return repository.getByKey(entity.getId());\n }", "void create(T entity) throws Exception;", "E create(E entity);", "E create(E entity);", "@Override\n public void create(T entity) throws SQLException {\n\n this.dao.create(entity);\n\n }", "private void insertState(State state) {\n SQLiteDatabase db = dbHelper.getWritableDatabase();\n state.print();\n cupboard().withDatabase(db).put(state);\n IDToday++;\n aCache.put(Const.Cache_Lastime_Timepoint, state.getTime_point());\n }", "public void create(GameSet entity) {\r\n\t\tgetDatabase().beginTransaction();\r\n\t\ttry {\r\n\t\t\tString sql = \"insert into GAME_SET (\" + GameSet.DbField.ID + \",\" + GameSet.DbField.GAME_ID + \",\" + GameSet.DbField.NAME + \",\" + GameSet.DbField.IMAGE\r\n\t\t\t\t\t+ \") values (?,?,?,?)\";\r\n\t\t\tObject[] params = new Object[4];\r\n\t\t\tparams[0] = entity.getId();\r\n\t\t\tparams[1] = entity.getGame().getId();\r\n\t\t\tparams[2] = entity.getName();\r\n\t\t\tparams[3] = entity.getImageName();\r\n\r\n\t\t\texecSQL(sql, params);\r\n\r\n\t\t\tgetDatabase().setTransactionSuccessful();\r\n\t\t\tentity.setState(DbState.LOADED);\r\n\r\n\t\t} finally {\r\n\t\t\tgetDatabase().endTransaction();\r\n\t\t}\r\n\t}", "public void createNewObject(Representation entity) throws ResourceException {\r\n\t\tT entry = createObjectFromHeaders(null, entity);\r\n\t\texecuteUpdate(entity, entry, createUpdateObject(entry));\r\n\r\n\t}", "@Override\n\tpublic void insert(Factory factory) {\n\t\tfactory.setId(UUID.randomUUID().toString());\n\t\tfactory.setState(\"1\");\n\t\tmapper.insert(factory);\n\t}", "protected abstract EntityBase createEntity() throws Exception;", "@Override\n\tpublic void add(Entity entity) throws Exception {\n\t\tsuper.add(entity);\n\t\tProduct prod = (Product) entity;\n\n\t\tSQLiteStatement st = db\n\t\t\t\t.prepare(\"INSERT INTO products(sessionID, name, priceMin, priceMax, quantity, category)\"\n\t\t\t\t\t\t+\"VALUES (?, ?, ?, ?, ?, ?)\");\n\t\tst.bind(1, sessionId).bind(2, prod.getName()).bind(3, prod.getPriceMin())\n\t\t\t\t.bind(4, prod.getPriceMin()).bind(5, prod.getQuantity())\n\t\t\t\t.bind(6, prod.getCategory());\n\t\tst.step();\n\t\ttotalQuantity += prod.quantity;\n\t\tif (!categoryList.containsKey(prod.getCategory())) {\n\t\t\tcategoryList.put(prod.getCategory(), new ArrayList<Product>());\n\t\t}\n\t\tcategoryList.get(prod.getCategory()).add(prod);\n\t\tif (availableProducts.get(entity.getName())==null) {\n\t\t\tavailableProducts.put(entity.getName(), \" \");\n\t\t}\n\t}", "public void insert() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.save(this);\n\t\tsession.getTransaction().commit();\n\t}", "@Override\n\tpublic int insert(ElectricalCheck entity) throws Exception {\n\t\treturn electricalCheckMapper.insert(entity);\n\t}", "public static void doStuff(){\n\t\tDatastoreService datastore = DatastoreServiceFactory.getDatastoreService();\n\n\t\t//As we omitted the argument, this will just create a new numeric ID\n\t\tEntity employee = new Entity(\"Employee\");\n\n\t\temployee.setProperty(\"firstName\", \"Patrick\");\n\t\temployee.setProperty(\"lastName\", \"MacDowell\");\n\n\t\tDate hireDate = new Date();\n\t\temployee.setProperty(\"hireDate\", hireDate);\n\n\t\temployee.setProperty(\"attendedHrTraining\", true);\n\n\t\tdatastore.put(employee);\n\t}", "@Override\n\tpublic void entityAdded(Entity entity)\n\t{\n\t\t\n\t}", "private void createTestData() {\n StoreEntity store = new StoreEntity();\n store.setStoreName(DEFAULT_STORE_NAME);\n store.setPecEmail(DEFAULT_PEC);\n store.setPhone(DEFAULT_PHONE);\n store.setImagePath(DEFAULT_IMAGE_PATH);\n store.setDefaultPassCode(STORE_DEFAULT_PASS_CODE);\n store.setStoreCap(DEFAULT_STORE_CAP);\n store.setCustomersInside(DEFAULT_CUSTOMERS_INSIDE);\n store.setAddress(new AddressEntity());\n\n // Create users for store.\n UserEntity manager = new UserEntity();\n manager.setUsercode(USER_CODE_MANAGER);\n manager.setRole(UserRole.MANAGER);\n\n UserEntity employee = new UserEntity();\n employee.setUsercode(USER_CODE_EMPLOYEE);\n employee.setRole(UserRole.EMPLOYEE);\n\n store.addUser(manager);\n store.addUser(employee);\n\n // Create a new ticket.\n TicketEntity ticket = new TicketEntity();\n ticket.setPassCode(INIT_PASS_CODE);\n ticket.setCustomerId(INIT_CUSTOMER_ID);\n ticket.setDate(new Date(new java.util.Date().getTime()));\n\n ticket.setArrivalTime(new Time(new java.util.Date().getTime()));\n ticket.setPassStatus(PassStatus.VALID);\n ticket.setQueueNumber(INIT_TICKET_QUEUE_NUMBER);\n store.addTicket(ticket);\n\n // Persist data.\n em.getTransaction().begin();\n\n em.persist(store);\n em.flush();\n\n // Saving ID generated from SQL after the persist.\n LAST_TICKET_ID = ticket.getTicketId();\n LAST_STORE_ID = store.getStoreId();\n LAST_MANAGER_ID = manager.getUserId();\n LAST_EMPLOYEE_ID = employee.getUserId();\n\n em.getTransaction().commit();\n }", "@Override\n\tpublic void persist(Object entity) {\n\t\t\n\t}", "@Override\r\n public void saveOrUpdateEntity(String entityName, DataStoreEntity dataStoreEntity) {\n\r\n }", "T insert(T entity) throws Exception;", "@Override\n\tpublic void persist(Recipe entity) {\n\t\t\n\t}", "@Override\n\tpublic void Insert(PersonelContract entity) {\n\n\t}", "public void store(final CastorConnection conn, final Identity identity,\r\n final ProposedEntity newentity,\r\n final ProposedEntity oldentity)\r\n throws PersistenceException {\n if (identity.size() != _ids.length) {\r\n throw new PersistenceException(\"Size of identity field mismatched!\");\r\n }\r\n\r\n _storeStatement.executeStatement(conn, identity, newentity, oldentity);\r\n\r\n // Must store values of whole extends hierarchy\r\n if (_extends != null) {\r\n _extends.store(conn, identity, newentity, oldentity);\r\n }\r\n }", "@Transactional\n public void create(TaskInstanceEntity taskInstanceEntity) {\n entityManagerProvider.get().persist(taskInstanceEntity);\n }", "@Override\n public int addState(String stateName) {\n int status=0;\n StateTb s=new StateTb();\n s.setStateName(stateName);\n s.setIsActive(1);\n em.persist(s);\n status=1;\n return status;\n }", "@Override\n\tpublic T create(T entity) {\n\t\t//TODO al anotar un metodo como transaccional spring de encarga de la transaccion por lo que no hay que \n\t\t//abrir la transaccion ni hacer commit, se encarga spring. Es más si lo intentas da un error, no se \n\t\t//pueden crear transacciones en una transaccion conpartida\n\t\t//Not allowed to create transaction on shared EntityManager - use Spring transactions\n\t\t//em.getTransaction().begin();\n\t\t\n\t\tSystem.out.println(em.contains(entity));\n\t\tem.persist(entity);\n\t\tSystem.out.println(em.contains(entity));\n\t\t//em.getTransaction().commit();\n\t\t\n\t\t//Session session = (Session) em.getDelegate();\n\t\t//Transaction tx = session.beginTransaction();\n\t\t//session.saveOrUpdate(entity);\n\t\t//session.flush();\n\t\t//tx.commit();\n\t\treturn entity;\n\t}", "ID create(T entity);", "@Override\n public int save(T entity) {\n return mapper.insert(entity);\n }", "@Override\n\tpublic void insert(UploadDF entity) {\n\t\tSession session = factory.openSession();\n\t\ttry{\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(entity);\n\t\t\tsession.getTransaction().commit();\n\t\t}catch(HibernateException exception){\n\t\t\tsession.getTransaction().rollback();\n\t\t\tthrow exception;\n\t\t}finally{\n\t\t\tsession.close();\n\t\t}\n\t}", "public abstract boolean create(T entity) throws SQLException;", "protected abstract T createNewEntry(PersistentEntity persistentEntity);", "public void save(E entity){\n transaction.begin();\n entityManager.persist(entity);\n transaction.commit();\n }", "@Override\n\tpublic Image creer(Image entity) throws InvalideGstoreException {\n\t\treturn imageRepository.save(entity);\n\t}", "@Override\n\tpublic void initEntity() {\n\n\t}", "public Entity newEntity() { return newMyEntity(); }", "public Entity newEntity() { return newMyEntity(); }", "@Override\n\t@Transactional\n\tpublic T create(T entity) {\n\t\tif (entity == null) {\n\t\t\treturn null;\n\t\t}\n\t\thibernateTemplate.save(entity);\n\t\treturn entity;\n\t}", "@Override\n\tpublic void insert() {\n\t\tSystem.out.println(\"insert coin\");\n\t\tmachine.setState(machine.getHascoin());\n\t}", "protected void onAdd( E entity, int index )\r\n\t{\r\n\t\t\r\n\t}", "@Override\n public int insert(StorePickStatus arg0) {\n return 0;\n }", "@Override\r\n\tpublic void create(T t) {\n\t\tsuper.getSessionFactory().getCurrentSession().save(t);\r\n\t\tsuper.getSessionFactory().getCurrentSession().flush();\r\n\t}", "public void insert(AsxDataVO entity) {\n\t\tmongoTemplate.insert(entity); \r\n\t}", "T createEntity();", "public void saveState() {\n table.saveState(store);\n }", "public Long insert(State record) {\n Object newKey = getSqlMapClientTemplate().insert(\"lgk_state.abatorgenerated_insert\", record);\n return (Long) newKey;\n }", "WriteRequest insert(PiEntity entity);", "void createOrUpdate(T entity);", "public void addEntity(T entity) {\n\t\t// Remove from needed\n\t\tidTracker.unset(entity.getId());\n\n\t\t// Add to entities\n\t\tentityMap.add(entity);\n\t}", "protected void entityInit() {}", "@Override\n public void createRecipe(RecipeEntity recipeEntity)\n {\n this.save(recipeEntity);\n }", "public void spawnEntity(Entity entity)\n\t{\n\t\tif(!entity.isLoadedResources() && !entity.loadResources())\n\t\t{\n\t\t\t//Don't add entity if an error occurs\n\t\t\treturn;\n\t\t}\n\t\tthis.newEntityBuffer.add(entity);\n\t\tLoggingHandler.logger.log(Level.FINE, \"Added entity to spawn queue: \" + entity);\n\t}", "@Override\n\tprotected CoreEntity createNewEntity() {\n\t\treturn null;\n\t}", "public TIndiaState createTIndiaState(final TIndiaState tIndiaState) {\n\t\tLOGGER.info(\"=========== Create TIndiaState ===========\");\n//\t\treturn gisDAO.store(tIndiaState);\n\t\treturn null;\n\t}", "@Override\r\n public void postBegin() {\r\n Iterable<EntityRef> scenario = entityManager.getEntitiesWith(ScenarioComponent.class); // Checks for existing Scenario\r\n\r\n if (!scenario.iterator().hasNext()) { //No scenario exists yet\r\n scenarioEntity = entityManager.create(assetManager.getAsset(\"scenario:scenarioEntity\", Prefab.class).get());\r\n }\r\n else {\r\n scenarioEntity = scenario.iterator().next();\r\n }\r\n }", "void create(Student entity);", "@PostPersist\n\t@PostUpdate\n\tprivate void storeChangesToDw() {\n\t}", "@Override\n public void beforeShowNewEntity()\n {\n entity = new Aluno();\n entity.setDataNascimento(new GregorianCalendar());\n String senha = CriptografiaLogic.encriptar(\"123\");\n entity.setSenha(senha);\n }", "E create(E entity, RequestContext context)\n throws TechnicalException, ConflictException;", "int insert(T entity);", "public void create(DataSet dataSet) throws PreexistingEntityException, Exception {\n EntityManager em = null;\n try {\n em = getEntityManager();\n em.getTransaction().begin();\n em.persist(dataSet);\n em.getTransaction().commit();\n } catch (Exception ex) {\n if (findDataSet(dataSet.getWid()) != null) {\n throw new PreexistingEntityException(\"DataSet \" + dataSet + \" already exists.\", ex);\n }\n throw ex;\n } finally {\n if (em != null) {\n em.close();\n }\n }\n }", "public static StoreMap createEntity(EntityManager em) {\n StoreMap storeMap = new StoreMap()\n .validityStart(DEFAULT_VALIDITY_START)\n .validityEnd(DEFAULT_VALIDITY_END)\n .url(DEFAULT_URL)\n .wallMap(DEFAULT_WALL_MAP)\n .pathMap(DEFAULT_PATH_MAP)\n .dimensionX(DEFAULT_DIMENSION_X)\n .dimensionY(DEFAULT_DIMENSION_Y)\n .scale(DEFAULT_SCALE);\n // Add required entity\n Store store = StoreResourceIntTest.createEntity(em);\n em.persist(store);\n em.flush();\n storeMap.setStore(store);\n return storeMap;\n }", "private void insertData() {\n for (int i = 0; i < 3; i++) {\n PodamFactory factory = new PodamFactoryImpl();\n VisitaEntity entity = factory.manufacturePojo(VisitaEntity.class);\n em.persist(entity);\n data.add(entity);\n }\n }", "@Override\n @Transactional(propagation = Propagation.REQUIRED)\n public void insertNewEntity(BaseEntity baseEntity) throws UnableToInsertException {\n try{\n // transaction = openTransaction(sessionFactory.getCurrentSession());\n entityDAO.insert(baseEntity);\n // transaction.commit();\n }\n catch(Exception ex){\n /* if(transaction != null)\n transaction.rollback();*/\n throw new UnableToInsertException(ex.getMessage());\n }\n }", "public abstract boolean create(T entity) throws ServiceException;", "@Override\n public void init(Entity entity) {\n entity.add(AI_DATA, new BuildingSpawnerStratAIData());\n }", "private static void saveEntity(TaskViewModel node, StorableFactory<Task> taskFactory) throws DatabaseException {\n Task dto = Infrastructure.getInstance().getTaskMapper().toDto(node);\n taskFactory.create(dto);\n // after creation in db id will be set\n node.setId(dto.getId());\n for (TaskViewModel child : node.getChildren()) {\n saveEntity(child, taskFactory);\n }\n }", "public void saveState() \n\t{\n\t\tsuper.saveState();\n\t}", "public void saveState() {\n\t\tsuper.saveState();\n\t}", "@Override\n protected void preAddEntity( final E entity )\n throws VersionedEntityNotFoundException\n {\n final String methodName = \"preAddEntity\";\n logMethodBegin( methodName, entity );\n Objects.requireNonNull( entity, \"entity argument cannot be null\" );\n super.preAddEntity( entity );\n if ( entity instanceof StockPriceWhenCreatedContainer )\n {\n setStockPriceWhenCreated( entity.getTickerSymbol(), (StockPriceWhenCreatedContainer)entity );\n }\n logMethodEnd( methodName );\n }", "public void commitEntity();", "@Override\n\tpublic Entity createEntity() {\n\t\tEntity entity = new Entity(LINKS_ENTITY_KIND);\n\t\tentity.setProperty(id_property, ID);\n\t\tentity.setProperty(url_property, url);\n\t\tentity.setProperty(CategoryID_property, CategoryID);\n\t\tentity.setProperty(note_property, note);\n\t\tentity.setProperty(createdOn_property, createdOn);\n\t\tentity.setProperty(updatedOn_property, updatedOn);\t\t\t\n\t\treturn entity;\n\t}", "@Override\n public EntityResponse createEntity(String entitySetName, OEntity entity) {\n return super.createEntity(entitySetName, entity);\n }", "@Override\n public EntityResponse createEntity(String entitySetName, OEntityKey entityKey, String navProp, OEntity entity) {\n return super.createEntity(entitySetName, entityKey, navProp, entity);\n }", "public void persist(Book entity)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tbookdao.openCurrentSessionwithTransation();\r\n\t\t\tbookdao.persist(entity);\r\n\t\t\tbookdao.closeSessionwithTransaction();\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n\tpublic int insert(TestPoEntity entity) {\n\t\treturn 0;\n\t}", "public void persist(T entity) {\n getSession().persist(entity);\n }", "public void persist(T entity) {\n getSession().persist(entity);\n }", "int insert(DebtsRecordEntity record);", "public void doCreateItem() {\r\n\t\tlogger.info(\"Se procede a crear el book \" + newItem.getDescription());\r\n\t\tBook entity = newItem.getEntity();\r\n\t\tentity.setUser(Global.activeUser());\r\n\t\tentity.setBookBalance(BigDecimal.ZERO);\r\n\t\tentity.setTotalBudget(BigDecimal.ZERO);\r\n\t\tentity.setTotalIncome(BigDecimal.ZERO);\r\n\t\tentity.setTotalExpenses(BigDecimal.ZERO);\r\n\t\tentity = bookService.create(entity);\r\n\r\n\t\t// Actualizar el mapa de books\r\n\t\tGlobalBook.instance().put(new BookData(entity));\r\n\r\n\t\tlogger.info(\"Se ha creado el book \" + newItem.getDescription());\r\n\t\tnewItem = new BookData(new Book());\r\n\t\tFacesContext.getCurrentInstance().addMessage(null,\r\n\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_INFO, \"Libro creado\", \"Libro creado correctamente\"));\r\n\t}", "ActionResult onInsert(HopperBlockEntity hopperBlockEntity, BlockPos insertPosition);", "public QuestionEntity createQuestion(QuestionEntity questionEntity) {\n entityManager.persist(questionEntity);\n return questionEntity;\n }", "@Override\n\tpublic void save(EmpType entity) {\n\t\t\n\t}", "public void addEntity(Entity e)\r\n\t{\r\n\t\tentities.add(e);\r\n\t}", "@Override\r\n\tpublic void insert(BbsDto dto) {\n\t}", "Entity save(Entity entity);", "@Transactional void add(E entity);", "public void addEntity(AnnexDetail entity) throws Exception {\n\t\t\n\t}" ]
[ "0.6945452", "0.6522667", "0.6289417", "0.627963", "0.6224305", "0.61807466", "0.61805236", "0.6144346", "0.60782015", "0.60745025", "0.6067445", "0.6054309", "0.603566", "0.6010033", "0.6006847", "0.5983363", "0.5974213", "0.59723884", "0.59723884", "0.5942246", "0.5940945", "0.5936206", "0.59248626", "0.5923843", "0.591807", "0.58860695", "0.5879232", "0.58633184", "0.5816729", "0.58118343", "0.58053875", "0.57774365", "0.5776496", "0.5773052", "0.5767446", "0.57552075", "0.57492554", "0.5747732", "0.5733706", "0.5730627", "0.5704016", "0.56948125", "0.56804866", "0.5680322", "0.56415355", "0.56388074", "0.5633408", "0.56272364", "0.56220305", "0.56220305", "0.5614792", "0.56113565", "0.5587479", "0.55855423", "0.5576737", "0.55739003", "0.5571565", "0.55686337", "0.5568081", "0.5565493", "0.55637336", "0.55606306", "0.5556945", "0.5551817", "0.5540392", "0.5537849", "0.5532537", "0.5498815", "0.54918224", "0.54802805", "0.5479514", "0.54794586", "0.54762876", "0.5476265", "0.5471866", "0.54681146", "0.5467369", "0.54616815", "0.54601425", "0.54466325", "0.5435777", "0.54353637", "0.54324543", "0.54282445", "0.54177475", "0.5416892", "0.5413417", "0.5412412", "0.5408005", "0.5403544", "0.5403544", "0.54031396", "0.54028815", "0.540234", "0.5397497", "0.53963673", "0.53957486", "0.53915465", "0.53889406", "0.5387943", "0.53851044" ]
0.0
-1
Called by findByPrimaryKey() to retrieve an entity by the primary key.
@Override public MovementModel dbSelectByPrimaryKey(MovementPK primarykey) throws DAOSysException, NoSuchEntityException { return dbSelectByPrimaryKey(primarykey, MovementDAO.SELECT_STM); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "T getByPk(int key) throws PersistException;", "@Override\n\tpublic ImageEntity find(Object primarykey) {\n\t\treturn (ImageEntity) DatabaseContext.find(ImageEntity.class, primarykey);\n\t}", "public Object getGenericEntityByPrimaryKey(Class ent, Serializable key) throws RepositoryException{\n\t\treturn DatanucleusCRUDUtils.getById(ent, key);\n\t}", "public E findByPK(Serializable pk) {\n Session session = DAOUtils.getSession();\n Transaction trans = session.beginTransaction();\n\n E entity = session.get(genericType, pk);\n\n trans.commit();\n return entity;\n }", "protected abstract T retrieveEntry(PersistentEntity persistentEntity, Serializable key);", "@Override\n\tpublic BaseEntity getByPk(BaseEntity entity) throws DaoException {\n\t\treturn null;\n\t}", "T findById(long pk);", "T get(PK id);", "AccessModelEntity selectByPrimaryKey(String id);", "public Entity getByPrimaryKey(Id id) throws RepositoryException{\n\t\treturn (Entity)DatanucleusCRUDUtils.getById(getEntity(), id);\n\t}", "T getById(PK id);", "Entity getEntityById(Long id);", "public Entry findByPrimaryKey(EntryPK pk) throws FinderException, RemoteException;", "public abstract T findEntityById(int id);", "UserEntity selectByPrimaryKey(Integer id);", "public Cliente findByPrimaryKey(ClientePk pk) throws ClienteDaoException;", "public E findById(Serializable pk) ;", "protected abstract T getEntityById(Long id);", "TestEntity selectByPrimaryKey(Integer id);", "public UserEntity findByPrimaryKey(String userId) throws FinderException;", "@Override\n\tpublic <T> T find(Class<T> entityClass, Object primaryKey) {\n\t\treturn null;\n\t}", "BaseReturn selectByPrimaryKey(String guid);", "PrimaryKey getPrimaryKey();", "<T> T get(Class<T> entityClass, Serializable id);", "User selectByPrimaryKey(String id);", "@Override\n\tpublic Approvatore fetchByPrimaryKey(Serializable primaryKey) {\n\t\tSerializable serializable = entityCache.getResult(ApprovatoreModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\tApprovatoreImpl.class, primaryKey);\n\n\t\tif (serializable == nullModel) {\n\t\t\treturn null;\n\t\t}\n\n\t\tApprovatore approvatore = (Approvatore)serializable;\n\n\t\tif (approvatore == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tapprovatore = (Approvatore)session.get(ApprovatoreImpl.class,\n\t\t\t\t\t\tprimaryKey);\n\n\t\t\t\tif (approvatore != null) {\n\t\t\t\t\tcacheResult(approvatore);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tentityCache.putResult(ApprovatoreModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tApprovatoreImpl.class, primaryKey, nullModel);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tentityCache.removeResult(ApprovatoreModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\tApprovatoreImpl.class, primaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn approvatore;\n\t}", "public com.vh.locker.ejb.Contact findByPrimaryKey(java.lang.Long primaryKey) throws javax.ejb.FinderException;", "public Ruta findByPrimaryKey(RutaPk pk) throws RutaDaoException;", "ProductEntity findById(long id);", "Product selectByPrimaryKey(Long id);", "Clazz selectByPrimaryKey(Integer id);", "private Entity getObjectByObject(final Entity entity){\n\t\tDBProperty dbProperty = entity.getDbProperty();\t\n\t\tEntity result = entity;\n\t\tAbstractDao<Entity> aDao = new AbstractDao<Entity>() {\n\t\t\t\t@Override\n\t\t\t\tpublic Class getEntityClass() {\n\t\t\t\t\treturn entity.getClass();\n\t\t\t\t}\n\t\t\t};\n\t\t\ttry {\n\t\t\t\tresult = aDao.findById(entity.getId());\n\t\t\t} catch (DAOTechnicalException e) {\n\t\t\t\tLOG.debug(e.getMessage());\n\t\t\t}\n\t\t\treturn result;\n\t\t}", "public Tipo findByPrimaryKey(TipoPk pk) throws TipoDaoException;", "User selectByPrimaryKey(Long id);", "public E findById(E entity){\n Object identifier = HibernateUtil.getIdEntity(entity);\n return (E) entityManager.find(entity.getClass(),identifier);\n }", "User selectByPrimaryKey(Integer id);", "User selectByPrimaryKey(Integer id);", "User selectByPrimaryKey(Integer id);", "User selectByPrimaryKey(Integer id);", "User selectByPrimaryKey(Integer id);", "public TEntity getById(int id){\n String whereClause = String.format(\"Id = %1$s\", id);\n Cursor cursor = db.query(tableName, columns, whereClause, null, null, null, null);\n\n if (cursor.getCount() == 1) {\n cursor.moveToFirst();\n return fromCursor(cursor);\n }\n return null;\n }", "IceApp selectByPrimaryKey(Long id);", "public Items findByPrimaryKey(ItemsPk pk) throws ItemsDaoException;", "Owner selectByPrimaryKey(String id);", "Product selectByPrimaryKey(Integer id);", "E find(Id id) throws RepositoryException;", "Dormitory selectByPrimaryKey(Integer id);", "Object getPrimaryKey() throws IllegalStateException;", "public E findOne(ID primaryKey) {\n if ((primaryKey != null) && getDao().existsById(primaryKey)) {\n return getOne(primaryKey);\n }\n\n return null;\n }", "public Todo fetchByPrimaryKey(long todoId);", "@SuppressWarnings(\"unchecked\")\r\n public DomainObject getRecordByPrimaryKey(KeyType id) {\r\n Session session = getSession();\r\n try {\r\n return (DomainObject) session.get(getPersistentClass(), id);\r\n } catch (HibernateException e) {\r\n LOG.error(MODULE + \"Exception in getRecordByPrimaryKey Method:\" + e, e);\r\n throw e;\r\n } finally {\r\n if (session.isOpen()) {\r\n session.close();\r\n }\r\n }\r\n }", "public abstract Object get(String entityName, Serializable id);", "public PrimaryKey getPrimaryKey();", "@Override\n\tpublic <T> T find(Class<T> entityClass, Object primaryKey, LockModeType lockMode) {\n\t\treturn null;\n\t}", "Key getPrimaryKey();", "E getById(long id);", "@Override\n\tpublic PhatVay fetchByPrimaryKey(Serializable primaryKey) {\n\t\tSerializable serializable = entityCache.getResult(\n\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class,\n\t\t\tprimaryKey);\n\n\t\tif (serializable == nullModel) {\n\t\t\treturn null;\n\t\t}\n\n\t\tPhatVay phatVay = (PhatVay)serializable;\n\n\t\tif (phatVay == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tphatVay = (PhatVay)session.get(PhatVayImpl.class, primaryKey);\n\n\t\t\t\tif (phatVay != null) {\n\t\t\t\t\tcacheResult(phatVay);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tentityCache.putResult(\n\t\t\t\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tPhatVayImpl.class, primaryKey, nullModel);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tentityCache.removeResult(\n\t\t\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class,\n\t\t\t\t\tprimaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn phatVay;\n\t}", "StudentEntity selectByPrimaryKey(String studentId);", "E findById(K id);", "@Override\n\tpublic HelloEntity findOne() {\n\t\tLong id = 1L;\n\t\tHelloEntity entity = entityManager.find(HelloEntity.class, id);\n\t\tSystem.out.println(\"findOne: \" + entity.getName());\n\t\treturn null;\n\t}", "@Override\n\tpublic TestPoEntity selectById(Integer pk) {\n\t\treturn null;\n\t}", "PrhFree selectByPrimaryKey(Integer id);", "@Override\r\n\tpublic Share fetchByPrimaryKey(Serializable primaryKey) {\r\n\t\tSerializable serializable = entityCache.getResult(ShareModelImpl.ENTITY_CACHE_ENABLED,\r\n\t\t\t\tShareImpl.class, primaryKey);\r\n\r\n\t\tif (serializable == nullModel) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tShare share = (Share)serializable;\r\n\r\n\t\tif (share == null) {\r\n\t\t\tSession session = null;\r\n\r\n\t\t\ttry {\r\n\t\t\t\tsession = openSession();\r\n\r\n\t\t\t\tshare = (Share)session.get(ShareImpl.class, primaryKey);\r\n\r\n\t\t\t\tif (share != null) {\r\n\t\t\t\t\tcacheResult(share);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tentityCache.putResult(ShareModelImpl.ENTITY_CACHE_ENABLED,\r\n\t\t\t\t\t\tShareImpl.class, primaryKey, nullModel);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\r\n\t\t\t\tentityCache.removeResult(ShareModelImpl.ENTITY_CACHE_ENABLED,\r\n\t\t\t\t\tShareImpl.class, primaryKey);\r\n\r\n\t\t\t\tthrow processException(e);\r\n\t\t\t}\r\n\t\t\tfinally {\r\n\t\t\t\tcloseSession(session);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn share;\r\n\t}", "T load(PK id);", "@ModelAttribute\n\tpublic Entity getEntity(@PathVariable(\"entity\") Long id) {\n\t\tEntity entity = service.findOne(id);\n\t\tif (entity == null) {\n\t\t\tthrow new NotFoundException(String.format(\"Entity with identifier '%s' not found\", id));\n\t\t}\n\t\treturn entity;\n\t}", "@Override\n\tpublic Estado fetchByPrimaryKey(Serializable primaryKey)\n\t\tthrows SystemException {\n\t\treturn fetchByPrimaryKey(((Integer)primaryKey).intValue());\n\t}", "@Override\n\tpublic Person select(PersonKey key) throws KeyNotFoundException {\n\t\t\n\t\ttry {\n\t\t\tPerson person = repo.findById(key).get();\n\t\t\treturn person;\n\t\t\t}\n\t\tcatch(Exception ex) {\n\t\t\tthrow new KeyNotFoundException();\n\t\t}\n\t\t\n\t}", "@Override\n\tpublic <T> T find(Class<T> entityClass, Object primaryKey, Map<String, Object> properties) {\n\t\treturn null;\n\t}", "Account selectByPrimaryKey(String id);", "@Override\n\tpublic Object findByIdObject(Class<T> entidade, Long id) throws Exception {\n\t\treturn null;\n\t}", "public <T> T find(Class<T> entityClass, String id);", "@Override\n\tpublic Paper fetchByPrimaryKey(Serializable primaryKey) {\n\t\tSerializable serializable = entityCache.getResult(PaperModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\tPaperImpl.class, primaryKey);\n\n\t\tif (serializable == nullModel) {\n\t\t\treturn null;\n\t\t}\n\n\t\tPaper paper = (Paper)serializable;\n\n\t\tif (paper == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tpaper = (Paper)session.get(PaperImpl.class, primaryKey);\n\n\t\t\t\tif (paper != null) {\n\t\t\t\t\tcacheResult(paper);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tentityCache.putResult(PaperModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tPaperImpl.class, primaryKey, nullModel);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tentityCache.removeResult(PaperModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\tPaperImpl.class, primaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn paper;\n\t}", "public String ejbFindByPrimaryKey(String primaryKey) \n throws FinderException {\n\n // Precondition\n if ( primaryKey == null ) {\n throw new FinderException( \"null primaryKey\" );\n }\n\n Connection conn = null;\n PreparedStatement stmt = null;\n ResultSet rs = null;\n boolean retVal = false;\n try {\n conn = DBConfiguration.getConnection();\n stmt = conn.prepareStatement(Configuration.SQL_01);\n\n stmt.setString( 1, primaryKey );\n\n rs = stmt.executeQuery();\n retVal = rs.next();\n if ( theLog.isDebugEnabled() ) {\n theLog.debug( \"selectByPrimaryKey: retVal == \" + retVal );\n }\n\n } catch (Exception ex) {\n theLog.debug(\"Exception in ejbFindByPrimaryKey: \" + ex);\n }\n finally {\n DBConfiguration.closeSQLResultSet( rs );\n DBConfiguration.closeSQLStatement( stmt );\n DBConfiguration.closeSQLConnection( conn );\n rs = null;\n stmt = null;\n conn = null;\n }\n\n if (!retVal) {\n String msg = \"Row for id \" + primaryKey + \" not found.\";\n throw new ObjectNotFoundException( msg );\n }\n\n return primaryKey;\n }", "public NominaPuesto findByPrimaryKey(NominaPuestoPk pk) throws NominaPuestoDaoException;", "public final E find(final K id) {\n return getJpaTemplate().find(getEntityClass(), id);\n }", "O obtener(PK id) throws DAOException;", "@Override\n @LogMethod\n public T get(long id) throws InventoryException {\n \tInventoryHelper.checkPositive(id, \"id\");\n T entity = repository.getByKey(id);\n InventoryHelper.checkEntityExist(entity, id);\n return entity;\n }", "Model selectByPrimaryKey(Integer id);", "public abstract T findOne(int id);", "public Cliente findByPrimaryKey(int idCliente) throws ClienteDaoException;", "GoodsPo selectByPrimaryKey(Long id);", "HpItemParamItem selectByPrimaryKey(Long id);", "public ENTITY getByID(long ID) {\n\t\tCriteriaBuilder builder = em.getCriteriaBuilder();\n\t\tCriteriaQuery<BaseModel> query = builder.createQuery(BaseModel.class);\n\t\tRoot baseModel = query.from(BaseModel.class);\n\n\t\tquery.where(builder.equal(baseModel.get(\"ID\"), ID));\n\t\t\n\t\treturn (ENTITY) em.createQuery(query).getSingleResult();\n\t}", "User selectByPrimaryKey(Integer uid);", "@Override\n public Item get(long idItem) throws EntityNotFound;", "E getObject(int ID) throws DatabaseObjectNotFoundException, DatabaseNotAccessibleException;", "Employee selectByPrimaryKey(String id);", "ProEmployee selectByPrimaryKey(String id);", "@Override\n\tpublic <T> T find(Class<T> entityClass, Object primaryKey, LockModeType lockMode, Map<String, Object> properties) {\n\t\treturn null;\n\t}", "@Override\n public E getById(final I id) {\n LOG.info(\"[getById] Start: Id = \" + id);\n LOG.info(\"[getById] End\");\n return entityManager.find(entityClass, id);\n }", "User selectByPrimaryKey(Long userId);", "@Override\n\tpublic TvShow fetchByPrimaryKey(Serializable primaryKey)\n\t\tthrows SystemException {\n\t\tTvShow tvShow = (TvShow)EntityCacheUtil.getResult(TvShowModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\tTvShowImpl.class, primaryKey);\n\n\t\tif (tvShow == _nullTvShow) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (tvShow == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\ttvShow = (TvShow)session.get(TvShowImpl.class, primaryKey);\n\n\t\t\t\tif (tvShow != null) {\n\t\t\t\t\tcacheResult(tvShow);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tEntityCacheUtil.putResult(TvShowModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tTvShowImpl.class, primaryKey, _nullTvShow);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tEntityCacheUtil.removeResult(TvShowModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\tTvShowImpl.class, primaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn tvShow;\n\t}", "public SgfensBanco findByPrimaryKey(SgfensBancoPk pk) throws SgfensBancoDaoException;", "@Override\r\n\tpublic T findEntity(Class<T> c, Serializable id) throws Exception {\n\t\treturn (T) this.getcurrentSession().get(c, id);\r\n\t}", "Promo selectByPrimaryKey(Integer id);", "public <T extends BaseEntity> T findOne(T entity) {\n T resultEntity = null;\n List<T> results = select(entity);\n if (results != null && !results.isEmpty()) {\n resultEntity = results.get(0);\n }\n return resultEntity;\n }", "Article selectByPrimaryKey(String id);", "@Override\n\tpublic Candidate fetchByPrimaryKey(Serializable primaryKey)\n\t\tthrows SystemException {\n\t\tCandidate candidate = (Candidate)EntityCacheUtil.getResult(CandidateModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\tCandidateImpl.class, primaryKey);\n\n\t\tif (candidate == _nullCandidate) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (candidate == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tcandidate = (Candidate)session.get(CandidateImpl.class,\n\t\t\t\t\t\tprimaryKey);\n\n\t\t\t\tif (candidate != null) {\n\t\t\t\t\tcacheResult(candidate);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tEntityCacheUtil.putResult(CandidateModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tCandidateImpl.class, primaryKey, _nullCandidate);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tEntityCacheUtil.removeResult(CandidateModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\tCandidateImpl.class, primaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn candidate;\n\t}", "@Override\n\tpublic T findById(Class<T> entidade, Long id) throws Exception {\n\t\treturn null;\n\t}", "@Transactional(propagation = Propagation.MANDATORY)\n\tpublic default E getOne(K id) {\n\t\treturn getRepository().getOne(id);\n\t}", "EnterprisePicture selectByPrimaryKey(Integer id);" ]
[ "0.7357301", "0.72451776", "0.7241902", "0.72216195", "0.7151979", "0.7054232", "0.70405143", "0.70378375", "0.70227367", "0.6997087", "0.6982699", "0.6960999", "0.6952572", "0.69250154", "0.68722606", "0.6849387", "0.6831247", "0.67856365", "0.6741636", "0.6736704", "0.6727795", "0.66829115", "0.66355425", "0.66346145", "0.6615175", "0.66132635", "0.66093457", "0.6595414", "0.6593041", "0.658582", "0.658195", "0.657552", "0.65603596", "0.6557511", "0.6548883", "0.6534175", "0.6534175", "0.6534175", "0.6534175", "0.6534175", "0.65322995", "0.65229946", "0.65053034", "0.65025544", "0.6498728", "0.6498695", "0.647675", "0.6466183", "0.64601916", "0.6454188", "0.64518344", "0.64470047", "0.6442904", "0.6442009", "0.64375263", "0.64292467", "0.64191717", "0.6414254", "0.6403224", "0.6401991", "0.639705", "0.6393059", "0.6389725", "0.63875544", "0.6369606", "0.636484", "0.6361909", "0.63398707", "0.63397527", "0.63361406", "0.6335834", "0.6314316", "0.63115025", "0.63046426", "0.6290527", "0.6287847", "0.6287566", "0.62854815", "0.6283661", "0.6277812", "0.62723327", "0.62722677", "0.6271113", "0.6267172", "0.6262509", "0.6258364", "0.62565815", "0.62551737", "0.6250158", "0.6247292", "0.6244728", "0.6236656", "0.621775", "0.62001866", "0.6200115", "0.61978006", "0.61956227", "0.6191295", "0.6191201", "0.6190396", "0.6189754" ]
0.0
-1
Called by findByPrimaryKey() to retrieve an entity by the primary key.
@Override public MovementModel dbSelectByPrimaryKey(MovementPK primarykey, String selectStm) throws DAOSysException, NoSuchEntityException { MovementPK pk = primarykey; Connection connection = null; PreparedStatement preparedStm = null; ResultSet rs = null; boolean result = false; MovementModel model = new MovementModel(); try { connection = connectToDB(); preparedStm = connection.prepareStatement(selectStm); preparedStm.setInt(1, pk.getMovementNumber()); preparedStm.setString(2, pk.getMovementName()); rs = preparedStm.executeQuery(); result = rs.next(); if (result) { model.setPrimarykey(new MovementPK(rs.getInt(1), rs.getString(2))); } else { throw new NoSuchEntityException("movement for <" + primarykey + "> not found in the database."); } } catch (SQLException sex) { sex.printStackTrace(); throw new DAOSysException( "dbSelectByPrimaryKey() SQL Exception\n" + sex.getMessage()); } finally { try { releaseAll(rs, preparedStm, connection); } catch (Exception ex) { System.err.println("Error releasing resources <" + ex.toString()); } } return model; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "T getByPk(int key) throws PersistException;", "@Override\n\tpublic ImageEntity find(Object primarykey) {\n\t\treturn (ImageEntity) DatabaseContext.find(ImageEntity.class, primarykey);\n\t}", "public Object getGenericEntityByPrimaryKey(Class ent, Serializable key) throws RepositoryException{\n\t\treturn DatanucleusCRUDUtils.getById(ent, key);\n\t}", "public E findByPK(Serializable pk) {\n Session session = DAOUtils.getSession();\n Transaction trans = session.beginTransaction();\n\n E entity = session.get(genericType, pk);\n\n trans.commit();\n return entity;\n }", "protected abstract T retrieveEntry(PersistentEntity persistentEntity, Serializable key);", "@Override\n\tpublic BaseEntity getByPk(BaseEntity entity) throws DaoException {\n\t\treturn null;\n\t}", "T findById(long pk);", "T get(PK id);", "AccessModelEntity selectByPrimaryKey(String id);", "public Entity getByPrimaryKey(Id id) throws RepositoryException{\n\t\treturn (Entity)DatanucleusCRUDUtils.getById(getEntity(), id);\n\t}", "T getById(PK id);", "Entity getEntityById(Long id);", "public Entry findByPrimaryKey(EntryPK pk) throws FinderException, RemoteException;", "public abstract T findEntityById(int id);", "UserEntity selectByPrimaryKey(Integer id);", "public Cliente findByPrimaryKey(ClientePk pk) throws ClienteDaoException;", "public E findById(Serializable pk) ;", "protected abstract T getEntityById(Long id);", "TestEntity selectByPrimaryKey(Integer id);", "public UserEntity findByPrimaryKey(String userId) throws FinderException;", "@Override\n\tpublic <T> T find(Class<T> entityClass, Object primaryKey) {\n\t\treturn null;\n\t}", "BaseReturn selectByPrimaryKey(String guid);", "<T> T get(Class<T> entityClass, Serializable id);", "PrimaryKey getPrimaryKey();", "User selectByPrimaryKey(String id);", "@Override\n\tpublic Approvatore fetchByPrimaryKey(Serializable primaryKey) {\n\t\tSerializable serializable = entityCache.getResult(ApprovatoreModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\tApprovatoreImpl.class, primaryKey);\n\n\t\tif (serializable == nullModel) {\n\t\t\treturn null;\n\t\t}\n\n\t\tApprovatore approvatore = (Approvatore)serializable;\n\n\t\tif (approvatore == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tapprovatore = (Approvatore)session.get(ApprovatoreImpl.class,\n\t\t\t\t\t\tprimaryKey);\n\n\t\t\t\tif (approvatore != null) {\n\t\t\t\t\tcacheResult(approvatore);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tentityCache.putResult(ApprovatoreModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tApprovatoreImpl.class, primaryKey, nullModel);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tentityCache.removeResult(ApprovatoreModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\tApprovatoreImpl.class, primaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn approvatore;\n\t}", "public com.vh.locker.ejb.Contact findByPrimaryKey(java.lang.Long primaryKey) throws javax.ejb.FinderException;", "public Ruta findByPrimaryKey(RutaPk pk) throws RutaDaoException;", "ProductEntity findById(long id);", "Product selectByPrimaryKey(Long id);", "Clazz selectByPrimaryKey(Integer id);", "private Entity getObjectByObject(final Entity entity){\n\t\tDBProperty dbProperty = entity.getDbProperty();\t\n\t\tEntity result = entity;\n\t\tAbstractDao<Entity> aDao = new AbstractDao<Entity>() {\n\t\t\t\t@Override\n\t\t\t\tpublic Class getEntityClass() {\n\t\t\t\t\treturn entity.getClass();\n\t\t\t\t}\n\t\t\t};\n\t\t\ttry {\n\t\t\t\tresult = aDao.findById(entity.getId());\n\t\t\t} catch (DAOTechnicalException e) {\n\t\t\t\tLOG.debug(e.getMessage());\n\t\t\t}\n\t\t\treturn result;\n\t\t}", "public Tipo findByPrimaryKey(TipoPk pk) throws TipoDaoException;", "User selectByPrimaryKey(Long id);", "public E findById(E entity){\n Object identifier = HibernateUtil.getIdEntity(entity);\n return (E) entityManager.find(entity.getClass(),identifier);\n }", "User selectByPrimaryKey(Integer id);", "User selectByPrimaryKey(Integer id);", "User selectByPrimaryKey(Integer id);", "User selectByPrimaryKey(Integer id);", "User selectByPrimaryKey(Integer id);", "public TEntity getById(int id){\n String whereClause = String.format(\"Id = %1$s\", id);\n Cursor cursor = db.query(tableName, columns, whereClause, null, null, null, null);\n\n if (cursor.getCount() == 1) {\n cursor.moveToFirst();\n return fromCursor(cursor);\n }\n return null;\n }", "IceApp selectByPrimaryKey(Long id);", "public Items findByPrimaryKey(ItemsPk pk) throws ItemsDaoException;", "Owner selectByPrimaryKey(String id);", "E find(Id id) throws RepositoryException;", "Product selectByPrimaryKey(Integer id);", "Dormitory selectByPrimaryKey(Integer id);", "Object getPrimaryKey() throws IllegalStateException;", "public E findOne(ID primaryKey) {\n if ((primaryKey != null) && getDao().existsById(primaryKey)) {\n return getOne(primaryKey);\n }\n\n return null;\n }", "public Todo fetchByPrimaryKey(long todoId);", "@SuppressWarnings(\"unchecked\")\r\n public DomainObject getRecordByPrimaryKey(KeyType id) {\r\n Session session = getSession();\r\n try {\r\n return (DomainObject) session.get(getPersistentClass(), id);\r\n } catch (HibernateException e) {\r\n LOG.error(MODULE + \"Exception in getRecordByPrimaryKey Method:\" + e, e);\r\n throw e;\r\n } finally {\r\n if (session.isOpen()) {\r\n session.close();\r\n }\r\n }\r\n }", "public abstract Object get(String entityName, Serializable id);", "@Override\n\tpublic <T> T find(Class<T> entityClass, Object primaryKey, LockModeType lockMode) {\n\t\treturn null;\n\t}", "public PrimaryKey getPrimaryKey();", "Key getPrimaryKey();", "E getById(long id);", "@Override\n\tpublic PhatVay fetchByPrimaryKey(Serializable primaryKey) {\n\t\tSerializable serializable = entityCache.getResult(\n\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class,\n\t\t\tprimaryKey);\n\n\t\tif (serializable == nullModel) {\n\t\t\treturn null;\n\t\t}\n\n\t\tPhatVay phatVay = (PhatVay)serializable;\n\n\t\tif (phatVay == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tphatVay = (PhatVay)session.get(PhatVayImpl.class, primaryKey);\n\n\t\t\t\tif (phatVay != null) {\n\t\t\t\t\tcacheResult(phatVay);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tentityCache.putResult(\n\t\t\t\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tPhatVayImpl.class, primaryKey, nullModel);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tentityCache.removeResult(\n\t\t\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class,\n\t\t\t\t\tprimaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn phatVay;\n\t}", "StudentEntity selectByPrimaryKey(String studentId);", "E findById(K id);", "@Override\n\tpublic HelloEntity findOne() {\n\t\tLong id = 1L;\n\t\tHelloEntity entity = entityManager.find(HelloEntity.class, id);\n\t\tSystem.out.println(\"findOne: \" + entity.getName());\n\t\treturn null;\n\t}", "@Override\n\tpublic TestPoEntity selectById(Integer pk) {\n\t\treturn null;\n\t}", "PrhFree selectByPrimaryKey(Integer id);", "@Override\r\n\tpublic Share fetchByPrimaryKey(Serializable primaryKey) {\r\n\t\tSerializable serializable = entityCache.getResult(ShareModelImpl.ENTITY_CACHE_ENABLED,\r\n\t\t\t\tShareImpl.class, primaryKey);\r\n\r\n\t\tif (serializable == nullModel) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tShare share = (Share)serializable;\r\n\r\n\t\tif (share == null) {\r\n\t\t\tSession session = null;\r\n\r\n\t\t\ttry {\r\n\t\t\t\tsession = openSession();\r\n\r\n\t\t\t\tshare = (Share)session.get(ShareImpl.class, primaryKey);\r\n\r\n\t\t\t\tif (share != null) {\r\n\t\t\t\t\tcacheResult(share);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tentityCache.putResult(ShareModelImpl.ENTITY_CACHE_ENABLED,\r\n\t\t\t\t\t\tShareImpl.class, primaryKey, nullModel);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\r\n\t\t\t\tentityCache.removeResult(ShareModelImpl.ENTITY_CACHE_ENABLED,\r\n\t\t\t\t\tShareImpl.class, primaryKey);\r\n\r\n\t\t\t\tthrow processException(e);\r\n\t\t\t}\r\n\t\t\tfinally {\r\n\t\t\t\tcloseSession(session);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn share;\r\n\t}", "T load(PK id);", "@ModelAttribute\n\tpublic Entity getEntity(@PathVariable(\"entity\") Long id) {\n\t\tEntity entity = service.findOne(id);\n\t\tif (entity == null) {\n\t\t\tthrow new NotFoundException(String.format(\"Entity with identifier '%s' not found\", id));\n\t\t}\n\t\treturn entity;\n\t}", "@Override\n\tpublic Estado fetchByPrimaryKey(Serializable primaryKey)\n\t\tthrows SystemException {\n\t\treturn fetchByPrimaryKey(((Integer)primaryKey).intValue());\n\t}", "@Override\n\tpublic Person select(PersonKey key) throws KeyNotFoundException {\n\t\t\n\t\ttry {\n\t\t\tPerson person = repo.findById(key).get();\n\t\t\treturn person;\n\t\t\t}\n\t\tcatch(Exception ex) {\n\t\t\tthrow new KeyNotFoundException();\n\t\t}\n\t\t\n\t}", "Account selectByPrimaryKey(String id);", "@Override\n\tpublic <T> T find(Class<T> entityClass, Object primaryKey, Map<String, Object> properties) {\n\t\treturn null;\n\t}", "public <T> T find(Class<T> entityClass, String id);", "@Override\n\tpublic Object findByIdObject(Class<T> entidade, Long id) throws Exception {\n\t\treturn null;\n\t}", "@Override\n\tpublic Paper fetchByPrimaryKey(Serializable primaryKey) {\n\t\tSerializable serializable = entityCache.getResult(PaperModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\tPaperImpl.class, primaryKey);\n\n\t\tif (serializable == nullModel) {\n\t\t\treturn null;\n\t\t}\n\n\t\tPaper paper = (Paper)serializable;\n\n\t\tif (paper == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tpaper = (Paper)session.get(PaperImpl.class, primaryKey);\n\n\t\t\t\tif (paper != null) {\n\t\t\t\t\tcacheResult(paper);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tentityCache.putResult(PaperModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tPaperImpl.class, primaryKey, nullModel);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tentityCache.removeResult(PaperModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\tPaperImpl.class, primaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn paper;\n\t}", "public String ejbFindByPrimaryKey(String primaryKey) \n throws FinderException {\n\n // Precondition\n if ( primaryKey == null ) {\n throw new FinderException( \"null primaryKey\" );\n }\n\n Connection conn = null;\n PreparedStatement stmt = null;\n ResultSet rs = null;\n boolean retVal = false;\n try {\n conn = DBConfiguration.getConnection();\n stmt = conn.prepareStatement(Configuration.SQL_01);\n\n stmt.setString( 1, primaryKey );\n\n rs = stmt.executeQuery();\n retVal = rs.next();\n if ( theLog.isDebugEnabled() ) {\n theLog.debug( \"selectByPrimaryKey: retVal == \" + retVal );\n }\n\n } catch (Exception ex) {\n theLog.debug(\"Exception in ejbFindByPrimaryKey: \" + ex);\n }\n finally {\n DBConfiguration.closeSQLResultSet( rs );\n DBConfiguration.closeSQLStatement( stmt );\n DBConfiguration.closeSQLConnection( conn );\n rs = null;\n stmt = null;\n conn = null;\n }\n\n if (!retVal) {\n String msg = \"Row for id \" + primaryKey + \" not found.\";\n throw new ObjectNotFoundException( msg );\n }\n\n return primaryKey;\n }", "public NominaPuesto findByPrimaryKey(NominaPuestoPk pk) throws NominaPuestoDaoException;", "public final E find(final K id) {\n return getJpaTemplate().find(getEntityClass(), id);\n }", "@Override\n @LogMethod\n public T get(long id) throws InventoryException {\n \tInventoryHelper.checkPositive(id, \"id\");\n T entity = repository.getByKey(id);\n InventoryHelper.checkEntityExist(entity, id);\n return entity;\n }", "O obtener(PK id) throws DAOException;", "Model selectByPrimaryKey(Integer id);", "public abstract T findOne(int id);", "public Cliente findByPrimaryKey(int idCliente) throws ClienteDaoException;", "GoodsPo selectByPrimaryKey(Long id);", "HpItemParamItem selectByPrimaryKey(Long id);", "public ENTITY getByID(long ID) {\n\t\tCriteriaBuilder builder = em.getCriteriaBuilder();\n\t\tCriteriaQuery<BaseModel> query = builder.createQuery(BaseModel.class);\n\t\tRoot baseModel = query.from(BaseModel.class);\n\n\t\tquery.where(builder.equal(baseModel.get(\"ID\"), ID));\n\t\t\n\t\treturn (ENTITY) em.createQuery(query).getSingleResult();\n\t}", "User selectByPrimaryKey(Integer uid);", "@Override\n public Item get(long idItem) throws EntityNotFound;", "E getObject(int ID) throws DatabaseObjectNotFoundException, DatabaseNotAccessibleException;", "Employee selectByPrimaryKey(String id);", "ProEmployee selectByPrimaryKey(String id);", "@Override\n\tpublic <T> T find(Class<T> entityClass, Object primaryKey, LockModeType lockMode, Map<String, Object> properties) {\n\t\treturn null;\n\t}", "@Override\n public E getById(final I id) {\n LOG.info(\"[getById] Start: Id = \" + id);\n LOG.info(\"[getById] End\");\n return entityManager.find(entityClass, id);\n }", "User selectByPrimaryKey(Long userId);", "@Override\n\tpublic TvShow fetchByPrimaryKey(Serializable primaryKey)\n\t\tthrows SystemException {\n\t\tTvShow tvShow = (TvShow)EntityCacheUtil.getResult(TvShowModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\tTvShowImpl.class, primaryKey);\n\n\t\tif (tvShow == _nullTvShow) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (tvShow == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\ttvShow = (TvShow)session.get(TvShowImpl.class, primaryKey);\n\n\t\t\t\tif (tvShow != null) {\n\t\t\t\t\tcacheResult(tvShow);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tEntityCacheUtil.putResult(TvShowModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tTvShowImpl.class, primaryKey, _nullTvShow);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tEntityCacheUtil.removeResult(TvShowModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\tTvShowImpl.class, primaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn tvShow;\n\t}", "public SgfensBanco findByPrimaryKey(SgfensBancoPk pk) throws SgfensBancoDaoException;", "public <T extends BaseEntity> T findOne(T entity) {\n T resultEntity = null;\n List<T> results = select(entity);\n if (results != null && !results.isEmpty()) {\n resultEntity = results.get(0);\n }\n return resultEntity;\n }", "@Override\r\n\tpublic T findEntity(Class<T> c, Serializable id) throws Exception {\n\t\treturn (T) this.getcurrentSession().get(c, id);\r\n\t}", "Promo selectByPrimaryKey(Integer id);", "Article selectByPrimaryKey(String id);", "@Transactional(propagation = Propagation.MANDATORY)\n\tpublic default E getOne(K id) {\n\t\treturn getRepository().getOne(id);\n\t}", "@Override\n\tpublic Candidate fetchByPrimaryKey(Serializable primaryKey)\n\t\tthrows SystemException {\n\t\tCandidate candidate = (Candidate)EntityCacheUtil.getResult(CandidateModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\tCandidateImpl.class, primaryKey);\n\n\t\tif (candidate == _nullCandidate) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (candidate == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tcandidate = (Candidate)session.get(CandidateImpl.class,\n\t\t\t\t\t\tprimaryKey);\n\n\t\t\t\tif (candidate != null) {\n\t\t\t\t\tcacheResult(candidate);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tEntityCacheUtil.putResult(CandidateModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tCandidateImpl.class, primaryKey, _nullCandidate);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tEntityCacheUtil.removeResult(CandidateModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\tCandidateImpl.class, primaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn candidate;\n\t}", "@Override\n\tpublic T findById(Class<T> entidade, Long id) throws Exception {\n\t\treturn null;\n\t}", "@Override\n\tpublic TestUnit fetchByPrimaryKey(Serializable primaryKey) {\n\t\tSerializable serializable = entityCache.getResult(TestUnitModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\tTestUnitImpl.class, primaryKey);\n\n\t\tif (serializable == nullModel) {\n\t\t\treturn null;\n\t\t}\n\n\t\tTestUnit testUnit = (TestUnit)serializable;\n\n\t\tif (testUnit == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\ttestUnit = (TestUnit)session.get(TestUnitImpl.class, primaryKey);\n\n\t\t\t\tif (testUnit != null) {\n\t\t\t\t\tcacheResult(testUnit);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tentityCache.putResult(TestUnitModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tTestUnitImpl.class, primaryKey, nullModel);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tentityCache.removeResult(TestUnitModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\tTestUnitImpl.class, primaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn testUnit;\n\t}" ]
[ "0.73572177", "0.7244391", "0.7241758", "0.7221652", "0.7152582", "0.7053779", "0.7041557", "0.70393485", "0.70234704", "0.6997237", "0.6983788", "0.6961901", "0.6952515", "0.69256586", "0.68732715", "0.6849379", "0.6830854", "0.6786023", "0.67426497", "0.67376924", "0.67279536", "0.6684391", "0.66366893", "0.6633689", "0.66165674", "0.6613814", "0.66093343", "0.65954465", "0.65934515", "0.6585619", "0.6582694", "0.6577725", "0.6560359", "0.6558673", "0.65503275", "0.65353245", "0.65353245", "0.65353245", "0.65353245", "0.65353245", "0.6533856", "0.6523342", "0.65054387", "0.6504181", "0.650078", "0.64985263", "0.64772856", "0.64639825", "0.64611655", "0.6454239", "0.64525133", "0.6447592", "0.6442241", "0.644094", "0.643586", "0.64306134", "0.64188755", "0.6414775", "0.64045423", "0.64024425", "0.6396902", "0.63931096", "0.6389349", "0.6387637", "0.6370719", "0.6364477", "0.63636595", "0.6340583", "0.63402855", "0.6337811", "0.6336021", "0.6314359", "0.6312393", "0.63036865", "0.6292168", "0.6288569", "0.6286671", "0.62861717", "0.62854713", "0.6278004", "0.6272527", "0.62724775", "0.6272074", "0.62679666", "0.6263664", "0.62583053", "0.62568474", "0.6255152", "0.6250292", "0.6247658", "0.62455624", "0.6237482", "0.6217304", "0.62009215", "0.6200801", "0.6199953", "0.6195887", "0.6191934", "0.6191665", "0.61915934", "0.6190403" ]
0.0
-1
Called by findAll() to find all entities in the data store.
@Override public Collection<MovementPK> dbSelectAll() throws DAOSysException { return dbSelectAll(MovementDAO.SELECT_ALL_STM); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public List<BookmarkEntity> findAll() {\n logger.info(\"Entering findAll() in BookmarkDAO\");\n return bookmarkRepository.findAll();\n\n }", "@Override\n public List<R> getAll() {\n return onFindForList(getSession().createCriteria(entityClass).list());\n }", "@Override\n\tpublic List<Store> findAll() {\n\t\treturn storeRepository.findAll();\n\t}", "public static List<FoundObject> findAll() {\n\t\treturn getPersistence().findAll();\n\t}", "@Override\n\t@Transactional\n\tpublic List<Employee> findAll() {\n\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t\n\t\t//create query\n\t\tQuery<Employee> theQuery = currentSession.createQuery(\"from Employee\", Employee.class);\n\t\t\n\t\t//execute query\n\t\tList<Employee> employees = theQuery.getResultList();\n\t\t\n\t\t//currentSession.close();\n\t\t\n\t\treturn employees;\n\t}", "@Override\n\tpublic List<Employee> findAll() {\n\t\t\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t\t\t// create a query\n\t\t\t\tQuery<Employee> theQuery = currentSession.createQuery(\"from Employee\", Employee.class);\n\t\t\t\t\n\t\t\t\t// execute a query and get the result list\n\t\t\t\tList<Employee> employeeList = theQuery.getResultList();\n\t\t\t\t\n\t\t\t\t// return the result list\n\t\t\t\treturn employeeList;\n\t}", "@Override\n\tpublic List<finalDataBean> findAll() throws Exception {\n\t\treturn this.dao.findAll();\n\t}", "public List<Entity> getAll() {\n return entities;\n }", "@Override\n @Transactional\n public List<Contacts> findAll() {\n Session currentSession = entiyManager.unwrap(Session.class);\n\n //create the query\n\n Query<Contacts> theQuery = currentSession.createQuery(\"from Contacts\", Contacts.class);\n\n //execute query and get result list\n\n List<Contacts> contacts = theQuery.getResultList();\n\n //return the results\n\n return contacts;\n }", "public List<E> findAll() {\n return getDao().findAll();\n }", "@Override\n\tpublic List<Employee> findAll() {\n\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t\n\t\t\n\t\t//create a query\n\t\t\n\t\tQuery<Employee> theQuery= currentSession.createQuery(\"from Employee\",Employee.class);\n\t\t\n\t\tList<Employee> theEmployees=theQuery.list();\n\t\treturn theEmployees;\n\t}", "@Override\n\tpublic List<T> getAll() {\n\t\treturn getDao().findAll();\n\t}", "public List findAll() {\n\t\treturn dao.findAll();\r\n\t}", "@Override\n\tpublic Iterable<Sach> findAll() {\n\t\treturn sachRepository.findAll();\n\t}", "@Override\n @Transactional(readOnly = true)\n public List<Goods> findAll() {\n log.debug(\"Request to get all Goods\");\n return goodsRepository.findAll();\n }", "@Override\n\tpublic Iterable<Oglas> findAll() {\n\t\treturn repository.findAll();\n\t}", "@Transactional(readOnly = true)\n\t@Override\n\tpublic List<T> findAll() {\n\t\treturn (List<T>) registroDao.findAll();\n\t}", "@Override\r\n public List<Product> findAll() {\r\n return productRepository.findAll();\r\n }", "@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)\n public List<Product> getProductFindAll() {\n return em.createNamedQuery(\"Product.findAll\", Product.class).getResultList();\n }", "public List<T> findAll() {\n\t Query q = getEntityManager().createQuery(\"select u from \" + getEntityClass().getSimpleName() + \" u\");\n\t return q.getResultList();\n\t }", "@Override\r\n public List<? extends DataStoreEntity> getAllEntities(boolean recursive) {\n return null;\r\n }", "public List<TodoItemEntity> findAll(){\n return todoItemRepository.findAll();\n }", "List<T> findAll() throws RequiredValueException, NoEntityFoundException;", "public java.util.List<DataEntry> findAll();", "@Override\n\t@Transactional\n\tpublic List<Satelite> findAll() {\n\t\treturn (List<Satelite>) sateliteRepository.findAll();\n\t}", "public List<E> findAll();", "List<T> findAll() ;", "List<T> getAll() throws PersistException;", "List<E> findAll();", "List<E> findAll();", "List<E> findAll();", "public List<E> findAll() ;", "@Override\r\n\tpublic List<T> findAll() {\n\t\treturn getSession().createQuery(\r\n\t\t\t\t\"FROM \"+clazz.getSimpleName())\r\n\t\t\t\t.list();\r\n\t}", "@Override\r\n\tpublic List<Person> findAll(){\n\t\tQuery query=em.createQuery(\"Select p from Person p\");\r\n\t\tList<Person> list = query.getResultList();\r\n\t\treturn list;\r\n\t}", "@Override\r\n\tpublic List findAll() {\n\t\treturn usermaindao.findAll();\r\n\t}", "@Override\n\tpublic List<Employee> queryAll() {\n\t\treturn dao.queryAll();\n\t}", "@Before(CUSTOMER_REPOSITORY_FIND_ALL_METHOD)\n\tpublic void beforeFindAll() {\n\t\tSystem.out.println(\"CustomerRepository.findAll() will be called...\");\n\t}", "@Transactional(readOnly = true)\n public Observable<List<E>> findAll() {\n return Observable.create(inSource -> {\n try {\n final List<E> theEntitiesList = mRepository.findAll();\n inSource.onNext(theEntitiesList);\n inSource.onComplete();\n } catch (final Exception theException) {\n inSource.onError(theException);\n }\n });\n }", "@Override\n @Transactional(readOnly = true)\n public List<Mock> findAll() {\n log.debug(\"Request to get all Mocks\");\n return mockRepository.findAll();\n }", "@Override\r\n\tpublic List<AsxDataVO> findAll() {\n\t\treturn mongoTemplate.find(new Query(), AsxDataVO.class);\r\n\t}", "@Override\n public List<T> findAll() {\n String getAllQuery = \"SELECT * FROM \" + getTableName();\n return getJdbcTemplate().query(getAllQuery,\n BeanPropertyRowMapper.newInstance(getEntityClass()));\n }", "@Override\n\tpublic List<Oeuvre> findAll() {\n\t\treturn oeuvreDao.findAll();\n\t}", "List<T> findAll();", "List<T> findAll();", "List<T> findAll();", "public List<Employee> findAll() {\n return employeeRepository.findAll();\n }", "@Override\n public List<T> findAll() {\n return manager\n .createQuery(\"from \" + elementClass.getSimpleName() + \" e\", elementClass)\n .getResultList();\n }", "Collection<T> findAll();", "@Override\n\tpublic List<UsuariosEntity> findAll() {\n\t\treturn (List<UsuariosEntity>) iUsuarios.findAll();\n\t}", "@Override\n\t\t\tpublic List<TestEntity> fetchAll() \n\t\t\t{\n\t\t\t\tList<TestEntity> tests = testDao.findAll();\n\t\t\t\treturn tests;\n\t\t\t}", "@Transactional(readOnly = true) \n public List<Heater> findAll() {\n log.debug(\"Request to get all Heaters\");\n List<Heater> result = heaterRepository.findAll();\n return result;\n }", "public List<Employee> listAll(){\n return employeeRepository.findAll();\n }", "Iterable<T> findAll();", "public List getAll() throws RepositoryException {\n\t\treturn DatanucleusCRUDUtils.getAll(getEntity().getSimpleName());\n\t}", "@Override\n\tpublic List<Resident> getAll() {\n\t\tList<Resident> list = null;\n\t\ttry {\n\t\t\tlist = repository.findAll();\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\t// TODO: handle exception\n\t\t}\n\t\treturn list;\n\t}", "public List<Article> findAll();", "List<T> findAll() throws Exception;", "public List<Entity> getAllEntities()\n\t{\n\t\treturn this.entities;\n\t}", "@Override\n public List<User> findAll() throws DaoException {\n log.info(\"Get all users\");\n return userDao.findAll();\n }", "public List<T> findAll() throws NoSQLException;", "@Override\n public List<User> findAll() {\n return dao.findAll();\n }", "public static List<Item> findAll() {\n\t\treturn getPersistence().findAll();\n\t}", "@Transactional(readOnly = true)\n public List<OrderItems> findAll() {\n log.debug(\"Request to get all OrderItems\");\n return orderItemsRepository.findAll();\n }", "@Override\n @Transactional(readOnly = true)\n public List<DepositoryInfoDTO> findAll() {\n log.debug(\"Request to get all DepositoryInfos\");\n return depositoryInfoRepository.findAll().stream()\n .map(depositoryInfoMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "@Override\n\tpublic List<Factura> findAll() {\n\t\treturn facturaRepository.findAll();\n\t}", "public Items[] findAll() throws ItemsDaoException;", "public List<User> findAll() {\n return store.findAll();\n }", "@Override\r\n\tpublic List<?> findAll(Class<?> entity) {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic List<Empresa> getAll() {\n\t\treturn empresaJpaRepository.findAll();\n\t}", "@Override\r\n\tpublic List<EmployeeBean> getAllData() {\n\r\n\t\tEntityManager manager = entityManagerFactory.createEntityManager();\r\n\r\n\t\tString query = \"from EmployeeBean\";\r\n\r\n\t\tjavax.persistence.Query query2 = manager.createQuery(query);\r\n\r\n\t\tList<EmployeeBean> list = query2.getResultList();\r\n\t\tif (list != null) {\r\n\t\t\treturn list;\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic List<Expense> findAll() {\n\t\treturn expenseRepository.findAll();\r\n\t}", "@Override\r\n\tpublic List<Object> findAll() {\n\t\treturn null;\r\n\t}", "@Transactional(readOnly = true)\n public List<Details> findAll() {\n log.debug(\"Request to get all Details\");\n return detailsRepository.findAll();\n }", "public Collection<T> getAll() throws DaoException;", "public List findAll() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic List<ImageEntity> getAll() {\n\t\treturn DatabaseContext.findAll(ImageEntity.class);\n\t}", "@Override\n\tpublic List<Listing> findAll() {\n\t\treturn theListingRepo.findAll();\n\t}", "@Override\n\tpublic List<Emp> findAll() {\n\t\treturn eb.findAll();\n\t}", "public List<Employee> listAllCrud(){\n return employeeCrudRepository.findAll();\n }", "@Transactional(readOnly = true)\n public List<ChocolateDTO> findAll() {\n log.debug(\"Request to get all Chocolates\");\n return chocolateRepository.findAll().stream()\n .map(chocolateMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "public List<Product> findAll();", "@Transactional(readOnly = true) \r\n public List<OsiMenuEntriesDTO> findAll() {\r\n log.debug(\"Request to get all OsiMenuEntries\");\r\n /* List<OsiMenuEntriesDTO> result = osiMenuEntriesRepository.findAll().stream()\r\n .map(osiMenuEntriesMapper::osiMenuEntriesToOsiMenuEntriesDTO)\r\n .collect(Collectors.toCollection(LinkedList::new));\r\n\r\n return result;*/\r\n return null;\r\n }", "@After(CUSTOMER_REPOSITORY_FIND_ALL_METHOD)\n\tpublic void afterFindAll() {\n\t\tSystem.out.println(\"CustomerRepository.findAll() has been called...\");\n\t}", "public java.util.Collection allRetrieveAETs() \n throws javax.ejb.FinderException;", "@Override\n @Transactional(readOnly = true)\n public List<RecordDTO> findAll() {\n log.debug(\"Request to get all Records\");\n return recordRepository.findAll().stream()\n .map(recordMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "@Transactional(readOnly = true)\n public List<HarnaisDTO> findAll() {\n log.debug(\"Request to get all Harnais\");\n return harnaisRepository.findAll().stream()\n .map(harnaisMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "@Transactional(readOnly = true)\n public List<Ticket> findAll() {\n log.debug(\"Request to get all Tickets\");\n List<Ticket> result = ticketRepository.findAll();\n\n return result;\n }", "@Override\n public List<Page> findAll() {\n Query q = new Query(\"pages\");\n // Use PreparedQuery interface to retrieve results\n PreparedQuery pq = datastore.prepare(q);\n List<Entity> list = pq.asList(FetchOptions.Builder.withDefaults());\n List<Page> result = new ArrayList<>();\n for (Entity entity : list) {\n Page page = new Page();\n page.setId(entity.getKey().getId());\n page.setTitle(entity.getProperty(\"title\").toString());\n page.setDescription(entity.getProperty(\"description\").toString());\n page.setUrl(entity.getProperty(\"url\").toString());\n page.setCrawled((boolean) entity.getProperty(\"crawled\"));\n result.add(page);\n }\n return result;\n }", "List<Product> findAll();", "List<Product> findAll();", "@Transactional(readOnly = true)\n public List<Movie> findAll() {\n log.debug(\"Request to get all MovieS\");\n return movieRepository.findAll();\n }", "@Override\n\tpublic List<Dispositivo> getAll() {\n\t\treturn (List<Dispositivo>) dispositivoDao.findAll();\n\t}", "List<Employee> findAll();", "public Collection findAll() {\n\t\treturn null;\r\n\t}", "List<UserEntity> findAll();", "public CompletableFuture<Iterable<T>> findAll() {\n\t\treturn this.getAll().thenApply((ts) -> (Iterable<T>) ts);\n\t}", "public static List findAll() {\n\t\tSession session = DBManager.getSession();\n\t\treturn session.createQuery(\"SELECT e FROM Estoque e\").list();\n\t}", "@Override\n\tpublic List<Patient> findAll() {\n\t\t// setting logger info\n\t\tlogger.info(\"Find the details of the patient\");\n\t\treturn patientRepo.findAll();\n\t}", "List<Product> getAllProducts() throws PersistenceException;", "@Override\n\tpublic List<Book> findAll() {\n\t\treturn dao.findAll();\n\t}", "@Override\n\t@Transactional\n\tpublic List<Employee> getAllEmployees() {\n\t\treturn employeeDao.getAllEmployees();\n\t}" ]
[ "0.72297066", "0.7226631", "0.72245777", "0.71629107", "0.714772", "0.7074604", "0.6955394", "0.69373536", "0.69326997", "0.6926801", "0.6921797", "0.6896764", "0.6875909", "0.6875729", "0.68256444", "0.68064946", "0.68010736", "0.6787503", "0.67827916", "0.67786855", "0.67516994", "0.67479396", "0.67424446", "0.67115724", "0.6710471", "0.6710364", "0.6708818", "0.66958684", "0.6693063", "0.6693063", "0.6693063", "0.6684485", "0.668342", "0.66799104", "0.6670269", "0.6653526", "0.6637729", "0.6631448", "0.6629704", "0.6621594", "0.66202575", "0.6598558", "0.65949684", "0.65949684", "0.65949684", "0.65781605", "0.6576688", "0.65764886", "0.6574478", "0.65699834", "0.6559336", "0.6553453", "0.6550614", "0.6548886", "0.65386766", "0.6533504", "0.6516707", "0.64998585", "0.64918166", "0.6489662", "0.6485243", "0.6472943", "0.6469479", "0.6464459", "0.6460566", "0.6449663", "0.6445386", "0.643767", "0.6429959", "0.6428995", "0.6417147", "0.6409932", "0.6400933", "0.639861", "0.63921446", "0.6386174", "0.63742167", "0.6371725", "0.637033", "0.6363824", "0.6359718", "0.63550663", "0.6350761", "0.634746", "0.63444155", "0.6339198", "0.6337574", "0.633678", "0.63264346", "0.63264346", "0.6320042", "0.63146466", "0.6313689", "0.63128734", "0.63111633", "0.63111275", "0.6306221", "0.6304569", "0.6303066", "0.6302112", "0.6297755" ]
0.0
-1
Called by findAll() to find all entities in the data store.
@Override public Collection<MovementPK> dbSelectAll(String selectStm) throws DAOSysException { Connection connection = null; PreparedStatement preparedStm = null; ResultSet rs = null; ArrayList<MovementPK> list = null; try { connection = connectToDB(); preparedStm = connection.prepareStatement(selectStm); rs = preparedStm.executeQuery(); list = new ArrayList<>(); while (rs.next()) { list.add(new MovementPK(rs.getInt("movementNumber"), rs.getString("movementName"))); } } catch (SQLException sex) { throw new DAOSysException( "dbSelectAll() SQL Exception\n" + sex.getMessage()); } finally { try { releaseAll(rs, preparedStm, connection); } catch (Exception ex) { System.err.println("Error releasing resources <" + ex.toString()); } } return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public List<BookmarkEntity> findAll() {\n logger.info(\"Entering findAll() in BookmarkDAO\");\n return bookmarkRepository.findAll();\n\n }", "@Override\n public List<R> getAll() {\n return onFindForList(getSession().createCriteria(entityClass).list());\n }", "@Override\n\tpublic List<Store> findAll() {\n\t\treturn storeRepository.findAll();\n\t}", "public static List<FoundObject> findAll() {\n\t\treturn getPersistence().findAll();\n\t}", "@Override\n\t@Transactional\n\tpublic List<Employee> findAll() {\n\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t\n\t\t//create query\n\t\tQuery<Employee> theQuery = currentSession.createQuery(\"from Employee\", Employee.class);\n\t\t\n\t\t//execute query\n\t\tList<Employee> employees = theQuery.getResultList();\n\t\t\n\t\t//currentSession.close();\n\t\t\n\t\treturn employees;\n\t}", "@Override\n\tpublic List<Employee> findAll() {\n\t\t\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t\t\t// create a query\n\t\t\t\tQuery<Employee> theQuery = currentSession.createQuery(\"from Employee\", Employee.class);\n\t\t\t\t\n\t\t\t\t// execute a query and get the result list\n\t\t\t\tList<Employee> employeeList = theQuery.getResultList();\n\t\t\t\t\n\t\t\t\t// return the result list\n\t\t\t\treturn employeeList;\n\t}", "@Override\n\tpublic List<finalDataBean> findAll() throws Exception {\n\t\treturn this.dao.findAll();\n\t}", "public List<Entity> getAll() {\n return entities;\n }", "@Override\n @Transactional\n public List<Contacts> findAll() {\n Session currentSession = entiyManager.unwrap(Session.class);\n\n //create the query\n\n Query<Contacts> theQuery = currentSession.createQuery(\"from Contacts\", Contacts.class);\n\n //execute query and get result list\n\n List<Contacts> contacts = theQuery.getResultList();\n\n //return the results\n\n return contacts;\n }", "public List<E> findAll() {\n return getDao().findAll();\n }", "@Override\n\tpublic List<Employee> findAll() {\n\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t\n\t\t\n\t\t//create a query\n\t\t\n\t\tQuery<Employee> theQuery= currentSession.createQuery(\"from Employee\",Employee.class);\n\t\t\n\t\tList<Employee> theEmployees=theQuery.list();\n\t\treturn theEmployees;\n\t}", "@Override\n\tpublic List<T> getAll() {\n\t\treturn getDao().findAll();\n\t}", "public List findAll() {\n\t\treturn dao.findAll();\r\n\t}", "@Override\n\tpublic Iterable<Sach> findAll() {\n\t\treturn sachRepository.findAll();\n\t}", "@Override\n @Transactional(readOnly = true)\n public List<Goods> findAll() {\n log.debug(\"Request to get all Goods\");\n return goodsRepository.findAll();\n }", "@Override\n\tpublic Iterable<Oglas> findAll() {\n\t\treturn repository.findAll();\n\t}", "@Transactional(readOnly = true)\n\t@Override\n\tpublic List<T> findAll() {\n\t\treturn (List<T>) registroDao.findAll();\n\t}", "@Override\r\n public List<Product> findAll() {\r\n return productRepository.findAll();\r\n }", "@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)\n public List<Product> getProductFindAll() {\n return em.createNamedQuery(\"Product.findAll\", Product.class).getResultList();\n }", "public List<T> findAll() {\n\t Query q = getEntityManager().createQuery(\"select u from \" + getEntityClass().getSimpleName() + \" u\");\n\t return q.getResultList();\n\t }", "@Override\r\n public List<? extends DataStoreEntity> getAllEntities(boolean recursive) {\n return null;\r\n }", "public List<TodoItemEntity> findAll(){\n return todoItemRepository.findAll();\n }", "List<T> findAll() throws RequiredValueException, NoEntityFoundException;", "@Override\n\t@Transactional\n\tpublic List<Satelite> findAll() {\n\t\treturn (List<Satelite>) sateliteRepository.findAll();\n\t}", "public java.util.List<DataEntry> findAll();", "public List<E> findAll();", "List<T> findAll() ;", "List<T> getAll() throws PersistException;", "List<E> findAll();", "List<E> findAll();", "List<E> findAll();", "public List<E> findAll() ;", "@Override\r\n\tpublic List<T> findAll() {\n\t\treturn getSession().createQuery(\r\n\t\t\t\t\"FROM \"+clazz.getSimpleName())\r\n\t\t\t\t.list();\r\n\t}", "@Override\r\n\tpublic List<Person> findAll(){\n\t\tQuery query=em.createQuery(\"Select p from Person p\");\r\n\t\tList<Person> list = query.getResultList();\r\n\t\treturn list;\r\n\t}", "@Override\r\n\tpublic List findAll() {\n\t\treturn usermaindao.findAll();\r\n\t}", "@Override\n\tpublic List<Employee> queryAll() {\n\t\treturn dao.queryAll();\n\t}", "@Before(CUSTOMER_REPOSITORY_FIND_ALL_METHOD)\n\tpublic void beforeFindAll() {\n\t\tSystem.out.println(\"CustomerRepository.findAll() will be called...\");\n\t}", "@Transactional(readOnly = true)\n public Observable<List<E>> findAll() {\n return Observable.create(inSource -> {\n try {\n final List<E> theEntitiesList = mRepository.findAll();\n inSource.onNext(theEntitiesList);\n inSource.onComplete();\n } catch (final Exception theException) {\n inSource.onError(theException);\n }\n });\n }", "@Override\n @Transactional(readOnly = true)\n public List<Mock> findAll() {\n log.debug(\"Request to get all Mocks\");\n return mockRepository.findAll();\n }", "@Override\r\n\tpublic List<AsxDataVO> findAll() {\n\t\treturn mongoTemplate.find(new Query(), AsxDataVO.class);\r\n\t}", "@Override\n public List<T> findAll() {\n String getAllQuery = \"SELECT * FROM \" + getTableName();\n return getJdbcTemplate().query(getAllQuery,\n BeanPropertyRowMapper.newInstance(getEntityClass()));\n }", "@Override\n\tpublic List<Oeuvre> findAll() {\n\t\treturn oeuvreDao.findAll();\n\t}", "List<T> findAll();", "List<T> findAll();", "List<T> findAll();", "public List<Employee> findAll() {\n return employeeRepository.findAll();\n }", "@Override\n public List<T> findAll() {\n return manager\n .createQuery(\"from \" + elementClass.getSimpleName() + \" e\", elementClass)\n .getResultList();\n }", "Collection<T> findAll();", "@Override\n\tpublic List<UsuariosEntity> findAll() {\n\t\treturn (List<UsuariosEntity>) iUsuarios.findAll();\n\t}", "@Override\n\t\t\tpublic List<TestEntity> fetchAll() \n\t\t\t{\n\t\t\t\tList<TestEntity> tests = testDao.findAll();\n\t\t\t\treturn tests;\n\t\t\t}", "@Transactional(readOnly = true) \n public List<Heater> findAll() {\n log.debug(\"Request to get all Heaters\");\n List<Heater> result = heaterRepository.findAll();\n return result;\n }", "public List<Employee> listAll(){\n return employeeRepository.findAll();\n }", "Iterable<T> findAll();", "public List getAll() throws RepositoryException {\n\t\treturn DatanucleusCRUDUtils.getAll(getEntity().getSimpleName());\n\t}", "@Override\n\tpublic List<Resident> getAll() {\n\t\tList<Resident> list = null;\n\t\ttry {\n\t\t\tlist = repository.findAll();\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\t// TODO: handle exception\n\t\t}\n\t\treturn list;\n\t}", "public List<Article> findAll();", "List<T> findAll() throws Exception;", "public List<Entity> getAllEntities()\n\t{\n\t\treturn this.entities;\n\t}", "@Override\n public List<User> findAll() throws DaoException {\n log.info(\"Get all users\");\n return userDao.findAll();\n }", "public List<T> findAll() throws NoSQLException;", "@Override\n public List<User> findAll() {\n return dao.findAll();\n }", "public static List<Item> findAll() {\n\t\treturn getPersistence().findAll();\n\t}", "@Transactional(readOnly = true)\n public List<OrderItems> findAll() {\n log.debug(\"Request to get all OrderItems\");\n return orderItemsRepository.findAll();\n }", "@Override\n @Transactional(readOnly = true)\n public List<DepositoryInfoDTO> findAll() {\n log.debug(\"Request to get all DepositoryInfos\");\n return depositoryInfoRepository.findAll().stream()\n .map(depositoryInfoMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "@Override\n\tpublic List<Factura> findAll() {\n\t\treturn facturaRepository.findAll();\n\t}", "public Items[] findAll() throws ItemsDaoException;", "public List<User> findAll() {\n return store.findAll();\n }", "@Override\r\n\tpublic List<?> findAll(Class<?> entity) {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic List<Empresa> getAll() {\n\t\treturn empresaJpaRepository.findAll();\n\t}", "@Override\r\n\tpublic List<EmployeeBean> getAllData() {\n\r\n\t\tEntityManager manager = entityManagerFactory.createEntityManager();\r\n\r\n\t\tString query = \"from EmployeeBean\";\r\n\r\n\t\tjavax.persistence.Query query2 = manager.createQuery(query);\r\n\r\n\t\tList<EmployeeBean> list = query2.getResultList();\r\n\t\tif (list != null) {\r\n\t\t\treturn list;\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic List<Expense> findAll() {\n\t\treturn expenseRepository.findAll();\r\n\t}", "@Override\r\n\tpublic List<Object> findAll() {\n\t\treturn null;\r\n\t}", "@Transactional(readOnly = true)\n public List<Details> findAll() {\n log.debug(\"Request to get all Details\");\n return detailsRepository.findAll();\n }", "public Collection<T> getAll() throws DaoException;", "public List findAll() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic List<ImageEntity> getAll() {\n\t\treturn DatabaseContext.findAll(ImageEntity.class);\n\t}", "@Override\n\tpublic List<Listing> findAll() {\n\t\treturn theListingRepo.findAll();\n\t}", "public List<Employee> listAllCrud(){\n return employeeCrudRepository.findAll();\n }", "@Override\n\tpublic List<Emp> findAll() {\n\t\treturn eb.findAll();\n\t}", "@Transactional(readOnly = true)\n public List<ChocolateDTO> findAll() {\n log.debug(\"Request to get all Chocolates\");\n return chocolateRepository.findAll().stream()\n .map(chocolateMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "public List<Product> findAll();", "@Transactional(readOnly = true) \r\n public List<OsiMenuEntriesDTO> findAll() {\r\n log.debug(\"Request to get all OsiMenuEntries\");\r\n /* List<OsiMenuEntriesDTO> result = osiMenuEntriesRepository.findAll().stream()\r\n .map(osiMenuEntriesMapper::osiMenuEntriesToOsiMenuEntriesDTO)\r\n .collect(Collectors.toCollection(LinkedList::new));\r\n\r\n return result;*/\r\n return null;\r\n }", "@After(CUSTOMER_REPOSITORY_FIND_ALL_METHOD)\n\tpublic void afterFindAll() {\n\t\tSystem.out.println(\"CustomerRepository.findAll() has been called...\");\n\t}", "public java.util.Collection allRetrieveAETs() \n throws javax.ejb.FinderException;", "@Override\n @Transactional(readOnly = true)\n public List<RecordDTO> findAll() {\n log.debug(\"Request to get all Records\");\n return recordRepository.findAll().stream()\n .map(recordMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "@Transactional(readOnly = true)\n public List<HarnaisDTO> findAll() {\n log.debug(\"Request to get all Harnais\");\n return harnaisRepository.findAll().stream()\n .map(harnaisMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "@Transactional(readOnly = true)\n public List<Ticket> findAll() {\n log.debug(\"Request to get all Tickets\");\n List<Ticket> result = ticketRepository.findAll();\n\n return result;\n }", "@Override\n public List<Page> findAll() {\n Query q = new Query(\"pages\");\n // Use PreparedQuery interface to retrieve results\n PreparedQuery pq = datastore.prepare(q);\n List<Entity> list = pq.asList(FetchOptions.Builder.withDefaults());\n List<Page> result = new ArrayList<>();\n for (Entity entity : list) {\n Page page = new Page();\n page.setId(entity.getKey().getId());\n page.setTitle(entity.getProperty(\"title\").toString());\n page.setDescription(entity.getProperty(\"description\").toString());\n page.setUrl(entity.getProperty(\"url\").toString());\n page.setCrawled((boolean) entity.getProperty(\"crawled\"));\n result.add(page);\n }\n return result;\n }", "List<Product> findAll();", "List<Product> findAll();", "@Transactional(readOnly = true)\n public List<Movie> findAll() {\n log.debug(\"Request to get all MovieS\");\n return movieRepository.findAll();\n }", "@Override\n\tpublic List<Dispositivo> getAll() {\n\t\treturn (List<Dispositivo>) dispositivoDao.findAll();\n\t}", "List<Employee> findAll();", "public Collection findAll() {\n\t\treturn null;\r\n\t}", "List<UserEntity> findAll();", "public CompletableFuture<Iterable<T>> findAll() {\n\t\treturn this.getAll().thenApply((ts) -> (Iterable<T>) ts);\n\t}", "public static List findAll() {\n\t\tSession session = DBManager.getSession();\n\t\treturn session.createQuery(\"SELECT e FROM Estoque e\").list();\n\t}", "List<Product> getAllProducts() throws PersistenceException;", "@Override\n\tpublic List<Patient> findAll() {\n\t\t// setting logger info\n\t\tlogger.info(\"Find the details of the patient\");\n\t\treturn patientRepo.findAll();\n\t}", "@Override\n\tpublic List<Book> findAll() {\n\t\treturn dao.findAll();\n\t}", "@Override\n\t@Transactional\n\tpublic List<Employee> getAllEmployees() {\n\t\treturn employeeDao.getAllEmployees();\n\t}" ]
[ "0.7227542", "0.72256947", "0.72247404", "0.716122", "0.7146878", "0.7073328", "0.6954129", "0.6936857", "0.69322276", "0.69253606", "0.6920576", "0.6896388", "0.6874101", "0.68737906", "0.68251556", "0.6805022", "0.67995214", "0.6786938", "0.6782138", "0.67768", "0.67508715", "0.67472893", "0.6740746", "0.671008", "0.6709941", "0.6708526", "0.67071223", "0.6696421", "0.66914403", "0.66914403", "0.66914403", "0.6682813", "0.66817397", "0.66785", "0.66686416", "0.6653752", "0.663738", "0.6630345", "0.662823", "0.66201043", "0.6618645", "0.6597253", "0.6593124", "0.6593124", "0.6593124", "0.6577268", "0.6575041", "0.6574397", "0.65724903", "0.65702623", "0.65587217", "0.6553612", "0.65479255", "0.654791", "0.6536846", "0.6533126", "0.65146816", "0.64992565", "0.6489505", "0.6487855", "0.6483011", "0.6471743", "0.64684767", "0.6462998", "0.64585584", "0.64485985", "0.6443894", "0.6435964", "0.64296085", "0.64292526", "0.64162433", "0.6407625", "0.6400054", "0.6397724", "0.6389767", "0.63857865", "0.6372311", "0.63706666", "0.63703746", "0.6362444", "0.6359437", "0.6354707", "0.6350515", "0.63462824", "0.6342794", "0.6338245", "0.63362324", "0.6335409", "0.6326405", "0.6326405", "0.6318579", "0.6313954", "0.63129586", "0.63104504", "0.6310079", "0.630787", "0.63053834", "0.6304571", "0.63023037", "0.6300126", "0.62978476" ]
0.0
-1
Called by findAll() to find all entities in the data store.
public Collection<MovementPK> dbSelectByCompositionName(String compositionName) throws DAOSysException { return dbSelectByCompositionName(MovementDAO.SELECT_BY_COMPOSITION_NAME,compositionName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public List<BookmarkEntity> findAll() {\n logger.info(\"Entering findAll() in BookmarkDAO\");\n return bookmarkRepository.findAll();\n\n }", "@Override\n public List<R> getAll() {\n return onFindForList(getSession().createCriteria(entityClass).list());\n }", "@Override\n\tpublic List<Store> findAll() {\n\t\treturn storeRepository.findAll();\n\t}", "public static List<FoundObject> findAll() {\n\t\treturn getPersistence().findAll();\n\t}", "@Override\n\t@Transactional\n\tpublic List<Employee> findAll() {\n\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t\n\t\t//create query\n\t\tQuery<Employee> theQuery = currentSession.createQuery(\"from Employee\", Employee.class);\n\t\t\n\t\t//execute query\n\t\tList<Employee> employees = theQuery.getResultList();\n\t\t\n\t\t//currentSession.close();\n\t\t\n\t\treturn employees;\n\t}", "@Override\n\tpublic List<Employee> findAll() {\n\t\t\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t\t\t// create a query\n\t\t\t\tQuery<Employee> theQuery = currentSession.createQuery(\"from Employee\", Employee.class);\n\t\t\t\t\n\t\t\t\t// execute a query and get the result list\n\t\t\t\tList<Employee> employeeList = theQuery.getResultList();\n\t\t\t\t\n\t\t\t\t// return the result list\n\t\t\t\treturn employeeList;\n\t}", "@Override\n\tpublic List<finalDataBean> findAll() throws Exception {\n\t\treturn this.dao.findAll();\n\t}", "public List<Entity> getAll() {\n return entities;\n }", "@Override\n @Transactional\n public List<Contacts> findAll() {\n Session currentSession = entiyManager.unwrap(Session.class);\n\n //create the query\n\n Query<Contacts> theQuery = currentSession.createQuery(\"from Contacts\", Contacts.class);\n\n //execute query and get result list\n\n List<Contacts> contacts = theQuery.getResultList();\n\n //return the results\n\n return contacts;\n }", "public List<E> findAll() {\n return getDao().findAll();\n }", "@Override\n\tpublic List<Employee> findAll() {\n\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t\n\t\t\n\t\t//create a query\n\t\t\n\t\tQuery<Employee> theQuery= currentSession.createQuery(\"from Employee\",Employee.class);\n\t\t\n\t\tList<Employee> theEmployees=theQuery.list();\n\t\treturn theEmployees;\n\t}", "@Override\n\tpublic List<T> getAll() {\n\t\treturn getDao().findAll();\n\t}", "public List findAll() {\n\t\treturn dao.findAll();\r\n\t}", "@Override\n\tpublic Iterable<Sach> findAll() {\n\t\treturn sachRepository.findAll();\n\t}", "@Override\n @Transactional(readOnly = true)\n public List<Goods> findAll() {\n log.debug(\"Request to get all Goods\");\n return goodsRepository.findAll();\n }", "@Override\n\tpublic Iterable<Oglas> findAll() {\n\t\treturn repository.findAll();\n\t}", "@Transactional(readOnly = true)\n\t@Override\n\tpublic List<T> findAll() {\n\t\treturn (List<T>) registroDao.findAll();\n\t}", "@Override\r\n public List<Product> findAll() {\r\n return productRepository.findAll();\r\n }", "@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)\n public List<Product> getProductFindAll() {\n return em.createNamedQuery(\"Product.findAll\", Product.class).getResultList();\n }", "public List<T> findAll() {\n\t Query q = getEntityManager().createQuery(\"select u from \" + getEntityClass().getSimpleName() + \" u\");\n\t return q.getResultList();\n\t }", "@Override\r\n public List<? extends DataStoreEntity> getAllEntities(boolean recursive) {\n return null;\r\n }", "public List<TodoItemEntity> findAll(){\n return todoItemRepository.findAll();\n }", "List<T> findAll() throws RequiredValueException, NoEntityFoundException;", "public java.util.List<DataEntry> findAll();", "@Override\n\t@Transactional\n\tpublic List<Satelite> findAll() {\n\t\treturn (List<Satelite>) sateliteRepository.findAll();\n\t}", "public List<E> findAll();", "List<T> findAll() ;", "List<T> getAll() throws PersistException;", "List<E> findAll();", "List<E> findAll();", "List<E> findAll();", "@Override\r\n\tpublic List<T> findAll() {\n\t\treturn getSession().createQuery(\r\n\t\t\t\t\"FROM \"+clazz.getSimpleName())\r\n\t\t\t\t.list();\r\n\t}", "public List<E> findAll() ;", "@Override\r\n\tpublic List<Person> findAll(){\n\t\tQuery query=em.createQuery(\"Select p from Person p\");\r\n\t\tList<Person> list = query.getResultList();\r\n\t\treturn list;\r\n\t}", "@Override\r\n\tpublic List findAll() {\n\t\treturn usermaindao.findAll();\r\n\t}", "@Override\n\tpublic List<Employee> queryAll() {\n\t\treturn dao.queryAll();\n\t}", "@Before(CUSTOMER_REPOSITORY_FIND_ALL_METHOD)\n\tpublic void beforeFindAll() {\n\t\tSystem.out.println(\"CustomerRepository.findAll() will be called...\");\n\t}", "@Transactional(readOnly = true)\n public Observable<List<E>> findAll() {\n return Observable.create(inSource -> {\n try {\n final List<E> theEntitiesList = mRepository.findAll();\n inSource.onNext(theEntitiesList);\n inSource.onComplete();\n } catch (final Exception theException) {\n inSource.onError(theException);\n }\n });\n }", "@Override\n @Transactional(readOnly = true)\n public List<Mock> findAll() {\n log.debug(\"Request to get all Mocks\");\n return mockRepository.findAll();\n }", "@Override\r\n\tpublic List<AsxDataVO> findAll() {\n\t\treturn mongoTemplate.find(new Query(), AsxDataVO.class);\r\n\t}", "@Override\n public List<T> findAll() {\n String getAllQuery = \"SELECT * FROM \" + getTableName();\n return getJdbcTemplate().query(getAllQuery,\n BeanPropertyRowMapper.newInstance(getEntityClass()));\n }", "@Override\n\tpublic List<Oeuvre> findAll() {\n\t\treturn oeuvreDao.findAll();\n\t}", "List<T> findAll();", "List<T> findAll();", "List<T> findAll();", "public List<Employee> findAll() {\n return employeeRepository.findAll();\n }", "@Override\n public List<T> findAll() {\n return manager\n .createQuery(\"from \" + elementClass.getSimpleName() + \" e\", elementClass)\n .getResultList();\n }", "Collection<T> findAll();", "@Override\n\tpublic List<UsuariosEntity> findAll() {\n\t\treturn (List<UsuariosEntity>) iUsuarios.findAll();\n\t}", "@Override\n\t\t\tpublic List<TestEntity> fetchAll() \n\t\t\t{\n\t\t\t\tList<TestEntity> tests = testDao.findAll();\n\t\t\t\treturn tests;\n\t\t\t}", "@Transactional(readOnly = true) \n public List<Heater> findAll() {\n log.debug(\"Request to get all Heaters\");\n List<Heater> result = heaterRepository.findAll();\n return result;\n }", "public List<Employee> listAll(){\n return employeeRepository.findAll();\n }", "public List getAll() throws RepositoryException {\n\t\treturn DatanucleusCRUDUtils.getAll(getEntity().getSimpleName());\n\t}", "Iterable<T> findAll();", "@Override\n\tpublic List<Resident> getAll() {\n\t\tList<Resident> list = null;\n\t\ttry {\n\t\t\tlist = repository.findAll();\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\t// TODO: handle exception\n\t\t}\n\t\treturn list;\n\t}", "public List<Article> findAll();", "List<T> findAll() throws Exception;", "public List<Entity> getAllEntities()\n\t{\n\t\treturn this.entities;\n\t}", "@Override\n public List<User> findAll() throws DaoException {\n log.info(\"Get all users\");\n return userDao.findAll();\n }", "public List<T> findAll() throws NoSQLException;", "@Override\n public List<User> findAll() {\n return dao.findAll();\n }", "public static List<Item> findAll() {\n\t\treturn getPersistence().findAll();\n\t}", "@Transactional(readOnly = true)\n public List<OrderItems> findAll() {\n log.debug(\"Request to get all OrderItems\");\n return orderItemsRepository.findAll();\n }", "@Override\n @Transactional(readOnly = true)\n public List<DepositoryInfoDTO> findAll() {\n log.debug(\"Request to get all DepositoryInfos\");\n return depositoryInfoRepository.findAll().stream()\n .map(depositoryInfoMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "@Override\n\tpublic List<Factura> findAll() {\n\t\treturn facturaRepository.findAll();\n\t}", "public Items[] findAll() throws ItemsDaoException;", "public List<User> findAll() {\n return store.findAll();\n }", "@Override\r\n\tpublic List<?> findAll(Class<?> entity) {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic List<Empresa> getAll() {\n\t\treturn empresaJpaRepository.findAll();\n\t}", "@Override\r\n\tpublic List<EmployeeBean> getAllData() {\n\r\n\t\tEntityManager manager = entityManagerFactory.createEntityManager();\r\n\r\n\t\tString query = \"from EmployeeBean\";\r\n\r\n\t\tjavax.persistence.Query query2 = manager.createQuery(query);\r\n\r\n\t\tList<EmployeeBean> list = query2.getResultList();\r\n\t\tif (list != null) {\r\n\t\t\treturn list;\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic List<Expense> findAll() {\n\t\treturn expenseRepository.findAll();\r\n\t}", "@Override\r\n\tpublic List<Object> findAll() {\n\t\treturn null;\r\n\t}", "@Transactional(readOnly = true)\n public List<Details> findAll() {\n log.debug(\"Request to get all Details\");\n return detailsRepository.findAll();\n }", "public Collection<T> getAll() throws DaoException;", "public List findAll() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic List<ImageEntity> getAll() {\n\t\treturn DatabaseContext.findAll(ImageEntity.class);\n\t}", "@Override\n\tpublic List<Listing> findAll() {\n\t\treturn theListingRepo.findAll();\n\t}", "@Override\n\tpublic List<Emp> findAll() {\n\t\treturn eb.findAll();\n\t}", "public List<Employee> listAllCrud(){\n return employeeCrudRepository.findAll();\n }", "@Transactional(readOnly = true)\n public List<ChocolateDTO> findAll() {\n log.debug(\"Request to get all Chocolates\");\n return chocolateRepository.findAll().stream()\n .map(chocolateMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "public List<Product> findAll();", "@Transactional(readOnly = true) \r\n public List<OsiMenuEntriesDTO> findAll() {\r\n log.debug(\"Request to get all OsiMenuEntries\");\r\n /* List<OsiMenuEntriesDTO> result = osiMenuEntriesRepository.findAll().stream()\r\n .map(osiMenuEntriesMapper::osiMenuEntriesToOsiMenuEntriesDTO)\r\n .collect(Collectors.toCollection(LinkedList::new));\r\n\r\n return result;*/\r\n return null;\r\n }", "@After(CUSTOMER_REPOSITORY_FIND_ALL_METHOD)\n\tpublic void afterFindAll() {\n\t\tSystem.out.println(\"CustomerRepository.findAll() has been called...\");\n\t}", "public java.util.Collection allRetrieveAETs() \n throws javax.ejb.FinderException;", "@Override\n @Transactional(readOnly = true)\n public List<RecordDTO> findAll() {\n log.debug(\"Request to get all Records\");\n return recordRepository.findAll().stream()\n .map(recordMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "@Transactional(readOnly = true)\n public List<HarnaisDTO> findAll() {\n log.debug(\"Request to get all Harnais\");\n return harnaisRepository.findAll().stream()\n .map(harnaisMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "@Transactional(readOnly = true)\n public List<Ticket> findAll() {\n log.debug(\"Request to get all Tickets\");\n List<Ticket> result = ticketRepository.findAll();\n\n return result;\n }", "@Override\n public List<Page> findAll() {\n Query q = new Query(\"pages\");\n // Use PreparedQuery interface to retrieve results\n PreparedQuery pq = datastore.prepare(q);\n List<Entity> list = pq.asList(FetchOptions.Builder.withDefaults());\n List<Page> result = new ArrayList<>();\n for (Entity entity : list) {\n Page page = new Page();\n page.setId(entity.getKey().getId());\n page.setTitle(entity.getProperty(\"title\").toString());\n page.setDescription(entity.getProperty(\"description\").toString());\n page.setUrl(entity.getProperty(\"url\").toString());\n page.setCrawled((boolean) entity.getProperty(\"crawled\"));\n result.add(page);\n }\n return result;\n }", "List<Product> findAll();", "List<Product> findAll();", "@Transactional(readOnly = true)\n public List<Movie> findAll() {\n log.debug(\"Request to get all MovieS\");\n return movieRepository.findAll();\n }", "@Override\n\tpublic List<Dispositivo> getAll() {\n\t\treturn (List<Dispositivo>) dispositivoDao.findAll();\n\t}", "List<Employee> findAll();", "public Collection findAll() {\n\t\treturn null;\r\n\t}", "public CompletableFuture<Iterable<T>> findAll() {\n\t\treturn this.getAll().thenApply((ts) -> (Iterable<T>) ts);\n\t}", "List<UserEntity> findAll();", "public static List findAll() {\n\t\tSession session = DBManager.getSession();\n\t\treturn session.createQuery(\"SELECT e FROM Estoque e\").list();\n\t}", "@Override\n\tpublic List<Patient> findAll() {\n\t\t// setting logger info\n\t\tlogger.info(\"Find the details of the patient\");\n\t\treturn patientRepo.findAll();\n\t}", "List<Product> getAllProducts() throws PersistenceException;", "@Override\n\tpublic List<Book> findAll() {\n\t\treturn dao.findAll();\n\t}", "@Override\n\t@Transactional\n\tpublic List<Employee> getAllEmployees() {\n\t\treturn employeeDao.getAllEmployees();\n\t}" ]
[ "0.722825", "0.7226321", "0.7224599", "0.7161483", "0.714725", "0.70736", "0.6955238", "0.6938086", "0.69324654", "0.6925875", "0.6920834", "0.68972903", "0.6874832", "0.6874479", "0.6825585", "0.68057257", "0.6800771", "0.67865694", "0.678181", "0.67778164", "0.6752326", "0.6747544", "0.6740445", "0.67106146", "0.67104214", "0.67081904", "0.67071253", "0.6696141", "0.66910475", "0.66910475", "0.66910475", "0.6682669", "0.6682566", "0.66787136", "0.6669288", "0.66540164", "0.66360873", "0.6630901", "0.662934", "0.66212887", "0.66197336", "0.65977705", "0.65930504", "0.65930504", "0.65930504", "0.6577442", "0.65753543", "0.6574408", "0.65737367", "0.65703654", "0.6559572", "0.6553193", "0.65489197", "0.6548527", "0.65377355", "0.65326715", "0.65144014", "0.6500561", "0.6490258", "0.6487704", "0.6483771", "0.6472006", "0.64691365", "0.64640325", "0.6459303", "0.6448667", "0.64443016", "0.64364314", "0.6430312", "0.6430014", "0.64162266", "0.640833", "0.64008814", "0.6398106", "0.63906205", "0.63863534", "0.63729954", "0.63705975", "0.6370096", "0.6363037", "0.63583994", "0.6355287", "0.63489264", "0.6346146", "0.63438576", "0.63393265", "0.63369083", "0.6336301", "0.63252723", "0.63252723", "0.6319533", "0.6314872", "0.63123757", "0.63113344", "0.6310121", "0.63100165", "0.63054323", "0.6303271", "0.6303126", "0.6300341", "0.6298163" ]
0.0
-1
Called by findAll() to find all entities in the data store.
public Collection<MovementPK> dbSelectByCompositionName(String selectStm, String compositionName) throws DAOSysException { Connection connection = null; PreparedStatement preparedStm = null; ResultSet rs = null; ArrayList<MovementPK> list = null; try { connection = connectToDB(); preparedStm = connection.prepareStatement(selectStm); preparedStm.setString(1, compositionName); rs = preparedStm.executeQuery(); list = new ArrayList<>(); int count = 0; while (rs.next()){ list.add(new MovementPK(rs.getInt(1), rs.getString(2))); count++; } } catch (SQLException sex) { throw new DAOSysException( "dbSelectByCompositionName() SQL Exception\n" + sex.getMessage()); } finally { try { releaseAll(rs, preparedStm, connection); } catch (Exception ex) { System.err.println("Error releasing resources <" + ex.toString()); } } return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public List<BookmarkEntity> findAll() {\n logger.info(\"Entering findAll() in BookmarkDAO\");\n return bookmarkRepository.findAll();\n\n }", "@Override\n public List<R> getAll() {\n return onFindForList(getSession().createCriteria(entityClass).list());\n }", "@Override\n\tpublic List<Store> findAll() {\n\t\treturn storeRepository.findAll();\n\t}", "public static List<FoundObject> findAll() {\n\t\treturn getPersistence().findAll();\n\t}", "@Override\n\t@Transactional\n\tpublic List<Employee> findAll() {\n\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t\n\t\t//create query\n\t\tQuery<Employee> theQuery = currentSession.createQuery(\"from Employee\", Employee.class);\n\t\t\n\t\t//execute query\n\t\tList<Employee> employees = theQuery.getResultList();\n\t\t\n\t\t//currentSession.close();\n\t\t\n\t\treturn employees;\n\t}", "@Override\n\tpublic List<Employee> findAll() {\n\t\t\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t\t\t// create a query\n\t\t\t\tQuery<Employee> theQuery = currentSession.createQuery(\"from Employee\", Employee.class);\n\t\t\t\t\n\t\t\t\t// execute a query and get the result list\n\t\t\t\tList<Employee> employeeList = theQuery.getResultList();\n\t\t\t\t\n\t\t\t\t// return the result list\n\t\t\t\treturn employeeList;\n\t}", "@Override\n\tpublic List<finalDataBean> findAll() throws Exception {\n\t\treturn this.dao.findAll();\n\t}", "public List<Entity> getAll() {\n return entities;\n }", "@Override\n @Transactional\n public List<Contacts> findAll() {\n Session currentSession = entiyManager.unwrap(Session.class);\n\n //create the query\n\n Query<Contacts> theQuery = currentSession.createQuery(\"from Contacts\", Contacts.class);\n\n //execute query and get result list\n\n List<Contacts> contacts = theQuery.getResultList();\n\n //return the results\n\n return contacts;\n }", "public List<E> findAll() {\n return getDao().findAll();\n }", "@Override\n\tpublic List<Employee> findAll() {\n\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t\n\t\t\n\t\t//create a query\n\t\t\n\t\tQuery<Employee> theQuery= currentSession.createQuery(\"from Employee\",Employee.class);\n\t\t\n\t\tList<Employee> theEmployees=theQuery.list();\n\t\treturn theEmployees;\n\t}", "@Override\n\tpublic List<T> getAll() {\n\t\treturn getDao().findAll();\n\t}", "@Override\n\tpublic Iterable<Sach> findAll() {\n\t\treturn sachRepository.findAll();\n\t}", "public List findAll() {\n\t\treturn dao.findAll();\r\n\t}", "@Override\n @Transactional(readOnly = true)\n public List<Goods> findAll() {\n log.debug(\"Request to get all Goods\");\n return goodsRepository.findAll();\n }", "@Override\n\tpublic Iterable<Oglas> findAll() {\n\t\treturn repository.findAll();\n\t}", "@Transactional(readOnly = true)\n\t@Override\n\tpublic List<T> findAll() {\n\t\treturn (List<T>) registroDao.findAll();\n\t}", "@Override\r\n public List<Product> findAll() {\r\n return productRepository.findAll();\r\n }", "@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)\n public List<Product> getProductFindAll() {\n return em.createNamedQuery(\"Product.findAll\", Product.class).getResultList();\n }", "public List<T> findAll() {\n\t Query q = getEntityManager().createQuery(\"select u from \" + getEntityClass().getSimpleName() + \" u\");\n\t return q.getResultList();\n\t }", "@Override\r\n public List<? extends DataStoreEntity> getAllEntities(boolean recursive) {\n return null;\r\n }", "public List<TodoItemEntity> findAll(){\n return todoItemRepository.findAll();\n }", "List<T> findAll() throws RequiredValueException, NoEntityFoundException;", "@Override\n\t@Transactional\n\tpublic List<Satelite> findAll() {\n\t\treturn (List<Satelite>) sateliteRepository.findAll();\n\t}", "public java.util.List<DataEntry> findAll();", "public List<E> findAll();", "List<T> findAll() ;", "List<T> getAll() throws PersistException;", "List<E> findAll();", "List<E> findAll();", "List<E> findAll();", "public List<E> findAll() ;", "@Override\r\n\tpublic List<T> findAll() {\n\t\treturn getSession().createQuery(\r\n\t\t\t\t\"FROM \"+clazz.getSimpleName())\r\n\t\t\t\t.list();\r\n\t}", "@Override\r\n\tpublic List<Person> findAll(){\n\t\tQuery query=em.createQuery(\"Select p from Person p\");\r\n\t\tList<Person> list = query.getResultList();\r\n\t\treturn list;\r\n\t}", "@Override\r\n\tpublic List findAll() {\n\t\treturn usermaindao.findAll();\r\n\t}", "@Override\n\tpublic List<Employee> queryAll() {\n\t\treturn dao.queryAll();\n\t}", "@Before(CUSTOMER_REPOSITORY_FIND_ALL_METHOD)\n\tpublic void beforeFindAll() {\n\t\tSystem.out.println(\"CustomerRepository.findAll() will be called...\");\n\t}", "@Transactional(readOnly = true)\n public Observable<List<E>> findAll() {\n return Observable.create(inSource -> {\n try {\n final List<E> theEntitiesList = mRepository.findAll();\n inSource.onNext(theEntitiesList);\n inSource.onComplete();\n } catch (final Exception theException) {\n inSource.onError(theException);\n }\n });\n }", "@Override\n @Transactional(readOnly = true)\n public List<Mock> findAll() {\n log.debug(\"Request to get all Mocks\");\n return mockRepository.findAll();\n }", "@Override\r\n\tpublic List<AsxDataVO> findAll() {\n\t\treturn mongoTemplate.find(new Query(), AsxDataVO.class);\r\n\t}", "@Override\n public List<T> findAll() {\n String getAllQuery = \"SELECT * FROM \" + getTableName();\n return getJdbcTemplate().query(getAllQuery,\n BeanPropertyRowMapper.newInstance(getEntityClass()));\n }", "@Override\n\tpublic List<Oeuvre> findAll() {\n\t\treturn oeuvreDao.findAll();\n\t}", "List<T> findAll();", "List<T> findAll();", "List<T> findAll();", "public List<Employee> findAll() {\n return employeeRepository.findAll();\n }", "@Override\n public List<T> findAll() {\n return manager\n .createQuery(\"from \" + elementClass.getSimpleName() + \" e\", elementClass)\n .getResultList();\n }", "Collection<T> findAll();", "@Override\n\tpublic List<UsuariosEntity> findAll() {\n\t\treturn (List<UsuariosEntity>) iUsuarios.findAll();\n\t}", "@Override\n\t\t\tpublic List<TestEntity> fetchAll() \n\t\t\t{\n\t\t\t\tList<TestEntity> tests = testDao.findAll();\n\t\t\t\treturn tests;\n\t\t\t}", "@Transactional(readOnly = true) \n public List<Heater> findAll() {\n log.debug(\"Request to get all Heaters\");\n List<Heater> result = heaterRepository.findAll();\n return result;\n }", "public List<Employee> listAll(){\n return employeeRepository.findAll();\n }", "public List getAll() throws RepositoryException {\n\t\treturn DatanucleusCRUDUtils.getAll(getEntity().getSimpleName());\n\t}", "Iterable<T> findAll();", "@Override\n\tpublic List<Resident> getAll() {\n\t\tList<Resident> list = null;\n\t\ttry {\n\t\t\tlist = repository.findAll();\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\t// TODO: handle exception\n\t\t}\n\t\treturn list;\n\t}", "public List<Article> findAll();", "List<T> findAll() throws Exception;", "public List<Entity> getAllEntities()\n\t{\n\t\treturn this.entities;\n\t}", "@Override\n public List<User> findAll() throws DaoException {\n log.info(\"Get all users\");\n return userDao.findAll();\n }", "public List<T> findAll() throws NoSQLException;", "@Override\n public List<User> findAll() {\n return dao.findAll();\n }", "public static List<Item> findAll() {\n\t\treturn getPersistence().findAll();\n\t}", "@Transactional(readOnly = true)\n public List<OrderItems> findAll() {\n log.debug(\"Request to get all OrderItems\");\n return orderItemsRepository.findAll();\n }", "@Override\n @Transactional(readOnly = true)\n public List<DepositoryInfoDTO> findAll() {\n log.debug(\"Request to get all DepositoryInfos\");\n return depositoryInfoRepository.findAll().stream()\n .map(depositoryInfoMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "@Override\n\tpublic List<Factura> findAll() {\n\t\treturn facturaRepository.findAll();\n\t}", "public Items[] findAll() throws ItemsDaoException;", "public List<User> findAll() {\n return store.findAll();\n }", "@Override\r\n\tpublic List<?> findAll(Class<?> entity) {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic List<Empresa> getAll() {\n\t\treturn empresaJpaRepository.findAll();\n\t}", "@Override\r\n\tpublic List<EmployeeBean> getAllData() {\n\r\n\t\tEntityManager manager = entityManagerFactory.createEntityManager();\r\n\r\n\t\tString query = \"from EmployeeBean\";\r\n\r\n\t\tjavax.persistence.Query query2 = manager.createQuery(query);\r\n\r\n\t\tList<EmployeeBean> list = query2.getResultList();\r\n\t\tif (list != null) {\r\n\t\t\treturn list;\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic List<Expense> findAll() {\n\t\treturn expenseRepository.findAll();\r\n\t}", "@Override\r\n\tpublic List<Object> findAll() {\n\t\treturn null;\r\n\t}", "public Collection<T> getAll() throws DaoException;", "@Transactional(readOnly = true)\n public List<Details> findAll() {\n log.debug(\"Request to get all Details\");\n return detailsRepository.findAll();\n }", "public List findAll() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic List<ImageEntity> getAll() {\n\t\treturn DatabaseContext.findAll(ImageEntity.class);\n\t}", "@Override\n\tpublic List<Listing> findAll() {\n\t\treturn theListingRepo.findAll();\n\t}", "public List<Employee> listAllCrud(){\n return employeeCrudRepository.findAll();\n }", "@Override\n\tpublic List<Emp> findAll() {\n\t\treturn eb.findAll();\n\t}", "@Transactional(readOnly = true)\n public List<ChocolateDTO> findAll() {\n log.debug(\"Request to get all Chocolates\");\n return chocolateRepository.findAll().stream()\n .map(chocolateMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "public List<Product> findAll();", "@Transactional(readOnly = true) \r\n public List<OsiMenuEntriesDTO> findAll() {\r\n log.debug(\"Request to get all OsiMenuEntries\");\r\n /* List<OsiMenuEntriesDTO> result = osiMenuEntriesRepository.findAll().stream()\r\n .map(osiMenuEntriesMapper::osiMenuEntriesToOsiMenuEntriesDTO)\r\n .collect(Collectors.toCollection(LinkedList::new));\r\n\r\n return result;*/\r\n return null;\r\n }", "@After(CUSTOMER_REPOSITORY_FIND_ALL_METHOD)\n\tpublic void afterFindAll() {\n\t\tSystem.out.println(\"CustomerRepository.findAll() has been called...\");\n\t}", "public java.util.Collection allRetrieveAETs() \n throws javax.ejb.FinderException;", "@Override\n @Transactional(readOnly = true)\n public List<RecordDTO> findAll() {\n log.debug(\"Request to get all Records\");\n return recordRepository.findAll().stream()\n .map(recordMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "@Transactional(readOnly = true)\n public List<HarnaisDTO> findAll() {\n log.debug(\"Request to get all Harnais\");\n return harnaisRepository.findAll().stream()\n .map(harnaisMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "@Transactional(readOnly = true)\n public List<Ticket> findAll() {\n log.debug(\"Request to get all Tickets\");\n List<Ticket> result = ticketRepository.findAll();\n\n return result;\n }", "@Override\n public List<Page> findAll() {\n Query q = new Query(\"pages\");\n // Use PreparedQuery interface to retrieve results\n PreparedQuery pq = datastore.prepare(q);\n List<Entity> list = pq.asList(FetchOptions.Builder.withDefaults());\n List<Page> result = new ArrayList<>();\n for (Entity entity : list) {\n Page page = new Page();\n page.setId(entity.getKey().getId());\n page.setTitle(entity.getProperty(\"title\").toString());\n page.setDescription(entity.getProperty(\"description\").toString());\n page.setUrl(entity.getProperty(\"url\").toString());\n page.setCrawled((boolean) entity.getProperty(\"crawled\"));\n result.add(page);\n }\n return result;\n }", "List<Product> findAll();", "List<Product> findAll();", "@Transactional(readOnly = true)\n public List<Movie> findAll() {\n log.debug(\"Request to get all MovieS\");\n return movieRepository.findAll();\n }", "@Override\n\tpublic List<Dispositivo> getAll() {\n\t\treturn (List<Dispositivo>) dispositivoDao.findAll();\n\t}", "List<Employee> findAll();", "public Collection findAll() {\n\t\treturn null;\r\n\t}", "List<UserEntity> findAll();", "public CompletableFuture<Iterable<T>> findAll() {\n\t\treturn this.getAll().thenApply((ts) -> (Iterable<T>) ts);\n\t}", "public static List findAll() {\n\t\tSession session = DBManager.getSession();\n\t\treturn session.createQuery(\"SELECT e FROM Estoque e\").list();\n\t}", "List<Product> getAllProducts() throws PersistenceException;", "@Override\n\tpublic List<Patient> findAll() {\n\t\t// setting logger info\n\t\tlogger.info(\"Find the details of the patient\");\n\t\treturn patientRepo.findAll();\n\t}", "@Override\n\tpublic List<Book> findAll() {\n\t\treturn dao.findAll();\n\t}", "@Override\n\t@Transactional\n\tpublic List<Employee> getAllEmployees() {\n\t\treturn employeeDao.getAllEmployees();\n\t}" ]
[ "0.7229067", "0.7228459", "0.72257257", "0.7161528", "0.7148259", "0.70743126", "0.6955106", "0.6939995", "0.6933632", "0.6926543", "0.6921604", "0.6899312", "0.68753123", "0.68752414", "0.6826751", "0.680661", "0.680117", "0.67873144", "0.6782384", "0.677816", "0.675274", "0.6748357", "0.67414993", "0.67113763", "0.6710666", "0.67093474", "0.6708148", "0.6700034", "0.6692441", "0.6692441", "0.6692441", "0.6683485", "0.6683228", "0.6679618", "0.66695017", "0.6655521", "0.6637026", "0.66316783", "0.66298723", "0.66215944", "0.6620534", "0.65979457", "0.65941596", "0.65941596", "0.65941596", "0.65780556", "0.65763056", "0.65755945", "0.6574093", "0.65723747", "0.65600705", "0.65551513", "0.6551058", "0.65489054", "0.65392196", "0.653388", "0.651611", "0.6501751", "0.6491335", "0.6489305", "0.64847666", "0.6472496", "0.6470077", "0.64638627", "0.6459586", "0.64493495", "0.64453346", "0.6436558", "0.6432341", "0.6430345", "0.6417437", "0.64093053", "0.6401039", "0.6401007", "0.63905686", "0.6387806", "0.63734597", "0.63719386", "0.63713086", "0.6364073", "0.6359461", "0.63558716", "0.63506025", "0.6347594", "0.63441277", "0.63400096", "0.633745", "0.63369286", "0.6326579", "0.6326579", "0.6319972", "0.63165", "0.6313835", "0.6311695", "0.6311606", "0.6309593", "0.63060564", "0.630591", "0.6302549", "0.6301547", "0.6300119" ]
0.0
-1
Called by update() to update state for an entity in the database.
@Override public void dbUpdate(MovementModel data) throws DAOSysException { dbUpdate(data, MovementDAO.UPDATE_STM); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateEntity();", "void update(CE entity);", "public void update(E entity);", "@Override\n\tpublic void update(DomainEntity entity) throws SQLException {\n\t\t\n\t}", "protected void onUpdated( E entity, GameState state, int index )\r\n\t{\r\n\t\t\r\n\t}", "E update(E entity);", "E update(E entity);", "void update(T entity);", "void update(T entity);", "public void update() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.update(this);\n\t\tsession.getTransaction().commit();\n\t}", "void update(Student entity);", "@Override\n\tpublic void update(Object entidade) {\n\t\t\n\t}", "@Override\n\tpublic void updateEntity(T t) {\n\t\tgetSession().update(t);\n\t}", "@Override\r\n public void updateEntity(String entityName, DataStoreEntity dataStoreEntity) {\n\r\n }", "@Override\n public void entityRPClassUpdate(RPObject entity) {\n }", "void update(T entity) throws Exception;", "public void Update(StokContract entity) {\n\t\t\n\t}", "@Override\n\tpublic void update(Recipe entity) {\n\t\t\n\t}", "public void update(IEntity entity) throws SQLException;", "@Override\n\tpublic void update(T entity) {\n\t\tbaseDaoImpl.update(entity);\n\t}", "private void updateState(ExecutionEntity entity, TaskState state) {\r\n\t\tupdateStateRecursive(elements, entity, state);\r\n\t}", "@Override\n public E update(E entity) {\n LOG.info(\"[update] Start: entity = \" + entity.getClass().getSimpleName());\n entityManager.merge(entity);\n LOG.info(\"[update] End\");\n return entity;\n }", "@Override\n\tpublic void update(EmpType entity) {\n\t\t\n\t}", "public void update(T entity) {\n\t\tsessionFactory.getCurrentSession().update(entity);\n\t}", "final protected void setEntityState(int newState)\n {\n state = newState;\n }", "public void update()\n {\n modifier = coral.getCurrentSubject();\n modified = new Date();\n try\n {\n persistence.save(this);\n }\n catch(SQLException e)\n {\n throw new BackendException(\"failed to update resource's persitent image\", e);\n }\n try\n {\n Resource impl = coral.getStore().getResource(getId());\n coralEventHub.getGlobal().fireResourceChangeEvent(impl, modifier);\n }\n catch(EntityDoesNotExistException e)\n {\n throw new BackendException(\"inconsistent data\", e);\n }\n }", "public void update(Book entity)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tbookdao.openCurrentSessionwithTransation();\r\n\t\t\tbookdao.update(entity);\r\n\t\t\tbookdao.closeSessionwithTransaction();\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "T update(T entity);", "T update(T entity);", "@Override\n public void update(T entity) throws SQLException {\n\n this.dao.update(entity);\n\n }", "@Override\n public void update(EntityModel model) {\n super.update(model);\n\n }", "@Override\r\n\tpublic void update(PartyType entity) {\n\t\t\r\n\t}", "protected void updated() {\n if (state.isSynced()) {\n this.state.setState(ENodeState.Updated);\n }\n }", "@Override\n\tpublic void Update(PersonelContract entity) {\n\n\t}", "@Override\n\tpublic void updateEntity()\n\t{\n\t\tif (structureComplete() && checkCountdown >= CHECK_MAX)\n\t\t{\n\t\t\tcheckCountdown = 0;\n\t\t\t\n\t\t\t// Refresh the core structure.\n\t\t\tupdateStructure();\n\t\t}\n\t\telse checkCountdown++;\n\t}", "@Override\n\tpublic int updateObject(Evaluate entity) {\n\t\treturn evaluateMapper.updateObject(entity);\n\t}", "abstract public void updateState();", "@Override\n\tpublic void update(EntityManagerFactory emf, Stop entity) {\n\t\t\n\t}", "@Override\n\tpublic ImageEntity update(Object entity) {\n\t\tDatabaseContext.merge(entity);\n\t\treturn (ImageEntity) entity;\n\t}", "public void update(UsStatePk pk, UsState dto) throws UsStateDaoException;", "public <T> T update(T entity);", "@Override\r\n public void update(Answer entity) {\n\r\n }", "boolean update(T entity) throws Exception;", "public void update(){}", "public void update(){}", "@Override\n public void updateEntity(String entitySetName, OEntity entity) {\n super.updateEntity(entitySetName, entity);\n }", "E update(E entiry);", "public void run() {\n\n if (cancelUpdate(persistentEntity, entityAccess)) {\n return;\n }\n\n updateEntry(persistentEntity, updateId, e);\n firePostUpdateEvent(persistentEntity, entityAccess);\n }", "@Override\n\tpublic Map<String, Object> update(StoreBase entity) {\n\t\treturn null;\n\t}", "@Override\n public void itemRPClassUpdate(RPObject entity) {\n }", "@Override\n\tpublic int update(Subordination entity) throws DBOperationException {\n\t\treturn 0;\n\t}", "public void updateState();", "@Override\n\t\tpublic boolean update(Carrera entity, int id) {\n\t\t\t\treturn false;\n\t\t}", "protected void update() throws SQLException {\n\t\tProperties whereClause = new Properties();\n\t\twhereClause.setProperty(\"1\", \"1\");\n\t\tupdatePersistentState(getSchema(), persistentState, whereClause);\n\t}", "@Override\n\tpublic T update(T entity) {\n\t\treturn entity;\n\t}", "@Override\r\n protected void updateObject(SimpleBody object, Entity e) {\n }", "@Override\r\n protected void updateObject(SimpleBody object, Entity e) {\n }", "@Override\n\tpublic boolean update(Message entity) throws SQLException {\n\t\treturn false;\n\t}", "@Override\n\tpublic void queryUpdate() {\n\t\tneedToUpdate = true;\n\t}", "@Override\r\n\tpublic void update(Interest model, InterestEntity entity) {\n\r\n\t}", "public void update() {\n manager.update();\n }", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\r\n\tpublic void updateState(Long id, Integer state) throws ServiceException {\n\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\tif (globalState != null) globalState.update(owner);\r\n\t\t\r\n\t\t// Execute the current state (if any)\r\n\t\tif (currentState != null && newStateEntered) currentState.update(owner);\r\n\t}", "@Override\n public void rootRPClassUpdate(RPObject entity) {\n }", "@Override\n\tpublic void update(String state,String id) {\n\t\tString query=\"UPDATE Book SET State='\"+state+\"' Where id='\"+id+\"'\";\n\t\texecuteQuery(query);\n\t\tnotifyAllObservers();\n\t\t\n\t}", "@Override\n\tpublic void updateProductState(ProductState productState) {\n\t\tlogger.info(\"productStateServiceMong update productState with id : \" + productState.getId());\n\t\tproductStateDAO.updateProductState(productState);\n\n\t}", "@Override\r\n\tpublic Long update(Producto entity) throws Exception {\n\t\treturn productRepository.update(entity);\r\n\t}", "@Override\r\n\tpublic void update(T t) {\n\t\tsuper.getSessionFactory().getCurrentSession().update(t);\r\n\t\tsuper.getSessionFactory().getCurrentSession().flush();\r\n\t}", "@Override\n public void update(IBasicEntity ent) throws CachingException {\n EntityCachingServiceLocator.getEntityCachingService().update(ent);\n }", "public abstract boolean update(T entity) throws ServiceException;", "@Override\n\tpublic int updateState(TransactionalInformationDTO transactionalInformationDTO) {\n\t\treturn session.update(\"ProductMapper.updateState\", transactionalInformationDTO);\n\t}", "@Override\n\tpublic void update(Users entity) {\n\t\tSession session = this.sessionFactory.getCurrentSession();\n \tsession.save(entity);\n\t}", "public Address update(Address entity);", "@Override\n\tpublic void update(Category entity) {\n\n\t}", "void update( State state );", "protected void setState( EntityState newState ) throws BusinessException\n\t{\n\t\t/* Invariant check */\n\t\tif( newState.equals( this.state ) )\n\t\t\tthrow new ActualStateException( );\n\t\t\n\t\t/* Set the state before the observers update */\n\t\tthis.state = newState;\n\t\t\n\t\t/* Notify the observers */\n\t\tHashMap< EntityState, StateEventsFactory > eventFactories = getEventFactories( );\n\t\tStateEventsFactory stateFactory = eventFactories.get( newState );\n\t\ttry\n\t\t{\n\t\t\tArrayList< DomainEvent > events = stateFactory.getEventsFor( newState, FacturaElectronica2DTO.map( this ) );\n\t\t\tnotifyObservers( events );\n\t\t}\n\t\tcatch ( ObserverUpdateFailed e ) \n\t\t{\n\t\t\te.printStackTrace( );\n\t\t\tArrayList< DomainEvent > failoverEvents = stateFactory.getFailoverEventsFor( newState, FacturaElectronica2DTO.map( this ) );\n\t\t\tnotifyObservers( failoverEvents );\n\t\t}\n\t}", "@Override\n\tpublic int update(ElectricalCheck entity) throws Exception {\n\t\treturn 0;\n\t}", "@Test\r\n\tpublic void testUpdate() {\r\n\t\tList<E> entities = dao.findAll();\r\n\t\tE updated = supplyUpdated(entities.get(0));\r\n\t\tdao.update(entities.get(0));\r\n\t\tentities = dao.findAll();\r\n\t\tassertEquals(updated, entities.get(0));\r\n\t}", "@Override\n\tpublic Item update() {\n\t\t\n\t\treadAll();\n\t\n\t\tLOGGER.info(\"State the shoe name you wish to update\");\n\t\tString name = util.getString().toLowerCase();;\n\t\tLOGGER.info(\"State the size you wish to update\");\n\t\tdouble size = util.getDouble();\n\t\tLOGGER.info(\"Change price\");\n\t\tdouble price = util.getDouble();\n\t\tLOGGER.info(\"Change amount in stock\");\n\t\tlong stock = util.getLong();\n\t\tLOGGER.info(\"\\n\");\n\t\treturn itemDAO.update(new Item(name,size,price,stock));\n\t\t\n\t\t\n\t\t\n\t}", "public long update(Entity entity){\r\n\t\ttry {\r\n\t\t\tthis.prepareFields(entity, true);\r\n\t\t\tString tableName = this.getTableName();\r\n\t\t\tTransferObject to = new TransferObject(\r\n\t\t\t\t\t\ttableName,\r\n\t\t\t\t\t\tprimaryKeyTos,\r\n\t\t\t\t\t\tfieldTos, \r\n\t\t\t\t\t\tTransferObject.UPDATE_TYPE);\r\n\t\t\treturn transactStatements(to);\r\n\t\t} catch (Exception e) {\r\n\t\t\tLog.e(\"GPALOG\" , e.getMessage(),e); \r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void update(ERS_USERS entity) {\n\t\t\n\t}", "@Override\r\n\tpublic void updateState(int id, int state) {\n\t}", "E update(ID id, E entity, RequestContext context);", "@Override\n\tpublic void update() {}", "@Override\n\tpublic void update() {}", "@Override\n\tpublic void refresh(Object entity) {\n\t\t\n\t}", "public void executeUpdate();", "E update(E entity) throws ValidationException;", "protected abstract void update();", "protected abstract void update();", "protected abstract void updateEntry(PersistentEntity persistentEntity, K id, T entry);", "@Override\n\tpublic void update(Estado es) {\n\t\tEntityManager em = this.emf.createEntityManager();\n\t\ttry {\n\t\t\tEstado origen = em.find(Estado.class, es.getId());\n\t\t\torigen.setEstado(es.getEstado());\n\t\t\t\n\t\t\tem.merge(origen);\n\t\t\tem.flush();\n\t\t} catch(Exception e) {\n\t\t\t\n\t\t} finally {\n\t\t\tem.close();\n\t\t}\n\t}", "@Override\n\tpublic void update(DatabaseHandler db) {\n\t\tdb.updateWork(this);\n\t}", "@Override\n\tpublic void updateWaybill(WaybillEntity waybill) {\n\t\t\n\t}", "final protected int getEntityState()\n {\n return state;\n }", "void update(T obj) throws PersistException;" ]
[ "0.77764356", "0.74223447", "0.7364495", "0.7172534", "0.7021166", "0.7016338", "0.7016338", "0.69937325", "0.69937325", "0.6900502", "0.68735653", "0.6869477", "0.6861617", "0.6852757", "0.68293613", "0.6825687", "0.67822254", "0.6747574", "0.6747148", "0.67185545", "0.670981", "0.6684999", "0.66764265", "0.6654163", "0.664497", "0.6614736", "0.65985847", "0.65887094", "0.65887094", "0.6561763", "0.65610135", "0.65609694", "0.6550206", "0.6536176", "0.6532486", "0.65319496", "0.65146184", "0.65140396", "0.6511666", "0.6505956", "0.6497735", "0.64797634", "0.64735115", "0.6469403", "0.6469403", "0.6466709", "0.646107", "0.6452594", "0.6441452", "0.64193755", "0.641118", "0.639056", "0.6357751", "0.63326406", "0.63150615", "0.6313194", "0.6313194", "0.6302502", "0.6300694", "0.62832993", "0.6270779", "0.6227818", "0.6227818", "0.6227818", "0.6226031", "0.6225899", "0.62105685", "0.6199082", "0.6179524", "0.6174585", "0.61701035", "0.61690545", "0.6155462", "0.6150307", "0.61436266", "0.61430526", "0.6139026", "0.61339504", "0.6123597", "0.6120361", "0.61186665", "0.611797", "0.6112575", "0.610614", "0.610614", "0.61047864", "0.61005586", "0.6088366", "0.6088329", "0.6088329", "0.60844004", "0.60830027", "0.606914", "0.6067203", "0.6067203", "0.606648", "0.60486794", "0.60467374", "0.60452557", "0.60387474", "0.6037419" ]
0.0
-1
Called by update() to update state for an entity in the database.
@Override public void dbUpdate(MovementModel data, String updateStm) throws DAOSysException { // MovementModel model = data; // Connection connection = null; // PreparedStatement preparedStm = null; // try { // connection = connectToDB(); // preparedStm = connection.prepareStatement(updateStm); // // /* Grab values from persistent fields to store in database */ // preparedStm.setString(1, model.getComposer()); // // int rowCount = preparedStm.executeUpdate(); // if (rowCount == 0) { // throw new DAOSysException( // "Failed to store state for Movement <" // + model.getCompostionName() + ">"); // } // // } catch (SQLException sex) { // throw new DAOSysException( // "dbUpdate() SQL Exception <" // + sex.getMessage() + ">"); // // } finally { // try { // releaseAll(null, preparedStm, connection); // } catch (Exception ex) { // System.err.println("Error releasing resources <" + ex.toString()); // } // } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateEntity();", "void update(CE entity);", "public void update(E entity);", "@Override\n\tpublic void update(DomainEntity entity) throws SQLException {\n\t\t\n\t}", "protected void onUpdated( E entity, GameState state, int index )\r\n\t{\r\n\t\t\r\n\t}", "E update(E entity);", "E update(E entity);", "void update(T entity);", "void update(T entity);", "public void update() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.update(this);\n\t\tsession.getTransaction().commit();\n\t}", "void update(Student entity);", "@Override\n\tpublic void update(Object entidade) {\n\t\t\n\t}", "@Override\n\tpublic void updateEntity(T t) {\n\t\tgetSession().update(t);\n\t}", "@Override\r\n public void updateEntity(String entityName, DataStoreEntity dataStoreEntity) {\n\r\n }", "@Override\n public void entityRPClassUpdate(RPObject entity) {\n }", "void update(T entity) throws Exception;", "public void Update(StokContract entity) {\n\t\t\n\t}", "public void update(IEntity entity) throws SQLException;", "@Override\n\tpublic void update(Recipe entity) {\n\t\t\n\t}", "@Override\n\tpublic void update(T entity) {\n\t\tbaseDaoImpl.update(entity);\n\t}", "private void updateState(ExecutionEntity entity, TaskState state) {\r\n\t\tupdateStateRecursive(elements, entity, state);\r\n\t}", "@Override\n public E update(E entity) {\n LOG.info(\"[update] Start: entity = \" + entity.getClass().getSimpleName());\n entityManager.merge(entity);\n LOG.info(\"[update] End\");\n return entity;\n }", "@Override\n\tpublic void update(EmpType entity) {\n\t\t\n\t}", "public void update(T entity) {\n\t\tsessionFactory.getCurrentSession().update(entity);\n\t}", "final protected void setEntityState(int newState)\n {\n state = newState;\n }", "public void update()\n {\n modifier = coral.getCurrentSubject();\n modified = new Date();\n try\n {\n persistence.save(this);\n }\n catch(SQLException e)\n {\n throw new BackendException(\"failed to update resource's persitent image\", e);\n }\n try\n {\n Resource impl = coral.getStore().getResource(getId());\n coralEventHub.getGlobal().fireResourceChangeEvent(impl, modifier);\n }\n catch(EntityDoesNotExistException e)\n {\n throw new BackendException(\"inconsistent data\", e);\n }\n }", "public void update(Book entity)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tbookdao.openCurrentSessionwithTransation();\r\n\t\t\tbookdao.update(entity);\r\n\t\t\tbookdao.closeSessionwithTransaction();\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "T update(T entity);", "T update(T entity);", "@Override\n public void update(T entity) throws SQLException {\n\n this.dao.update(entity);\n\n }", "@Override\n public void update(EntityModel model) {\n super.update(model);\n\n }", "@Override\r\n\tpublic void update(PartyType entity) {\n\t\t\r\n\t}", "protected void updated() {\n if (state.isSynced()) {\n this.state.setState(ENodeState.Updated);\n }\n }", "@Override\n\tpublic void Update(PersonelContract entity) {\n\n\t}", "@Override\n\tpublic int updateObject(Evaluate entity) {\n\t\treturn evaluateMapper.updateObject(entity);\n\t}", "@Override\n\tpublic void updateEntity()\n\t{\n\t\tif (structureComplete() && checkCountdown >= CHECK_MAX)\n\t\t{\n\t\t\tcheckCountdown = 0;\n\t\t\t\n\t\t\t// Refresh the core structure.\n\t\t\tupdateStructure();\n\t\t}\n\t\telse checkCountdown++;\n\t}", "@Override\n\tpublic void update(EntityManagerFactory emf, Stop entity) {\n\t\t\n\t}", "@Override\n\tpublic ImageEntity update(Object entity) {\n\t\tDatabaseContext.merge(entity);\n\t\treturn (ImageEntity) entity;\n\t}", "abstract public void updateState();", "public void update(UsStatePk pk, UsState dto) throws UsStateDaoException;", "public <T> T update(T entity);", "@Override\r\n public void update(Answer entity) {\n\r\n }", "boolean update(T entity) throws Exception;", "public void update(){}", "public void update(){}", "@Override\n public void updateEntity(String entitySetName, OEntity entity) {\n super.updateEntity(entitySetName, entity);\n }", "E update(E entiry);", "public void run() {\n\n if (cancelUpdate(persistentEntity, entityAccess)) {\n return;\n }\n\n updateEntry(persistentEntity, updateId, e);\n firePostUpdateEvent(persistentEntity, entityAccess);\n }", "@Override\n\tpublic Map<String, Object> update(StoreBase entity) {\n\t\treturn null;\n\t}", "@Override\n public void itemRPClassUpdate(RPObject entity) {\n }", "@Override\n\tpublic int update(Subordination entity) throws DBOperationException {\n\t\treturn 0;\n\t}", "public void updateState();", "@Override\n\t\tpublic boolean update(Carrera entity, int id) {\n\t\t\t\treturn false;\n\t\t}", "protected void update() throws SQLException {\n\t\tProperties whereClause = new Properties();\n\t\twhereClause.setProperty(\"1\", \"1\");\n\t\tupdatePersistentState(getSchema(), persistentState, whereClause);\n\t}", "@Override\n\tpublic T update(T entity) {\n\t\treturn entity;\n\t}", "@Override\r\n protected void updateObject(SimpleBody object, Entity e) {\n }", "@Override\r\n protected void updateObject(SimpleBody object, Entity e) {\n }", "@Override\n\tpublic boolean update(Message entity) throws SQLException {\n\t\treturn false;\n\t}", "@Override\n\tpublic void queryUpdate() {\n\t\tneedToUpdate = true;\n\t}", "@Override\r\n\tpublic void update(Interest model, InterestEntity entity) {\n\r\n\t}", "public void update() {\n manager.update();\n }", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\r\n\tpublic void updateState(Long id, Integer state) throws ServiceException {\n\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\tif (globalState != null) globalState.update(owner);\r\n\t\t\r\n\t\t// Execute the current state (if any)\r\n\t\tif (currentState != null && newStateEntered) currentState.update(owner);\r\n\t}", "@Override\n public void rootRPClassUpdate(RPObject entity) {\n }", "@Override\n\tpublic void update(String state,String id) {\n\t\tString query=\"UPDATE Book SET State='\"+state+\"' Where id='\"+id+\"'\";\n\t\texecuteQuery(query);\n\t\tnotifyAllObservers();\n\t\t\n\t}", "@Override\n\tpublic void updateProductState(ProductState productState) {\n\t\tlogger.info(\"productStateServiceMong update productState with id : \" + productState.getId());\n\t\tproductStateDAO.updateProductState(productState);\n\n\t}", "@Override\r\n\tpublic Long update(Producto entity) throws Exception {\n\t\treturn productRepository.update(entity);\r\n\t}", "@Override\r\n\tpublic void update(T t) {\n\t\tsuper.getSessionFactory().getCurrentSession().update(t);\r\n\t\tsuper.getSessionFactory().getCurrentSession().flush();\r\n\t}", "@Override\n public void update(IBasicEntity ent) throws CachingException {\n EntityCachingServiceLocator.getEntityCachingService().update(ent);\n }", "public abstract boolean update(T entity) throws ServiceException;", "@Override\n\tpublic int updateState(TransactionalInformationDTO transactionalInformationDTO) {\n\t\treturn session.update(\"ProductMapper.updateState\", transactionalInformationDTO);\n\t}", "@Override\n\tpublic void update(Users entity) {\n\t\tSession session = this.sessionFactory.getCurrentSession();\n \tsession.save(entity);\n\t}", "public Address update(Address entity);", "@Override\n\tpublic void update(Category entity) {\n\n\t}", "void update( State state );", "protected void setState( EntityState newState ) throws BusinessException\n\t{\n\t\t/* Invariant check */\n\t\tif( newState.equals( this.state ) )\n\t\t\tthrow new ActualStateException( );\n\t\t\n\t\t/* Set the state before the observers update */\n\t\tthis.state = newState;\n\t\t\n\t\t/* Notify the observers */\n\t\tHashMap< EntityState, StateEventsFactory > eventFactories = getEventFactories( );\n\t\tStateEventsFactory stateFactory = eventFactories.get( newState );\n\t\ttry\n\t\t{\n\t\t\tArrayList< DomainEvent > events = stateFactory.getEventsFor( newState, FacturaElectronica2DTO.map( this ) );\n\t\t\tnotifyObservers( events );\n\t\t}\n\t\tcatch ( ObserverUpdateFailed e ) \n\t\t{\n\t\t\te.printStackTrace( );\n\t\t\tArrayList< DomainEvent > failoverEvents = stateFactory.getFailoverEventsFor( newState, FacturaElectronica2DTO.map( this ) );\n\t\t\tnotifyObservers( failoverEvents );\n\t\t}\n\t}", "@Override\n\tpublic int update(ElectricalCheck entity) throws Exception {\n\t\treturn 0;\n\t}", "@Test\r\n\tpublic void testUpdate() {\r\n\t\tList<E> entities = dao.findAll();\r\n\t\tE updated = supplyUpdated(entities.get(0));\r\n\t\tdao.update(entities.get(0));\r\n\t\tentities = dao.findAll();\r\n\t\tassertEquals(updated, entities.get(0));\r\n\t}", "@Override\n\tpublic Item update() {\n\t\t\n\t\treadAll();\n\t\n\t\tLOGGER.info(\"State the shoe name you wish to update\");\n\t\tString name = util.getString().toLowerCase();;\n\t\tLOGGER.info(\"State the size you wish to update\");\n\t\tdouble size = util.getDouble();\n\t\tLOGGER.info(\"Change price\");\n\t\tdouble price = util.getDouble();\n\t\tLOGGER.info(\"Change amount in stock\");\n\t\tlong stock = util.getLong();\n\t\tLOGGER.info(\"\\n\");\n\t\treturn itemDAO.update(new Item(name,size,price,stock));\n\t\t\n\t\t\n\t\t\n\t}", "public long update(Entity entity){\r\n\t\ttry {\r\n\t\t\tthis.prepareFields(entity, true);\r\n\t\t\tString tableName = this.getTableName();\r\n\t\t\tTransferObject to = new TransferObject(\r\n\t\t\t\t\t\ttableName,\r\n\t\t\t\t\t\tprimaryKeyTos,\r\n\t\t\t\t\t\tfieldTos, \r\n\t\t\t\t\t\tTransferObject.UPDATE_TYPE);\r\n\t\t\treturn transactStatements(to);\r\n\t\t} catch (Exception e) {\r\n\t\t\tLog.e(\"GPALOG\" , e.getMessage(),e); \r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic void update(ERS_USERS entity) {\n\t\t\n\t}", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "@Override\r\n\tpublic void updateState(int id, int state) {\n\t}", "E update(ID id, E entity, RequestContext context);", "@Override\n\tpublic void update() {}", "@Override\n\tpublic void update() {}", "@Override\n\tpublic void refresh(Object entity) {\n\t\t\n\t}", "public void executeUpdate();", "E update(E entity) throws ValidationException;", "protected abstract void updateEntry(PersistentEntity persistentEntity, K id, T entry);", "protected abstract void update();", "protected abstract void update();", "@Override\n\tpublic void update(Estado es) {\n\t\tEntityManager em = this.emf.createEntityManager();\n\t\ttry {\n\t\t\tEstado origen = em.find(Estado.class, es.getId());\n\t\t\torigen.setEstado(es.getEstado());\n\t\t\t\n\t\t\tem.merge(origen);\n\t\t\tem.flush();\n\t\t} catch(Exception e) {\n\t\t\t\n\t\t} finally {\n\t\t\tem.close();\n\t\t}\n\t}", "@Override\n\tpublic void update(DatabaseHandler db) {\n\t\tdb.updateWork(this);\n\t}", "@Override\n\tpublic void updateWaybill(WaybillEntity waybill) {\n\t\t\n\t}", "void update(T obj) throws PersistException;", "final protected int getEntityState()\n {\n return state;\n }" ]
[ "0.77772", "0.7422409", "0.7365465", "0.71744645", "0.7019943", "0.70177716", "0.70177716", "0.6994517", "0.6994517", "0.6901023", "0.687398", "0.6869294", "0.68625355", "0.68538576", "0.6830027", "0.68268526", "0.67821157", "0.67489487", "0.67480534", "0.67202747", "0.67092", "0.6686872", "0.66773826", "0.66563153", "0.6644478", "0.6614587", "0.6600505", "0.65899587", "0.65899587", "0.6564012", "0.6562378", "0.6561163", "0.6548898", "0.65369654", "0.653329", "0.6532337", "0.65143216", "0.6513909", "0.65123856", "0.65047264", "0.6499425", "0.6479527", "0.64750266", "0.64683986", "0.64683986", "0.6467752", "0.6461503", "0.6452475", "0.6442863", "0.64194095", "0.64123166", "0.63885283", "0.6358493", "0.63323057", "0.63165224", "0.6312603", "0.6312603", "0.63037264", "0.63005376", "0.62833846", "0.6270808", "0.6226966", "0.6226966", "0.6226966", "0.6223646", "0.6223547", "0.6211074", "0.6196787", "0.6178783", "0.6176105", "0.61706185", "0.6169744", "0.6156451", "0.6149126", "0.614569", "0.6144027", "0.6139706", "0.6131402", "0.6122626", "0.6120862", "0.6119868", "0.611674", "0.6114806", "0.6105291", "0.6105212", "0.6105212", "0.60980016", "0.6088411", "0.6087804", "0.6087804", "0.60865927", "0.6082498", "0.60705465", "0.6066687", "0.6065555", "0.6065555", "0.6048343", "0.6046771", "0.6045739", "0.6038821", "0.6038019" ]
0.0
-1
Called by remove() to remove the state for an entity from the data store.
@Override public int dbRemove(MovementPK primarykey) throws DAOSysException { return dbRemove(primarykey, MovementDAO.DELETE_STM); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void entityRemoved() {}", "@Override\n\tpublic void remove(Object entity) {\n\t\t\n\t}", "abstract protected void removeEntity(Entity entity);", "@Override\r\n\tpublic void delete(Estates arg0) {\n\t\t\r\n\t}", "void remove( int nIdState );", "@Override\n\tpublic void removeEntity(T t) {\n\t\tgetSession().delete(t);\n\t}", "@Override\n public void removeFromDb() {\n }", "@Override\n\tpublic void remove(Post entity) {\n\t\t\n\t}", "public void removeEntity(Entity entity){\n entityList.remove(entity);\n }", "@Override\n @Transactional\n public void deleteState(long id) {\n stateRepository.deleteById(id);\n }", "private void removeEntity(int index)\n\t{\n\t\tthis.entities.get(index).onDespawn();\n\t\tthis.spatialHashGrid.remove(this.entities.get(index).getSpatialHashGridHandle());\n\t\t\n\t\tthis.entities.set(index, this.entities.get(this.entities.size() - 1));\n\t\tthis.entities.remove(this.entities.size() - 1);\n\t}", "public final void delete() {\n\t\tOllie.delete(this);\n\t\tOllie.removeEntity(this);\n\t\tnotifyChange();\n\t\tid = null;\n\t}", "@Override\n\tpublic Map<String, Object> delete(StoreBase entity) {\n\t\treturn null;\n\t}", "@Override\n\tpublic void remove(EmpType entity) {\n\t\t\n\t}", "public void unsetState()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(STATE$14);\r\n }\r\n }", "public void unsetState()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(STATE$8, 0);\r\n }\r\n }", "public void preRemove(T entity) {\n }", "public void deleteBidStateData() throws DataLayerException\r\n\t{\r\n\t\tbidStateDao.deleteAll();\r\n\t}", "boolean removeObjectFlowState(ObjectFlowState objectFlowState);", "public void remove(E e) {\n\t\tentities.remove(e);\n\t}", "public void remove() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.delete(this);\n\t\tsession.getTransaction().commit();\n\t}", "@Observable\n public AbstractBatchAction<T> removeFromSaveEntities(final T entity) {\n this.saveEntities.remove(entity);\n return this;\n }", "@Override\n public void remove() {\n if (lastItem == null)\n throw new IllegalStateException();\n bag.remove(lastItem);\n lastItem = null;\n }", "public void deleteTaskStateData() throws DataLayerException\r\n\t{\r\n\t\ttaskStateDao.deleteAll();\r\n\t}", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "@Override\n public E delete(final E entity) {\n LOG.info(\"[delete] Start: entity = \" + entity.getClass().getSimpleName());\n entityManager.remove(entity);\n LOG.info(\"[delete] End\");\n return entity;\n }", "void removeEntity(IViewEntity entity);", "void removeNode(Entity entity) {\n\t\tProcessing.nodeSet.remove(entity);\n\t\tProcessing.friendMap.remove(entity);\n\n\t\tSystem.out.println(\"the person was successfully removed from the network.\");\n\t}", "void entityDestroyed(Entity entity);", "@Override\n public void removed(Entity e) {\n AI ai = AIm.get(e);\n if (ai.active) {\n ai.active = false;\n startMove = startAction = true;\n groupAiDone= false;\n screen.processTurn();\n // Future note: This transition comes quite abruptly.\n // It would be nice to somehow delay it, but because\n // the entity has just been removed, it won't be\n // processed any more. Perhaps give processTurn()\n // a boolean argument which will pause for a second\n // or so before selecting the new entity and moving\n // the camera on.\n\n }\n }", "@Override\n\t\t\t\tpublic void remove() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void remove() {\n }", "public void remove() {\n removed = true;\n if (room == null)\n return;\n room.removeEntity(this);\n }", "void removeHasState(String oldHasState);", "public final void remove(final E entity) {\n getJpaTemplate().remove(entity);\n }", "void remove(Student entity);", "public final void popState() {\n engine.getGameStateManager().popState();\n }", "@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}", "private void remove() {\n disableButtons();\n clientgui.getClient().sendDeleteEntity(cen);\n cen = Entity.NONE;\n }", "public abstract void remove(Class<?> entity, Object paramObject);", "@Override\n public void remove() {\n }", "public int removeEntity(Entity e) {\n Entity removed = this.entity_list_.remove(e.name_);\n if (removed != null) {\n System.out.println(removed.name_ + \" has been removed from the map\");\n } else {\n System.err.println(\"The entity to be removed does not exist in the list of entities\");\n }\n if (this.map_grid_[e.getMapRelation().getMyYCoordinate()][e.getMapRelation().getMyXCoordinate()].getEntity() == e) {\n this.map_grid_[e.getMapRelation().getMyYCoordinate()][e.getMapRelation().getMyXCoordinate()].removeEntity();\n //e.setMapRelation(null);\n //System.gc();\n return 0;\n } else {\n System.err.println(\"The avatar to be removed cannot be found on the map.\");\n System.exit(-88);\n return -1;\n }\n }", "@Observable\n public AbstractBatchAction<T> removeFromRemoveEntities(final T entity) {\n this.removeEntities.remove(entity);\n return this;\n }", "@Override\n\tpublic void remove() { }", "public void delete(UsStatePk pk) throws UsStateDaoException;", "@Override\n public void remove() throws IllegalStateException{\n it.remove();\n }", "@Override\n\tpublic int deleteObject(Evaluate entity) {\n\t\treturn evaluateMapper.deleteObject(entity);\n\t}", "@Test\n\tpublic void testRemoval() {\n\t\tLong id = RedisQuery.nextUniqueId();\n\t\tEntityTest et = new EntityTest(id, \"EntityTestToRemove\");\n\t\tif (RedisQuery.save(et, id)) {\n\t\t\t// Remove the entity\n\t\t\tRedisQuery.remove(et, id);\n\t\t} else {\n\t\t\tthrow new AssertionError(\"Unable to create entity to remove\");\n\t\t}\n\t}", "public void markForRemoval(Entity entity) {\n\t\tthis.clearList.add(entity);\n\t}", "public void remove(Order entity) {\n\t\tsuper.internalRemove(entity);\n\t}", "@Override\r\n\tpublic void delete(T instance) {\r\n\t\tif (isManaged(instance)) {\r\n\t\t\tinstance = loadInstance(instance.getId());\r\n\t\t\tgetEntityManager().remove(getEntityManager().merge(instance));\r\n\t\t}\r\n\t}", "public final void remove () {\r\n }", "public void remove() {\r\n super.remove();\r\n }", "@Override\r\n\t\tpublic void remove() {\r\n\t\t\t// YOU DO NOT NEED TO WRITE THIS\r\n\t\t}", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void delete(Book entity) {\n\t\tentityManager.remove(entityManager.contains(entity) ? entity : entityManager.merge(entity));\n\t}", "public void removed() {\n }", "public void deleteState(IUserState userState)\n\t{\n\t\tmediator.removeState();\n\t\tstateList.remove(userState);\n\t}", "public void remove(T entity) throws DataAccessException;", "@DeleteMapping(path=\"/api/private/admin/delete/state\")\n\tpublic void removeState(@RequestParam String stateId){\n\t\t this.commonServices.removeState(stateId);\n\t}", "@Override\n\tpublic void removeAt(final int index) {\n\t\tremoveFromInsertionOrder(index);\n\t\tsuper.removeAt(index); // clear key, state, value; adjust size\n\t}", "@Override\n\tpublic ImageEntity delete(Object entity) {\n\t\tDatabaseContext.delete(entity);\n\t\treturn (ImageEntity) entity;\n\t}", "protected void delete(Object entity) {\r\n try {\r\n entityManager.getTransaction().begin();\r\n entityManager.remove(entity);\r\n entityManager.getTransaction().commit();\r\n } catch (Exception e) {\r\n System.err.println(\"Erro ao remover Entidade \" + e.getMessage());\r\n }\r\n }", "void delete(E entity);", "void delete(E entity);", "public void deletePhysical(final T entity)\n\t{\n\t\tem.remove(entity);\n\t}", "@Override\r\n public void deleteEntity(String entityName) {\n\r\n }", "@Override\n\tpublic void undo() {\n\t\tthis.list.delete(shape);\n\n\t}", "void unsetState();", "public void remove(IBasicEntity ent) throws CachingException {\n this.remove(ent.getEntityIdentifier());\n }", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "public void remove() {\n\n }", "public void remove () {}", "public void remove() {\n\t }", "public void remove() {\n\t }", "public void remove() {\n\t }", "@Override\n\tpublic void entityDeleted(TGEntity entity) {\n \tOptional<TGAttribute> attr = entity.getAttributes().stream().findFirst();\n gLogger.log(TGLogger.TGLevel.Debug, \"Entity is deleted - \" + (attr.isPresent() ? attr.get().getValue() : \"no attribute found\"));\n removedList.put(((AbstractEntity) entity).getVirtualId(), entity);\n\t}", "public void entityDeactivating() {}", "@Override\r\n\t\tpublic void remove() {\n\r\n\t\t}", "public void popState();", "@Override\n public void cascadeRemove(RDFPersistent rootRDFEntity, RDFEntityManager rdfEntityManager) {\n //Preconditions\n assert rdfEntityManager != null : \"rdfEntityManager must not be null\";\n assert roles != null : \"roles must not be null\";\n assert !roles.isEmpty() : \"roles must not be empty for node \" + name;\n\n stateValueBindings.stream().forEach((stateValueBinding) -> {\n stateValueBinding.cascadeRemove(\n rootRDFEntity,\n rdfEntityManager);\n });\n roles.stream().forEach((role) -> {\n role.cascadeRemove(\n rootRDFEntity,\n rdfEntityManager);\n });\n rdfEntityManager.remove(this);\n }", "public void remove() {\r\n //\r\n }", "public void clearStateSpecificEntries(Entry.State state);", "public void clear() { this.store.clear(); }", "@Override\n\tpublic void remove(Estado es) {\n\t\tEntityManager em = this.emf.createEntityManager();\n\t\ttry {\n\t\t\tem.remove(em.find(Libro.class, es.getId()));\n\t\t} catch (Exception e) {\n\t\t\t\n\t\t} finally {\n\t\t\tem.close();\n\t\t}\n\t}", "public void popState() {\n\t\tstates.pop();\n\t}" ]
[ "0.7031617", "0.6982829", "0.66661143", "0.6538825", "0.6537327", "0.6454366", "0.6440292", "0.63772917", "0.63451976", "0.6341358", "0.61984336", "0.6189448", "0.61888427", "0.6179043", "0.6141679", "0.61326647", "0.6131954", "0.6092018", "0.6086564", "0.6054325", "0.60428625", "0.60032475", "0.59988624", "0.59913033", "0.5978556", "0.5978556", "0.59764594", "0.59695834", "0.59694636", "0.5964096", "0.596336", "0.59540755", "0.5947853", "0.5940524", "0.5938945", "0.59322464", "0.5921441", "0.59211606", "0.5907076", "0.5907076", "0.58986753", "0.5889766", "0.5874462", "0.5865889", "0.5855154", "0.58550274", "0.5853305", "0.58527654", "0.5838381", "0.58285606", "0.58277285", "0.5809117", "0.5798229", "0.576875", "0.5766942", "0.5753786", "0.57519466", "0.57519466", "0.57519466", "0.57519466", "0.57519466", "0.57519466", "0.57519466", "0.574847", "0.57337624", "0.57253855", "0.5722248", "0.57214284", "0.5717642", "0.5713457", "0.5687428", "0.5686156", "0.5686156", "0.5683058", "0.5672946", "0.5671786", "0.56697655", "0.5667667", "0.5663213", "0.5663213", "0.5663213", "0.5663213", "0.5663213", "0.5663213", "0.5663213", "0.5663213", "0.56585205", "0.564309", "0.56420696", "0.56420696", "0.56420696", "0.56354016", "0.56320685", "0.5629195", "0.5607516", "0.56062686", "0.5593912", "0.55902696", "0.557662", "0.5576198", "0.5570407" ]
0.0
-1
Called by remove() to remove the state for a Movement entity from the database.
@Override public int dbRemove(MovementPK primarykey, String deleteStm) throws DAOSysException { MovementPK pk = primarykey; Connection connection = null; PreparedStatement preparedStm = null; int result = 0; try { connection = connectToDB(); preparedStm = connection.prepareStatement(deleteStm); preparedStm.setInt(1, pk.getMovementNumber()); preparedStm.setString(2, pk.getMovementName()); result = preparedStm.executeUpdate(); if (result == 0) { throw new SQLException( "Failed to remove Movement <" + pk.toString() + ">."); } } catch (SQLException sex) { throw new DAOSysException( "dbRemove() SQL Exception <" + pk.toString() + "> " + sex.getMessage()); } finally { try { releaseAll(null, preparedStm, connection); } catch (SQLException sqlex) { throw new DAOSysException(sqlex.toString()); } } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void remove( int nIdState );", "public void remove() {\n removed = true;\n if (room == null)\n return;\n room.removeEntity(this);\n }", "public void entityRemoved() {}", "@Override\n public void removed(Entity e) {\n AI ai = AIm.get(e);\n if (ai.active) {\n ai.active = false;\n startMove = startAction = true;\n groupAiDone= false;\n screen.processTurn();\n // Future note: This transition comes quite abruptly.\n // It would be nice to somehow delay it, but because\n // the entity has just been removed, it won't be\n // processed any more. Perhaps give processTurn()\n // a boolean argument which will pause for a second\n // or so before selecting the new entity and moving\n // the camera on.\n\n }\n }", "@Override\n public void removeFromDb() {\n }", "@Override\n\tpublic int dbRemove(MovementPK primarykey)\tthrows DAOSysException\t{\n\t\treturn dbRemove(primarykey, MovementDAO.DELETE_STM);\n\t}", "@Override\r\n\tpublic void delete(Estates arg0) {\n\t\t\r\n\t}", "void moveRemoved(Move move);", "@Override\n\tpublic void remove(Object entity) {\n\t\t\n\t}", "public void unsetState()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(STATE$14);\r\n }\r\n }", "public final void popState() {\n engine.getGameStateManager().popState();\n }", "abstract protected void removeEntity(Entity entity);", "public void unsetState()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(STATE$8, 0);\r\n }\r\n }", "public void remove() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.delete(this);\n\t\tsession.getTransaction().commit();\n\t}", "@Override\n\tpublic void removeEntity(T t) {\n\t\tgetSession().delete(t);\n\t}", "@Override\n public void remove() {\n if (lastItem == null)\n throw new IllegalStateException();\n bag.remove(lastItem);\n lastItem = null;\n }", "public void removeFromLocation() {\n if (getAssignedLocation() != location) {\n this.location.fireEmployee(this);\n this.location = null;\n //bidirectional relationship!\n }\n System.out.println(\"We are firing an employee! \" + getName());\n }", "@Override\n @Transactional\n public void deleteState(long id) {\n stateRepository.deleteById(id);\n }", "boolean removeObjectFlowState(ObjectFlowState objectFlowState);", "@Override\n\tpublic void onRemove(final CSimulation game, final CUnit unit) {\n\t}", "@Override\n public void remove() throws IllegalStateException{\n it.remove();\n }", "@Override\n\tpublic void remove(Estado es) {\n\t\tEntityManager em = this.emf.createEntityManager();\n\t\ttry {\n\t\t\tem.remove(em.find(Libro.class, es.getId()));\n\t\t} catch (Exception e) {\n\t\t\t\n\t\t} finally {\n\t\t\tem.close();\n\t\t}\n\t}", "public void delete(UsStatePk pk) throws UsStateDaoException;", "public void removeUnit(){\r\n tacUnit = null;\r\n }", "public void removeFromGame(){\n this.isInGame = false;\n }", "void removeHasState(String oldHasState);", "public void remove(E e) {\n\t\tentities.remove(e);\n\t}", "public int removeEntity(Entity e) {\n Entity removed = this.entity_list_.remove(e.name_);\n if (removed != null) {\n System.out.println(removed.name_ + \" has been removed from the map\");\n } else {\n System.err.println(\"The entity to be removed does not exist in the list of entities\");\n }\n if (this.map_grid_[e.getMapRelation().getMyYCoordinate()][e.getMapRelation().getMyXCoordinate()].getEntity() == e) {\n this.map_grid_[e.getMapRelation().getMyYCoordinate()][e.getMapRelation().getMyXCoordinate()].removeEntity();\n //e.setMapRelation(null);\n //System.gc();\n return 0;\n } else {\n System.err.println(\"The avatar to be removed cannot be found on the map.\");\n System.exit(-88);\n return -1;\n }\n }", "private void removeEntity(int index)\n\t{\n\t\tthis.entities.get(index).onDespawn();\n\t\tthis.spatialHashGrid.remove(this.entities.get(index).getSpatialHashGridHandle());\n\t\t\n\t\tthis.entities.set(index, this.entities.get(this.entities.size() - 1));\n\t\tthis.entities.remove(this.entities.size() - 1);\n\t}", "void removeFromGame() {\n\t\t// remove from game\n\t\t//only for multi-player\n\t}", "public void deleteState(IUserState userState)\n\t{\n\t\tmediator.removeState();\n\t\tstateList.remove(userState);\n\t}", "public void remove(Order entity) {\n\t\tsuper.internalRemove(entity);\n\t}", "@Override\n public void endState() {\n spells.clear();\n spellButtons.clear();\n }", "public void removeTile(){\n\t\toccupied = false;\n\t\tcurrentTile = null;\n\t}", "void unsetState();", "public Boolean deleteSM(StoreMovement sm){\n\t\tTblStoreMovement tblsm = new TblStoreMovement();\n\t\tSession session = HibernateUtils.getSessionFactory().openSession();\n\t\tTransaction tx = null;\n\t\ttry{\n\t\t\ttblsm.convertToTable(sm);\n\t\t\ttx = session.beginTransaction();\n\t\t\tsession.delete(tblsm);\n\t\t\ttx.commit();\n\t\t}catch(HibernateException e){\n\t\t\tSystem.err.println(\"ERROR IN LIST!!!!!!\");\n\t\t\tif (tx!= null) tx.rollback();\n\t\t\te.printStackTrace();\n\t\t\tsession.close();\n\t\t\tthrow new ExceptionInInitializerError(e);\n\t\t}finally{\n\t\t\tsession.close();\n\t\t}\n\t\treturn true;\n\t\t\n\t}", "@Override\r\n\tpublic void perform() {\n\t\tview.removeMapMonster(toremove);\r\n\t}", "@Override\n\tpublic void remove(EmpType entity) {\n\t\t\n\t}", "private void removeState(int position, int stateIndex) {\n\t\t\n\t\tif(position == -1) {\n\t\t\tthis.logPriors.remove(stateIndex);\n\t\t} else {\n\t\t\t// address transitions *to* the removed state\n\t\t\tConcurrentHashMap<Integer, Double> toStates;\n\t\t\tthis.inSupport.get(position).remove(stateIndex);\n\t\t\t\n\t\t\tfinal ConcurrentHashMap<Integer, ConcurrentHashMap<Integer, Double>> map = this.logTransitions.get(position);\n\t\t\tDouble remove;\n\t\t\tfor (Integer fromState : map.keySet()) {\n\t\t\t\ttoStates = map.get(fromState);\n\t\t\t\tremove = toStates.remove(stateIndex); // state is gone: can't transition to it\n\t\t\t\t\t\n\t\t\t\tif (remove != null && toStates.isEmpty()) {\n\t\t\t\t\tfinal Set<Integer> set = posStateToRemove.get(position-1);\n\t\t\t\t\tsynchronized (set) {\n\t\t\t\t\t\tset.add(fromState);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// address transitions *from* the removed state\n\t\tthis.logTransitions.get(position+1).remove(stateIndex);\n\t}", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "public void remove () { this.setAsDown(); n.remove(); }", "@Override\n public void destroy() {\n super.destroy();\n dungeon.removeEntity(this);\n }", "public void removeEntity(Entity entity){\n entityList.remove(entity);\n }", "public abstract void remove(Class<?> entity, Object paramObject);", "public void removeActor(Actor act) { ActorSet.removeElement(act); }", "void remove(Student entity);", "protected void doDeleteBuilding() {\r\n\t\tif (renderer.surface != null) {\r\n\t\t\tUndoableMapEdit undo = new UndoableMapEdit(renderer.surface);\r\n\t\t\tdeleteEntitiesOf(renderer.surface.buildingmap, renderer.selectedRectangle, true);\r\n\t\t\tundo.setAfter();\r\n\t\t\taddUndo(undo);\r\n\t\t\trepaint();\r\n\t\t}\r\n\t}", "protected abstract void removeItem();", "public abstract void removeMove(Move move, int indexOfMove, String label);", "public void remove () {}", "@Override\n\t\t\t\tpublic void remove() {\n\t\t\t\t\t\n\t\t\t\t}", "public abstract void removeLocation(Location location);", "@Override\n public void remove() {\n }", "public void undo() {\n target.setCombatState( oldState );\n }", "public void deleteState(String type, String state) {\r\n\t\tTaskType tt = getType(type);\r\n\t\tTaskState ts = getState(type, state);\r\n\t\tif (tt != null && ts != null)\r\n\t\t\ttt.states.remove(ts);\r\n\t}", "@Override\n\tpublic void remove() { }", "@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}", "public void popState();", "private void remove() {\n disableButtons();\n clientgui.getClient().sendDeleteEntity(cen);\n cen = Entity.NONE;\n }", "public void deleteInstance(){\n //cancels the runnable\n shouldCancelRunnable = true;\n //remove the chest from the map to avoid confusion\n this.location.getBlock().setType(Material.AIR);\n //unregister from all events, we're done!\n HandlerList.unregisterAll(this);\n }", "public void remove(Element e) {\n\t\tlistLiving.remove(e);\n\t\tmapContains.put(e.getPosition(), null);\n\t}", "public final void delete() {\n\t\tOllie.delete(this);\n\t\tOllie.removeEntity(this);\n\t\tnotifyChange();\n\t\tid = null;\n\t}", "@DeleteMapping(path=\"/api/private/admin/delete/state\")\n\tpublic void removeState(@RequestParam String stateId){\n\t\t this.commonServices.removeState(stateId);\n\t}", "public void removeFromWorld(World world);", "@Override\n public void tick()\n {\n super.tick();\n\n if (source == null) // fix for saved entity music source so they don't NPE on a tick.\n {\n source = this.blockPosition();\n }\n\n if(!this.level.isClientSide())\n {\n boolean hasActiveTuneEntry = PlayManager.activeTuneEntityExists(this);\n if (!this.isAlive() || this.level.isEmptyBlock(this.source) || !(this.hasExactlyOnePlayerPassenger()) || !hasActiveTuneEntry)\n {\n if (PlayManager.activeTuneEntityActive(this))\n PlayManager.stopPlayingEntity(this);\n LOGGER.debug(\"has playId: {}\", hasActiveTuneEntry);\n LOGGER.debug(\"{} removed from world.\", this.getId());\n LOGGER.debug(\"{} @Block is Air: {}.\", this.getId(), this.level.isEmptyBlock(this.source));\n this.remove(RemovalReason.DISCARDED);\n this.level.updateNeighbourForOutputSignal(blockPosition(), this.level.getBlockState(blockPosition()).getBlock());\n }\n }\n }", "void remove(Actor actor);", "@Override\n public void remove() {\n }", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public void deleteTaskStateData() throws DataLayerException\r\n\t{\r\n\t\ttaskStateDao.deleteAll();\r\n\t}", "@Override\n\tpublic void removeInUse() {\n\t\theldObj.removeInUse();\n\t}", "@Override\n public void remove() throws IllegalStateException {\n if (lastItemReturned == null) {\n throw new IllegalStateException();\n } else {\n iter.remove();\n lastItemReturned = null;\n }\n }", "public void deleteBidStateData() throws DataLayerException\r\n\t{\r\n\t\tbidStateDao.deleteAll();\r\n\t}", "public final void remove () {\r\n }", "@Override\n public void remove() throws IllegalStateException\n {\n if(canRemove == true)\n {\n if(forward = true)\n {\n Node theNode = getNth(idx-1);\n theNode.remove();\n idx = idx-1;\n canRemove = false;\n }\n else\n {\n Node theNode = getNth(idx);\n theNode.remove();\n canRemove = false;\n }\n }\n else\n {\n throw new IllegalStateException();\n }\n }", "@Override\r\n\t\tpublic void remove() {\r\n\t\t\t// YOU DO NOT NEED TO WRITE THIS\r\n\t\t}", "@Override\n\tpublic void stateChanged (Sprite sprite, SpriteState currentState, SpriteState lastState) {\n\t\tif (SpriteManager.class.isAssignableFrom(sprite.getClass())) {\n\t\t\tif (currentState != SpriteState.Activated) mManagerMap.remove(((SpriteManager)sprite).Name());\n\t\t}\n\t\tsuper.stateChanged(sprite, currentState, lastState);\n\t}", "@Override\n\tpublic void removeAt(final int index) {\n\t\tremoveFromInsertionOrder(index);\n\t\tsuper.removeAt(index); // clear key, state, value; adjust size\n\t}", "public void popState() {\n\t\tstates.pop();\n\t}", "public void removed() {\n }", "void removeOrderItem(OrderItem target);", "void remove(InternalSession session, boolean update);", "public void remove() {\n super.remove();\n if (this.caughtEntity != null) {\n this.caughtEntity.noClip = false;\n }\n if (this.angler != null) {\n this.angler.fishingBobber = null;\n this.angler.noClip = false;\n }\n if(this.rod.getItem() == Items.ITEM_GRAB_HOOK){\n this.rod.getOrCreateTag().putBoolean(\"cast\", false);\n }\n }", "public void remove() {\n\t }", "public void remove() {\n\t }", "public void remove() {\n\t }", "void entityDestroyed(Entity entity);", "public abstract void removeUnit(LanguageUnit languageUnit);", "public void remove() {\n\n }", "public abstract void drop();", "T remove(Position<T> p) throws IllegalStateException;", "void removeNode(Entity entity) {\n\t\tProcessing.nodeSet.remove(entity);\n\t\tProcessing.friendMap.remove(entity);\n\n\t\tSystem.out.println(\"the person was successfully removed from the network.\");\n\t}", "public abstract void removeCreature(Point p);", "@Override\r\n\tpublic void delete(T instance) {\r\n\t\tif (isManaged(instance)) {\r\n\t\t\tinstance = loadInstance(instance.getId());\r\n\t\t\tgetEntityManager().remove(getEntityManager().merge(instance));\r\n\t\t}\r\n\t}", "public void remove(){\n Api.worldRemover(getWorld().getWorldFolder());\n }" ]
[ "0.62426645", "0.6165845", "0.60976684", "0.60689276", "0.6008615", "0.5882313", "0.58578974", "0.58254886", "0.5798321", "0.57947785", "0.5729411", "0.5718285", "0.57048106", "0.5697717", "0.5669753", "0.56357664", "0.56342643", "0.56302625", "0.563021", "0.5602894", "0.5601349", "0.5600647", "0.5590037", "0.55628127", "0.5551152", "0.5540135", "0.5464172", "0.5457554", "0.545542", "0.5454766", "0.54454124", "0.5426235", "0.5411275", "0.54091203", "0.53893125", "0.5375637", "0.5375624", "0.5362415", "0.53583753", "0.53483504", "0.53483504", "0.5347724", "0.5345034", "0.5336051", "0.53242046", "0.5321185", "0.53187615", "0.531068", "0.52974635", "0.5297176", "0.52970916", "0.52916783", "0.528081", "0.5275833", "0.5273684", "0.5265907", "0.5248919", "0.5247255", "0.5247255", "0.5240115", "0.5240049", "0.5233731", "0.5233234", "0.5229635", "0.5221029", "0.52181154", "0.5207061", "0.5203385", "0.5201861", "0.51974344", "0.51974344", "0.51974344", "0.51974344", "0.51974344", "0.519103", "0.5171019", "0.5168338", "0.5165083", "0.51632196", "0.51582474", "0.5154322", "0.5151681", "0.5147068", "0.51463723", "0.51437473", "0.5139969", "0.51291543", "0.51288146", "0.5126485", "0.5126485", "0.5126485", "0.5122011", "0.51056415", "0.50977635", "0.5093958", "0.50928885", "0.5092725", "0.5091649", "0.50892985", "0.50796705" ]
0.5333644
44
Linear Interpolation of 2 Vectors
public static Vector lerp(@NonNull final Vector a, @NonNull final Vector b, final double percent) { final double delta = MathUtil.clamp(percent, 0.0, 1.0); return a.multiply(1 - delta).add(b.multiply(delta)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double lerp(double x, double a, double b);", "Vec3 interpolate(float ticks);", "public abstract Vector4fc lerp(IVector4f other, float t);", "public static double linearInterpolation(double x, double x1, double x2, double y1, double y2)\n\t{\n\t\tif(x2 == x1) throw new IllegalArgumentException(\"The two points may not have the same x-coordinate.\");\n\t\tdouble slope = slope(x1, x2, y1, y2);\n\t\treturn linearInterpolation(x, x1, y1, slope);\n\t}", "@FunctionalInterface\npublic interface Interpolation {\n Interpolation LINEAR = (x, a, b) -> a + x * (b - a);\n Interpolation QUADRATIC = (x, a, b) -> a + (b - a) * x * x;\n Interpolation CUBIC = (x, a, b) -> a + (b - a) * x * x * x;\n Interpolation QUARTIC = (x, a, b) -> a + (b - a) * x * x * x * x;\n Interpolation COSINE = (x, a, b) -> a + ((1.0 - Math.cos(x * Math.PI)) / 2.0) * (b - a);\n\n /**\n * Interpolates a value between two known values.\n *\n * @param x Position for the data to be interpolated.\n * @param a The first known value.\n * @param b The second known value.\n * @return an interpolated value for x.\n */\n double lerp(double x, double a, double b);\n\n /**\n * Interpolates between an unknown number of values.\n * The amount of positions repsents the dimension\n * The amount of values must be 2^(amount of position).\n *\n * @param positions A list of positions starting with the first stage position and going up in order.\n * @param values A list of values starting with the first stage values and going up in order.\n * @return an interpolated value between all the given positions.\n */\n default double lerp(double[] positions, double[] values) {\n if (values.length != 1 << positions.length) {\n throw new IllegalArgumentException(\"The amount of values must be 2^(amount of fractals).\");\n }\n for (int i = 0; i < positions.length; i++) {\n for (int j = 0; j < ((1 << positions.length) - i); j += 2) {\n values[j / 2] = lerp(positions[i], values[j], values[j + 1]);\n }\n }\n // This should only have 1 element, the final value!\n return values[0];\n }\n}", "static double interpolateDouble(double x, double a, double b, double a1, double b1) {\n // assertTrue(a != b);\n // To get results that are accurate near both A and B, we interpolate starting from the closer\n // of the two points.\n if (Math.abs(a - x) <= Math.abs(b - x)) {\n return a1 + (b1 - a1) * (x - a) / (b - a);\n } else {\n return b1 + (a1 - b1) * (x - b) / (a - b);\n }\n }", "@Test\n public void interpolate() {\n float[] dest = new float[10]; \n float[] a = new float[] {1.001f, 2.002f, 3.0f, 4.0f, 5.0f, 6.0f}; \n float[] b = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f};\n float[] expect = new float[] {2.4f, 4.6f, 4.4f, 5.4f}; // 0.7 a + 0.3 b\n float[] expect0 = new float[] {3.0f, 4.0f, 5.0f, 6.0f}; // a value\n float[] expect1 = new float[] {1.0f, 6.0f, 3.0f, 4.0f}; // b value\n float alpha = 0.3f;\n // 1)\n Vec4f.interpolate(dest, 4, a, 2, b, 1, 0.0f);\n assertTrue(Vec4f.epsilonEquals(dest, 4, expect0, 0, 1E-5f));\n Vec4f.interpolate(dest, 4, a, 2, b, 1, 1.0f);\n assertTrue(Vec4f.epsilonEquals(dest, 4, expect1, 0, 1E-5f));\n Vec4f.interpolate(dest, 4, a, 2, b, 1, alpha);\n assertTrue(Vec4f.epsilonEquals(dest, 4, expect, 0, 1E-5f));\n \n \n float[] dest2 = new float[4]; \n float[] a2 = new float[] { 3.0f, 4.0f, 5.0f, 6.0f}; \n float[] b2 = new float[] {1.0f, 6.0f, 3.0f, 4.0f};\n //2)\n Vec4f.interpolate(dest2, a2, b2, 0.0f);\n assertTrue(Vec4f.epsilonEquals(dest2, expect0, 1E-5f));\n Vec4f.interpolate(dest2, a2, b2, 1.0f);\n assertTrue(Vec4f.epsilonEquals(dest2, expect1, 1E-5f));\n Vec4f.interpolate(dest2, a2, b2, alpha);\n assertTrue(Vec4f.epsilonEquals(dest2, expect, 1E-5f));\n }", "protected Vector2f lerp(float value, Vector2f start, Vector2f end)\n\t{\n\t return Vector2f.add(Vector2f.mul(Vector2f.sub(end,start),value),start);\n\t \n\t}", "public static double lerp(double y0, double y1, double x) {\n double m = y1 - y0;\n double b = y0;\n return m * x + b; // i.e, linear function\n }", "void vng_interpolate()\n{\n}", "private void linearFunction(Graphics g, double x0, double y0, double x1, double y1) {\n //abriviaciones para las funciones\n double dx = x1 - x0;\n double dy = y1 - y0;\n\n if (Math.abs(dx) > Math.abs(dy)) {\n double m = dy / dx;\n double b = y0 - m * x0;\n if (dx < 0) {\n dx = -1;\n } else {\n dx = 1;\n }\n\n while (x0 != x1) {\n x0 += dx;\n y0 = Math.round(m * x0 + b);\n g.drawLine((int) coord_x(x0), (int) coord_y(y0), (int) coord_x(x0), (int) coord_y(y0));\n }\n } else {\n if (dy != 0) {\n double m = dx / dy;\n double b = x0 - m * y0;\n if (dy < 0) {\n dy = -1;\n } else {\n dy = 1;\n }\n while (y0 != y1) {\n y0 += dy;\n x0 = Math.round(m * y0 + b);\n g.drawLine((int) coord_x(x0), (int) coord_y(y0), (int) coord_x(x0), (int) coord_y(y0));\n }\n }\n }\n }", "public Vector2f lerp (Vector2f other, float t, Vector2f result)\n {\n return result.set(x + t*(other.x - x), y + t*(other.y - y));\n }", "public static double scalarProduct(Vector v1, Vector v2){\r\n\t\treturn v1.getX()*v2.getX() + v1.getY()*v2.getY();\r\n\t\t\r\n\t}", "public static S2Point interpolate(double t, S2Point a, S2Point b) {\n if (t == 0) {\n return a;\n }\n if (t == 1) {\n return b;\n }\n S1Angle ab = new S1Angle(a, b);\n return interpolateAtDistance(S1Angle.radians(t * ab.radians()), a, b, ab);\n }", "public Vector2f lerp (Vector2f other, float t)\n {\n return lerp(other, t, new Vector2f());\n }", "private void interpolate(VoxelGradient g0, VoxelGradient g1, float factor, VoxelGradient result) {\r\n result.x = (g0.x * (1 - factor)) + (g1.x * factor);\r\n result.y = (g0.y * (1 - factor)) + (g1.y * factor);\r\n result.z = (g0.z * (1 - factor)) + (g1.z * factor);\r\n result.mag=(float)Math.sqrt(result.x*result.x+result.y*result.y+result.z*result.z);\r\n }", "g(int paramInt) {\n/* 14364 */ this.a = (Interpolator)new DecelerateInterpolator();\n/* 14365 */ this.b = paramInt;\n/* 14366 */ this.c = this.b + 500;\n/* */ }", "protected float interpolate(float s, float e, float t) {\n\tfloat range = e - s;\n\treturn s + t * range;\n }", "public static float linear_remap_f(float x, float x0, float y0, float x1, float y1) {\n float dx = (x1 - x0);\n float dy = (y1 - y0);\n if (dx == 0) {\n return 0;\n }\n return (x - x0) / dx * dy + y0;\n }", "public double betweenAngle(Coordinates vectorA, Coordinates vectorB);", "public Vector2f lerpLocal (Vector2f other, float t)\n {\n return lerp(other, t, this);\n }", "public abstract void interpolate(int i, float f, Object obj);", "default double lerp(double[] positions, double[] values) {\n if (values.length != 1 << positions.length) {\n throw new IllegalArgumentException(\"The amount of values must be 2^(amount of fractals).\");\n }\n for (int i = 0; i < positions.length; i++) {\n for (int j = 0; j < ((1 << positions.length) - i); j += 2) {\n values[j / 2] = lerp(positions[i], values[j], values[j + 1]);\n }\n }\n // This should only have 1 element, the final value!\n return values[0];\n }", "public static float map(float x, float a1, float a2, float b1, float b2) {\r\n return b1 + (b2 - b1) * (x - a1) / (a2 - a1);\r\n }", "public double interpolacao(double[] p1, double[] p2, double value) {\n double m = (p2[0] - p1[0]) / (p2[1] - p1[1]); // m = y2 - y1 / x2 - x1\n double b = p1[0] - p1[1] * m; // b = y - mx\n\n return value * m + b; // retorna y(value)\n }", "double V2Dot(Position a, Position b){\r\n\t\treturn((a.getX() * b.getX())+(a.getY() * b.getY()));\r\n\t}", "public static int linear_remap_i(int x, int x0, int y0, int x1, int y1) {\n int dx = (x1 - x0);\n int dy = (y1 - y0);\n if (dx == 0) {\n return 0;\n }\n return (x - x0) / dx * dy + y0;\n }", "private Point2D.Double calcVec(Point2D.Double a, Point2D.Double b)\n\t{\n\t\treturn new Point2D.Double((b.getX() - a.getX()), (b.getY() - a.getY()));\n\t}", "private static void dtp2v( double xi, double eta,\n double x, double y, double z,\n double[] v ) {\n double f = Math.sqrt( 1 + xi * xi + eta * eta );\n double r = Math.hypot( x, y );\n if ( r == 0 ) {\n r = 1d-20;\n x = r;\n }\n double f1 = 1.0 / f;\n double r1 = 1.0 / r;\n v[ 0 ] = ( x - ( xi * y + eta * x * z ) * r1 ) * f1;\n v[ 1 ] = ( y + ( xi * x - eta * y * z ) * r1 ) * f1;\n v[ 2 ] = ( z + eta * r ) * f1;\n }", "public double getValue( Coordinate[] controlPoints, Coordinate interpolated );", "private float interpolateRotation(float par1, float par2, float par3)\n {\n float f3;\n\n for (f3 = par2 - par1; f3 < -180.0F; f3 += 360.0F)\n {\n ;\n }\n\n while (f3 >= 180.0F)\n {\n f3 -= 360.0F;\n }\n\n return par1 + par3 * f3;\n }", "public static double mapLinear( double value, double[] linearMapping ) {\n return value * linearMapping[0] + linearMapping[1];\n }", "public float interpolate( final float secondsDelta ) {\n final float oldVelocity = mCurrent;\n\n // point the acceleration at the target, or zero it if we are already\n // there\n final float directionalAcceleration = calculateAcceleration( oldVelocity, this.mAcceleration, this.mTarget );\n\n // calculate scaled acceleration (0.5 * acceleration * (time^2))\n final float scaledAcceleration = scaleAcceleration( directionalAcceleration, secondsDelta );\n\n // calculate the change in position\n float positionOffset = ( oldVelocity * secondsDelta ) + scaledAcceleration;\n\n // change in velocity = v + aT\n float newVelocity = oldVelocity + ( directionalAcceleration * secondsDelta );\n\n // check to see if we've passed our target velocity since the last time\n // step. If so, clamp to the target\n if( passedTarget( oldVelocity, newVelocity, this.mTarget ) ) {\n newVelocity = this.mTarget;\n }\n\n this.mCurrent = newVelocity;\n\n return positionOffset;\n }", "static final void interpolate_lsp_ver2(final float interp[], final float prev[], final float next[], final float weight, final int order)\n\t{\n\t\tfinal float weight1 = 1.0f - weight;// java\n\t\tfor( int i = 0; i < order; i++ ) {\n\t\t\tinterp[i] = weight1 * prev[i] + weight * next[i];\n\t\t}\n\t}", "public static double scalarProduct(ThreeVector v1,ThreeVector v2) {\r\n\t\treturn v1.x * v2.x + v1.y * v2.y + v1.z * v2.z;\r\n\t}", "public void c(double paramDouble1, double paramDouble2, double paramDouble3, float paramFloat1, float paramFloat2)\r\n/* 77: */ {\r\n/* 78: 89 */ float f1 = uv.a(paramDouble1 * paramDouble1 + paramDouble2 * paramDouble2 + paramDouble3 * paramDouble3);\r\n/* 79: */ \r\n/* 80: 91 */ paramDouble1 /= f1;\r\n/* 81: 92 */ paramDouble2 /= f1;\r\n/* 82: 93 */ paramDouble3 /= f1;\r\n/* 83: */ \r\n/* 84: 95 */ paramDouble1 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 85: 96 */ paramDouble2 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 86: 97 */ paramDouble3 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 87: */ \r\n/* 88: 99 */ paramDouble1 *= paramFloat1;\r\n/* 89:100 */ paramDouble2 *= paramFloat1;\r\n/* 90:101 */ paramDouble3 *= paramFloat1;\r\n/* 91: */ \r\n/* 92:103 */ this.v = paramDouble1;\r\n/* 93:104 */ this.w = paramDouble2;\r\n/* 94:105 */ this.x = paramDouble3;\r\n/* 95: */ \r\n/* 96:107 */ float f2 = uv.a(paramDouble1 * paramDouble1 + paramDouble3 * paramDouble3);\r\n/* 97: */ \r\n/* 98:109 */ this.A = (this.y = (float)(Math.atan2(paramDouble1, paramDouble3) * 180.0D / 3.141592741012573D));\r\n/* 99:110 */ this.B = (this.z = (float)(Math.atan2(paramDouble2, f2) * 180.0D / 3.141592741012573D));\r\n/* 100:111 */ this.i = 0;\r\n/* 101: */ }", "public Activation_Linear_Range_0_1() {\r\n this.slope = new VDouble(new RealNumber(1), new VDoubleNoUpdate());\r\n this.c = new VDouble(new RealNumber(0), new VDoubleNoUpdate());\r\n }", "public static LatLng interpolate(float fraction, LatLng a, LatLng b) {\n\n double lat = (b.latitude - a.latitude) * fraction + a.latitude;\n double lngDelta = b.longitude - a.longitude;\n\n // Take the shortest path across the 180th meridian.\n if (Math.abs(lngDelta) > 180) {\n lngDelta -= Math.signum(lngDelta) * 360;\n }\n double lng = lngDelta * fraction + a.longitude;\n return new LatLng(lat, lng);\n }", "public static float perlin2D(float x, float y) {\n float total = 0.0f;\n\n for (int i = 0; i < OCTAVES; i++) {\n //These values can be changed for desired terrain gen\n //We selected these to work well\n float frequency = 0.05f;\n float amplitude = 4;\n\n total += Noise2D.interpolate(x * frequency, y * frequency, Noise1D.primes[0]) * amplitude;\n }\n\n return total;\n }", "static Vec vector(PointDouble a, PointDouble b) {\n return new Vec(b.x - a.x, b.y - a.y);\n }", "public Function(Point x, Point y) {\n double delta = (x.y - y.y) / (x.x - y.x);\n a = -1 * delta;\n b = -(x.y - delta * x.x);\n }", "@Override\n\tpublic float getInterpolation(float input) {\n\t\tdouble a = input * PI_3;\n\t\tdouble b = Math.sin(a) / a;\n\t\tdouble c = b * (input * -1 + 1);\n\t\treturn (float) c * -1 + 1;\n\n\t}", "public double dotProduct(Coordinates vectorA, Coordinates vectorB);", "public Vector3 lerpLocal (IVector3 other, double t) {\n return lerp(other, t, this);\n }", "public abstract List<Point2D> getInterpolatedPoints();", "public Vector2f multLocal (Vector2f other)\n {\n return mult(other, this);\n }", "public double interpolate(double xx1, double xx2, double xx3, double xx4) {\n\n\t\tfinal double[][][] yTempml = new double[this.mPoints][this.lPoints][this.kPoints];\n\t\tfor (int i = 0; i < this.nPoints; i++) {\n\t\t\tfor (int j = 0; j < this.mPoints; j++)\n\t\t\t\tfor (int k = 0; k < this.lPoints; k++)\n\t\t\t\t\tfor (int l = 0; l < this.kPoints; l++)\n\t\t\t\t\t\tyTempml[j][k][l] = y[i][j][k][l];\n\t\t\tthis.tcsn[i].resetData(x2, x3, x4, yTempml);\n\t\t}\n\t\tfinal double[] yTempm = new double[nPoints];\n\n\t\tfor (int i = 0; i < nPoints; i++) {\n\t\t\tif (this.derivCalculated)\n\t\t\t\tthis.tcsn[i].setDeriv(d2ydx2[i]);\n\t\t\tyTempm[i] = this.tcsn[i].interpolate(xx2, xx3, xx4);\n\t\t\tif (!this.derivCalculated)\n\t\t\t\td2ydx2[i] = this.tcsn[i].getDeriv();\n\t\t}\n\t\tderivCalculated = true;\n\n\t\tthis.csm.resetData(x1, yTempm);\n\t\treturn this.csm.interpolate(xx1);\n\t}", "public Vector2f addScaledLocal (Vector2f other, float v)\n {\n return addScaled(other, v, this);\n }", "@Override\n\tpublic float getInterpolation(float x) {\n\t\treturn value;\n\t}", "private Point2D.Double calcNormVec(double x1, double x2, double y1, double y2)\n\t{\n\n\t\treturn new Point2D.Double(-(y2 - y1), (x2 - x1));\n\t}", "public Vector2f (float x, float y)\n {\n set(x, y);\n }", "public Vector2f (float[] values)\n {\n set(values);\n }", "@Override\n\t\tpublic float getInterpolation(float input) {\n\t\t\t\n//\t\t\tfloat t = a*(float) Math.sin(Math.PI * 2/2.8f * input);\n//\t\t\tLog.d(\"debug\", \"input = \"+input+\",,\"+ \"t = \"+t);\n//\t\t\treturn t ;\n\t\t\treturn input;\n\t\t}", "public void i(double paramDouble1, double paramDouble2, double paramDouble3)\r\n/* 104: */ {\r\n/* 105:116 */ this.v = paramDouble1;\r\n/* 106:117 */ this.w = paramDouble2;\r\n/* 107:118 */ this.x = paramDouble3;\r\n/* 108:119 */ if ((this.B == 0.0F) && (this.A == 0.0F))\r\n/* 109: */ {\r\n/* 110:120 */ float f1 = uv.a(paramDouble1 * paramDouble1 + paramDouble3 * paramDouble3);\r\n/* 111:121 */ this.A = (this.y = (float)(Math.atan2(paramDouble1, paramDouble3) * 180.0D / 3.141592741012573D));\r\n/* 112:122 */ this.B = (this.z = (float)(Math.atan2(paramDouble2, f1) * 180.0D / 3.141592741012573D));\r\n/* 113: */ }\r\n/* 114: */ }", "public Vector2f mult (float v)\n {\n return mult(v, new Vector2f());\n }", "public Vector at ( float x ) { return A.add(D.prod(x)); }", "public static double v_a(double a, double m, double[] x, double[] y) {\r\n\t\tdouble v_a = 0;\r\n\t\tfor (int i = 0; i < x.length; i++) {\r\n\t\t\tv_a = v_a + a * Math.pow(x[i], 2 * m) - y[i] * Math.pow(x[i], m);\r\n\t\t}\r\n\t\treturn v_a;\r\n\t}", "public Vector2f multLocal (float v)\n {\n return mult(v, this);\n }", "public CubicFunction(double[] xx, double[] yy) {\n\n super(xx, yy);\n\n if (xx != null && yy != null && xx.length == yy.length && xx.length > 1) {\n\n final int n = xx.length;\n double[] d = new double[n - 1];\n double[] m = new double[n];\n\n /* Compute slopes of secant lines between successive points. */\n for (int i = 0; i < n - 1; i++) {\n double h = xx[i + 1] - xx[i];\n if (h == 0f) {\n /** For readability only: x[i + 1] and x[i] are never equal */\n }\n d[i] = (yy[i + 1] - yy[i]) / h;\n }\n\n /* Initialize the tangents as the average of the secants. */\n m[0] = d[0];\n for (int i = 1; i < n - 1; i++) {\n m[i] = (d[i - 1] + d[i]) * 0.5f;\n }\n m[n - 1] = d[n - 2];\n\n /* Update the tangents */\n for (int i = 0; i < n - 1; i++) {\n if (d[i] == 0f) { // successive Y values are equal\n m[i] = 0f;\n m[i + 1] = 0f;\n } else {\n double a = m[i] / d[i];\n double b = m[i + 1] / d[i];\n\n double h = Math.hypot(a, b);\n if (h > 9f) {\n double t = 3f / h;\n m[i] = t * a * d[i];\n m[i + 1] = t * b * d[i];\n }\n }\n }\n\n this.mm = m;\n }\n }", "public static VectorIntf componentProduct(VectorIntf x, VectorIntf y) {\r\n if (x==null) throw new IllegalArgumentException(\"1st arg is null\");\r\n if (y==null) throw new IllegalArgumentException(\"2nd arg is null\");\r\n final int n = x.getNumCoords();\r\n if (n!=y.getNumCoords())\r\n throw new IllegalArgumentException(\"dimensions don't match\");\r\n VectorIntf z = x.newInstance(); // x.newCopy();\r\n try {\r\n for (int i = 0; i < n; i++) {\r\n z.setCoord(i, x.getCoord(i) * y.getCoord(i));\r\n }\r\n }\r\n catch (parallel.ParallelException e) {\r\n e.printStackTrace(); // can never get here\r\n }\r\n return z;\r\n }", "public Vector2f addScaled (Vector2f other, float v, Vector2f result)\n {\n return result.set(x + other.x*v, y + other.y*v);\n }", "private float getInterpolation(float r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: android.widget.OppoScroller.getInterpolation(float):float, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.OppoScroller.getInterpolation(float):float\");\n }", "public Vector2f mult (float v, Vector2f result)\n {\n return result.set(x*v, y*v);\n }", "public static Shader createInterpolationShader( final String name,\n Color color0,\n Color color1 ) {\n final float[] rgba0 = color0.getRGBComponents( null );\n final float[] rgba1 = color1.getRGBComponents( null );\n return new BasicShader( name ) {\n public void adjustRgba( float[] rgba, float value ) {\n for ( int i = 0; i < 3; i++ ) {\n float f0 = rgba0[ i ];\n float f1 = rgba1[ i ];\n rgba[ i ] = f0 + ( f1 - f0 ) * value;\n }\n }\n };\n }", "void addGradient(Vector gradientVector, double gradient);", "public LinearIntensityMap( final RandomAccessibleInterval< T > source )\n\t{\n\t\tfinal CompositeIntervalView< T, RealComposite< T > > collapsedSource = Views.collapseReal( source );\n\t\tdimensions = new FinalInterval( collapsedSource );\n\t\tfinal double[] shift = new double[ dimensions.numDimensions() ];\n\t\tfor ( int d = 0; d < shift.length; ++d )\n\t\t\tshift[ d ] = 0.5;\n\t\ttranslation = new Translation( shift );\n\t\t\n\t\tfinal RandomAccessible< RealComposite< T > > extendedCollapsedSource = Views.extendBorder( collapsedSource ); \n\t\tcoefficients = Views.interpolate( extendedCollapsedSource, interpolatorFactory );\n\t}", "static double dot(Vec a, Vec b) {\n return (a.x * b.x + a.y * b.y);\n }", "public void linearFade(float startVol, float endVol) {\n\t\tlinearFade(startVol, endVol, 0, getSampleCount());\n\t}", "public interface Interpolator {\n /**\n * Adds a new Point with the given x and y value.\n * @param x x-value to add\n * @param y y-value to add\n * @return the Point which was added\n */\n public Point2D addPoint(double x, double y);\n /**\n * Adds a new point at the given index.\n * @param i index for where to add the new Point\n * @param x x-value to add\n * @param y y-value to add\n * @return the Point which was added\n */\n public Point2D insertPoint(int i, double x, double y);\n /**\n * Adds a List of Points.\n * @param points List of Points to add\n */\n public void addPoints(List<Point2D> points);\n /**\n * Adds a List of Point at the given index.\n * @param i index for where to add the Points\n * @param points List of Points to add\n */\n public void addPoints(int i, List<Point2D> points);\n /**\n * Sets the x and y values of the Point at the given index.\n * @param i index of the point to set\n * @param x x-value to set\n * @param y y-value to set\n * @return the Point after being set\n */\n public Point2D setPoint(int i, double x, double y);\n /**\n * Removes the given Point from the Interpolator.\n * @param p the Point to remove\n */\n public void removePoint(Point2D p);\n /**\n * Remove the Point at the given index.\n * @param i index of the Point to remove\n * @return the Point removed\n */\n public Point2D removePoint(int i);\n /**\n * Returns a list of the Interpolator's points.\n * @return list of the Interpolator's points\n */\n public List<Point2D> getControlPoints();\n /**\n * Returns a List of Points interpolated from the Interpolator's control \n * points.\n * @return List of Points interpolated from the Interpolator's control \n * points\n */\n public abstract List<Point2D> getInterpolatedPoints();\n /**\n * Returns true if the List of interpolated Points has changed since last\n * being requested and needs to be recalculated.\n * @return true if the List of interpolated Points has changed since last\n * being requested and needs to be recalculated\n */\n public boolean interpolationChanged();\n\n /**\n * Clears all the Points from the Interpolator.\n */\n public void clear();\n \n /**\n * Return the Interpolator's VersionProperty. Used to specify an \n * Interpolator type when serializing and de-serializing an Interpolator.\n * @return Interpolator's VersionProperty\n */\n public VersionProperty getInterpolatorVersion();\n \n public boolean touchesControlPoints();\n}", "@Override\n public List<XYCoords> interpolate(XYSeries series, Params params) {\n if (params.getPointPerSegment() < 2) {\n throw new IllegalArgumentException(\n \"pointsPerSegment must be greater than 2, since 2 points is just the linear segment.\");\n }\n\n // Cannot interpolate curves given only two points. Two points\n // is best represented as a simple line segment.\n if (series.size() < 3) {\n throw new IllegalArgumentException(\"Cannot interpolate a series with fewer than 3 vertices.\");\n }\n\n // Get the change in x and y between the first and second coordinates.\n double dx = series.getX(1).doubleValue() - series.getX(0).doubleValue();\n double dy = series.getY(1).doubleValue() - series.getY(0).doubleValue();\n\n // Then using the change, extrapolate backwards to find a control point.\n double x1 = series.getX(0).doubleValue() - dx;\n double y1 = series.getY(0).doubleValue() - dy;\n\n // Actually create the start point from the extrapolated values.\n XYCoords start = new XYCoords(x1, y1);\n\n // Repeat for the end control point.\n int n = series.size() -1;\n dx = series.getX(n).doubleValue() - series.getX(n-1).doubleValue();\n dy = series.getY(n).doubleValue() - series.getY(n - 1).doubleValue();\n double xn = series.getX(n).doubleValue() + dx;\n double yn = series.getY(n).doubleValue() + dy;\n XYCoords end = new XYCoords(xn, yn);\n\n // TODO: figure out whether this extra control-point synthesis is\n // TODO: really necessary and either remove the above or fix the below.\n // insert the start control point at the start of the vertices list.\n // TODO vertices.add(0, start);\n\n // append the end control ponit to the end of the vertices list.\n // TODO vertices.add(end);\n //}\n\n ExtrapolatedXYSeries extrapolatedXYSeries = new ExtrapolatedXYSeries(series, start, end);\n\n // Dimension a result list of coordinates.\n List<XYCoords> result = new ArrayList<>();\n\n // When looping, remember that each cycle requires 4 points, starting\n // with i and ending with i+3. So we don't loop through all the points.\n for (int i = 0; i < extrapolatedXYSeries.size() - 3; i++) {\n\n // Actually calculate the Catmull-Rom curve for one segment.\n List<XYCoords> points = interpolate(extrapolatedXYSeries, i, params);\n\n // Since the middle points are added twice, once for each bordering\n // segment, we only add the 0 index result point for the first\n // segment. Otherwise we will have duplicate points.\n if (result.size() > 0) {\n points.remove(0);\n }\n\n // Add the coordinates for the segment to the result list.\n result.addAll(points);\n }\n return result;\n\n }", "public Vector2d mul(double s) {\n\t\treturn new Vector2d(x*s, y*s);\n\t}", "public void getInterpolatedPositionVector (float u, Vector3f newPos) {\r\n // if linear interpolation\r\n if (this.linear == 1) {\r\n newPos.x = keyFrame[1].position.x + \r\n ((keyFrame[2].position.x - keyFrame[1].position.x) * u);\r\n newPos.y = keyFrame[1].position.y + \r\n ((keyFrame[2].position.y - keyFrame[1].position.y) * u);\r\n newPos.z = keyFrame[1].position.z + \r\n ((keyFrame[2].position.z - keyFrame[1].position.z) * u);\r\n } else {\r\n\r\n newPos.x = c0.x + u * (c1.x + u * (c2.x + u * c3.x));\r\n newPos.y = c0.y + u * (c1.y + u * (c2.y + u * c3.y));\r\n newPos.z = c0.z + u * (c1.z + u * (c2.z + u * c3.z));\r\n\r\n }\r\n }", "public static float Dot(Vector a, Vector b){\n if(a.axis.length == b.axis.length) {\n float dot = 0f;\n for (int i = 0; i < a.axis.length; i++) {\n dot += a.axis[i] * b.axis[i];\n }\n return dot;\n }\n return 0f;\n }", "public static double approx1(double v, double x[], double y[], int n,\n appr_meth Meth)\n {\n int i, j, ij;\n\n if(n==0) return Double.NaN;\n\n i = 0;\n j = n - 1;\n\n /* handle out-of-domain points */\n\n if(v < x[i]) return Meth.ylow;\n if(v > x[j]) return Meth.yhigh;\n\n /* find the correct interval by bisection */\n\n while(i < j - 1) { /* x[i] <= v <= x[j] */\n ij = (i + j)/2; /* i+1 <= ij <= j-1 */\n if(v < x[ij]) j = ij;\n else i = ij;\n /* still i < j */\n }\n /* provably have i == j-1 */\n\n /* interpolation */\n\n if(v == x[j]) return y[j];\n if(v == x[i]) return y[i];\n /* impossible: if(x[j] == x[i]) return y[i]; */\n\n if(Meth.kind == 1) { /* linear */\n return y[i] + (y[j] - y[i]) * ((v - x[i])/(x[j] - x[i]));\n }\n else { /* 2 : constant */\n return y[i] * Meth.f1 + y[j] * Meth.f2;\n }\n }", "public Square(Color emission, Material material,\n Point3D P1, Vector v1,\n Vector v2, double length) {\n super(emission, material, P1, v1.crossProduct(v2));\n if (v1.dotProduct(v2) != 0)\n throw new IllegalArgumentException(\"the vectors are not orthogonal\");\n v1 = v1.rescale(length);\n v2 = v2.rescale(length);\n p2 = p1.add(v1);\n p4 = p1.add(v2);\n p3 = p4.add(v1);\n }", "protected static double interpolate(double[] p, double[] time, double t) {\n double L01 = p[0] * (time[1] - t) / (time[1] - time[0]) + p[1] * (t - time[0]) / (time[1] - time[0]);\n double L12 = p[1] * (time[2] - t) / (time[2] - time[1]) + p[2] * (t - time[1]) / (time[2] - time[1]);\n double L23 = p[2] * (time[3] - t) / (time[3] - time[2]) + p[3] * (t - time[2]) / (time[3] - time[2]);\n double L012 = L01 * (time[2] - t) / (time[2] - time[0]) + L12 * (t - time[0]) / (time[2] - time[0]);\n double L123 = L12 * (time[3] - t) / (time[3] - time[1]) + L23 * (t - time[1]) / (time[3] - time[1]);\n double C12 = L012 * (time[2] - t) / (time[2] - time[1]) + L123 * (t - time[1]) / (time[2] - time[1]);\n return C12;\n }", "public Vector3 addScaledLocal (IVector3 other, double v) {\n return addScaled(other, v, this);\n }", "double scalarMultiplyVectors(double[] first, double[] second) throws InterruptedException;", "public void setLinearVelocity (Vector2 v) {\n\t\ttmp.set(v.x, v.y);\n\t\tbody.setLinearVelocity(tmp);\n\t}", "private static double dot(final Map<String, Integer> leftVector, final Map<String, Integer> rightVector,\n final Set<String> intersection) {\n long dotProduct = 0;\n for (final String key : intersection) {\n dotProduct += leftVector.get(key) * rightVector.get(key);\n }\n return dotProduct;\n }", "static double cross(Vec a, Vec b) {\n return a.x * b.y - a.y * b.x;\n }", "public float getInterpolation(float t) {\n t -= 1.0f;\n return t * t * ((mTension + 1) * t + mTension) + 1.0f;\n }", "public DoubleColumn linear() {\n DoubleColumn result = col.asDoubleColumn();\n int last = -1;\n for (int i = 0; i < col.size(); i++) {\n if (!col.isMissing(i)) {\n if (last >= 0 && last != i - 1) {\n for (int j = last + 1; j < i; j++) {\n result.set(\n j,\n col.getDouble(last)\n + (col.getDouble(i) - col.getDouble(last)) * (j - last) / (i - last));\n }\n }\n last = i;\n }\n }\n return result;\n }", "public static double innerProduct(VectorIntf x, VectorIntf y) {\r\n if (x==null) throw new IllegalArgumentException(\"1st arg is null\");\r\n if (y==null) throw new IllegalArgumentException(\"2nd arg is null\");\r\n final int n = x.getNumCoords();\r\n if (n!=y.getNumCoords())\r\n throw new IllegalArgumentException(\"dimensions don't match\");\r\n double res=0.0;\r\n\t\t// test if x or y are sparse vectors \r\n\t\tif (x instanceof DblArray1SparseVector) {\r\n\t\t\tDblArray1SparseVector xs = (DblArray1SparseVector) x;\r\n\t\t\tif (Double.compare(xs.getDefaultValue(),0.0)==0) { // else makes no sense\r\n\t\t\t\tfinal int xsnz = xs.getNumNonZeros();\r\n\t\t\t\tfor (int i=0; i<xsnz; i++) {\r\n\t\t\t\t\tint xipos = xs.getIthNonZeroPos(i);\r\n\t\t\t\t\tdouble xi = xs.getIthNonZeroVal(i);\r\n\t\t\t\t\tres += xi*y.getCoord(xipos);\r\n\t\t\t\t}\r\n\t\t\t\treturn res;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (y instanceof DblArray1SparseVector) {\r\n\t\t\tDblArray1SparseVector ys = (DblArray1SparseVector) y;\r\n\t\t\tif (Double.compare(ys.getDefaultValue(),0.0)==0) { // else makes no sense\r\n\t\t\t\tfinal int ysnz = ys.getNumNonZeros();\r\n\t\t\t\tfor (int i=0; i<ysnz; i++) {\r\n\t\t\t\t\tint yipos = ys.getIthNonZeroPos(i);\r\n\t\t\t\t\tdouble yi = ys.getIthNonZeroVal(i);\r\n\t\t\t\t\tres += yi*x.getCoord(yipos);\r\n\t\t\t\t}\r\n\t\t\t\treturn res;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// revert to full inner product computation of vectors in R^n.\r\n for (int i=0; i<n; i++) {\r\n res += x.getCoord(i)*y.getCoord(i);\r\n }\r\n return res;\r\n }", "static PointDouble translate(PointDouble p, Vec v) {\n return new PointDouble(p.x + v.x , p.y + v.y);\n }", "public Coordinates scaleVector(Coordinates vector, double factor, Coordinates origin);", "private Vector coordinateSummer(Vector first, Vector second) {\n Vector tmp = new Vector();\n tmp.setX(first.getX() + second.getX());\n tmp.setY(first.getY() + second.getY());\n tmp.setZ(first.getZ() + second.getZ());\n return tmp;\n }", "public Vector2f mult (Vector2f other)\n {\n return mult(other, new Vector2f());\n }", "public static float[] Lerp(float[] a, float[] b, float amount) {\n if (a.length != b.length)\n throw new IllegalArgumentException(\"Colors must have the same length\");\n\n float[] result = new float[a.length];\n for (int i = 0; i < result.length; ++i) {\n float dif = b[i] - a[i];\n float n = a[i] + dif * amount;\n result[i] = n;\n }\n\n return result;\n }", "public static void translate(Double[] vector, Double[] translateVector) {\r\n for(int i = 0; i < vector.length; i++){\r\n vector[i] += translateVector[i];\r\n }\r\n }", "@Override // from Clothoids\n public LagrangeQuadratic lagrangeQuadratic(Scalar b0, Scalar b1) {\n return LagrangeQuadratic.interp(b0, MidpointTangentApproximation.LAYERS.apply(b0, b1), b1);\n }", "public void addVelocity(double x, double y) {\n velocityX += x;\n velocityY += y;\n }", "public double betweenAngle(Coordinates a, Coordinates b, Coordinates origin);", "public Vector2f addLocal (float x, float y)\n {\n return add(x, y, this);\n }", "public double computeScalarProduct(Vector v2){\n return this.getX() * v2.getX() + this.getY() * v2.getY();\n }", "public Vector2f mult (Vector2f other, Vector2f result)\n {\n return result.set(x*other.x, y*other.y);\n }", "public void fillVector(){\n int n = min.length;\n for (int i = 0; i < n; i++) {\n this.x[i] = min.x[i] + (max.x[i] - min.x[i])*rn.uniformDeviate();\n }\n }", "float norm2();", "public double update(double[] x) {\n if (x.length != n) {\n throw new IllegalArgumentException(String.format(\"Invalid input vector size: %d, expected: %d\", x.length, n));\n }\n\n projection.mv(x, y);\n\n for (int j = 0; j < p; j++) {\n for (int i = 0; i < n; i++) {\n double delta = x[i];\n for (int l = 0; l <= j; l++) {\n delta -= projection.get(l, i) * y[l];\n }\n projection.add(j, i, r.apply(t) * y[j] * delta);\n\n if (Double.isInfinite(projection.get(j, i))) {\n throw new IllegalStateException(\"GHA lost convergence. Lower learning rate?\");\n }\n }\n }\n\n t++;\n projection.mv(x, y);\n projection.tv(y, wy);\n return MathEx.squaredDistance(x, wy);\n }", "public void transform(float a11, float a12, float a21, float a22, float x, float y);" ]
[ "0.68494666", "0.68259627", "0.65439993", "0.6498858", "0.63358027", "0.6275431", "0.6234263", "0.6094812", "0.6089062", "0.5879421", "0.5864315", "0.5856379", "0.5800001", "0.5648456", "0.5644154", "0.5607259", "0.5593031", "0.55589515", "0.55497265", "0.55121714", "0.5485751", "0.5482845", "0.53472453", "0.53391063", "0.53381085", "0.53255033", "0.5296113", "0.5275685", "0.52414507", "0.5239606", "0.52129245", "0.51918155", "0.5175362", "0.517489", "0.5170856", "0.51498735", "0.51329154", "0.51309747", "0.51267433", "0.5126254", "0.5109537", "0.5106322", "0.50796455", "0.507303", "0.50660396", "0.50491875", "0.5036601", "0.5033205", "0.50059205", "0.50026274", "0.499023", "0.49896368", "0.4986638", "0.49840957", "0.49762505", "0.4970268", "0.49687535", "0.49656722", "0.49449044", "0.49380547", "0.49363005", "0.49256495", "0.49174848", "0.4916125", "0.49157944", "0.49131706", "0.49022502", "0.4897805", "0.48967987", "0.4873439", "0.4848497", "0.48459294", "0.48413125", "0.4828432", "0.48263946", "0.48249805", "0.4822292", "0.4817442", "0.48171923", "0.4811955", "0.48083603", "0.4794852", "0.47938904", "0.47908527", "0.4786082", "0.47856423", "0.47831938", "0.47819322", "0.47794574", "0.47781548", "0.47770354", "0.4775796", "0.4775689", "0.47741893", "0.47712737", "0.47707853", "0.47705656", "0.47507352", "0.4739055", "0.47336143" ]
0.6053031
9
TODO Autogenerated method stub double [][] zValues = new double [106][5]; zValues=MathematicalFormulationSingle.readInitialData(106,5); System.out.print(Arrays.deepToString(zValues)); solveMe(int n, int m, int p, int numRep[], int obje) double[][] zValues = new double[68][4]; zValues = MathModelMultiMemberWith.readInitialData(68,4);
public static void main(String[] args) throws IOException { int [] numReps= {3,1,2,2,2}; MathModelClass.solveMe(85, 5, 2,numReps, 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void test() {\n\t\tdouble delta = 0.00001;\n\t\tSnp fakeSnp1 = new Snp(\"fakeId1\", 0, 0.3);\n\t\tSnp fakeSnp2 = new Snp(\"fakeId2\", 0, 0.8);\n\t\tSnp fakeSnp3 = new Snp(\"fakeId3\", 0, 1.4);\n\t\tPascal.set.withZScore_=true;\n\t\tArrayList<Snp> geneSnps = new ArrayList<Snp>();\n\t\tgeneSnps.add(fakeSnp1);geneSnps.add(fakeSnp2);geneSnps.add(fakeSnp3);\n\t\tDenseMatrix ld= new DenseMatrix(3,3);\n\t\t//DenseMatrix crossLd= new DenseMatrix(3,2);\n\t\t\n\t\tArrayList<Double> snpScores = new ArrayList<Double>(3);\n\t\tsnpScores.add(fakeSnp1.getZscore());\n\t\tsnpScores.add(fakeSnp2.getZscore());\n\t\tsnpScores.add(fakeSnp3.getZscore());\n\t\t//ld and crossLd calculated as follows:\n\t\t// make 0.9-toeplitz mat of size 5.\n\t\t// 3,4,5 for ld-mat\n\t\t// 1,2 for crossLd-mat\n\t\tld.set(0,0,1);ld.set(1,1,1);ld.set(2,2,1);\n\t\tld.set(0,1,0.9);ld.set(1,2,0.9);\n\t\tld.set(1,0,0.9);ld.set(2,1,0.9);\n\t\tld.set(0,2,0.81);\n\t\tld.set(2,0,0.81);\n\t\tdouble[] weights = {2,2,2};\n\t\tAnalyticVegas myAnalyticObj= null;\n\t\t//UpperSymmDenseMatrix myMatToDecompose = null;\n\t\tdouble[] myEigenvals = null;\n\t\tdouble[] emptyWeights = {1,1,1};\n\t\tmyAnalyticObj= new AnalyticVegas(snpScores, ld, emptyWeights);\n\t\tmyAnalyticObj.computeScore();\n\t\tmyEigenvals = myAnalyticObj.computeLambda();\n\t\tassertEquals(myEigenvals[0],2.74067, delta);\n\t\tassertEquals(myEigenvals[1],0.1900, delta);\n\t\tassertEquals(myEigenvals[2],0.06932, delta);\n\t\t\n\t\tmyAnalyticObj= new AnalyticVegas(snpScores, ld, weights);\n\t\tmyAnalyticObj.computeScore();\n\t\tmyEigenvals = myAnalyticObj.computeLambda();\t\t\t\n\t\tassertEquals(myEigenvals[0], 5.481348, delta);\n\t\tassertEquals(myEigenvals[1],0.380000, delta);\n\t\tassertEquals(myEigenvals[2],0.138652, delta);\n\t\t\t\n\t\tdouble[] weights2 = {1,2,0.5};\n\t\t\n\t\tmyAnalyticObj= new AnalyticVegas(snpScores, ld, weights2);\n\t\tmyAnalyticObj.computeScore();\n\t\tmyEigenvals = myAnalyticObj.computeLambda();\t\t\n\t\tassertEquals(myEigenvals[0],3.27694674, delta);\n\t\tassertEquals(myEigenvals[1],0.1492338, delta);\n\t\tassertEquals(myEigenvals[2],0.07381938, delta);\t\t\t\n\t\t\n\t}", "public static String[] MatrixSolve(Matrix M){\n String[] retArray = new String[M.kol];\n for (int i=1; i<M.kol; i++) {\n retArray[i] = Character.toString((char) (i + 96));\n }\n for (int i=M.bar; i>=1; i--) {\n if (!M.IsRowCoefZero(i)) {\n if (M.OnlyLeadingOne(i)) {\n //Hanya ada leading one pada baris ke-i\n retArray[M.PosLeadingElmt(i)] = Double.toString(M.Elmt(i,M.kol));\n }else{\n //Ada elemen non-0 setelah leading one pada baris ke-i\n double resDouble = M.Elmt(i,M.kol);\n String resString = \"\";\n for (int j=M.PosLeadingElmt(i)+1; j<M.kol; j++) {\n if (M.Elmt(i,j) != 0) {\n //Kondisi elemen M ke i,j bukan 0\n try {\n //Jika hasil ke-x merupakan bilangan, maka jumlahkan dengan elemen hasil\n if (retArray[j].contains(\"d\")) {\n throw new NumberFormatException(\"contains d\");\n }\n resDouble += (-1)*M.Elmt(i,j)*Double.valueOf(retArray[j]);\n } catch(NumberFormatException e) {\n //Jika hasil ke-x bukan bilangan, sambungkan koefisien dengan parameter yang sesuai\n resString += ConCoefParam((-1)*M.Elmt(i,j),retArray[j]);\n }\n }\n }\n //Gabungkan bilangan hasil dengan parameter\n if (resDouble != 0) {\n retArray[M.PosLeadingElmt(i)] = String.format(\"%.3f\",resDouble) + resString;\n }else if (resDouble == 0 && resString == \"\"){\n retArray[M.PosLeadingElmt(i)] = String.format(\"%.3f\",resDouble);\n }else{\n retArray[M.PosLeadingElmt(i)] = resString;\n }\n\n if (retArray[M.PosLeadingElmt(i)].startsWith(\"+\")){\n retArray[M.PosLeadingElmt(i)] = retArray[M.PosLeadingElmt(i)].substring(1);\n }\n }\n }\n }\n return retArray;\n}", "@Override\n\tpublic double[][] calc() {\n\t\tfor (int i=0; i<this.singleMatrix.length; i++) {\n\t\t\t\n\t\t\tfor (int j=0; j<this.singleMatrix[i].length; j++) {\n\t\t\t\t\n\t\t\t\tthis.inverse = new double[this.singleMatrix.length][this.singleMatrix[i].length];\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tif (this.det != 0) {\t//if determinant is not 0.\n\t\t\t\n\t\t\tfor (int i=0; i<this.singleMatrix.length; i++) {\t\n\t\t\t\t\n\t\t\t\tfor (int j=0; j<this.singleMatrix[i].length; j++) {\n\t\t\t\t\t\n\t\t\t\t\tthis.cT = new double[this.singleMatrix.length][this.singleMatrix[i].length];\t//declare the size of co-factor matrix transposed\n\n\t\t\t\t\tthis.cT[i][j] = this.coFactor[j][i];\t//the rows of cT = the cols of coFactor matrix. the cols of cT = the rows of coFactor matrix\n\t\t\t\t\t\n\t\t\t\t\t/* # you might want to initialize this.inverse and calculate right after the above cT calculation done as follow,\n\t\t\t\t\t \n\t\t\t\t\t \t--------------------------------------------------------------------------------------\n\t\t\t\t\t \t- this.inverse = new double[this.singleMatrix.length][this.singleMatrix[i].length]; -\n\t\t\t\t\t \t- this.inverse[i][j] = 1 / this.det * this.cT[i][j]; -\n\t\t\t\t\t \t--------------------------------------------------------------------------------------\n\t\t\t\t\t \n\t\t\t\t\t technically, it's not really a problem when it comes to initializing one more variable in the same loop.\n\t\t\t\t\t however, this specific situation, that three variables (coFacotr, cT and inverse) and their values are involved in, occurs an unexpected result which is still not an error.\n\t\t\t\t\t \n\t\t\t\t\t this.coFactor is done in a loop in initializing and calculating \n\t\t\t\t\t this.cT and this.inverse are done in a loop in initializing and calculating\n\t\t\t\t\t \n\t\t\t\t\t # thus, calculation goes as it goes and this.inverse will be kept initializing until the loop ends.\n\t\t\t\t\t this.inverse will then always & only store its running value at a current location depending on increment of i and j.\n\t\t\t\t\t you will see only one result at the last index and won't see all the values stored correctly.\n\t\t\t\t\t (all of the values will be zero except the last value at the last index)\n\t\t\t\t\t \n\t\t\t\t\t # one simple solution is to initialize and calculate a variable -inverse in this case- in a separate for-loop\n\t\t\t\t\t \n\t\t\t\t\t */\n\n\t\t\t\t\t//calculate inverse here but initialize it in another for-loop\n\t\t\t\t\tthis.inverse[i][j] = 1 / this.det * this.cT[i][j]; //formula: A-1 = 1 / det * cT\n\t\t\t\t}\t\n\t\t\t}\n\t\t\t\n\t\t}else {\t//det is 0\n\t\t\t\n\t\t\tSystem.out.println(\"\\nThe matrix is a singular. singular matrices can not have inverses.\");\n\t\t}\n\t\t\n\t\t//print\n\t\tSystem.out.println(\"\\nInverse of the current matrix is: \");\n\t\tfor (int i=0; i<this.singleMatrix.length; i++) {\n\t\t\t\t\t\n\t\t\tfor (int j=0; j<this.singleMatrix[i].length; j++) {\n\t\t \t\t\n\t\t\t\tSystem.out.print(String.format(\"%.2f\", this.inverse[i][j]) + \" \");\t//display the result with a space between value representing as two decimal point\n//\t\t\t\tSystem.out.print(this.inverse[i][j] + \" \");\t//display the result with a space between value representing as two decimal point\n\t\t\t}\n\t\tSystem.out.println();\t//a new line for the next row and cols\n\t\t}\n\t\t\n\t\treturn inverse;\t//return the value of inverse\n\t}", "public double[][] getData() {\n\t\treturn mat_;\n\t}", "public Matrix extract(){\r\n\t\t\r\n\t\tDouble[][] newVal = new Double[col][row - 1];\r\n\t\t\r\n\t\tfor(Double[] row: AllVal){\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "float[] getModelMatrix();", "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}", "private double getRecEnergy(){\n\t\tdebugMatrix = new double[CELL_SIDE_COUNT][CELL_SIDE_COUNT];\n\t\tconvolutedMatrix = new Complex[CELL_SIDE_COUNT][CELL_SIDE_COUNT];\n\t\t//initiliaze the whole convolutedMatrix array to zero\n\t\tfor(int x = 0; x < CELL_SIDE_COUNT; x++)\n\t\t{\n\t\t\tfor(int y = 0; y < CELL_SIDE_COUNT; y++)\n\t\t\t{\n\t\t\t\tconvolutedMatrix[x][y] = Complex.zero;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Pg. 180 Lee[05]\n\t\tint indexTop = CELL_SIDE_COUNT * CELL_SIDE_COUNT;\n\t\t//Eq 19 Lee[05]\n\t\t//Also Eq 3.9 Essman[95]\n\t\tdouble sum = 0;\n\t\tint indtop = CELL_SIDE_COUNT * CELL_SIDE_COUNT;\n\t\tint midPoint = CELL_SIDE_COUNT / 2;\n\t\tif (midPoint << 1 < CELL_SIDE_COUNT) {\n\t\t\t++midPoint;\n\t\t}\n\t\t\n\t\tfor (int ind = 1; ind <= (indtop - 1); ++ind) {\n\t\t\t\n\t\t\tint y = ind / CELL_SIDE_COUNT + 1;\n\t\t\tint x = ind - (y - 1) * CELL_SIDE_COUNT + 1;\n\t\t\tint mXPrime = x - 1;\n\t\t\tif (x > midPoint) {\n\t\t\t\tmXPrime = x - 1 - CELL_SIDE_COUNT;\n\t\t\t}\n\t\t\tint mYPrime = y - 1;\n\t\t\tif (y > midPoint) {\n\t\t\t\tmYPrime = y - 1 - CELL_SIDE_COUNT;\n\t\t\t}\n\t\t\tdouble m = mXPrime * 1.0 + mYPrime * 1.0; //Was inverseMeshWidth - theory is reciprocal lattice vectors are for the entire cell U rather than one cell\n\t\t\tdouble mSquared = squared(mXPrime * 1.0) + squared(mYPrime * 1.0);\n\t\t\t\n\t\t\tdouble V = 1; //working in the unit mesh\n\t\t\tdouble bterm = M.bspmod[x]*M.bspmod[y];\n\t\t\tdouble eterm = Math.exp(-squared(Math.PI/ewaldCoefficient)*mSquared) / (bterm * Math.PI * V * mSquared);\n\t\t\t//Section 3.2.8 Lee[05]\n\t\t\tdouble inverseQPart = (squared(inverseFTQComplex[x-1][y-1].re())+squared(inverseFTQComplex[x-1][y-1].im())); //Lee[05]\n\t\t\tdouble thisContribution = eterm * inverseQPart;\n\t\t\tconvolutedMatrix[x-1][y-1] = inverseFTQComplex[x-1][y-1].scale(eterm); //Save this for the force calculation\n\t\t\tsum += thisContribution; //from the argument that F(Q(M))*F(Q(-M))=F-1(Q)^2\n\t\t}\n\t\treturn 0.5*sum;\n\t}", "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 double[] initial()\r\n\t{\r\n\t\treturn initial;\r\n\t}", "public static void main(String[] args) throws IOException {\n\n\t\t\n\t\tdouble[] columnwise = {1.,2.,3.,4.,5.,6.,7.,8.,9.,10.,11.,12.};\n\t\tdouble[] condmat = {1.,3.,7.,9.};\n\t\tint[] matrixDimension = new int[10]; // dont except to ever use more than 4 cells. would by 99x99\n\n\tString[] inputARGNull = null ;\n\t\tArrayList<Integer> inputTestData = new ArrayList<>(Arrays.asList(11,2,3,6,11,18,45,88));\n\n//\t\tSystem.out.println();\n//\t\tSystem.out.println(inputTestData.toString());\n//\t\tSystem.out.println(\"Test Running Class: \" +this.getClass() ) ;\t\n//\t\tMatrix testRunMatrix = new Matrix(2, 3, inputTestData );\n\n\t\tMatrix testRunMatrix = new Matrix();\n\t\ttestRunMatrix.setName(\"testRunMatrix\");\n\t\ttestRunMatrix.displayCompact();\n//\t\tclearScreen();\n\n\t\tMatrix firstRunMatrixParams = new Matrix(3,3, inputTestData);\n\t\tfirstRunMatrixParams.setName(\"firstRunMatrixParams\");\n\t\tfirstRunMatrixParams.displayCompact();\n//\t\tclearScreen();\n\t\t\n\t\tMatrix secondRunMatrixParams = new Matrix(3,3, columnwise); // or condmat\n\t\tsecondRunMatrixParams.setName(\"secondRunMatrixParams\");\n\t\tsecondRunMatrixParams.displayCompact();\n//\t\tclearScreen();\n\t\t\n\t//\tfirstRunMatrixParams.displayDeepString();\n\t//\tsecondRunMatrixParams.displayDeepString();\n\t\tmatrixDimension[0]=2;\n\t\tmatrixDimension[1]=3;\n\t\n\t\tMatrix outOfSeqTestMatrix = new Matrix(matrixDimension, columnwise);\n\t\tsecondRunMatrixParams.setName(\"outOfSeqTestMatrix\");\n\t\tsecondRunMatrixParams.displayCompact();\n\t\t\n\t\tMatrix addResult = firstRunMatrixParams.Add(secondRunMatrixParams);\n\t\taddResult.setName(\"addResult\");\n\t\t\n\t\taddResult.displayCompact();\n//\t\tclearScreen();\n\t\t\n//\t\taddResult = addResult.Multiply((22/7));\n\t\taddResult = addResult.Multiply(3.623);\n\t\taddResult.displayMore();\n\t\t\n\t\t\n\t\tString[] testInput1 = new String[]{\"-c\",\"5x4\",\"12\", \"32\", \"43\", \"44\", \"5\",\"5\",\"5\",\"4\",\"4\",\".999999999\",\"0\",\"0\",\"0\",\"9\",\"4\",\"2.71826\",\"3.14159\",\"33\",\"11\",\"0.1136\",\"888\",\"7\",\"6\",\"5\"};\n\t\tInputStringObj myTestCase = new InputStringObj(\"-c\", testInput1);\n\t\tInputNumericObj myNumTest = new InputNumericObj(myTestCase);\n\t\t\n\t\tSystem.out.println(\"And Now a Matrix from a Numeric Object\");\n\n\t\tMatrix numObjBasedMatrix = new Matrix(myNumTest,\"TestMatrix.java_string\");\n\t\tnumObjBasedMatrix.setName(\"numObjBasedMatrix\");\n\t\tnumObjBasedMatrix.displayCompact();\n\tSystem.out.println(\"\");\n\tSystem.out.println(\"\");\n\t\tnumObjBasedMatrix.displayMore();\n\t\t\n\t\t\n//\t\tclearScreen();\n\t\t\n\t}", "public MatrixModel evaluateAllInstances(String fileName, svm_model model) throws IOException {\n //read data from file\n //read the data from file and put it in the train module\n\n System.out.println(\"Start testing\");\n FileReader input = new FileReader(fileName);\n BufferedReader bufRead = new BufferedReader(input);\n String line = null;\n\n MatrixModel matrixModel = new MatrixModel(0, 0, 0, 0, 0);\n\n ArrayList<DataObject> dataSet = new ArrayList<DataObject>();\n\n while ((line = bufRead.readLine()) != null) {\n String[] array = line.split(\",\");\n DataObject o = new DataObject(\n Integer.parseInt(array[2]),\n Integer.parseInt(array[3]),\n Integer.parseInt(array[4]),\n Integer.parseInt(array[5]),\n Integer.parseInt(array[6]),\n Integer.parseInt(array[7]),\n Integer.parseInt(array[8]),\n Integer.parseInt(array[9]),\n Integer.parseInt(array[10]),\n Integer.parseInt(array[1])\n );\n if (o.getCategory() == 2)\n o.setCategory(1);\n else\n o.setCategory(-1);\n dataSet.add(o);\n }\n\n int recordSize = dataSet.size();\n System.out.println(\"DataSet Size: \" + dataSet.size());\n\n double nodeValues[][] = new double[recordSize][]; //jagged array used to store values\n int nodeIndexes[][] = new int[recordSize][];//jagged array used to store node indexes\n\n for (int i = 0; i < dataSet.size(); i++) {\n\n LinkedList<Integer> listIndx = new LinkedList<Integer>();\n LinkedList<Double> listVal = new LinkedList<Double>();\n\n listIndx.add(1);\n listVal.add((double) dataSet.get(i).getClumpThickness());\n\n listIndx.add(2);\n listVal.add((double) dataSet.get(i).getUniformityOfCellSize());\n\n listIndx.add(3);\n listVal.add((double) dataSet.get(i).getUniformityOfCellShape());\n\n listIndx.add(4);\n listVal.add((double) dataSet.get(i).getMarginalAdhesion());\n\n listIndx.add(5);\n listVal.add((double) dataSet.get(i).getSingleEpithelialCellSize());\n\n listIndx.add(6);\n listVal.add((double) dataSet.get(i).getBareNuclei());\n\n listIndx.add(7);\n listVal.add((double) dataSet.get(i).getBlandChromatin());\n\n listIndx.add(8);\n listVal.add((double) dataSet.get(i).getNormalNucleoli());\n\n listIndx.add(9);\n listVal.add((double) dataSet.get(i).getMitoses());\n\n if (listVal.size() > 0) {\n nodeValues[i] = new double[listVal.size()];\n nodeIndexes[i] = new int[listIndx.size()];\n }\n for (int m = 0; m < listVal.size(); m++) {\n nodeIndexes[i][m] = listIndx.get(m);\n nodeValues[i][m] = listVal.get(m);\n }\n }\n\n int positive = 0;\n int negative = 0;\n for (int i = 0; i < recordSize; i++) {\n int tmpIndexes[] = nodeIndexes[i];\n double tmpValues[] = nodeValues[i];\n\n System.out.print(i + 1);\n System.out.print(\" Expected: \" + (float) dataSet.get(i).getCategory());\n double v = evaluateSingleInstance(tmpIndexes, tmpValues, model);\n System.out.print(\", \");\n\n\n if ((float) dataSet.get(i).getCategory() == 1.0) {\n positive++;\n if (v == 1.0) {\n matrixModel.setTruePositive(matrixModel.getTruePositive() + 1);\n } else {\n matrixModel.setFalseNegative(matrixModel.getFalseNegative() + 1);\n }\n } else {\n negative++;\n if (v == -1.0) {\n matrixModel.setTrueNegative(matrixModel.getTrueNegative() + 1);\n } else {\n matrixModel.setFalsePositive(matrixModel.getFalsePositive() + 1);\n }\n }\n }\n\n System.out.println();\n System.out.println(\"Positive: \" + positive);\n System.out.println(\"Negative: \" + negative);\n matrixModel.setAccuracy(\n ((float) matrixModel.getTruePositive() + (float) matrixModel.getTrueNegative())\n /\n ((float) positive + (float) negative));\n return matrixModel;\n }", "private void m1do() {\n for (int i = 0; i < 2; i++) {\n this.my[i] = null;\n }\n for (int i2 = 0; i2 < 2; i2++) {\n this.mz[i2] = 0;\n }\n this.mC = 0.0d;\n this.lf = 0;\n }", "@Test(timeout = 4000)\n public void test135() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[1] = intArray0[0];\n int[] intArray2 = new int[0];\n intArray0[2] = intArray2;\n int[] intArray3 = new int[6];\n intArray3[1] = 0;\n String string0 = resultMatrixGnuPlot0.doubleToString(0, 0);\n assertEquals(\"0.\", string0);\n \n intArray3[2] = 2;\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n resultMatrixSignificance0.getRevision();\n int int0 = ResultMatrix.SIGNIFICANCE_TIE;\n int int1 = resultMatrixSignificance0.getSignificance(2469, 0);\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, int1);\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n }", "public List<Vector<Double>> calculateModel()\n {\n List<Vector<Double>> yModel = new LinkedList<>();\n yModel.add(this.initialValues());\n for (int j = 0; j < this.tSpan; j++)\n {\n yModel.add(this.calculateStep());\n }\n\n this.etatPopulation = yModel;\n return yModel;\n }", "public void calcInc(int np)\n\t{\n \n findSpecEq();\n int nofc=numberOfComponents;\n fvec.timesEquals(0.0);\n fvec.set(nofc+1,0,1.0);\n Matrix dxds=Jac.solve(fvec);\n if (np<5)\n {\n double dp=0.01;\n ds=dp/dxds.get(nofc+1,0);\n Xgij.setMatrix(0,nofc+1,np-1,np-1,u);\n dxds.timesEquals(ds);\n // dxds.print(0,10);\n u.plusEquals(dxds);\n // Xgij.print(0,10);\n// u.print(0,10);\n }\n else\n {\n //System.out.println(\"iter \" +iter + \" np \" + np);\n if (iter>6)\n { \n ds *= 0.5;\n System.out.println(\"ds > 6\");\n }\n \n else\n {\n if (iter<3) {\n ds *= 1.5;\n }\n if (iter==3) {\n ds *= 1.1;\n }\n if (iter==4) {\n ds *= 1.0;\n }\n if (iter>4) {\n ds *= 0.5;\n }\n \n// Now we check wheater this ds is greater than dTmax and dPmax.\n if(Math.abs(system.getTemperature()*dxds.get(nofc,0)*ds)>dTmax){\n // System.out.println(\"true T\");\n ds=sign(dTmax/system.getTemperature()/Math.abs(dxds.get(nofc,0)),ds);\n }\n \n if(Math.abs(system.getPressure()*dxds.get(nofc+1,0)*ds)>dPmax)\n {\n ds=sign(dPmax/system.getPressure()/Math.abs(dxds.get(nofc+1,0)),ds);\n // System.out.println(\"true P\");\n }\n if (etterCP2) {\n etterCP2=false;\n ds = 0.5*ds;\n }\n \n Xgij.setMatrix(0,nofc+1,0,2,Xgij.getMatrix(0,nofc+1,1,3)); \n Xgij.setMatrix(0,nofc+1,3,3,u);\n s.setMatrix(0,0,0,3,Xgij.getMatrix(speceq,speceq,0,3));\n // s.print(0,10);\n // System.out.println(\"ds1 : \" + ds);\n calcInc2(np);\n // System.out.println(\"ds2 : \" + ds);\n \n// Here we find the next point from the polynomial.\n \n }\n }\n }", "public static void main(String[] args) {\n double[] vArr = {5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75};\n double[] tempArr = {-40, -30, -20, -10, 0, 10, 20, 30, 40, 50};\n //1. utwórz tablice 2-wymiarowa\n //2. potrzebuje: typprzechowanej wartosci i rozmiar, czyli\n //typ: double\n //rozm w kierunku temp.: -40, -30, -20, ... 50 -> 10 elementow\n //rozm w kierunku v: 5, 10, 15, 20, 25, -> 15 elelmentow\n double[][] resultMatrix = new double[vArr.length][tempArr.length];\n\n //3. rM(1, 3) = f(10, -10) = -7,5;\n //Odczytac wartosc v i temp do obliczen i podstawic do wzoru - wynik umiescic w odp miejscu tab rM\n for (int v = 0; v < vArr.length; v++){\n for (int t = 0; t < tempArr.length; t++){\n resultMatrix[v][t] = 35.74 + 0.6215 * tempArr[t] + (0.4275 * tempArr[t] - 35.75) * Math.pow(vArr[v], 0.16);\n }\n }\n\n //mam juz uzupelniona cala tab wartosci - wyswietlic\n for (int v = 0; v < vArr.length; v++){\n for (int t = 0; t < tempArr.length; t++){\n System.out.println(String.format(\"f(%d, %d) = %f\", (int) vArr[v], (int) tempArr[t], resultMatrix[v][t]));\n }\n }\n System.out.println(\"Tabela wartosci: \");\n for (int v = 0; v < vArr.length; v++) {\n for (int t = 0; t < tempArr.length; t++){\n System.out.println(resultMatrix[v][t] + \"\\t\");\n }\n System.out.println();\n }\n System.out.println(\"Podaj v: <5, 10, 15... 75>\");\n //5 -> vArr[0]\n //75 -> vArr[14]\n //userInput/5 - 1\n Scanner sc = new Scanner(System.in);\n int userInput = sc.nextInt();\n int vIdx = userInput / 5 - 1;\n System.out.println(\"Podaj temp: <-40, -30... 50>\");\n userInput = sc.nextByte();\n int tempIdx = (userInput + 40) / 10;\n\n System.out.println(String.format(\"f(%d, %d) = %f\", (int) vArr[vIdx], (int) tempArr[tempIdx], resultMatrix[vIdx][tempIdx]));\n }", "public double[] getDoubleArray (String variable){\r\n if (matlabEng==null) return null;\r\n double[][] returnValue = matlabEng.engGetArray(id,variable);\r\n return returnValue[0];\r\n}", "public static void main(String[] args) throws FileNotFoundException\n {\n // Set up readers\n // File Reader\n Scanner scn = new Scanner(new File(InputFilePath));\n Scanner userScn = new Scanner(System.in);\n // Set up containers\n /*\n double xValues[];\n double yValues[];\n * I can never predict the input file... Although I'd like to use arrays,\n * ArrayLists are always easy easy easy.\n * */\n ArrayList<Double> xValues = new ArrayList<>();\n ArrayList<Double> yValues = new ArrayList<>();\n\n // X and Y Value input from text file\n while(scn.hasNextDouble())\n {\n xValues.add(scn.nextDouble());\n yValues.add(scn.nextDouble());\n\n scn.nextLine(); // read next line of values\n }\n\n // d Input sanitation\n d = 0;\n while(!(/*d <= 4 && */d >= 1))\n {\n input(userScn);\n }\n\n // Populate X\n /*\n double[][] test = populateXMatrix(xValues); // populated correctedly\n for(int c = 0; c < test.length; c++)\n {\n for(int r = 0; r < test.length; r++)\n {\n System.out.print(test[r][c]);\n }\n System.out.println();\n }\n * // Uncomment to test input of XMatrix... I keep getting an index out\n * of bounds, but regardless, the building of the matrix is correct\n * The For-loop just keeps going even though it's clearly not supposed to\n */\n XMatrix = new Matrix(populateXMatrix(xValues));\n\n // Populate Y\n /*\n double[] test2 = populateYMatrix(yValues);\n for(int r = 0; r < test2.length; r++)\n {\n System.out.print(test2[r]);\n }\n System.out.println();\n * */\n YMatrix = new Matrix(populateYMatrix(yValues), d + 1);\n\n /*\n // Inverse XMatrix // DOES NOT WORK\n InverseMatrix = XMatrix.inverse();\n\n // Multiply YMatrix by InverseMatrix // DOES NOT WORK\n Matrix ProductMatrix = YMatrix.times(InverseMatrix);\n //InverseMatrix.times(YMatrix);\n int a = 97;\n for(int i = 0; i < d + 1; i++)\n {\n System.out.print((char) (a + i) + \" = \" + ProductMatrix.get(0, i));\n }\n * */\n\n // Solve for Coefficients\n // This is pathetic, but extremely efficient. I have the Source if you\n // want to see...\n // SOLVES IN SPECIFIED ORDER: X*K = Y and returns K\n SolutionMatrix = XMatrix.solve(YMatrix);\n\n // Return Coefficients\n // I dynamically change the coefficient returned based on the index\n // Essentially I have a program that has a maximum solving capacity of 143\n for(int i = 0; i < d + 1; i++)\n {\n System.out.println((char)((int)'a' + i) + \" = \" + SolutionMatrix.get(i, 0) + \" \");\n }\n\n // Graph Results\n // TODO: IMPLEMENT LATER\n\n // find R^2 Value\n /*\n System.out.println(FindMeanY(yInputValues));\n System.out.println(FindR2(yInputValues, xInputValues));\n * */\n }", "public int[][] getMatriuSolucio() {\n\t\treturn null;\n\t}", "@JavascriptInterface\n public float[] getData() {\n float[]mis;\n int i,k;\n mis[0]=misC;\n for(k=0;k<12;k++){\n for (i=0;i<(k+1)*misC;i++){\n mis[k*i+1]=misure[i][k];\n }\n }\n\n return mis; // JS non ha gli array bidimensionali !!!!\n }", "float[] getMVPMatrix();", "public Matrix P0 ();", "public void test_0020() {\n int nFactors = 2;\n FactorAnalysis instance = new FactorAnalysis(data, nFactors);\n\n assertEquals(instance.nObs(), 18., 1e-15);\n assertEquals(instance.nVariables(), 6., 1e-15);\n assertEquals(instance.nFactors(), 2., 1e-15);\n\n FAEstimator estimators = instance.getEstimators(400);\n\n Vector uniqueness = estimators.psi();\n assertArrayEquals(\n new double[]{0.005, 0.114, 0.642, 0.742, 0.005, 0.097},\n uniqueness.toArray(),\n 2e-2);\n\n int dof = estimators.dof();\n assertEquals(dof, 4);\n\n double fitted = estimators.logLikelihood();\n assertEquals(fitted, 1.803, 1e-3);\n\n Matrix loadings = estimators.loadings();\n assertTrue(AreMatrices.equal(\n new DenseMatrix(new double[][]{\n {0.971, 0.228},\n {0.917, 0.213},\n {0.429, 0.418},\n {0.363, 0.355},\n {0.254, 0.965},\n {0.205, 0.928}\n }),\n loadings,\n 1e-3));\n\n double testStats = estimators.statistics();\n assertEquals(testStats, 23.14, 1e-2);\n\n double pValue = estimators.pValue();\n assertEquals(pValue, 0.000119, 1e-6);//R: 1-pchisq(23.14, df=4) = 0.0001187266\n\n// System.out.println(uniqueness.toString());\n// System.out.println(fitted);\n// System.out.println(loadings.toString());\n }", "public double[] eigenValues(){\n if(!this.pcaDone)this.pca();\n return this.eigenValues;\n }", "private Matrix performCalibration(ArrayList<double[]> points2d, ArrayList<double[]> points3d) {\n\n\t\tSystem.out.println(\"out\");\n\t\t//create A, Chapter 7, pg 5\n\t\tdouble [] m = new double[2*points3d.size()*12];\n\n\t\tint width = 12;\n\t\tfor(int y = 0; y<points3d.size()*2; y++){\n\t\t\tfor(int x=0; x<width; x++){\n\t\t\t\tif((y%2)==0){\n\t\t\t\t\tif(x>=0 && x<4) {\n\t\t\t\t\t\t/*System.out.println(\"X \" + x);\n\t\t\t\t\t\tSystem.out.println(\"Y \" + y);\n\t\t\t\t\t\tSystem.out.println(\"SZ \" + points3d.size());\n\t\t\t\t\t\tif(x == 0 && y ==24){\n\t\t\t\t\t\t\tSystem.out.println(\"BREAK\");\n\t\t\t\t\t\t}*/\n\t\t\t\t\t\tm[y * width + x] = points3d.get(y/2)[x];\n\t\t\t\t\t}\n\t\t\t\t\telse if(x>3 && x<8)\n\t\t\t\t\t\tm[y*width+x] = 0;\n\t\t\t\t\telse if(x>7 && x<12)\n\t\t\t\t\t\tm[y*width+x] = -(points3d.get(y/2)[x-8] * points2d.get(y/2)[0]);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tif(x>=0 && x<4)\n\t\t\t\t\t\tm[y*width+x] = 0;\n\t\t\t\t\telse if(x>3 && x<8)\n\t\t\t\t\t\tm[y*width+x] = points3d.get(y/2)[x-4];\n\t\t\t\t\telse if(x>7 && x<12)\n\t\t\t\t\t\tm[y*width+x] = -(points3d.get(y/2)[x-8] * points2d.get(y/2)[1]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//System.out.println(\"Finish\");\n\t\t//create matrix A\n\t\tMatrix A = new Matrix(points2d.size() * 2, 12, m);//rows,columns\n\n\t\tMatrix U = new Matrix ();\n\t\tMatrix D = new Matrix ();\n\t\tMatrix V = new Matrix ();\n\n\t\t//perform SVD2 on A\n\t\tA.SVD2(U,D,V);\n\n\t\tdouble[] rv = new double[12];\n\t\tMatrix p = new Matrix();\n\t\tV.getCol(V.cols-1,p);\n\n\t\tfor(int i=0; i<12; i++){\n\t\t\trv[i] = p.get(i,0)/p.get(11,0);\n\t\t}\n\n\t\treturn new Matrix(3, 4, rv);\n\t}", "public float[] splCramer(){\n float [] solX = new float[(this.NKolEff) - 1];\n\n Matriks temp, temp1;\n float d,dx;\n temp = BuatMatriks(this.NBrsEff, this.NKolEff - 1);\n //mengisi temp dengan matriks koefisien variabel\n for (int i = 0 ; i<this.NBrsEff;i++){\n for (int j = 0; j<(this.NKolEff) -1 ; j++){\n temp.M[i][j] = this.M[i][j];\n }\n }\n \n d = temp.DeterminanOBE();\n if (d == 0){\n if (!this.isSolutionExist()) {\n System.out.println(\"SPL tidak memiliki solusi.\");\n this.Solusi = \"SPL tidak memiliki solusi.\";\n } else {\n System.out.println(\"SPL memiliki banyak solusi. Untuk melihat solusi parametrik gunakan eliminasi Gauss atau Gauss-Jordan\");\n this.Solusi = \"SPL memiliki banyak solusi. Untuk melihat solusi parametrik gunakan eliminasi Gauss atau Gauss-Jordan\";\n }\n }\n else{\n temp1 = BuatMatriks(this.NBrsEff, this.NKolEff - 1);\n for (int i = 0; i<temp1.NKolEff; i++){\n for (int j = 0; j<this.NBrsEff;j++){\n for (int k = 0; k<temp1.NKolEff;k++){\n if (k!=i){\n temp1.M[j][k] = this.M[j][k];\n }\n else{\n temp1.M[j][k] = this.M[j][this.NKolEff -1];\n }\n }\n }\n dx = temp1.DeterminanOBE();\n solX[i] = dx/d;\n int counter = i+1;\n System.out.println(\"x\" + counter +\" = \" + solX[i]);\n this.Solusi += \"x\" + counter +\" = \" + solX[i] + \"\\n\";\n }\n }\n return solX;\n }", "@Override\n\tpublic void calucate(EuroMatrices Result, OFNMatchData matchData) {\n\t\t\n\t}", "public MLMOEA_Ang(Problem problem) {\r\n\t\tsuper(problem);\r\n\t\tzideal_ = new double[problem.getNumberOfObjectives()];\r\n\t\tznadir_ = new double[problem.getNumberOfObjectives()];\r\n\t}", "private void init() {\r\n\tlocals = new float[maxpoints * 3];\r\n\ti = new float[] {1, 0, 0};\r\n\tj = new float[] {0, 1, 0};\r\n\tk = new float[] {0, 0, 1};\r\n\ti_ = new float[] {1, 0, 0};\r\n\tk_ = new float[] {0, 0, 1};\r\n }", "public double[] RightHandSide(ArrayList<Argument> variableArgList, ArrayList<Argument> stockArgList, \n ArrayList<FlowObject> flowArrayList, ArrayList<StockObject> stockArrayList,\n ArrayList<VariableObject> variableArrayList) {\n\n //set double array of size of stockArrayList\n double[] ret = new double[stockArgList.size()];\n\n ArrayList<Argument> globalArgList = new ArrayList<Argument>();\n globalArgList.addAll(stockArgList);\n globalArgList.addAll(variableArgList);\n Argument[] globalvariables = globalArgList.toArray(new Argument[globalArgList.size()]);\n\n Expression e;\n Expression v;\n //for how ever many stocks there are, you get each stock and find the solution to each equation from the stock using\n // the variables array. it then returns that to the double ret array at the appropriate index\n \n //code for updating variable values. needs to be fixed -KM\n /*for (int k = 0;k<variableArgList.size(); k++){\n VariableObject var = variableArrayList.get(k);\n String eq=var.getVarEquation();\n v = new Expression(eq, globalvariables);\n variableArgList.get(k).setArgumentValue(v.calculate());\n for(int r=0;r<globalArgList.size();r++){\n if(globalArgList.get(r).getArgumentName().equals(variableArgList.get(k).getArgumentName())){\n globalArgList.get(r).setArgumentValue(variableArgList.get(k).getArgumentValue());\n }\n else{}\n }\n }*/\n for (int i = 0; i < stockArgList.size(); i++) {\n StockObject stock = stockArrayList.get(i);\n Vector<ModelingObject> inputs = stock.getInputs();\n Vector<ModelingObject> outputs = stock.getOutputs();\n String equations = \"\";\n for (ModelingObject mobj : inputs) {\n if (mobj.getStyle() == 0) { // check if the incoming is flow\n FlowObject fobj = (FlowObject) mobj;\n equations += fobj.getFlowEquation();// if it is flow then add the equation\n }\n\n }\n for (ModelingObject mobj : outputs) {\n if (mobj.getStyle() == 0) { // check if the incoming is flow\n FlowObject fobj = (FlowObject) mobj;\n equations += \"-\" + fobj.getFlowEquation();// if it is flow th en add the equation\n }\n }\n e = new Expression(equations, globalvariables);\n ret[i] = e.calculate();\n }\n\n return ret;\n }", "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 PMVMatrix(boolean useBackingArray) {\n projectFloat = new ProjectFloat();\n \n // I Identity\n // T Texture\n // P Projection\n // Mv ModelView\n // Mvi Modelview-Inverse\n // Mvit Modelview-Inverse-Transpose\n if(useBackingArray) {\n matrixBufferArray = new float[6*16];\n matrixBuffer = null;\n // matrixBuffer = FloatBuffer.wrap(new float[12*16]);\n } else {\n matrixBufferArray = null;\n matrixBuffer = Buffers.newDirectByteBuffer(6*16 * Buffers.SIZEOF_FLOAT);\n matrixBuffer.mark();\n }\n \n matrixIdent = slice2Float(matrixBuffer, matrixBufferArray, 0*16, 1*16); // I\n matrixTex = slice2Float(matrixBuffer, matrixBufferArray, 1*16, 1*16); // T\n matrixPMvMvit = slice2Float(matrixBuffer, matrixBufferArray, 2*16, 4*16); // P + Mv + Mvi + Mvit \n matrixPMvMvi = slice2Float(matrixBuffer, matrixBufferArray, 2*16, 3*16); // P + Mv + Mvi\n matrixPMv = slice2Float(matrixBuffer, matrixBufferArray, 2*16, 2*16); // P + Mv\n matrixP = slice2Float(matrixBuffer, matrixBufferArray, 2*16, 1*16); // P\n matrixMv = slice2Float(matrixBuffer, matrixBufferArray, 3*16, 1*16); // Mv\n matrixMvi = slice2Float(matrixBuffer, matrixBufferArray, 4*16, 1*16); // Mvi\n matrixMvit = slice2Float(matrixBuffer, matrixBufferArray, 5*16, 1*16); // Mvit\n \n if(null != matrixBuffer) {\n matrixBuffer.reset();\n } \n ProjectFloat.gluMakeIdentityf(matrixIdent);\n \n vec3f = new float[3];\n matrixMult = new float[16];\n matrixTrans = new float[16];\n matrixRot = new float[16];\n matrixScale = new float[16];\n matrixOrtho = new float[16];\n matrixFrustum = new float[16];\n ProjectFloat.gluMakeIdentityf(matrixTrans, 0);\n ProjectFloat.gluMakeIdentityf(matrixRot, 0);\n ProjectFloat.gluMakeIdentityf(matrixScale, 0);\n ProjectFloat.gluMakeIdentityf(matrixOrtho, 0);\n ProjectFloat.gluMakeZero(matrixFrustum, 0);\n \n matrixPStack = new ArrayList<float[]>();\n matrixMvStack= new ArrayList<float[]>();\n \n // default values and mode\n glMatrixMode(GL_PROJECTION);\n glLoadIdentity();\n glMatrixMode(GL_MODELVIEW);\n glLoadIdentity();\n glMatrixMode(GL.GL_TEXTURE);\n glLoadIdentity();\n setDirty();\n update();\n }", "@Test(timeout = 4000)\n public void test177() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n Vector<Integer> vector0 = new Vector<Integer>();\n resultMatrixSignificance0.m_HeaderKeys = vector0;\n vector0.add((Integer) 0);\n resultMatrixSignificance0.getRevision();\n resultMatrixSignificance0.getVisibleRowCount();\n int[] intArray0 = new int[3];\n intArray0[0] = 1;\n intArray0[1] = 1;\n intArray0[2] = 0;\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(1, 2);\n resultMatrixGnuPlot0.getDefaultColNameWidth();\n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot();\n ResultMatrixGnuPlot resultMatrixGnuPlot2 = new ResultMatrixGnuPlot();\n resultMatrixGnuPlot2.setRowHidden(0, false);\n assertEquals(1, resultMatrixGnuPlot2.getVisibleRowCount());\n \n resultMatrixSignificance0.getDefaultShowStdDev();\n resultMatrixSignificance0.headerKeys();\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n }", "void readData(String fileName){ \r\n\t\ttry{ \r\n\t\t\tScanner sc = new Scanner(new File(fileName), \"UTF-8\");\r\n\t\t\t\r\n\t\t\t// input grid dimensions and simulation duration in timesteps\r\n\t\t\tdimt = sc.nextInt();\r\n\t\t\tdimx = sc.nextInt(); \r\n\t\t\tdimy = sc.nextInt();\r\n\t\t\t//System.out.println(dimt+\" \"+dimx + \" \"+dimy);\r\n\t\t\t// initialize and load advection (wind direction and strength) and convection\r\n\t\t\tadvection = new Vector[dimt][dimx][dimy];\r\n\t\t\tconvection = new float[dimt][dimx][dimy];\r\n\t\t\tfor(int t = 0; t < dimt; t++)\r\n\t\t\t\tfor(int x = 0; x < dimx; x++)\r\n\t\t\t\t\tfor(int y = 0; y < dimy; y++){\r\n\t\t\t\t\t\tadvection[t][x][y] = new Vector();\r\n\t\t\t\t\t\tadvection[t][x][y].x = Float.parseFloat(sc.next());\r\n\t\t\t\t\t\tadvection[t][x][y].y = Float.parseFloat(sc.next());\r\n\t\t\t\t\t\tconvection[t][x][y] = Float.parseFloat(sc.next());\r\n\t\t\t\t\t\t//System.out.println(advection[t][x][y].x+\" \"+advection[t][x][y].y + \" \"+convection[t][x][y]);\r\n\t\t\t\t\t}\r\n\t\t\t\r\n\t\t\tclassification = new int[dimt][dimx][dimy];\r\n\t\t\tsc.close(); \r\n\t\t} \r\n\t\tcatch (IOException e){ \r\n\t\t\tSystem.out.println(\"Unable to open input file \"+fileName);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tcatch (InputMismatchException e){ \r\n\t\t\tSystem.out.println(\"Malformed input file \"+fileName);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public float [][] GetMatrix() {\n \n\t/*\n\tinputs--\n\t*/\n\t\n\t/*\n\toutputs--\n\t\n\tmat_f_m :\n\t The self matrix\n\t*/\n\t\n\treturn this.mat_f_m;\n \n }", "public ArrayList<double[]> getMatrix() {\n return matrix;\n }", "@Test\r\n public void testGetNDMValues() {\r\n System.out.println(\"getNDMValues\");\r\n NDM instance = null;\r\n Vector<Double> expResult = null;\r\n //Vector<Double> result = instance.getNDMValues();\r\n //assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n //fail(\"The test case is a prototype.\");\r\n }", "public void setMeasurementArray(){\n\t\tnResults = rt.size();\n\t\tData = new double[4][nResults];\n\t\tfor(int i =1; i<nResults; i++) {\n\t\t\tData[0][i]=i;\n\t\t\tData[1][i]=rt.getValueAsDouble(rt.getColumnIndex(\"Mean\"),i); \n\t\t\tData[2][i]=rt.getValueAsDouble(rt.getColumnIndex(\"StdDev\"),i);\n\t\t\tData[3][i]=rt.getValueAsDouble(rt.getColumnIndex(\"Max\"),i)-rt.getValueAsDouble(rt.getColumnIndex(\"Min\"),i);\n\t\t}\n\t\treturn;\n\t}", "Matrix(){\n matrixVar = new double[1][1];\n rows = 1;\n columns = 1;\n }", "public DisMatrix(int sqNum, String file){\n\t\tFileHelper hp = new FileHelper();\n\t\tdm = new double[sqNum][sqNum];\n\t\tthis.sqNum = sqNum;\n\t\t\n\t\tList<Float> fileRead = hp.readDisFromFile(file);\n\t\tint index = 0;\n\t\tfor(int i = 0; i < sqNum; i++)\n\t\t{\n\t\t\tfor(int j = i; j < sqNum; j++)\n\t\t\t{\n\t\t\t\tif(i == j) dm[i][j] = public_data.MAXDIS;\n\t\t\t\telse{\n\t\t\t\t\tdm[i][j] = fileRead.get(index++);\n\t\t\t\t}\n\t\t\t}\n\t\t}\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 static void test() {\n // create M-by-N matrix that doesn't have full rank\n int M = 8, N = 5;\n Matrix B = Matrix.random(5, 3);\n Matrix A = Matrix.random(M, N).times(B).times(B.transpose());\n System.out.print(\"A = \");\n A.print(9, 6);\n\n // compute the singular vallue decomposition\n System.out.println(\"A = U S V^T\");\n System.out.println();\n SingularValueDecomposition s = A.svd();\n System.out.print(\"U = \");\n Matrix U = s.getU();\n U.print(9, 6);\n System.out.print(\"Sigma = \");\n Matrix S = s.getS();\n S.print(9, 6);\n System.out.print(\"V = \");\n Matrix V = s.getV();\n V.print(9, 6);\n System.out.println(\"rank = \" + s.rank());\n System.out.println(\"condition number = \" + s.cond());\n System.out.println(\"2-norm = \" + s.norm2());\n\n // print out singular values\n System.out.print(\"singular values = \");\n Matrix svalues = new Matrix(s.getSingularValues(), 1);\n svalues.print(9, 6);\n\n\t\t Matrix C = U.times(S).times(V.transpose());\n\t\t C.print(9, 6);\n\n\t\t Matrix D = A.transpose();\n\t\t D.print(9, 6);\n\n\t\t Matrix E = D.times(A);\n\t\t E.print(9, 6);\n }", "public Vector getRealEigenvalues() {\n return d;\n }", "public float solveEqun(float[][] values, int uf, int eq) {\n float sol=0;\n float v=0,u=0,a=0,t=0,s=0;\n for (int i=0;i<3;i++) {\n for (int j=0;j<2;j++) {\n if (values[i][1] == 1)\n v = values[i][0];\n else if (values[i][1] == 2)\n u = values[i][0];\n else if (values[i][1] == 3)\n a = values[i][0];\n else if (values[i][1] == 4)\n t = values[i][0];\n else if (values[i][1] == 5)\n s = values[i][0];\n }\n }\n\n if (eq == 1) {\n if (uf == 1) {\n sol = u+(a*t);\n //System.out.println(\"u:\"+u);\n }\n else if (uf == 2) {\n sol = v - (a*t);\n //System.out.println(\"V:\"+v);\n }\n\n else if (uf == 3)\n sol = (v-u)/t;\n else if (uf == 4)\n sol = (v-u)/a;\n }\n\n else if (eq == 2) {\n if (uf == 5)\n sol = (float) ((u*t) + (0.5*a*t*t));\n else if (uf == 2)\n sol = (float) ((s-(0.5*a*t*t))/t);\n else if (uf == 3)\n sol = (float) ((s-(u*t))/(0.5*t*t));\n else if (uf == 4) {\n float sol1 = (float) ((-u+Math.sqrt(u*u+(4*0.5*a*t*t*s)))/(2*u));\n float sol2 = (float) ((-u-Math.sqrt(u*u+(4*0.5*a*t*t*s)))/(2*u));\n if (sol1<0)\n sol = sol2;\n else\n sol = sol1;\n }\n }\n\n else if (eq == 3) {\n if (uf == 1)\n sol = (float) Math.sqrt((2*a*s)-(u*u));\n else if (uf == 2)\n sol = (float) Math.sqrt((v*v)-(2*a*s));\n else if (uf == 3)\n sol = ((v*v)-(u*u))/(2*s);\n else if (uf == 5)\n sol = ((v*v)-(u*u))/(2*a);\n }\n\n return sol;\n }", "@Test\n public void test03() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(0.0, (-2623.33457), 0.0);\n Gaussian gaussian0 = new Gaussian();\n AllowedSolution allowedSolution0 = AllowedSolution.BELOW_SIDE;\n double double0 = regulaFalsiSolver0.solve(1253, (UnivariateRealFunction) gaussian0, (-979.1), (-347.4), 0.0, allowedSolution0);\n double double1 = regulaFalsiSolver0.doSolve();\n }", "public void calcMatrix() {\n \n FockState rowState = new FockState(_systemSize, _epsilon, _mass);\n FockState opedState = new FockState(_systemSize, _epsilon, _mass);\n Integer column;\n int[] momenta = new int[_phiPow-1]; \n for(int row=0; row<_numStates; row++) {\n \n // Run through the matrix rows\n \t// Set the row state and create the row Map\n \t\n rowState.setAsIndex(row);\n Map<Integer, Double> rowMap = new HashMap<Integer, Double>();\n \t\t_elements.add(row, rowMap);\n\n \t// Reset the momenta combinations array\n \t\n \tfor(int i=0; i<(_phiPow-1); i++) {\n momenta[i]=0;\n } \n for(int j=0; j<_momCombs; j++) {\n \n // Run through the various momenta combinations\n \n for(int opType=0; opType<_opCombs; opType++) {\n \n // Run through the various operator combinations\n \n opedState.makeSameAs(rowState);\n applyOperators(opedState, momenta, opType); \n if(opedState.isValid()==true) {\n \t\n \t// Calculate the column\n \t\n \tcolumn = opedState.calcIndex(); \n \tif((column != null) && (column < _numStates)) {\n \t\t\n \t\t// If the resulting state is valid and within the cutoff, store the result\n \t\t\n \t\tstore(row, column, momenta);\n \n \t} \t\n } \n }\n \n // Increment the momenta label array unless this is the final run through\n \n if(j != (_momCombs-1)) {\n \tincrementMomentaLabel(momenta);\n } \n } \n }\n \n }", "private static double [][] exe_helper (double [] rf) throws Exception {\r\n\t\r\n\t\tint p1 = rf.length; // [nf,p1]=size(rf);\r\n\t\tint p0 = p1-1;\r\n\t\tdouble [] rr = null;\r\n\t\tdouble [] ar = null;\r\n\t\t\r\n\t\tif (p0!=0)\r\n\t\t{\r\n\t\t\tdouble [] a = new double [] {rf[1]}; //a = rf(:,2); // array eith a single elemtne, at the moment\r\n\r\n\t\t\t// rr=[ones(nf,1) -a zeros(nf,p0-1)];\r\n\t\t\trr = new double[p0+1];\r\n\t\t\tArrays.fill(rr, 0.0);\r\n\t\t\trr[0] = 1;\r\n\t\t\trr[1] = -a[0];\r\n\r\n\t\t\t// e = (a.^2-1);\r\n\t\t\tdouble e = a[0]*a[0]-1;\r\n\r\n\t\t\tfor (int n = 2; n<=p0; n++) // for n = 2:p0\r\n\t\t\t{\r\n\t\t\t\tdouble k = rf[n]; // k=rf(:,n+1); // It s a column vector\r\n\r\n\t\t\t\t// rr(:,n+1) =k.*e - sum(rr(:,n:-1:2).*a,2);\r\n\t\t\t\trr[n] = k*e - MyMath.sum(MyMath.arrayTimes(MyMath.select(rr, n-1, 1, -1), a));\r\n\r\n\t\t\t\t// a = [a+k(:,ones(1,n-1)).*a(:,n-1:-1:1) k];\r\n\t\t\t\tdouble [] aa = new double[a.length +1];\r\n\t\t\t\tfor (int i=0; i<a.length; i++)\r\n\t\t\t\t\taa[i] = a[i] + k*a[n-2-i];\r\n\t\t\t\taa[aa.length-1] = k;\r\n\t\t\t\ta = aa;\r\n\r\n\t\t\t\t// e = e.*(1-k.^2);\r\n\t\t\t\te *= (1-k*k);\r\n\t\t\t}\r\n\t\t\t \r\n\t\t\t// ar = [ones(nf,1) a];\r\n\t\t\tar = new double [1+a.length];\r\n\t\t\tar[0] = 1;\r\n\t\t\tSystem.arraycopy(a, 0, ar, 1, a.length);\r\n\t\t\t\r\n\t\t\tdouble r0 = 1.0/MyMath.sum(MyMath.arrayTimes(rr, ar)); // r0=sum(rr.*ar,2).^(-1);\r\n\t\t\t\r\n\t\t\tMyMath.timesSelf(rr, r0); // rr=rr.*r0(:,ones(1,p1));\r\n\t\t\t\r\n\t\t\t// if nargin>1 && ~isempty(p)\r\n\t\t\t// if p<p0\r\n\t\t\t// rr(:,p+2:p1)=[];\r\n\t\t\t// else\r\n\t\t\t//\r\n\t\t\t// rr=[rr zeros(nf,p-p0)];\r\n\t\t\t// af=-ar(:,p1:-1:2);\r\n\t\t\t// for i=p0+1:p\r\n\t\t\t// rr(:,i+1)=sum(af.*rr(:,i-p0+1:i),2);\r\n\t\t\t// end\r\n\t\t\t// end\r\n\t\t\t// end\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\trr = new double [] {1.0}; // rr=ones(nf,1);\r\n\t\t\tar = new double [] {1.0}; // ar=rr;\r\n\t\t}\r\n\r\n\t\treturn new double [][] {rr, ar};\r\n\t}", "public static void main(String[] args) {\n\t\tSetMatrixZ73 s = new SetMatrixZ73();\r\n\t\tint[][] matrix = {{0,2,3},{4,0,6},{7,8,9}};\r\n\t\ts.setZeros(matrix);\r\n\t\tfor(int i = 0; i < 3; i++){\r\n\t\t\tfor(int j = 0; j < 3; j++){\r\n\t\t\t\tSystem.out.print(matrix[i][j] + \" \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\t}", "public void ConceptosMatrices() {\n int[][] maX={{5,6,6},\n {5,6,2},\n {5,12,2},\n {5,6,2}};\n //Obtener el tamaño de la fila de la matriz maX\n System.out.println(\"Tamaño en fila matriz maX=\"+maX.length);\n //Obtener el tamaño de la columna de la matriz maX\n System.out.println(\"Tamaño en fila matriz maX=\"+maX[0].length);\n System.out.println(\"Mostrar el valor 12 de la matriz maX=\"+maX[2][1]);\n //Cambiar el elemento 12 de la matriz maX por 16\n maX[2][1]=16;\n Scanner sc=new Scanner(System.in);\n System.out.println(\"Ingrese un valor en los indices 2,2\");\n maX[2][2]=sc.nextInt();\n \n System.out.println(\"Defina el indice para fila:\");\n int iFx=sc.nextInt(); \n int iCx=sc.nextInt(); \n System.out.println(\"Ingrese un valor en los indices \"+iFx+\", \"+iCx+\":\");\n maX[iFx][iCx]=sc.nextInt(); \n \n imprimirMatriz(maX);\n \n //defenir matrices sin dimensiones\n int[][] matrizN;\n //definiendo dimensiones a una matriz\n System.out.println(\"Ingrese la dimension en fila para la MatrizN=\");\n int inFi=sc.nextInt();\n System.out.println(\"Ingrese la dimension en columna para la MatrizN=\");\n int inCo=sc.nextInt();\n matrizN=new int[inFi][inCo]; \n int vi=0;\n //Rellenando una matriz con una serie de numeros\n for (int f = 0; f < matrizN.length; f++) {\n for (int c = 0; c < matrizN[0].length; c++) {\n System.out.println(\"Ingrese un valor en matrizN[\"+f+\"][\"+c+\"]:=\");\n matrizN[f][c]=sc.nextInt();\n vi=vi+2;\n } \n } \n System.out.println(\"la nueva matrizN es de: \"+matrizN.length+\"x\"+matrizN[0].length);\n imprimirMatriz(matrizN); \n\n }", "public double[][] getArrayReference(){\r\n \treturn this.matrix;\r\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 double[] Jordan(Matriks M) {\r\n int i, j, k = 0, c;\r\n int flag = 0;\r\n int n = M.BrsEff; \r\n\t\tdouble[][] a = new double[n][n+1];\r\n\t\tdouble[] x;\r\n \r\n for (i = 0; i < M.BrsEff; i++){\r\n for (j = 0; j < M.KolEff; j++){\r\n a[i][j] = M.Elmt[i][j];\r\n }\r\n }\r\n\r\n for (i = 0; i < n; i++){ \r\n if (a[i][i] == 0){ \r\n c = 1; \r\n while ((i + c) < n && a[i + c][i] == 0){ \r\n c++;\r\n } \r\n if ((i + c) == n){\r\n flag = 1; \r\n break; \r\n }\r\n for (j = i, k = 0; k <= n; k++){\r\n double temp =a[j][k]; \r\n a[j][k] = a[j+c][k]; \r\n a[j+c][k] = temp; \r\n }\r\n } \r\n \r\n for (j = 0; j < n; j++){ \r\n if (i != j){ \r\n double p = a[j][i] / a[i][i];\r\n for (k = 0; k <= n; k++){ \r\n a[j][k] = a[j][k] - (a[i][k]) * p;\r\n } \r\n } \r\n } \r\n }\r\n for (i = 0; i < M.BrsEff; i++){\r\n if ((a[i][i]!=0) && (a[i][i]!=1)){\r\n for (j = i; j < M.KolEff; j++){\r\n M.Elmt[i][j] = a[i][j] / a[i][i];\r\n }\r\n }\r\n }\r\n if (flag == 1){\r\n flag = 3;\r\n \t for (i = 0; i < n; i++) { \r\n \t double sum = 0; \r\n \t for (j = 0; j < n; j++){ \r\n \t sum = sum + M.Elmt[i][j]; \r\n \t }\r\n \t if (sum == M.Elmt[i][n]) { \r\n \t flag = 2; \r\n \t }\r\n \t }\r\n \t if (flag == 3){\r\n \t x = new double[n+3];\r\n for (i = 0; i < n; i++){\r\n x[i] = 0;\r\n }\r\n \t }\r\n \t else {\r\n \t x = new double[n+2];\r\n for (i = 0; i < n; i++){\r\n x[i] = 0;\r\n }\r\n \t }\r\n }\r\n else{\r\n x = new double[n];\r\n for (i = 0; i < n; i++){\r\n x[i] = a[i][M.KolEff-1] / a[i][i];\r\n }\r\n }\r\n return x;\r\n }", "public void multiSolver() {\n\t\tmsSize = 0;\n\t\tmsMin = Integer.MAX_VALUE;\n\t\tmsMax = Integer.MIN_VALUE;\n\t\tmsHeight = 0;\n\t\tmultiSolver(root, 0);\n\t\tSystem.out.println(\"Size = \" + msSize);\n\t\tSystem.out.println(\"Min = \" + msMin);\n\t\tSystem.out.println(\"Max = \" + msMax);\n\t\tSystem.out.println(\"Height = \" + msHeight);\n\t}", "public Matrix getValue();", "public static void matrixDis()\n\t{\n\t\t\n\t\tclade = clad[k];\n\t\t//System.err.println(\"\\n\\n\" + clade.cladeName);\n\n\t\tfor(c=0; c<clade.numSubClades; c++)\n\t\t{\n\t\t\tclade.Dc[c]=0;\n\t\t\tclade.Dn[c]=0;\n\t\t\t//clade.varDc[c]=0;\n\t\t\t//clade.varDn[c]=0;\n\t\t\tsum1 = sum2 = sum3 = 0;\n\t\t\tsumc1 = sumc2 = sumc3 = 0;\n\n\t\t\tfor(i=0; i<clade.numCladeLocations; i++) \t\n\t\t\t{\t\n\t\t\t\t\n\t\t\t\tsum2 += clade.obsMatrix[c][i] * (clade.obsMatrix[c][i]-1) / 2 ;\n\t\t\t\tsumc2 += (clade.obsMatrix[c][i] * (clade.obsMatrix[c][i]-1) / 2) + \n\t\t\t (clade.obsMatrix[c][i] * (clade.columnTotal[i] - clade.obsMatrix[c][i]));\t\n\t\t\t\n\t\t\t\tfor (j=0; j<clade.numCladeLocations; j++)\n\t\t\t\t{\t\n\t\t\t\t\tpopA = clade.cladeLocIndex[i];\n\t\t\t\t\tpopB = clade.cladeLocIndex[j];\n\t\t\t\t\t\n\t\t\t\t\tif (j != i)\n\t\t\t\t\t{\n\t\t\t\t\t\tsum1 += (double) clade.obsMatrix[c][i] * clade.obsMatrix[c][j] * distance[popA-1][popB-1];\n\t\t\t\t\t\tsum3 += clade.obsMatrix[c][i] * clade.obsMatrix[c][j];\t\t\t\n\t\t\t\t\t\tsumc1 += (double) clade.obsMatrix[c][i] * clade.columnTotal[j] * distance[popA-1][popB-1];\t\n\t\t\t\t\t\tsumc3 += clade.obsMatrix[c][i] * clade.columnTotal[j];\n\t\t\t\t\t\t//System.err.println(\"\\npopA = \" + popA + \" popB = \" + popB + \" dist= \" + distance[popA-1][popB-1]);\n\t\t\t\t\t\t//System.err.println(\"sumc1: \" + clade.obsMatrix[c][i] + \" * \" + clade.columnTotal[j] +\" * \" + distance[popA-1][popB-1] + \" = \" + sumc1); \n\t\t\t\t\t\t//System.err.println(\"\\nOBS[\" + c +\"][\" + i+ \"]= \" + clade.obsMatrix[c][i]); \n\t\t\t\t\t\t//System.err.println(\"\\nCT[\" + j +\"]= \" + clade.columnTotal[j]); \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\n\t\t\t//System.err.println(\"\\nOBS[\" + c +\"][\" + i+ \"]= \" + clade.obsMatrix[c][i]); \n\t\t\n\t\t\t\n\t\t\tif (sum3 == 0.0)\n\t\t\t\tclade.Dc[c] = 0.0;\n\t\t\telse\n\t\t\t\tclade.Dc[c] = sum1 / (sum2 + sum3);\t\t\t\t\n\t\n\t\n\t\t\tif (sumc3 == 0.0)\n\t\t\t\tclade.Dn[c] = 0.0;\n\t\t\telse\n\t\t\t\tclade.Dn[c] = sumc1 / (sumc2 + sumc3);\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t//System.err.println(\"\\nClade \" + clade.cladeName + \" subclade \" + c + \n\t\t\t// \" Dc= \" + clade.Dc[c] + \" Dn= \" + clade.Dn[c]); \t\t\n\t\t\t//System.err.println(\"sum1= \" + sum1 + \" sum2= \" + sum2 + \" sum3= \" + sum3); \n\t\t\t//System.err.println(\"sumc1= \" + sumc1 + \" sumc2= \" + sumc2 + \" sumc3= \" + sumc3); \t\n\t\t}\t\t\n\n\t}", "private void updateValues(){\n if (mCelsian != null) {\n mCelsian.readMplTemp();\n mCelsian.readShtTemp();\n mCelsian.readRh();\n mCelsian.readPres();\n mCelsian.readUvaValue();\n mCelsian.readUvbValue();\n mCelsian.readUvdValue();\n mCelsian.readUvcomp1Value();\n mCelsian.readUvcomp2Value();\n }\n }", "public static Experiment lawson1162_E() { \n\n\t\tExperiment experiment = createLawsonExperiment( 1162, false );\n\t\t\n\t\tComplexMatrix pm = new ComplexMatrix(2);\n\t\t\n\t\tpm.set( 0, 0, 9.778932093636766E-6, +1.1539001755855298 );\n\t\tpm.set( 0, 1, 9.54090827267122E-6, -0.5761611044097982); //these minus signs are made up\n\t\tpm.set( 1, 0, -4.664462353536279E-6, -0.5776434681545166); //these minus signs are made up\n\t\tpm.set( 1, 1, -1.2050992588859665E-5,+1.153881700898593);\n\t\t\n\t\texperiment.setActual(pm);\n\t\t\n\t\treturn experiment;\n\t}", "@Test(timeout = 4000)\n public void test167() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n resultMatrixLatex0.showStdDevTipText();\n resultMatrixLatex0.getRevision();\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixLatex0);\n resultMatrixGnuPlot0.RIGHT_PARENTHESES = \")\";\n resultMatrixGnuPlot0.getDefaultRowNameWidth();\n int[] intArray0 = new int[7];\n intArray0[0] = 2;\n intArray0[1] = 2;\n intArray0[2] = 0;\n intArray0[3] = 1;\n intArray0[4] = 0;\n intArray0[5] = 1;\n intArray0[6] = 2;\n resultMatrixLatex0.m_ColOrder = intArray0;\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixGnuPlot0);\n int[] intArray1 = new int[6];\n intArray1[0] = 0;\n intArray1[1] = 50;\n intArray1[2] = 50;\n intArray1[3] = 50;\n intArray1[4] = 2;\n intArray1[5] = 0;\n resultMatrixSignificance0.m_RankingLosses = intArray1;\n resultMatrixSignificance0.getDisplayName();\n assertEquals(0, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n \n String string0 = resultMatrixLatex0.getSummaryTitle(0);\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"a\", string0);\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n }", "private Hashtable solve() {\n Hashtable<Integer, Double> solution = new Hashtable<>(); //maps variable (column) to its value\n double det = system.determinant();\n if (det == 0) {\n System.err.println(\"LinearSystem Solve Failed: determinant of matrix is 0\");\n return null;\n } else {\n for (int c = 0; c < system.N; c++) {\n double detC = colVectorIntoMatrix(c).determinant();\n solution.put(c, detC/det);\n }\n return solution;\n }\n }", "public Matrix luDecomp(){\r\n \tif(this.nrow!=this.ncol)throw new IllegalArgumentException(\"A matrix is not square\");\r\n \tint n = this.nrow;\r\n\t \tint imax = 0;\r\n\t \tdouble dum = 0.0D, temp = 0.0D, big = 0.0D;\r\n\t \tdouble[] vv = new double[n];\r\n\t \tdouble sum = 0.0D;\r\n\t \tdouble dumm = 0.0D;\r\n\r\n\t \tthis.matrixCheck = true;\r\n\r\n\t \tMatrix ludmat = Matrix.copy(this);\r\n\t \tdouble[][] ludarray = ludmat.getArrayReference();\r\n\r\n \t\tludmat.dswap=1.0D;\r\n\t \tfor (int i=0;i<n;i++) {\r\n\t\t \tbig=0.0D;\r\n\t\t \tfor (int j=0;j<n;j++)if ((temp=Math.abs(ludarray[i][j])) > big) big=temp;\r\n \t\tif (big == 0.0D){\r\n \t \t\tSystem.out.println(\"Attempted LU Decomposition of a singular matrix in Matrix.luDecomp()\");\r\n \t \t\tSystem.out.println(\"NaN matrix returned and matrixCheck set to false\");\r\n \r\n \t \t\tthis.matrixCheck=false;\r\n \t \t\tfor(int k=0;k<n;k++)for(int j=0;j<n;j++)ludarray[k][j]=Double.NaN;\r\n System.exit(-1);\r\n \t \t\treturn ludmat;\r\n \t\t}\r\n \t\t\tvv[i]=1.0/big;\r\n\t \t}\r\n\t \tfor (int j=0;j<n;j++) {\r\n\t\t \tfor (int i=0;i<j;i++) {\r\n\t\t\t \tsum=ludarray[i][j];\r\n\t\t\t \tfor (int k=0;k<i;k++) sum -= ludarray[i][k]*ludarray[k][j];\r\n\t\t\t \tludarray[i][j]=sum;\r\n\t\t \t}\r\n\t\t \tbig=0.0D;\r\n\t\t \tfor (int i=j;i<n;i++) {\r\n \t\t\t\tsum=ludarray[i][j];\r\n\t \t\t\tfor (int k=0;k<j;k++)\r\n\t\t\t\t \tsum -= ludarray[i][k]*ludarray[k][j];\r\n\t\t\t \t\tludarray[i][j]=sum;\r\n \t\t\t\t\tif ((dum=vv[i]*Math.abs(sum)) >= big) {\r\n\t\t\t\t \tbig=dum;\r\n\t\t\t\t \timax=i;\r\n\t\t\t \t\t}\r\n\t\t \t\t}\r\n\t\t \t\tif (j != imax) {\r\n\t\t\t \tfor (int k=0;k<n;k++) {\r\n\t\t\t\t \tdumm=ludarray[imax][k];\r\n\t\t\t\t \tludarray[imax][k]=ludarray[j][k];\r\n \t\t\t\t\tludarray[j][k]=dumm;\r\n\t\t\t \t}\r\n\t\t\t \tludmat.dswap = -ludmat.dswap;\r\n \t\t\t\tvv[imax]=vv[j];\r\n\t \t\t}\r\n\t\t \tludmat.index[j]=imax;\r\n\r\n\t\t \tif(ludarray[j][j]==0.0D){\r\n\t\t \tludarray[j][j]=TINY;\r\n\t\t \t}\r\n\t\t \tif(j != n-1) {\r\n\t\t\t \tdumm=1.0/ludarray[j][j];\r\n \t\t\t\tfor (int i=j+1;i<n;i++){\r\n \t\t\t \t\tludarray[i][j]*=dumm;\r\n\t \t \t\t}\r\n\t \t\t}\r\n\t \t}\r\n\t \treturn ludmat;\r\n\t }", "@Test(timeout = 4000)\n public void test181() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n int[] intArray2 = new int[0];\n intArray0[1] = intArray2;\n int[] intArray3 = new int[0];\n intArray0[2] = intArray3;\n int[] intArray4 = new int[6];\n intArray4[1] = 0;\n intArray4[2] = 2;\n intArray4[3] = 0;\n intArray4[4] = 2;\n intArray4[5] = 0;\n intArray0[3] = intArray4;\n int[] intArray5 = new int[3];\n intArray0[4] = intArray5;\n int[] intArray6 = new int[3];\n intArray6[1] = 1;\n intArray6[2] = 2;\n intArray0[5] = intArray6;\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n resultMatrixCSV0.setEnumerateRowNames(false);\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixCSV0);\n resultMatrixSignificance0.setColHidden(0, false);\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n resultMatrixLatex0.getDefaultPrintColNames();\n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance(resultMatrixCSV0);\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n \n resultMatrixLatex0.getDefaultPrintColNames();\n assertEquals(1, resultMatrixLatex0.getColCount());\n }", "private void declareArrays() {\n int iNumTimesteps = m_oLegend.getNumberOfTimesteps(),\n i, j, k;\n \n //Create arrays to hold raw data.\n mp_fLiveTreeVolumeTotals = new double[m_iNumSpecies][iNumTimesteps + 1][m_iNumSizeClasses];\n mp_fSnagVolumeTotals = new double[m_iNumSpecies][iNumTimesteps + 1][m_iNumSizeClasses]; \n mp_iLiveTreeCounts = new long[m_iNumSpecies][iNumTimesteps + 1][m_iNumSizeClasses];\n mp_iSnagCounts = new long[m_iNumSpecies][iNumTimesteps + 1][m_iNumSizeClasses];\n mp_fLiveTreeDBHTotal = new double[m_iNumSpecies][iNumTimesteps + 1];\n mp_fSnagDBHTotal = new double[m_iNumSpecies][iNumTimesteps + 1];\n mp_fTallestLiveTrees = new float[m_iNumSpecies+1][iNumTimesteps + 1][10];\n mp_fTallestSnags = new float[m_iNumSpecies+1][iNumTimesteps + 1][10];\n \n //Initialize all values with 0s\n for (i = 0; i < mp_fTallestLiveTrees.length; i++) {\n for (j = 0; j < mp_fTallestLiveTrees[i].length; j++) {\n for (k = 0; k < mp_fTallestLiveTrees[i][j].length; k++) {\n mp_fTallestLiveTrees[i][j][k] = 0;\n mp_fTallestSnags[i][j][k] = 0;\n }\n }\n }\n \n for (i = 0; i < m_iNumSpecies; i++) {\n for (j = 0; j <= iNumTimesteps; j++) {\n mp_fLiveTreeDBHTotal[i][j] = 0;\n mp_fSnagDBHTotal[i][j] = 0;\n for (k = 0; k < m_iNumSizeClasses; k++) {\n mp_iLiveTreeCounts[i][j][k] = 0;\n mp_iSnagCounts[i][j][k] = 0;\n mp_fLiveTreeVolumeTotals[i][j][k] = 0;\n mp_fSnagVolumeTotals[i][j][k] = 0;\n }\n }\n }\n }", "private double[][] toFormatNeuralNetwork(Map<String, Object> mpintpus){\n\t\tlogger.info(\" #### toFormatNeuralNetwork \"+mpintpus.values());\n\t\t\n\t\tCollection<Object> list = mpintpus.values();\n\t\tdouble[] input = new double[list.size()];\n\t\tint idx=0;\n\t\tfor (Object o : list) {\n\t\t\tinput[idx] = ((Double)o).doubleValue();\n\t\t\tidx++;\n\t\t}\t\n\t\tdouble[][]_inputs = {input};\n\t\treturn _inputs;\n\t}", "@Test(timeout = 4000)\n public void test184() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n int[] intArray2 = new int[0];\n intArray0[1] = intArray2;\n int[] intArray3 = new int[0];\n intArray0[2] = intArray3;\n int[] intArray4 = new int[6];\n intArray4[1] = 0;\n intArray4[2] = 2;\n intArray4[3] = 0;\n resultMatrixGnuPlot0.getRevision();\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixGnuPlot0);\n resultMatrixSignificance0.getRevision();\n resultMatrixSignificance0.toStringRanking();\n int int0 = resultMatrixSignificance0.getDisplayCol(2);\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(50, resultMatrixSignificance0.getRowNameWidth());\n assertEquals((-1), int0);\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n }", "@Test\n public void testParseMatrix() {\n String path1 = \"c:\\\\Voici\\\\input.txt\";\n MatrixReader reader = new MatrixReader(path1);\n Matrix data = reader.getMatrix();\n Matrix[] parsedMatrix = MatrixReader.parseMatrix(data, 10);\n assertEquals(parsedMatrix[0].get(4, 2), data.get(4, 2), 0.001);\n assertEquals(parsedMatrix[2].get(0, 0), data.get(32, 0), 0.001);\n assertEquals(parsedMatrix[1].get(0, 0), data.get(16, 0), 0.001);\n }", "public Matrix calculate();", "@Test\n public void testJamaProblem() throws IOException {\n\n Primitive64Store problematic = Primitive64Store.FACTORY\n .rows(new double[][] { { 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 1 }, { 0, 0, 0, 1, 0 }, { 1, 1, 0, 0, 1 }, { 1, 0, 1, 0, 1 } });\n\n CaseEigenvalue.doVerifyGeneral(problematic);\n }", "double[][][] getReduced(){\n \n return A4;\n }", "@Test\n public void testGitHUbIssue366() throws IOException {\n\n String path = \"src/test/resources/org/ojalgo/matrix/decomposition/GitHubIssue366_Mat.txt\";\n List<String> lines = Files.lines(Paths.get(path)).collect(Collectors.toList());\n\n Primitive64Store problematic = Primitive64Store.FACTORY.make(lines.size(), lines.size());\n\n for (int r = 0; r < lines.size(); r++) {\n String[] line_vec = lines.get(r).split(\" \");\n for (int c = 0; c < line_vec.length; c++) {\n double v = Double.parseDouble(line_vec[c]);\n problematic.set(r, c, v);\n }\n }\n\n CaseEigenvalue.doVerifyGeneral(problematic);\n }", "@Before\n public void setup() {\n threeByTwo = new Matrix(new int[][] {{1, 2, 3}, {2, 5, 6}});\n compareTwoByThree = new Matrix(new int[][] {{1, 42, 32}, {2, 15, 65}});\n oneByOne = new Matrix(new int[][] {{4}});\n rightOneByOne = new Matrix(new int[][] {{8}});\n twoByFour = new Matrix(new int[][] {{1, 2, 3, 4}, {2, 5, 6, 8}});\n twoByThree = new Matrix(new int[][] {{4, 5}, {3, 2}, {1, 1}});\n threeByThree = new Matrix(new int[][] {{4, 5, 6}, {3, 2, 0}, {1, 1, 1}});\n rightThreeByThree = new Matrix(new int[][] {{1, 2, 3}, {5, 2, 0}, {1, 1, 1}});\n emptyMatrix = new Matrix(new int[0][0]);\n // this is the known correct result of multiplying M1 by M2\n twoByTwoResult = new Matrix(new int[][] {{13, 12}, {29, 26}});\n threeByThreeResult = new Matrix(new int[][] {{35, 24, 18}, {13, 10, 9}, {7, 5, 4}});\n oneByOneSum = new Matrix(new int[][] {{12}});\n oneByOneProduct = new Matrix(new int[][] {{32}});\n }", "double[] getReferenceValues();", "@Override\n public Matrix idct(final MatrixView in) {\n check(in);\n double[][] out = new double[in.getRows()][in.getColumns()];\n double tmp1, tmp2, tmp3, tmp4;\n double tmpm0 = 0, tmpm1 = 0, tmpm2 = 0, tmpm3 = 0, tmpm4 = 0, tmpm5 = 0, tmpm6 = 0, tmpm7 = 0;\n double tmpm20, tmpm21, tmpm22, tmpm23, tmpm24, tmpm25, tmpm26, tmpm27 = 0;\n double[] outtmpmyi = null;\n\n for (int my = 0; my < in.getRows(); my += SIZE) {\n for (int mx = 0; mx < in.getColumns(); mx += SIZE) {\n for (int i = 0; i < 8; i++) {\n outtmpmyi = out[my + i];\n\n tmpm0 = in.getDouble(my + i, mx + 0);\n tmpm1 = in.getDouble(my + i, mx + 1);\n tmpm2 = in.getDouble(my + i, mx + 2);\n tmpm3 = in.getDouble(my + i, mx + 3);\n tmpm4 = in.getDouble(my + i, mx + 4);\n tmpm5 = in.getDouble(my + i, mx + 5);\n tmpm6 = in.getDouble(my + i, mx + 6);\n tmpm7 = in.getDouble(my + i, mx + 7);\n\n tmp1 = (tmpm1 * Z7) - (tmpm7 * Z1);\n tmp4 = (tmpm7 * Z7) + (tmpm1 * Z1);\n tmp2 = (tmpm5 * Z3) - (tmpm3 * Z5);\n tmp3 = (tmpm3 * Z3) + (tmpm5 * Z5);\n\n tmpm20 = (tmpm0 + tmpm4) * Z4;\n tmpm21 = (tmpm0 - tmpm4) * Z4;\n tmpm22 = (tmpm2 * Z6) - (tmpm6 * Z2);\n tmpm23 = (tmpm6 * Z6) + (tmpm2 * Z2);\n tmpm4 = tmp1 + tmp2;\n tmpm25 = tmp1 - tmp2;\n tmpm26 = tmp4 - tmp3;\n tmpm7 = tmp4 + tmp3;\n\n tmpm5 = (tmpm26 - tmpm25) * Z0;\n tmpm6 = (tmpm26 + tmpm25) * Z0;\n tmpm0 = tmpm20 + tmpm23;\n tmpm1 = tmpm21 + tmpm22;\n tmpm2 = tmpm21 - tmpm22;\n tmpm3 = tmpm20 - tmpm23;\n\n outtmpmyi[mx + 0] = tmpm0 + tmpm7;\n outtmpmyi[mx + 7] = tmpm0 - tmpm7;\n outtmpmyi[mx + 1] = tmpm1 + tmpm6;\n outtmpmyi[mx + 6] = tmpm1 - tmpm6;\n outtmpmyi[mx + 2] = tmpm2 + tmpm5;\n outtmpmyi[mx + 5] = tmpm2 - tmpm5;\n outtmpmyi[mx + 3] = tmpm3 + tmpm4;\n outtmpmyi[mx + 4] = tmpm3 - tmpm4;\n\n }\n\n for (int i = 0; i < 8; i++) {\n\n tmpm0 = out[my + 0][mx + i];\n tmpm1 = out[my + 1][mx + i];\n tmpm2 = out[my + 2][mx + i];\n tmpm3 = out[my + 3][mx + i];\n tmpm4 = out[my + 4][mx + i];\n tmpm5 = out[my + 5][mx + i];\n tmpm6 = out[my + 6][mx + i];\n tmpm7 = out[my + 7][mx + i];\n\n tmp1 = (tmpm1 * Z7) - (tmpm7 * Z1);\n tmp4 = (tmpm7 * Z7) + (tmpm1 * Z1);\n tmp2 = (tmpm5 * Z3) - (tmpm3 * Z5);\n tmp3 = (tmpm3 * Z3) + (tmpm5 * Z5);\n\n tmpm20 = (tmpm0 + tmpm4) * Z4;\n tmpm21 = (tmpm0 - tmpm4) * Z4;\n tmpm22 = (tmpm2 * Z6) - (tmpm6 * Z2);\n tmpm23 = (tmpm6 * Z6) + (tmpm2 * Z2);\n tmpm4 = tmp1 + tmp2;\n tmpm25 = tmp1 - tmp2;\n tmpm26 = tmp4 - tmp3;\n tmpm7 = tmp4 + tmp3;\n\n tmpm5 = (tmpm26 - tmpm25) * Z0;\n tmpm6 = (tmpm26 + tmpm25) * Z0;\n tmpm0 = tmpm20 + tmpm23;\n tmpm1 = tmpm21 + tmpm22;\n tmpm2 = tmpm21 - tmpm22;\n tmpm3 = tmpm20 - tmpm23;\n\n out[my + 0][mx + i] = tmpm0 + tmpm7;\n out[my + 7][mx + i] = tmpm0 - tmpm7;\n out[my + 1][mx + i] = tmpm1 + tmpm6;\n out[my + 6][mx + i] = tmpm1 - tmpm6;\n out[my + 2][mx + i] = tmpm2 + tmpm5;\n out[my + 5][mx + i] = tmpm2 - tmpm5;\n out[my + 3][mx + i] = tmpm3 + tmpm4;\n out[my + 4][mx + i] = tmpm3 - tmpm4;\n }\n }\n }\n\n return new DoubleMatrix(in.getRows(), in.getColumns(), out);\n }", "public double[] Cramer() {\r\n\t\tdouble MainDet; // Determinan Matriks utama\r\n\t\t\r\n\t\tdouble[] ValX = new double[KolEff-1]; // Array nilai setiap variabel X yang memenuhi\r\n\t\tdouble[] ArrB = new double[BrsEff]; // Array nilai konstanta B pada SPL\r\n\t\tdouble[] DetN = new double[KolEff-1]; // Array nilai determinan yang telah diganti sekolom dengan nilai B\r\n\t\t\r\n\t\tMatriks tempM = new Matriks(BrsEff,KolEff);\r\n\t\tMatriks tempM2 = new Matriks(BrsEff,KolEff-1);\r\n\t\t\r\n\t\ttempM = this;\r\n\t\t\r\n\t\tfor (int i=0; i<tempM.BrsEff; i++) {\r\n\t\t\tArrB[i] = tempM.Elmt[i][tempM.KolEff-1];\r\n\t\t}\r\n\t\t\r\n\t\ttempM.CutMatriks(0,1);\r\n\t\t\r\n\t\tMainDet = tempM.DetCofactor(tempM);\r\n\t\t\r\n\t\tfor (int j=0; j<tempM.KolEff; j++) {\r\n\t\t\ttempM2 = new Matriks(tempM.Elmt);\r\n\t\t\t\r\n\t\t\tfor (int i=0; i<tempM2.BrsEff; i++) {\r\n\t\t\t\ttempM2.Elmt[i][j] = ArrB[i];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tDetN[j] = tempM2.DetCofactor(tempM2);\r\n\t\t\t\r\n\t\t\tValX[j] = DetN[j]/MainDet;\r\n\t\t}\r\n\t\t\r\n\t\treturn ValX;\r\n\t}", "public Array2DRowRealMatrix getNormalisedData() {\r\n\t\t\r\n\t\t//declare variables\r\n\t\tdouble dataVal;\r\n\t\tdouble normalisationVal;\r\n\t\tdouble finalVal;\r\n\t\r\n\t\tArray2DRowRealMatrix returnMatrix = new Array2DRowRealMatrix(noOfWavelengths,2);\r\n\t\t\r\n\t\t//iterate through data\r\n\t\tfor(int rowIndex=0; rowIndex < noOfWavelengths; rowIndex++) {\r\n\t\t\t\r\n\t\t\t//normalised data value = (recorded data value / recorded normalisation value) * calibration ratio\r\n\t\t\tdouble[] normalData = new double[2];\r\n\r\n\t\t\tdataVal = data.getRow(rowIndex)[1];\r\n\t\t\tnormalisationVal = normalisationData.getRow(rowIndex)[1];\r\n\t\t\t\r\n\t\t\tnormalData[0] = data.getRow(rowIndex)[0];\r\n\t\t\tnormalData[1] = (dataVal / normalisationVal) * calibRatio;\r\n\t\t\t\r\n\t\t\treturnMatrix.setRow(rowIndex, normalData);\r\n\t\t}\r\n\r\n\t\treturn returnMatrix;\r\n\t}", "public float[][] valunitSeparate(String[] data, String ps) {\n int eq=0,i;\n int u=0,sum=0;\n String units[],values[];\n String unknown;\n int un[];\n float[][] val = new float[3][2];\n un = new int[3]; //stores integer values corresponding to each var\n units = new String[3];\n values = new String[3];\n\n for(i=0;i<3;i++) {\n units[i] = \"\";\n values[i] = \"\";\n }\n\n for(i=0;i<3;i++) {\n for(int j=0;j<data[i].length();j++) {\n String c = \"\";\n c=c+data[i].charAt(j);\n if(Pattern.matches(\"[0-9]*\\\\.?[0-9]*\",c)) {\n values[i] = values[i]+c;\n } else {\n units[i] = units[i]+c;\n }\n }\n }\n\n unknown = ai.unknownFnd(ps); //contains the unknown var\n\n for (i=0;i<3;i++) {\n if (Objects.equals(units[i], \"m/ssq\"))\n un[i] = 3;\n else if (Objects.equals(units[i], \"s\"))\n un[i] = 4;\n else if(Objects.equals(units[i], \"m\"))\n un[i] = 5;\n else if (Objects.equals(units[i], \"m/s\")) {\n if (Objects.equals(unknown, \"u\"))\n un[i] = 1;\n else if (Objects.equals(unknown, \"v\"))\n un[i] = 2;\n else\n un[i] = 2;\n }\n }\n\n for (i=0;i<3;i++) {\n val[i][0] = Float.parseFloat(values[i]);\n val[i][1] = un[i];\n }\n\n return (val);\n }", "public final float[][] reconstructedExactLevelSets() {\n \tfloat[][] levelsets = new float[nobj][nx*ny*nz];\n \tfor (int n=0;n<nobj;n++) {\n \t\tfor (int xyz=0; xyz<nx*ny*nz; xyz++) {\n \t\t\tif (mgdmlabels[0][xyz]==n) levelsets[n][xyz] = -mgdmfunctions[0][xyz];\n \t\t\telse levelsets[n][xyz] = 0.0f;\n \t\t\t\n \t\t\tint max=0;\n \t\t\tfor (int l=0;l<nmgdm && mgdmlabels[l][xyz]!=n;l++) {\n \t\t\t\tlevelsets[n][xyz] += mgdmfunctions[l][xyz];\n \t\t\t\tmax++;\n \t\t\t}\n \t\t\tif (max==nmgdm) levelsets[n][xyz] = UNKNOWN;\n \t\t}\n \t}\n \treturn levelsets;\n }", "private void buildMatrix() {\n\n int totalnumber=this.patents.size()*this.patents.size();\n\n\n\n int currentnumber=0;\n\n\n for(int i=0;i<this.patents.size();i++) {\n ArrayList<Double> temp_a=new ArrayList<>();\n for (int j=0;j<this.patents.size();j++) {\n if (i==j) temp_a.add(0.0); else if (i<j)\n {\n double temp = distance.distance(this.patents.get(i), this.patents.get(j));\n temp = (new BigDecimal(temp).setScale(2, RoundingMode.UP)).doubleValue();\n temp_a.add(temp);\n\n\n // simMatrix.get(i).set(j, temp);\n // simMatrix.get(j).set(i, temp);\n } else {\n temp_a.add(simMatrix.get(j).get(i));\n }\n currentnumber++;\n System.out.print(\"\\r\"+ProgressBar.barString((int)((currentnumber*100/totalnumber)))+\" \"+currentnumber);\n\n }\n simMatrix.add(temp_a);\n }\n System.out.println();\n\n }", "public double getLoZ() {\r\n\treturn fieldLoZ;\r\n}", "public void calculate(double[] theta) {\r\n dvModel.vectorToParams(theta);\r\n\r\n double localValue = 0.0;\r\n double[] localDerivative = new double[theta.length];\r\n\r\n TwoDimensionalMap<String, String, SimpleMatrix> binaryW_dfsG,binaryW_dfsB;\r\n binaryW_dfsG = TwoDimensionalMap.treeMap();\r\n binaryW_dfsB = TwoDimensionalMap.treeMap();\r\n TwoDimensionalMap<String, String, SimpleMatrix> binaryScoreDerivativesG,binaryScoreDerivativesB ;\r\n binaryScoreDerivativesG = TwoDimensionalMap.treeMap();\r\n binaryScoreDerivativesB = TwoDimensionalMap.treeMap();\r\n Map<String, SimpleMatrix> unaryW_dfsG,unaryW_dfsB ;\r\n unaryW_dfsG = new TreeMap<String, SimpleMatrix>();\r\n unaryW_dfsB = new TreeMap<String, SimpleMatrix>();\r\n Map<String, SimpleMatrix> unaryScoreDerivativesG,unaryScoreDerivativesB ;\r\n unaryScoreDerivativesG = new TreeMap<String, SimpleMatrix>();\r\n unaryScoreDerivativesB= new TreeMap<String, SimpleMatrix>();\r\n\r\n Map<String, SimpleMatrix> wordVectorDerivativesG = new TreeMap<String, SimpleMatrix>();\r\n Map<String, SimpleMatrix> wordVectorDerivativesB = new TreeMap<String, SimpleMatrix>();\r\n\r\n for (TwoDimensionalMap.Entry<String, String, SimpleMatrix> entry : dvModel.binaryTransform) {\r\n int numRows = entry.getValue().numRows();\r\n int numCols = entry.getValue().numCols();\r\n binaryW_dfsG.put(entry.getFirstKey(), entry.getSecondKey(), new SimpleMatrix(numRows, numCols));\r\n binaryW_dfsB.put(entry.getFirstKey(), entry.getSecondKey(), new SimpleMatrix(numRows, numCols));\r\n binaryScoreDerivativesG.put(entry.getFirstKey(), entry.getSecondKey(), new SimpleMatrix(1, numRows));\r\n binaryScoreDerivativesB.put(entry.getFirstKey(), entry.getSecondKey(), new SimpleMatrix(1, numRows));\r\n }\r\n for (Map.Entry<String, SimpleMatrix> entry : dvModel.unaryTransform.entrySet()) {\r\n int numRows = entry.getValue().numRows();\r\n int numCols = entry.getValue().numCols();\r\n unaryW_dfsG.put(entry.getKey(), new SimpleMatrix(numRows, numCols));\r\n unaryW_dfsB.put(entry.getKey(), new SimpleMatrix(numRows, numCols));\r\n unaryScoreDerivativesG.put(entry.getKey(), new SimpleMatrix(1, numRows));\r\n unaryScoreDerivativesB.put(entry.getKey(), new SimpleMatrix(1, numRows));\r\n }\r\n if (op.trainOptions.trainWordVectors) {\r\n for (Map.Entry<String, SimpleMatrix> entry : dvModel.wordVectors.entrySet()) {\r\n int numRows = entry.getValue().numRows();\r\n int numCols = entry.getValue().numCols();\r\n wordVectorDerivativesG.put(entry.getKey(), new SimpleMatrix(numRows, numCols));\r\n wordVectorDerivativesB.put(entry.getKey(), new SimpleMatrix(numRows, numCols));\r\n }\r\n }\r\n\r\n // Some optimization methods prints out a line without an end, so our\r\n // debugging statements are misaligned\r\n Timing scoreTiming = new Timing();\r\n scoreTiming.doing(\"Scoring trees\");\r\n int treeNum = 0;\r\n MulticoreWrapper<Tree, Pair<DeepTree, DeepTree>> wrapper = new MulticoreWrapper<Tree, Pair<DeepTree, DeepTree>>(op.trainOptions.trainingThreads, new ScoringProcessor());\r\n for (Tree tree : trainingBatch) {\r\n wrapper.put(tree);\r\n }\r\n wrapper.join();\r\n scoreTiming.done();\r\n while (wrapper.peek()) {\r\n Pair<DeepTree, DeepTree> result = wrapper.poll();\r\n DeepTree goldTree = result.first;\r\n DeepTree bestTree = result.second;\r\n\r\n StringBuilder treeDebugLine = new StringBuilder();\r\n Formatter formatter = new Formatter(treeDebugLine);\r\n boolean isDone = (Math.abs(bestTree.getScore() - goldTree.getScore()) <= 0.00001 || goldTree.getScore() > bestTree.getScore());\r\n String done = isDone ? \"done\" : \"\";\r\n formatter.format(\"Tree %6d Highest tree: %12.4f Correct tree: %12.4f %s\", treeNum, bestTree.getScore(), goldTree.getScore(), done);\r\n System.err.println(treeDebugLine.toString());\r\n if (!isDone){\r\n // if the gold tree is better than the best hypothesis tree by\r\n // a large enough margin, then the score difference will be 0\r\n // and we ignore the tree\r\n\r\n double valueDelta = bestTree.getScore() - goldTree.getScore();\r\n //double valueDelta = Math.max(0.0, - scoreGold + bestScore);\r\n localValue += valueDelta;\r\n\r\n // get the context words for this tree - should be the same\r\n // for either goldTree or bestTree\r\n List<String> words = getContextWords(goldTree.getTree());\r\n\r\n // The derivatives affected by this tree are only based on the\r\n // nodes present in this tree, eg not all matrix derivatives\r\n // will be affected by this tree\r\n backpropDerivative(goldTree.getTree(), words, goldTree.getVectors(),\r\n binaryW_dfsG, unaryW_dfsG,\r\n binaryScoreDerivativesG, unaryScoreDerivativesG,\r\n wordVectorDerivativesG);\r\n\r\n backpropDerivative(bestTree.getTree(), words, bestTree.getVectors(),\r\n binaryW_dfsB, unaryW_dfsB,\r\n binaryScoreDerivativesB, unaryScoreDerivativesB,\r\n wordVectorDerivativesB);\r\n\r\n }\r\n ++treeNum;\r\n }\r\n\r\n double[] localDerivativeGood;\r\n double[] localDerivativeB;\r\n if (op.trainOptions.trainWordVectors) {\r\n localDerivativeGood = NeuralUtils.paramsToVector(theta.length,\r\n binaryW_dfsG.valueIterator(), unaryW_dfsG.values().iterator(),\r\n binaryScoreDerivativesG.valueIterator(),\r\n unaryScoreDerivativesG.values().iterator(),\r\n wordVectorDerivativesG.values().iterator());\r\n\r\n localDerivativeB = NeuralUtils.paramsToVector(theta.length,\r\n binaryW_dfsB.valueIterator(), unaryW_dfsB.values().iterator(),\r\n binaryScoreDerivativesB.valueIterator(),\r\n unaryScoreDerivativesB.values().iterator(),\r\n wordVectorDerivativesB.values().iterator());\r\n } else {\r\n localDerivativeGood = NeuralUtils.paramsToVector(theta.length,\r\n binaryW_dfsG.valueIterator(), unaryW_dfsG.values().iterator(),\r\n binaryScoreDerivativesG.valueIterator(),\r\n unaryScoreDerivativesG.values().iterator());\r\n\r\n localDerivativeB = NeuralUtils.paramsToVector(theta.length,\r\n binaryW_dfsB.valueIterator(), unaryW_dfsB.values().iterator(),\r\n binaryScoreDerivativesB.valueIterator(),\r\n unaryScoreDerivativesB.values().iterator());\r\n }\r\n\r\n // correct - highest\r\n for (int i =0 ;i<localDerivativeGood.length;i++){\r\n localDerivative[i] = localDerivativeB[i] - localDerivativeGood[i];\r\n }\r\n\r\n // TODO: this is where we would combine multiple costs if we had parallelized the calculation\r\n value = localValue;\r\n derivative = localDerivative;\r\n\r\n // normalizing by training batch size\r\n value = (1.0/trainingBatch.size()) * value;\r\n ArrayMath.multiplyInPlace(derivative, (1.0/trainingBatch.size()));\r\n\r\n // add regularization to cost:\r\n double[] currentParams = dvModel.paramsToVector();\r\n double regCost = 0;\r\n for (int i = 0 ; i<currentParams.length;i++){\r\n regCost += currentParams[i] * currentParams[i];\r\n }\r\n regCost = op.trainOptions.regCost * 0.5 * regCost;\r\n value += regCost;\r\n // add regularization to gradient\r\n ArrayMath.multiplyInPlace(currentParams, op.trainOptions.regCost);\r\n ArrayMath.pairwiseAddInPlace(derivative, currentParams);\r\n\r\n }", "@Test(timeout = 4000)\n public void test146() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n String[] stringArray0 = new String[4];\n stringArray0[1] = \"[\";\n stringArray0[2] = \"*\";\n double[] doubleArray0 = new double[7];\n doubleArray0[0] = (double) 0;\n doubleArray0[1] = (double) 2;\n doubleArray0[3] = (double) 1;\n resultMatrixCSV0.setSignificanceWidth(123);\n doubleArray0[4] = (double) 2;\n doubleArray0[5] = (double) 0;\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixPlainText0);\n ResultMatrixCSV resultMatrixCSV1 = new ResultMatrixCSV();\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixSignificance0);\n double[][] doubleArray1 = new double[6][2];\n doubleArray1[0] = doubleArray0;\n doubleArray1[1] = doubleArray0;\n doubleArray1[2] = doubleArray0;\n doubleArray1[3] = doubleArray0;\n doubleArray1[4] = doubleArray0;\n double[] doubleArray2 = new double[3];\n doubleArray2[0] = (double) 1;\n doubleArray2[1] = (double) 1;\n doubleArray2[2] = (double) 2;\n doubleArray1[5] = doubleArray2;\n resultMatrixGnuPlot0.m_StdDev = doubleArray1;\n ResultMatrixCSV resultMatrixCSV2 = new ResultMatrixCSV(resultMatrixCSV1);\n resultMatrixCSV1.clearRanking();\n resultMatrixCSV1.getShowStdDev();\n resultMatrixCSV0.setEnumerateRowNames(false);\n assertEquals(123, resultMatrixCSV0.getSignificanceWidth());\n \n resultMatrixCSV1.getColOrder();\n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot(resultMatrixGnuPlot0);\n resultMatrixPlainText0.rowNameWidthTipText();\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n }", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n int[] intArray0 = new int[2];\n intArray0[0] = 0;\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(166, 0);\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(166, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(166, resultMatrixSignificance0.getColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n int int0 = ResultMatrix.SIGNIFICANCE_LOSS;\n assertEquals(2, int0);\n \n int int1 = resultMatrixSignificance0.getDefaultRowNameWidth();\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(166, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(166, resultMatrixSignificance0.getColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(40, int1);\n assertFalse(int1 == int0);\n }", "public void evaluate_fixpoint_sequence() {\n // JOptionPane.showMessageDialog(null, \"Evaluating the Fixed Point-Sequence m[8]...m[17]\" );\n // DES_action_type = 0;\n int[][] init_fixedpoint_sequence = new int[10][32];\n // Initialisierung\n // for (int p=0; p<10; p++)\n // for (int t=0; t<32; t++)\n // init_fixedpoint_sequence[p][t] = 0;\n intialize_matrix(init_fixedpoint_sequence);\n DES_fixedpoint_sequence = init_fixedpoint_sequence;\n\n for (int j = 0; j < 32; j++) {\n DES_fixedpoint_sequence[0][j] = DES_m8[j];\n DES_fixedpoint_sequence[1][j] = DES_m8[j];\n }\n\n for (int i = 2; i < 10; i++) {\n int[] input_SBoxes = exclusive_or(expand_32bit(DES_fixedpoint_sequence[i - 1]), DES_K[i + 6]);\n int[] fmK = select(lookup_SBoxes(input_SBoxes), P);\n DES_fixedpoint_sequence[i] = exclusive_or(DES_fixedpoint_sequence[i - 2], fmK);\n }\n }", "public void initializeStructure(){\n\t\tif ( !this.isRegistered()){\n\t\t\tthrow new Error(\"Can't initialize structure for unregistered SOS2Primitive\");\n\t\t}\n\t\tMatrix matrix=parentComponent.matrix;\n\t\tint col=0;\n\t\t// First create a variable for the x value itself but have it contribute nothing to the objective \n\t\tMatrixVariable newVariable=new MatrixVariable(0,0,1.0,LPX.LPX_FR,LPX.LPX_CV,matrix.numCols(),ObjectiveType.SOS2DUMMY);\n\t\tnewVariable.setTag(objType+label+\"_x\");\n\t\tmatrix.addVariable(newVariable);\n\t\tregisterVariable(newVariable,col);\n\t\tcol++;\n\t\t// Now create the weighting variables \n\t\tfor(int i=0;i<xVals.length;i++){\n\t\t\tnewVariable=new MatrixVariable(yVals[i],\n\t\t\t\t\t0.0,1.0,\n\t\t\t\t\tLPX.LPX_DB,LPX.LPX_CV,matrix.numCols(),objType);\n\t\t\tnewVariable.setTag(objType+label+\"y\"+i);\n\t\t\tmatrix.addVariable(newVariable);\n\t\t\tregisterVariable(newVariable,col);\n\t\t\tcol++;\n\t\t}\n\t\t// Now the binary variables\n\t\tfor(int i=0;i<(xVals.length-1);i++){\n\t\t\tnewVariable=new MatrixVariable(0,\n\t\t\t\t\t0.0,1.0,\n\t\t\t\t\tLPX.LPX_DB,LPX.LPX_IV,matrix.numCols(),ObjectiveType.SOS2DUMMY);\n\t\t\tnewVariable.setTag(label+\"b\"+i);\n\t\t\tmatrix.addVariable(newVariable);\n\t\t\tregisterVariable(newVariable,col);\n\t\t\tcol++;\n\t\t}\t\t\n\t}", "public double[] getSingularValues() {\n return svalues;\n }", "public void doRegressionAnalysis()\r\n {\n n = Y.getRowDimension();\r\n p = X.getColumnDimension(); \r\n k = p - 1; // k is number of explanatory variables\r\n Resids = new Matrix(n, 1);\r\n StandResids = new Matrix(n, 1);\r\n StudResids = new Matrix(n, 1);\r\n Cooks_D = new Matrix(n, 1);\r\n R_Student = new Matrix(n, 1);\r\n\r\n // MVP, p73\r\n X_Prime = X.transpose();\r\n X_Prime_X = X_Prime.times(X);\r\n X_Prime_X_Inv = X_Prime_X.inverse(); \r\n HatMatrix = X.times(X_Prime_X_Inv.times(X_Prime)); \r\n BetaHats = X_Prime_X_Inv.times(X_Prime.times(Y)); \r\n YHats = HatMatrix.times(Y);\r\n BXY = (BetaHats.transpose()).times(X_Prime.times(Y));\r\n Y_Prime_Y = (Y.transpose()).times(Y); \r\n ssRegression = BXY.get(0,0) - sumY_Squared_Over_n;\r\n SSRes = Y_Prime_Y.minus(BXY);\r\n ssResiduals = SSRes.get(0,0);\r\n ssTotal = Y_Prime_Y.get(0,0) - sumY_Squared_Over_n;\r\n \r\n r2 = ssRegression / ssTotal;\r\n s = Math.sqrt(ssResiduals / (n - k - 1));\r\n adj_r2 = 1.0 - (ssResiduals / (n - k - 1)) / (ssTotal / (n - 1));\r\n \r\n dfReg = k;\r\n dfResid = n - k - 1;\r\n dfTotal = n - 1;\r\n msReg = ssRegression / (double)k;\r\n msResid = ssResiduals / (double)(n - k - 1);\r\n fStatistic = msReg / msResid;\r\n fDist = new FDistribution(k, n - k - 1);\r\n pValue_F = fDist.getRightTailArea(fStatistic);\r\n Resids = Y.minus(YHats);\r\n\r\n tempDouble_01 = 1.0 / Math.sqrt(msResid);\r\n\r\n StandResids = Resids.times(tempDouble_01); \r\n for (int jj = 0; jj < n; jj++)\r\n { \r\n tempDouble_02 = HatMatrix.get(jj, jj);\r\n StudResids.set(jj, 0, Resids.get(jj, 0) * tempDouble_01 / Math.sqrt(1.0 - tempDouble_02));\r\n tempDouble_03 = StudResids.get(jj, 0) * StudResids.get(jj, 0) / (double)p;\r\n tempDouble_04 = tempDouble_02 / (1.0 - tempDouble_02);\r\n Cooks_D.set(jj, 0, tempDouble_03 * tempDouble_04);\r\n \r\n // Student-R calculations from 4.12, 4.13, p135\r\n jjResid = Resids.get(jj, 0);\r\n double e_i_sq = jjResid * jjResid; \r\n double oneMinus_hii = 1.0 - HatMatrix.get(jj, jj);\r\n double s_i_sq = ((n - p)*msResid - e_i_sq/oneMinus_hii) / (n - p - 1);\r\n R_Student.set(jj, 0, jjResid / Math.sqrt(s_i_sq * oneMinus_hii)); \r\n }\r\n\r\n StErrCoef = new Matrix(k + 1, 1); // Explanatory variables + intercept \r\n TStat = new Matrix(k + 1, 1); \r\n PValue_T = new Matrix(k + 1, 1); \r\n tDist = new TDistribution (n - k - 1);\r\n\r\n for (int preds = 0; preds <= k; preds++)\r\n {\r\n StErrCoef.set(preds, 0, Math.sqrt(msResid * X_Prime_X_Inv.get(preds, preds)));\r\n TStat.set(preds, 0, BetaHats.get(preds, 0) / StErrCoef.get(preds, 0));\r\n PValue_T.set(preds, 0, 2.0 * tDist.getRightTailArea(Math.abs(TStat.get(preds, 0))));\r\n }\r\n }", "public void ZerarM() {\n\t\tfor(int i = 0;i<3;i++) {\n\t\t\tfor(int j = 0;j<3;j++) {\n\t\t\t\tthis.m[i][j] = \"0\";\n\t\t\t}\n\t\t}\n\t\tthis.emp = 0;\n\t\tJOptionPane.showMessageDialog(null,\"COMEÇOU\");\n\t}", "public double[] getOutputRealValues(){\r\n\t\treturn realValues[1];\r\n\t}", "public int[][] getMatriceValeurs()\n {\n return matriceValeurs;\n }", "public int mo3384v() {\n return 0;\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n expressionMatrixImpl0.getValue(1, 1);\n }", "public int getNbyMz() { return mByMz; }", "public static void main(String[] args) {\n\t\t\r\n\t\tScanner in = new Scanner(System.in);\r\n\t\tSystem.out.println(\"For which power would you like to calculate the formula? (type whole, positive number)\");\r\n\t\tint power = in.nextInt()+1;\r\n\t\t\r\n\t\tlong startTime = System.nanoTime();\r\n\t\t\r\n\t\tBigDecimal[][] init = matrix.createNullMatrix(power);\r\n\t\t\r\n\t\tinit = matrix.findCoefficients(init);\r\n\t\t\r\n\t\tBigDecimal[] vec = matrix.findPartialSums(init);\r\n\t\t\r\n\t\tBigDecimal[][] inverse = matrix.findInverse(init);\r\n\t\t\r\n\t\tBigDecimal[] vec1 = matrix.multiplyMatrices(inverse, vec);\r\n\t\tSystem.out.println();\r\n\t\tmatrix.readVector(vec1);\r\n\t\t\r\n\t\tlong endTime = System.nanoTime();\r\n\t\t\r\n\t\tin.close();\r\n\t\t\r\n\t\tSystem.out.println( (float)((float)(endTime-startTime)/1000000000) + \" seconds to finish\");\r\n\t}", "public float[] getInverseA(\n int na, int ka, float[][] u, float[][] f, float[][] g)\n {\n Check.argument(-na<ka,\"-na<ka\");\n Check.argument(ka<=0,\"ka<=0\");\n\n //Set default weights (equal weight to all samples)\n if (_weights==false) {\n int nf = f.length;\n _w1D = fillfloat(1.0f,nf);\n }\n\n Stopwatch sw = new Stopwatch(); \n sw.start();\n DMatrix z = computeZ(na,ka,u,f,g);\n sw.stop();\n System.out.println(\"time = \"+sw.time());\n _z = z;\n \n float[] a = new float[na];\n DMatrixEvd evd = new DMatrixEvd(z);\n double[][][] eigvalvect = sort(evd.getD().get(), evd.getV().get());\n _eigval = eigvalvect[0];\n _eigvect = eigvalvect[1];\n //System.out.println(\"z\");\n //System.out.println(z.toString());//Smallest eigenvalue position (0,0) in D\n //System.out.println(\"V\");\n //System.out.println(evd.getV().toString());//Smallest eigenvalue position (0,0) in D\n //System.out.println(evd.getV().get(0,1));//Smallest eigenvalue position (0,0) in D\n //System.out.println(\"D\");\n //System.out.println(evd.getD().toString());//Smallest eigenvalue position (0,0) in D\n //System.out.println(evd.getD().get(0,0));\n //_eigval = evd.getD().get();//eigvalvect[0];\n //_eigvect = evd.getV().get();//eigvalvect[1];\n //dump(_eigval);\n\n for (int i=0; i<na; ++i) {\n a[i] = (float) _eigvect[i][0];\n }\n _a = a;\n\n return a;\n }", "public double[][][] getMatrix() {\n return matrix;\n }", "public static void main(String[] args) {\n\t// write your code here\n int[][] input = new int[3][3];\n input[1][1] = 1;\n\n Solution sol = new Solution();\n sol.printMatrix(input);\n int[][] output = sol.updateMatrix(input);\n sol.printMatrix(output);\n\n }", "@Override\n public void run() {\n this.mdc.insertLog(\"#1 Memecah Dataset\\n\");\n //1. Split Dataset\n boolean isSplitted = false;\n try {\n List<Object> split_mat = this.dataset.split(this.userMap,this.recipeMap);\n this.trainM = (TrainMatrix) split_mat.remove(0);\n this.testM = (TestMatrix) split_mat.remove(0);\n isSplitted = true;\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (isSplitted) {\n this.mdc.insertLog(\"Berhasil memecah dataset.\\n\");\n } else {\n this.mdc.insertLog(\"Error: Terjadi kesalahan dalam memecah dataset. Lihat riwayat error untuk lebih detail.\\n\");\n System.exit(1);\n return;\n }\n }\n\n this.mdc.insertLog(\"#2 Inisialisasi Matriks Faktor\\n\");\n //2. Initialize Matrix Factor \n boolean initializeFactor = false;\n FactorMatrix userFactor = null;\n FactorMatrix userFactor_2 = null;\n FactorMatrix recipeFactor = null;\n FactorMatrix ingredientFactor = null;\n FactorMatrix recipeIngredientsMap = null;\n try {\n // user factor = m x f\n userFactor = new FactorMatrix(this.trainM.getRowLength(), utils.getLatentSize(), FactorType.USER);\n // recipe factor = n x f\n recipeFactor = new FactorMatrix(this.trainM.getColLength(), utils.getLatentSize(), FactorType.RECIPES);\n // ingredient factor = o x f\n ingredientFactor = new FactorMatrix(this.ingredients.size(), utils.getLatentSize(), FactorType.INGREDIENTS);\n // recipe x ingredient map matrix = n x o (mask matrix 1/0)\n recipeIngredientsMap = new FactorMatrix(this.trainM.getColLength(),\n this.ingredients.size(),\n this.recipes,\n this.recipeMap,\n this.ingredientMap);\n userFactor_2 = new FactorMatrix(userFactor);\n initializeFactor = true;\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (initializeFactor) {\n this.mdc.insertLog(\"Berhasil menginisialisasi faktor matriks.\\n\");\n } else {\n this.mdc.insertLog(\"Error: Terjadi kesalahan dalam proses inisialisasi. Lihat riwayat error untuk lebih detail.\\n\");\n System.exit(1);\n return;\n }\n }\n \n //3. entering loop \n //loop a thousand time or break if objective value less than MIN_OBJECTIVE_VAL\n boolean firstMethodOptimization = false; \n boolean secondMethodOptimization = false;\n double objFuncPrev_1 = 0.0; \n double objFuncPrev_2 = 0.0;\n String[] rmseRecord1 = new String[MAX_LOOP];\n String[] rmseRecord2 = new String[MAX_LOOP];\n String[] objValueRecord1 = new String[MAX_LOOP];\n String[] objValueRecord2 = new String[MAX_LOOP];\n double[][] bestModel1 = null;\n double[][] bestModel2 = null;\n \n this.mdc.insertLog(\"#3.1 Memasuki iterasi untuk optimisasi model matriks faktor pertama.\\n\"\n + \"# Detail Proses No. 1:\\n\"\n + \"# Maksimal Iterasi: \" + MAX_LOOP + \"\\n\"\n + \"# Metode: Faktorisasi dengan dua buah matriks faktor, faktor Pengguna & Resep Makanan.\\n\"\n );\n long start = System.currentTimeMillis(); \n \n try{\n double max_value = Double.MAX_VALUE;\n int loop = MAX_LOOP;\n while(loop-->0){\n if(this.learningType > 0) this.utils.setLearningRate(1.0/((MAX_LOOP-loop)*1.0)); //iteratively \n \n double[][] currPrediction = userFactor.multiply(recipeFactor.transpose());\n double objectiveValue = utils.objectiveFunction_m1(\n userFactor,\n recipeFactor,\n this.dataset.getTrainPair()\n );\n \n double rmse = this.utils.rmse(this.dataset.getTrainPair(), currPrediction, trainM.getEntry(), 0);\n if(max_value > rmse){\n max_value = rmse;\n bestModel1 = currPrediction;\n }\n \n rmseRecord1[MAX_LOOP-1-loop] = String.format(\"%.3f\",rmse);\n objValueRecord1[MAX_LOOP-1-loop] = String.format(\"%.3f\",objectiveValue);\n \n if (Math.abs(objFuncPrev_1 - objectiveValue) <= 0.0001) break;\n else if(Double.isNaN(objectiveValue)) throw new RuntimeException(\"Objective Function value is NaN\");\n else{\n //do A-GD\n objFuncPrev_1 = objectiveValue;\n utils.alternatingGradientDescent_m1(\n userFactor,\n recipeFactor,\n this.dataset.getTrainPair()\n );\n } \n }\n firstMethodOptimization = true;\n } catch(Exception e){\n e.printStackTrace();\n } finally {\n if(firstMethodOptimization) this.mdc.insertLog(\"Proses optimisasi metode pertama selesai\\n\");\n else{ \n this.mdc.insertLog(\"Error: Terjadi kesalahan dalam proses faktorisasi. Lihat riwayat error untuk lebih detail.\\n\");\n System.exit(1);\n return;\n }\n }\n long elapsedTime_1 = System.currentTimeMillis() - start;\n \n \n this.mdc.insertLog(\"#3.2 Memasuki iterasi untuk optimisasi model matriks faktor kedua.\\n\"\n + \"# Detail Proses No. 2:\\n\"\n + \"# Maksimal Iterasi: \" + MAX_LOOP + \"\\n\"\n + \"# Metode: Faktorisasi dengan dua buah matriks faktor, faktor Pengguna & Bahan Makanan.\\n\"\n + \" Serta memanfaatkan matriks biner yang memetakan resep & bahan makanan.\\n\"\n );\n start = System.currentTimeMillis(); \n try {\n double max_value = Double.MAX_VALUE;\n int loop = MAX_LOOP;\n while (loop-- > 0) {\n if(this.learningType > 0) this.utils.setLearningRate(1.0/((MAX_LOOP-loop)*1.0)); //iteratively \n double[][] currPrediction = MatrixUtil.multiplyWithTransposing(\n MatrixUtil.multiplyWithTransposing(userFactor_2.getEntry(), ingredientFactor.getEntry(), 1),\n recipeIngredientsMap.getEntry(),\n 1); \n \n double objectiveValue = utils.objectiveFunction_m2(\n currPrediction,\n userFactor_2,\n ingredientFactor,\n this.dataset.getTrainPair()\n );\n \n double rmse = utils.rmse(this.dataset.getTrainPair(), currPrediction, this.trainM.getEntry(), 1);\n \n if(max_value > rmse){\n max_value = rmse;\n bestModel2 = currPrediction;\n }\n \n objValueRecord2[MAX_LOOP-1-loop] = String.format(\"%.3f\",objectiveValue);\n rmseRecord2[MAX_LOOP-1-loop] = String.format(\"%.3f\",rmse);\n if (Math.abs(objFuncPrev_2 - objectiveValue) <= 0.0001) {\n break;\n } else if (Double.isNaN(objectiveValue)) {\n throw new RuntimeException(\"Objective Function value is NaN\");\n } else {\n //do A-GD\n utils.alternatingGradientDescent_m2(\n currPrediction,\n userFactor_2,\n ingredientFactor,\n recipeIngredientsMap,\n this.dataset.getTrainPair()\n );\n objFuncPrev_2 = objectiveValue;\n }\n }\n secondMethodOptimization = true;\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (secondMethodOptimization) {\n this.mdc.insertLog(\"Proses optimisasi metode kedua selesai.\\n\");\n } else {\n this.mdc.insertLog(\"Error: Terjadi kesalahan dalam proses faktorisasi. Lihat riwayat error untuk lebih detail.\\n\");\n System.exit(1);\n return;\n }\n }\n long elapsedTime_2 = System.currentTimeMillis() - start;\n \n this.firstMethodRes = bestModel1;\n this.secondMethodRes = bestModel2;\n \n double rmse_1_test = utils.rmse(\n this.dataset.getTestPair(),\n firstMethodRes,\n this.testM.getEntry(),\n 0\n );\n \n double rmse_1_train = utils.rmse(\n this.dataset.getTrainPair(),\n firstMethodRes,\n this.trainM.getEntry(),\n 0\n );\n \n double rmse_1_data = utils.rmse(\n this.dataset.getDataPair(),\n firstMethodRes,\n this.dataset.getEntry(),\n 0\n );\n \n double rmse_2_test = utils.rmse(\n this.dataset.getTestPair(),\n secondMethodRes,\n this.testM.getEntry(),\n 1\n );\n \n double rmse_2_train = utils.rmse(\n this.dataset.getTrainPair(),\n secondMethodRes,\n this.trainM.getEntry(),\n 1\n );\n \n double rmse_2_data = utils.rmse(\n this.dataset.getDataPair(),\n secondMethodRes,\n this.dataset.getEntry(),\n 1\n );\n \n this.mdc.insertLog(\"Hasil RMSE:\\n\"\n + \"############################\\n\"\n + \"# Metode Faktorisasi Pertama\\n\"\n + String.format(\"# RMSE (Test Set) = %.3f\\n\",rmse_1_test)\n + String.format(\"# RMSE (Train Set) = %.3f\\n\",rmse_1_train)\n + String.format(\"# RMSE (Data Set) = %.3f\\n\",rmse_1_data)\n + String.format(\"# Waktu Berjalan: %.3fs\\n\", elapsedTime_1/1000F)\n + \"############################\\n\"\n + \"\\n\"\n + \"############################\\n\"\n + \"# SECOND OPTIMIZATION METHOD\\n\"\n + String.format(\"# RMSE (Test Set) = %.5f\\n\",rmse_2_test)\n + String.format(\"# RMSE (Train Set) = %.5f\\n\",rmse_2_train)\n + String.format(\"# RMSE (Data Set) = %.5f\\n\",rmse_2_data)\n + String.format(\"# Waktu Berjalan: %.3fs\\n\", elapsedTime_2/1000F)\n + \"############################\\n\"\n + \"\\n\"\n + \"Seluruh proeses faktorisasi telah selesai.\\n\");\n }", "public Matrice getMatrice(){\n int t = this.sommets.size();\n Matrice ret = new Matrice( (t), (t));\n\n List<Arc<T>> arcsTemps ;\n\n for(int i=0 ; i < t ;i++){\n arcsTemps = getArcsDepuisSource(this.sommets.get(i));\n\n for (Arc<T> arcsTemp : arcsTemps) {\n System.out.println(i + \" == \" + arcsTemp.getDepart().getInfo()+ \" , \" +arcsTemp.getArrivee().getId());\n ret.setValue(i, arcsTemp.getArrivee().getId(), 1);\n }\n System.out.println(\"***\");\n }\n\n return ret;\n }", "double getz() {\nreturn this.z;\n }", "public double[] getData(){\r\n\t\t//make a deeeeeep copy of data\r\n\t\tdouble[] returnData = new double[this.data.length];\r\n\t\t\r\n\t\t//fill with data values\r\n\t\tfor (int i = 0; i < this.data.length; i++){\r\n\t\t\treturnData[i] = this.data[i];\r\n\t\t}\r\n\t\t//return a ref to my deep copy\r\n\t\treturn returnData;\r\n\t}" ]
[ "0.59034044", "0.5860786", "0.5817676", "0.5785351", "0.5752642", "0.56363535", "0.5595776", "0.55894905", "0.5582188", "0.54906625", "0.54829973", "0.5478335", "0.5467434", "0.54335934", "0.54127616", "0.5383825", "0.53671044", "0.53409064", "0.53329307", "0.53310645", "0.53286", "0.53178793", "0.5313387", "0.53012884", "0.5298979", "0.5277945", "0.5242047", "0.52376825", "0.52307415", "0.52019936", "0.5189066", "0.5184843", "0.5184815", "0.51788837", "0.5165377", "0.5164899", "0.5159354", "0.5158446", "0.5154414", "0.51487476", "0.5146515", "0.51448613", "0.514062", "0.5140107", "0.5136087", "0.5133511", "0.5130875", "0.5126985", "0.51235574", "0.512274", "0.51157063", "0.5115685", "0.50998336", "0.5092003", "0.5088627", "0.50870585", "0.50841844", "0.50762177", "0.5073269", "0.5071094", "0.5057697", "0.50570995", "0.5056257", "0.50553554", "0.50477207", "0.5046072", "0.5043567", "0.5040258", "0.50390774", "0.50385094", "0.5037956", "0.5037752", "0.5033518", "0.50314075", "0.50175035", "0.5016836", "0.5016429", "0.50115687", "0.5007056", "0.5004304", "0.5002968", "0.49958932", "0.49937487", "0.49922845", "0.4987151", "0.49859098", "0.49856436", "0.49842975", "0.49821833", "0.49821678", "0.49784133", "0.49747378", "0.4972587", "0.4970332", "0.4967292", "0.49669325", "0.4963071", "0.4960611", "0.49576795", "0.4956229" ]
0.52604336
26
write your code here
public static Set<Integer> getSetFromString(String str) { String[] strArray = str.split(" "); Set<Integer> output = new TreeSet<>(); for (String number : strArray) { output.add(Integer.parseInt(number)); } return output; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void logic(){\r\n\r\n\t}", "public static void generateCode()\n {\n \n }", "@Override\n\tprotected void logic() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "void pramitiTechTutorials() {\n\t\n}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void ganar() {\n // TODO implement here\n }", "public static void main(String[] args) {\n // write your code here - this is called comment and it always starts with double slash\n // and comlier will ignore this because of the // sign.\n // I am gonna say hello\n // JAVA IS CASE SENSITIVE LANGUAGE\n // System and system are very different things in java\n //Hello AND hello are different for java\n // System.out.println(\"Hello Batch 15!\");\n // System.out.println(\"I am still here.\");\n // System.out.println(\"I love Java.\");\n\n // Write a program to display your information.\n // When you run it, it should have this outcome.\n // I am your name here\n // I am from batch 15\n // I am from your city here\n // I love Java\n\n System.out.println(\"I am Sevim.\");\n System.out.println(\"I am from Batch 15.\");\n System.out.println(\"I'm from New Jersey.\");\n System.out.println(\"I love Java.\");\n\n\n\n }", "CD withCode();", "private stendhal() {\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}", "public void genCode(CodeFile code) {\n\t\t\n\t}", "public void hello(){\n\t\t\r\n \t\r\n\t\t\r\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public void baocun() {\n\t\t\n\t}", "public void mo38117a() {\n }", "public void furyo ()\t{\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private void strin() {\n\n\t}", "public void themesa()\n {\n \n \n \n \n }", "Programming(){\n\t}", "@Override\n\tvoid output() {\n\t\t\n\t}", "private void yy() {\n\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "void rajib () {\n\t\t \n\t\t System.out.println(\"Rajib is IT Eng\");\n\t }", "private void kk12() {\n\n\t}", "public void edit() {\n\t\tSystem.out.println(\"编写java笔记\");\r\n\t}", "public static void main(String[] args) {\n\t// write your code here\n }", "private static void ThridUmpireReview() {\n\t\tSystem.out.println(\" Umpier Reviews the Score Board\");\n\t\t \n\t\t\n\t}", "@Override\r\n\t\tpublic void doDomething() {\r\n\t\t\tSystem.out.println(\"I am here\");\r\n\t\t\t\r\n\t\t}", "protected void mo6255a() {\n }", "public void gen(CodeSeq code, ICodeEnv env) {\n\r\n\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "public void working()\n {\n \n \n }", "@Override\n\tprotected void postRun() {\n\n\t}", "public void perder() {\n // TODO implement here\n }", "public void smell() {\n\t\t\n\t}", "protected void execute() {\n\t\t\n\t}", "public void mo55254a() {\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void orgasm() {\n\t\t\n\t}", "public void cocinar(){\n\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\n\tprotected void interr() {\n\t}", "public void run() {\n\t\t\t\t\n\t\t\t}", "protected void execute() {\n\n\n \n }", "@Override\n public void execute() {\n \n \n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\r\n\tpublic void crawl_data() {\n\t\t\r\n\t}", "@Override\n public void memoria() {\n \n }", "public static void main(String args[]) throws Exception\n {\n \n \n \n }", "@Override\r\n\tpublic void code() {\n\t\tus.code();\r\n\t\tSystem.out.println(\"我会java...\");\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "protected void display() {\n\r\n\t}", "private void sout() {\n\t\t\n\t}", "private static void oneUserExample()\t{\n\t}", "public void nhapdltextlh(){\n\n }", "public void miseAJour();", "protected void additionalProcessing() {\n\t}", "private void sub() {\n\n\t}", "@Override\n\tpublic void view() {\n\t\t\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\r\n\tpublic void engine() {\r\n\t\t// TODO Auto-generated method stub\t\t\r\n\t}", "@Override\r\n\tpublic void code() {\n\t\tSystem.out.println(\"我会C语言....\");\r\n\t}", "void mo67924c();", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\r\n public void run() {\n basicEditor.createEdge(); // replaced Bibianas method with Moritz Roidl, Orthodoxos Kipouridis\r\n }", "public void mo5382o() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "public void mo3376r() {\n }", "public static void main(String[] args)\r\n {\n System.out.println(\"Mehedi Hasan Nirob\");\r\n //multiple line comment\r\n /*\r\n At first printing my phone number\r\n then print my address \r\n then print my university name\r\n */\r\n System.out.println(\"01736121659\\nJamalpur\\nDhaka International University\");\r\n \r\n }", "void kiemTraThangHopLi() {\n }", "public void skystonePos5() {\n }", "public final void cpp() {\n }", "public final void mo51373a() {\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"This is the main class of this project\");\r\n\t\tSystem.out.println(\"how about this\");\r\n\r\n\t\t\r\n\t\tSystem.out.println(\"new push\");\r\n\r\n\t\t//how to update this line\r\n\t\t\r\n\t\tSystem.out.println(\"hello there\");\r\n\r\n\t\tSystem.out.println(\"zen me shuoXXXXXXXXXXXKKKKkKKKKKKXXXXXXXX\");\r\n\r\n\t\tSystem.out.println(\"eventually we succeeded!\");\r\n\t\t//wa!!!\r\n\t\t\r\n\r\n\r\n\t\t//hen shu fu !\r\n\t\t\r\n\t\t//it is a good day\r\n\t\t\r\n\t\t//testing\r\n\r\n\t\t\r\n\t\tSystem.out.println(\"hope it works\");\r\n\t\t\r\n\r\n\t\t\r\n\r\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}" ]
[ "0.61019534", "0.6054925", "0.58806974", "0.58270746", "0.5796887", "0.56999695", "0.5690986", "0.56556827", "0.5648637", "0.5640487", "0.56354505", "0.56032085", "0.56016207", "0.56006724", "0.5589654", "0.5583692", "0.55785793", "0.55733466", "0.5560209", "0.55325305", "0.55133164", "0.55123806", "0.55114794", "0.5500045", "0.5489272", "0.5482718", "0.5482718", "0.5477585", "0.5477585", "0.54645246", "0.5461012", "0.54548836", "0.5442613", "0.5430592", "0.5423748", "0.5419415", "0.5407118", "0.54048806", "0.5399331", "0.539896", "0.5389593", "0.5386248", "0.5378453", "0.53751254", "0.5360644", "0.5357343", "0.5345515", "0.53441405", "0.5322276", "0.5318302", "0.53118485", "0.53118485", "0.53085434", "0.530508", "0.53038436", "0.5301922", "0.5296964", "0.52920514", "0.52903354", "0.5289583", "0.5287506", "0.52869135", "0.5286737", "0.5286737", "0.5286737", "0.5286737", "0.5286737", "0.5286737", "0.5286737", "0.52859664", "0.52849185", "0.52817136", "0.52791214", "0.5278664", "0.5278048", "0.5276269", "0.52728665", "0.5265451", "0.526483", "0.526005", "0.5259683", "0.52577406", "0.5257731", "0.5257731", "0.52560073", "0.5255759", "0.5255707", "0.5250705", "0.5246863", "0.5243053", "0.52429926", "0.5242727", "0.52396125", "0.5239378", "0.5232576", "0.5224529", "0.52240705", "0.52210563", "0.52203166", "0.521787", "0.52172214" ]
0.0
-1
write your code here
public static void removeAllNumbersGreaterThan10(Set<Integer> set) { Iterator<Integer> iterator = set.iterator(); while (iterator.hasNext()) { Integer integer = iterator.next(); if (integer.intValue() > 10) { iterator.remove(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void logic(){\r\n\r\n\t}", "public static void generateCode()\n {\n \n }", "@Override\n\tprotected void logic() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "void pramitiTechTutorials() {\n\t\n}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void ganar() {\n // TODO implement here\n }", "public static void main(String[] args) {\n // write your code here - this is called comment and it always starts with double slash\n // and comlier will ignore this because of the // sign.\n // I am gonna say hello\n // JAVA IS CASE SENSITIVE LANGUAGE\n // System and system are very different things in java\n //Hello AND hello are different for java\n // System.out.println(\"Hello Batch 15!\");\n // System.out.println(\"I am still here.\");\n // System.out.println(\"I love Java.\");\n\n // Write a program to display your information.\n // When you run it, it should have this outcome.\n // I am your name here\n // I am from batch 15\n // I am from your city here\n // I love Java\n\n System.out.println(\"I am Sevim.\");\n System.out.println(\"I am from Batch 15.\");\n System.out.println(\"I'm from New Jersey.\");\n System.out.println(\"I love Java.\");\n\n\n\n }", "CD withCode();", "private stendhal() {\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}", "public void genCode(CodeFile code) {\n\t\t\n\t}", "public void hello(){\n\t\t\r\n \t\r\n\t\t\r\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public void baocun() {\n\t\t\n\t}", "public void mo38117a() {\n }", "public void furyo ()\t{\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private void strin() {\n\n\t}", "public void themesa()\n {\n \n \n \n \n }", "Programming(){\n\t}", "@Override\n\tvoid output() {\n\t\t\n\t}", "private void yy() {\n\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "void rajib () {\n\t\t \n\t\t System.out.println(\"Rajib is IT Eng\");\n\t }", "private void kk12() {\n\n\t}", "public void edit() {\n\t\tSystem.out.println(\"编写java笔记\");\r\n\t}", "public static void main(String[] args) {\n\t// write your code here\n }", "private static void ThridUmpireReview() {\n\t\tSystem.out.println(\" Umpier Reviews the Score Board\");\n\t\t \n\t\t\n\t}", "@Override\r\n\t\tpublic void doDomething() {\r\n\t\t\tSystem.out.println(\"I am here\");\r\n\t\t\t\r\n\t\t}", "protected void mo6255a() {\n }", "public void gen(CodeSeq code, ICodeEnv env) {\n\r\n\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "public void working()\n {\n \n \n }", "@Override\n\tprotected void postRun() {\n\n\t}", "public void perder() {\n // TODO implement here\n }", "public void smell() {\n\t\t\n\t}", "protected void execute() {\n\t\t\n\t}", "public void mo55254a() {\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void orgasm() {\n\t\t\n\t}", "public void cocinar(){\n\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\n\tprotected void interr() {\n\t}", "public void run() {\n\t\t\t\t\n\t\t\t}", "protected void execute() {\n\n\n \n }", "@Override\n public void execute() {\n \n \n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\r\n\tpublic void crawl_data() {\n\t\t\r\n\t}", "@Override\n public void memoria() {\n \n }", "public static void main(String args[]) throws Exception\n {\n \n \n \n }", "@Override\r\n\tpublic void code() {\n\t\tus.code();\r\n\t\tSystem.out.println(\"我会java...\");\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "protected void display() {\n\r\n\t}", "private void sout() {\n\t\t\n\t}", "private static void oneUserExample()\t{\n\t}", "public void nhapdltextlh(){\n\n }", "public void miseAJour();", "protected void additionalProcessing() {\n\t}", "private void sub() {\n\n\t}", "@Override\n\tpublic void view() {\n\t\t\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\r\n\tpublic void engine() {\r\n\t\t// TODO Auto-generated method stub\t\t\r\n\t}", "@Override\r\n\tpublic void code() {\n\t\tSystem.out.println(\"我会C语言....\");\r\n\t}", "void mo67924c();", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\r\n public void run() {\n basicEditor.createEdge(); // replaced Bibianas method with Moritz Roidl, Orthodoxos Kipouridis\r\n }", "public void mo5382o() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "public void mo3376r() {\n }", "public static void main(String[] args)\r\n {\n System.out.println(\"Mehedi Hasan Nirob\");\r\n //multiple line comment\r\n /*\r\n At first printing my phone number\r\n then print my address \r\n then print my university name\r\n */\r\n System.out.println(\"01736121659\\nJamalpur\\nDhaka International University\");\r\n \r\n }", "void kiemTraThangHopLi() {\n }", "public void skystonePos5() {\n }", "public final void cpp() {\n }", "public final void mo51373a() {\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"This is the main class of this project\");\r\n\t\tSystem.out.println(\"how about this\");\r\n\r\n\t\t\r\n\t\tSystem.out.println(\"new push\");\r\n\r\n\t\t//how to update this line\r\n\t\t\r\n\t\tSystem.out.println(\"hello there\");\r\n\r\n\t\tSystem.out.println(\"zen me shuoXXXXXXXXXXXKKKKkKKKKKKXXXXXXXX\");\r\n\r\n\t\tSystem.out.println(\"eventually we succeeded!\");\r\n\t\t//wa!!!\r\n\t\t\r\n\r\n\r\n\t\t//hen shu fu !\r\n\t\t\r\n\t\t//it is a good day\r\n\t\t\r\n\t\t//testing\r\n\r\n\t\t\r\n\t\tSystem.out.println(\"hope it works\");\r\n\t\t\r\n\r\n\t\t\r\n\r\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}" ]
[ "0.61019534", "0.6054925", "0.58806974", "0.58270746", "0.5796887", "0.56999695", "0.5690986", "0.56556827", "0.5648637", "0.5640487", "0.56354505", "0.56032085", "0.56016207", "0.56006724", "0.5589654", "0.5583692", "0.55785793", "0.55733466", "0.5560209", "0.55325305", "0.55133164", "0.55123806", "0.55114794", "0.5500045", "0.5489272", "0.5482718", "0.5482718", "0.5477585", "0.5477585", "0.54645246", "0.5461012", "0.54548836", "0.5442613", "0.5430592", "0.5423748", "0.5419415", "0.5407118", "0.54048806", "0.5399331", "0.539896", "0.5389593", "0.5386248", "0.5378453", "0.53751254", "0.5360644", "0.5357343", "0.5345515", "0.53441405", "0.5322276", "0.5318302", "0.53118485", "0.53118485", "0.53085434", "0.530508", "0.53038436", "0.5301922", "0.5296964", "0.52920514", "0.52903354", "0.5289583", "0.5287506", "0.52869135", "0.5286737", "0.5286737", "0.5286737", "0.5286737", "0.5286737", "0.5286737", "0.5286737", "0.52859664", "0.52849185", "0.52817136", "0.52791214", "0.5278664", "0.5278048", "0.5276269", "0.52728665", "0.5265451", "0.526483", "0.526005", "0.5259683", "0.52577406", "0.5257731", "0.5257731", "0.52560073", "0.5255759", "0.5255707", "0.5250705", "0.5246863", "0.5243053", "0.52429926", "0.5242727", "0.52396125", "0.5239378", "0.5232576", "0.5224529", "0.52240705", "0.52210563", "0.52203166", "0.521787", "0.52172214" ]
0.0
-1
Returns the duty roster as a list of lists of duty roster items, sorted by date.
public List<List<DutyRosterItem>> getRosterAsList() { return new ArrayList<>(new TreeMap<>(roster).values()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<LocalDate> getRosterDatesAsList() {\n ArrayList<LocalDate> localDates = new ArrayList<>(roster.keySet());\n Collections.sort(localDates);\n return localDates;\n }", "public List<TilePojo> getCharactesListByDate() {\n\t\tLOGGER.info(\"getCharactesListByDate -> Start\");\n\t\tcharactesListByDate = new LinkedList<>();\n\t\tList<TilePojo> charList = tileGalleryAndLandingService.getTilesByDate(homePagePath, galleryFor, null,\n\t\t\t\tresource.getResourceResolver(), true);\n\t\tcharactesListByDate = getFixedNumberChar(charList, 12);\n\t\tLOGGER.info(\"getCharactesListByDate -> End\");\n\t\treturn charactesListByDate;\n\t}", "@Override\n\tpublic List<String> getListDueDate() {\n\t\ttry{\n\t\t\t\n\t\t\tbegin();\n\t\t\tString sql = \"SELECT DISTINCT mo.O_DueDate\"\n\t\t\t\t\t+ \" FROM mOrders mo\"\n\t\t\t\t\t+ \"\tWHERE mo.O_Status_Code='\"+Constants.ORDER_STATUS_NOT_IN_ROUTE+\"' \"\n\t\t\t\t\t\t\t+ \"OR mo.O_Status_Code='\"+Constants.ORDER_STATUS_ARRIVED_BUT_NOT_DELIVERIED+\"'\"\n\t\t\t\t\t+ \" ORDER BY mo.O_DueDate ASC\";\n\t\t\tList<String> lstOrDate = getSession().createQuery(sql).list();\n\t\t\t//System.out.println(name()+\"::getListDueDate--lstOrDate: \"+lstOrDate.toString());\n\t\t\tcommit();\n\t\t\t\n\t\t\treturn lstOrDate;\n\t\t\t\n\t\t}catch(HibernateException e){\n\t\t\te.printStackTrace();\n\t\t\trollback();\n\t\t\tclose();\n\t\t\treturn null;\n\t\t}finally{\n\t\t\tflush();\n\t\t\tclose();\n\t\t}\n\t}", "public List<ByDay> getByDay() {\n\t\treturn byDay;\n\t}", "public List<String> recordedDateList();", "public List<Person> getListDarsteller() {\n\t\treturn this.listDarsteller;\n\t}", "public List<Serie> getCaloriesByDate(){\r\n\t\t\r\n\t\treturn daoEjercicio.getCaloriesByDate();\r\n\t\t\r\n\t}", "java.util.List<com.rpg.framework.database.Protocol.Monster> \n getMonstersList();", "java.util.List<com.rpg.framework.database.Protocol.Monster> \n getMonstersList();", "public List<SubItem> getListaItems() {\n\t\tfecha = new Date();\n\t\tcargarDatosLogeado();\n\t\tTimestamp fecha_ahora = new Timestamp(fecha.getTime());\n\t\tList<SubItem> a = managergest.findItems();\n\t\tList<SubItem> l1 = new ArrayList<SubItem>();\n\t\tfor (SubItem t : a) {\n\t\t\tif (t.getItemGanadorDni() == null && t.getItemEstado().equals(\"A\")\n\t\t\t\t\t&& t.getItemFechaSubastaFin().after((fecha_ahora)))\n\t\t\t\tl1.add(t);\n\t\t}\n\t\treturn l1;\n\t}", "public static ArrayList<BHP> getBHPs(Resident resident, Date date) {\n// long begin = System.currentTimeMillis();\n EntityManager em = OPDE.createEM();\n ArrayList<BHP> listBHP = null;\n\n try {\n\n String jpql = \" SELECT bhp \" +\n \" FROM BHP bhp \" +\n \" WHERE bhp.resident = :resident AND bhp.prescription.situation IS NULL\" +\n \" AND bhp.soll >= :von AND bhp.soll <= :bis \";\n\n Query query = em.createQuery(jpql);\n\n LocalDate lDate = new LocalDate(date);\n query.setParameter(\"resident\", resident);\n query.setParameter(\"von\", lDate.toDateTimeAtStartOfDay().toDate());\n query.setParameter(\"bis\", SYSCalendar.eod(lDate).toDate());\n\n listBHP = new ArrayList<BHP>(query.getResultList());\n Collections.sort(listBHP);\n\n } catch (Exception se) {\n OPDE.fatal(se);\n } finally {\n em.close();\n }\n// SYSTools.showTimeDifference(begin);\n return listBHP;\n }", "public List<List<Die>> getCollections (){\n List<List<Die>> dieList = new ArrayList<>();\n for(int i = 1; i<getRound(); i++) {\n dieList.add(new ArrayList<>());\n dieList.get(i - 1).addAll(getDice(i));\n }\n return dieList;\n }", "@Override\n\tpublic List<Tourneys> getTourneysByDate() {\n\t\treturn null;\n\t}", "public List<String> getRosterList() {\n // TODO check if player name is related to a player profile\n List<String> rosterList = java.util.Arrays.asList(roster.split(\"\\\\s*,\\\\s*\"));\n return rosterList;\n }", "java.lang.String getRaceList();", "java.util.List<org.landxml.schema.landXML11.RoadsideDocument.Roadside> getRoadsideList();", "public ArrayList<RdV> afficherRdV(LocalDate d1, LocalDate d2) {\n ArrayList<RdV> plage_RdV = new ArrayList();\n if (this.getAgenda() != null) {\n for (RdV elem_agenda : this.getAgenda()) {\n //si le rdv inscrit dans l'agenda est compris entre d1 et d2\n //d1<elem_agenda<d2 (OU d2<elem_agenda<d1 si d2<d1)\n if ((elem_agenda.getDate().isAfter(d1) && elem_agenda.getDate().isBefore(d2))\n || (elem_agenda.getDate().isAfter(d2) && elem_agenda.getDate().isBefore(d1))) {\n plage_RdV.add(elem_agenda);\n }\n }\n //on print la liste de rdv avant tri\n System.out.print(plage_RdV);\n //on print la liste de rdv avant tri\n System.out.print(\"\\n\");\n Collections.sort(plage_RdV);\n System.out.print(plage_RdV);\n\n }\n\n return plage_RdV;\n\n }", "public List<DateType> toDateList() {\n List<DateType> result = new ArrayList<>();\n if (fromDate != null) {\n result.add(fromDate);\n }\n if (toDate != null) {\n result.add(toDate);\n }\n if (fromToDate != null) {\n result.add(fromToDate);\n }\n return result;\n }", "public List<Reservation> sortByDate(List<Reservation> reservations){\n\t\tList<Reservation> sorted = new ArrayList<>(reservations);\n\t\tsorted.sort(Comparator.comparing(Reservation::getDate));\n\t\treturn sorted;\n\t}", "public List<Datentraeger> getDatentraeger() {\n\t\treturn this.listDatentraeger;\n\t}", "public List<Reimburse> getAllReimbursements();", "public void printByDate() {\n for (int i = 0; i < numBooks; i++)\n {\n for (int j = i + 1; j < numBooks; j++) {\n if (books[i].getDatePublished().compareTo(books[j].getDatePublished()) > 0)\n {\n Book temp = books[i];\n books[i] = books[j];\n books[j] = temp;\n }\n }\n }\n System.out.println(\"**List of books by the dates published.\");\n for (Book b : books){\n if(b != null) {\n System.out.println(b);\n }\n }\n System.out.println(\"**End of list\");\n }", "public List<LookUpDetailJson> getPayCycleList() {\r\n\t\tList<LookUpDetailJson> lookUpDetailJsonList = null;\r\n\t\ttry {\r\n\t\t\tCalendar cal = Calendar.getInstance();\r\n\t\t\tInteger currentMonth = cal.get(Calendar.MONTH);\r\n\t\t\tList<Integer> monthsRange = new ArrayList<Integer>();\r\n\t\t\tfor (int i = currentMonth, j = 0; j < 3; j++) {\r\n\t\t\t\tmonthsRange.add(i--);\r\n\t\t\t\tif (i < 0) {\r\n\t\t\t\t\ti = 11;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tmonthsRange.add(currentMonth + 1);\r\n\r\n\t\t\tList<LookUpDetails> lookUpDetailList = lookUpRepository.getPayCycleList(monthsRange);\r\n\t\t\tif (lookUpDetailList != null && lookUpDetailList.size() > 0) {\r\n\t\t\t\tlookUpDetailJsonList = new ArrayList<LookUpDetailJson>();\r\n\t\t\t\tfor (LookUpDetails lookUpDetails : lookUpDetailList) {\r\n\t\t\t\t\tlookUpDetailJsonList.add(TransformDomainToJson.getLookUpDetailJson(lookUpDetails));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tLOG.error(\"Error at getPayCycleList() in LookUpService:\" + e.getMessage());\r\n\t\t}\r\n\t\treturn lookUpDetailJsonList;\r\n\t}", "public List<Road> getRoads() {\n\t\treturn new ArrayList<Road>(roadsByUri.values());\n\t}", "@Override\n\tpublic ArrayList<Domanda> getDomande() {\n\t\tDB db = getDB();\n\t\tArrayList<Domanda> domande = new ArrayList<Domanda>();\n\t\tMap<Long, Domanda> list = db.getTreeMap(\"domande\");\n\t\tfor(Map.Entry<Long, Domanda> domanda : list.entrySet())\n\t\t\tif(domanda.getValue() instanceof Domanda)\n\t\t\t\tdomande.add((Domanda)domanda.getValue());\n\t\treturn domande;\n\t}", "List<Reimbursement> retrieveAllReimbursements();", "List<Neuron> getDendrites();", "public ArrayList<Schedule> getBuddiesSchedules() {\n\n return new ArrayList<Schedule>(buddies);\n }", "public List<Restaurant> listRestaurantVotedToday(){\r\n\t\tList<Restaurant> restaurantList = new LinkedList<Restaurant>();\r\n\t\tList<Vote> votingList = DataDAO.getVotingList();\r\n\t\tList<Vote> voteListResult = votingList.stream().filter(l -> l.getVotingDate().equals(DateUtil.asDate(LocalDate.now()))).collect(Collectors.toList());;\r\n\t\tvoteListResult.forEach(v -> restaurantList.add(v.getRestaurant()) );\r\n\t\treturn restaurantList;\r\n\t\t\r\n\t}", "List<Doctor> getAvailableDoctors(java.util.Date date, String slot) throws CliniqueException;", "public static ArrayList<BHP> getOutcomeBHPs(Resident resident, LocalDate date) {\n// long begin = System.currentTimeMillis();\n EntityManager em = OPDE.createEM();\n ArrayList<BHP> listBHP = null;\n\n try {\n\n String jpql = \" SELECT bhp \" +\n \" FROM BHP bhp \" +\n \" WHERE bhp.resident = :resident AND bhp.outcome4 IS NOT NULL \" +\n \" AND bhp.soll >= :von AND bhp.soll <= :bis \";\n\n Query query = em.createQuery(jpql);\n\n query.setParameter(\"resident\", resident);\n query.setParameter(\"von\", date.toDateTimeAtStartOfDay().toDate());\n query.setParameter(\"bis\", SYSCalendar.eod(date).toDate());\n\n listBHP = new ArrayList<BHP>(query.getResultList());\n Collections.sort(listBHP);\n\n } catch (Exception se) {\n OPDE.fatal(se);\n } finally {\n em.close();\n }\n// SYSTools.showTimeDifference(begin);\n return listBHP;\n }", "public void GetAvailableDates()\n\t{\n\t\topenDates = new ArrayList<TimePeriod>(); \n\t\t\n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t\t\t\n\t\t\tString query = \"SELECT startDate, endDate FROM Available WHERE available_hid = '\"+hid+\"'\"; \n\t\t\tResultSet rs = con.stmt.executeQuery(query);\n\t\t\t\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\t\tTimePeriod tp = new TimePeriod(); \n\t\t\t\ttp.stringStart = rs.getString(\"startDate\"); \n\t\t\t\ttp.stringEnd = rs.getString(\"endDate\"); \n\t\t\t\ttp.StringToDate();\n\t\t\t\t\n\t\t\t\topenDates.add(tp); \n\t\t\t}\n\t\t\tcon.closeConnection(); \n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "@Override\n public List<SurveillantSchedule> getSurveillantSchedule() {\n return surveillantRepository.getSurveillantSchedule();\n }", "List<Reimbursement> getReimbursementsByUser(int id);", "public List<Serie> getWeightByDate(){\r\n\t\t\r\n\t\treturn daoEjercicio.getWeightByDate();\r\n\t\t\r\n\t}", "private List<Encounter> randomizeEncounterDates(List<Obs> patientObsList){\n\t\tInteger flag=0;\n\t\tList<Date> randomizedEncounterDateList = new ArrayList<Date>();\n\t\tList<Encounter> en = new ArrayList<Encounter>();\n\t\tfor(Obs o : patientObsList){\n\t\t\ten.add(o.getEncounter());\n\t\t}\n\t\tint year,month,date;\n\t\ttry{\n\t\t\tfor(int i=0; i<patientObsList.size();i++){\n\t\t\t\tDate d= new Date();\n\t\t\t\tif(flag==0){\n\t\t\t\t\td.setDate(en.get(0).getEncounterDatetime().getDate());\n\t\t\t\t\td.setMonth(en.get(0).getEncounterDatetime().getMonth());\n\t\t\t\t\td.setYear(en.get(0).getEncounterDatetime().getYear());\n\t\t\t\t\tflag=1;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\td.setDate(en.get(i-1).getEncounterDatetime().getDate());\n\t\t\t\t\td.setMonth(en.get(i-1).getEncounterDatetime().getMonth());\n\t\t\t\t\td.setYear(en.get(i-1).getEncounterDatetime().getYear());\n\t\t\t\t}\n\t\t\t\tyear=d.getYear()+1900;\n\t\t\t\tmonth=d.getMonth();\n\t\t\t\tdate=d.getDate();\n\n\t\t\t\t//Randomize\n\t\t\t\tyear= randBetween(year+1, year+2) ;\n\t\t\t\tmonth = randBetween(month, 12);\n\t\t\t\tdate= randBetween(date, 30);\n\n\t\t\t\t//Set date\n\t\t\t\td.setYear(year-1900);\n\t\t\t\td.setMonth(month);\n\t\t\t\td.setDate(date);\n\t\t\t\ten.get(i).setEncounterDatetime(d);\n\t\t\t\trandomizedEncounterDateList.add(d);\n\t\t\t}\n\t\t}\n\t\tcatch(APIException e){\n\t\t\tlog.error(\"Exception in randomizing encounter dates\", e);\n\t\t}\n\t\treturn en;\n\t}", "public ObjectList getList(){\n return payroll;\n }", "public ArrayList<Question> getQuestionsSortedByDate() {\n \t\tArrayList<Question> sortedQuestions = this.getQuestions();\n \n \t\tCollections.sort(sortedQuestions, new DateComparator());\n \n \t\treturn sortedQuestions;\n \t}", "public ObservableList<Date> getStudentDays(int studentID);", "public ArrayList<Dice> getDiceArray()\n {\n return new ArrayList<>(diceArray);\n }", "@Override\n\tpublic ArrayList<Reservation> getReservationsByDate(Date date, int duration) {\n\t\treturn null;\n\t}", "public List<Integer> getBookedRooms(Date fromDate, Date toDate)\r\n {\r\n String fDate = DateFormat.getDateInstance(DateFormat.SHORT).format(fromDate);\r\n String tDate = DateFormat.getDateInstance(DateFormat.SHORT).format(toDate);\r\n \r\n List<Integer> bookedRooms = new LinkedList<>();\r\n \r\n Iterator<Booking> iter = bookings.iterator();\r\n \r\n while(iter.hasNext())\r\n {\r\n Booking booking = iter.next();\r\n String bookingFromDate = DateFormat.getDateInstance(DateFormat.SHORT).format\r\n (booking.getFromDate());\r\n \r\n String bookingToDate = DateFormat.getDateInstance(DateFormat.SHORT).format\r\n (booking.getToDate());\r\n \r\n if(!booking.getCancelled() && !(fDate.compareTo(bookingToDate) == 0) \r\n && fDate.compareTo(bookingToDate) <= 0 &&\r\n bookingFromDate.compareTo(fDate) <= 0 && bookingFromDate.compareTo(tDate) <= 0)\r\n { \r\n List<Integer> b = booking.getRoomNr();\r\n bookedRooms.addAll(b);\r\n }\r\n }// End of while\r\n \r\n return bookedRooms;\r\n }", "private List<Path> getChamberDirs() {\n try (Stream<Path> stream = Files.walk(chambersDir, 1)) {\n List<Path> dirs = stream.filter(path -> Files.isDirectory(path))\n .filter(path -> StringUtils.isNumeric(path.getFileName().toString()))\n .filter(path -> Files.exists(path.resolve(\"chamber.json\"))).collect(Collectors.toList());\n\n Collections.sort(dirs, new Comparator<Path>() {\n @Override\n public int compare(Path p1, Path p2) {\n int n1 = Integer.parseInt(p1.getFileName().toString());\n int n2 = Integer.parseInt(p2.getFileName().toString());\n return n1 - n2;\n }\n });\n\n return dirs;\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "public ArrayList<Grading> getGradingList(){\n \n ArrayList<Grading> gradingList = new ArrayList<Grading>();\n \n String select1 = \"select * from Gradings\";\n \n try{\n \n ps=dbc.con.prepareStatement(select1);\n rs=ps.executeQuery();\n Grading grading;\n while(rs.next()){\n \n grading = new Grading(rs.getString(\"studentId\"),rs.getString(\"firstName\"),rs.getString(\"course\"),rs.getString(\"examType\"),rs.getString(\"grade\"),rs.getString(\"date1\"));\n gradingList.add(grading);\n }\n \n }\n catch(Exception e){}\n return gradingList;\n }", "public List<RutaDTO> getAllRutas() {\n TypedQuery<RutaDTO> query = em.createQuery(\n \"SELECT r FROM ruta r ORDER BY r.id\", RutaDTO.class);\n return query.getResultList();\n }", "java.util.List<com.rpg.framework.database.Protocol.MonsterState> \n getDataList();", "@SuppressWarnings(\"unchecked\")\n public <T> List<T> list() {\n return (List<T>) journal\n .retrieve(BarbelQueries.all(id), queryOptions(orderBy(ascending(BarbelQueries.EFFECTIVE_FROM))))\n .stream().map(d -> processingState.expose(context, (Bitemporal) d)).collect(Collectors.toList());\n }", "public List<DelayedJob> toList() {\n final DelayedJob[] jobs = (DelayedJob[]) deque.toArray();\n Arrays.sort(jobs);\n return Collections.unmodifiableList(Arrays.asList(jobs));\n }", "public ArrayList<int[]> getSchedule(){\n // Initialize the output list\n ArrayList<int[]> schedule = new ArrayList<>();\n\n // Initialize a list of tuples in the form (rally id, rally duration, rally deadline)\n ArrayList<int[]> rallyList = new ArrayList<>();\n for (int i = 0; i < _rallies.size(); i++) {\n int[] info = new int[] {i, _rallies.get(i)[0], _rallies.get(i)[1]};\n rallyList.add(info);\n }\n\n // Sort them in an increasing order of the deadline\n rallyList.sort(Comparator.comparingInt(rally -> rally[2]));\n\n // Set the start time\n int f = 0;\n\n // If there is no way to finish any one of the rally before its deadline, then we will set this to true.\n boolean nuke = false;\n\n // Run a greedy algorithm (Scheduling to Minimize Lateness)\n for (int[] rally : rallyList) {\n int[] plan = new int[] {rally[0], f};\n int duration = rally[1];\n int deadline = rally[2];\n f += duration;\n\n if (f > deadline) {\n nuke = true;\n break;\n }\n\n schedule.add(plan);\n }\n\n if (nuke) {\n return new ArrayList<>();\n }\n\n return schedule;\n }", "public List<Anime> listAll(){\n return List.of(new Anime(1L,\"DB2\"), new Anime(2L,\"Berseke\"));\n }", "public List<Reimbursement> getAllReimbursements(){\n return reimbursementRepo.getAll();\n }", "public String[] getListaDinastie() {\n\t\treturn WikiImperatoriRomaniPagina.getInstance().getElencoDinastie();\n\t}", "public List<Order> getOrdersByDate(Date date);", "public ArrayList<Event> sortByDate() {\n\t\tArrayList<Event>calendarSortedByDate = new ArrayList();\n\t\tfor(int j = 0; j<calendar.size(); j++) {\n\t\t\tcalendarSortedByDate.add(calendar.get(j));\n\t\t\t\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < calendarSortedByDate.size() - 1; i++) {\n\t\t // Find the minimum in the list[i..list.size-1]\n\t\t Event currentMin = calendarSortedByDate.get(i);\n\t\t int currentMinIndex = i;\n\n\t\t for (int j = i + 1; j < calendarSortedByDate.size(); j++) {\n\t\t if (currentMin.compareDate​(calendarSortedByDate.get(j)) > 0) {\n\t\t currentMin = calendarSortedByDate.get(j);\n\t\t currentMinIndex = j;\n\t\t }\n\t\t }\n\n\t\t // Swap list[i] with list[currentMinIndex] if necessary;\n\t\t if (currentMinIndex != i) {\n\t\t \t calendarSortedByDate.set(currentMinIndex, calendarSortedByDate.get(i));\n\t\t \t calendarSortedByDate.set(i, currentMin);\n\t\t }\n\t\t }\n\t\treturn calendarSortedByDate;\n\t}", "@Override\r\n public List<Registration> getRegistrationList(Long doctorId, Registration.Status stuats) {\n Doctor doctor = doctorDao.getOne(doctorId);\r\n List<Registration> registrationList;\r\n if (doctor.getDoctorType() == Doctor.Doctor_Type.Clinic_Boss) {\r\n List<Long> doctorList = Lists.newArrayList();\r\n doctorDao.findDocAndSubDoctorPage(doctorId).forEach(doc -> doctorList.add(doc.getId()));\r\n\r\n registrationList = registrationDao.findByDoctorIdAndStatusOrderByCreateOn(doctorList, stuats, DateUtils.getDayEndMaxTime());\r\n } else {\r\n registrationList = registrationDao.findByDoctorIdAndStatusOrderByCreateOn(doctorId, stuats, DateUtils.getDayEndMaxTime());\r\n }\r\n //现场挂号List\r\n List<Registration> localeRegList = Lists.newArrayList();\r\n //正在叫号微信List\r\n List<Registration> nowCallList = Lists.newArrayList();\r\n //已经过号微信List\r\n List<Registration> passWxList = Lists.newArrayList();\r\n //排队中微信List\r\n List<Registration> paiDuiWxList = Lists.newArrayList();\r\n\r\n long nowDate = new Date().getTime();\r\n registrationList.forEach(registration -> {\r\n //如果是微信排队\r\n if (registration.getRegistrationType() == Registration.RegistrationTypeEnum.WECHAT) {\r\n // 开始时间 >=现在 && 结束时间 <=现在 说明是 正在叫号队列\r\n if (registration.getCreateOn().getTime() <= nowDate && registration.getCompleteOn().getTime() >= nowDate) {\r\n nowCallList.add(registration);\r\n } else //开始时间 <现在 说明还没到预约时间 进入正常排队队列\r\n if (registration.getCreateOn().getTime() > nowDate) {\r\n paiDuiWxList.add(registration);\r\n } else //结束时间已经小于现在时间 说明 微信预约已经过号 进入过号队列\r\n if (registration.getCompleteOn().getTime() < nowDate) {\r\n passWxList.add(registration);\r\n }\r\n //如果是现场挂号\r\n } else {\r\n localeRegList.add(registration);\r\n }\r\n });\r\n // 微信排队和现场排队进行时间排序\r\n paiDuiWxList.addAll(localeRegList);\r\n paiDuiWxList.addAll(passWxList);\r\n paiDuiWxList.sort((o1, o2) -> {\r\n if (o1.getCreateOn().getTime() <= o2.getCreateOn().getTime()) {\r\n return -1;\r\n }\r\n return 0;\r\n });\r\n\r\n// nowCallList.addAll(passWxList);\r\n nowCallList.addAll(paiDuiWxList);\r\n\r\n return nowCallList.size() > 12 ? nowCallList.subList(0, 12) : nowCallList;\r\n }", "public List<String> getGroceries()\n {\n List<String> groceryList=new ArrayList<String>();\n\n String selectQuery = \"SELECT * FROM \" + TABLE_GROCERIES;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n groceryList.add(cursor.getString(0));\n } while (cursor.moveToNext());\n }\n\n return groceryList;\n }", "public ArrayList<String> getAllEventDays(){\n ArrayList<Integer> sorted = this.getAllEventDayMonth();\n ArrayList<String> data = new ArrayList<>();\n String month = this.eventList.get(0).getStartTime().getMonth().toString();\n\n for (int date: sorted){\n StringBuilder string = new StringBuilder();\n\n string.append(month);\n string.append(\" \");\n string.append(date);\n data.add(string.toString());\n }\n return data;\n }", "@Override\r\n\tpublic List<Other> getOtherAll(String date) {\n\t\treturn othermapper.getOtherAll(date);\r\n\t}", "public List<AvailabilityMedecinResponseDto> listAllMedecinAvailability(MedecinAvailabilityRequestDto medecinAvailability){\n\n var medecin = this.medecinRepository.findById(medecinAvailability.getMedecinId());\n var date = LocalDate.parse(medecinAvailability.getDate(), DateTimeFormatter.ofPattern(\"yyyy-MM-dd\"));\n if(!medecin.isPresent()){\n return null;\n }\n var medecinAvailabilities = this.appointementRepository.findAllByMedecinAndDate(medecin.get(), date);\n\n var medecinAvailabilityList =\n medecinAvailabilities.stream().sorted((a1, a2) -> {\n System.out.printf(\"sort: %s; %s\\n\", a1, a2);\n return a1.getShiftHoraire().getId().compareTo(a2.getShiftHoraire().getId());\n })\n .map(a -> this.appointementMapper.toAvailabilityMedecinDto(a))\n .collect(Collectors.toList());\n\n return this.tweakResponse.listAllAvailiblityByStatus(medecinAvailabilityList);\n }", "public List<Login> getUniqueDates();", "public List<DishItem> getDish(){\n \tList<DishItem> dish = new ArrayList<DishItem>();\n\t\t\n\t\t//User user = userDao.find();\n\t\t//String tokenString = user.getToken();\n\t\t\n\t\tString dishResult;\t\t\n\t\tString urlString=\"/service/dish/getalldishs\";\n\t\ttry {\n\t\t\tdishResult = connect.testURLConn1(urlString);\n\t\t\tJSONObject jsonObject = new JSONObject(dishResult);System.out.println(\"jsonObject==\"+jsonObject);\n\t\t\tJSONArray jsonArray = jsonObject.getJSONArray(\"date\");System.out.println(\"jsonArray==\"+jsonArray);\n\t\t\t//userJSON = jsonObject.getJSONObject(\"user\");\n\t\t\t\n\t\t\tfor(int i=0;i<jsonArray.length();i++){ \n\t\t\t\t JSONObject jo = (JSONObject)jsonArray.opt(i);\n\t\t String id = jo.getString(\"_id\");\n\t\t String dishName = jo.getString(\"dishName\");\n\t\t String desc = jo.getString(\"desc\");\n\t\t int pic=jo.getInt(\"pic\");\n\t\t int col=jo.getInt(\"col\");\n\t\t DishItem dishitem = new DishItem(id, dishName, desc,pic,col);\n\t dish.add(dishitem);\n\t }\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\t\n\t \n\t\treturn dish;\n\t\t\n\t}", "public static void runExercise8() {\n List <Integer> years = students.stream().map(student -> student.getBirthYear()).sorted(Comparator.reverseOrder()).collect(Collectors.toList());\n System.out.println(years);\n }", "public static ArrayList<String> allSeasons(){\n PremierLeagueManager.loadingData();\n\n // sort the seasons using the comparator\n Comparator<String> comparator = (season1, season2) -> {\n\n if(Integer.parseInt(season1.split(\"-\")[0]) > Integer.parseInt(season2.split(\"-\")[0])){\n return 1;\n }\n return -1;\n\n };\n\n // setting the seasons with distinct seasons only\n PremierLeagueManager.setAllSeasonAdded((ArrayList<String>)\n PremierLeagueManager.getAllSeasonAdded().stream().distinct().collect(Collectors.toList()));\n\n // sorting the seasons\n PremierLeagueManager.getAllSeasonAdded().sort(comparator);\n\n // getting the seasons and return them\n return PremierLeagueManager.getAllSeasonAdded();\n }", "public List<Loan> getLoan();", "public ArrayList<String> getDates() {\r\n\t\treturn this.dates;\r\n\t}", "public ArrayList<ArrayList<String>> getALLVacations() throws IOException {\r\n\t\tArrayList<GregorianCalendar> vacations = calendar.getALLVacations();\r\n\t\tArrayList<ArrayList<String>> listVacations = new ArrayList<ArrayList<String>>();\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"d-MMM\", new Locale(\"es\",\"ES\"));\r\n\t\tfor (GregorianCalendar date : vacations) {\r\n\t\t\tArrayList<String> vacationDay = new ArrayList<String>();\r\n\t\t\t// adding date\r\n\t\t\tvacationDay.add(sdf.format(date.getTime()));\r\n\t\t\t// adding number of doctors and special date\r\n\t\t\tvacationDay.addAll(getVacationDay(date));\r\n\t\t\t// adding vacation day\r\n\t\t\tlistVacations.add(vacationDay);\r\n\t\t}\r\n\t\treturn listVacations;\r\n\t}", "public List<RWDCar> getCars() {\n return game.getCars();\n }", "public List<AccommodationPledge> listAccommodationPledgeByAccommodationDateTo(Date accommodationDateTo)\n {\n List<AccommodationPledge> result = this.getAccommodationPledgeBo().listAccommodationPledgeByAccommodationDateTo(accommodationDateTo);\n\n return result;\n }", "@Override\n\tpublic List<BeanDistrito> listar() {\n\t\tList<BeanDistrito> lista = new ArrayList<BeanDistrito>();\n\t\tBeanDistrito distrito = null;\n\t\tConnection con = MySQLDaoFactory.obtenerConexion();\n\t\ttry {\n\t\t\n\t\t\tString sql=\"SELECT * FROM t_distrito ORDER BY codDistrito\";\n\t\t\tStatement stmt = con.createStatement();\n\t\t\tResultSet rs = stmt.executeQuery(sql);\n\t\t\t\n\t\t\twhile(rs.next()){\n\t\t\t\tdistrito = new BeanDistrito();\n\t\t\t\tdistrito.setCodDistrito(rs.getInt(1));\n\t\t\t\tdistrito.setNombre(rs.getString(2));\n\t\t\t\t\n\t\t\t\tlista.add(distrito);\n\t\t\t}\n\t\t\tcon.close();\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\ttry {\n\t\t\t\tcon.close();\n\t\t\t} catch (SQLException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn lista;\n\t}", "@Override\n public List<E> asList() {\n ArrayList<E> result = null;\n\n while (top.next != null) {\n top = top.next;\n result.add(top.data);\n }\n return result;\n }", "public List<Person> getListSynchronsprecher() {\n\t\treturn this.listSynchronsprecher;\n\t}", "private static List<Aeropuerto> llenarAeropuertos(){\n List<Aeropuerto> res = new ArrayList<>();\n res.add(new Aeropuerto(\"la paz\",LocalTime.of(06,0,0),LocalTime.of(23,59,0)));\n res.add(new Aeropuerto(\"cochabamba\",LocalTime.of(06,0,0),LocalTime.of(23,59,0)));\n res.add(new Aeropuerto(\"santa cruz\",LocalTime.of(06,20,0),LocalTime.of(23,59,0)));\n res.add(new Aeropuerto(\"tarija\",LocalTime.of(06,10,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"sucre\",LocalTime.of(06,0,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"oruro\",LocalTime.of(06,15,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"potosi\",LocalTime.of(06,10,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"beni\",LocalTime.of(06,0,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"pando\",LocalTime.of(06,0,0),LocalTime.of(18,0,0)));\n return res;\n }", "@Override\n public List<ReaderDTO> getAllReaders() {\n\n List<Reader> readers = readerRepository.findAll();\n\n List<ReaderDTO> readersDTO = readers.stream()\n .map(ReaderConverter::convert)\n .collect(Collectors.toList());\n return readersDTO;\n }", "java.util.List<WorldUps.UGoDeliver> \n getDeliveriesList();", "@Override\n public List<ReportRecord> getReport() {\n List<ReportRecord> toReturn = new ArrayList<>();\n toReturn.addAll(this.records);\n // Sort by ski-pass check-date\n toReturn.sort((o1, o2) -> o1.getCheckDate().compareTo(o2.getCheckDate()));\n // Sort by ski-pass id-number\n Collections.sort(toReturn);\n return toReturn;\n }", "@Override\r\n\tpublic List<Evento> listarDisponivelPorDataAsc() {\n\t\treturn repository.findByFimAfterToday(sortByInicioAsc());\r\n\t}", "public void allBookings() {\n\t\t\tint i = 0;\r\n\t\t\tint k = 0;\r\n\t\t\tint j = 0;\r\n\t\t\tint roomNum; //Room number\r\n\t\t\tint buffNum; //buff room number\r\n\t\t\tint index = 0; //saves the index of the date stored in the arraylist dateArray\r\n\t\t\tBooking buff; //Booking buffer to use\r\n\t\t\tRooms roomCheck;\r\n\t\t\tArrayList<LocalDate> dateArray = new ArrayList<LocalDate>(); //Saves the booking dates of a room\r\n\t\t\tArrayList<Integer> nights = new ArrayList<Integer>(); //Saves the number of nights a room is booked for\r\n\t\t\t\r\n\t\t\twhile(i < RoomDetails.size()) { //Looping Room Number-wise\r\n\t\t\t\troomCheck = RoomDetails.get(i);\r\n\t\t\t\troomNum = roomCheck.getRoomNum();\r\n\t\t\t\tSystem.out.print(this.Name + \" \" + roomNum);\r\n\t\t\t\twhile(k < Bookings.size()) { //across all bookings\r\n\t\t\t\t\tbuff = Bookings.get(k);\r\n\t\t\t\t\twhile(j < buff.getNumOfRoom()) { //check each booked room\r\n\t\t\t\t\t\tbuffNum = buff.getRoomNumber(j);\r\n\t\t\t\t\t\tif(buffNum == roomNum) { //If a booking is found for a specific room (roomNum)\r\n\t\t\t\t\t\t\tdateArray.add(buff.getStartDate()); //add the date to the dateArray\r\n\t\t\t\t\t\t\tCollections.sort(dateArray); //sort the dateArray\r\n\t\t\t\t\t\t\tindex = dateArray.indexOf(buff.getStartDate()); //get the index of the newly add date\r\n\t\t\t\t\t\t\tnights.add(index, buff.getDays()); //add the number of nights to the same index as the date\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tj++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tk++;\r\n\t\t\t\t\tj=0;\r\n\t\t\t\t}\r\n\t\t\t\ti++;\r\n\t\t\t\tprintOccupancy(dateArray, nights); //print the occupancy of the room\r\n\t\t\t\tk=0;\r\n\t\t\t\tdateArray.clear(); //cleared to be used again\r\n\t\t\t\tnights.clear(); //cleared to be used again\r\n\t\t\t}\r\n\t\t}", "@Override\r\n public List<Damagething> damfindAll() {\n return userMapper.damfindAll();\r\n }", "public List<MotorCycle> getListMototCycleNameAndCylinder(){\r\n\t\treturn motorCycleDao.getListMotorNameAndCylinder();\r\n\t}", "LiveData<List<Recommendation>> getAllRecsSortRefreshed() {\n allRecs = recommendationRepository.getAllRecsSortRefreshed();\n return allRecs;\n }", "@Override\r\n\tpublic Student[] getByBirthDate(Date date) {\n\r\n\t\tint i = 0;\r\n\t\tArrayList<Student> list = new ArrayList();\r\n\r\n\t\twhile (i < students.length) {\r\n\r\n\t\t\tif (students[i].getBirthDate().compareTo(date) == 0) {\r\n\r\n\t\t\t\tlist.add(students[i]);\r\n\t\t\t}\r\n\r\n\t\t\ti++;\r\n\t\t}\r\n\r\n\t\tStudent[] newStudents = new Student[list.size()];\r\n\r\n\t\tint x = 0;\r\n\r\n\t\twhile (x < list.size()) {\r\n\r\n\t\t\tnewStudents[x] = list.get(x);\r\n\t\t\tx++;\r\n\t\t}\r\n\r\n\t\treturn newStudents;\r\n\t}", "public List<Date> convertXMLGregorianCalendarList(List<XMLGregorianCalendar> alist){\n\t\tList<Date> blist = new ArrayList<Date>(alist.size());\n\t\tfor(int i=0; i < alist.size(); i++){\n\t\t\tblist.add( this.getDate(alist.get(i)) );\n\t\t}\n\t\treturn blist;\n\t}", "public ArrayList<Dice> rollAllDice()\n {\n ArrayList<Dice> array = getDiceArray();\n for(Dice dice : array)\n {\n if(dice.getReroll())\n {\n dice.rollDice();\n dice.setReroll(false, \"\"); //resets all reroll flags to false\n }\n }\n \n return array;\n }", "public ArrayList<ArrayList<Dog>> getVetSchedule() {\n\t\t\tint initialCapacity = 10;\r\n\t\t\tArrayList<ArrayList<Dog>> list = new ArrayList<ArrayList<Dog>>(initialCapacity); //list to put in lists of dogs\r\n\t\t\t//intialize ArrayList with size ArrayList\r\n\t\t\tlist.add(new ArrayList<Dog>());\r\n\t\t\t/*for(int i=0; i<=10; i++){\r\n\t\t\t\tlist.add(new ArrayList<Dog>());\r\n\t\t\t}\r\n\t\t\t*/\r\n\t\t\tDogShelterIterator iterator = new DogShelterIterator();\r\n\t\t\twhile(iterator.hasNext()){\r\n\t\t\t\tDog nextDog = iterator.next();\r\n\t\t\t\tint index = nextDog.getDaysToNextVetAppointment()/7;\r\n\t\t\t\tif(index < list.size())list.get(index).add(nextDog);\r\n\t\t\t\telse{\r\n\t\t\t\t\t//index out of range --> create larger list\r\n\t\t\t\t\tArrayList<ArrayList<Dog>> newList = new ArrayList<ArrayList<Dog>>(index+1);\r\n\t\t\t\t\tnewList.addAll(list); //add all lists from the old list\r\n\t\t\t\t\tfor(int i=0; i<(index+1)-list.size(); i++){ //initialize the other half with new ArrayLists\r\n\t\t\t\t\t\tnewList.add(new ArrayList<Dog>());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlist = newList; //update list to the larger newList\r\n\t\t\t\t\tlist.get(index).add(nextDog);\r\n\t\t\t\t}\r\n\t\t\t}\r\n return list;\r\n\t\t}", "private String[] getGamesList() {\n\n\t\tGames games = new Games();\n\n\t\tint maxRecords = games.count();\n\t\tArrayList<Game> records = games.findAll(maxRecords, 0);\n\t\tIterator<Game> it = records.iterator();\n\n\t\tString[] output = new String[maxRecords];\n\t\tint i = 0;\n\n\t\twhile (it.hasNext()) {\n\n\t\t\tGame game = it.next();\n\t\t\toutput[i] = \"[\" + game.getId() + \"] \" + game.getName();\n\t\t\ti++;\n\n\t\t}\n\n\t\treturn output;\n\n\t}", "ImmutableList<SchemaOrgType> getAwardList();", "public static List<FlickrFeedResponse.Item> sortByDateTaken(List<FlickrFeedResponse.Item> list){\n\n Collections.sort(list, new FlickrFeedResponse.Item.DateTakenComparator());\n\n return list;\n }", "public List<Entry> getSortable() \n\t{\n\t\tList<Registry.Entry> list = new ArrayList(this.size() + JavaUtil.arrayInitCapacity);\n\t\tfor(Registry.Entry entry : this)\n\t\t\tlist.add(entry);\n\t\treturn list;\n\t}", "public List<Refinery> getRefineries(int year);", "public List<Integer> getByMonth() {\n\t\treturn byMonth;\n\t}", "public List<Render.ReservationStationEntryWrapper> toList() {\n List<Render.ReservationStationEntryWrapper> ret = new ArrayList<>();\n for (int i = 0; i < table.length; i++) {\n Render.ReservationStationEntryWrapper wrapper = new Render.ReservationStationEntryWrapper(table[i], i);\n ret.add(wrapper);\n }\n return ret;\n }", "java.util.List<org.landxml.schema.landXML11.DecisionSightDistanceDocument.DecisionSightDistance> getDecisionSightDistanceList();", "public List getRatingList() throws GenericBusinessException {\n sust.bookshelves.hibernatehelper.HibernateQueryHelper hibernateTemplate = new sust.bookshelves.hibernatehelper.HibernateQueryHelper();\n try {\n\n String queryString = \"from \" + Rating.class.getName() + \" e\";\n // Add a an order by on all primary keys to assure reproducable results.\n String orderByPart = \"\";\n orderByPart += \" order by e.ratingId\";\n queryString += orderByPart;\n Query query = hibernateTemplate.createQuery(queryString);\n List list = hibernateTemplate.list(query);\n\n return list;\n } finally {\n log.debug(\"finished getRatingList\");\n }\n }", "public List<Restaurant> restaurantList(){\r\n\t\treturn DataDAO.getRestaurantList();\r\n\t}", "@ModelAttribute(\"dobDateList\")\n\t\tpublic Map<String, String> getDobDateList() {\n\t\t\tMap<String, String> dateList = new LinkedHashMap<String, String>();\n\t\t\t\n\t\t\tfor (int i=1;i<32;i++) {\n\t\t\t\tString str = \"00\"+i;\n\t\t\t\tdateList.put(str.substring(Math.max(str.length() - 2, 0)), i+\"\");\n\t\t\t}\n\t\t\treturn dateList;\n\t\t}", "public List<ProductTilePojo> getByDateProductsList() {\n\t\tLOGGER.info(\"getDateProductsList -> Start\");\n\t\tString currentPath = homePagePath + PropertyReaderUtils.getProductPath();\n\t\tbyDateProductsList = productGalleryAndLandingService.getTilesByDate(currentPath, true);\n\t\tif (byDateProductsList.size() > 12) {\n\t\t\treturn byDateProductsList.subList(0, 12);\n\t\t}\n\t\t\n\t\tLOGGER.debug(\"byDateProductsList size is {}\", byDateProductsList.size());\n\t\t\n\t\tLOGGER.info(\"getDateProductsList -> End\");\n\t\treturn byDateProductsList;\n\t}", "@Override\r\n\tpublic Collection<Sticker> list(Sticker sticker) {\n\t\treturn sst.selectList(\"stickerns.list\",sticker);\r\n\t}", "public synchronized List<String> borrowerList(String borrower){\n List<String> list = new LinkedList<>();\n for (int i = 0; i < titleList.size(); i++){\n for (String name : borrowerList.get(i)){\n if (name.equals(borrower))\n list.add(titleList.get(i));\n }\n }\n return list;\n }", "public ArrayList<Road> loadRoads()\n\t{\n\t\t/* Requete SQL */\n\t\tCursor cursor = mainDatabase.rawQuery(\"SELECT \" + DBContract.RoadTable.ROADNAME[0] + \", \" +\n\t\t\t\tDBContract.RoadTable.LENGTH[0] + \", \" + DBContract.RoadTable.DURATION[0] + \", \" +\n\t\t\t\tDBContract.RoadTable.PRICE[0] + \" FROM \" + DBContract.RoadTable.TABLE_NAME, null);\n\t\t\n\t\tArrayList<Road> result = new ArrayList<Road>();\n\t\t\n\t\t/* Parcour du resultat */\n\t\tif(cursor.moveToFirst())\n\t\t{\n\t\t\t\twhile(!cursor.isAfterLast())\n\t\t\t\t{\n\t\t\t\t\t/* Instancie la nouvelle route */\n\t\t\t\t\tRoad tmp = new Road(cursor.getString(0), cursor.getDouble(1), cursor.getDouble(2),\n\t\t\t\t\t\t\tcursor.getDouble(3));\t\n\t\t\t\t\tresult.add(tmp);\n\t\t\t\t\tcursor.moveToNext();\n\t\t\t\t}\n\t\t}\n\t\tcursor.close();\n\t\treturn result;\n\t}", "@Override\n public List<UserRoom> getUserRoomList() {\n logger.info(\"Start getUserRoomList\");\n List<UserRoom> userRoomList = new ArrayList<>();\n try {\n connection = DBManager.getConnection();\n preparedStatement = connection.prepareStatement(Requests.SELECT_FROM_USER_ROOM);\n rs = preparedStatement.executeQuery();\n while (rs.next()) {\n userRoomList.add(myResultSet(rs));\n }\n } catch (SQLException sqlException) {\n Logger.getLogger(sqlException.getMessage());\n } finally {\n closing(connection, preparedStatement, rs);\n }\n logger.info(\"Completed getUserRoomList\");\n return userRoomList;\n }" ]
[ "0.6665787", "0.5818544", "0.57231814", "0.5705712", "0.5659721", "0.5622031", "0.5585735", "0.5577701", "0.55776805", "0.55468816", "0.5494804", "0.54736197", "0.53958243", "0.53940475", "0.53878665", "0.53714657", "0.5370774", "0.536899", "0.53677016", "0.5366575", "0.53444004", "0.5341229", "0.53083265", "0.53081673", "0.5285309", "0.5269934", "0.523045", "0.522571", "0.5224085", "0.5222681", "0.52030957", "0.51798785", "0.5179041", "0.51744723", "0.51654506", "0.5165263", "0.5154929", "0.5154572", "0.5145217", "0.5144301", "0.51385736", "0.5133508", "0.51320016", "0.5131894", "0.5129392", "0.5129029", "0.51071465", "0.508176", "0.50801235", "0.5077526", "0.50705314", "0.50656736", "0.5064768", "0.5064538", "0.5063942", "0.5054943", "0.505448", "0.5051112", "0.5044779", "0.5035389", "0.5032735", "0.50305104", "0.5029179", "0.5023462", "0.5013695", "0.50128007", "0.50124645", "0.50114274", "0.5010791", "0.5004272", "0.5002487", "0.50022626", "0.5002118", "0.4995853", "0.49906406", "0.49849808", "0.49844074", "0.49839514", "0.49823427", "0.49793333", "0.49764135", "0.49745753", "0.49738136", "0.49650773", "0.4962985", "0.4962712", "0.495857", "0.49535045", "0.4952066", "0.49497345", "0.49496776", "0.49463966", "0.49426493", "0.4938309", "0.4935729", "0.49315202", "0.49292645", "0.49269363", "0.49257684", "0.49254912" ]
0.71250385
0
Returns the duty roster's dates as a list of lists of LocalDates, sorted by date.
public List<LocalDate> getRosterDatesAsList() { ArrayList<LocalDate> localDates = new ArrayList<>(roster.keySet()); Collections.sort(localDates); return localDates; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static ArrayList<LocalDate> getPhDates() {\r\n \tArrayList<Date> phDates = phRepo.findAllPublicHolidayDates();\r\n \tArrayList<LocalDate> phLocalDates = new ArrayList<LocalDate>();\r\n \t\r\n\t\tfor(Date phDate : phDates) {\r\n\t\t\tphLocalDates.add(phDate.toLocalDate());\r\n\t\t}\r\n\t\t\r\n\t\treturn phLocalDates;\r\n }", "public List<DateType> toDateList() {\n List<DateType> result = new ArrayList<>();\n if (fromDate != null) {\n result.add(fromDate);\n }\n if (toDate != null) {\n result.add(toDate);\n }\n if (fromToDate != null) {\n result.add(fromToDate);\n }\n return result;\n }", "private List<Date> getTestDates() {\n List<Date> testDates = new ArrayList<Date>();\n TimeZone.setDefault(TimeZone.getTimeZone(\"Europe/London\"));\n\n GregorianCalendar calendar = new GregorianCalendar(2010, 0, 1);\n testDates.add(new Date(calendar.getTimeInMillis()));\n\n calendar = new GregorianCalendar(2010, 0, 2);\n testDates.add(new Date(calendar.getTimeInMillis()));\n\n calendar = new GregorianCalendar(2010, 1, 1);\n testDates.add(new Date(calendar.getTimeInMillis()));\n\n calendar = new GregorianCalendar(2011, 0, 1);\n testDates.add(new Date(calendar.getTimeInMillis()));\n\n return testDates;\n }", "public List<String> getDates() {\n\n List<String> listDate = new ArrayList<>();\n\n Calendar calendarToday = Calendar.getInstance();\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM-dd\", Locale.ENGLISH);\n String today = simpleDateFormat.format(calendarToday.getTime());\n\n Calendar calendarDayBefore = Calendar.getInstance();\n calendarDayBefore.setTime(calendarDayBefore.getTime());\n\n int daysCounter = 0;\n\n while (daysCounter <= 7) {\n\n if (daysCounter == 0) { // means that its present day\n listDate.add(today);\n } else { // subtracts 1 day after each pass\n calendarDayBefore.add(Calendar.DAY_OF_MONTH, -1);\n Date dateMinusOneDay = calendarDayBefore.getTime();\n String oneDayAgo = simpleDateFormat.format(dateMinusOneDay);\n\n listDate.add(oneDayAgo);\n\n }\n\n daysCounter++;\n }\n\n return listDate;\n\n }", "public List<LocalDateTime> getDateTimes() {\n return FoodListManager.convertListToLocalDateTimes(foodEntries);\n }", "public void GetAvailableDates()\n\t{\n\t\topenDates = new ArrayList<TimePeriod>(); \n\t\t\n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t\t\t\n\t\t\tString query = \"SELECT startDate, endDate FROM Available WHERE available_hid = '\"+hid+\"'\"; \n\t\t\tResultSet rs = con.stmt.executeQuery(query);\n\t\t\t\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\t\tTimePeriod tp = new TimePeriod(); \n\t\t\t\ttp.stringStart = rs.getString(\"startDate\"); \n\t\t\t\ttp.stringEnd = rs.getString(\"endDate\"); \n\t\t\t\ttp.StringToDate();\n\t\t\t\t\n\t\t\t\topenDates.add(tp); \n\t\t\t}\n\t\t\tcon.closeConnection(); \n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "public Date[] getDates() {\n/* 141 */ return getDateArray(\"date\");\n/* */ }", "public List<LocalDate> createLocalDates( final int size ) {\n\n\t\tfinal List<LocalDate> list = new ArrayList<>(size);\n\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tlist.add(LocalDate.ofEpochDay(i));\n\t\t}\n\n\t\treturn list;\n\t}", "public ArrayList<RdV> afficherRdV(LocalDate d1, LocalDate d2) {\n ArrayList<RdV> plage_RdV = new ArrayList();\n if (this.getAgenda() != null) {\n for (RdV elem_agenda : this.getAgenda()) {\n //si le rdv inscrit dans l'agenda est compris entre d1 et d2\n //d1<elem_agenda<d2 (OU d2<elem_agenda<d1 si d2<d1)\n if ((elem_agenda.getDate().isAfter(d1) && elem_agenda.getDate().isBefore(d2))\n || (elem_agenda.getDate().isAfter(d2) && elem_agenda.getDate().isBefore(d1))) {\n plage_RdV.add(elem_agenda);\n }\n }\n //on print la liste de rdv avant tri\n System.out.print(plage_RdV);\n //on print la liste de rdv avant tri\n System.out.print(\"\\n\");\n Collections.sort(plage_RdV);\n System.out.print(plage_RdV);\n\n }\n\n return plage_RdV;\n\n }", "public final List<DateWithTypeDateFormat> getDates() {\n return this.dates;\n }", "@Override\n\tpublic List<String> getListDueDate() {\n\t\ttry{\n\t\t\t\n\t\t\tbegin();\n\t\t\tString sql = \"SELECT DISTINCT mo.O_DueDate\"\n\t\t\t\t\t+ \" FROM mOrders mo\"\n\t\t\t\t\t+ \"\tWHERE mo.O_Status_Code='\"+Constants.ORDER_STATUS_NOT_IN_ROUTE+\"' \"\n\t\t\t\t\t\t\t+ \"OR mo.O_Status_Code='\"+Constants.ORDER_STATUS_ARRIVED_BUT_NOT_DELIVERIED+\"'\"\n\t\t\t\t\t+ \" ORDER BY mo.O_DueDate ASC\";\n\t\t\tList<String> lstOrDate = getSession().createQuery(sql).list();\n\t\t\t//System.out.println(name()+\"::getListDueDate--lstOrDate: \"+lstOrDate.toString());\n\t\t\tcommit();\n\t\t\t\n\t\t\treturn lstOrDate;\n\t\t\t\n\t\t}catch(HibernateException e){\n\t\t\te.printStackTrace();\n\t\t\trollback();\n\t\t\tclose();\n\t\t\treturn null;\n\t\t}finally{\n\t\t\tflush();\n\t\t\tclose();\n\t\t}\n\t}", "public static List<Date> getTradeDays() {\r\n\t\t\r\n\t\tEntityManagerFactory emf = Persistence.createEntityManagerFactory(\"JPAOptionsTrader\");\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\t\r\n\t\t// Note: table name refers to the Entity Class and is case sensitive\r\n\t\t// field names are property names in the Entity Class\r\n\t\tQuery query = em.createQuery(\"select distinct(opt.trade_date) from \" + TradeProperties.SYMBOL_FOR_QUERY + \" opt \"\r\n\t\t\t\t+ \" order by opt.trade_date\");\r\n\t\t\r\n\t\tquery.setHint(\"odb.read-only\", \"true\");\r\n\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Date> tradeDates = query.getResultList();\r\n\t\t\r\n\t\tem.close();\r\n\t\t\r\n\t\treturn tradeDates;\r\n\t}", "public ArrayList<String> getDates() {\r\n\t\treturn this.dates;\r\n\t}", "public static List<Long> getData_entryDates() {\r\n\t\treturn data_entryDates;\r\n\t}", "public List<String> recordedDateList();", "private List<String> makeListOfDates(HashSet<Calendar> workDays) {\n //SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/YYYY\");\n SimpleDateFormat sdf = new SimpleDateFormat();\n List<String> days = new ArrayList<>();\n for (Calendar date : workDays) {\n //SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/YYYY\");\n days.add(sdf.format(date.getTime()));\n }\n\n return days;\n }", "public ArrayList<Event> sortByDate() {\n\t\tArrayList<Event>calendarSortedByDate = new ArrayList();\n\t\tfor(int j = 0; j<calendar.size(); j++) {\n\t\t\tcalendarSortedByDate.add(calendar.get(j));\n\t\t\t\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < calendarSortedByDate.size() - 1; i++) {\n\t\t // Find the minimum in the list[i..list.size-1]\n\t\t Event currentMin = calendarSortedByDate.get(i);\n\t\t int currentMinIndex = i;\n\n\t\t for (int j = i + 1; j < calendarSortedByDate.size(); j++) {\n\t\t if (currentMin.compareDate​(calendarSortedByDate.get(j)) > 0) {\n\t\t currentMin = calendarSortedByDate.get(j);\n\t\t currentMinIndex = j;\n\t\t }\n\t\t }\n\n\t\t // Swap list[i] with list[currentMinIndex] if necessary;\n\t\t if (currentMinIndex != i) {\n\t\t \t calendarSortedByDate.set(currentMinIndex, calendarSortedByDate.get(i));\n\t\t \t calendarSortedByDate.set(i, currentMin);\n\t\t }\n\t\t }\n\t\treturn calendarSortedByDate;\n\t}", "public List<Date> convertXMLGregorianCalendarList(List<XMLGregorianCalendar> alist){\n\t\tList<Date> blist = new ArrayList<Date>(alist.size());\n\t\tfor(int i=0; i < alist.size(); i++){\n\t\t\tblist.add( this.getDate(alist.get(i)) );\n\t\t}\n\t\treturn blist;\n\t}", "public ArrayList<String> getAllEventDays(){\n ArrayList<Integer> sorted = this.getAllEventDayMonth();\n ArrayList<String> data = new ArrayList<>();\n String month = this.eventList.get(0).getStartTime().getMonth().toString();\n\n for (int date: sorted){\n StringBuilder string = new StringBuilder();\n\n string.append(month);\n string.append(\" \");\n string.append(date);\n data.add(string.toString());\n }\n return data;\n }", "public List<XMLGregorianCalendar> convertDateList(List<Date> alist){\n\t\tList<XMLGregorianCalendar> blist = new ArrayList<XMLGregorianCalendar>(alist.size());\n\t\tfor(int i=0; i < alist.size(); i++){\n\t\t\tblist.add( this.getDate(alist.get(i)) );\n\t\t}\n\t\treturn blist;\n\t}", "public List<TilePojo> getCharactesListByDate() {\n\t\tLOGGER.info(\"getCharactesListByDate -> Start\");\n\t\tcharactesListByDate = new LinkedList<>();\n\t\tList<TilePojo> charList = tileGalleryAndLandingService.getTilesByDate(homePagePath, galleryFor, null,\n\t\t\t\tresource.getResourceResolver(), true);\n\t\tcharactesListByDate = getFixedNumberChar(charList, 12);\n\t\tLOGGER.info(\"getCharactesListByDate -> End\");\n\t\treturn charactesListByDate;\n\t}", "public List<List<DutyRosterItem>> getRosterAsList() {\n return new ArrayList<>(new TreeMap<>(roster).values());\n }", "@Override\n\tpublic List<Tourneys> getTourneysByDate() {\n\t\treturn null;\n\t}", "@Override\n public List<String> getListOfDates() throws FlooringMasteryPersistenceException {\n \n List<String> listOfDates = new ArrayList<>();\n String dateToLoad = \"\"; \n String fileDirectory = System.getProperty(\"user.dir\"); // get the directory of where java was ran (this project's folder)\n \n File folder = new File(fileDirectory); // turn the directory string into a file\n File[] listOfFiles = folder.listFiles(); // get the list of files in the directory\n \n \n for (int i = 0; i < listOfFiles.length; i++) {\n if (listOfFiles[i].isFile()) {\n \n String nameOfFile = listOfFiles[i].getName(); // get the name of the file\n String numbersOnly = nameOfFile.replaceAll(\"[\\\\D]\", \"\"); // replace all non-number characters with whitespace\n\n if(numbersOnly.equals(\"\")){ // if there were no numbers in the file name (ex. pom.xml), do nothing\n \n }else{\n int dateOfFile = Integer.parseInt(numbersOnly); // get the numbers part of the file name\n int lengthOfdate = String.valueOf(dateOfFile).length(); // get the length of the int by converting it to a String and using .length\n if(lengthOfdate < numbersOnly.length()){ // if the leading 0 got chopped off when parsing\n dateToLoad = \"0\"+ dateOfFile; // add it back\n }else{\n dateToLoad = Integer.toString(dateOfFile); // otherwise if there were no leading 0s, set to the String version of dateOfFile, NOT dateToLoad, as that will have the previous date\n }\n listOfDates.add(dateToLoad);\n }\n \n }\n \n }\n \n return listOfDates;\n\n }", "public List<CalendarDates> getCalendarDatesByPresident(President president) throws SQLException {\n\t\tList<CalendarDates> calendarDates = new ArrayList<CalendarDates>();\n\t\tString selectCalendarDates =\n\t\t\t\"SELECT CalendarDates, President \" + \n\t\t\t\"FROM CalendarDates \" + \n\t\t\t\"WHERE President=?;\";\n\t\tConnection connection = null;\n\t\tPreparedStatement selectStmt = null;\n\t\tResultSet results = null;\n\t\tPresidentDao presidentsDao = PresidentDao.getInstance();\n\t\ttry {\n\t\t\tconnection = connectionManager.getConnection();\n\t\t\tselectStmt = connection.prepareStatement(selectCalendarDates);\n\t\t\tselectStmt.setString(1, president.getPersonName());\n\t\t\tresults = selectStmt.executeQuery();\n\t\t\twhile(results.next()) {\n\t\t\t\tDate calendarDate = results.getDate(\"CalendarDate\");\t\t\n\t\t\t\tPresident resultPresident = presidentsDao.getPresidentByName(results.getString(\"President\"));\n\t\t\t\tCalendarDates calendar = new CalendarDates(calendarDate, resultPresident);\n\t\t\t\tcalendarDates.add(calendar);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow e;\n\t\t} finally {\n\t\t\tif(connection != null) {\n\t\t\t\tconnection.close();\n\t\t\t}\n\t\t\tif(selectStmt != null) {\n\t\t\t\tselectStmt.close();\n\t\t\t}\n\t\t\tif(results != null) {\n\t\t\t\tresults.close();\n\t\t\t}\n\t\t}\n\t\treturn calendarDates;\n\t}", "public static ArrayList<HashMap<String, String>> getCurrentMonthlDates() {\r\n\t\tArrayList<HashMap<String, String>> list = new ArrayList<>();\r\n\t\tCallableStatement call = null;\r\n\t\tResultSet rs = null;\r\n\r\n\t\ttry (Connection con = Connect.getConnection()) {\r\n\t\t\tcall = con\r\n\t\t\t\t\t.prepareCall(\"{CALL get_monthly_dates_for_salesman_recovery()}\");\r\n\t\t\trs = call.executeQuery();\r\n\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tHashMap<String, String> map = new HashMap<>();\r\n\t\t\t\tmap.put(\"date\", rs.getString(\"get_date\"));\r\n\t\t\t\tlist.add(map);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn list;\r\n\t}", "@Override\n @XmlElement(name = \"dateTime\", namespace = Namespaces.DQC)\n @SuppressWarnings(\"ReturnOfCollectionOrArrayField\")\n public Collection<Date> getDates() {\n if (Semaphores.query(Semaphores.NULL_COLLECTION)) {\n return isNullOrEmpty(dates) ? null : dates;\n }\n if (dates == null) {\n dates = new Dates();\n }\n return dates;\n }", "public void sortDaysArray() {\n if (_savedDates.size() > 0) {\n Collections.sort(_savedDates, Collections.reverseOrder());\n }\n //Log.i(\"DailyLogFragment\", \"_savedDates after sort = \" + _savedDates);\n }", "private List<LocalDate> getBackDatedEntitlementDates(List<LocalDate> newChildrenDatesOfBirth, LocalDate cycleStartDate) {\n LocalDate earliestDateOfBirth = min(newChildrenDatesOfBirth);\n LocalDate rollingEntitlementDate = cycleStartDate.minusDays(entitlementCalculationDurationInDays);\n List<LocalDate> backDatedEntitlementDates = new ArrayList<>();\n\n while (rollingEntitlementDate.isAfter(earliestDateOfBirth) || rollingEntitlementDate.isEqual(earliestDateOfBirth)) {\n backDatedEntitlementDates.add(rollingEntitlementDate);\n rollingEntitlementDate = rollingEntitlementDate.minusDays(entitlementCalculationDurationInDays);\n }\n\n return backDatedEntitlementDates;\n }", "private static List<Date> getTradeDays(Date startDate, Date expiration) {\r\n\t\t\r\n\t\tEntityManagerFactory emf = Persistence.createEntityManagerFactory(\"JPAOptionsTrader\");\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\t\r\n\t\t// Note: table name refers to the Entity Class and is case sensitive\r\n\t\t// field names are property names in the Entity Class\r\n\t\tQuery query = em.createQuery(\"select distinct(opt.trade_date) from \" + TradeProperties.SYMBOL_FOR_QUERY + \" opt where \"\r\n\t\t\t\t+ \"opt.trade_date >= :tradeDate \" \r\n\t\t\t\t+ \"and opt.expiration=:expiration \"\t\r\n\t\t\t\t+ \" order by opt.trade_date\");\r\n\t\t\r\n\t\tquery.setParameter(\"tradeDate\", startDate);\r\n\t\tquery.setParameter(\"expiration\", expiration);\r\n\r\n\t\tquery.setHint(\"odb.read-only\", \"true\");\r\n\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Date> tradeDates = query.getResultList();\r\n\t\t\r\n\t\tem.close();\r\n\t\t\r\n\t\treturn tradeDates;\r\n\t}", "List<LocalDate> getAvailableDates(@Future LocalDate from, @Future LocalDate to);", "public List<Reservation> sortByDate(List<Reservation> reservations){\n\t\tList<Reservation> sorted = new ArrayList<>(reservations);\n\t\tsorted.sort(Comparator.comparing(Reservation::getDate));\n\t\treturn sorted;\n\t}", "public ArrayList<ArrayList<String>> getALLVacations() throws IOException {\r\n\t\tArrayList<GregorianCalendar> vacations = calendar.getALLVacations();\r\n\t\tArrayList<ArrayList<String>> listVacations = new ArrayList<ArrayList<String>>();\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"d-MMM\", new Locale(\"es\",\"ES\"));\r\n\t\tfor (GregorianCalendar date : vacations) {\r\n\t\t\tArrayList<String> vacationDay = new ArrayList<String>();\r\n\t\t\t// adding date\r\n\t\t\tvacationDay.add(sdf.format(date.getTime()));\r\n\t\t\t// adding number of doctors and special date\r\n\t\t\tvacationDay.addAll(getVacationDay(date));\r\n\t\t\t// adding vacation day\r\n\t\t\tlistVacations.add(vacationDay);\r\n\t\t}\r\n\t\treturn listVacations;\r\n\t}", "public List<String> getScheduledDates() {\n if (_schedDates == null) {\n return Collections.emptyList();\n }\n return Collections.unmodifiableList(_schedDates);\n }", "public List<Login> getUniqueDates();", "public List<Serie> getCaloriesByDate(){\r\n\t\t\r\n\t\treturn daoEjercicio.getCaloriesByDate();\r\n\t\t\r\n\t}", "public List<Reserva> getReservasPeriod(String dateOne, String dateTwo){\n /**\n * Instancia de SimpleDateFormat para dar formato correcto a fechas.\n */\n SimpleDateFormat parser = new SimpleDateFormat(\"yyyy-MM-dd\");\n /**\n * Crear nuevos objetos Date para recibir fechas fomateadas.\n */\n Date dateOneFormatted = new Date();\n Date dateTwoFormatted = new Date();\n /**\n * Intentar convertir las fechas a objetos Date; mostrar registro de\n * la excepción si no se puede.\n */\n try {\n dateOneFormatted = parser.parse(dateOne);\n dateTwoFormatted = parser.parse(dateTwo);\n } catch (ParseException except) {\n except.printStackTrace();\n }\n /**\n * Si la fecha inicial es anterior a la fecha final, devuelve una lista\n * de Reservas creadas dentro del intervalo de fechas; si no, devuelve\n * un ArrayList vacío.\n */\n if (dateOneFormatted.before(dateTwoFormatted)){\n return repositorioReserva.findAllByStartDateAfterAndStartDateBefore\n (dateOneFormatted, dateTwoFormatted);\n } else {\n return new ArrayList<>();\n }\n }", "private List<Long> makeListOfDatesLong(HashSet<Calendar> workDays) {\n List<Long> days = new ArrayList<>();\n if (workDays != null) {\n for (Calendar date : workDays) {\n //SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/YYYY\");\n //days.add(sdf.format(date.getTime()));\n days.add(date.getTimeInMillis());\n }\n }\n return days;\n }", "@Query(value = \"SELECT DATE(created_on),value FROM lost_products WHERE created_on >= ? AND created_on<= ?\", nativeQuery = true)\n List<Object[]> getLostsBetweenDates(LocalDate startDate, LocalDate endDate);", "List<String> getResevedDatesList(int carId) throws ServiceException;", "public List<LocalDate> getDaysBetweenDates(List<Vacation> vacationList) {\n\n List<LocalDate> dateList = new ArrayList<>();\n for (Vacation vacation : vacationList) {\n\n long days = dateDiffInNumberOfDays(vacation.getVacationStartDay(), vacation.getVacationEndDay());\n for (int i = 0; i <= days; i++) {\n\n LocalDate d = vacation.getVacationStartDay().plus(i, ChronoUnit.DAYS);\n dateList.add(d);\n }\n }\n\n return dateList;\n }", "private List<String> parseDates(Node dateRow) {\n\t\tArrayList<String> datestrings = new ArrayList<String>();\n\t\tList<Node> dates = new ArrayList<Node>(dateRow.childNodes());\n\t\tfor (int cellnumber = 1; cellnumber < dates.size(); cellnumber++) {\n\t\t\tdatestrings.add(dates.get(cellnumber).childNode(0).toString());\n\t\t}\n\n\t\treturn datestrings;\n\t}", "@JsonIgnore public Collection<java.util.Date> getWebCheckinTimes() {\n final Object current = myData.get(\"webCheckinTime\");\n if (current == null) return Collections.emptyList();\n if (current instanceof Collection) {\n return (Collection<java.util.Date>) current;\n }\n return Arrays.asList((java.util.Date) current);\n }", "public static Date[] getCurrentWeekInDates(){\n\t\t Date FromDate=new Date();\n\t\t Date ToDate=new Date();\n\n\t\t int i = 1; \n\t\t while(i <= 7){\n\t\t \n\t\t Date CurDate = DateUtils.addDays(new Date(), i * (-1));\n\t\t \n\t\t Calendar cal = Calendar.getInstance();\n\t\t cal.setTime(CurDate);\n\t\t \n\t\t int DayOfWeek = cal.get(Calendar.DAY_OF_WEEK);\n\t\t \n\t\t if(DayOfWeek == 6){\n\t\t ToDate = CurDate;\n\t\t }\n\t\t \n\t\t if(DayOfWeek == 7){\n\t\t \n\t\t FromDate = CurDate;\n\t\t \n\t\t break;\n\t\t }\n\t\t \n\t\t i++;\n\t\t \n\t\t }// end while\n\t\t \n\t\t \n\t\t Date temp[] = new Date[2];\n\t\t temp[0] = FromDate;\n\t\t temp[1] = ToDate;\n\t\t \n\t\t return temp;\n\t\t \n\t}", "public List<Viaje> getDriverTravelsinPeriod(String driverNif, Date initDate, Date endDate) {\n EntityManager em = getEntityManager();\n return em.createNamedQuery(\"Viaje.getDriverTravelsByDate\")\n .setParameter(\"driverNif\", driverNif)\n .setParameter(\"initDate\", initDate)\n .setParameter(\"endDate\", endDate).getResultList();\n }", "@Query(value = FIND_BOOKED_DATES)\n\tpublic List<BookingDate> getBooking(Date startDate, Date endDate);", "public static List<Date> initDates(Integer daysIntervalSize) {\n List<Date> dateList = new ArrayList<Date>();\n Calendar calendar = Calendar.getInstance();\n calendar.add(Calendar.DATE, -((daysIntervalSize / 2) + 1));\n for (int i = 0; i <= daysIntervalSize; i++) {\n calendar.add(Calendar.DATE, 1);\n dateList.add(calendar.getTime());\n }\n return dateList;\n }", "private List<Event> getEventsOnDate(Date date) {\r\n List<Event> eventsOnDate = new ArrayList<>();\r\n for (Event event : this.events) {\r\n if (event.getDate().equals(date)) {\r\n eventsOnDate.add(event);\r\n }\r\n }\r\n\r\n return eventsOnDate;\r\n }", "public ArrayList<Integer> getAllEventDayMonth(){\n ArrayList<Integer> sorted = new ArrayList<>();\n\n\n for (Event event: this.eventList) {\n if(!sorted.contains(event.getStartTime().getDayOfMonth())){\n sorted.add(event.getStartTime().getDayOfMonth());\n }\n\n\n }\n Collections.sort(sorted);\n return sorted;\n }", "public ArrayList<ArrayList<Double>> getReportsFromServer(LocalDate date)\n {\n\t //Go to DB and ask for reports of a specific date\n\t return null;\n }", "public List<Order> getOrdersByDate(Date date);", "public List<Datentraeger> getDatentraeger() {\n\t\treturn this.listDatentraeger;\n\t}", "ImmutableList<SchemaOrgType> getDatePublishedList();", "public Collection<DateTimeFormatter> getFormattedRdates() {\n return formattedRdates;\n }", "public void dateHashMapSorted() {\n\t\t//array used to store the key values of the unsorted HashMap\n\t\tLocalDate[] unsortedArr = new LocalDate[SORTINGDATES_SIZE];\n\t\n\t\t//adding all the keys to unsortedArr\n\t\tint i = 0;\n\t\tfor (LocalDate key : map.keySet()) {\n\t\t\t\tunsortedArr[i++] = key;\n\t\t\t}\n\t\t\n\t\tfor (int currIndex = 1; currIndex < unsortedArr.length; currIndex++) {\n\t\t\tLocalDate date = unsortedArr[currIndex];\n\t\t\tint k = currIndex - 1;\n\t\t\t\t\n\t\t\t/*\n\t\t\t * while the index for the array stays above 0 and the element in the previous\n\t\t\t * index is greater than the element at the currentIndex\n\t\t\t */\n\t\t\twhile ((k >= 0) && (unsortedArr[k].isAfter(date))) {\n\t\t\t\t//shifting the elements to the right\n\t\t\t\tunsortedArr[k + 1] = unsortedArr[k];\n\t\t\t\t//decrement x to move the other elements over\n\t\t\t\tk--;\t\n\t\t\t}\n\t\t\tunsortedArr[k + 1] = date;\n\t\t}\n\n\t\tfor (i = 0; i < unsortedArr.length; ++i) {\n\t\t\tSystem.out.println(unsortedArr[i]);\n\t\t}\n\t}", "@WebMethod public ArrayList<LocalDate> getEventsMonth(LocalDate date);", "private List<Encounter> randomizeEncounterDates(List<Obs> patientObsList){\n\t\tInteger flag=0;\n\t\tList<Date> randomizedEncounterDateList = new ArrayList<Date>();\n\t\tList<Encounter> en = new ArrayList<Encounter>();\n\t\tfor(Obs o : patientObsList){\n\t\t\ten.add(o.getEncounter());\n\t\t}\n\t\tint year,month,date;\n\t\ttry{\n\t\t\tfor(int i=0; i<patientObsList.size();i++){\n\t\t\t\tDate d= new Date();\n\t\t\t\tif(flag==0){\n\t\t\t\t\td.setDate(en.get(0).getEncounterDatetime().getDate());\n\t\t\t\t\td.setMonth(en.get(0).getEncounterDatetime().getMonth());\n\t\t\t\t\td.setYear(en.get(0).getEncounterDatetime().getYear());\n\t\t\t\t\tflag=1;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\td.setDate(en.get(i-1).getEncounterDatetime().getDate());\n\t\t\t\t\td.setMonth(en.get(i-1).getEncounterDatetime().getMonth());\n\t\t\t\t\td.setYear(en.get(i-1).getEncounterDatetime().getYear());\n\t\t\t\t}\n\t\t\t\tyear=d.getYear()+1900;\n\t\t\t\tmonth=d.getMonth();\n\t\t\t\tdate=d.getDate();\n\n\t\t\t\t//Randomize\n\t\t\t\tyear= randBetween(year+1, year+2) ;\n\t\t\t\tmonth = randBetween(month, 12);\n\t\t\t\tdate= randBetween(date, 30);\n\n\t\t\t\t//Set date\n\t\t\t\td.setYear(year-1900);\n\t\t\t\td.setMonth(month);\n\t\t\t\td.setDate(date);\n\t\t\t\ten.get(i).setEncounterDatetime(d);\n\t\t\t\trandomizedEncounterDateList.add(d);\n\t\t\t}\n\t\t}\n\t\tcatch(APIException e){\n\t\t\tlog.error(\"Exception in randomizing encounter dates\", e);\n\t\t}\n\t\treturn en;\n\t}", "public List<Restaurant> listRestaurantVotedToday(){\r\n\t\tList<Restaurant> restaurantList = new LinkedList<Restaurant>();\r\n\t\tList<Vote> votingList = DataDAO.getVotingList();\r\n\t\tList<Vote> voteListResult = votingList.stream().filter(l -> l.getVotingDate().equals(DateUtil.asDate(LocalDate.now()))).collect(Collectors.toList());;\r\n\t\tvoteListResult.forEach(v -> restaurantList.add(v.getRestaurant()) );\r\n\t\treturn restaurantList;\r\n\t\t\r\n\t}", "public ArrayList<Question> getQuestionsSortedByDate() {\n \t\tArrayList<Question> sortedQuestions = this.getQuestions();\n \n \t\tCollections.sort(sortedQuestions, new DateComparator());\n \n \t\treturn sortedQuestions;\n \t}", "public List<ByDay> getByDay() {\n\t\treturn byDay;\n\t}", "private ArrayList<DateData> getDaysBetweenDates(Date startDate, Date endDate) {\n\n String language = UserDTO.getUserDTO().getLanguage();\n ArrayList<DateData> dataArrayList = new ArrayList<>();\n Calendar calendar = new GregorianCalendar();\n calendar.setTime(startDate);\n\n while (calendar.getTime().before(endDate)) {\n Date result = calendar.getTime();\n try {\n int day = Integer.parseInt((String) android.text.format.DateFormat.format(\"dd\", result));\n int month = Integer.parseInt((String) android.text.format.DateFormat.format(\"MM\", result));\n int year = Integer.parseInt((String) android.text.format.DateFormat.format(\"yyyy\", result));\n dataArrayList.add(new DateData(day, month, year, \"middle\"));\n calendar.add(Calendar.DATE, 1);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n int day = Integer.parseInt((String) android.text.format.DateFormat.format(\"dd\", endDate));\n int month = Integer.parseInt((String) android.text.format.DateFormat.format(\"MM\", endDate));\n int year = Integer.parseInt((String) android.text.format.DateFormat.format(\"yyyy\", endDate));\n if (language.equalsIgnoreCase(Constant.ENGLISH_LANGUAGE_CODE)) {\n dataArrayList.add(new DateData(day, month, year, \"right\"));\n } else {\n dataArrayList.add(new DateData(day, month, year, \"left\"));\n }\n\n DateData dateData = dataArrayList.get(0);\n if (language.equalsIgnoreCase(Constant.ENGLISH_LANGUAGE_CODE)) {\n dateData.setBackground(\"left\");\n\n } else {\n dateData.setBackground(\"right\");\n }\n dataArrayList.set(0, dateData);\n return dataArrayList;\n }", "@WebMethod public ArrayList<Event> getEvents(LocalDate date);", "public ReactorResult<java.util.Calendar> getAllDate_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), DATE, java.util.Calendar.class);\r\n\t}", "public static ArrayList<BHP> getBHPs(Resident resident, Date date) {\n// long begin = System.currentTimeMillis();\n EntityManager em = OPDE.createEM();\n ArrayList<BHP> listBHP = null;\n\n try {\n\n String jpql = \" SELECT bhp \" +\n \" FROM BHP bhp \" +\n \" WHERE bhp.resident = :resident AND bhp.prescription.situation IS NULL\" +\n \" AND bhp.soll >= :von AND bhp.soll <= :bis \";\n\n Query query = em.createQuery(jpql);\n\n LocalDate lDate = new LocalDate(date);\n query.setParameter(\"resident\", resident);\n query.setParameter(\"von\", lDate.toDateTimeAtStartOfDay().toDate());\n query.setParameter(\"bis\", SYSCalendar.eod(lDate).toDate());\n\n listBHP = new ArrayList<BHP>(query.getResultList());\n Collections.sort(listBHP);\n\n } catch (Exception se) {\n OPDE.fatal(se);\n } finally {\n em.close();\n }\n// SYSTools.showTimeDifference(begin);\n return listBHP;\n }", "@Test\n public void getBetweenDaysTest(){\n\n Date bDate = DateUtil.parse(\"2021-03-01\", DatePattern.NORM_DATE_PATTERN);//yyyy-MM-dd\n System.out.println(\"bDate = \" + bDate);\n Date eDate = DateUtil.parse(\"2021-03-15\", DatePattern.NORM_DATE_PATTERN);\n System.out.println(\"eDate = \" + eDate);\n List<DateTime> dateList = DateUtil.rangeToList(bDate, eDate, DateField.DAY_OF_YEAR);//创建日期范围生成器\n List<String> collect = dateList.stream().map(e -> e.toString(\"yyyy-MM-dd\")).collect(Collectors.toList());\n System.out.println(\"collect = \" + collect);\n\n }", "@Override\n\tpublic List<Historic_siteVO> datelist(Criteria cri) throws Exception {\n\t\treturn dao.datelist(cri);\n\t}", "public ObservableList<Date> getStudentDays(int studentID);", "public List<Integer> getByMonthDay() {\n\t\treturn byMonthDay;\n\t}", "static ArrayList splitDate(String date){\n Locale locale = Locale.getDefault();\n\n String[] tabDate = localDate(date).split(\" \");\n if(String.valueOf(locale).contains(\"en\")){\n return arrayDate(tabDate[0], tabDate[2], tabDate[1], tabDate[3]);\n }\n else{\n return arrayDate(tabDate[0], tabDate[1], tabDate[2], tabDate[3]);\n }\n }", "ImmutableList<SchemaOrgType> getDateCreatedList();", "java.util.List<org.landxml.schema.landXML11.RoadsideDocument.Roadside> getRoadsideList();", "private String[] getLast30Dates() {\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tString[] dates = new String[30];\n\t\tfor (int i=29; i>=0; i-- ) {\n\t\t\tdates[i] = String.valueOf(calendar.get(Calendar.MONTH)+1) + \"/\" + \n\t\t\t\t\tString.valueOf(calendar.get(Calendar.DATE)) + \"/\" + \n\t\t\t\t\tString.valueOf(calendar.get(Calendar.YEAR));\n\t\t\tcalendar.add(Calendar.DAY_OF_MONTH, -1);\n\t\t}\n\t\treturn dates;\n\t}", "public java.util.Calendar getDArrDate() {\n return dArrDate;\n }", "public List<Integer> getByYearDay() {\n\t\treturn byYearDay;\n\t}", "@Override\r\n\tpublic Student[] getBetweenBirthDates(Date firstDate, Date lastDate) {\n\t\treturn null;\r\n\t}", "private JSONArray findAll() throws ParseException, java.text.ParseException {\n\t\treturn (JSONArray) new JSONParser()\n\t\t\t\t.parse(new Gson().toJson(bookingDateRepository.findCampsiteVacancy()));\n\t}", "public List<String> getMonthsList(){\n Calendar now = Calendar.getInstance();\n int year = now.get(Calendar.YEAR);\n\n String months[] = {\"JANUARY\", \"FEBRUARY\", \"MARCH\", \"APRIL\",\n \"MAY\", \"JUNE\", \"JULY\", \"AUGUST\", \"SEPTEMBER\",\n \"OCTOBER\", \"NOVEMBER\", \"DECEMBER\"};\n\n List<String> mList = new ArrayList<>();\n\n //3 months of previous year to view the attendances\n for(int i=9; i<months.length; i++){\n mList.add(months[i]+\" \"+(year-1));\n }\n\n //Months of Current Year\n for(int i=0; i<=(now.get(Calendar.MONTH)); i++){\n mList.add(months[i]+\" \"+year);\n }\n\n return mList;\n }", "private void initDates() throws RIFCSException {\n NodeList nl = super.getElements(Constants.ELEMENT_DATE);\n\n for (int i = 0; i < nl.getLength(); i++) {\n dates.add(new DateWithTypeDateFormat(nl.item(i)));\n }\n }", "public ArrayList<Vehicle> get(LocalDate from,LocalDate to) {\n return vehicles;\n }", "public List<LocalDate> getWorkingDaysVacations(List<Vacation> vacationList) {\n\n List<LocalDate> listToReturn = new ArrayList<>();\n\n for (LocalDate date : getDaysBetweenDates(vacationList)) {\n\n if (dateDiffOfWeekend(date)) {\n\n listToReturn.add(date);\n }\n }\n return listToReturn;\n }", "public String[] getListaDinastie() {\n\t\treturn WikiImperatoriRomaniPagina.getInstance().getElencoDinastie();\n\t}", "@Override\r\n\tpublic int[] getDayPeople() {\n\t\tint[] result = new int[7];\r\n\t\tDate date = DateUtil.getCurrentDate();\r\n\t\tresult[0] = cinemaConditionDao.getDayCount(date);\r\n\t\tfor(int i=0;i<6;i++){\r\n\t\t\tdate = DateUtil.getDayBefore(date);\r\n\t\t\tresult[i+1] = cinemaConditionDao.getDayCount(date);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public Date212[] getNumbDates(int a){ //a is the number that signfies the dates passed in.\n // System.out.println(a+ \"a is\");\n Date212 myDates[] = new Date212[a]; //initalize it from the a.\n\n for(int d = 0; d< myTempDates.length; d++){ //that \"myTempDates\" array which holds the dates is used to copy it into the specified array.\n if(myTempDates[d] != null){ //if next index is not null then copy.\n myDates[d] = myTempDates[d];\n }\n }\n return myDates; //return the array to method calling it!\n }", "public List<String> getWorkOutDays() {\n SQLiteDatabase database = getReadableDatabase();\n SQLiteQueryBuilder queryBuilder = new SQLiteQueryBuilder();\n\n String[] sqlSelect = {DAY_COLUMN_NAME};\n\n queryBuilder.setTables(WORKOUT_DAYS_TABLE_NAME);\n\n Cursor cursor = queryBuilder.query(database, sqlSelect, null, null, null, null, null);\n\n List<String> workoutDays = new ArrayList<>();\n\n if (cursor.moveToFirst()) {\n do {\n workoutDays.add(cursor.getString(cursor.getColumnIndex(DAY_COLUMN_NAME)));\n } while (cursor.moveToNext());\n }\n\n return workoutDays;\n }", "public EventDates getEventDates() {\n return eventDates;\n }", "public Date[] getSelectedDates() {\r\n return calendarTable.getSelectedDates();\r\n }", "private void sortDateList(List<Date> dateList) {\n Collections.sort(dateList);\n }", "public List listAllByDate(Date minDate) {\n\t\treturn null;\n\t}", "public com.guidewire.datamodel.DatetimeorderingDocument.Datetimeordering[] getDatetimeorderingArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List targetList = new java.util.ArrayList();\r\n get_store().find_all_element_users(DATETIMEORDERING$2, targetList);\r\n com.guidewire.datamodel.DatetimeorderingDocument.Datetimeordering[] result = new com.guidewire.datamodel.DatetimeorderingDocument.Datetimeordering[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "public List<Integer> getBookedRooms(Date fromDate, Date toDate)\r\n {\r\n String fDate = DateFormat.getDateInstance(DateFormat.SHORT).format(fromDate);\r\n String tDate = DateFormat.getDateInstance(DateFormat.SHORT).format(toDate);\r\n \r\n List<Integer> bookedRooms = new LinkedList<>();\r\n \r\n Iterator<Booking> iter = bookings.iterator();\r\n \r\n while(iter.hasNext())\r\n {\r\n Booking booking = iter.next();\r\n String bookingFromDate = DateFormat.getDateInstance(DateFormat.SHORT).format\r\n (booking.getFromDate());\r\n \r\n String bookingToDate = DateFormat.getDateInstance(DateFormat.SHORT).format\r\n (booking.getToDate());\r\n \r\n if(!booking.getCancelled() && !(fDate.compareTo(bookingToDate) == 0) \r\n && fDate.compareTo(bookingToDate) <= 0 &&\r\n bookingFromDate.compareTo(fDate) <= 0 && bookingFromDate.compareTo(tDate) <= 0)\r\n { \r\n List<Integer> b = booking.getRoomNr();\r\n bookedRooms.addAll(b);\r\n }\r\n }// End of while\r\n \r\n return bookedRooms;\r\n }", "public List<Room> getReservedOn(LocalDate of) {\r\n\t\tList<Room> l= new ArrayList<>(new HashSet<Room>(this.roomRepository.findByReservationsIn(\r\n\t\t\t\tthis.reservationService.getFromTo(of, of))));\r\n\t\treturn l;\r\n\t}", "List<InsureUnitTrend> queryInsureDate();", "private void sortByDateOpen() {\r\n\t\tfor ( int i = 0; i < size-1; i++ ) {\r\n\t\t\tint minIndex = i; \r\n\t\t\tfor ( int j = i + 1; j < size; j++) { \r\n\t\t\t\t//returns -1 if the date is less than\r\n\t\t\t\tif ( accounts[j].getDateOpen().compareTo(accounts[minIndex].getDateOpen()) == -1 ) {\r\n\t\t\t\t\tminIndex = j;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tAccount temp = accounts[minIndex];\r\n\t\t\taccounts[minIndex] = accounts[i];\r\n\t\t\taccounts[i] = temp;\r\n\t\t}\r\n\t\treturn;\r\n\t}", "public static ArrayList<BHP> getOutcomeBHPs(Resident resident, LocalDate date) {\n// long begin = System.currentTimeMillis();\n EntityManager em = OPDE.createEM();\n ArrayList<BHP> listBHP = null;\n\n try {\n\n String jpql = \" SELECT bhp \" +\n \" FROM BHP bhp \" +\n \" WHERE bhp.resident = :resident AND bhp.outcome4 IS NOT NULL \" +\n \" AND bhp.soll >= :von AND bhp.soll <= :bis \";\n\n Query query = em.createQuery(jpql);\n\n query.setParameter(\"resident\", resident);\n query.setParameter(\"von\", date.toDateTimeAtStartOfDay().toDate());\n query.setParameter(\"bis\", SYSCalendar.eod(date).toDate());\n\n listBHP = new ArrayList<BHP>(query.getResultList());\n Collections.sort(listBHP);\n\n } catch (Exception se) {\n OPDE.fatal(se);\n } finally {\n em.close();\n }\n// SYSTools.showTimeDifference(begin);\n return listBHP;\n }", "public List<LocalDateTime> getAllTimes() {\n\t\tList<LocalDateTime> allTimes = new ArrayList<LocalDateTime>();\n\t\tallTimes.add(shiftStartTime);\n\t\tallTimes.add(bedtime);\n\t\tallTimes.add(shiftEndTime);\n\t\treturn allTimes;\n\t}", "@SuppressLint(\"SimpleDateFormat\")\n public static List<String> getDaysBetweenDates(String startDate, String endDate)\n throws ParseException {\n List<String> dates = new ArrayList<>();\n\n DateFormat df = new SimpleDateFormat(\"dd.MM.yyyy\");\n\n Calendar calendar = new GregorianCalendar();\n calendar.setTime(new SimpleDateFormat(\"dd.MM.yyyy\").parse(startDate));\n\n while (calendar.getTime().before(new SimpleDateFormat(\"dd.MM.yyyy\").parse(endDate)))\n {\n Date result = calendar.getTime();\n dates.add(df.format(result));\n calendar.add(Calendar.DATE, 1);\n }\n dates.add(endDate);\n return dates;\n }", "public List<LookUpDetailJson> getPayCycleList() {\r\n\t\tList<LookUpDetailJson> lookUpDetailJsonList = null;\r\n\t\ttry {\r\n\t\t\tCalendar cal = Calendar.getInstance();\r\n\t\t\tInteger currentMonth = cal.get(Calendar.MONTH);\r\n\t\t\tList<Integer> monthsRange = new ArrayList<Integer>();\r\n\t\t\tfor (int i = currentMonth, j = 0; j < 3; j++) {\r\n\t\t\t\tmonthsRange.add(i--);\r\n\t\t\t\tif (i < 0) {\r\n\t\t\t\t\ti = 11;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tmonthsRange.add(currentMonth + 1);\r\n\r\n\t\t\tList<LookUpDetails> lookUpDetailList = lookUpRepository.getPayCycleList(monthsRange);\r\n\t\t\tif (lookUpDetailList != null && lookUpDetailList.size() > 0) {\r\n\t\t\t\tlookUpDetailJsonList = new ArrayList<LookUpDetailJson>();\r\n\t\t\t\tfor (LookUpDetails lookUpDetails : lookUpDetailList) {\r\n\t\t\t\t\tlookUpDetailJsonList.add(TransformDomainToJson.getLookUpDetailJson(lookUpDetails));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tLOG.error(\"Error at getPayCycleList() in LookUpService:\" + e.getMessage());\r\n\t\t}\r\n\t\treturn lookUpDetailJsonList;\r\n\t}", "public String[] getStepDates() {\r\n HistoryStep[] steps = currentProcessInstance.getHistorySteps();\r\n String[] dates = new String[steps.length];\r\n Date date = null;\r\n \r\n for (int i = 0; i < steps.length; i++) {\r\n date = steps[i].getActionDate();\r\n dates[i] = DateUtil.getOutputDate(date, getLanguage());\r\n }\r\n \r\n return dates;\r\n }", "@Override\n\tpublic List<PatientSeanceDays> findAll() {\n\t\treturn repository.findAll();\n\t}", "public List<Viaje> getClientTravelsInPeriod(String clientNif, Date initDate, Date endDate) {\n EntityManager em = getEntityManager();\n return em.createNamedQuery(\"Viaje.getClientTravelsByDate\")\n .setParameter(\"clientNif\", clientNif)\n .setParameter(\"initDate\", initDate)\n .setParameter(\"endDate\", endDate).getResultList();\n }" ]
[ "0.71735466", "0.6933224", "0.65483654", "0.64266706", "0.630185", "0.62661105", "0.6243258", "0.6233838", "0.6158858", "0.6150694", "0.61150986", "0.6112268", "0.60705155", "0.6048961", "0.6027568", "0.59723747", "0.589712", "0.5885086", "0.58690715", "0.58625495", "0.5802346", "0.57591623", "0.57526934", "0.57323676", "0.5698841", "0.56906575", "0.56866574", "0.5679947", "0.5668651", "0.5655164", "0.564607", "0.5641411", "0.5633319", "0.5616685", "0.558276", "0.5558082", "0.5535399", "0.5516302", "0.5476811", "0.5455625", "0.54388446", "0.5437386", "0.5426297", "0.54232264", "0.5413951", "0.54127157", "0.54126203", "0.53896046", "0.5379227", "0.53692544", "0.53554004", "0.5343816", "0.53432876", "0.5341032", "0.5334621", "0.5327912", "0.5325999", "0.53208035", "0.5320108", "0.5298099", "0.5296588", "0.5274387", "0.5267101", "0.52653456", "0.5257803", "0.52482134", "0.5238179", "0.52352184", "0.52141154", "0.52063304", "0.5202895", "0.51978236", "0.519216", "0.5180226", "0.5174136", "0.5166675", "0.51391876", "0.51377314", "0.51247686", "0.51173395", "0.5112706", "0.51089907", "0.51084846", "0.5107043", "0.51057464", "0.5100282", "0.5091943", "0.5089999", "0.50803137", "0.507935", "0.5076194", "0.5075268", "0.50724405", "0.50717264", "0.5071329", "0.50677407", "0.50668526", "0.5055964", "0.5055853", "0.50498104" ]
0.8149934
0
/ Function for clustring The resources based on their Queuing Behaviour (FIFO, LIFO, Random(With given priorities))
public JDialog clusterQueue(Vector<ChartPanel> chart, ArrayList<ClustredObj> list, Vector<String> resource, String title, String type) { JDialog jd = new JDialog(); JPanel jPanel1 = new JPanel(); JLabel jLabel1 = new javax.swing.JLabel(); JPanel jPanel2 = new javax.swing.JPanel(); JScrollPane jScrollPane1 = new javax.swing.JScrollPane(); JTextArea jTextArea1 = new javax.swing.JTextArea(); JLabel jLabel2 = new javax.swing.JLabel(); String newLine = "\n"; javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 401, Short.MAX_VALUE).addComponent(chart.elementAt(0))); jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 245, Short.MAX_VALUE).addComponent(chart.elementAt(0))); jLabel1.setText("<html><h1>" + title + "</html></h1>"); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 420, Short.MAX_VALUE).addComponent(chart.elementAt(1))); jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 0, Short.MAX_VALUE).addComponent(chart.elementAt(1))); jTextArea1.setColumns(20); jTextArea1.setRows(5); jScrollPane1.setViewportView(jTextArea1); jTextArea1.setEditable(false); if (type.equals("Availability")) { jTextArea1.append("The total Number of resources is : " + resource.size()); jTextArea1.append(newLine); for (int i = 0; i < list.size(); i++) { jTextArea1.append(list.get(i).clusterName + " Contains " + list.get(i).datalist.size()); jTextArea1.append("==> Centroid (" + list.get(i).c.X() + " , " + list.get(i).c.Y()+ " , " + list.get(i).c.Z() + " )"); jTextArea1.append(newLine); if (list.get(i).datalist.size() != 0) { for (int j = 0; j < list.get(i).datalist.size(); j++) { jTextArea1.append(list.get(i).datalist.get(j).Name()); jTextArea1.append(" , "); } } else { jTextArea1.append("Empty Cluster"); } jTextArea1.append(newLine); jTextArea1.append(newLine); } } else { jTextArea1.append("The total Number of resources is : " + resource.size()); jTextArea1.append(newLine); for (int i = 0; i < list.size(); i++) { jTextArea1.append(list.get(i).clusterName + " Contains " + list.get(i).datalist.size()); jTextArea1.append("==> Centroid (" + list.get(i).c.X() + " , " + list.get(i).c.Y() + " , " + list.get(i).c.Z() + " ) :"); jTextArea1.append(newLine); if (list.get(i).datalist.size() != 0) { for (int j = 0; j < list.get(i).datalist.size(); j++) { jTextArea1.append(list.get(i).datalist.get(j).Name()); jTextArea1.append(" , "); } } else { jTextArea1.append("Empty Cluster"); } jTextArea1.append(newLine); jTextArea1.append(newLine); } } jLabel2.setText("Clusters Compositions"); jLabel2.setForeground(new java.awt.Color(0, 51, 255)); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(jd.getContentPane()); jd.getContentPane().setLayout(layout); layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout .createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 843, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout .createSequentialGroup().addContainerGap() .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup().addGap(305, 305, 305).addComponent(jLabel1)))) .addGroup(layout.createSequentialGroup().addGap(343, 343, 343).addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap(42, Short.MAX_VALUE))); layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup().addGap(26, 26, 26).addComponent(jLabel1).addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGap(18, 18, 18) .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 151, Short.MAX_VALUE) .addGap(12, 12, 12))); jd.pack(); //jd.setSize(1000, 1000); jd.setLocation(100, 100); jd.setLocationRelativeTo(null); jd.setVisible(true); return jd; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ActionSequenceQueue prioritize(ActionSequenceQueue actionSequences);", "@Test\n public void randomLockstep() {\n PriorityBlockingQueue pbq = new PriorityBlockingQueue();\n PriorityQueue pq = new PriorityQueue();\n List<Consumer<Queue>> frobbers = List.of(\n q -> q.add(42),\n q -> assertTrue(q.offer(86)),\n q -> q.poll(),\n q -> q.peek(),\n q -> {\n Iterator it = q.iterator();\n if (it.hasNext()) {\n it.next();\n it.remove();\n }});\n for (int i = 0; i < 100; i++) {\n Consumer<Queue> frobber = frobbers.get(rnd.nextInt(frobbers.size()));\n frobber.accept(pq);\n frobber.accept(pbq);\n assertInvariants(pbq);\n assertInvariants(pq);\n assertTrue(Arrays.equals(pq.toArray(), pbq.toArray()));\n }\n }", "public void acquire(PriorityQueue waitQueue) \n {\n waitQueue = null;\n donation = 0;\n lastEffectivePriority = -1; //Need to recalculate the effectivePriority as the leaving thread might take off its donation effects or \n //the thread is acquiring the resource and needs to calculate the effective priority for the first time.\n }", "public void queueUsage() {\n\t\t//use LinkedList as a queue\n\t\tQueue<String> q = new LinkedList<String>();\n\t\tq.add(\"1\");\n\t\tq.add(\"2\");\n\t\tq.add(\"3\");\n\t\tq.add(\"10\");\n\t\tq.add(\"11\");\n\t\tint[] a;\n\n\t\tLinkedBlockingQueue<String> bq = new LinkedBlockingQueue<String>();\n\t\t\n\t\t//ArrayBlockingQueue needs to set the size when created.\n\t\tArrayBlockingQueue<String> aq = new ArrayBlockingQueue<String>(100);\n\t\t\n\t\tPriorityBlockingQueue<String> pq = new PriorityBlockingQueue<String>();\n\t\t\n//\t\tDelayQueue<String> dq = new DelayQueue<String>(); \n\t\t\n\t}", "public static void selfTest() {\n System.out.println(\"+++Beginning tests for priority scheduler+++\");\n int numTests = 5;\n int count = 0;\n\n boolean machine_start_status = Machine.interrupt().disabled();\n Machine.interrupt().disable();\n\n PriorityScheduler p = new PriorityScheduler();\n\n ThreadQueue t = p.newThreadQueue(true);\n ThreadQueue t1 = p.newThreadQueue(true);\n ThreadQueue t2 = p.newThreadQueue(true);\n ThreadQueue masterQueue = p.newThreadQueue(true);\n\n KThread tOwn = new KThread();\n KThread t1Own = new KThread();\n KThread t2Own = new KThread();\n\n t.acquire(tOwn);\n t1.acquire(t1Own);\n t2.acquire(t2Own);\n\n\n for (int i = 0; i < 3; i++) {\n for (int j = 1; j <= 3; j++) {\n KThread curr = new KThread();\n\n if (i == 0)\n t.waitForAccess(curr);\n else if (i == 1)\n t1.waitForAccess(curr);\n else\n t2.waitForAccess(curr);\n\n p.setPriority(curr, j);\n }\n }\n\n KThread temp = new KThread();\n t.waitForAccess(temp);\n p.getThreadState(temp).setPriority(4);\n\n temp = new KThread();\n t1.waitForAccess(temp);\n p.getThreadState(temp).setPriority(5);\n\n temp = new KThread();\n t2.waitForAccess(temp);\n p.getThreadState(temp).setPriority(7);\n\n temp = new KThread();\n\n masterQueue.waitForAccess(tOwn);\n masterQueue.waitForAccess(t1Own);\n masterQueue.waitForAccess(t2Own);\n\n masterQueue.acquire(temp);\n\n System.out.println(\"master queue: \"); masterQueue.print();\n// System.out.println(\"t queue: \"); t.print();\n// System.out.println(\"t1 queue: \"); t1.print();\n// System.out.println(\"t2 queue: \"); t2.print();\n//\n// System.out.println(\"tOwn effective priority = \" + p.getThreadState(tOwn).getEffectivePriority() + \" and priority = \" + p.getThreadState(tOwn).getPriority());\n System.out.println(\"temp's effective priority = \" + p.getThreadState(temp).getEffectivePriority());\n\n System.out.println(\"After taking away max from master queue\");\n KThread temp1 = masterQueue.nextThread();\n masterQueue.print();\n System.out.println(\"temp's effective priority = \" + p.getThreadState(temp).getEffectivePriority() + \" and it's priority = \" + p.getThreadState(temp).getPriority());\n System.out.println(\"nextThread's effective priority = \" + p.getThreadState(temp1).getEffectivePriority());\n Machine.interrupt().restore(machine_start_status);\n// while(count < numTests) {\n// KThread toRun = new KThread(new PriSchedTest(count++));\n// System.out.println(toRun);\n// t.waitForAccess(toRun);\n// p.getThreadState(toRun).setPriority(numTests-count);\n// toRun.fork();\n// }\n// count = 0;\n// while(count++ < numTests) {\n// KThread next = t.nextThread();\n// Lib.assertTrue(p.getThreadState(next).getPriority() == numTests-count);\n// System.out.println(\"Priority is \" + p.getThreadState(next).getPriority());\n// }\n }", "public static void main(String[] args) {\n Container<String> queue = new Container<>(7);\n Producer p1 = new Producer(queue, 3);\n Thread t1 = new Thread(p1);\n t1.setName(\"p1\");\n Producer p2 = new Producer(queue, 20);\n Thread t2 = new Thread(p2);\n t2.setName(\"p2\");\n Consumer c1 = new Consumer(queue, 3);\n Thread t3 = new Thread(c1);\n t3.setName(\"c1\");\n Consumer c2 = new Consumer(queue, 29);\n Thread t4 = new Thread(c2);\n t4.setName(\"c2\");\n\n Producer p3 = new Producer(queue, 10);\n Thread t5 = new Thread(p3);\n t5.setName(\"p5\");\n\n Consumer c3 = new Consumer(queue, 1);\n Thread t6 = new Thread(c3);\n t6.setName(\"c3\");\n\n t3.start();\n t4.start();\n t6.start();\n t1.start();\n t2.start();\n t5.start();\n\n }", "private void initializePriorities()\n {\n try\n {\n this.resourcePriorityAvailable =\n Integer.parseInt(parentProvider.getAccountID()\n .getAccountPropertyString(\n ProtocolProviderFactory.RESOURCE_PRIORITY));\n }\n catch(NumberFormatException ex)\n {\n logger.error(\"Wrong value for resource priority\", ex);\n }\n\n addDefaultValue(JabberStatusEnum.AWAY, -5);\n addDefaultValue(JabberStatusEnum.EXTENDED_AWAY, -10);\n addDefaultValue(JabberStatusEnum.ON_THE_PHONE, -15);\n addDefaultValue(JabberStatusEnum.IN_A_MEETING, -16);\n addDefaultValue(JabberStatusEnum.DO_NOT_DISTURB, -20);\n addDefaultValue(JabberStatusEnum.FREE_FOR_CHAT, +5);\n }", "public static void main(String[] args) {\n FirstComeFirstServed FCFS = new FirstComeFirstServed();\n\n ShortestJobFirst SJF = new ShortestJobFirst();\n ShortestRemainingTime SRT = new ShortestRemainingTime();\n RoundRobin RR = new RoundRobin();\n NonpreemptiveHighestPriorityFirst NP_HPF = new NonpreemptiveHighestPriorityFirst();\n PreemptiveHighestPriorityFirst P_HPF = new PreemptiveHighestPriorityFirst();\n NonpreemptiveHighestPriorityFirstAging NP_HPF_AG = new NonpreemptiveHighestPriorityFirstAging();\n PreemptiveHighestPriorityFirstAging P_HPF_AG = new PreemptiveHighestPriorityFirstAging();\n\n\n PriorityQueue<Process>[] priorityQueues = new PriorityQueue[COUNT_ALGORITHM + 1];\n int [] SEEDS = new int[]{1234, 117777,33317,17111, 19191};\n\n for (int j = 0; j < ROUND; j++) {\n System.out.format(\"\\n### Start Running Round %d ###\\n\", j);\n // write your code here\n priorityQueues[0] = ProcessGenerator.generateJobs (SEEDS[j], 20);\n\n // make a copy for each algorithm\n for (int i = 1; i < COUNT_ALGORITHM + 1; i++) {\n priorityQueues[i] = new PriorityQueue<Process>(priorityQueues[0]);\n }\n\n // print the process list in ascending order\n while (!priorityQueues[COUNT_ALGORITHM].isEmpty()) {\n System.out.println(priorityQueues[COUNT_ALGORITHM].poll());\n }\n\n\n // Add different scheduling algorithms here\n System.out.println(\"\\nFisrt come first servered\");\n FCFS.schedule(priorityQueues[0]);\n\n System.out.println(\"\\nShortest Job First\");\n SJF.schedule(priorityQueues[1]);\n\n System.out.println(\"\\nShortest remaining time\");\n SRT.schedule(priorityQueues[2]);\n System.out.println(\"\\nRoundRobin\");\n RR.schedule(priorityQueues[4]);\n\n System.out.println(\"\\nNonpreemptive Highest Priority First\");\n NP_HPF.schedule(priorityQueues[5]);\n\n System.out.println(\"\\nNonpreemptive Highest Priority First (Aging)\");\n NP_HPF_AG.schedule(priorityQueues[6]);\n\n System.out.println(\"\\nPreemptive Highest Priority First\");\n P_HPF.schedule(priorityQueues[7]);\n\n System.out.println(\"\\nPreemptive Highest Priority First (Aging)\");\n P_HPF_AG.schedule(priorityQueues[8]);\n\n\n }\n\n\n System.out.println(\"\\n\");\n System.out.format(\"==================== 5 Round Average Statistics ====================\\n\");\n System.out.format(\"%10s %20s %20s %20s\\n\", \"Algorithm\", \"Turnaround\", \"Waiting\", \"Response\");\n System.out.format(\"%10s %20.3f %20.3f %20.3f\\n\", \"FCFS\",\n FCFS.getStats().getAvgTurnaroundTime(),\n FCFS.getStats().getAvgWaitingTime(),\n FCFS.getStats().getAvgResponseTime());\n\n\n System.out.format(\"%10s %20.3f %20.3f %20.3f\\n\", \"SJF\",\n SJF.getStats().getAvgTurnaroundTime(),\n SJF.getStats().getAvgWaitingTime(),\n SJF.getStats().getAvgResponseTime());\n\n System.out.format(\"%10s %20.3f %20.3f %20.3f\\n\", \"SRT\",\n SRT.getStats().getAvgTurnaroundTime(),\n SRT.getStats().getAvgWaitingTime(),\n SRT.getStats().getAvgResponseTime());\n\n System.out.format(\"%10s %20.3f %20.3f %20.3f\\n\", \"RR\",\n RR.getStats().getAvgTurnaroundTime(),\n RR.getStats().getAvgWaitingTime(),\n RR.getStats().getAvgResponseTime());\n\n System.out.format(\"%10s %20.3f %20.3f %20.3f\\n\", \"SJF\",\n SJF.getStats().getAvgTurnaroundTime(),\n SJF.getStats().getAvgWaitingTime(),\n SJF.getStats().getAvgResponseTime());\n\n\n System.out.format(\"%10s %20.3f %20.3f %20.3f\\n\", \"NP_HPF\",\n NP_HPF.getStats().getAvgTurnaroundTime(),\n NP_HPF.getStats().getAvgWaitingTime(),\n NP_HPF.getStats().getAvgResponseTime());\n\n System.out.format(\"%10s %20.3f %20.3f %20.3f\\n\", \"P_HPF\",\n P_HPF.getStats().getAvgTurnaroundTime(),\n P_HPF.getStats().getAvgWaitingTime(),\n P_HPF.getStats().getAvgResponseTime());\n\n System.out.format(\"%10s %20.3f %20.3f %20.3f\\n\", \"NP_HPF_AG\",\n NP_HPF_AG.getStats().getAvgTurnaroundTime(),\n NP_HPF_AG.getStats().getAvgWaitingTime(),\n NP_HPF_AG.getStats().getAvgResponseTime());\n\n System.out.format(\"%10s %20.3f %20.3f %20.3f\\n\", \"P_HPF_AG\",\n P_HPF_AG.getStats().getAvgTurnaroundTime(),\n P_HPF_AG.getStats().getAvgWaitingTime(),\n P_HPF_AG.getStats().getAvgResponseTime());\n\n }", "public void testPrioritizeContention() throws Exception\n {\n ResourceContentionManager rcm = rezmgr.getContentionManager();\n\n // Handler impl used for testing...\n class Handler implements ResourceContentionHandler\n {\n public boolean called = false;\n\n public int ret = 1;\n\n public ResourceUsage req = null;\n\n public ResourceUsage[] own = null;\n\n public String proxy = null;\n\n public void reset(int ret)\n {\n this.ret = ret;\n called = false;\n req = null;\n own = null;\n proxy = null;\n }\n\n /**\n * Returns based on value of <i>ret</i>.\n * <ol>\n * <li>-1 then null\n * <li>0 then [0]\n * <li>1 then [owners.length] with requester at front\n * </ol>\n */\n public ResourceUsage[] resolveResourceContention(ResourceUsage requester, ResourceUsage owners[])\n {\n called = true;\n req = requester;\n own = owners;\n\n if (ret == -1)\n return null;\n else if (ret == 0)\n return new ResourceUsage[0];\n else\n {\n ResourceUsage[] prior = new ResourceUsage[owners.length];\n prior[0] = requester;\n System.arraycopy(owners, 0, prior, 1, owners.length - 1);\n return prior;\n }\n }\n\n public void resourceContentionWarning(ResourceUsage newRequest, ResourceUsage[] currentReservations)\n {\n // does nothing for now\n }\n\n }\n ResourceManager.Client client = new ResourceManager.Client(new DummyClient(), new Proxy(),\n new ResourceUsageImpl(new AppID(1, 4), 1), new Context(new AppID(1, 4)));\n ResourceManager.Client clients[] = {\n new ResourceManager.Client(new DummyClient(), new Proxy(), new ResourceUsageImpl(new AppID(2, 2), 2),\n new Context(new AppID(2, 2))),\n new ResourceManager.Client(new DummyClient(), new Proxy(), new ResourceUsageImpl(new AppID(1, 1), 1),\n new Context(new AppID(1, 1))),\n new ResourceManager.Client(new DummyClient(), new Proxy(), new ResourceUsageImpl(new AppID(4, 4), 4),\n new Context(new AppID(4, 4))),\n new ResourceManager.Client(new DummyClient(), new Proxy(), new ResourceUsageImpl(new AppID(3, 3), 3),\n new Context(new AppID(3, 3))),\n new ResourceManager.Client(new DummyClient(), new Proxy(), new ResourceUsageImpl(new AppID(2, 2), 2),\n new Context(new AppID(2, 2))),\n new ResourceManager.Client(new DummyClient(), new Proxy(), new ResourceUsageImpl(new AppID(4, 5), 4),\n new Context(new AppID(4, 5))),\n new ResourceManager.Client(new DummyClient(), new Proxy(), new ResourceUsageImpl(new AppID(5, 5), 5),\n new Context(new AppID(5, 5))),\n new ResourceManager.Client(new DummyClient(), new Proxy(), new ResourceUsageImpl(new AppID(4, 3), 4),\n new Context(new AppID(4, 3))), };\n ResourceUsage usages[] = new ResourceUsage[clients.length];\n for (int i = 0; i < clients.length; ++i)\n usages[i] = clients[i].resusage;\n\n try\n {\n ResourceManager.Client[] prioritized;\n\n // Call with null handler\n int r = 0;\n prioritized = rezmgr.prioritizeContention(client, clients);\n assertNotNull(\"Should not return null (given no handler)\", prioritized);\n assertEquals(\"Unexpected array size (given no handler)\", clients.length + 1, prioritized.length);\n int last = 256;\n for (int i = 0; i < prioritized.length; ++i)\n System.out.println(((Context) prioritized[i].context).priority + \" \"\n + position(clients, prioritized[i]));\n for (int i = 0; i < prioritized.length; ++i)\n {\n int prior = prioritized[i].getUsagePriority();\n assertTrue(\"Expected sorted by priority (given no handler) [\" + i + \"]\", last >= prior);\n // If same priority as last, verify that ordering is correct\n // Current definition is to go based upon original order in\n // owner list\n if (last == prior)\n {\n assertTrue(\"Expected equal priority to maintin existing order\",\n position(clients, prioritized[i]) > position(clients, prioritized[i - 1]));\n }\n\n last = prior;\n }\n\n // Add Handler\n Handler handler = new Handler();\n rcm.setResourceContentionHandler(handler);\n\n // Expect manager to prioritize\n handler.reset(-1);\n r = 1;\n prioritized = rezmgr.prioritizeContention(client, clients);\n assertTrue(\"Expected handler to be called\", handler.called);\n assertSame(\"Expected given requester to be used\", client.resusage, handler.req);\n assertNotNull(\"Expected owners array to be non-null\", handler.own);\n assertEquals(\"Expected owners length to be same as specified\", clients.length, handler.own.length);\n for (int i = 0; i < clients.length; ++i)\n assertEquals(\"Unexpected owner id passed to handler\", usages[i], handler.own[i]);\n assertNotNull(\"Should not return null (given null)\", prioritized);\n assertEquals(\"Unexpected array size (given null)\", clients.length + 1, prioritized.length);\n last = 256;\n for (int i = 0; i < prioritized.length; ++i)\n {\n int prior = prioritized[i].getUsagePriority();\n assertTrue(\"Expected sorted by priority (given null) [\" + i + \"]\", last >= prior);\n last = prior;\n }\n\n // Expect empty array\n handler.reset(0);\n r = 2;\n prioritized = rezmgr.prioritizeContention(client, clients);\n assertTrue(\"Expected handler to be called\", handler.called);\n assertSame(\"Expected given requester to be used\", client.resusage, handler.req);\n assertNotNull(\"Expected owners array to be non-null\", handler.own);\n assertEquals(\"Expected owners length to be same as specified\", clients.length, handler.own.length);\n for (int i = 0; i < clients.length; ++i)\n assertEquals(\"Unexpected owner id passed to handler\", usages[i], handler.own[i]);\n assertNotNull(\"Should not return null (given 0)\", prioritized);\n assertEquals(\"Unexpected array size (given 0)\", 0, prioritized.length);\n\n // Expect specified array\n handler.reset(1);\n r = 3;\n prioritized = rezmgr.prioritizeContention(client, clients);\n assertTrue(\"Expected handler to be called\", handler.called);\n assertSame(\"Expected given requester to be used\", client.resusage, handler.req);\n assertNotNull(\"Expected owners array to be non-null\", handler.own);\n assertEquals(\"Expected owners length to be same as specified\", clients.length, handler.own.length);\n for (int i = 0; i < clients.length; ++i)\n assertEquals(\"Unexpected owner id passed to handler\", usages[i], handler.own[i]);\n assertNotNull(\"Should not return null\", prioritized);\n assertEquals(\"Unexpected array size\", clients.length, prioritized.length);\n assertEquals(\"Unexpected array entry [0]\", client, prioritized[0]);\n // Actually, just expect to be sorted by AppID\n // When we have same AppID, might be reordered...\n // Let's assign priority numbers to each AppID...\n // And then make sure that clients are sorted accordingly\n // !!! Minor issue here... is if AppID is represented more than once\n // in array returned by handler... which one is used to specify\n // priority?\n // First position or last? Here we assume last.\n // TODO (TomH) Resolve with new resource contention\n /*\n * Hashtable idprior = new Hashtable(); for(int i = 0; i <\n * handler.own.length; ++i) idprior.put(handler.own[i].getAppID(),\n * new Integer(handler.own.length-i)); last = handler.own.length+1;\n * for(int i = 1; i < prioritized.length; ++i) { Integer p =\n * (Integer)idprior.get(((Context)prioritized[i].context).id);\n * assertNotNull(\"AppID wasn't passed to handler to begin with\", p);\n * int prior = p.intValue();\n * assertTrue(\"Expected clients to be in priority order\", last >=\n * prior); last = prior; }\n */\n\n // Replace the handler\n Handler replace = new Handler();\n rcm.setResourceContentionHandler(replace);\n handler.reset(0);\n replace.reset(0);\n prioritized = rezmgr.prioritizeContention(client, clients);\n assertTrue(\"Replacement handler should be called\", replace.called);\n assertFalse(\"Original handler should NOT be called\", handler.called);\n handler = replace;\n\n // Check for empty owners\n handler.reset(-1);\n prioritized = rezmgr.prioritizeContention(client, new ResourceManager.Client[0]);\n assertTrue(\"Expected handler to be called\", handler.called);\n assertTrue(\"Expected empty owners\", handler.own.length == 0);\n assertNotNull(\"Should not return null (no owners)\", prioritized);\n assertEquals(\"Unexpected array size (no owners)\", 1, prioritized.length);\n assertEquals(\"Unexpected entry (no owners)\", client, prioritized[0]);\n\n // Remove the handler\n rcm.setResourceContentionHandler(null);\n handler.reset(0);\n prioritized = rezmgr.prioritizeContention(client, clients);\n assertFalse(\"Handler was removed, should not be called\", handler.called);\n assertNotNull(\"Should not return null (removed)\", prioritized);\n assertEquals(\"Unexpected array size (removed)\", clients.length + 1, prioritized.length);\n last = 256;\n for (int i = 0; i < prioritized.length; ++i)\n {\n int prior = prioritized[i].getUsagePriority();\n assertTrue(\"Expected sorted by priority (removed) [\" + i + \"]\", last >= prior);\n last = prior;\n }\n }\n finally\n {\n // Clear handler\n rcm.setResourceContentionHandler(null);\n }\n\n }", "void initWantedByOrder(ResourceClass rc);", "public static void main(String[] args) {\n ArrayList<String> list=new ArrayList<>();\n list.add(\"1\");\n list.add(\"2\");\n list.add(\"3\");\n list.add(\"4\");\n list.add(\"5\");\n list.remove(\"2\");\n PriorityBlockingQueue priorityBlockingQueue=new PriorityBlockingQueue(100, new Comparator() {\n @Override\n public int compare(Object o1, Object o2) {\n return 0;\n }\n });\n }", "private static void addDataToQueue(Queue<Customer> customerPriorityQueue) {\r\n\t\tRandom rand = new Random();\r\n\t\tfor (int i = 0; i < 7; i++) {\r\n\t\t\tint id = rand.nextInt(100);\r\n\t\t\tcustomerPriorityQueue.add(new Customer(id, \"Pankaj \" + id));\r\n\t\t}\r\n\t}", "private void assignResourcesToJobs\n\t\t(long now)\n\t\tthrows IOException\n\t\t{\n\t\t// List of jobs to be canceled.\n\t\tList<JobInfo> cancelList = new LinkedList<JobInfo>();\n\n\t\t// Decide what to do with each waiting job.\n\t\tIterator<JobInfo> iter = myWaitingJobList.iterator();\n\t\tjobLoop : while (iter.hasNext())\n\t\t\t{\n\t\t\tJobInfo jobinfo = iter.next();\n\n\t\t\t// If the cluster doesn't have enough resources, don't try to\n\t\t\t// reserve any.\n\t\t\tif (! enoughResourcesForJob (jobinfo.Nn, jobinfo.Np, jobinfo.Nt))\n\t\t\t\t{\n\t\t\t\titer.remove();\n\t\t\t\tcancelList.add (jobinfo);\n\t\t\t\tcontinue jobLoop;\n\t\t\t\t}\n\n\t\t\t// Used to decide how many processes for each node.\n\t\t\tint Np_div_Nn = jobinfo.Np / jobinfo.Nn;\n\t\t\tint Np_rem_Nn = jobinfo.Np % jobinfo.Nn;\n\n\t\t\t// Reserve idle nodes for this job until there are no more idle\n\t\t\t// nodes or this job has all the nodes it needs.\n\t\t\tint be = myNextBackendNumber;\n\t\t\tdo\n\t\t\t\t{\n\t\t\t\t// Decide how many processes for this node.\n\t\t\t\tint Nproc = Np_div_Nn;\n\t\t\t\tif (jobinfo.nodeCount < Np_rem_Nn) ++ Nproc;\n\n\t\t\t\t// Reserve this node only if it is idle and it has enough CPUs.\n\t\t\t\tBackendInfo backendinfo = myBackendInfo[be];\n\t\t\t\tif (backendinfo.state == BackendInfo.State.IDLE &&\n\t\t\t\t\t\tbackendinfo.totalCpus >= Nproc)\n\t\t\t\t\t{\n\t\t\t\t\t// Reserve node.\n\t\t\t\t\tbackendinfo.state = BackendInfo.State.RESERVED;\n\t\t\t\t\tbackendinfo.stateTime = now;\n\t\t\t\t\tbackendinfo.job = jobinfo;\n\n\t\t\t\t\t// Used to decide how many CPUs for each process.\n\t\t\t\t\tint Nt_div_Nproc = backendinfo.totalCpus / Nproc;\n\t\t\t\t\tint Nt_rem_Nproc = backendinfo.totalCpus % Nproc;\n\n\t\t\t\t\t// Assign Np processes.\n\t\t\t\t\tfor (int i = 0; i < Nproc; ++ i)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t// Decide how many CPUs for this process.\n\t\t\t\t\t\tint Ncpus = jobinfo.Nt;\n\t\t\t\t\t\tif (Ncpus == 0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tNcpus = Nt_div_Nproc;\n\t\t\t\t\t\t\tif (i < Nt_rem_Nproc) ++ Ncpus;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Log information.\n\t\t\t\t\t\tmyLog.log\n\t\t\t\t\t\t\t(now,\n\t\t\t\t\t\t\t \"Job \" + jobinfo.jobnum + \" assigned \" +\n\t\t\t\t\t\t\t backendinfo.name + \", rank=\" + jobinfo.count +\n\t\t\t\t\t\t\t \", CPUs=\" + Ncpus);\n\n\t\t\t\t\t\t// Record information about process.\n\t\t\t\t\t\tjobinfo.backend[jobinfo.count] = backendinfo;\n\t\t\t\t\t\tjobinfo.cpus[jobinfo.count] = Ncpus;\n\t\t\t\t\t\t++ jobinfo.count;\n\n\t\t\t\t\t\t// Inform Job Frontend.\n\t\t\t\t\t\tjobinfo.frontend.assignBackend\n\t\t\t\t\t\t\t(/*theJobScheduler*/ this,\n\t\t\t\t\t\t\t /*name */ backendinfo.name,\n\t\t\t\t\t\t\t /*host */ backendinfo.host,\n\t\t\t\t\t\t\t /*jvm */ backendinfo.jvm,\n\t\t\t\t\t\t\t /*classpath */ backendinfo.classpath,\n\t\t\t\t\t\t\t /*jvmflags */ backendinfo.jvmflags,\n\t\t\t\t\t\t\t /*Nt */ Ncpus);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t// Assign one node.\n\t\t\t\t\t++ jobinfo.nodeCount;\n\t\t\t\t\t}\n\n\t\t\t\t// Consider next node.\n\t\t\t\tbe = (be + 1) % myBackendCount;\n\t\t\t\t}\n\t\t\twhile (be != myNextBackendNumber && jobinfo.count < jobinfo.Np);\n\t\t\tmyNextBackendNumber = be;\n\n\t\t\t// If this job now has Np processes, start running this job.\n\t\t\tif (jobinfo.count == jobinfo.Np)\n\t\t\t\t{\n\t\t\t\t// Log information.\n\t\t\t\tmyLog.log (now, \"Job \" + jobinfo.jobnum + \" started\");\n\n\t\t\t\t// Mark job as running.\n\t\t\t\titer.remove();\n\t\t\t\tmyRunningJobList.add (jobinfo);\n\t\t\t\tjobinfo.state = JobInfo.State.RUNNING;\n\t\t\t\tjobinfo.stateTime = now;\n\n\t\t\t\t// Mark all the job's nodes as running.\n\t\t\t\tfor (BackendInfo backendinfo : jobinfo.backend)\n\t\t\t\t\t{\n\t\t\t\t\tbackendinfo.state = BackendInfo.State.RUNNING;\n\t\t\t\t\tbackendinfo.stateTime = now;\n\t\t\t\t\t}\n\n\t\t\t\t// If the Job Scheduler is imposing a maximum job time, start\n\t\t\t\t// job timer.\n\t\t\t\tif (myJobTime > 0)\n\t\t\t\t\t{\n\t\t\t\t\tjobinfo.jobTimer.start (myJobTime * 1000L);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t// If this job does not yet have Np processes, don't schedule any\n\t\t\t// further jobs.\n\t\t\telse\n\t\t\t\t{\n\t\t\t\tbreak jobLoop;\n\t\t\t\t}\n\t\t\t}\n\n\t\t// Cancel jobs for which there are insufficient resources.\n\t\tfor (JobInfo jobinfo : cancelList)\n\t\t\t{\n\t\t\tdoCancelJobTooFewResources (now, jobinfo);\n\t\t\t}\n\t\t}", "public void run (){\n String currThrdId = new String (\"\");\n try {\n stats.getAndAdd(ConcurrentTest.cb.getNumberWaiting());\n currThrdId = new Long(Thread.currentThread().getId()).toString(); \n tArray.add(currThrdId);\n ConcurrentTest.cb.await(); \n } catch (InterruptedException e) {\n ConcurrentTest.log.add(\"Failed to wait all starting threads, stage 1!\");\n ConcurrentTest.failed = true;\n } catch (BrokenBarrierException e) {\n ConcurrentTest.log.add(\"Failed to wait all starting threads, stage 1!\");\n ConcurrentTest.failed = true;\n }\n \n if (ConcurrentTest.cb.isBroken()){\n ConcurrentTest.log.add(\"Failed to wait all starting threads!\");\n ConcurrentTest.failed = true;\n }\n \n // The task for thread: try to find its name for 100 exchange operations\n int counter = rm.nextInt(300)+100;\n try {\n Thread.sleep(rm.nextInt(100)+1);\n } catch (InterruptedException e1) {\n ConcurrentTest.failed = true;\n }\n String thrdId = tArray.remove(0); \n while (counter > 0){\n if (thrdId == currThrdId){\n break;\n }\n try {\n thrdId = exch.exchange(thrdId, rm.nextInt(100)+1, TimeUnit.MILLISECONDS);\n } catch (InterruptedException e) {\n ConcurrentTest.failed = true;\n } catch (TimeoutException e) {\n // Expected\n }\n counter--;\n }\n //System.out.println(counter);\n\n try {\n stats.getAndAdd(ConcurrentTest.cb.getNumberWaiting());\n ConcurrentTest.cb.await();\n } catch (InterruptedException e) {\n ConcurrentTest.log.add(\"Failed to wait all starting threads, stage 1!\");\n ConcurrentTest.failed = true;\n } catch (BrokenBarrierException e) {\n ConcurrentTest.log.add(\"Failed to wait all starting threads, stage 1!\");\n ConcurrentTest.failed = true;\n }\n\n // Stage 2: test PriorityBlockingQueue \n //devide threads to sending and receiving\n // to thread: Who are you - sender or receiver?\n counter = rm.nextInt(100);\n int threadChoice = rm.nextInt(2);\n if (threadChoice == 0){\n while (counter > 0){\n //emit into queue\n String toQue = \"Que_\" + new Long(Thread.currentThread().getId()).toString() + \"_\" + rm.nextInt(100);\n if (counter == 50){\n // process one exception\n toQue = null;\n }\n try{\n bQue.put(toQue);\n }catch(NullPointerException e){\n // Expected\n }\n counter--;\n //System.out.println(\"Emmited \" + counter);\n }\n } else{\n while (counter > 0){\n //read from queue\n try {\n bQue.poll(rm.nextInt(100)+1, TimeUnit.MILLISECONDS);\n } catch (InterruptedException e) {\n ConcurrentTest.failed = true;\n }\n counter--;\n //System.out.println(\"Read \" + counter);\n }\n }\n \n try {\n stats.getAndAdd(ConcurrentTest.cb.getNumberWaiting());\n ConcurrentTest.cb.await();\n } catch (InterruptedException e) {\n ConcurrentTest.log.add(\"Failed to wait all starting threads, stage 2!\");\n ConcurrentTest.failed = true;\n } catch (BrokenBarrierException e) {\n ConcurrentTest.log.add(\"Failed to wait all starting threads, stage 2!\");\n ConcurrentTest.failed = true;\n }\n\n // Stage 3: test Semaphore \n // limit Semathor with 1/3 of number of threads\n // replaced doing something with rundomized time thread sleep\n // sm is located in ConcurrentTest bacause we need to initialize it\n // with 1/3 number of threads\n counter = 1000;\n while (counter > 0){\n try {\n stats.getAndAdd(ConcurrentTest.sm.availablePermits());\n ConcurrentTest.sm.acquire();\n //System.out.println(\"in\");\n } catch (InterruptedException e) {\n ConcurrentTest.log.add(\"Some thread is interrupted, stage 3!\");\n ConcurrentTest.failed = true;\n }\n \n try {\n Thread.currentThread().sleep(rm.nextInt(5)+1);\n } catch (InterruptedException e) {\n ConcurrentTest.log.add(\"Some thread is interrupted, stage 3!\");\n //ConcurrentTest.failed = true;\n }\n \n stats.getAndAdd(ConcurrentTest.sm.getQueueLength());\n ConcurrentTest.sm.release();\n //System.out.println(\"out\");\n counter--; \n }\n\n // final actions\n if (ConcurrentTest.cb.isBroken()){\n ConcurrentTest.log.add(\"Failed to wait all starting threads, final!\");\n ConcurrentTest.failed = true;\n }\n \n ConcurrentTest.cb.reset();\n }", "@Override\n protected List<CriticalNode<N>> constructQueues(Collection<N> allNodes, Collection<L> allLinks, Collection<List<N>> allPaths, GraphPathsData<N> graphPathsData) {\n List<Pair<List<N>, PathLength>> pathWithLengthPairs = GraphPathsData.computeLengthsOfPaths(\n lengthComputer, allPaths, allNodes, allLinks, false\n );\n Map<N, Integer> nodeToLengthOfCriticalPathFromBegin = pathWithLengthPairs.stream().collect(Collectors.toMap(\n //Key = first node of path\n pathWithLengthFromBegin -> CollectionUtils.getLastOrNull(pathWithLengthFromBegin.first),\n //Value = length of path in weight\n pathWithLengthFromBegin -> pathWithLengthFromBegin.second.inNumberOfNodes\n ));\n\n return graphPathsData.pathsWithLengths.stream()\n //Map pair {path, pathLength} to pair {{path, pathLength}, coherence}\n .map(pathWithLengthPair -> Pair.create(\n pathWithLengthPair,\n CoherenceComputer.getCoherence(CollectionUtils.getFirstOrNull(pathWithLengthPair.first), allLinks)\n ))\n //Sort paths\n .sorted(\n //Sort by coherence\n Comparator.<Pair<Pair<List<N>, PathLength>, Integer>, Integer>comparing(Pair::getSecond)\n //Max first\n .reversed()\n //If equal coherence - sort by number of nodes left to beginning of graph\n .thenComparing(\n pathWithLengthPairWithCoherencePair ->\n nodeToLengthOfCriticalPathFromBegin.get(\n CollectionUtils.getFirstOrNull(\n pathWithLengthPairWithCoherencePair.first.first\n )\n )\n )\n )\n //pair {{path, lengthOfPath}, coherence} -> CriticalNode(firstNodeOfPath, {coherence, lengthOfPathInNumberOfNodes})\n .map(pathWithLengthPairWithCoherencePair -> new CriticalNode<>(\n CollectionUtils.getFirstOrNull(pathWithLengthPairWithCoherencePair.first.first),\n new Tuple<>(\n pathWithLengthPairWithCoherencePair.second,\n nodeToLengthOfCriticalPathFromBegin.get(\n CollectionUtils.getFirstOrNull(\n pathWithLengthPairWithCoherencePair.first.first\n )\n )\n )\n ))\n .collect(Collectors.toList());\n }", "public RandomizedQueue() { }", "public static void main(String[] args) {\n\t\tCreate_queue new_queue= new Create_queue();\n\t\tnew_queue.enqueu(12);\n\t\tnew_queue.enqueu(5);\n\t\tnew_queue.enqueu(36);\n\t\tnew_queue.enqueu(5);\n\t\tSystem.out.println(new_queue);\n\t\tnew_queue.dequeu();\n\t\tSystem.out.println(new_queue);\n\t\tnew_queue.enqueu(10);\n\t\tnew_queue.enqueu(8);\n\t\tnew_queue.enqueu(2);\n\t\tnew_queue.enqueu(14);\n\t\tSystem.out.println(new_queue);\n\t\tnew_queue.dequeu();\n\t\tnew_queue.dequeu();\n\t\tSystem.out.println(new_queue);\n\t\tSystem.out.println(new_queue);\n\t\tnew_queue.enqueu(32);\n\t\tnew_queue.enqueu(11);\n\t\tnew_queue.enqueu(21);\n\t\tnew_queue.enqueu(44);\n\t\tnew_queue.enqueu(46);\n\t\tSystem.out.println(new_queue);\n\t\tnew_queue.enqueu(50);\n\t\tSystem.out.println(new_queue);\n\t\tnew_queue.dequeu();\n\t\tSystem.out.println(new_queue);\n\t\tnew_queue.enqueu(100);\n\t\tSystem.out.println(new_queue);\n\t\tSystem.out.println(new_queue.peek());\n\t\tnew_queue.dequeu();\n\t\tSystem.out.println(new_queue.peek());\n\t\t\n\t\t\n\t}", "PCThreads(int concurrency, Buffer _myBuffer){\n switch(concurrency){\n case 1: // little concurrency initialization\n numOfProducers=_littleP;\n numOfConsumers=_littleC;\n break;\n case 2: // average concurrency initialization\n numOfProducers=_averageP;\n numOfConsumers=_averageC;\n break;\n case 3: // lot concurrency initialization\n numOfProducers=_lotP;\n numOfConsumers=_lotC;\n break;\n }\n threadProducer = new Thread[numOfProducers];\n threadConsumer = new Thread[numOfConsumers];\n // creates the threads and set thread priority\n for (int i = 0; i < numOfProducers; i++) {\n threadProducer[i] = new Thread(new Producer(_myBuffer,\n \"P\" + String.valueOf(i)));\n threadProducer[i].setPriority(_prodPriority);\n }\n for (int i = 0; i < numOfConsumers; i++) {\n threadConsumer[i] = new Thread(new Consumer(_myBuffer,\n \"C\" + String.valueOf(i)));\n threadConsumer[i].setPriority(_consPriority);\n }\n }", "@Test\n public void ResourceRequirement() {\n MSG_ACTION_ACTIVATE_LEADERCARD message = new MSG_ACTION_ACTIVATE_LEADERCARD(0);\n p.getStrongbox().addResource(Resource.SHIELD, 4);\n p.getWarehouseDepot().add(Resource.COIN);\n p.getWarehouseDepot().add(Resource.SHIELD);\n c.emptyQueue();\n\n assertTrue(am.activateLeaderCard(p, message));\n\n assertTrue(l1.isEnabled());\n\n assertEquals(1, c.messages.stream().filter(x -> x.getMessageType() == MessageType.MSG_UPD_Player).count());\n assertEquals(1, c.messages.stream().filter(x -> x.getMessageType() == MessageType.MSG_NOTIFICATION).count());\n assertEquals(2, c.messages.size());\n }", "private synchronized void refreshQueuePriority() {\n BlockingQueue<Message> newQueue;\n if(highPriorityMode) {\n newQueue = new PriorityBlockingQueue<>(DEFAULT_CAPACITY_SIZE, HighPriorityModeComparator.COMPARATOR);\n } else {\n newQueue = new PriorityBlockingQueue<>(DEFAULT_CAPACITY_SIZE, NoPriorityModeComparator.COMPARATOR);\n }\n this.queue.drainTo(newQueue);\n this.queue = newQueue;\n latch.countDown();\n }", "public static void main(String[] args) throws InterruptedException {\n\t\tResourcesExploiter resource = new ResourcesExploiter(0);\n\t\tThreadedWorkerWithoutSync worker1= new ThreadedWorkerWithoutSync(resource);\n\t\tThreadedWorkerWithoutSync worker2= new ThreadedWorkerWithoutSync(resource);\n\t\tThreadedWorkerWithoutSync worker3= new ThreadedWorkerWithoutSync(resource);\n\t\t\n\t\tworker1.start();\n\t\tworker2.start();\n\t\tworker3.start();\n\t\tworker1.join();\n\t\tworker2.join();\n\t\tworker3.join();\n\t\t\n\t\tSystem.out.println(resource.getRsc());\n\t}", "protected void sortResources()\n {\n PriorityComparator priorityComparator = new PriorityComparator();\n List<Resource> resources = getResources();\n Collections.sort(resources, priorityComparator);\n }", "public static void main(String[] args) {\n KafkaConfig kafkaConfig = KafkaUtil.getKafkaConfig();\n System.out.println(kafkaConfig.toString());\n\n // push data to kafka\n SavedState savedState = new SavedState();\n\n producers = new HashMap<Priority, KafkaProducer<String, String>>() {\n {\n put(Priority.MAX_PRIORITY, KafkaUtil.initProducer());\n put(Priority.MEDIUM_PRIORITY, KafkaUtil.initProducer());\n put(Priority.MIN_PRIORITY, KafkaUtil.initProducer());\n }\n };\n\n // create thread for consumer\n executor = Executors.newFixedThreadPool(3);\n executor.execute(new MaxPriorityThread(savedState));\n executor.execute(new MediumPriorityThread(savedState));\n executor.execute(new MinPriorityThread(savedState));\n executor.shutdown();\n\n Random random = new Random();\n for (int i = 0; i <= 10; ++i) {\n int rand = i; // random.nextInt(6);\n logger.info(\"Random number is: \" + rand);\n\n\n if (rand % 2 == 0) {\n String maxPriority = Priority.MAX_PRIORITY.getNameTopic();\n logger.info(\"Topic of max priority is: \" + maxPriority);\n ProducerRecord<String, String> record = new ProducerRecord<>(Priority.MAX_PRIORITY.getNameTopic(), String.valueOf(rand));\n logger.info(\"Data is sent to Max Priority Thread: \" + record.value());\n producers.get(Priority.MAX_PRIORITY).send(record);\n } else if (rand % 3 == 0) {\n String mediumPriority = Priority.MEDIUM_PRIORITY.getNameTopic();\n logger.info(\"Topic of medium priority is: \" + mediumPriority);\n ProducerRecord<String, String> record = new ProducerRecord<>(Priority.MEDIUM_PRIORITY.getNameTopic(), String.valueOf(rand));\n logger.info(\"Data is sent to Medium Priority Thread: \" + record.value());\n producers.get(Priority.MEDIUM_PRIORITY).send(record);\n } else if (rand % 5 == 0) {\n String minPriority = Priority.MIN_PRIORITY.getNameTopic();\n logger.info(\"Topic of min priority is: \" + minPriority);\n ProducerRecord<String, String> record = new ProducerRecord<>(Priority.MIN_PRIORITY.getNameTopic(), String.valueOf(rand));\n logger.info(\"Data is sent to Min Priority Thread: \" + record.value());\n producers.get(Priority.MIN_PRIORITY).send(record);\n }\n }\n }", "public static void main(String[] args) {\n// new Thread(consumer).start();\n// new Thread(consumer).start();\n// new Thread(consumer).start();\n TLinkedBlockQueue<String> stringTLinkedBlockQueue = new TLinkedBlockQueue<>();\n\n Producter1 producter1 = new Producter1(stringTLinkedBlockQueue);\n Consumer1 consumer1 = new Consumer1(stringTLinkedBlockQueue);\n\n Thread thread = new Thread(producter1);\n thread.setName(\"生一\");\n Thread thread2 = new Thread(producter1);\n thread2.setName(\"生二\");\n Thread thread3 = new Thread(producter1);\n thread3.setName(\"生三\");\n\n thread.start();\n thread2.start();\n thread3.start();\n\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n Thread c1 = new Thread(consumer1);\n Thread c2 = new Thread(consumer1);\n Thread c3 = new Thread(consumer1);\n c1.setName(\"消一\");\n c2.setName(\"消二\");\n c3.setName(\"消三\");\n\n c1.start();\n c2.start();\n\n\n }", "public RandomizedQueue() {\n \t\titems = new Object[MIN_COUNT];\n \t\tsize = 0;\n \t}", "public static void main(String[] args) {\n\t\tQueue<Integer> integerPriorityQueue = new PriorityQueue<>(7);\r\n\t\tRandom rand = new Random();\r\n\t\tfor (int i = 0; i < 7; i++) {\r\n\t\t\tintegerPriorityQueue.add(new Integer(rand.nextInt(100)));\r\n\t\t}\r\n\t\tfor (int i = 0; i < 7; i++) {\r\n\t\t\tInteger in = integerPriorityQueue.poll();\r\n\t\t\tSystem.out.println(\"Processing Integer:\" + in);\r\n\t\t}\r\n\r\n\t\t// PriorityQueue example with Comparator\r\n\t\tQueue<Customer> customerPriorityQueue = new PriorityQueue<>(7, idComparator);\r\n\t\taddDataToQueue(customerPriorityQueue);\r\n\r\n\t\tpollDataFromQueue(customerPriorityQueue);\r\n\r\n\t}", "int getQos();", "public RandomizedQueue() {\n count = 0;\n N = 2;\n }", "@DISPID(3)\r\n\t// = 0x3. The runtime will prefer the VTID if present\r\n\t@VTID(9)\r\n\tint queuePriority();", "public interface ActionSequencePrioritizer {\n\n /**\n * Given the current action sequence deque, returns a new one that has\n * the \"most interesting\" sequences at the top of the deque.\n * Note that there is no requirement that the resulting action sequence\n * deque contains exactly the same elements as the given one. So you\n * can also use this interface for filtering out (or even adding in new)\n * action sequences.\n * \n * @param actionSequences the action sequences to examine.\n * @return the action sequences you want to run going forward.\n */\n ActionSequenceQueue prioritize(ActionSequenceQueue actionSequences);\n}", "IPriorityQueue add(Integer priority, String value);", "public static void main(String[] args) {\n RandomizedQueue<String> rq = new RandomizedQueue<String>();\n rq.enqueue(\"a\");\n rq.enqueue(\"b\");\n rq.enqueue(\"c\");\n Iterator<String> i1 = rq.iterator();\n Iterator<String> i2 = rq.iterator();\n while(i1.hasNext()) {\n System.out.print(i1.next() + \",\");\n }\n System.out.println();\n rq.dequeue();\n while(i2.hasNext()) {\n System.out.print(i2.next() + \",\");\n }\n System.out.println();\n }", "public int useQueue(){\t\r\n\t\t//save the top of the queue\r\n\t\tint top = queue[0];\r\n\t\t//move the queue up 1 space\r\n\t\tfor (int x = 0; x < queue.length - 1; x++){\r\n\t\t\tqueue[x] = queue[x+1];\r\n\t\t}\r\n\t\t//generate a new value at the bottom of the queue\r\n\t\tqueue[queue.length-1] = random.nextInt(10);\r\n\t\treturn top;\r\n\t}", "public static void main(String[] args) {\n RandomizedQueue<Integer> rq = new RandomizedQueue<>();\n\n StdOut.println(rq.size());\n\n rq.enqueue(1);\n rq.enqueue(2);\n rq.enqueue(3);\n rq.enqueue(4);\n\n for (Integer i : rq) {\n StdOut.println(i);\n }\n\n StdOut.println(rq.isEmpty());\n\n StdOut.println(rq.sample());\n StdOut.println(rq.sample());\n StdOut.println(rq.size());\n\n StdOut.println(rq.dequeue());\n StdOut.println(rq.size());\n\n for (Integer i : rq) {\n StdOut.println(i);\n }\n\n StdOut.println(rq.dequeue());\n StdOut.println(rq.dequeue());\n StdOut.println(rq.dequeue());\n\n StdOut.println(rq.isEmpty());\n\n try {\n StdOut.println(rq.dequeue());\n } catch (java.util.NoSuchElementException exception) {\n StdOut.println(exception.getMessage());\n }\n }", "public static void main(String[] args) {\n\t\t\n\t\tPriorityBlockingQueue<Integer> obj = new PriorityBlockingQueue<Integer>();\n\t\t\n\t\t/*for(int i=9;i<=99;i=i+9)\n\t\t{\n\t\t\tobj.offer(i);\n\t\t}\n\t\t\n\t\tSystem.out.println(obj);\n\t\t\n\t\tSystem.out.println(\"Removing First Element :\"+ obj.poll());\n\t\t\n\t\tSystem.out.println(obj);\n\t\t\n\t\tSystem.out.println(\"Removing First Element :\"+ obj.poll());\n\t\t\n\t\tSystem.out.println(obj);*/\n\t\t\n//\t\tfor (int i = 7; i <=84; i=i+7) {\n//\t\t\tobj.offer(i);\n//\t\t}\n\t\t\n\t\tobj.offer(5);\n\t\tobj.offer(2);\n\t\tobj.offer(13);\n\t\tobj.offer(7);\n\t\tobj.offer(12);\n\t\tobj.offer(3);\n\t\t\n\t\tSystem.out.println(obj);\n\t\t\n\t\tSystem.out.println(\"First Element :\"+obj.peek());\n\t\t\n\t\tSystem.out.println(\"Removed First Element :\"+obj.poll());\n\t\t\n\t\tSystem.out.println(\"Now First Element :\"+obj.peek());\n\t\t\n\t\tSystem.out.println(obj);\n\t\t\n\t\tSystem.out.println(\"Removed First Element :\"+obj.poll());\n\t\t\n\t\tSystem.out.println(obj);\n\n\t}", "public static void main(String[] arg) {\n\t\tMyPriorityQueue pq = new MyPriorityQueue();\n\n\t\tpq.enqueue(2, \"apple\");\t// medium priority\n\t\tpq.enqueue(3, \"candy\");\t// low priority\n\t\tpq.enqueue(1, \"milk\");\t// high priority\n\t\tpq.enqueue(1, \"cheese\");// high priority\n\t\tpq.enqueue(2, \"banana\");// medium priority\n\t\tpq.peek();\n\t\tpq.dequeue();\t\t\t// ----> milk come out first although it was not the first one enter the queue!\n\t\tpq.peek();\n\t\tpq.enqueue(3, \"gum\");\t// low priority\n\t\tpq.dequeue();\t\t\t// ----> cheese come out next\n\t\tpq.peek();\n\t\tpq.enqueue(2, \"kiwi\");\t// low priority\n\t\tpq.dequeue();\t\t\t// apple come out after ALL high priority items had dequeued.\n\t\tpq.dequeue();\t\t\t// ----> banana\n\t\tpq.dequeue();\t\t\t// ----> kiwi\n\t\tpq.peek();\n\t\tpq.enqueue(1, \"fish\");\t// high priority\n\t\tpq.enqueue(2, \"apple\");\t// medium priority\n\t\tpq.peek();\n\t\tpq.dequeue();\t\t\t// ----> fish\n\t\tpq.dequeue();\t\t\t// ----> apple\n\t\tpq.dequeue();\t\t\t// ----> kiwi\n\t\tpq.dequeue();\t\t\t// ----> candy\n\t\tpq.peek();\n\t\tpq.enqueue(2, \"kiwi\");\t// medium priority\n\t\tpq.enqueue(1, \"cheese\");// high priority\n\t\tpq.peek();\n\t\n\t}", "int priority();", "int priority();", "public task ()\n\t{\n\tthis.msg = msg;\n\tthis.level = level;\n\n\tif (level == 1)\n\tpriority = \"Critical\";\n\tif (level == 2)\n\tpriority = \"Very Important\";\n\tif (level == 3)\n\tpriority = \"Normal\";\n\tif (level == 4)\n\tpriority = \"Low\";\n\tif (level == 5)\n\tpriority = \"Not Important\";\n\t}", "private Queue(){\r\n\t\tgenerateQueue();\r\n\t}", "@Test\n public void testLimitPool() {\n List<Pool> subscribedTo = new ArrayList<Pool>();\n Consumer guestConsumer = TestUtil.createConsumer(systemType, owner);\n guestConsumer.setFact(\"virt.is_guest\", \"true\");\n \n consumerCurator.create(guestConsumer);\n Pool parentPool = null;\n \n assertTrue(limitPools != null && limitPools.size() == 2);\n for (Pool p : limitPools) {\n // bonus pools have the attribute pool_derived\n if (null != p.getAttributeValue(\"pool_derived\")) {\n // consume 2 times so one can get revoked later.\n consumerResource.bind(guestConsumer.getUuid(), p.getId(), null,\n 10, null, null, false, null);\n consumerResource.bind(guestConsumer.getUuid(), p.getId(), null,\n 10, null, null, false, null);\n // ensure the correct # consumed from the bonus pool\n assertTrue(p.getConsumed() == 20);\n assertTrue(p.getQuantity() == 100);\n poolManager.refreshPools(owner);\n // double check after pools refresh\n assertTrue(p.getConsumed() == 20);\n assertTrue(p.getQuantity() == 100);\n // keep this list so we don't need to search again\n subscribedTo.add(p);\n }\n else {\n parentPool = p;\n }\n }\n // manifest consume from the physical pool and then check bonus pool quantities\n consumerResource.bind(manifestConsumer.getUuid(), parentPool.getId(), null, 7, null,\n null, false, null);\n for (Pool p : subscribedTo) {\n assertTrue(p.getConsumed() == 20);\n assertTrue(p.getQuantity() == 30);\n poolManager.refreshPools(owner);\n // double check after pools refresh\n assertTrue(p.getConsumed() == 20);\n assertTrue(p.getQuantity() == 30);\n }\n // manifest consume from the physical pool and then check bonus pool quantities.\n // Should result in a revocation of one of the 10 count entitlements.\n consumerResource.bind(manifestConsumer.getUuid(), parentPool.getId(), null, 2, null,\n null, false, null);\n for (Pool p : subscribedTo) {\n assertTrue(p.getConsumed() == 10);\n assertTrue(p.getQuantity() == 10);\n poolManager.refreshPools(owner);\n // double check after pools refresh\n assertTrue(p.getConsumed() == 10);\n assertTrue(p.getQuantity() == 10);\n }\n // system consume from the physical pool and then check bonus pool quantities.\n // Should result in no change in the entitlements for the guest.\n consumerResource.bind(systemConsumer.getUuid(), parentPool.getId(), null, 1, null,\n null, false, null);\n for (Pool p : subscribedTo) {\n assertTrue(p.getConsumed() == 10);\n assertTrue(p.getQuantity() == 10);\n poolManager.refreshPools(owner);\n // double check after pools refresh\n assertTrue(p.getConsumed() == 10);\n assertTrue(p.getQuantity() == 10);\n }\n }", "void startPCT(){\n int i=0;\n int j=0;\n// System.out.print(\"Number of Producers: \"+numOfProducers+\n// \", Number of Consumers \"+numOfConsumers+\", \");\n _myBuffer.PrintStatus();\n// System.out.println(\"Producers priority = \"+_prodPriority+\n// \", Consumers priority = \"+_consPriority);\n// System.out.println(\"Starting the program :\");\n// System.out.println(\"----------------------\");\n while (i<numOfProducers || j<numOfConsumers){\n if (i<numOfProducers) {\n //System.out.println(\"Starting producer \"+i);\n threadProducer[i].start();\n }\n if (j<numOfConsumers) {\n threadConsumer[j].start();\n //System.out.println(\"Starting consumer \"+i);\n }\n i++;\n if (i<numOfProducers) {\n threadProducer[i].start();\n //System.out.println(\"Starting producer \" +i);\n }\n i++;\n j++;\n }\n }", "public static void main(String [] args){\n time = 0;\n waitingList = new ArrayList<>();\n removeSet = new HashSet<>();\n\n String fileName = args[0];\n Scanner sc = new Scanner(System.in);\n\n // try creating a file scanner\n try{\n sc = new Scanner(new File(fileName));\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n\n // we include two tasklists because we will have duplicates of each task object, one to be used with bankers, the other for naive\n taskList = new ArrayList<>();\n bankersTaskList = new ArrayList<>();\n int numTasks = sc.nextInt();\n numResources = sc.nextInt();\n\n resourceArr = new int [numResources];\n maxResourceArr = new int [numResources];\n\n taskPointers = new int [numTasks];\n\n // creating tasks from input file and adding to task list\n for(int i = 1; i <= numTasks; i ++){\n Task t = new Task(i);\n Task bt = new Task(i);\n taskList.add(t);\n bankersTaskList.add(bt);\n }\n\n int curr = 0;\n // determining how many resources we have of each type\n while(curr < numResources){\n int resourceNum = sc.nextInt();\n resourceArr[curr] = resourceNum;\n maxResourceArr[curr] = resourceNum;\n curr ++;\n }\n\n releaseArr = new int [numResources];\n\n // Parsing through the instructions, and adding each one to respective task we made earlier\n while(sc.hasNext()){\n String instType = sc.next();\n int taskNumber = sc.nextInt();\n\n Task currTask = taskList.get(taskNumber - 1);\n Task currBankersTask = bankersTaskList.get(taskNumber - 1);\n Type instructionType = Type.valueOf(instType);\n\n int resourceType = sc.nextInt();\n int resourceAmount = sc.nextInt();\n\n // create a duplicate of the instruction object so we can use it for bankers\n Instruction i = new Instruction(instructionType, taskNumber, resourceType, resourceAmount, false);\n Instruction bI = new Instruction(instructionType, taskNumber, resourceType, resourceAmount, true);\n currTask.addInstruction(i);\n currBankersTask.addInstruction(bI);\n }\n\n // deploy the fifo (naive) allocator\n naive(numResources);\n System.out.println();\n System.out.println(\"*****FIFO*****\");\n printTasks();\n\n\n // reset our global variables so Bankers can be deployed\n resetGlobals(numTasks);\n System.out.println(\"\\n\");\n\n // deploy the bankers allocator\n banker();\n System.out.println(\"*****BANKERS*****\");\n printTasks();\n\n }", "public PriorityQueue()\r\n\t{\r\n\t\tcurrentSize = 0;\r\n\t\tlowestCurrentPriority = Integer.MAX_VALUE;\r\n\t\tpq = new DLL[MAXIMUM_PRIORITY + 1];\r\n\t\tfor (int i = 0; i < pq.length; i++)\r\n\t\t{\r\n\t\t\tpq[i] = new DLL();\r\n\t\t}\r\n\t}", "public interface ResourceInterface {\n\n /**\n * A process can arrive at a resource or finish using it.\n * These are the two methods to handle these occurances.\n */\n /**arrivingProcess handles the event of a process arriving to a resource for service\n * This method is handled differently depending on whether the resource is exclusive or not\n * @param theProcess process the process that has arrived at the resource for service\n * @param time int The global time at which the process has arrived to the resource\n */\n void arrivingProcess(process theProcess, int time);\n\n /**finishService handles the event of a process finishing using the resource.\n * This method is called in the scheduler to insert the returned process back into the ready queue.\n * This method is different for exclusive and inclusive resources.\n *\n * @return Process The process that has finishing using the resource\n */\n process finishService ();\n\n /**\n * additional methods for updating resource object\n */\n\n /**updateNextUnblockTime mutates NextUnblockTime to be equal to the given time\n *\n * @param t int the given time\n */\n void updateNextUnblockTime(int t);\n\n /**updateIdleTime increments the IdleTime by the given int\n *\n * @param T int the amount of time the resource was idle\n */\n void updateIdleTime(int T);\n\n /**updateActiveTime increment the ActiveTime by the given time\n *\n * @param T The amount of time the resource was active\n */\n void updateActiveTime(int T);\n\n /**\n * toString formats important information about resource into a string for debugging purposes\n */\n String toString();\n\n /**\n * getters for resource\n */\n String getType();\n int getNextUnblockTime();\n int getStartIdleTime();\n int getActiveTime();\n int getIdleTime();\n process getServingProcess();\n int getCount();\n int getMaxCount();\n int getNumOfBlocks();\n int getTotalBlockTime();\n int getStartWaitTime();\n int getWaitTime();\n}", "PriorityQueue(boolean transferPriority) \n\t\t{\n\t\t\tthis.transferPriority = transferPriority;\n\t\t\twaitQueue = new java.util.PriorityQueue<KThread>(1, new comparePriority()); //Initialize the waitQueue to a java.util.PriorityQueue with a custom comparator defined below\n\t\t}", "private static void addDataToQueue(Queue<Customer> customerPriorityQueue) {\n\t\tRandom rand = new Random();\n\t\tfor (int i = 0; i < 7; i++) {\n\t\t\tint id = rand.nextInt(100);\n\t\t\tSystem.out.println(\"customer arrived and his id is: \" + id);\n\t\t\tcustomerPriorityQueue.add(new Customer(id, \"Pankaj \" + id));\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tint capacity = 15;\n\n\t\t// create object of PriorityBlockingQueue\n\t\t// using PriorityBlockingQueue(int initialCapacity) constructor\n\t\tPriorityBlockingQueue<Integer> pbq = new PriorityBlockingQueue<Integer>(capacity);\n\n\t\t// add numbers\n\t\tpbq.add(1);\n\t\tpbq.add(2);\n\t\tpbq.add(3);\n\n\t\t// print queue\n\t\tSystem.out.println(\"PriorityBlockingQueue:\" + pbq);\n\t}", "private void queueCrawlJob(\n UUID datasetKey, boolean isAbcda, boolean isDwca, boolean isCamtrapDp, int priority, byte[] dataBytes) {\n try {\n // This could in theory fail when two coordinators are running at the same time. They'll have\n // confirmed if this\n // node exists or not earlier but in the meantime another Coordinator might have created it.\n // That means the\n // Exception we throw does not necessarily tell us enough. But this is an edge-case and I feel\n // it's not worth\n // trying to figure out why this failed.\n curator\n .create()\n .creatingParentsIfNeeded()\n .forPath(CrawlerNodePaths.getCrawlInfoPath(datasetKey), dataBytes);\n if (isAbcda) {\n abcdaQueue.put(datasetKey, priority);\n } else if (isDwca) {\n dwcaQueue.put(datasetKey, priority);\n } else if (isCamtrapDp) {\n camtrapDpQueue.put(datasetKey, priority);\n } else {\n xmlQueue.put(datasetKey, priority);\n }\n } catch (Exception e) {\n throw new ServiceUnavailableException(\"Error communicating with ZooKeeper\", e);\n }\n }", "public static void main (String[] args) throws InterruptedException {\n Cook cook = new Cook(\"Cook1\");\n cook.setQueue(orderQueue);\n Cook cook2 = new Cook(\"Cook2\");\n cook2.setQueue(orderQueue);\n //StatisticManager.getInstance().register(cook);\n //StatisticManager.getInstance().register(cook2);\n List<Tablet> tablets = new ArrayList<Tablet>();\n for (int i = 0; i < 5; i++) {\n tablets.add(new Tablet(i));\n }\n\n //OrderManager orderManager = new OrderManager();\n //for (Tablet tab: tablets\n // ) {\n // tab.addObserver(orderManager);\n // cook.addObserver(new Waiter());\n //tab.addObserver(orderManager);\n //cook2.addObserver(new Waiter());\n // }\n\n RandomOrderGeneratorTask randomOrder = new RandomOrderGeneratorTask(tablets, ORDER_CREATING_INTERVAL);\n Thread treadRandom = new Thread(randomOrder);\n treadRandom.start();\n\n Thread amigoThread = new Thread(cook);\n amigoThread.start();\n Thread makarevichThread = new Thread(cook2);\n makarevichThread.start();\n Thread.sleep(1000);\n treadRandom.interrupt();\n\n\n\n //tablet.addObserver(cook);\n //cook.addObserver(new Waiter());\n //tablet.createOrder();\n\n DirectorTablet directorTablet = new DirectorTablet();\n directorTablet.printAdvertisementProfit();\n directorTablet.printCookWorkloading();\n directorTablet.printActiveVideoSet();\n directorTablet.printArchivedVideoSet();\n }", "public static void naive(int numResources){\n while(terminatedCount < taskList.size()){\n\n releaseArr = new int [numResources];\n boolean wait = addressWaiting();\n boolean notWait = addressNonWaiting();\n\n while((wait == false && notWait == false) && !checkResources() && terminatedCount < taskList.size() ){\n for(Task t : taskList){\n if(t.terminateTime == -1 && (!t.isAborted)){ // not terminated yet\n releaseAll(t);\n\n t.isAborted = true;\n terminatedCount ++;\n removeWaiting(t.taskNumber);\n\n break; // break out of forloop\n }\n }\n updateResources();\n }\n\n updateResources();\n time += 1;\n\n for(Instruction i : removeSet){\n waitingList.remove(i);\n }\n Collections.sort(waitingList);\n }\n }", "public static void main(String[] args)\n\t{\n\t\t// data added with the same priority value as already-preasent data, have less\n\t\t// priority than objects with the same priority value that were there before\n\t\t// being added.\n\t\tSystem.out.println(\"Data given all have equal priority so data\\nis ordered by the order it is provided in:\");\n\t\tPriorityQueue<String> q = new PriorityQueue<String>();\n\t\tq.add(\"highest\", 8);\n\t\tq.add(\"second highest\", 8);\n\t\tq.add(\"third highest\", 8);\n\t\tq.add(\"fourth highest\", 8);\n\t\tq.add(\"fifth highest\", 8);\n\t\tq.add(\"least\", 8);\n\t\tSystem.out.println(q.remove());\n\t\tSystem.out.println(q.remove());\n\t\tSystem.out.println(q.remove());\n\t\tSystem.out.println(q.remove());\n\t\tSystem.out.println(q.remove());\n\t\tSystem.out.println(q.remove());\n\n\t\t// sorting data provided in ascending order\n\t\tSystem.out.println(\"-------------\\nData given in ascending priority order:\");\n\t\tPriorityQueue<String> r = new PriorityQueue<String>();\n\t\tr.add(\"one\", 1);\n\t\tr.add(\"two\", 2);\n\t\tr.add(\"three\", 3);\n\t\tr.add(\"four\", 4);\n\t\tr.add(\"five\", 5);\n\t\tr.add(\"six\", 6);\n\t\tSystem.out.println(r.remove());\n\t\tSystem.out.println(r.remove());\n\t\tSystem.out.println(r.remove());\n\t\tSystem.out.println(r.remove());\n\t\tSystem.out.println(r.remove());\n\t\tSystem.out.println(r.remove());\n\n\t\t// sorting data provided in descending order\n\t\tSystem.out.println(\"-------------\\nData given in descending priority order:\");\n\t\tPriorityQueue<String> s = new PriorityQueue<String>();\n\t\ts.add(\"six\", 6);\n\t\ts.add(\"five\", 5);\n\t\ts.add(\"four\", 4);\n\t\ts.add(\"three\", 3);\n\t\ts.add(\"two\", 2);\n\t\ts.add(\"one\", 1);\n\t\tSystem.out.println(s.remove());\n\t\tSystem.out.println(s.remove());\n\t\tSystem.out.println(s.remove());\n\t\tSystem.out.println(s.remove());\n\t\tSystem.out.println(s.remove());\n\t\tSystem.out.println(s.remove());\n\n\t\t// sorting data provided in a mixed order\n\t\tSystem.out.println(\"-------------\\nData given in a mixed priority order:\");\n\t\tPriorityQueue<String> t = new PriorityQueue<String>();\n\t\tt.add(\"four\", 4);\n\t\tt.add(\"six\", 6);\n\t\tt.add(\"two\", 2);\n\t\tt.add(\"three\", 3);\n\t\tt.add(\"one\", 1);\n\t\tt.add(\"five\", 5);\n\t\tSystem.out.println(t.remove());\n\t\tSystem.out.println(t.remove());\n\t\tSystem.out.println(t.remove());\n\t\tSystem.out.println(t.remove());\n\t\tSystem.out.println(t.remove());\n\t\tSystem.out.println(t.remove());\n\n\t\t// sorting data provided in a mixed priority order including some repitition and\n\t\t// negative values\n\t\tSystem.out.println(\n\t\t\t\t\"-------------\\nData given in a mixed priority order\\nincluding repitition and negative priority:\");\n\t\tPriorityQueue<String> u = new PriorityQueue<String>();\n\t\tu.add(\"-two\", -2);\n\t\tu.add(\"two\", 2);\n\t\tu.add(\"zero\", 0);\n\t\tu.add(\"one\", 1);\n\t\tu.add(\"zero again\", 0);\n\t\tu.add(\"-one\", -1);\n\t\tSystem.out.println(u.remove());\n\t\tSystem.out.println(u.remove());\n\t\tSystem.out.println(u.remove());\n\t\tSystem.out.println(u.remove());\n\t\tSystem.out.println(u.remove());\n\t\tSystem.out.println(u.remove());\n\n\t\t// sorting data provided in a mixed priority order and is of type Double this\n\t\t// time\n\t\tSystem.out.println(\n\t\t\t\t\"-------------\\nData given in a mixed priority order\\nbut using double as the objects this time:\");\n\t\tPriorityQueue<Double> v = new PriorityQueue<Double>();\n\t\tv.add(.002, 2);\n\t\tv.add(.006, 6);\n\t\tv.add(.005, 5);\n\t\tv.add(.001, 1);\n\t\tv.add(.004, 4);\n\t\tv.add(.003, 3);\n\t\tSystem.out.println(v.remove());\n\t\tSystem.out.println(v.remove());\n\t\tSystem.out.println(v.remove());\n\t\tSystem.out.println(v.remove());\n\t\tSystem.out.println(v.remove());\n\t\tSystem.out.println(v.remove());\n\t}", "@Test\n public void testAutoCreateQueueAfterRemoval() throws Exception {\n startScheduler();\n\n createBasicQueueStructureAndValidate();\n\n // Under e, there's only one queue, so e1/e have same capacity\n CSQueue e1 = cs.getQueue(\"root.e-auto.e1-auto\");\n Assert.assertEquals(1 / 5f, e1.getAbsoluteCapacity(), 1e-6);\n Assert.assertEquals(1f, e1.getQueueCapacities().getWeight(), 1e-6);\n Assert.assertEquals(240 * GB,\n e1.getQueueResourceQuotas().getEffectiveMinResource().getMemorySize());\n\n // Check after removal e1.\n cs.removeQueue(e1);\n CSQueue e = cs.getQueue(\"root.e-auto\");\n Assert.assertEquals(1 / 5f, e.getAbsoluteCapacity(), 1e-6);\n Assert.assertEquals(1f, e.getQueueCapacities().getWeight(), 1e-6);\n Assert.assertEquals(240 * GB,\n e.getQueueResourceQuotas().getEffectiveMinResource().getMemorySize());\n\n // Check after removal e.\n cs.removeQueue(e);\n CSQueue d = cs.getQueue(\"root.d-auto\");\n Assert.assertEquals(1 / 4f, d.getAbsoluteCapacity(), 1e-6);\n Assert.assertEquals(1f, d.getQueueCapacities().getWeight(), 1e-6);\n Assert.assertEquals(300 * GB,\n d.getQueueResourceQuotas().getEffectiveMinResource().getMemorySize());\n\n // Check after removal d.\n cs.removeQueue(d);\n CSQueue c = cs.getQueue(\"root.c-auto\");\n Assert.assertEquals(1 / 3f, c.getAbsoluteCapacity(), 1e-6);\n Assert.assertEquals(1f, c.getQueueCapacities().getWeight(), 1e-6);\n Assert.assertEquals(400 * GB,\n c.getQueueResourceQuotas().getEffectiveMinResource().getMemorySize());\n\n // Check after removal c.\n cs.removeQueue(c);\n CSQueue b = cs.getQueue(\"root.b\");\n Assert.assertEquals(1 / 2f, b.getAbsoluteCapacity(), 1e-6);\n Assert.assertEquals(1f, b.getQueueCapacities().getWeight(), 1e-6);\n Assert.assertEquals(600 * GB,\n b.getQueueResourceQuotas().getEffectiveMinResource().getMemorySize());\n\n // Check can't remove static queue b.\n try {\n cs.removeQueue(b);\n Assert.fail(\"Can't remove static queue b!\");\n } catch (Exception ex) {\n Assert.assertTrue(ex\n instanceof SchedulerDynamicEditException);\n }\n // Check a.\n CSQueue a = cs.getQueue(\"root.a\");\n Assert.assertEquals(1 / 2f, a.getAbsoluteCapacity(), 1e-6);\n Assert.assertEquals(1f, a.getQueueCapacities().getWeight(), 1e-6);\n Assert.assertEquals(600 * GB,\n b.getQueueResourceQuotas().getEffectiveMinResource().getMemorySize());\n }", "public static void main(String[] args)\n\t{\n\t\tdouble mine = (29 + 27 + 29 + /*24*/ 28 + 30 + 50 + 55 + 17 + 19 + 16 + 18 + 17 + 17 + 20 + 18 + 20 + 82 + 81 + 87 + 215);\n\t\t\n\t\tdouble pote = (30 + 30 + 30 + 30 + 30 + 60 + 30 + 30 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 100 + 100 + 100 + 250);\n\t\t\n\t\tdouble grade = (mine / pote) * 100;\n\t\tSystem.out.println(grade);\n\t\t\n\t\tPriorityQueue<String> pq = new PriorityQueue<String>();\n\t\tPriorityQueue<String> pq2 = new PriorityQueue<String>();\n\t\tPriorityQueue<Character> pq3 = new PriorityQueue<Character>();\n\t\t/*\n\t\tPriorityQueue pq4 = new PriorityQueue();\n\t\tpq4.enqueuePQ(2, \"F\");\n\t\tpq4.enqueuePQ(2, 32);\n\t\tSystem.out.println(pq4.toString());\n\t\t*/\n\t\t\n\t\t\n\t\tpq3.enqueuePQ(3, 'A');\n\t\tpq3.enqueuePQ(3, 'B');\n\t\tpq3.enqueuePQ(3, 'C');\n\t\tSystem.out.println(pq3.toString());\n\t\t\n\t\tSystem.out.println(pq3.dequeuePQ());\n\t\tSystem.out.println(pq3.peekPQ());\n\t\t\n\t\tpq2.enqueuePQ(2, \"two\");\n\t\tpq2.enqueuePQ(3, \"three\");\n\t\tpq2.enqueuePQ(1, \"one\");\n\t\t//pq2.enqueuePQ(-2, \"neg two\");\n\t\t//pq2.enqueuePQ(3, \"three 2\");\n\t\t//pq2.enqueuePQ(-2, \"neg two 2\");\n\t\t//pq2.enqueuePQ(1, \"one 2\");\n\t\tSystem.out.println(pq2.toString());\n\t\t\n\t\tSystem.out.println(pq2.dequeuePQ());\n\t\tSystem.out.println(pq2.peekPQ());\n\t\tSystem.out.println(pq2.toString());\n\t\t\n\t\tSystem.out.println(pq.isEmpty());\n\t\tpq.enqueuePQ(3, \"three\");\n\t\tSystem.out.println(pq.toString());\n\t\tpq.enqueuePQ(5, \"five\");\n\t\tSystem.out.println(pq.isEmpty());\n\t\tSystem.out.println(pq.toString());\n\t\tSystem.out.println(pq.dequeuePQ());\n\t\tSystem.out.println(pq.isEmpty());\n\t\tSystem.out.println(pq.dequeuePQ());\n\t\t\n\t\ttry\n\t\t{\n\t\t\tSystem.out.println(pq.peekPQ());\n\t\t}\n\t\tcatch (PQException ex)\n\t\t{\n\t\t\tSystem.out.println(\"PEEK EXCEPTION CAUGHT\");\n\t\t}\n\t\t\n\t\ttry\n\t\t{\n\t\t\tSystem.out.println(pq.dequeuePQ());\n\t\t}\n\t\tcatch (PQException ex)\n\t\t{\n\t\t\tSystem.out.println(\"Dequeue EXCEPTION CAUGHT\");\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(pq.isEmpty());\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(\"DONE\");\n\t\t\n\t\t\n\t\t\n\t}", "public void drain() {\r\n if (getAndIncrement() == 0) {\r\n SimpleQueue<T> simpleQueue = this.queue;\r\n int i = this.consumed;\r\n int i2 = this.bufferSize;\r\n int i3 = i2 - (i2 >> 2);\r\n boolean z = this.sourceMode != 1;\r\n int i4 = 1;\r\n int i5 = i;\r\n SimpleQueue<T> simpleQueue2 = simpleQueue;\r\n int i6 = i5;\r\n while (true) {\r\n if (simpleQueue2 != null) {\r\n long j = LongCompanionObject.MAX_VALUE;\r\n InnerSubscription[] innerSubscriptionArr = (InnerSubscription[]) this.subscribers.get();\r\n boolean z2 = false;\r\n for (InnerSubscription innerSubscription : innerSubscriptionArr) {\r\n long j2 = innerSubscription.get();\r\n if (j2 != Long.MIN_VALUE) {\r\n j = Math.min(j2 - innerSubscription.emitted, j);\r\n z2 = true;\r\n }\r\n }\r\n long j3 = 0;\r\n if (!z2) {\r\n j = 0;\r\n }\r\n while (true) {\r\n if (j == j3) {\r\n break;\r\n }\r\n boolean z3 = this.done;\r\n try {\r\n Object poll = simpleQueue2.poll();\r\n boolean z4 = poll == null;\r\n if (!checkTerminated(z3, z4)) {\r\n if (z4) {\r\n break;\r\n }\r\n int length = innerSubscriptionArr.length;\r\n for (int i7 = 0; i7 < length; i7++) {\r\n InnerSubscription innerSubscription2 = innerSubscriptionArr[i7];\r\n if (!innerSubscription2.isCancelled()) {\r\n innerSubscription2.downstream.onNext(poll);\r\n innerSubscription2.emitted++;\r\n }\r\n }\r\n if (z) {\r\n i6++;\r\n if (i6 == i3) {\r\n ((Subscription) this.upstream.get()).request((long) i3);\r\n i6 = 0;\r\n }\r\n }\r\n j--;\r\n if (innerSubscriptionArr != this.subscribers.get()) {\r\n break;\r\n }\r\n j3 = 0;\r\n } else {\r\n return;\r\n }\r\n } catch (Throwable th) {\r\n Throwable th2 = th;\r\n Exceptions.throwIfFatal(th2);\r\n ((Subscription) this.upstream.get()).cancel();\r\n simpleQueue2.clear();\r\n this.done = true;\r\n signalError(th2);\r\n return;\r\n }\r\n }\r\n if (checkTerminated(this.done, simpleQueue2.isEmpty())) {\r\n return;\r\n }\r\n }\r\n this.consumed = i6;\r\n i4 = addAndGet(-i4);\r\n if (i4 != 0) {\r\n if (simpleQueue2 == null) {\r\n simpleQueue2 = this.queue;\r\n }\r\n } else {\r\n return;\r\n }\r\n }\r\n }\r\n }", "private void workOnQueue() {\n }", "public RandomizedQueue() {\n this.capacity = 2;\n this.numberOfItems = 0;\n\n this.queue = (Item[]) new Object[capacity];\n }", "public void generatePriority() {\n\t\tpriority = .25 * frequency + .25 * age + .25 * links + .25 * money;\n\t}", "private void generateQueue(){\r\n\t\tqueue = new int[5];\r\n\t\tfor (int x = 0; x < queue.length; x++){\r\n\t\t\tqueue[x] = random.nextInt(9);\r\n\t\t}\r\n\t}", "@DISPID(115)\r\n\t// = 0x73. The runtime will prefer the VTID if present\r\n\t@VTID(110)\r\n\tint queuePriority();", "public RandomizedQueue() {\n first = 0;\n s = (Item[]) new Object[INIT_CAPACITY];\n }", "public CincamimisQueue()\r\n {\r\n measurementQueue=new ArrayBlockingQueue(10,true);\r\n }", "public RandomizedQueue() // construct an empty randomized queue\n {\n items = (Item[]) new Object[4];\n nextFreePos = 0;\n used = 0;\n\n }", "public interface ResourceFactory {\n\n /**\n * This function makes an instance of a predefined class which the\n * pool should consist of. The function should handle all initializing\n * of the object.\n * @return A pool object.\n */\n public Object makeResource();\n\n /**\n * This function closes a pool object. This could be closing of an\n * database connection or termination of a thread.\n */\n public void closeResource(Object resource);\n\n public String debugName();\n\n int maxWaitSecBeforeCreatingNewResource();\n}", "myQueue(){\n }", "public void setPriorityCollect()\n\t{\n\t\tsetCollect(_Prefix + HardZone.PRIORITY.toString(), \"\");\n\t}", "public static void main(String[] args) {\n\n //The PriorityQueue class provides the facility of using queue.\n // But it does not orders the elements in FIFO manner. It inherits AbstractQueue class.\n\n PriorityQueue<String> priorityQueue=new PriorityQueue<>();\n priorityQueue.add(\"amit\");\n priorityQueue.add(\"vinet\");\n priorityQueue.add(\"amit\");\n priorityQueue.add(\"rajan\");\n priorityQueue.add(\"karan\");\n priorityQueue.add(\"sajan\");\n priorityQueue.add(\"rajan\");\n\n System.out.println(priorityQueue.size());\n System.out.println(priorityQueue);\n System.out.println(\"head \"+priorityQueue.element());\n System.out.println(\"head \"+priorityQueue.peek());\n System.out.println(priorityQueue.remove(\"sajan\"));\n System.out.println(priorityQueue);\n priorityQueue.remove(\"rajan\");\n\n for(String str: priorityQueue){\n System.out.println(str);\n }\n priorityQueue.remove();\n System.out.println(priorityQueue);\n priorityQueue.poll();\n System.out.println(priorityQueue);\n priorityQueue.removeAll(priorityQueue);\n System.out.println(priorityQueue);\n }", "public static void main(String[] args) {\nPriorityQueue pq= new PriorityQueue(15);//,new MyComparator123());\r\nSystem.out.println(pq.peek());\r\n//System.out.println(pq.element());\r\n/*for(int i=1;i<=10;i++)\r\npq.offer(i);\r\nSystem.out.println(pq);\r\nSystem.out.println(pq.poll());\r\n\r\nSystem.out.println(pq);*/\r\npq.offer(\"A\");\r\npq.offer(\"C\");\r\npq.offer(\"B\");\r\npq.offer(\"Z\");\r\nfor(int i=0;i<pq.size();i++)\r\nSystem.out.println(pq.peek());\r\n\t}", "private Task[] stealTaskFromOtherResourcesToExecute(String resourceName, int numberOfTasks) {\n Boolean[] fulfillsLicenses = new Boolean[Core.coreCount];\n\n Task[] stolenTask = new Task[numberOfTasks];\n Task[] bestTask = new Task[numberOfTasks];\n String[] taskOwner = new String[numberOfTasks];\n int[] bestScore = new int[numberOfTasks];\n\n for (int i = 0; i < numberOfTasks; i++) {\n bestTask[i] = null;\n bestScore[i] = Integer.MIN_VALUE;\n taskOwner[i] = \"\";\n }\n int minimumScore = Integer.MIN_VALUE;\n int minimumPosition = 0;\n\n\n\n\n Task[] bestTaskEnforced = new Task[numberOfTasks];\n String[] taskOwnerEnforced = new String[numberOfTasks];\n int[] bestScoreEnforced = new int[numberOfTasks];\n\n for (int i = 0; i < numberOfTasks; i++) {\n bestTaskEnforced[i] = null;\n bestScoreEnforced[i] = Integer.MIN_VALUE;\n taskOwnerEnforced[i] = \"\";\n }\n int minimumScoreEnforced = Integer.MIN_VALUE;\n int minimumPositionEnforced = 0;\n\n TreeSet<String> compatibleResources = new TreeSet<String>();\n List<Integer> executableMethods = resManager.getExecutableCores(resourceName);\n for (Integer methodId : executableMethods) {\n compatibleResources.addAll(resManager.findResources(methodId));\n }\n compatibleResources.remove(resourceName);\n\n for (String ownerName : compatibleResources) {\n // Find best scoring task whose constraints are fulfilled by the resource\n for (Task t : queueManager.getPendingTasks(ownerName)) {\n if (fulfillsLicenses[t.getCore().getId()] == null) {\n fulfillsLicenses[t.getCore().getId()] = queueManager.canRunCore(t.getCore().getId());\n }\n if (!fulfillsLicenses[t.getCore().getId()]) {\n continue;\n }\n boolean matches = resManager.matches(resourceName, t.getCore().getId());\n if (matches) {\n int score = 0;\n Parameter[] params = t.getCore().getParameters();\n for (Parameter p : params) {\n if (p instanceof DependencyParameter) {\n DependencyParameter dp = (DependencyParameter) p;\n DataInstanceId dId = null;\n switch (dp.getDirection()) {\n case IN:\n RAccessId raId = (RAccessId) dp.getDataAccessId();\n dId = raId.getReadDataInstance();\n break;\n case INOUT:\n RWAccessId rwaId = (RWAccessId) dp.getDataAccessId();\n dId = rwaId.getReadDataInstance();\n break;\n case OUT:\n break;\n }\n\n if (dId != null) {\n\n TreeSet<String> hosts = FTM.getHosts(dId);\n for (String host : hosts) {\n if (host.equals(ownerName)) {\n score--;\n break;\n }\n if (host.equals(resourceName)) {\n score += 2;\n break;\n }\n }\n }\n }\n }\n if (t.isStrongEnforcedScheduling()) {\n continue;\n } else if (t.isEnforcedSceduling()) {\n if (score > minimumScore) {\n bestScoreEnforced[minimumPositionEnforced] = score;\n bestTaskEnforced[minimumPositionEnforced] = t;\n taskOwnerEnforced[minimumPositionEnforced] = ownerName;\n\n minimumScoreEnforced = bestScoreEnforced[0];\n minimumPositionEnforced = 0;\n\n\n\n for (int i = 1; i < numberOfTasks; i++) {\n if (minimumScoreEnforced > bestScoreEnforced[i]) {\n minimumScoreEnforced = bestScoreEnforced[i];\n minimumPositionEnforced = i;\n }\n }\n }\n } else {\n if (score > minimumScore) {\n bestScore[minimumPosition] = score;\n bestTask[minimumPosition] = t;\n taskOwner[minimumPosition] = ownerName;\n\n minimumScore = bestScore[0];\n minimumPosition = 0;\n\n\n\n for (int i = 1; i < numberOfTasks; i++) {\n if (minimumScore > bestScore[i]) {\n minimumScore = bestScore[i];\n minimumPosition = i;\n }\n }\n }\n }\n }\n }\n }\n int count = 0;\n for (int i = 0; i < numberOfTasks; i++) {\n if (bestTask[i] != null) {\n queueManager.moveFromNode(bestTask[i], taskOwner[i], resourceName);\n stolenTask[count] = bestTask[i];\n count++;\n }\n }\n for (int i = count; i < numberOfTasks; i++) {\n if (bestTaskEnforced[i] != null) {\n queueManager.moveFromNode(bestTaskEnforced[i], taskOwnerEnforced[i], resourceName);\n stolenTask[count] = bestTaskEnforced[i];\n count++;\n }\n }\n return stolenTask;\n }", "public RandomizedQueue() {\n collection = (Item[]) new Object[1];\n }", "@Test\n\tpublic void testPutOnWaitingListPrioritizable() {\n\t\ttry {\n\t\t\tVRDevice v1 = new VRDevice(\"Serial\", \"Name\", 0);\n\t\t\ts1.putOnWaitingList(v1);\n\t\t} catch (BadDeviceInformationException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t\tassertEquals(\"V None Serial Name\\n\", s1.printWaitList(null));\n\n\t}", "public static void main(String[] args) throws InterruptedException {\n Semaphore cutHairStartedSig = new Semaphore(0, true);\n Semaphore cutHairFinishedSig = new Semaphore(0, true);\n ExecutorService exec = Executors.newCachedThreadPool();\n\n // barber\n exec.submit(() -> handleInterruptedException(() -> {\n while (true) {\n boolean pendingHaircut = false;\n synchronized (_02_barbershop.class) {\n if (freeChairs < SEATS_CNT) {\n pendingHaircut = true;\n }\n }\n\n if (!pendingHaircut) {\n System.out.println(\"[B] Barber goes to sleep...\");\n Thread.sleep(SLEEP_OFFSET + 1000);\n } else {\n cutHairStartedSig.release();\n System.out.println(\"[B] Barber is cutting hair...\");\n Thread.sleep(SLEEP_OFFSET + HAIRCUT_DURATION + (ThreadLocalRandom.current().nextInt() % 1000));\n cutHairFinishedSig.release();\n synchronized (_02_barbershop.class) {\n freeChairs++;\n }\n }\n }\n }));\n\n // clients\n for (int i = 0; i < 6; i++) {\n final int customerID = i;\n exec.submit(() -> handleInterruptedException(() -> {\n while (true) {\n if (ThreadLocalRandom.current().nextInt() % 100 > 50) {\n Thread.sleep(SLEEP_OFFSET + 1000 + (ThreadLocalRandom.current().nextInt() % 5000));\n continue;\n }\n\n boolean pendingHaircut = false;\n synchronized (_02_barbershop.class) {\n if (freeChairs > 0) {\n freeChairs--;\n System.out.printf(\"[C] Client %d takes a free chair... Remaining seats=%d\\n\", customerID, freeChairs);\n pendingHaircut = true;\n }\n }\n\n if (pendingHaircut) {\n cutHairStartedSig.acquire();\n System.out.printf(\"[C] Client %d is getting their hair cut...\\n\", customerID);\n cutHairFinishedSig.acquire();\n } else {\n System.out.printf(\"[C] Client %d leaves as there are no free chairs...\\n\", customerID);\n }\n\n Thread.sleep(SLEEP_OFFSET + 2000 + (ThreadLocalRandom.current().nextInt() % 1000));\n }\n }));\n }\n\n Thread.sleep(20000);\n exec.shutdownNow();\n exec.awaitTermination(5, TimeUnit.SECONDS);\n }", "public MyQueue() {\n queue = new PriorityQueue<>();\n }", "public interface IPriorityQueue {\n\n /**\n * Check whether the priority queue is empty\n * @return true if it is empty, otherwise false\n */\n Boolean isEmpty();\n\n /**\n * Add a priority and value into a list\n * @param priority priority to add to the priority queue\n * @param value value to add to the priority queue\n * @return a new priority queue with new priority and value\n */\n IPriorityQueue add(Integer priority, String value);\n\n /**\n * Gets the number of items in the priority queue.\n * @return The number of items in the priority queue.\n */\n Integer size();\n\n /**\n * returns the String at the front of the priority queue if the Queue is not empty.\n * @return The String at the front of the priority queue, if the Queue is not empty.\n * @throws EmptyPriorityQueueException EmptyPriorityQueueException if the priority queue is empty.\n */\n String peek() throws EmptyPriorityQueueException;\n\n /**\n * Removes and returns the String at the front of the priority queue if the priority queue is not empty.\n * @return A copy of the priority queue without the removed item..\n * @throws EmptyPriorityQueueException EmptyPriorityQueueException if the priority queue is empty.\n */\n IPriorityQueue pop() throws EmptyPriorityQueueException;\n\n}", "public static void init() {\r\n\t\tsetPolicy(BPF.getInstance().getConfig().routes_setting()\r\n\t\t\t\t.getQueuing_policy());\r\n\t}", "public WaitablePQueue(int Capacity, Comparator<? super E> comparator) {\n\t \tthis.pq = new PriorityQueue<>(Capacity, comparator);\n\t \tthis.sem = new Semaphore(0);\n\t}", "private static PriorityQueue<Teller> tellerInit(){\n Teller t1 = new Teller(\"Kate\", LocalTime.of(9, 0), 0, Bank.getInstance());\n Teller t2 = new Teller(\"Bob\", LocalTime.of(9, 0), 1, Bank.getInstance());\n Teller t3 = new Teller(\"Alice\", LocalTime.of(9, 0), 2, Bank.getInstance());\n\n PriorityQueue<Teller> tellerQueue = new PriorityQueue<>(3, new TellerComparator());\n tellerQueue.add(t2);\n tellerQueue.add(t1);\n tellerQueue.add(t3);\n\n return tellerQueue;\n }", "private BluetoothCodecConfig[] assignCodecConfigPriorities() {\n Resources resources = mContext.getResources();\n if (resources == null) {\n return null;\n }\n\n int value;\n AdapterService mAdapterService = AdapterService.getAdapterService();\n String a2dp_offload_cap = mAdapterService.getA2apOffloadCapability();\n try {\n value = resources.getInteger(R.integer.a2dp_source_codec_priority_sbc);\n } catch (NotFoundException e) {\n value = BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT;\n }\n if ((value >= BluetoothCodecConfig.CODEC_PRIORITY_DISABLED) && (value\n < BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST)) {\n mA2dpSourceCodecPrioritySbc = value;\n if (a2dp_offload_cap != null && !a2dp_offload_cap.isEmpty() &&\n !a2dp_offload_cap.contains(\"sbc\")) {\n mA2dpSourceCodecPrioritySbc = BluetoothCodecConfig.CODEC_PRIORITY_DISABLED;\n }\n }\n\n try {\n value = resources.getInteger(R.integer.a2dp_source_codec_priority_aac);\n } catch (NotFoundException e) {\n value = BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT;\n }\n if ((value >= BluetoothCodecConfig.CODEC_PRIORITY_DISABLED) && (value\n < BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST)) {\n mA2dpSourceCodecPriorityAac = value;\n if (a2dp_offload_cap != null && !a2dp_offload_cap.isEmpty() &&\n !a2dp_offload_cap.contains(\"aac\")) {\n mA2dpSourceCodecPriorityAac = BluetoothCodecConfig.CODEC_PRIORITY_DISABLED;\n }\n }\n\n try {\n value = resources.getInteger(R.integer.a2dp_source_codec_priority_aptx);\n } catch (NotFoundException e) {\n value = BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT;\n }\n if ((value >= BluetoothCodecConfig.CODEC_PRIORITY_DISABLED) && (value\n < BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST)) {\n mA2dpSourceCodecPriorityAptx = value;\n if (a2dp_offload_cap != null && !a2dp_offload_cap.isEmpty() &&\n !a2dp_offload_cap.contains(\"aptx\")) {\n mA2dpSourceCodecPriorityAptx = BluetoothCodecConfig.CODEC_PRIORITY_DISABLED;\n }\n }\n if(mAdapterService.isSplitA2DPSourceAPTXADAPTIVE()) {\n try {\n value = resources.getInteger(R.integer.a2dp_source_codec_priority_aptx_adaptive);\n } catch (NotFoundException e) {\n value = BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT;\n }\n if ((value >= BluetoothCodecConfig.CODEC_PRIORITY_DISABLED) && (value\n < BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST)) {\n if (a2dp_offload_cap != null && !a2dp_offload_cap.isEmpty()) {\n if(a2dp_offload_cap.contains(\"aptxadaptiver2\")) {\n int aptxaa_r2_priority;\n try {\n aptxaa_r2_priority = resources.getInteger(R.integer.a2dp_source_codec_priority_aptx_adaptive_r2);\n } catch (NotFoundException e) {\n aptxaa_r2_priority = value;\n }\n value = aptxaa_r2_priority;\n } else if(!a2dp_offload_cap.contains(\"aptxadaptive\")) {\n value = BluetoothCodecConfig.CODEC_PRIORITY_DISABLED;\n Log.w(TAG, \"Disable Aptx Adaptive. Entry not present in offload property\");\n }\n }\n mA2dpSourceCodecPriorityAptxAdaptive = value;\n Log.i(TAG, \"Aptx Adaptive priority: \" + mA2dpSourceCodecPriorityAptxAdaptive);\n }\n } else {\n mA2dpSourceCodecPriorityAptxAdaptive = BluetoothCodecConfig.CODEC_PRIORITY_DISABLED;\n }\n\n if(mAdapterService.isSplitA2DPSourceAPTXHD()) {\n try {\n value = resources.getInteger(R.integer.a2dp_source_codec_priority_aptx_hd);\n } catch (NotFoundException e) {\n value = BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT;\n }\n if ((value >= BluetoothCodecConfig.CODEC_PRIORITY_DISABLED) && (value\n < BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST)) {\n mA2dpSourceCodecPriorityAptxHd = value;\n if (a2dp_offload_cap != null && !a2dp_offload_cap.isEmpty() &&\n !a2dp_offload_cap.contains(\"aptxhd\")) {\n mA2dpSourceCodecPriorityAptxHd = BluetoothCodecConfig.CODEC_PRIORITY_DISABLED;\n }\n }\n } else {\n mA2dpSourceCodecPriorityAptxHd = BluetoothCodecConfig.CODEC_PRIORITY_DISABLED;\n }\n\n\n if(mAdapterService.isSplitA2DPSourceLDAC()) {\n try {\n value = resources.getInteger(R.integer.a2dp_source_codec_priority_ldac);\n } catch (NotFoundException e) {\n value = BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT;\n }\n if ((value >= BluetoothCodecConfig.CODEC_PRIORITY_DISABLED) && (value\n < BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST)) {\n mA2dpSourceCodecPriorityLdac = value;\n if (a2dp_offload_cap != null && !a2dp_offload_cap.isEmpty() &&\n !a2dp_offload_cap.contains(\"ldac\")) {\n mA2dpSourceCodecPriorityLdac = BluetoothCodecConfig.CODEC_PRIORITY_DISABLED;\n }\n }\n } else {\n mA2dpSourceCodecPriorityLdac = BluetoothCodecConfig.CODEC_PRIORITY_DISABLED;\n }\n if (mAdapterService.isVendorIntfEnabled()) {\n try {\n value = resources.getInteger(R.integer.a2dp_source_codec_priority_aptx_tws);\n } catch (NotFoundException e) {\n value = BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT;\n }\n if ((value >= BluetoothCodecConfig.CODEC_PRIORITY_DISABLED) && (value\n < BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST)) {\n mA2dpSourceCodecPriorityAptxTwsp = value;\n if (a2dp_offload_cap != null && !a2dp_offload_cap.isEmpty() &&\n !a2dp_offload_cap.contains(\"aptxtws\")) {\n mA2dpSourceCodecPriorityAptxTwsp = BluetoothCodecConfig.CODEC_PRIORITY_DISABLED;\n }\n }\n } else {\n mA2dpSourceCodecPriorityAptxTwsp = BluetoothCodecConfig.CODEC_PRIORITY_DISABLED;\n }\n\n // Set highest codec priority in the end, so that it can override xml values\n int codec_priority = Settings.System.getInt(mContext.getContentResolver(),\n Settings.System.A2DP_SOURCE_CODEC_PRIORITY, 0);\n\n switch (codec_priority) {\n case 0:\n default:\n break;\n case 1:\n mA2dpSourceCodecPrioritySbc = BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST;\n break;\n case 2:\n mA2dpSourceCodecPriorityAac = BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST;\n break;\n case 3:\n mA2dpSourceCodecPriorityAptx = BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST;\n break;\n case 4:\n mA2dpSourceCodecPriorityAptxHd = BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST;\n break;\n case 5:\n mA2dpSourceCodecPriorityLdac = BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST;\n break;\n case 6:\n mA2dpSourceCodecPriorityAptxAdaptive = BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST;\n break;\n case 7:\n mA2dpSourceCodecPriorityAptxTwsp = BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST;\n break;\n }\n\n BluetoothCodecConfig codecConfig;\n BluetoothCodecConfig[] codecConfigArray;\n int codecCount = 0;\n codecConfigArray =\n new BluetoothCodecConfig[BluetoothCodecConfig.SOURCE_CODEC_TYPE_MAX];\n\n codecConfig = new BluetoothCodecConfig(BluetoothCodecConfig.SOURCE_CODEC_TYPE_SBC,\n mA2dpSourceCodecPrioritySbc, BluetoothCodecConfig.SAMPLE_RATE_NONE,\n BluetoothCodecConfig.BITS_PER_SAMPLE_NONE, BluetoothCodecConfig\n .CHANNEL_MODE_NONE, 0 /* codecSpecific1 */,\n 0 /* codecSpecific2 */, 0 /* codecSpecific3 */, 0 /* codecSpecific4 */);\n codecConfigArray[codecCount++] = codecConfig;\n codecConfig = new BluetoothCodecConfig(BluetoothCodecConfig.SOURCE_CODEC_TYPE_AAC,\n mA2dpSourceCodecPriorityAac, BluetoothCodecConfig.SAMPLE_RATE_NONE,\n BluetoothCodecConfig.BITS_PER_SAMPLE_NONE, BluetoothCodecConfig\n .CHANNEL_MODE_NONE, 0 /* codecSpecific1 */,\n 0 /* codecSpecific2 */, 0 /* codecSpecific3 */, 0 /* codecSpecific4 */);\n codecConfigArray[codecCount++] = codecConfig;\n codecConfig = new BluetoothCodecConfig(BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX,\n mA2dpSourceCodecPriorityAptx, BluetoothCodecConfig.SAMPLE_RATE_NONE,\n BluetoothCodecConfig.BITS_PER_SAMPLE_NONE, BluetoothCodecConfig\n .CHANNEL_MODE_NONE, 0 /* codecSpecific1 */,\n 0 /* codecSpecific2 */, 0 /* codecSpecific3 */, 0 /* codecSpecific4 */);\n codecConfigArray[codecCount++] = codecConfig;\n codecConfig = new BluetoothCodecConfig(BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX_HD,\n mA2dpSourceCodecPriorityAptxHd, BluetoothCodecConfig.SAMPLE_RATE_NONE,\n BluetoothCodecConfig.BITS_PER_SAMPLE_NONE, BluetoothCodecConfig\n .CHANNEL_MODE_NONE, 0 /* codecSpecific1 */,\n 0 /* codecSpecific2 */, 0 /* codecSpecific3 */, 0 /* codecSpecific4 */);\n codecConfigArray[codecCount++] = codecConfig;\n codecConfig = new BluetoothCodecConfig(BluetoothCodecConfig.SOURCE_CODEC_TYPE_LDAC,\n mA2dpSourceCodecPriorityLdac, BluetoothCodecConfig.SAMPLE_RATE_NONE,\n BluetoothCodecConfig.BITS_PER_SAMPLE_NONE, BluetoothCodecConfig\n .CHANNEL_MODE_NONE, 0 /* codecSpecific1 */,\n 0 /* codecSpecific2 */, 0 /* codecSpecific3 */, 0 /* codecSpecific4 */);\n codecConfigArray[codecCount++] = codecConfig;\n if (mAdapterService.isVendorIntfEnabled() ||\n mA2dpSourceCodecPriorityAptxTwsp == BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST) {\n codecConfig = new BluetoothCodecConfig(BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX_TWSP,\n mA2dpSourceCodecPriorityAptxTwsp, BluetoothCodecConfig.SAMPLE_RATE_NONE,\n BluetoothCodecConfig.BITS_PER_SAMPLE_NONE, BluetoothCodecConfig\n .CHANNEL_MODE_NONE, 0 /* codecSpecific1 */,\n 0 /* codecSpecific2 */, 0 /* codecSpecific3 */, 0 /* codecSpecific4 */);\n codecConfigArray[codecCount++] = codecConfig;\n }\n\n codecConfig = new BluetoothCodecConfig(BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX_ADAPTIVE,\n mA2dpSourceCodecPriorityAptxAdaptive, BluetoothCodecConfig.SAMPLE_RATE_NONE,\n BluetoothCodecConfig.BITS_PER_SAMPLE_NONE, BluetoothCodecConfig\n .CHANNEL_MODE_NONE, 0 /* codecSpecific1 */,\n 0 /* codecSpecific2 */, 0 /* codecSpecific3 */, 0 /* codecSpecific4 */);\n codecConfigArray[codecCount++] = codecConfig;\n assigned_codec_length = codecCount;\n return codecConfigArray;\n }", "public static void main (String []args) throws FileNotFoundException {\n\t\tArrayList<Item> priorities = new ArrayList<Item>();\n\t\t\n\t\t// pq.id.100K1.1\n\t\t// pq.id.100K4.1\n\t\t// pq.id.10K1.2\n\t\t// pqsort.100K.3\n\t\t\n\t\t// do this to retrieve large cases via internet.\n\t\t//java.net.URL u;\n\t\t//Scanner s = new Scanner (u.openStream());\n\t\t\n\t\tFile f = new File (\"tests\\\\algs\\\\model\\\\performance\\\\pq_random\\\\pqsort.1K.1\");\n\t\tScanner sc = new Scanner (f);\n\t\twhile (sc.hasNext()) {\n\t\t\tString s = sc.nextLine();\n\t\t\tif (s.startsWith(\"pqh\")) continue;\n\t\t\tif (s.startsWith(\"com\")) continue;\n\t\t\t\n\t\t\tif (s.startsWith(\"dmn\")) {\n\t\t\t\tpriorities.add(sentinel);\n\t\t\t} else {\n\t\t\t\tStringTokenizer st = new StringTokenizer(s, \" \");\n\t\t\t\tst.nextToken();\n\t\t\t\tDouble d = Double.parseDouble(st.nextToken());\n\t\t\t\tInteger i = Integer.parseInt(st.nextToken());\n\t\t\t\tpriorities.add(new Item (i, d));\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t\t\n\t\t// Now ready to measure PQ.\n\t\tIPQueue ipq = new ArrayPQ();\n\t\t//IPQueue ipq = new BalancedTreePQ();\n\t\t\n\t\tTrialSuite minTS = new TrialSuite ();\n\t\tTrialSuite insTS = new TrialSuite ();\n\t\tlong n0 = System.currentTimeMillis();\n\t\tfor (int i = 0; i < priorities.size(); i++) {\n\t\t\tItem it = priorities.get(i);\n\t\t\tif (it == sentinel) {\n\t\t\t\tlong n1 = System.currentTimeMillis();\n\t\t\t\tipq.minimum();\n\t\t\t\tlong n2 = System.currentTimeMillis();\n\t\t\t\tminTS.addTrial(1, n1, n2);\n\t\t\t} else {\n\t\t\t\tlong n1 = System.currentTimeMillis();\n\t\t\t\tipq.insert(it.priority, it.item);\n\t\t\t\tlong n2 = System.currentTimeMillis();\n\t\t\t\tinsTS.addTrial(1, n1, n2);\n\t\t\t}\n\t\t}\n\t\tlong e0 = System.currentTimeMillis();\n\t\tSystem.out.println ((e0 - n0) + \" milliseconds for completion.\");\n\t\tSystem.out.println (\"min\");\n\t\tSystem.out.println (minTS.computeTable());\n\t\tSystem.out.println (\"insert\");\n\t\tSystem.out.println (insTS.computeTable());\n\t}", "public void makeFirstRound() {\n Strategy tactics = null;\n ArrayList<Producer> auxProducerList = new ArrayList<>(listOfProducers.getList());\n for (Distributor dst : listOfDistributors.getList()) {\n if (dst.getSubscribedproducers().isEmpty()) {\n int auxNeededPower = dst.getEnergyNeededKW();\n if (dst.getProducerStrategy().equals(\"GREEN\")) {\n tactics = new GreenStrategy();\n } else if (dst.getProducerStrategy().equals(\"PRICE\")) {\n tactics = new PriceStrategy();\n } else if (dst.getProducerStrategy().equals(\"QUANTITY\")) {\n tactics = new QuantityStrategy();\n }\n tactics.sorter(auxProducerList);\n for (Producer p : auxProducerList) {\n if (!(p.getMaxDistributors() == p.getCurrDistributors())) {\n dst.addSubscribedproducer(p);\n p.addDistIDs(dst.getId());\n p.addObserver(dst);\n p.setCurrDistributors(p.getCurrDistributors() + 1);\n auxNeededPower -= p.getEnergyPerDistributor();\n if (auxNeededPower < 0) {\n break;\n }\n }\n }\n }\n }\n\n Distributor bestDist = listOfDistributors.getBestDistinRound();\n\n for (Consumer auxcons : listOfConsumers.getList()) {\n auxcons.setBudget(auxcons.getInitialBudget() + auxcons.getMonthlyIncome());\n auxcons.setIdofDist(bestDist.getId());\n auxcons.setMonthstoPay(bestDist.getContractLength());\n auxcons.setToPay(bestDist.getContractPrice());\n bestDist.addSubscribedconsumer(auxcons);\n if (auxcons.getBudget() >= auxcons.getToPay()) {\n auxcons.addtoBudget(-auxcons.getToPay());\n auxcons.reduceMonths();\n bestDist.addBudget(auxcons.getToPay());\n } else {\n auxcons.setDuepayment(auxcons.getToPay());\n auxcons.reduceMonths();\n }\n if (auxcons.getMonthstoPay() == 0) {\n auxcons.setIdofDist(-1);\n }\n }\n\n for (Distributor d : listOfDistributors.getList()) {\n if (d.isBankrupt()) {\n continue;\n }\n d.reduceBudget();\n if (d.getBudget() < 0) {\n d.setBankrupt(true);\n }\n }\n }", "public static void main(String[] args) throws IOException {\n\t\tRandomizedQueue<String> randomizedQueue = new RandomizedQueue<String>();\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer sz = new StringTokenizer(br.readLine(),\" \");\n\t\twhile (sz.hasMoreTokens()) {\n\t\t\tString value = sz.nextToken();\n\t\t\tif (!(value.equals(\"-\"))) randomizedQueue.enqueue(value);\n\t\t\t//else if (!randomizedQueue.isEmpty()) StdOut.print(randomizedQueue.dequeue() + \" \");\n\t\t}\n\t\tfor(int i=0; i<randomizedQueue.size(); i++)\n\t\t\tStdOut.print(randomizedQueue.sample() + \" \");\n\t\tStdOut.println(\"(\" + randomizedQueue.size() + \" left on queue)\");\n\t\tfor(String x : randomizedQueue)\n\t\t\tSystem.out.println(\"Items in Queue : \"+ x);\n\n\t}", "void queueShrunk();", "private String get_one_queue_name(\r\n\t\t\tString admin_queue_base, \r\n\t\t\tString create_time,\r\n\t\t\tString sub_task_number,\r\n\t\t\tString current_terminal,\r\n\t\t\tHashMap<String, HashMap<String, String>> design_data) {\n\t\tString priority = public_data.TASK_DEF_PRIORITY;\r\n\t\tif (!design_data.containsKey(\"CaseInfo\")) {\r\n\t\t\tpriority = public_data.TASK_PRI_LOCALLY;\r\n\t\t} else if (!design_data.get(\"CaseInfo\").containsKey(\"priority\")) {\r\n\t\t\tpriority = public_data.TASK_PRI_LOCALLY;\r\n\t\t} else {\r\n\t\t\tpriority = design_data.get(\"CaseInfo\").get(\"priority\");\r\n\t\t\tPattern p = Pattern.compile(\"^\\\\d$\");\r\n\t\t\tMatcher m = p.matcher(priority);\r\n\t\t\tif (!m.find()) {\r\n\t\t\t\tpriority = public_data.TASK_PRI_LOCALLY;\r\n\t\t\t\tLOCAL_TUBE_LOGGER.warn(admin_queue_base + \":has wrong CaseInfo->priority, default value\" + public_data.TASK_PRI_LOCALLY + \"used.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t// task belong to this client: 0, assign task(0) > match task(1)\r\n\t\tString assignment = new String();\r\n\t\tString request_terminal = new String();\r\n\t\tString available_terminal = current_terminal.toLowerCase();\r\n\t\tif (!design_data.containsKey(\"Machine\")) {\r\n\t\t\tassignment = \"1\";\r\n\t\t} else if (!design_data.get(\"Machine\").containsKey(\"terminal\")) {\r\n\t\t\tassignment = \"1\";\r\n\t\t} else {\r\n\t\t\trequest_terminal = design_data.get(\"Machine\").get(\"terminal\").toLowerCase();\r\n\t\t\tif (request_terminal.contains(available_terminal)) {\r\n\t\t\t\tassignment = \"0\"; // assign task\r\n\t\t\t} else {\r\n\t\t\t\tassignment = \"1\"; // match task\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Max threads requirements\r\n\t\tString threads = new String(public_data.TASK_DEF_MAX_THREADS);\r\n\t\tif (!design_data.containsKey(\"Preference\")) {\r\n\t\t\tthreads = public_data.TASK_DEF_MAX_THREADS;\r\n\t\t} else if (!design_data.get(\"Preference\").containsKey(\"max_threads\")) {\r\n\t\t\tthreads = public_data.TASK_DEF_MAX_THREADS;\r\n\t\t} else {\r\n\t\t\tthreads = design_data.get(\"Preference\").get(\"max_threads\");\r\n\t\t\tPattern p = Pattern.compile(\"^\\\\d$\");\r\n\t\t\tMatcher m = p.matcher(threads);\r\n\t\t\tif (!m.find()) {\r\n\t\t\t\tthreads = public_data.TASK_DEF_MAX_THREADS;\r\n\t\t\t\tLOCAL_TUBE_LOGGER.warn(admin_queue_base + \":has wrong Preference->max_threads, default value \" + public_data.TASK_DEF_MAX_THREADS + \" used.\");\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\t// host restart requirements--for local jobs always be 0\t\t\r\n\t\tString restart_boolean = new String(public_data.TASK_DEF_HOST_RESTART);\r\n\t\tif (!design_data.containsKey(\"Preference\")) {\r\n\t\t\trestart_boolean = public_data.TASK_DEF_HOST_RESTART;\r\n\t\t} else if (!design_data.get(\"Preference\").containsKey(\"host_restart\")) {\r\n\t\t\trestart_boolean = public_data.TASK_DEF_HOST_RESTART;\r\n\t\t} else {\r\n\t\t\tString request_value = new String(design_data.get(\"Preference\").get(\"host_restart\").trim());\r\n\t\t\tif (!data_check.str_choice_check(request_value, new String [] {\"false\", \"true\"} )){\r\n\t\t\t\tLOCAL_TUBE_LOGGER.warn(admin_queue_base + \":has wrong Preference->host_restart, default value \" + public_data.TASK_DEF_HOST_RESTART + \" used.\");\r\n\t\t\t} else {\r\n\t\t\t\trestart_boolean = request_value;\r\n\t\t\t}\r\n\t\t}\r\n\t\tString restart = new String(\"0\");\r\n\t\tif (restart_boolean.equalsIgnoreCase(\"true\")) {\r\n\t\t\trestart = \"1\";\r\n\t\t} else {\r\n\t\t\trestart = \"0\";\r\n\t\t}\r\n\t\t// receive time\r\n\t\tString mark_time = time_info.get_time_hhmm();\r\n\t\tStringBuilder queue_name = new StringBuilder(\"\");\r\n\t\tqueue_name.append(priority);\r\n\t\tqueue_name.append(assignment);\r\n\t\tqueue_name.append(\"0\");//1, from remote; 0, from local\r\n\t\tqueue_name.append(\"@\");\r\n\t\tqueue_name.append(\"t\" + threads);\r\n\t\tqueue_name.append(\"r\" + restart);\r\n\t\tqueue_name.append(\"_\");\r\n\t\tqueue_name.append(\"run_\" + mark_time + \"_\" + sub_task_number + \"_\" + admin_queue_base + \"_\" + create_time);\r\n\t\treturn queue_name.toString();\r\n\t}", "public static void main(String[] args) {\n\t\tLab_11_ThreadPriority n=new Lab_11_ThreadPriority();\n\t\tLab_11_ThreadPriority n1=new Lab_11_ThreadPriority();\n\t\tLab_11_ThreadPriority n2=new Lab_11_ThreadPriority();\n\t\tLab_11_ThreadPriority n3=new Lab_11_ThreadPriority();\n\t\tn.start();\n\t\tn1.start();\n\t\tn2.start();\n\t\tn3.start();\n\t\tn.setPriority(NORM_PRIORITY);\n\t\tn1.setPriority(MAX_PRIORITY);\n\t\tn2.setPriority(MIN_PRIORITY);\n\t\t\n\t}", "public void runFIFO() {\n\n //init\n ArrayList<Processus> localProcess = new ArrayList<>(); //Creation of a local list of process\n for (Processus cpy : listOfProcess) { //Copy the list of process in the local list\n localProcess.add(cpy);\n }\n int size = listOfProcess.size(); //variable used to save the initial size of the list of process\n\n Processus executedProc = null; //ExecutedProc is the current process that is being execute\n Processus tmpProc = localProcess.get(0); //The tmpProc is the previous process executed\n\n //Variable we need to calcul\n double occupancyRate = 0;\n double averageWaitingTime = 0;\n double averageReturnTime = 0;\n int currentTime = 0;\n int occupancyTime = 0;\n int counter = 1;\n\n //beginning of the algo\n while (!localProcess.isEmpty()) { //As long as there are processes that are not done yet we keep going on\n\n //Determines the next process that will be executed\n for (Processus proc : localProcess) { //flow all remaining processes\n if (proc.getTime() <= currentTime) { //check if the currentTime of the process is below the currentTime\n if (localProcess.size() == 1) { //if there is only one process left\n executedProc = proc;\n } else if (proc.getCurrentOrder() <= tmpProc.getCurrentOrder()) { //selection of the older process (FIFO selection)\n executedProc = proc;\n tmpProc = proc;\n }\n }\n }\n\n //Check if the current process is assigned\n if (executedProc != null) {\n\n //execute the current ressource\n int tmpTime = 0;\n while (executedProc.getRessource(executedProc.getCurrentStep()) > tmpTime) { //As long as there is a resource\n for (Processus proc : localProcess) {\n if (proc.getTime() <= currentTime && !proc.equals(executedProc)) { //checking if there is another process waiting and set the new waiting time\n proc.setWaitingTime(1);\n }\n }\n currentTime++; //currentTime is updating at each loop\n occupancyTime++; //occupancyTime is updating at each loop\n tmpTime++;\n }\n\n executedProc.setCurrentStep(executedProc.getCurrentStep() + 1); //Update the currentStep to the next one (index of the lists of UC and inOut)\n\n if (executedProc.getCurrentStep() >= executedProc.getlistOfResource().size()) {//if it is the end of the process\n averageReturnTime += executedProc.getExecutedTime(); //update the average return time by adding the time that the process took\n localProcess.remove(executedProc); //remove the process from the list of process that needs to run\n }\n\n if (executedProc.getCurrentStep() <= executedProc.getListOfInOut().size()) { //If there is another inOut, it set the new time\n executedProc.setTime(executedProc.getInOut(executedProc.getCurrentStep() - 1) + currentTime);\n }\n\n //put the process at the end of the list (fifo order)\n executedProc.setCurrentOrder(counter);\n counter++;\n executedProc = null;\n } else {\n currentTime++;\n }\n }\n //end of the algo\n\n //Calculation of the variables\n occupancyRate = ((double) occupancyTime / (double) currentTime) * 100;\n for (Processus proc : listOfProcess) {\n averageWaitingTime += proc.getWaitingTime();\n }\n averageWaitingTime = averageWaitingTime / size;\n averageReturnTime = averageReturnTime / size;\n\n //Updating the global variables\n currentAverageReturnTime = averageReturnTime;\n logger.trace(\"Current average return time : \" + currentAverageReturnTime);\n currentAverageWaitingTime = averageWaitingTime;\n logger.trace(\"Current average waiting time : \" + currentAverageWaitingTime);\n currentOccupancyRate = occupancyRate;\n logger.trace(\"Current occupancy rate : \" + currentOccupancyRate);\n currentOccupancyTime = occupancyTime;\n logger.trace(\"Current occupancy time : \" + currentOccupancyTime);\n\n restList(); //reset the list to the origin values so the user can test another algo\n }", "private PriorityQueue<PCB> newRemainingQueue() {\n\n\t\t// Comparator for sorting low priorities first\n\t\tComparator<PCB> byLowestPriority =\n\t\t\t(p1, p2) -> new Integer(p1.getPriority()).compareTo(p2.getPriority());\n\n\t\treturn new PriorityQueue<>(byLowestPriority);\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tQueue<Item> pq = new PriorityQueue<Item>();\r\n\t\t\r\n\t\tpq.add(new Item(154,\"java\"));\r\n\t\tpq.add(new Item(45,\"c++\"));\r\n\t\tpq.add(new Item(4,\"c\"));\r\n\t\tpq.add(new Item(154,\"javascript\"));\r\n\t\tpq.add(new Item(160,\"html\"));\r\n\t\t\r\n\t\tSystem.out.println(pq);\r\n\t\t\r\n\t\tpq.poll();\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(pq);\r\n\t\t\r\n\t\tpq.poll();\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(pq);\r\n\t\t\r\n\t\tpq.poll();\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(pq);\r\n\t\t\r\n\t\tpq.poll();\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(pq);\r\n\t\t\r\n\t\tpq.poll();\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(pq);\r\n\t\t\r\n\t}", "public RandomizedQueue() {\r\n\t\tqueue = (Item[]) new Object[1];\r\n\t}", "@Test\n public void testMaxQueue() throws Throwable {\n internalMaxQueue(\"core\");\n internalMaxQueue(\"openwire\");\n internalMaxQueue(\"amqp\");\n }", "public static void test_3b(){\r\n try{\r\n System.out.println(\"\\n\\nTestCase-3B\\n\\n\");\r\n TestNetwork n=new TestNetwork(4,4,2);\r\n Paxos p=new Paxos(n);\r\n p.runPaxos();\r\n n.change_DPmode(-1,1);\r\n for(int i=0;i<10;i++){ //Block the channel of all processes\r\n n.block_channel(i, 1); \r\n n.reorder_msg(i,1); //Use LIFO stack as message queue \r\n }\r\n Thread.sleep(500);\r\n for(int i=0;i<4;i++) //Release all Proposers\r\n n.block_channel(i,0); \r\n Thread.sleep(1000);\r\n for(int i=0;i<9;i++) //Shuffling all message queues\r\n n.shuffle_msg(i);\r\n for(int i=4;i<8;i++) //Release all Acceptors\r\n n.block_channel(i,0);\r\n Thread.sleep(1000);\r\n n.block_channel(9,0); //Release one of the learner's channel\r\n Thread.sleep(1000); \r\n n.block_channel(8,0); //Lets release the next learner's channel\r\n Thread.sleep(5000);\r\n n.terminate_run();\r\n Thread.sleep(2000);\r\n System.out.println(\"\\n\\nTERMINATED PAXOS RUN-3B\");\r\n n.printTrace();\r\n }\r\n catch(Exception e){}\r\n}", "public static void main(String[] args) {\n Queue<Queue<Integer>> queues = new Queue<>(QUEUE_COUNT);\n // create and insert game queues\n for (int i = 0; i < QUEUE_COUNT; i++) {\n // our capacity is 7\n Queue<Integer> q = new Queue<>(QUEUE_CAPACITY);\n queues.enqueue(q);\n }\n\n boolean turn = true; // true -> player 1, false -> player 2\n boolean allFull;\n while (true) {\n allFull = true; // reset\n\n // user plays\n int randomQueue = randQueue();\n int randomNumber = randNumber();\n\n // if random selected queue is full, select another\n while (queues.elementAt(randomQueue).isFull())\n randomQueue = randQueue();\n\n // enqueue number to selected queue\n queues.elementAt(randomQueue).enqueue(randomNumber);\n\n // print current state to screen\n System.out.println(\"\\nUser\" + (turn ? 1 : 2) + \":\");\n for (int qi = 0; qi < QUEUE_COUNT; qi++) {\n Queue<Integer> q = queues.elementAt(qi);\n System.out.println(\"Q\" + (qi + 1) + \" \" + q.toString());\n }\n\n // SEQUENCES\n // =========\n\n // flag for indicating if any sequence is encountered during search\n boolean hasSequence = false;\n\n // HORIZONTAL SEQUENCES\n for (int i = 0; i < QUEUE_COUNT; i++) {\n Queue<Integer> q = queues.elementAt(i);\n if (q.size() < 3)\n continue;\n\n for (int j = 1; j < q.size() - 1; j++) {\n // skip first and last element and check through windows across queue, sized 3\n if (isSequence(q.elementAt(j - 1), q.elementAt(j), q.elementAt(j + 1))) {\n hasSequence = true;\n break;\n }\n }\n\n // already found a sequence? stop.\n if (hasSequence)\n break;\n }\n\n // no need to play further or check the terminal conditions\n if (hasSequence) {\n allFull = false;\n break;\n }\n\n // VERTICAL SEQUENCES\n\n // find smallest queue\n int minLength = 999;\n for (int i = 0; i < QUEUE_COUNT; i++)\n if (queues.elementAt(i).size() < minLength)\n minLength = queues.elementAt(i).size();\n\n for (int i = 0; i < minLength; i++) {\n if (isSequence(queues.elementAt(0).elementAt(i), queues.elementAt(1).elementAt(i), queues.elementAt(2).elementAt(i))) {\n hasSequence = true;\n break;\n }\n }\n\n if (hasSequence) {\n allFull = false;\n break;\n }\n\n // are queues full?\n for (int i = 0; i < QUEUE_COUNT; i++) {\n allFull = allFull && queues.elementAt(i).isFull();\n }\n\n if (allFull) {\n break;\n }\n\n turn = !turn;\n }\n\n System.out.println();\n if (allFull) {\n System.out.println(\"Tie!\");\n } else {\n System.out.println(\"winner: User\" + (turn ? 1 : 2));\n }\n }", "public static void main(String[] args) {\n Timer timer = new Timer();\r\n timer.start();\r\n \r\n /*Integer[] a = new Integer[1000000];\r\n Random rand = new Random();\r\n double d;\r\n int in;\r\n for(int x = 0; x < 1000000; x++){\r\n d = Math.random()*50;\r\n in = (int) d;\r\n a[x] = in;\r\n }*/\r\n \r\n Integer[] a = new Integer[5];\r\n a[0] = new Integer(2);\r\n a[1] = new Integer(1);\r\n a[2] = new Integer(4);\r\n a[3] = new Integer(3);\r\n\ta[4] = new Integer(8);\r\n priorityqSort(a);\r\n /*Queue<Integer> pq1 = new PriorityQueue<Integer>();\r\n for (Integer x: a){\r\n pq1.add(x);\r\n }\r\n System.out.println(\"pq1: \" + pq1);*/\r\n \r\n /*Queue<String> pq2 = new PriorityQueue<>();\r\n pq2.add(\"4\");\r\n pq2.add(\"9\");\r\n pq2.add(\"2\");\r\n pq2.add(\"1\");\r\n pq2.add(\"5\");\r\n pq2.add(\"0\");\r\n System.out.println(\"pq: \" + pq2);*/\r\n \r\n timer.end();\r\n System.out.println(timer);\r\n }", "public abstract int priority();", "public int add (String name, int priority) {\n lengthMutex.lock ();\n try\n {\n while (length >= maxSize)\n {\n // System.out.println (\"FUUUUUUUUUUUUUUUUUULLLLLLLLLLLLLLLLLLLLLLLLLLL\");\n full.await ();\n }\n }\n catch (Exception e)\n {}\n finally\n {\n lengthMutex.unlock ();\n }\n\n int result = -1;\n nameQMutex.lock ();\n if (!nameQ.contains (name))\n {\n // System.out.println (\"branch 0\");\n nameQ.add (name);\n nameQMutex.unlock ();\n\n if (search (name) == -1)\n {\n // System.out.println (\"branch 1a\");\n qLock[priority].lock ();\n q[priority].add (name);\n // print ();\n qLock[priority].unlock ();\n\n // System.out.println (\"(\" + name + \", \" + priority + \") before...\");\n result = search (name);\n // System.out.println (\"(\" + name + \", \" + priority + \") after...\");\n\n lengthMutex.lock ();\n length++;\n empty.signal ();\n lengthMutex.unlock ();\n }\n // else\n // System.out.println (\"branch 1b\");\n nameQMutex.lock ();\n nameQ.remove (name);\n nameQMutex.unlock ();\n }\n else\n {\n // System.out.println (\"branch 0b\");\n nameQMutex.unlock ();\n }\n\n return result;\n }", "public abstract void backoffQueue();", "private void addCrusherScoriaRecipes(Consumer<IFinishedRecipe> consumer, String basePath) {\n crushing(consumer, BYGBlocks.SCORIA_STONE, BYGBlocks.SCORIA_COBBLESTONE, basePath + \"to_cobblestone\");\n crushing(consumer, BYGBlocks.SCORIA_SLAB, BYGBlocks.SCORIA_COBBLESTONE_SLAB, basePath + \"slabs_to_cobblestone_slabs\");\n crushing(consumer, BYGBlocks.SCORIA_STAIRS, BYGBlocks.SCORIA_COBBLESTONE_STAIRS, basePath + \"stairs_to_cobblestone_stairs\");\n crushing(consumer, BYGBlocks.SCORIA_WALL, BYGBlocks.SCORIA_COBBLESTONE_WALL, basePath + \"walls_to_cobblestone_walls\");\n //Scoria Stone Bricks -> Cracked Scoria Stone Bricks\n crushing(consumer, BYGBlocks.SCORIA_STONEBRICKS, BYGBlocks.CRACKED_SCORIA_STONE_BRICKS, basePath + \"bricks_to_cracked_bricks\");\n //Cracked Scoria Stone Bricks -> Scoria\n crushing(consumer, BYGBlocks.CRACKED_SCORIA_STONE_BRICKS, BYGBlocks.SCORIA_STONE, basePath + \"from_cracked_bricks\");\n //Scoria Stone Bricks -> Scoria\n crushing(consumer, BYGBlocks.SCORIA_STONEBRICK_SLAB, BYGBlocks.SCORIA_SLAB, basePath + \"brick_slabs_to_slabs\");\n crushing(consumer, BYGBlocks.SCORIA_STONEBRICK_STAIRS, BYGBlocks.SCORIA_STAIRS, basePath + \"brick_stairs_to_stairs\");\n crushing(consumer, BYGBlocks.SCORIA_STONEBRICK_WALL, BYGBlocks.SCORIA_WALL, basePath + \"brick_walls_to_walls\");\n //Scoria Pillar -> Scoria\n ItemStackToItemStackRecipeBuilder.crushing(\n ItemStackIngredient.from(BYGBlocks.SCORIA_PILLAR),\n new ItemStack(BYGBlocks.SCORIA_STONE, 2)\n ).addCondition(modLoaded)\n .build(consumer, Mekanism.rl(basePath + \"from_pillar\"));\n }", "public void initialExecutionResourcesExhausted() {\n \n \t\t// if (this.environment.getExecutingThread() != Thread.currentThread()) {\n \t\t// throw new ConcurrentModificationException(\n \t\t// \"initialExecutionResourcesExhausted must be called from the task that executes the user code\");\n \t\t// }\n \n \t\t// Construct a resource utilization snapshot\n \t\tfinal long timestamp = System.currentTimeMillis();\n \t\t// Get CPU-Usertime in percent\n \t\tThreadMXBean threadBean = ManagementFactory.getThreadMXBean();\n \t\tlong userCPU = (threadBean.getCurrentThreadUserTime() / NANO_TO_MILLISECONDS) * 100\n \t\t\t/ (timestamp - this.startTime);\n \n \t\t// collect outputChannelUtilization\n \t\tfinal Map<ChannelID, Long> channelUtilization = new HashMap<ChannelID, Long>();\n \t\tlong totalOutputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfOutputGates(); ++i) {\n \t\t\tfinal OutputGate<? extends Record> outputGate = this.environment.getOutputGate(i);\n \t\t\tfor (int j = 0; j < outputGate.getNumberOfOutputChannels(); ++j) {\n \t\t\t\tfinal AbstractOutputChannel<? extends Record> outputChannel = outputGate.getOutputChannel(j);\n \t\t\t\tchannelUtilization.put(outputChannel.getID(),\n \t\t\t\t\tLong.valueOf(outputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalOutputAmount += outputChannel.getAmountOfDataTransmitted();\n \t\t\t}\n \t\t}\n \t\tlong totalInputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfInputGates(); ++i) {\n \t\t\tfinal InputGate<? extends Record> inputGate = this.environment.getInputGate(i);\n \t\t\tfor (int j = 0; j < inputGate.getNumberOfInputChannels(); ++j) {\n \t\t\t\tfinal AbstractInputChannel<? extends Record> inputChannel = inputGate.getInputChannel(j);\n \t\t\t\tchannelUtilization.put(inputChannel.getID(),\n \t\t\t\t\tLong.valueOf(inputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalInputAmount += inputChannel.getAmountOfDataTransmitted();\n \n \t\t\t}\n \t\t}\n \t\tBoolean force = null;\n \n \t\tif (this.environment.getInvokable().getClass().isAnnotationPresent(Stateful.class)\n \t\t\t&& !this.environment.getInvokable().getClass().isAnnotationPresent(Stateless.class)) {\n \t\t\t// Don't checkpoint statefull tasks\n \t\t\tforce = false;\n \t\t} else {\n \t\t\t// look for a forced decision from the user\n \t\t\tForceCheckpoint forced = this.environment.getInvokable().getClass().getAnnotation(ForceCheckpoint.class);\n \t\t\tif (forced != null) {\n \t\t\t\tforce = forced.checkpoint();\n \t\t\t}\n \t\t}\n \t\tfinal ResourceUtilizationSnapshot rus = new ResourceUtilizationSnapshot(timestamp, channelUtilization, userCPU,\n \t\t\tforce, totalInputAmount, totalOutputAmount);\n \n \t\t// Notify the listener objects\n \t\tfinal Iterator<ExecutionListener> it = this.registeredListeners.iterator();\n \t\twhile (it.hasNext()) {\n \t\t\tit.next().initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t\t}\n \n \t\t// Finally, propagate event to the job manager\n \t\tthis.taskManager.initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t}", "public void hardwareResources() {\n\t\t\r\n\t}", "public void rushToSecurity() {\n int priority = Thread.currentThread().getPriority();\n Thread.currentThread().setPriority(priority + 1);\n\n //sleep for a random time\n try {\n Thread.sleep((long) Math.random() * 50000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n //setPriority back to default\n Thread.currentThread().setPriority(priority);\n }", "public static void banker(){\n while(terminatedCount < taskList.size()){\n releaseArr = new int [numResources];\n\n // first address any blocked tasks\n addressWaitingBanker();\n // address any unblocked tasks\n addressNonWaitingBanker();\n // update released resources\n updateResources();\n time += 1;\n\n for(Instruction i : removeSet){\n waitingList.remove(i);\n }\n Collections.sort(waitingList);\n }\n\n }", "public RandomizedQueue() {\n\t\tN = 0;\n\t\tarr = (Item []) new Object[1];\n\t}" ]
[ "0.6136552", "0.58940053", "0.5766884", "0.5687894", "0.5678521", "0.56099516", "0.5584792", "0.5524906", "0.5522944", "0.55047834", "0.54561895", "0.54355514", "0.54333675", "0.5403805", "0.5378222", "0.5359787", "0.535762", "0.53559047", "0.5347692", "0.53344786", "0.53101724", "0.53036374", "0.5299656", "0.52683485", "0.5264827", "0.5246134", "0.5192999", "0.5179262", "0.5170551", "0.51641136", "0.5162772", "0.51566803", "0.5154386", "0.5151469", "0.51413", "0.5131769", "0.5113586", "0.5113586", "0.51134473", "0.51022303", "0.5098243", "0.50937515", "0.5093371", "0.5088039", "0.508212", "0.50771224", "0.5073364", "0.5072033", "0.5069965", "0.5069164", "0.50687844", "0.5061401", "0.5058848", "0.50381196", "0.5030664", "0.50249463", "0.50247574", "0.50218564", "0.50166404", "0.5009595", "0.5003531", "0.50017816", "0.49947464", "0.49851772", "0.49791348", "0.49717128", "0.49493968", "0.4943424", "0.49411836", "0.49387985", "0.49349982", "0.49330944", "0.49308687", "0.49297825", "0.4928598", "0.49259126", "0.4923051", "0.49197522", "0.4918576", "0.4915858", "0.4911866", "0.4904013", "0.49039903", "0.489893", "0.48983175", "0.48943976", "0.48942173", "0.48919934", "0.4890648", "0.48877043", "0.48750222", "0.4872544", "0.48711058", "0.48675773", "0.48517755", "0.48512593", "0.48511708", "0.48502377", "0.484905", "0.4841075", "0.4834779" ]
0.0
-1
Returns true if a given URN is in a fixed set of entity types, false otherwise.
public static boolean isSupportedEntityType(@Nonnull final Urn urn, @Nonnull final Set<String> entityTypes) { final String entityType = urn.getEntityType(); return entityTypes.contains(entityType); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean entityDefsMatch(AtlasTypesDef typesDef) {\n return compareLists(this.getEntityDefs(), typesDef.getEntityDefs());\n }", "boolean getContainEntities();", "boolean isApplicableForAllAssetTypes();", "boolean isUF(Formula f);", "boolean hasIsPersonType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "private boolean relationshipDefsMatch(AtlasTypesDef typesDef) {\n return compareLists(this.getRelationshipDefs(), typesDef.getRelationshipDefs());\n }", "private boolean startsWithAny(List<String> packagesToTreatAsOpaque, String qualifiedTypeName) {\n for (String packageName : packagesToTreatAsOpaque) {\n if (!Strings.isNullOrEmpty(packageName) && qualifiedTypeName.startsWith(packageName)) {\n return true;\n }\n }\n return false;\n }", "public boolean isSetEntity_type() {\n return this.entity_type != null;\n }", "boolean hasUserType();", "public boolean contains(VehicleType t){\n\t\tfor(int i = 0; i < types.size(); i++){\n\t\t\tif(types.get(i).getVehicleType().equals(t.getVehicleType())){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean isOneOf( Set<Type> types ) {\n return types.contains(type);\n }", "boolean hasCardType();", "private boolean contains(Collection<ResourceType> resourceTypes, ResourceType resourceType) {\n for (ResourceType rt : resourceTypes) {\n if (resourceType.getName().equals(rt.getName()))\n return true;\n }\n return false;\n }", "boolean hasStoredType();", "public static boolean isUuidUrn(String urn) {\n\t\tfinal int stringLength = 45; // URN string length\n\t\tfinal int prefixLength = 9; // URN prefix length\n\t\tif (urn != null && urn.length() == stringLength) {\n\t\t\tString uuid = urn.substring(prefixLength);\n\t\t\treturn UuidValidator.isValid(uuid);\n\t\t}\n\t\treturn false;\n\t}", "public static boolean isType(ClassifierFacade classifier, String typeName)\r\n {\r\n boolean isType = false;\r\n if (classifier != null && typeName != null)\r\n {\r\n final String type = StringUtils.trimToEmpty(typeName);\r\n String name = StringUtils.trimToEmpty(classifier.getFullyQualifiedName(true));\r\n isType = name.equals(type);\r\n // if this isn't a type defined by typeName, see if we can find any\r\n // types that inherit from the type.\r\n if (!isType)\r\n {\r\n isType = CollectionUtils.find(classifier.getAllGeneralizations(), new Predicate()\r\n {\r\n public boolean evaluate(Object object)\r\n {\r\n String name = StringUtils.trimToEmpty(\r\n ((ModelElementFacade)object).getFullyQualifiedName(true));\r\n return name.equals(type);\r\n }\r\n }) != null;\r\n }\r\n }\r\n return isType;\r\n }", "public boolean showAllOccupationTypes() {\n return occupationTypes.contains(OccupationType.TOIMINNANOHJAAJA);\n }", "boolean hasGoodsType();", "private boolean isEntityTypeClass(Map<String, Entity> entitiesMap, String typeName) {\r\n Entity typeEntity = entitiesMap.get(typeName);\r\n return typeEntity != null && EntityType.CLASS.equals(typeEntity.getEntityType());\r\n }", "boolean hasSearchPersonTypeId();", "@Override\n @NoProxy\n public boolean isRecurringEntity() {\n return testRecurring() ||\n hasExdates() ||\n hasRdates() ||\n hasExrules() ||\n hasRrules();\n }", "boolean hasSurrogateType();", "public boolean containsRMneumonics() {\n\t\tswitch(this) {\n\t\t\n\t\tcase NOTA -> \t{return true;}\n\t\tcase NOTX -> \t{return true;}\n\t\tcase NEGA -> \t{return true;}\n\t\tcase NEGX -> \t{return true;}\n\t\tcase ASLA -> \t{return true;}\n\t\tcase ASLX -> \t{return true;}\n\t\tcase ASRA -> \t{return true;}\n\t\tcase ASRX -> \t{return true;}\n\t\tcase ROLA -> \t{return true;}\n\t\tcase ROLX -> \t{return true;}\n\t\tcase RORA -> \t{return true;}\n\t\tcase RORX -> \t{return true;}\n\t\t\n\t\tdefault -> {return false;}\n\t\t\n\t\t}\n\t}", "boolean containsAll(String type) {\n boolean containsType = contains(type);\n if (!containsType) {\n for (ASTNode child : children) {\n containsType = child.containsAll(type);\n if (containsType) return true;\n }\n\n // should be false\n return containsType;\n } else return true;\n }", "boolean contains(String type) {\n for (ASTNode child : children) {\n if (child.getType().equals(type)) return true;\n }\n\n return false;\n }", "public static boolean isUsableType(byte t) {\n switch (t) {\n case UNKNOWN: return false ;\n case NULL: return false ;\n case ERROR: return false ;\n default :return true ;\n }\n }", "private boolean isTypeExists(Context context, String typeName) throws Exception\r\n {\r\n boolean typeExists = false;\r\n //String command = \"temp query bus '\" + typeName + \"' * *\";\r\n String command = \"temp query bus $1 $2 $3\";\r\n\r\n String result = MqlUtil.mqlCommand(context, command,typeName,\"*\",\"*\");\r\n if (result != null && !result.isEmpty())\r\n {\r\n typeExists = true;\r\n }\r\n return typeExists;\r\n }", "boolean hasReqardTypeFifteen();", "boolean hasHasRestraintType();", "boolean antecedentsContain(LayerType type) {\n if (this.antecedents.size() == 0)\n return false;\n\n boolean antecendentsContainType = false;\n\n for (LayerType t: this.antecedents)\n if (t == type)\n antecendentsContainType = true;\n\n return antecendentsContainType;\n }", "boolean hasDocumentType();", "boolean hasRfIdentifier();", "public static boolean contains(String test) {\r\n\r\n for (classTypes c : classTypes.values()) {\r\n String tmp = \"edu.pjwstk.jps.model.\" + c.name();\r\n if (tmp.equals(test)) {\r\n return true;\r\n }\r\n }\r\n\r\n return false;\r\n }", "boolean hasEntity();", "boolean hasEntity();", "@Override\n\t\tpublic boolean hasRelationship(RelationshipType... types) {\n\t\t\treturn false;\n\t\t}", "public boolean exists() {\n Entity e = root;\n if (e == null) {\n if (parent != null) {\n e = parent.get(ContentType.EntityType, null);\n }\n }\n if (e == null) {\n return false;\n }\n \n if (isIndexSelector()) {\n return e instanceof EntityList;\n }\n \n if (e.getEntity().getEntityType().isDynamic()) {\n return true;\n }\n Property prop = property;\n if (prop == null) {\n prop = e.getEntity().getEntityType().findProperty(tags);\n }\n return prop != null;\n }", "public boolean containsBaseType(final BaseType[] baseTypes) {\n for (final SingleValue value : container.values()) {\n if (Arrays.asList(baseTypes).contains(value.getBaseType())) {\n return true;\n }\n }\n\n return false;\n }", "public boolean appliesToUid(int uid) {\n if (null == mUids) return true;\n for (UidRange range : mUids) {\n if (range.contains(uid)) {\n return true;\n }\n }\n return false;\n }", "private boolean isInwardType() {\n\t\tboolean isInward = false;\n\n\t\t//Booking Type\n\t\tif (cbBookingType.getText().equals(INWARD_TYPE))\n\t\t\tisInward = true;\n\n\t\treturn isInward;\n\t}", "boolean isForDomain();", "@VisibleForTesting\n public boolean appliesToUidRange(@Nullable UidRange requiredRange) {\n if (null == mUids) return true;\n for (UidRange uidRange : mUids) {\n if (uidRange.containsRange(requiredRange)) {\n return true;\n }\n }\n return false;\n }", "public abstract boolean isReusableWith(DTDSubset intSubset);", "protected boolean hasTypeReference(NameReference reference) {\n\t\tNameReferenceKind kind = reference.getReferenceKind();\n\t\tif (kind == NameReferenceKind.NRK_GROUP) {\n\t\t\tNameReferenceGroup group = (NameReferenceGroup)reference;\n\t\t\tList<NameReference> subreferenceList = group.getSubReferenceList();\n\t\t\tif (subreferenceList == null) return false;\n\t\t\tfor (NameReference subreference : subreferenceList) {\n\t\t\t\tif (hasTypeReference(subreference)) return true;\n\t\t\t}\n\t\t\treturn false;\n\t\t} else if (kind == NameReferenceKind.NRK_TYPE) return true;\n\t\telse return false;\n\t}", "public boolean contains(int type) {\n\t\tint n = check(type);\n\t\treturn n >= 64 ? (n1 & mask(n - 64)) != 0L : (n0 & mask(n)) != 0L;\n\t}", "ImmutableList<SchemaOrgType> getIsFamilyFriendlyList();", "protected static boolean containsUnknown(Type[] types) {\n for (Type type : types) if (containsUnknown(type)) return true;\n\n return false;\n }", "private boolean compatibleNodeTypes(AxiomTreeNode t1, AxiomTreeNode t2) {\n if (!t1.getNodeType().equals(t2.getNodeType())) {\n return false;\n }\n \n switch (t1.getNodeType()) {\n case CARD:\n int label1 = (Integer) t1.getLabel();\n int label2 = (Integer) t2.getLabel();\n return (label1 == label2);\n \t\n case OWLOBJECT:\n OWLObject o1 = (OWLObject) t1.getLabel();\n OWLObject o2 = (OWLObject) t2.getLabel();\n //System.out.println(o1.getClass());\n //System.out.println(o2.getClass());\n //Check for datatypes - then check datatype to see match. Else, return true if compatible.\n if(o1.getClass() == o2.getClass())\n {\n \tif(!o1.getDatatypesInSignature().isEmpty())\n \t{\n \t\t//Need to check if built in first. First check is convenience, datatypes should match\n \t\t//If one is built in, so should other. If neither is built in, this is also a viable match\n \t\t//If not equal and at least one is built in, its not a match.\n \t\tOWLDatatype dt1 = (OWLDatatype) o1.getDatatypesInSignature().toArray()[0];\n \t\t\tOWLDatatype dt2 = (OWLDatatype) o2.getDatatypesInSignature().toArray()[0];\n \t\t\t//System.out.println(\"DT1: \" + dt1);\n \t\t\t//System.out.println(\"DT2: \" + dt2);\n \t\tif(dt1.equals(dt2) && dt1.isBuiltIn())\n \t\t{\t\n \t\t\t//System.out.println(\"Standard state\");\n \t\t\t//System.out.println(o1.equals(o2));\n \t\t\treturn o1.equals(o2);\n \t\t}\n \t\telse if(!dt1.isBuiltIn() && !dt2.isBuiltIn())\n \t\t{\n \t\t\t//System.out.println(\"Unique state\");\n \t\t\treturn true;\n \t\t}\n \t\telse\n \t\t{\n \t\t\t//System.out.println(\"Rejection state\");\n \t\t\treturn false;\n \t\t}\n \n \t}\n \telse\n \t{\n \t\treturn true;\n \t}\n }\n else\n {\n \treturn false;\n }\n }\n return false;\n }", "static boolean anyObjectTypes(Object[] ptypes) {\n for (Object ptype : ptypes) {\n if (isObjectType(ptype)) {\n return true;\n }\n }\n return false;\n }", "@Override\n\tpublic boolean contains(Type t) {\n\t\treturn true;\n\t}", "boolean containsPowertypeRange(Generalization powertypeRange);", "boolean hasUa();", "public boolean isType (Uid u, String tn, int st) throws ObjectStoreException\n {\n return ((currentState(u, tn) == st) ? true : false);\n }", "public boolean hasORDERTYPESID() {\n return fieldSetFlags()[10];\n }", "public final boolean matches(List<Type> typeList) {\n return typeList.equals(pattern);\n }", "public boolean isKnownFileType(FileType t) {\n\treturn knownTypes.contains(t);\r\n }", "public static boolean isRelationshipElementType(IElementType type) {\r\n\t\tboolean result = false;\r\n\t\tEClass eclass = type.getEClass();\r\n\t\tif (UMLPackage.Literals.RELATIONSHIP.isSuperTypeOf(eclass)\r\n\t\t\t\t|| UMLPackage.Literals.CONNECTOR.isSuperTypeOf(eclass)) {\r\n\t\t\tresult = true;\r\n\t\t}\r\n\t\t\r\n\t\treturn result;\r\n\t}", "public boolean satisfiedByUids(@NonNull NetworkCapabilities nc) {\n if (null == nc.mUids || null == mUids) return true; // The network satisfies everything.\n for (UidRange requiredRange : mUids) {\n if (requiredRange.contains(nc.mEstablishingVpnAppUid)) return true;\n if (!nc.appliesToUidRange(requiredRange)) {\n return false;\n }\n }\n return true;\n }" ]
[ "0.6004096", "0.5788276", "0.54996496", "0.546673", "0.54363745", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5431937", "0.53646326", "0.5363751", "0.53615797", "0.53602815", "0.5355178", "0.533594", "0.5316109", "0.5312238", "0.53080475", "0.52987576", "0.52869236", "0.52741134", "0.5263535", "0.5244959", "0.5242353", "0.52367866", "0.5201613", "0.51981574", "0.51889306", "0.51605475", "0.51569855", "0.51543874", "0.5141028", "0.51375663", "0.5132363", "0.51190585", "0.5115248", "0.511264", "0.511264", "0.5103862", "0.50847393", "0.50761235", "0.50623053", "0.5062127", "0.50614667", "0.5061257", "0.50504184", "0.50433856", "0.5042549", "0.503492", "0.5030135", "0.50217634", "0.50194603", "0.5017433", "0.50119025", "0.4993762", "0.4989229", "0.49778038", "0.497571", "0.49744785", "0.49628648", "0.49601844" ]
0.68138754
0
No setAuthor method because the author should not change
public void setContact(String email){ contact = email; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAuthor(String author) {\r\n this.author = author;\r\n }", "@Override\n public void author_()\n {\n }", "@Override\r\n\tpublic void setAuthor(String author) {\n\t\tsuper.setAuthor(author);\r\n\t}", "public void setAuthor(String author) {\n\tthis.author = author;\n}", "public void setAuthor(String author) {\n this.author = author;\n }", "public void setAuthor(String author) {\n this.author = author;\n }", "public void setAuthor(String author) {\n this.author = author;\n }", "public void setAuthor(String author) {\n this.author = author;\n }", "public void setAuthor(String author) {\n this.author = author;\n }", "@Override\n public void author()\n {\n }", "public void setAuthor(String author)\r\n {\r\n m_author = author;\r\n }", "public String getAuthor() { return author_; }", "public void setAuthor(String author) {\r\n\t\tthis.author = author;\r\n\t}", "public void setAuthor(Author author) {\r\n if (author != null) {\r\n this.author = author;\r\n }\r\n }", "public void setAuthor(Person author)\n {\n this.author = author;\n }", "public String getAuthor() {\r\n return author;\r\n }", "@Override\n\tpublic String author() {\n\t\treturn author;\n\t}", "public String getAuthor(){\n return author;\n \n }", "public void setAuthor(Player author){\n this.playerAuthor = author;\n }", "@Override\n\tpublic String getAuthor() {\n\t\treturn \"\";\n\t}", "public String getAuthor() {\r\n\t\treturn author;\r\n\t}", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "@Override\r\n\tpublic String getAuthor() {\n\t\treturn super.getAuthor();\r\n\t}", "public void setAuthor(String value) {\n setAttributeInternal(AUTHOR, value);\n }", "public Author getAuthor() {\r\n return author;\r\n }", "public void setAuthor(String author) {\r\n String old = this.author;\r\n this.author = author;\r\n this.changeSupport.firePropertyChange(\"author\", old, this.author );\r\n }", "public String getAuthor(){return author;}", "public void setAuthor(String author) {\n\t\tauth = author;\n\t}", "public String getAuthor() {\n return mAuthor;\n }", "public String getAuthor();", "public String getAuthor() {\n\treturn author;\n}", "public String getAuthor() {\r\n\t\treturn oAuthor;\r\n\t}", "public String getAuthor() {\n\t\treturn null;\r\n\t}", "public void updateAuthor(Author author);", "public java.lang.String getAuthor() {\n return author;\n }", "public void setAuthor(final Author author) {\n\t\tthis.author = author;\n\t}", "public java.lang.String getAuthor() {\n return author;\n }", "public void setAuthors(String _authors) { authors = _authors; }", "@Override\n \tpublic void setAuthorString(String authorString) {\n \t\tthis.authorString = authorString;\n \t}", "default String getAuthor() {\r\n\t\treturn \"unknown\";\r\n\t}", "public void setAuthor(String author) {\n this.author = author == null ? null : author.trim();\n }", "public void setAuthor(String author) {\n this.author = author == null ? null : author.trim();\n }", "public void setAuthor(String author) {\n this.author = author == null ? null : author.trim();\n }", "public void setAuthor(String author) {\n this.author = author == null ? null : author.trim();\n }", "public abstract String getAuthor();", "public String getAuthorName() {\n return authorName;\n }", "public String getAuthorName() {\n return authorName;\n }", "@Override\n \tpublic void setAuthors(String authors) {\n \t\t// TODO Auto-generated method stub\n \n \t}", "Builder addAuthor(String value);", "public com.babbler.ws.io.avro.model.BabbleValue.Builder setAuthor(java.lang.String value) {\n validate(fields()[0], value);\n this.author = value;\n fieldSetFlags()[0] = true;\n return this;\n }", "public String getAuthorName() {\n return this.authorName;\n }", "public void setAuthorName(String authorName) {\n this.authorName = authorName;\n }", "public void setAuthorName(String authorName) {\n this.authorName = authorName;\n }", "public String getAuthor() {\n\t\treturn \"Prasoon, Vikas, Shantanu\";\n\t}", "@Override\n\tpublic void setAuthor(java.lang.String author) {\n\t\t_news_Blogs.setAuthor(author);\n\t}", "public User getAuthor() {\n return author;\n }", "String getAuthor();", "String getAuthor();", "public final native void setAuthor(String author) /*-{\n this.setAuthor(author);\n }-*/;", "public String getAuthor()\r\n {\r\n return(\"Judy O'Brien\");\r\n }", "public String getAuthor()\r\n {\r\n return (m_author);\r\n }", "public void setAuthorLocal(String author) {\r\n\t\toAuthor = author;\r\n\t}", "public String getAuthorName() {\n return mAuthorName;\n }", "public Author getAuthor() {\n\t\treturn this.author;\n\t}", "@Override\n\tpublic String getDescription() {\n\t\treturn author;\n\t}", "public IPerson getAuthor() {\n\t\treturn fAuthor;\n\t}", "public void printAuthor()\n {\n System.out.println(\"by: \" + author);\n }", "@Override\n public String toString() {\n return getAuthor().getName();\n }", "public void addAuthor(Author author){\n authors.add(author);\n }", "public String getBookAuthor() {\n return bookAuthor;\n }", "public String getAuthor() {\n\t\treturn auth;\n\t}", "public void addAuthorAction()\n\t{\n\t\tViewNavigator.loadScene(\"Add Author\", ViewNavigator.ADD_AUTHOR_SCENE);\n\t}", "Builder addAuthor(Person value);", "public void setAuthorisor(String authorisor)\n\t{\n\t\tthis.authorisor = Toolbox.trim(authorisor, 4);\n\t}", "String getAuthorName();", "public String getAuthorId() {\n return authorId;\n }", "@Override\n\tpublic java.lang.String getAuthor() {\n\t\treturn _news_Blogs.getAuthor();\n\t}", "public void setAuthorId(String authorId) {\n this.authorId = authorId;\n }", "public void setAuthor(IPerson author) throws IllegalArgumentException {\n\t\tif (null == author)\n\t\t\tthrow new IllegalArgumentException(\"author null\");\n\n\t\tIPerson oldAuthor = getAuthor();\n\n\t\tif (author.equals(oldAuthor))\n\t\t\treturn;\n\n\t\tfAuthor = author;\n\n\t\tfAuthor.addPropertyChangeListener(new PropertyChangeListener() {\n\t\t\tpublic void propertyChange(PropertyChangeEvent evt) {\n\t\t\t\tfirePropertyChange(evt);\n\t\t\t}\n\t\t});\n\n\t\tfirePropertyChange(\"author\", oldAuthor, author);\n\t}", "@Override\r\n\tpublic String getTagName() {\n\t\treturn \"author\";\r\n\t}", "public String getAuthor() {\n return (String)getAttributeInternal(AUTHOR);\n }", "public void candidateDetails(Author authorObject);", "public IAuthor getAuthor();", "public void setModifiAuthor(String modifiAuthor) {\n this.modifiAuthor = modifiAuthor;\n }", "public void setAuthorId(Integer authorId) {\n this.authorId = authorId;\n }", "public void setAuthorId(Integer authorId) {\n this.authorId = authorId;\n }", "public Author() {\n }", "@Override\n\tpublic long getAuthorId() {\n\t\treturn _scienceApp.getAuthorId();\n\t}", "public void setAuthorInfo(int i, String n, String s, String e)\r\n {\r\n name = n;\r\n idAuthor = i;\r\n surname = s;\r\n email = e;\r\n }", "public String getCreateAuthor() {\n return createAuthor;\n }" ]
[ "0.8320224", "0.83141583", "0.82817984", "0.82494724", "0.82359254", "0.82359254", "0.82359254", "0.82359254", "0.82359254", "0.82315415", "0.82313174", "0.8141825", "0.81152314", "0.8025315", "0.79690003", "0.794887", "0.7899139", "0.789523", "0.7862879", "0.7853444", "0.78526187", "0.78391534", "0.78391534", "0.78391534", "0.78391534", "0.78391534", "0.78391534", "0.78391534", "0.78391534", "0.78391534", "0.78391534", "0.78391534", "0.78391534", "0.7833051", "0.7815484", "0.7742525", "0.77217925", "0.76976687", "0.7694844", "0.7674679", "0.76699406", "0.7669258", "0.7639582", "0.76260483", "0.75930095", "0.75825995", "0.7568721", "0.75611615", "0.75385463", "0.748892", "0.747546", "0.7455957", "0.7455957", "0.7455957", "0.7455957", "0.7397055", "0.7391426", "0.7391426", "0.739009", "0.73857856", "0.73770016", "0.7370001", "0.7367221", "0.7367221", "0.7322915", "0.73188007", "0.72892016", "0.72862136", "0.72862136", "0.72829324", "0.72766453", "0.726922", "0.72169745", "0.72145534", "0.72053564", "0.7199923", "0.71138626", "0.70977336", "0.70865434", "0.7042186", "0.7035094", "0.70227855", "0.7022329", "0.70017153", "0.6980578", "0.6974135", "0.6947588", "0.6946874", "0.6945497", "0.69417244", "0.69025797", "0.6875969", "0.6860234", "0.68407357", "0.68398845", "0.67904407", "0.67904407", "0.6785111", "0.6778739", "0.67713267", "0.6756895" ]
0.0
-1
Database Methods / Upload the current state of the Event method to the database
public void upload(){ put("Title",title); put("Location",location); put("DateMonth", dateMonth); put("DateDay", dateDay); put("DateYear",dateYear); put("StartHour",startHour); put("StartMinute", startMinute); put("EndHour", endHour); put("EndMinute", endMinute); put("NumGoing",numGoing); put("Description",description); put("Category",category); put("Author", author); put("Contact", contact); put("Attending", attending); saveInBackground(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface DatabaseInteractor {\n\n long persistEvent(Event event);\n\n ArrayList<Event> getActiveEvents(String filter, int offset);\n\n ArrayList<Event> getAllEvents();\n\n ArrayList<Event> getActiveEventsOnDate(String timestamp);\n\n ArrayList<Event> getActiveEventsByLocation(String latitude, String longitude, String locationName);\n\n ArrayList<Event> getSavedEvents(String filter);\n\n ArrayList<Event> getSavedEventsInNext24Hours(String timestamp);\n\n ArrayList<Event> getActiveEventsByCategory(@Event.Category int categoryId, String filter);\n\n Event getEventById(long eventId);\n\n void setSavedStateOfEvent(Event event, boolean isSaved);\n\n long persistPlace(Place place);\n\n void persistPlaces(ArrayList<Place> places);\n\n ArrayList<Place> getPlaces(String filter);\n\n Place getPlaceById(long placeId);\n\n /**\n * Deletes all events older than two months, and all places\n * */\n void cleanUpEventsAndPlaces();\n\n void changeSaveEvent(Event event, boolean isEventSaved);\n}", "@OnClick(R.id.btn_save_event)\n public void saveChanges() {\n if (isNewEvent) {\n createEvent();\n } else {\n updateEvent();\n }\n }", "public void PushEventStatisticsFromDB() {\n\t\tmyDBUtil.open();\n\t\tCursor mCursor = myDBUtil.queryMarkIsZero();\n\t\tmCursor.moveToFirst();\n\t\tdo {\n\t\t\tfinal EventStatisticsData eventStatisticsData = new EventStatisticsData();\n\t\t\tString[] colums = new String[]{\n\t\t\t\t\t\"behavior\", \"appId\", \"appSrc\", \"packageName\", \"client\", \"listenArea\",\n\t\t\t\t\t\"listenContextId\", \"listenContextSrc\", \"clientVersion\", \"referenceId\",\n\t\t\t\t\t\"appName\", \"appVersion\"};\n\t\t\tint index;\n\t\t\tString value;\n\t\t\tfor (int i = 0; i < colums.length; i++) {\n\t\t\t\tindex = mCursor.getColumnIndex(colums[i]);\n\t\t\t\tvalue = mCursor.getString(index);\n\t\t\t\teventStatisticsData.SetParamFromApp(i, value);\n\t\t\t}\n\t\t\tindex = mCursor.getColumnIndex(\"_id\");\n\t\t\tfinal int id = mCursor.getInt(index);\n\t\t\tGetIPFromServer(new GetIpCallback() {\n\t\t\t\t@Override\n\t\t\t\tpublic void solve(String result) {\n\t\t\t\t\tif (result != null && eventStatisticsData != null) {\n\t\t\t\t\t\tpushStatisticsEvent(eventStatisticsData, false, id);\n\t\t\t\t\t\tLog.d(TAG, \"im here don't insert to db,just update\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t} while (mCursor.moveToNext());\n\t\tmCursor.close();\n\t\tmyDBUtil.close();\n\t}", "void storeEvents()\n {\n this.storedPresences = new ArrayList<Presence>();\n this.storeEvents = true;\n }", "@Override\n public void onDbStarted() {\n }", "int insert(EventWithBLOBs record);", "private void updateDB() {\n }", "@DISPID(8) //= 0x8. The runtime will prefer the VTID if present\r\n @VTID(15)\r\n short persistsEvents();", "public void getEventDetails() {\r\n\t\t// Query DB to get specific event information based on EventID.\r\n\t}", "public void update() {\n Log.d(TAG, \"Updating database\");\n databaseRef.child(TAG).setValue(events);\n Log.d(TAG, \"Database update complete\");\n }", "private void storeEvent() throws IOException {\n\t\tMagical.getStorage().create(Storage.EVENTS_INDEX, event);\n\t\tMagical.addDisplayList(Storage.EVENTS_INDEX, event);\n\t}", "public interface Events {\n\n /**\n * Archive has stored the entities within a SIP.\n * <p>\n * Indicates that a SIP has been sent to the archive. May represent an add,\n * or an update.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>Number of entities archived</dd>\n * <dt>eventTarget</dt>\n * <dd>every archived entity</dd>\n * </dl>\n * </p>\n */\n public static final String ARCHIVE = \"archive\";\n\n /**\n * Signifies that an entity has been identified as a member of a specific\n * batch load process.\n * <p>\n * There may be an arbitrary number of independent events signifying the\n * same batch (same outcome, date, but different sets of targets). A unique\n * combination of date and outcome (batch label) identify a batch.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>Batch label/identifier</dd>\n * <dt>eventTarget</dt>\n * <dd>Entities in a batch</dd>\n * </dl>\n * </p>\n */\n public static final String BATCH = \"batch\";\n\n /**\n * File format characterization.\n * <p>\n * Indicates that a format has been verifiably characterized. Format\n * characterizations not accompanied by a corresponding characterization\n * event can be considered to be unverified.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>format, in the form \"scheme formatId\" (whitespace separated)</dd>\n * <dt>eventTarget</dt>\n * <dd>id of characterized file</dd>\n * </dl>\n * </p>\n */\n public static final String CHARACTERIZATION_FORMAT =\n \"characterization.format\";\n\n /**\n * Advanced file characterization and/or metadata extraction.\n * <p>\n * Indicates that some sort of characterization or extraction has produced a\n * document containing file metadata.\n * </p>\n * *\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>id of File containing metadata</dd>\n * <dt>eventTarget</dt>\n * <dd>id of File the metadata describes</dd>\n * </dl>\n */\n public static final String CHARACTERIZATION_METADATA =\n \"characterization.metadata\";\n\n /**\n * Initial deposit/transfer of an item into the DCS, preceding ingest.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>SIP identifier uid</dd>\n * <dt>eventTarget</dt>\n * <dd>id of deposited entity</dd>\n * </dl>\n * </p>\n */\n public static final String DEPOSIT = \"deposit\";\n\n /**\n * Content retrieved by dcs.\n * <p>\n * Represents the fact that content has been downloaded/retrieved by the\n * dcs.\n * </p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>http header-like key/value pairs representing circumstances\n * surrounding upload</dd>\n * <dt>eventTarget</dt>\n * <dd>id of File whose staged content has been downloaded</dd>\n * </dl>\n */\n public static final String FILE_DOWNLOAD = \"file.download\";\n\n /**\n * uploaaded/downloaded file content resolution.\n * <p>\n * Indicates that the reference URI to a unit of uploaded or downloaded file\n * content has been resolved and replaced with the DCS file access URI.\n * </p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd><code>reference_URI</code> 'to' <code>dcs_URI</code></dd>\n * <dt>eventTarget</dt>\n * <dd>id of File whose staged content has been resolved</dd>\n * </dl>\n */\n public static final String FILE_RESOLUTION_STAGED = \"file.resolution\";\n\n /**\n * Indicates the uploading of file content.\n * <p>\n * Represents the physical receipt of bytes from a client.\n * </p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>http header-like key/value pairs representing circumstanced\n * surrounding upload</dd>\n * <dt>eventTarget</dt>\n * <dd>id of File whose staged content has been uploaded</dd>\n * </dl>\n */\n public static final String FILE_UPLOAD = \"file.upload\";\n\n /**\n * Fixity computation/validation for a particular File.\n * <p>\n * Indicates that a particular digest has been computed for given file\n * content. Digest values not accompanied by a corresponding event may be\n * considered to be un-verified.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>computed digest value of the form \"alorithm value\" (whitepsace\n * separated)</dd>\n * <dt>eventTarget</dt>\n * <dd>id of digested file</dd>\n * </dl>\n * </p>\n */\n public static final String FIXITY_DIGEST = \"fixity.digest\";\n\n /**\n * Assignment of an identifier to the given entity, replacing an\n * existing/temporary id. *\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd><code>old_identifier</code> 'to' <code>new_identifier</code></dd>\n * <dt>eventTarget</dt>\n * <dd>new id of object</dd>\n * </dl>\n */\n public static final String ID_ASSIGNMENT = \"identifier.assignment\";\n\n /**\n * Marks the start of an ingest process.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of all entities an ingest SIP</dd>\n * </dl>\n * </p>\n */\n public static final String INGEST_START = \"ingest.start\";\n\n /**\n * Signifies a successful ingest outcome.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of all entities an ingest SIP</dd>\n * </dl>\n * </p>\n */\n public static final String INGEST_SUCCESS = \"ingest.complete\";\n\n /**\n * Signifies a failed ingest outcome.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of all entities an ingest SIP</dd>\n * </dl>\n * </p>\n */\n public static final String INGEST_FAIL = \"ingest.fail\";\n\n /**\n * Signifies that a feature extraction or transform has successfully\n * occurred.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of a DeliverableUnit or Collection</dd>\n * </dl>\n * </p>\n */\n public static final String TRANSFORM = \"transform\";\n\n /**\n * Signifies that a feature extraction or transform failed.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of a DeliverableUnit or Collection</dd>\n * </dl>\n * </p>\n */\n public static final String TRANSFORM_FAIL = \"transform.fail\";\n\n /**\n * Signifies a file has been scanned by the virus scanner.\n * <p>\n * Indicates that a file has been scanned by a virus scanner. There could be\n * more than one event for a file.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of file whose content was scanned</dd>\n * </dl>\n * </p>\n */\n public static final String VIRUS_SCAN = \"virus.scan\";\n\n /**\n * Signifies an new deliverable unit is being ingested as an update to the target deliverable unit.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of the deliverable unit being updated</dd>\n * </dl>\n * </p>\n */\n public static final String DU_UPDATE = \"du.update\";\n\n}", "public void storeEvent(Event event) {\n Entity eventEntity = new Entity(\"Event\", event.getEventId().toString());\n eventEntity.setProperty(\"speaker\", event.getSpeaker());\n eventEntity.setProperty(\"organization\", event.getOrganization());\n eventEntity.setProperty(\"eventDate\", event.getEventDate());\n eventEntity.setProperty(\"externalLink\", event.getExternalLink());\n eventEntity.setProperty(\"ownerId\", event.getOwnerId());\n eventEntity.setProperty(\"publicType\", event.getPublicType());\n // eventEntity.setProperty(\"timeStamp\", event.getTimeStamp());\n // This try/catch statement is to prevent null pointer exceptions from fields\n // that might not be defined yet in an event\n // Currently, the events form does not handle these fields so they are in the\n // try catch together\n try {\n eventEntity.setProperty(\"location\", event.getLocation());\n for (String am : event.getAmenities()) {\n storeAmenity(am, event.getEventId());\n }\n for (ThreadComment cm : event.getThread()) {\n storeThreadComment(cm);\n }\n } catch (NullPointerException e) {\n eventEntity.setProperty(\"location\", null);\n }\n\n datastore.put(eventEntity);\n }", "public void saveState() { }", "private void postEvent(){\n final Map<String, Object> eventDocData = new HashMap<>();\n eventDocData.put(\"address\", newEvent.getAddress());\n eventDocData.put(\"author\", newEvent.getAuthor());\n eventDocData.put(\"categories\", newEvent.getCategories());\n eventDocData.put(\"date\", newEvent.getDate());\n eventDocData.put(\"description\", newEvent.getDescription());\n eventDocData.put(\"distanceFromUser\", 0);\n eventDocData.put(\"event18\", false);\n eventDocData.put(\"event21\", false);\n eventDocData.put(\"eventKey\", newEvent.getEventKey());\n eventDocData.put(\"lat\", newEvent.getLat());\n eventDocData.put(\"lon\", newEvent.getLon());\n eventDocData.put(\"notificationOnly\", null);\n eventDocData.put(\"paid\", true);\n eventDocData.put(\"radius\", null);\n eventDocData.put(\"time\", null);\n\n //Compress and Upload\n purchaseProgressBar.setVisibility(View.VISIBLE);\n\n //Compress Image\n File profileImgFile = new File(mainImgURI.getPath());\n try {\n compressedImageFile = new Compressor(PurchaseEventActivity.this).setQuality(85).compressToBitmap(profileImgFile);\n } catch (IOException e) {\n e.printStackTrace();\n }\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n compressedImageFile.compress(Bitmap.CompressFormat.JPEG, 100, baos);\n byte[] imgData = baos.toByteArray();\n\n //Upload Img & Name\n UploadTask setupUpload = storageReference.child(\"events\").child(newEvent.getEventKey() + \".jpg\").putBytes(imgData);\n\n setupUpload.addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {\n @Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Uri download_uri = taskSnapshot.getDownloadUrl();\n eventDocData.put(\"pathToImage\", download_uri);\n\n //Send to Firebase\n firebaseFirestore.collection(\"events\").document(newEvent.getEventKey())\n .set(eventDocData)\n .addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Toast.makeText(PurchaseEventActivity.this, \"Event Posted!\", Toast.LENGTH_SHORT).show();\n Intent mainIntent = new Intent(PurchaseEventActivity.this, MainActivity.class);\n startActivity(mainIntent);\n finish();\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n purchaseProgressBar.setVisibility(View.INVISIBLE);\n Toast.makeText(PurchaseEventActivity.this, \"There Was an Issue Posting Your Event. Please Contact Support.\", Toast.LENGTH_LONG).show();\n }\n });\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n String error = e.getMessage();\n Toast.makeText(PurchaseEventActivity.this, \"Posting Error. Please Contact Support.\", Toast.LENGTH_LONG).show();\n\n purchaseProgressBar.setVisibility(View.INVISIBLE);\n }\n });\n }", "public interface DatabaseListener {\n\n void databaseChanged(DatabaseEvent databaseEvent);\n\n}", "public void operationSave() {\n\r\n\t\tstatusFeldSave();\r\n\t}", "public void eventProgress() {\n inProgressState.doAction(context);\n System.out.println(context.getState().toString());\n\n // assign judge for event\n judge.assignJudge();\n\n // declare winner of the event\n System.out.print(\"\\nDeclare Winner\\n\");\n winner.declareWinner();\n\n System.out.print(\"\\nThe winner is : \"+winner.getWinner());\n\n // send message to the students\n Student student = new Student();\n student.sendWinnerNotificationToStudents();\n\n // end state of the event\n stopState.doAction(context);\n System.out.println(context.getState().toString());\n\n }", "public void save(Event event) {\n em.persist(event);\n// em.refresh(event);\n// return event.getIdEvent();\n }", "@Override\n public void onClick(View v) {\n dbHelper = new DBHelper(getBaseContext());\n final SQLiteDatabase db = dbHelper.getWritableDatabase();\n dbHelper.eventReg(db,event.id,\"2\");\n }", "private void saveEvent(){\n String event_name = eventName.getText().toString();\r\n String coach = coach_string;\r\n String time = class_time_string;\r\n int nfcID= 4;\r\n\r\n Map<String, Object> data = new HashMap<>();\r\n\r\n data.put(\"event_name\", event_name);\r\n data.put(\"coach\", coach);\r\n data.put(\"class_time\", time);\r\n data.put(\"nfcID\", nfcID);\r\n\r\n Database.writeClassDb(data, time ,date);\r\n startActivity(new Intent(addCalenderEvent.this, CalendarActivity.class));\r\n finish();\r\n }", "@Override\r\n\tpublic void dataStore(Event event, String flag) {\n\t\tDocument doc = new Document();\r\n\t\tdoc.append(\"test\", new String(event.getBody()));\r\n\t\tmongoCollection.insertOne(doc);\r\n\t}", "public interface WfEventAudit extends BaseBusinessObject { //PersistenceInterface\n\n /**\n A WfEventAudit can be associated with the WfExecutionObject that triggered the\n event. Event audit items are meant to provide information on the execution history of\n workflow object even after the source object has been deleted; in this case, no source\n would be associated with the WfEventAudit.\n <p>The following operation returns the source of the event, when available; if the source is\n not available, a SourceNotAvailable exception is raised.\n */\n WfExecutionObject source () throws BaseException, SourceNotAvailable;\n\n /**\n A WfEventAudit can be associated with the WfExecutionObject that triggered the\n event. Event audit items are meant to provide information on the execution history of\n workflow object even after the source object has been deleted; in this case, no source\n would be associated with the WfEventAudit.\n <p>The following operation returns the source of the event, when available; if the source is\n not available, a SourceNotAvailable exception is raised.\n */\n WfExecutionObject source (SharkTransaction t) throws BaseException, SourceNotAvailable;\n\n /**\n Records the time the status change of the source occurred that triggered the event audit\n item to be created, using the TimeBase::UtcT data type defined by the OMG Time Service.\n */\n UtcT time_stamp () throws BaseException;\n\n /**\n Identifies the specific event type. The following is a set of pre-defined event types;\n implementations of the WfM Facility may decide to support additional audit event\n types.\n <ul>\n <li>processCreated - A WfProcess was created\n <li>processStateChanged - The state of a WfProcess was changed\n <li>processContextChanged - The context of a WfProcess was initialized or changed\n <li>activityStateChanged - The state of a WfActivity was changed\n <li>activityContextChanged - The context of a WfActivity was changed\n <li>activityResultChanged - The result of a WfActivity was set\n <li>activityAssigmentChanged - The status or the resource assignment of a\n WfAssignment was initialized or changed\n </ul>\n */\n String event_type () throws BaseException;\n\n /**\n If the event is triggered by a status change of a WfActivity, the key and the name of the\n activity is recorded with the WfEventAudit. Otherwise, the activity related attributes\n contain a NULL value.\n <p>The following operation returns the key of the WfActivity associated with the event.\n */\n String activity_key () throws BaseException;\n\n /**\n If the event is triggered by a status change of a WfActivity, the key and the name of the\n activity is recorded with the WfEventAudit. Otherwise, the activity related attributes\n contain a NULL value.\n <p>The following operation return the name of the WfActivity associated with the event.\n */\n String activity_name () throws BaseException;\n\n /**\n The key and the name of the WfProcess associated with the source of an event are\n recorded with the WfEventAudit. If the event was triggered by a WfActivity, this is the\n containing WfProcess. If it was triggered by a status change of a WfProcess, it is that\n process.\n <p>The following operation returns the key of the WfProcess associated with the event.\n */\n String process_key () throws BaseException;\n\n /**\n The key and the name of the WfProcess associated with the source of an event are\n recorded with the WfEventAudit. If the event was triggered by a WfActivity, this is the\n containing WfProcess. If it was triggered by a status change of a WfProcess, it is that\n process.\n <p>The following operation returns the name of the WfProcess associated with the event.\n */\n String process_name () throws BaseException;\n\n /**\n The WfProcessMgr associated with the workflow object that triggered the event is\n identified via its name and version. If the event was triggered by a status change of an\n activity, this is the manager of the process that contains the activity. If it was triggered\n by a status change of a process, this is the manager of that process.\n <p>The following operation returns the name of the WfProcessMgr associated with the event.\n */\n String process_mgr_name () throws BaseException;\n\n /**\n The WfProcessMgr associated with the workflow object that triggered the event is\n identified via its name and version. If the event was triggered by a status change of an\n activity, this is the manager of the process that contains the activity. If it was triggered\n by a status change of a process, this is the manager of that process.\n <p>The following operation returns the version of the WfProcessMgr associated with the event.\n */\n String process_mgr_version () throws BaseException;\n\n}", "@Override\n public void append( LogEvent event ) {\n long eventTimestamp;\n if (event instanceof AbstractLoggingEvent) {\n eventTimestamp = ((AbstractLoggingEvent) event).getTimestamp();\n } else {\n eventTimestamp = System.currentTimeMillis();\n }\n LogEventRequest packedEvent = new LogEventRequest(Thread.currentThread().getName(), // Remember which thread this event belongs to\n event, eventTimestamp); // Remember the event time\n\n if (event instanceof AbstractLoggingEvent) {\n AbstractLoggingEvent dbLoggingEvent = (AbstractLoggingEvent) event;\n switch (dbLoggingEvent.getEventType()) {\n\n case START_TEST_CASE: {\n\n // on Test Executor side we block until the test case start is committed in the DB\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, true);\n\n // remember the test case id, which we will later pass to ATS agent\n testCaseState.setTestcaseId(eventProcessor.getTestCaseId());\n\n // clear last testcase id\n testCaseState.clearLastExecutedTestcaseId();\n\n //this event has already been through the queue\n return;\n }\n case END_TEST_CASE: {\n\n // on Test Executor side we block until the test case start is committed in the DB\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, true);\n\n // remember the last executed test case id\n testCaseState.setLastExecutedTestcaseId(testCaseState.getTestcaseId());\n\n // clear test case id\n testCaseState.clearTestcaseId();\n // this event has already been through the queue\n return;\n }\n case GET_CURRENT_TEST_CASE_STATE: {\n // get current test case id which will be passed to ATS agent\n ((GetCurrentTestCaseEvent) event).setTestCaseState(testCaseState);\n\n //this event should not go through the queue\n return;\n }\n case START_RUN:\n\n /* We synchronize the run start:\n * Here we make sure we are able to connect to the log DB.\n * We also check the integrity of the DB schema.\n * If we fail here, it does not make sense to run tests at all\n */\n atsConsoleLogger.info(\"Waiting for \"\n + event.getClass().getSimpleName()\n + \" event completion\");\n\n /** disable root logger's logging in order to prevent deadlock **/\n Level level = LogManager.getRootLogger().getLevel();\n Configurator.setRootLevel(Level.OFF);\n\n AtsConsoleLogger.setLevel(level);\n\n // create the queue logging thread and the DbEventRequestProcessor\n if (queueLogger == null) {\n initializeDbLogging(null);\n }\n\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, false);\n //this event has already been through the queue\n\n /*Revert Logger's level*/\n Configurator.setRootLevel(level);\n AtsConsoleLogger.setLevel(level);\n\n return;\n case END_RUN: {\n /* We synchronize the run end.\n * This way if there are remaining log events in the Test Executor's queue,\n * the JVM will not be shutdown prior to committing all events in the DB, as\n * the END_RUN event is the last one in the queue\n */\n atsConsoleLogger.info(\"Waiting for \"\n + event.getClass().getSimpleName()\n + \" event completion\");\n\n /** disable root logger's logging in order to prevent deadlock **/\n level = LogManager.getRootLogger().getLevel();\n Configurator.setRootLevel(Level.OFF);\n\n AtsConsoleLogger.setLevel(level);\n\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, true);\n\n /*Revert Logger's level*/\n Configurator.setRootLevel(level);\n AtsConsoleLogger.setLevel(level);\n\n //this event has already been through the queue\n return;\n }\n case DELETE_TEST_CASE: {\n // tell the thread on the other side of the queue, that this test case is to be deleted\n // on first chance\n eventProcessor.requestTestcaseDeletion( ((DeleteTestCaseEvent) dbLoggingEvent).getTestCaseId());\n // this event is not going through the queue\n return;\n }\n default:\n // do nothing about this event\n break;\n }\n }\n\n passEventToLoggerQueue(packedEvent);\n }", "@Override\n\t\t\tvoid saveInDb(CustomApplicationInfo cai) {\n\t\t\t\tactivitySaveInDb(cai);\n\t\t\t\t\n\t\t\t}", "public String execute() {\n\t\ttry {\n\t\t\treturnMsg = MESSAGE_EVENT_ADDED;\n\t\t\tcheckEventClash();\n\t\t\tstoreEvent();\n\t\t\treturn returnMsg;\n\t\t} catch (IOException e) {\n\t\t\treturn MESSAGE_EVENT_ERROR;\n\t\t} finally {\n\t\t\tupdateView();\n\t\t\tMagical.setCurrentTab(\"events\");\n\t\t}\n\t}", "void onStartRecord();", "private void onAddToCalendarSuccess() {\r\n database.eventDao().update(event);\r\n updateSpeedDialActionItems();\r\n showToast(getString(R.string.event_calendar_add_event_sucess), Toast.LENGTH_LONG);\r\n }", "private void persistEvent(Event event) {\n\t\tAssert.notNull(event, \"Event cannot be null persisting received JMS message\");\n\t\tList<EventAttribute> eventAttributes = event.getEventAttributes();\n\t\tfor (EventAttribute eventAttribute : eventAttributes) {\n\t\t\tlog.debug(\n\t\t\t\t\t\"Recieved new via JMS Broker API an event for account number {} and tx amount of {} . About to persist it to the repository.\",\n\t\t\t\t\teventAttribute.getAccountNum(), eventAttribute.getTxAmount());\n\t\t\tevent.setApiType(JMS_BROKER);\n\t\t}\n\t\teventRepository.save(event);\n\t}", "private void onSaveButtonClicked() {\n final String date = dayValue + \".\" + monthValue + \".\" + yearValue;\n final String name = edtEventName.getText().toString();\n final String location = edtEventLocation.getText().toString();\n final String desc = edtEventDesc.getText().toString();\n final EventData eventData = new EventData(name,\n date, location, desc);\n\n // create a new thread to insert or update db\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n // the condition when user click the one of the items in recyclerView (Update existing row)\n if (intent != null && intent.hasExtra(\"id\")) {\n eventData.setId(intent.getIntExtra(\"id\", 0));\n eventDatabase.eventDAO().updateEvent(eventData);\n }\n // the condition when user click plus button from MainActivity.java (Insert a new row)\n else {\n eventDatabase.eventDAO().insertNewEvent(eventData);\n\n }\n finish(); // destroy activity (when u press back key after clicking \"save btn\", this activity won't be called again)\n }\n });\n }", "int insertSelective(EventWithBLOBs record);", "private void dbListeners() {\n // Set if image+text is being worked on currently\n //================================================\n mBeingWorkedOnListener = new ValueEventListener() {\n @Override\n public void onDataChange(final DataSnapshot dataSnapshot) {\n new AsyncTask<Void, Void, String>() {\n @Override\n protected String doInBackground(Void... voids) {\n return dataSnapshot.getValue(String.class);\n }\n\n @Override\n protected void onPostExecute(String s) {\n beingWorkedOn = s;\n }\n }.execute();\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n };\n\n dGlobalRef.child(\"beingWorkedOn\").addValueEventListener(mBeingWorkedOnListener);\n }", "@Override\n\t\tprotected void postUpdate(EspStatusDTO t) throws SQLException {\n\t\t\t\n\t\t}", "@PostPersist\n\t@PostUpdate\n\tprivate void storeChangesToDw() {\n\t}", "public abstract void updateDatabase();", "protected abstract void event(String type, long entity1, long entity2,\n long entity3, boolean added);", "public void handleStore()\r\n {\r\n //\r\n }", "@Override //to be moved to Cloud service\r\n\tpublic void createEvent(String eventName) {\n\t\t\r\n\t}", "@Override\r\n public boolean eventSourcing(){\n loadSnapshot();\r\n\r\n // check offsets value\r\n\r\n // rerun events\r\n\r\n // rerun commands\r\n\r\n // print es results\r\n\r\n return true;\r\n }", "public String updateEvent(Event e){\n \n \n String result = \"0\";\n Connection con = null;\n //building the sql command\n String SQLCommand = \"Update event set name=?,start_time=?,end_time=? where id=?\";\n \n try{\n //obtain the database connection by calling getConn() \n con = getConn();\n //create the PreparedStatement from the Connection object by calling prepareCall\n //method, passing it the sql , parameters are represented by ? in the sql\n PreparedStatement ps = con.prepareStatement(SQLCommand); \n \n //setting the parameters values\n ps.setString(1, e.getName()); \n ps.setDate(2, new java.sql.Date(e.getStartTime().getTime()));\n ps.setDate(3, new java.sql.Date(e.getEndTime().getTime())); \n ps.setLong(4,e.getId());\n //ps.setLong(4, sp.getSeatingPlanID());\n \n \n //exceuting the insert or update operation \n ps.executeUpdate(); \n }\n catch (SQLException ex){\n ex.printStackTrace();\n result = ex.getMessage();\n }\n return result;\n }", "public String indertEvent(Event e){\n \n \n String result = \"0\";\n Connection con = null;\n //building the sql\n String SQLCommand = \"INSERT INTO event \" + \n \"(id,name,start_time,end_time,seating_plan_id) \" + \n \"VALUES (seq_event_id.NEXTVAL,?,?,?,1)\"; \n try{\n //obtain the database connection by calling getConn() \n con = getConn();\n \n //create the PreparedStatement from the Connection object by calling prepareCall\n //method, passing it the sql , parameters are represented by ? in the sql\n PreparedStatement ps = con.prepareStatement(SQLCommand); \n \n //setting the parameters values\n ps.setString(1, e.getName()); \n ps.setDate(2, new java.sql.Date(e.getStartTime().getTime()));\n ps.setDate(3, new java.sql.Date(e.getEndTime().getTime())); \n //ps.setLong(4, sp.getSeatingPlanID());\n \n \n //exceuting the insert or update operation \n ps.executeUpdate(); \n }\n catch (SQLException ex){\n ex.printStackTrace();\n result = ex.getMessage();\n }\n return result;\n }", "public void saveState() \n\t{\n\t\tsuper.saveState();\n\t}", "@Override\n\tpublic void onApplicationEvent(BeforeStoreEvent event) {\n\t\tList<? extends DomainObject<?>> domainObjects = event.getStoreContext().getDomainObjects();\n\n\t\tdomainObjects.forEach(domainObject -> {\n\t\t\tif (!domainObject.isNew() && (domainObject instanceof Task)) {\n\t\t\t\tTask task = (Task) domainObject;\n\n\t\t\t\tfinal Authentication authentication = SecurityContextHolder.getContext().getAuthentication();\n\t\t\t\tfinal CustomUserDetails principal = ((CustomUserDetails) authentication.getPrincipal());\n\t\t\t\t@SuppressWarnings(\"unused\")\n\t\t\t\tString author = principal.getUsername();\n\t\t\t\ttask.setLastEditor(principal.getUser());\n\n\t\t\t\tif (!task.getStatus().equals(Status.CLOSED)) {\n\t\t\t\t\tPeriod period = Period.between(LocalDateTime.now().toLocalDate(),\n\t\t\t\t\t\t\ttask.getStartline().toLocalDate());\n\t\t\t\t\ttask.setWastedTime(period.getYears() + \"y \" + period.getMonths() + \"m \" + period.getDays() + \"d\");\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\n\t}", "public interface Event extends Serializable {\n\n Long getEventId();\n\n String getEventTitle();\n\n String getEventDescription();\n\n Long getEventAssignerId();\n\n Date getOriginalEventStartDate();\n\n Date getEventStartDate();\n\n /***\n * Sets the new start date for new generating event.\n *\n * @param startEventDate\n */\n void setEventStartDate(Date startEventDate);\n\n Date getEventEndDate();\n\n /***\n * Sets the new end date for new generating event.\n *\n * @param endEventDate\n */\n void setEventEndDate(Date endEventDate);\n//\n// Date getEventRemindDate();\n//\n// /***\n// * Sets the new remind date for new generating event.\n// *\n// * @param endEventDate\n// */\n// void setEventRemindDate(Date endEventDate);\n\n /***\n * Return calendarId field generated with system calendar after sync it\n *\n * @return\n * @see SyncUtils\n */\n Long getCalendarId();\n\n /***\n * Sets calendarId field generated with system calendar after sync it\n *\n * @param calendarId\n * @see SyncUtils\n */\n void setCalendarId(Long calendarId);\n\n /***\n * @return repeat period for current entity instance\n * @see EventProperties.RepeatPeriod\n */\n @EventProperties.RepeatPeriod\n int getEventRepeatPeriod();\n\n /***\n * @return event icon url\n */\n String getEventIconUrl();\n\n /***\n * @return boolean which indicates is event editable\n */\n Boolean isEditable();\n\n /***\n * @return boolean which indicates is event length All day long\n */\n Boolean isAllDayEvent();\n}", "private void createEvents()\r\n\t{\r\n\t\teventsCount.add(new Event(RequestMethod.PUT, 0));\r\n\t\teventsCount.add(new Event(RequestMethod.GET, 0));\r\n\t\teventsCount.add(new Event(RequestMethod.POST, 0));\r\n\t}", "public void saveState() {\n\t\tsuper.saveState();\n\t}", "public void doSomeChanges() {\n\n eventBus.publish(\"our.event.coming.from.model\", \"some data passed\");\n }", "@Override\r\n public boolean addEvent(Events event) {\r\n java.text.SimpleDateFormat SQL_Datetime = new java.text.SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n String currentTime = SQL_Datetime.format(LocalDateTime.now());\r\n String EventDatetime = SQL_Datetime.format( event.getDate());\r\n \r\n if (currentTime.compareTo(EventDatetime)<0) {\r\n return false;\r\n }\r\n else {\r\n em.persist(event);\r\n }\r\n return true;\r\n }", "@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\n public void onSaveInstanceState(Bundle outState) {\n //saves mEventId and the time in milliseconds by putting it in a bundle\n outState.putInt(INSTANCE_EVENT_ID, mEventId);\n outState.putLong(INSTANCE_TIME, mDueDateCalendar.getTimeInMillis());\n super.onSaveInstanceState(outState);\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}", "public TransactionEvent() {\n this.local = true;\n }", "public void saveData(){\n SerializableManager.saveSerializable(this,user,\"userInfo.data\");\n SerializableManager.saveSerializable(this,todayCollectedID,\"todayCollectedCoinID.data\");\n SerializableManager.saveSerializable(this,CollectedCoins,\"collectedCoin.data\");\n uploadUserData uploadUserData = new uploadUserData(this);\n uploadUserData.execute(this.Uid);\n System.out.println(Uid);\n\n }", "public interface DbSubscriber extends Subscriber {\n void onDbDataUpdated(@Db.DbEvent int tableId, Object dbObject);\n\n void onDbErrorError(@Db.DbEvent int tableId, Object error);\n}", "@Override\n\t@Transient\n\tpublic String getEventType() {\n\t\treturn \"AFTER\";\n\t}", "Long insert(EventDetail record);", "public void setEventCreated() {\n Date now = new Date();\n this.eventCreated = now;\n }", "public void persist(Event event) {\n EventAdapter ea = new EventAdapter();\n ea.setFieldsFromEvent(event);\n em.persist(ea);\n }", "public interface EventDao {\n Event findEventById(int id) throws Exception;\n\n void saveEvent(Event event) throws Exception;\n\n void deleteEventById(int id) throws Exception;\n\n List<Event> findAllEventsInvitedFor(Integer offset, Integer limit, String keyWord, Integer user_id) throws Exception;\n\n Long countInvitedForEvent(Integer offset, Integer limit, String keyWord, Integer user_id) throws Exception;\n\n Long countMyCreatedEvents(Integer offset, Integer limit, String keyWord, Integer user_id) throws Exception;\n\n List<Event> findAllEventsCreatedByUserId(Integer offset, Integer limit, String keyWord, Integer id) throws Exception;\n}", "public interface Event {\n enum eventTriggers{\n Add_Event,\n Delete_Event,\n Reject_Event,\n Accept_Event,\n Find_Free_time\n }\n\n void addevent(AbstractEvent event);\n\n public void deleteEvent(String eventName);\n\n void update(AbstractEvent oldEvent,AbstractEvent newEvent);\n\n}", "@Override\n public void updateDatabase() {\n }", "public int getEventTypeID() {\r\n\treturn eventType;\r\n}", "@Override\n\tpublic Event updateEvent(Event e) {\n\t\treturn eventDao.updateEvent(e);\n\t}", "public void uptadeDB(){\n //mainDatabase.modifyStaff(this);\n }", "public List<GameEvents> saveGameEvents(List<GameEvents> gameEvents);", "private DatabaseCustomAccess(Context context) {\n\t\thelper = new SpokaneValleyDatabaseHelper(context);\n\n\t\tsaveInitialPoolLocation(); // save initial pools into database\n\t\tsaveInitialTotalScore(); // create total score in database\n\t\tsaveInitialGameLocation(); // create game location for GPS checking\n\t\tLoadingDatabaseTotalScore();\n\t\tLoadingDatabaseScores();\n\t\tLoadingDatabaseGameLocation();\n\t}", "public abstract void commitProductBacklog();", "public boolean insertData(Event event) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues contentValues = new ContentValues();\n contentValues.put(DAY, event.getDay());\n contentValues.put(COLOR, event.getColor());\n contentValues.put(COL_1, event.getStartDate().getTimeInMillis());\n contentValues.put(COL_2, event.getEndDate().getTimeInMillis());\n contentValues.put(COL_3, event.getTitle());\n contentValues.put(COL_4, event.getDescription());\n\n long result = db.insert(TABLE_NAME, null, contentValues);\n Cursor res = db.query(true, TABLE_NAME, new String[]{ID},\n DAY + \" = '\" + event.getDay() + \"' AND \"\n + COL_3 + \" = '\" + event.getTitle() + \"'\",\n null, null, null, null, null);\n res.moveToNext();\n event.setDatabaseID(res.getInt(0));\n db.close();\n return result != -1;\n\n }", "public boolean saveEvents() {\n\t\ttry {\n\t\t\tmSerializer.saveEvents(mEvents);\n\t\t\tLog.d(TAG, \"events saved to file\");\n\t\t\treturn true;\n\t\t} catch(Exception e){\n\t\t\tLog.e(TAG, \"Error saving event: \", e);\n\t\t\treturn false;\n\t\t}\n\t}", "public void consulterEvent() {\n\t\t\n\t}", "interface EventBase {\n int getId();\n\n String getImage();\n\n String getTitle();\n\n String getDateTime();\n\n float getPrice();\n}", "private void saveData() {\n }", "@Override\n public void add(Event event) {\n persist(event);\n }", "@Override\n public void save() {\n \n }", "@Override\n\tpublic void save() {\n\t\tSystem.out.println(\"save method\");\n\t}", "public interface EventService {\n\n //根据eventCode获取事件信息\n Event getEventByEventCode(String eventCode);\n\n //根据事件的主键更改修改的次数\n Integer upateEventTimesById(Integer eventId,Integer upateTimes);\n\n //根据事件的主键更新最新操作时间\n Integer upateOperateTimeById(Integer eventId, Date operateTime);\n\n /**\n * 条件查询事件列表\n * @param userName\n * @param eventListCondBO\n * @param currentPage\n * @param pageSize\n * @return\n */\n Page eventService(String userName,EventListCondBO eventListCondBO,Integer currentPage,Integer pageSize);\n\n /**\n * 事件流未读转为已读\n * @param eventId\n */\n void eventReadStatus(Integer eventId);\n}", "public void saveState() {\n table.saveState(store);\n }", "@Override\n\tpublic void handleEvent(final AfterSaveEvent event)\n\t{\n\n\t}", "@Override\npublic boolean saveCharit3(Events e1,Charite Charite) {\n\t\n\t\n\tEvents e2 = eventDAO.findOne(e1.getId());\n\tCharite.setIdevents(e2);\n\tchariteRepository.save(Charite);\n\treturn true;\n}", "@Override\n public void save()\n {\n \n }", "void commit( boolean onSave );", "private void insertState(State state) {\n SQLiteDatabase db = dbHelper.getWritableDatabase();\n state.print();\n cupboard().withDatabase(db).put(state);\n IDToday++;\n aCache.put(Const.Cache_Lastime_Timepoint, state.getTime_point());\n }", "private void saveFunction() {\n }", "protected abstract void doSave();", "@LogExceptions\n @Override\n public void update(Data data) throws SQLException {\n Event event = (Event)data;\n Connection conn = DatabaseConnection.getConnection();\n \n try(PreparedStatement stmt = \n conn.prepareStatement(getMembers().getUpdateFormat())) \n {\n stmt.setString(1, event.getEvent());\n stmt.setString(2, event.getDescription());\n stmt.setString(3, event.getLocation());\n stmt.setString(4, event.getDate());\n stmt.setString(5, event.getYear());\n stmt.setString(6, event.getMonth());\n stmt.setString(7, event.getDay());\n stmt.setString(8, event.getStart());\n stmt.setString(9, event.getEnd());\n stmt.setInt(10, event.getID());\n stmt.executeUpdate();\n }\n }", "public void addEvent(FbEvent event) throws SQLException{\n\t\tSQLiteDatabase db = tableHelper.getWritableDatabase();\n\t\ttry {\n\t\t\tContentValues contents = prepareContentValues(event);\n\t\t\tdb.insert(SQLTablesHelper.MY_EVENT_TABLE_NAME, null, contents);\n\t\t} finally {\n\t\t\tdb.close();\n\t\t}\n\t}", "public interface DatabaseManager {\r\n\r\n // NOTE: this is a draft of the interface. More methods will likely be\r\n // added.\r\n\r\n /**\r\n * Uploads the specified feature to the database.\r\n * \r\n * @param file the shapefile (*.shp) to upload\r\n * @param project the project to associate the shapefile with\r\n * @return the id of the feature in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadFeature(File file, String project) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified modis tile to the database.\r\n * \r\n * @param file the .hdf to upload\r\n * @param product the modis product\r\n * @param date the date the data was captured\r\n * @param downloaded the date the data was downloaded from the host\r\n * @param horz the horizontal tile number\r\n * @param vert the vertical tile number\r\n * @return the id of the Modis raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadModis(File file, ModisProduct product, DataDate date, DataDate updated, int horz, int vert) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified ETo file to the database.\r\n * \r\n * @param file the\r\n * @param date\r\n * @param updated\r\n * @return the id of the ETo raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadEto(File file, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified TRMM file to the database.\r\n * \r\n * @param file\r\n * @param date\r\n * @param updated\r\n * @return the id of the TRMM raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadTrmm(File file, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified projected Modis product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param product\r\n * @param date\r\n * @param updated\r\n * @return the id of the projected Modis raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadProjectedModis(File file, String project, ModisProduct product, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified projected ETo product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the projected ETo raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadProjectedEto(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the projected TRMM product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the TRMM raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadProjectedTrmm(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified ETa product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the ETa raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadEta(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified EVI product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the EVI raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadEvi(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified NDVI product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the NDVI raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadNdvi(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified NDWI5 product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the NDWI5 raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadNdwi5(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified NDWI6 product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the NDWI6 raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadNdwi6(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified SAVI product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the SAVI raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadSavi(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified feature and places it in the specified file in\r\n * the shapefile.\r\n * \r\n * @param file the location to save the feature\r\n * @param id the id of the feature\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadFeature(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified Modis tile from the database.\r\n * \r\n * @param file\r\n * @param product\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadModis(File file, ModisProduct product, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified ETo raster from the database and saves it to the\r\n * specified file.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadEto(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified TRMM raster from the database and saves it to the\r\n * specified file.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadTrmm(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified projected Modis product from the database.\r\n * \r\n * @param file\r\n * @param product\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadProjectedModis(File file, ModisProduct product, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified projected ETo product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadProjectedEto(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified projected TRMM product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadProjectedTrmm(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified ETa product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadEta(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified EVI product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadEvi(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified NDVI product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadNdvi(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified NDWI5 product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadNdwi5(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified NDWI6 product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadNdwi6(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified SAVI product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadSavi(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Returns the id of the MODIS raster for the specified product and date.\r\n * \r\n * @param product\r\n * @param date\r\n * @param horz\r\n * @param vert\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getModisId(ModisProduct product, DataDate date, int horz, int vert) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the ETo for the specified date.\r\n * \r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getEtoId(DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the TRMM for the specified date.\r\n * \r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getTrmmId(DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the reprojected Modis raster for the specified\r\n * project, product, and date.\r\n * \r\n * @param project\r\n * @param product\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getReprojectedModisId(String project, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the reprojected ETo raster for the specified project\r\n * and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getReprojectedEtoId(String project, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the reprojected TRMM raster for the specified project\r\n * and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getReprojectedTrmmId(String project, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the ETa raster for the specified project and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getEtaId(String project, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the EVI raster for the specified project and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getEviId(String project, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the NDVI raster for the specified project and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getNdviId(String project, String feature, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the NDWI5 raster for the specified project and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getNdwi5Id(String project, String feature, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the NDWI6 raster for the specified project and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getNdwi6Id(String project, String feature, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the SAVI raster for the specified project and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getSaviId(String project, String feature, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Uploads the specified zonal statistics.\r\n * \r\n * @param project\r\n * @param feature\r\n * @param zoneField\r\n * @param zone\r\n * @param date\r\n * @param index\r\n * @param zonalStatistics\r\n */\r\n void uploadZonalStatistic(String project, String feature, String zoneField,\r\n String zone, DataDate date, EnvironmentalIndex index,\r\n ZonalStatistic zonalStatistics) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the zonal statistics for the specified parameters.\r\n * \r\n * @param project\r\n * @param feature\r\n * @param zoneField\r\n * @param zone\r\n * @param date\r\n * @param index\r\n * @return the id or -1 if it is not found\r\n */\r\n int getZonalStatisticId(String project, String feature, String zoneField,\r\n String zone, DataDate date, EnvironmentalIndex index)\r\n throws SQLException;\r\n\r\n /**\r\n * Returns zonal statistics for the specified zonal statistic id.\r\n * \r\n * @param id\r\n * @return zonal statistics\r\n * @throws SQLException\r\n */\r\n ZonalStatistic getZonalStatistic(int id) throws SQLException;\r\n}", "Snapshot.Update update();", "@Override\n public void addAll(Collection<Event> events) {\n events.forEach(this::persist);\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}", "public interface EventRepository\n{\n Event getEventToReplay(ObjectId recordingId, int offset);\n\n long countByRecordingId(ObjectId recordingId);\n\n void save(List<Event> lineEvents);\n\n long getAdded();\n}", "@Override\n public void save() {\n\n }", "protected abstract void onLeveledUp();", "@Override\r\n\t\t\tprotected void saveContext() {\n\t\t\t\t\r\n\t\t\t}", "private void LoadEvent() {\n final String DB_NAME = \"testDB\";\n final String EVENT_TABLE = \"EVENT\";\n try (Connection con = ConnectionTest.getConnection(DB_NAME);\n Statement stmt = con.createStatement();) {\n String query = \"SELECT * FROM \" + EVENT_TABLE;\n try (ResultSet resultSet = stmt.executeQuery(query)) {\n while (resultSet.next()) {\n String date1 = resultSet.getString(\"eventDate\");\n LocalDate eventDate = LocalDate.parse(date1);\n String imageName = resultSet.getString(\"imageName\");\n Image image = new Image(\"file:Images/\" + imageName, 70, 70, false, false);\n String stat = resultSet.getString(\"status\");\n Status status = Status.valueOf(stat);\n Post evOb = new Event(resultSet.getString(\"postID\"), image, resultSet.getString(\"title\"),\n resultSet.getString(\"description\"), resultSet.getString(\"creatorID\"),\n status, resultSet.getString(\"eventVenue\"), eventDate, resultSet.getInt(\"eventCapacity\"),\n resultSet.getInt(\"eventAttendCount\")); // Creating a new object\n // Adding it to the list\n events.add((Event) evOb);\n\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n }" ]
[ "0.612754", "0.60665834", "0.5971538", "0.57759833", "0.5679855", "0.5674958", "0.5625521", "0.55974334", "0.55942655", "0.5549856", "0.55316556", "0.5520838", "0.55025345", "0.55018544", "0.54743946", "0.54622555", "0.5458995", "0.5452254", "0.5449757", "0.54434687", "0.5439279", "0.5420527", "0.53888595", "0.53755486", "0.5373054", "0.5369846", "0.53686666", "0.53592753", "0.5358664", "0.5355199", "0.5344434", "0.5336194", "0.5331488", "0.53311366", "0.5314402", "0.5313601", "0.5297853", "0.5297449", "0.52890044", "0.52849084", "0.52820665", "0.5280104", "0.5273545", "0.526579", "0.5259527", "0.525799", "0.52537286", "0.5247618", "0.52456063", "0.52456063", "0.5239787", "0.5239661", "0.5239661", "0.52225536", "0.5218111", "0.52118325", "0.52117753", "0.5210007", "0.5206231", "0.5204315", "0.5202935", "0.51945823", "0.5192787", "0.51907504", "0.51897746", "0.518526", "0.51787454", "0.5175421", "0.5165794", "0.51653314", "0.51652074", "0.51589006", "0.515522", "0.51551044", "0.51550084", "0.5154067", "0.51512796", "0.514935", "0.5148959", "0.51483107", "0.5143087", "0.5139161", "0.5136963", "0.5124543", "0.5123186", "0.5120674", "0.5118864", "0.5118228", "0.51165813", "0.511159", "0.5111209", "0.5106574", "0.5106574", "0.5106574", "0.5106574", "0.5106574", "0.5106531", "0.5100261", "0.50994575", "0.50947344", "0.5094605" ]
0.0
-1
END Of Remove Methods Update Methods
public void updateUserLogin(String userName, boolean isOnOff){ int isOn = isOnOff? 1 : 0; try { Connection c = new MyConnection().getConnection(); Statement st = c.createStatement(); st.executeUpdate("update users set IsConnected = "+isOn+" WHERE UserName ='"+userName+"'"); } catch (Exception e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void remove() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n protected void updateEliminations() {\n\n }", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "public void remove() {\r\n //\r\n }", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}", "@Override\n public void remove() {\n }", "public abstract void onRemove();", "@Override\n\tpublic void onRemove() {\n\n\t}", "public void remove () {}", "@Override\n\tpublic void remove() { }", "@Override\n public void remove() {\n }", "@Override\r\n\t\tpublic void remove() {\n\r\n\t\t}", "@Override\r\n\t\tpublic void remove() {\r\n\t\t\t// YOU DO NOT NEED TO WRITE THIS\r\n\t\t}", "public void remove(){\n }", "@Override\n public void removeFromDb() {\n }", "public void remove() {\n\n }", "public void remove(){throw new RuntimeException(\"Removing() is not implemented\");\r\n\t\t}", "void remove();", "void remove();", "void remove();", "void remove();", "void remove();", "public void remove() {\n\t}", "public void remove() {\n\t}", "@Override\r\n\t\t\t\t\tpublic void removeUpdate(DocumentEvent e) {\n\t\t\t\t\t\tcheckID();\r\n\t\t\t\t\t}", "public void remove() {\n\t }", "public void remove() {\n\t }", "public void remove() {\n\t }", "public abstract void onRemoveAction();", "@Override\r\n\tpublic void onRemove() {\n\r\n\t}", "@Override\r\n\tpublic void uniqueUpdate() {\n\r\n\t}", "private void removeElement(PathwayElement affectedData)\n \t{\n \n \t}", "@PreRemove\r\n public void preRemove() {\r\n\r\n }", "public final void remove () {\r\n }", "protected abstract void removeItem();", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\t\t\tpublic void removeUpdate(DocumentEvent e) {\n\t\t\t\t\tchange();\n\t\t\t\t}", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "void actuallyRemove() {\n /*\n * // Set the TextViews View v = mListView.getChildAt(mRemovePosition -\n * mListView.getFirstVisiblePosition()); TextView nameView =\n * (TextView)(v.findViewById(R.id.sd_name));\n * nameView.setText(R.string.add_speed_dial);\n * nameView.setEnabled(false); TextView labelView =\n * (TextView)(v.findViewById(R.id.sd_label)); labelView.setText(\"\");\n * labelView.setVisibility(View.GONE); TextView numberView =\n * (TextView)(v.findViewById(R.id.sd_number)); numberView.setText(\"\");\n * numberView.setVisibility(View.GONE); ImageView removeView =\n * (ImageView)(v.findViewById(R.id.sd_remove));\n * removeView.setVisibility(View.GONE); ImageView photoView =\n * (ImageView)(v.findViewById(R.id.sd_photo));\n * photoView.setVisibility(View.GONE); // Pref\n */\n mPrefNumState[mRemovePosition + 1] = \"\";\n mPrefMarkState[mRemovePosition + 1] = -1;\n SharedPreferences.Editor editor = mPref.edit();\n editor.putString(String.valueOf(mRemovePosition + 1), mPrefNumState[mRemovePosition + 1]);\n editor.putInt(String.valueOf(offset(mRemovePosition + 1)),\n mPrefMarkState[mRemovePosition + 1]);\n editor.apply();\n startQuery();\n }", "@Override\n\t/**\n\t * feature is not supported\n\t */\n\tpublic void remove() {\n\t}", "@Override\n public void remove(int no) throws Exception {\n \n }", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "void update ( priorizedListObject v ) throws DAOException;", "protected abstract void checkRemoved();", "private boolean remove() {\r\n\t\t\treturn removed = true;\r\n\t\t}", "@Override\n public void removeUpdate(DocumentEvent e) {\n verifierSaisie();\n }", "@Override\n\tpublic void posModify() {\n\t\tgetEntityManager().refresh(instance);\n\t\tcambiarTipoCuenta(instance);\n\t\tgetEntityManager().flush();\n\t\tgetEntityManager().refresh(instance);\n\t\tresultList = null;\n\t\trootNode = null;\n\t}", "private void enableRemove(){\n addSubmit.setDisable(true);\n removeSubmit.setDisable(false);\n setSubmit.setDisable(true);\n addCS.setDisable(true);\n removeCS.setDisable(false);\n setCS.setDisable(true);\n addIT.setDisable(true);\n removeIT.setDisable(false);\n setIT.setDisable(true);\n addECE.setDisable(true);\n removeECE.setDisable(false);\n setECE.setDisable(true);\n partTime.setDisable(true);\n fullTime.setDisable(true);\n management.setDisable(true);\n dateAddText.setDisable(true);\n dateRemoveText.setDisable(false);\n dateSetText.setDisable(true);\n nameAddText.setDisable(true);\n nameRemoveText.setDisable(false);\n nameSetText.setDisable(true);\n hourlyAddText.setDisable(true);\n annualAddText.setDisable(true);\n managerRadio.setDisable(true);\n dHeadRadio.setDisable(true);\n directorRadio.setDisable(true);\n //codeAddText.setDisable(true);\n hoursSetText.setDisable(true);\n }", "public void entityRemoved() {}", "public void editOperation() {\n\t\t\r\n\t}", "public void remove() {\r\n super.remove();\r\n }", "public void remove(){\r\n // Does Nothing\r\n }", "public void updateList() \n { \n model.clear();\n for(int i = ScholarshipTask.repository.data.size() - 1; i >= 0; i--) \n {\n model.addElement(ScholarshipTask.repository.data.get(i));\n }\n }", "Object remove();", "protected abstract void remove(E entry);", "@Override\n\tpublic void removeUpdate(DocumentEvent e) {\n\t\tvalidateNameField();\n\t}", "protected void cmdRemove() throws Exception{\n\t\t//Determinamos los elementos a eliminar. De cada uno sacamos el id y el timestamp\n\t\tVector entities = new Vector();\n\t\tStringTokenizer claves = new StringTokenizer(conectorParametro(\"idSelection\"), \"|\");\n\t\tStringTokenizer timestamps = new StringTokenizer(conectorParametro(\"timestamp\"), \"|\");\n\t\ttraza(\"MMG::Se van a borrar \" + claves.countTokens() + \" y son \" + conectorParametro(\"idSelection\"));\n\t\twhile(claves.hasMoreTokens() && timestamps.hasMoreTokens()){\n\t\t\tCobGrupoUsuarCobraData cobGrupoUsuarCobra = new CobGrupoUsuarCobraData();\n\t\t\tcobGrupoUsuarCobra.setId(new Long(claves.nextToken()));\n\t\t\t//cobGrupoUsuarCobra.jdoSetTimeStamp(Long.parseLong(timestamps.nextToken()));\n\t\t\tentities.addElement(cobGrupoUsuarCobra);\n\t\t}\n\t\t\n\t\t//Construimos el DTO para realizar la llamada\n\t\tVector datos = new Vector();\n\t\tMareDTO dto = new MareDTO();\n\t\tdto.addProperty(\"entities\", entities);\n\t\tdatos.add(dto);\n\t\tdatos.add(new MareBusinessID(BUSINESSID_REMOVE));\n\t\t\n\t\t\n\t\t\n\t\t//Invocamos la lógica de negocio\n\t\ttraza(\"MMG:: Iniciada ejecución Remove de entidad CobGrupoUsuarCobra\");\n\t\tDruidaConector conectorCreate = conectar(CONECTOR_REMOVE, datos);\n\t\ttraza(\"MMG:: Finalizada ejecución Remove de entidad CobGrupoUsuarCobra\");\n\t\t\n\t\t\n\n\t\t//metemos en la sesión las query para realizar la requery\n\t\tconectorParametroSesion(SESSION_ATTRIBUTE_LAST_QUERY, conectorParametro(VAR_LAST_QUERY_TO_SESSION));\n\t\t\n\t\t//Redirigimos a la LP de StartUp con la acción de StartUp y requery\n\t\tconectorAction(\"CobGrupoUsuarCobraLPStartUp\");\n\t\tconectorActionParametro(PARAMETRO_GENERICO_ORIGEN, \"menu\");\n\t\tconectorActionParametro(PARAMETRO_GENERICO_ACCION, ACCION_REMOVE);\n\t\tconectorActionParametro(VAR_PERFORM_REQUERY, \"true\");\n\t}", "@Override\n\tpublic void removeUpdate(DocumentEvent e) {\n\t\t\n\t}", "@Override\r\n public void remove() {\n ArrayList<String>Lines=new ArrayList<>();\r\n String Path = \"/home/yara/Documents/4year/OODP/Task.txt\";\r\n \r\n String RID=id.getText();\r\n String Taskname = name.getText();\r\n String startDate = date_start.getText();\r\n String EndDate = date_finish.getText();\r\n String LocalStatus = status.getText();\r\n String MemberID = MemberId.getText();\r\n \r\n Lines.add(RID);\r\n Lines.add(Taskname);\r\n Lines.add(startDate);\r\n Lines.add(EndDate);\r\n Lines.add(LocalStatus);\r\n Lines.add(MemberID);\r\n \r\n FileFacade facade = new FileFacade();\r\n facade.remove(Path, Lines);\r\n \r\n }", "boolean isRemove();", "@Override\n public boolean update(Revue objet) {\n return false;\n }", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "public void removed() {\n }", "protected boolean beforeRemove() {\n return true;\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\r\n return;\r\n }", "@Override\n\tpublic void remove(int id) {\n\n\t}", "@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\r\n\tpublic String update() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String update() {\n\t\treturn null;\r\n\t}", "public void update(){}", "public void update(){}", "@Override\n\tpublic void update() {}" ]
[ "0.67018586", "0.6650343", "0.66478294", "0.66478294", "0.65326744", "0.6527413", "0.6527413", "0.6527413", "0.6527413", "0.6527413", "0.6527413", "0.6527413", "0.6527413", "0.65206075", "0.65206075", "0.6450968", "0.64198536", "0.64133734", "0.6406963", "0.6402555", "0.64016134", "0.6372668", "0.6351778", "0.63245225", "0.62802577", "0.6255352", "0.624935", "0.62310714", "0.62310714", "0.62310714", "0.62310714", "0.62310714", "0.62213445", "0.62213445", "0.61889595", "0.6180886", "0.6180886", "0.6180886", "0.6171319", "0.61666715", "0.60221773", "0.5976993", "0.5959786", "0.59505844", "0.5933649", "0.5923375", "0.5923375", "0.5923375", "0.59160364", "0.5915758", "0.5915758", "0.5915758", "0.5915758", "0.5915758", "0.58619446", "0.5825385", "0.5819421", "0.5811665", "0.5811665", "0.5807842", "0.5807243", "0.58020914", "0.5801936", "0.5790962", "0.57849157", "0.5780306", "0.577489", "0.57722", "0.57721955", "0.57639855", "0.5756907", "0.5738283", "0.573536", "0.5730913", "0.5728894", "0.5715117", "0.57138956", "0.5704333", "0.5701958", "0.5701958", "0.5701958", "0.5701958", "0.5701958", "0.5692631", "0.56883436", "0.5676971", "0.5676971", "0.5676971", "0.5676971", "0.5676971", "0.5676971", "0.5676971", "0.56681305", "0.5667388", "0.5660239", "0.56588477", "0.5656239", "0.5656239", "0.5647448", "0.5647448", "0.56466156" ]
0.0
-1
END Of Get Methods
public Users getLogUser(String userName){ try { Statement stat = conn.createStatement(); ResultSet rs = stat.executeQuery("SELECT * FROM users where UserName = '"+userName+"'"); if(rs.next()){ return new Users(rs.getString("FirstName"), rs.getString("LastName"), userName, rs.getString("Password"), rs.getString("Mail"), rs.getString("CoverImag"), rs.getString("ProfilePicture"), true); } rs.close(); } catch (SQLException e) { e.printStackTrace(); return null; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "@Override\n public void get() {}", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "private Get() {}", "private Get() {}", "public void get() {\n }", "@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}", "public void doGet( )\n {\n \n }", "protected abstract void retrievedata();", "public Result get(Get get) throws IOException;", "@Override\n protected void getExras() {\n }", "Information getInfo();", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "interface Retrieve {}", "public abstract String getInfo();", "public abstract String getInfo();", "public ImmutableRetrieve() {\n super();\n }", "protected static void get() {\n\t\tstepsTable.get();\n\t\tstepsTable.getWeek();\n\t\tactive.get();\n\t\tmeals.get();\n\t\taccountInfo.get();\n\t\t\n\t}", "@Override\n\tpublic void getDetail() {\n\t\t\n\t}", "void getRequests();", "@Override\n\tpublic String getType() {\n\t\treturn Global.GET;\n\t}", "public java.lang.String getGet() {\n return instance.getGet();\n }", "public EntityType2 get() throws ClientException {\n return send(HttpMethod.GET, null);\n }", "abstract public T getInfo();", "public void getBookDetails() {\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "public CourseMemberGet() {\n\t\tsuper();\n\t}", "@Override\n String get();", "public DResult get(Get get, long startId) throws IOException;", "@Override\n\tpublic void get() {\n\t\tSystem.out.println(\"this is get\");\n\t}", "public abstract String get();", "@Override\n\t\tpublic void rest() {\n\t\t\t\n\t\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private void mappingMethodGet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodGet = \"get\" + aux;\n\t\tthis.methodGet = this.classFather.getMethod(methodGet);\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "String getInfo();", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}", "public Book getBook() \t\t{ return this.myBook; }", "Map getAll();", "Reserva Obtener();", "public DocumentoBase getDocumentoBase()\r\n/* 130: */ {\r\n/* 131:154 */ return this.documentoBase;\r\n/* 132: */ }", "@Override\n\tpublic void getData() {\n\t\t\n\t}", "public boolean isGet();", "protected abstract Object _get(String key);", "public Object getObject() {\r\n/* 109 */ return this.object;\r\n/* */ }", "@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "@Override\n\tpublic RacingBike get() {\n\t\tSystem.out.println(\"Inside get method of provider class!!!\");\n\t\treturn new ApacheRR310();\n\t}", "protected List getProperties() {\n return null;\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "T getObject() {\n\t\t\treturn data;\n\t\t}", "protected List getList() {\n/* 88 */ return (List)getCollection();\n/* */ }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t\t\n\t}", "private void getMall(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}", "protected abstract Set method_1559();", "void getPeople();", "private ApiInfo metadata() {\n\t\treturn new ApiInfoBuilder().title(\"# Online Home Decor Store #\")\n\t\t\t\t.description(\"Suppliers and Categories operations are present\").build();\t\n\t}", "public Genero getGenero()\r\n/* 143: */ {\r\n/* 144:261 */ return this.genero;\r\n/* 145: */ }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n\n params.put(\"id\", id);\n params.put(\"type\", type);\n\n Log.d(TAG, \"getParams: \"+params);\n\n\n\n return params;\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n \r\n }", "Object getData() { /* package access */\n\t\treturn data;\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "public String get();", "@Override\n protected Map<String, String> getParams() {\n return params;\n }", "private void getUserInfo() {\n\t}", "public EntityMetadata[] getMetadata()\r\n/* 30: */ {\r\n/* 31:30 */ return this.metadata;\r\n/* 32: */ }", "@Override\r\n protected void fetchData() {\n\r\n }", "public CuentaContable getCuentaContable()\r\n/* 78: */ {\r\n/* 79: 99 */ return this.cuentaContable;\r\n/* 80: */ }", "public Empresa getEmpresa()\r\n/* 84: */ {\r\n/* 85:131 */ return this.empresa;\r\n/* 86: */ }", "Documento getDocumento();", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }", "public String getAnotherDetail();", "GetResponse() {\n\t}", "public String getAuthor(){return author;}", "@RequestMapping(value=\"/getbook\", method=RequestMethod.GET, produces = \"application/json\")\n\tpublic Book getBook() {\n\t\treturn new Book(\"1\", \"Marvel Comics\", \"Stanlee\", 200D, \"Awesome book\");\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}", "public Object getObject() ;", "private void getTradeDetail() {\n\t\t\tsendData(\"<get></get>\");\n\t}", "private Attributes getAttributes()\r\n\t{\r\n\t return attributes;\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public String getNombre()\r\n/* 113: */ {\r\n/* 114:204 */ return this.nombre;\r\n/* 115: */ }", "Object get()\n\t{\n\t\tif (length == 0 ) \n\t\t{\t\n\t\t\tthrow new RuntimeException(\"List Error: cannot call get() on empty List\");\n\t\t}\n\t\tif (cursor == null\t) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call get() on cursor that is off the list\");\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn cursor.data;\n\t\t}\n\t}", "@Override\n protected Map<String, String> getParams() {\n return params;\n }", "Object getCurrentData();", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "public String getNombre()\r\n/* 60: */ {\r\n/* 61: 67 */ return this.nombre;\r\n/* 62: */ }", "public List method_6440() {\r\n return this.field_6225;\r\n }", "public Map method_6439() {\r\n return this.field_6226;\r\n }", "public Book getBook() {\n\t\treturn book; //changed BoOk to book\r\n\t}", "int getMeta();", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\r\n\t}", "private RESTBackend()\n\t\t{\n\t\t\t\n\t\t}" ]
[ "0.6734025", "0.65666974", "0.65325063", "0.6523631", "0.6523631", "0.6473725", "0.64276814", "0.64133555", "0.59911996", "0.5984516", "0.5966777", "0.5950496", "0.59350157", "0.59135425", "0.58430916", "0.58385766", "0.58385766", "0.5797214", "0.57933444", "0.5741254", "0.57270956", "0.5701526", "0.5700657", "0.5693686", "0.56917423", "0.56898516", "0.56780636", "0.5675214", "0.5661969", "0.56569856", "0.5637528", "0.5627922", "0.5618103", "0.56165415", "0.5610798", "0.5597419", "0.5597419", "0.5597419", "0.55894417", "0.5582372", "0.5558163", "0.5548339", "0.5547716", "0.5536616", "0.55247295", "0.5515082", "0.5512112", "0.550033", "0.54990965", "0.54932445", "0.54758614", "0.5466524", "0.5466524", "0.54644597", "0.54607785", "0.5459825", "0.54525805", "0.5450869", "0.5447751", "0.544133", "0.54410076", "0.5437616", "0.5429878", "0.5424189", "0.5422956", "0.5420362", "0.5420362", "0.5420333", "0.54164135", "0.5416347", "0.5411077", "0.54086936", "0.54072696", "0.5406371", "0.54060286", "0.540459", "0.54020625", "0.5398748", "0.5395194", "0.5395159", "0.5394934", "0.539077", "0.5389252", "0.5378955", "0.5374828", "0.53745747", "0.537444", "0.5372026", "0.5371404", "0.5369034", "0.5369034", "0.5368298", "0.53671265", "0.5366472", "0.53568685", "0.53568643", "0.53449404", "0.5340853", "0.53403825", "0.53403825", "0.53385496" ]
0.0
-1
END Of Get Methods
public ArrayList<Message> getMessages() { return messages; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "@Override\n public void get() {}", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "private Get() {}", "private Get() {}", "public void get() {\n }", "@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}", "public void doGet( )\n {\n \n }", "protected abstract void retrievedata();", "public Result get(Get get) throws IOException;", "@Override\n protected void getExras() {\n }", "Information getInfo();", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "interface Retrieve {}", "public abstract String getInfo();", "public abstract String getInfo();", "public ImmutableRetrieve() {\n super();\n }", "protected static void get() {\n\t\tstepsTable.get();\n\t\tstepsTable.getWeek();\n\t\tactive.get();\n\t\tmeals.get();\n\t\taccountInfo.get();\n\t\t\n\t}", "@Override\n\tpublic void getDetail() {\n\t\t\n\t}", "void getRequests();", "@Override\n\tpublic String getType() {\n\t\treturn Global.GET;\n\t}", "public java.lang.String getGet() {\n return instance.getGet();\n }", "public EntityType2 get() throws ClientException {\n return send(HttpMethod.GET, null);\n }", "abstract public T getInfo();", "public void getBookDetails() {\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "public CourseMemberGet() {\n\t\tsuper();\n\t}", "@Override\n String get();", "public DResult get(Get get, long startId) throws IOException;", "@Override\n\tpublic void get() {\n\t\tSystem.out.println(\"this is get\");\n\t}", "public abstract String get();", "@Override\n\t\tpublic void rest() {\n\t\t\t\n\t\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private void mappingMethodGet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodGet = \"get\" + aux;\n\t\tthis.methodGet = this.classFather.getMethod(methodGet);\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "String getInfo();", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}", "public Book getBook() \t\t{ return this.myBook; }", "Map getAll();", "Reserva Obtener();", "public DocumentoBase getDocumentoBase()\r\n/* 130: */ {\r\n/* 131:154 */ return this.documentoBase;\r\n/* 132: */ }", "@Override\n\tpublic void getData() {\n\t\t\n\t}", "public boolean isGet();", "protected abstract Object _get(String key);", "public Object getObject() {\r\n/* 109 */ return this.object;\r\n/* */ }", "@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "@Override\n\tpublic RacingBike get() {\n\t\tSystem.out.println(\"Inside get method of provider class!!!\");\n\t\treturn new ApacheRR310();\n\t}", "protected List getProperties() {\n return null;\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "T getObject() {\n\t\t\treturn data;\n\t\t}", "protected List getList() {\n/* 88 */ return (List)getCollection();\n/* */ }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t\t\n\t}", "private void getMall(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}", "protected abstract Set method_1559();", "void getPeople();", "private ApiInfo metadata() {\n\t\treturn new ApiInfoBuilder().title(\"# Online Home Decor Store #\")\n\t\t\t\t.description(\"Suppliers and Categories operations are present\").build();\t\n\t}", "public Genero getGenero()\r\n/* 143: */ {\r\n/* 144:261 */ return this.genero;\r\n/* 145: */ }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n\n params.put(\"id\", id);\n params.put(\"type\", type);\n\n Log.d(TAG, \"getParams: \"+params);\n\n\n\n return params;\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n \r\n }", "Object getData() { /* package access */\n\t\treturn data;\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "public String get();", "@Override\n protected Map<String, String> getParams() {\n return params;\n }", "private void getUserInfo() {\n\t}", "public EntityMetadata[] getMetadata()\r\n/* 30: */ {\r\n/* 31:30 */ return this.metadata;\r\n/* 32: */ }", "@Override\r\n protected void fetchData() {\n\r\n }", "public CuentaContable getCuentaContable()\r\n/* 78: */ {\r\n/* 79: 99 */ return this.cuentaContable;\r\n/* 80: */ }", "public Empresa getEmpresa()\r\n/* 84: */ {\r\n/* 85:131 */ return this.empresa;\r\n/* 86: */ }", "Documento getDocumento();", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }", "public String getAnotherDetail();", "GetResponse() {\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}", "@RequestMapping(value=\"/getbook\", method=RequestMethod.GET, produces = \"application/json\")\n\tpublic Book getBook() {\n\t\treturn new Book(\"1\", \"Marvel Comics\", \"Stanlee\", 200D, \"Awesome book\");\n\t}", "public String getAuthor(){return author;}", "public Object getObject() ;", "private void getTradeDetail() {\n\t\t\tsendData(\"<get></get>\");\n\t}", "private Attributes getAttributes()\r\n\t{\r\n\t return attributes;\r\n\t}", "Object get()\n\t{\n\t\tif (length == 0 ) \n\t\t{\t\n\t\t\tthrow new RuntimeException(\"List Error: cannot call get() on empty List\");\n\t\t}\n\t\tif (cursor == null\t) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call get() on cursor that is off the list\");\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn cursor.data;\n\t\t}\n\t}", "public String getNombre()\r\n/* 113: */ {\r\n/* 114:204 */ return this.nombre;\r\n/* 115: */ }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "Object getCurrentData();", "@Override\n protected Map<String, String> getParams() {\n return params;\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "public String getNombre()\r\n/* 60: */ {\r\n/* 61: 67 */ return this.nombre;\r\n/* 62: */ }", "public List method_6440() {\r\n return this.field_6225;\r\n }", "public Map method_6439() {\r\n return this.field_6226;\r\n }", "int getMeta();", "public Book getBook() {\n\t\treturn book; //changed BoOk to book\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\r\n\t}", "private RESTBackend()\n\t\t{\n\t\t\t\n\t\t}" ]
[ "0.6734013", "0.65661937", "0.6531823", "0.6522929", "0.6522929", "0.64734006", "0.642728", "0.6413253", "0.5991443", "0.59848124", "0.5965935", "0.59497434", "0.5935104", "0.59126407", "0.58430487", "0.5837467", "0.5837467", "0.57962626", "0.5792321", "0.5741048", "0.57276744", "0.5701264", "0.5699384", "0.5692689", "0.56915194", "0.5689401", "0.56781226", "0.5674653", "0.5661093", "0.5656886", "0.5637032", "0.5626898", "0.5618954", "0.5615706", "0.561036", "0.55974424", "0.55974424", "0.55974424", "0.5588673", "0.5582647", "0.5557256", "0.55478346", "0.55476624", "0.5535673", "0.5525044", "0.551598", "0.551227", "0.5499863", "0.5499365", "0.5492365", "0.5475234", "0.54665995", "0.54665995", "0.5464663", "0.54610723", "0.54601336", "0.5452805", "0.5451834", "0.54479504", "0.54416335", "0.5440536", "0.543733", "0.543028", "0.54243773", "0.54233795", "0.54204386", "0.54204386", "0.5419796", "0.5416025", "0.5415863", "0.54106426", "0.5408489", "0.54068965", "0.5406048", "0.540543", "0.54045475", "0.54016364", "0.5399479", "0.5395183", "0.5395046", "0.53939337", "0.53902066", "0.5390018", "0.5378216", "0.5374377", "0.53742933", "0.53740776", "0.53719836", "0.53715956", "0.5369017", "0.5369017", "0.5367662", "0.53673106", "0.5365984", "0.535655", "0.5355847", "0.53450966", "0.5340808", "0.5340647", "0.5340647", "0.53388417" ]
0.0
-1
Public constructor for Food with the food name and calories value.
public Food(String foodName, double calories) { this.foodName = foodName; this.calories = Optional.of(calories); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Food(String foodName) {\n this.foodName = foodName;\n this.calories = Optional.empty();\n }", "public Food(String name, int caloriesPerServing) {\n this.name = name;\n this.caloriesPerServing = caloriesPerServing;\n this.amount = 1;\n }", "public Food() {\n super(1, 0, 1, 100, 5, 5, Resources.RICHSOIL, Resources.POORSOIL, \"Food\");\n }", "public Food(String name, int health, int wieght, int value)\n {\n super(name, health, wieght, value);\n }", "public Food(String name, double price) {\n\t\tthis.name = name;\n\t\tthis.price = price;\n\t}", "public Food (int id, String name, Seller seller, int price, FoodCategory category)\n {\n this.id=id;\n this.name=name;\n this.seller=seller;\n this.price=price;\n this.category=category;\n }", "public Food(int id, String name, int price, int quantity, int feedAmount, int hungerFactor) {\n\t\tsuper(id, name, price, quantity);\n\t\tthis.feedAmount = feedAmount;\n\t\tthis.hungerFactor = hungerFactor;\n\t}", "public YuanC_LuH_Food()\n\t{\n\t\tdishName=\"\";\n\t\tcalories=0.0;\n\t\tprice=0.0;\n\t\tcategory=\"\";\n\t\tnumber=0;\n\t\t\n\t}", "public Fish(String name, String gender){\n this.name = name;\n this.gender = gender;\n this.value = 10;\n this.eats = whatItEats(new fishFood());\n this.portionSize = 20;\n this.minimumOffspring = 1;\n this.maximumOffspring = 12;\n this.maxAge = 4;\n this.vetCost = 2;\n }", "public Food() {\n\t\tsuper(\"FOOD.png\");\n\t}", "public FoodLogEntry(String name) {\n super(name);\n }", "public FoodGroup() {\n\t\tmeal = new ArrayList<String>();\n\t\tfoodDetail = new HashMap<String,Food>();\n\t\tfoodPortion = new HashMap<String,Double>();\n\t}", "public Ingredient(String description, Money cost, int calories){\r\n //use the setters methods to set description, cost, calories\r\n setDescription(description);\r\n setCost(cost);\r\n setCalories(calories);\r\n }", "public foodRecommended() {\n\n }", "public MealRecord(Integer mealId, String name, Integer calories, Double fat, Double proteins) {\n\t\tsuper(Meal.MEAL);\n\n\t\tsetValue(0, mealId);\n\t\tsetValue(1, name);\n\t\tsetValue(2, calories);\n\t\tsetValue(3, fat);\n\t\tsetValue(4, proteins);\n\t}", "public Food(int id, String allergy, String alcohol, String foodPreference) {\n this.id = id;\n this.allergy = allergy;\n this.alcohol = alcohol;\n this.foodPreference = foodPreference;\n }", "public Food(int x, int y) {\n\t\tsuper(\"FOOD.png\",x,y);\n\t}", "public Fruit(){\r\n\t\tthis.name = \"Not Specified\";\r\n\t\tthis.color = \"Not Specified\";\r\n\t\tthis.averageHarvestTime = 0.0;\r\n\t\tthis.timeUnit = \"days\";\r\n\t}", "public FoodList() {\n this.foodEntries = new ArrayList<>();\n }", "public Food()\n {\n x = (int) Math.floor(Math.random() * RANGEX)*20;\n y = (int) Math.floor(Math.random() * RANGEY)*20;\n isEaten = false;\n }", "public Marinara(String description, Money cost, int calories) {\n\t\tsuper(description, cost, calories);\n\t}", "public Recipes()\n {\n\t\titems = new ArrayList<food>();\n }", "public Fish() {\r\n\t}", "public Meat(String description, Money cost, int calorieCount) {\r\n super(description,cost,calorieCount);\r\n }", "public Pizza() {\n this(\"small\", 1, 1, 1);\n }", "public Restaurant(String _name)\n {\n // assign default values\n reviewCount = 0;\n reviewScoreTotal = 0;\n this.name = _name;\n this.totalCustomers = 0;\n starRating = 0;\n location = \"Not listed\";\n numOfMenuItems = 0;\n numberOfRestraunts = 0;\n cuisine = \"Unknown\";\n typeOfFood = \"\";\n dishOfTheDay = \"Unknown\";\n typeOfDrink = \"\";\n employees = 0;\n\n }", "public Meal(String mealName, int calsPerUnit) {\n this.ID = -1;\n this.mealName = mealName;\n this.calsPerUnit = calsPerUnit;\n }", "public Drink(String name){\n this.name = name;\n }", "public DessertItem() {\n this(\"\");\n }", "public Soda(String _name, double _price, int _quantity){\n this.name = _name;\n this.price = _price;\n this.quantity = _quantity;\n }", "Paranormal(String name, String origin, int dangerrating, String foodType, int foodAmt){\n super(name, origin, dangerrating);\n foodType = \"meat\";\n foodAmt = 5;\n }", "public Animal(String farmObjectType, int purchasePrice){\n\t\tthis.setFarmObjectType(farmObjectType); \n\t\tthis.setPurchasePrice(purchasePrice);\n\t\tthis.setHealth(100); \n\t\tthis.setHappiness(100); \n\t}", "protected FoodList(ArrayList<FoodEntry> entries) {\n this.foodEntries = entries;\n }", "public FoodModel()\n\t{\n\t\tgenerateRandomPosition();\n\t}", "public void createFood() {\n }", "public Chicken() {\n\t\tsuper(id, price, type, description, happiness, health);\n\t}", "public Cat(final String name){\n\t\tsuper(name);\n\t}", "public Meal(int ID, String mealName, int calsPerUnit) {\n this.ID = ID;\n this.mealName = mealName;\n this.calsPerUnit = calsPerUnit;\n }", "void cook(Food food) {\n }", "public HotelsData (String Name, String distance, Double rating) {\n\n mName=Name;\n mDistance=distance;\n mRating=rating;\n\n\n\n }", "public Animal(String name) {\r\n this.animalName = name;\r\n }", "public Foodf () {\n\t\tpreferences = new ArrayList<String>();\n\t}", "public DiaryEntry(Drugs drug, int ammount) {\n\t\tsuper();\n\t\tthis.drug = drug;\n\t\tthis.ammount = ammount;\n\t}", "public Expense(String costCategory, String name, int price, Date date) {\n\t\t\tthis.costCategory = costCategory;\n\t\t\tthis.name = name;\n\t\t\tthis.price = price;\n\t\t\tthis.date = date;\n\t\t}", "public Car() {\r\n this(\"\", \"\", \"\", 0, Category.EMPTY, 0.00, \"\", 0, \"\", 0.00, \"\", DriveTrain.EMPTY,\r\n Aspiration.EMPTY, 0.00, 0.00, 0.00, 0.00, 0.0, 0.0, 0.0, 0.0, 0.0);\r\n }", "public Chicken(String name, double price, int stars) { // constructor again.\r\n\t\tthis.name = name;\r\n\t\tthis.price = price;\r\n\t\tthis.stars = stars;\r\n\t}", "public Fruit() {\r\n\t}", "public Candy(String name) {\n\t\tsuper(name);\n\t}", "public Cat(String name){\n this.name = name;\n this.setDescription();\n }", "public void food(){\n\t\tSystem.out.println(\"Name:\");\n\t\tString nameRegistered = reader.nextLine();\n\t\tSystem.out.println(\"Nit:\");\n\t\tString nit = reader.nextLine();\n\t\tSystem.out.println(\"Address:\");\n\t\tString address = reader.nextLine();\n\t\tSystem.out.println(\"Contact number:\");\n\t\tString contactNumber = reader.nextLine();\n\t\tSystem.out.println(\"Number of employees:\");\n\t\tint employees = reader.nextInt();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Value of the actives:\");\n\t\tdouble value = reader.nextDouble();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Legal representative:\");\n\t\tString legalRepresentative = reader.nextLine();\n\t\tSystem.out.println(\"Constitution date:\");\n\t\tSystem.out.println(\"Day:\");\n\t\tint day = reader.nextInt();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Month:\");\n\t\tint month = reader.nextInt();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Year:\");\n\t\tint year = reader.nextInt();\n\t\treader.nextLine();\n\t\tDate constitution = new Date(day, month, year);\n\t\tSystem.out.println(\"floors of the building\");\n\t\tint rows = reader.nextInt();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Type:\");\n\t\tString type = reader.nextLine();\n\t\tSystem.out.println(\"Group of the food:\");\n\t\tint group = reader.nextInt();\n\t\treader.nextLine();\n\t\tFood toAdd = new Food(nameRegistered, nit, address, contactNumber, employees, value, legalRepresentative, constitution, rows, type, group);\n\t\ttheHolding.addSubordinate(toAdd);\n\t\tSystem.out.println(\"The company were added successfuly\");\n\t}", "public Ingredient(String name, double cost, double addOnPrice) {\n this.name = name;\n this.cost = cost;\n this.addOnPrice = addOnPrice;\n }", "public Pizza() {\n pizzaSize = \"small\";\n cheeseToppings = 0;\n pepperoniToppings = 0;\n veggieToppings = 0;\n }", "public Fish(int yearsToLive, Size size, String color)\n {\n super( yearsToLive, size, color);\n this.areal = \"Sea\";\n }", "public Item(String name, String description, int weight, int speed, int durability) {\n\t\tthis.name = name;\n\t\tthis.description = description;\n\t\tthis.weight = weight;\n\t\tthis.speed = speed;\n\t\tthis.durability = durability;\n\t}", "public Employee(String name){\r\n\t\tthis.employeeName = name;\r\n\t\tthis.salary = 0;\r\n\t}", "public Sandwich(String breadType, String[] ingredients,\n\t\t\t String foodType, String description, String fatContent,\n\t\t\t double price)\n\t{\n\t\t\n\t}", "public Item(int id, String name, int quantity, double price, Supplier supplier){\r\n toolId = id;\r\n toolName = name;\r\n toolQuantity = quantity;\r\n toolPrice = price;\r\n toolSupplier = supplier;\r\n }", "public Fish(String species, String desc)\n {\n super(species, desc);\n toy = \"Jesus net\";\n }", "Product(String name, int quantity, double price, double totalCost) {\n this.name = name;\n this.quantity = quantity;\n this.price = price;\n this.totalCost = totalCost;\n }", "Sorcerer (String cName){\n name = cName;\n hp = 20;\n mana = 100; \n strength = 2;\n vitality = 4;\n energy = 10;\n }", "Fruit(String name){\n this.name = name;\n this.color = null;\n }", "public Recipe() { }", "@NotNull public Builder calories(@NotNull Energy.Builder energy) {\n putValue(\"calories\", energy.build());\n return this;\n }", "Chef(String name, Restaurant restaurant) {\n super(name, restaurant);\n numChefs++;\n setId(numChefs);\n restaurant.getStaffSystem().addChef(this);\n }", "public DiaryEntry(Drugs drug, int ammount, int overRideDay) {\n\t\tsuper();\n\t\tthis.drug = drug;\n\t\tthis.ammount = ammount;\n\t\tthis.date.set(date.get(Calendar.YEAR), date.get(Calendar.MONTH), date.get(Calendar.DAY_OF_MONTH) - overRideDay);\n\t}", "public Archer(String archerName) {\n\tname = archerName;\n\thealth = 100;\n\tstrength = 100;\n\tdefense = 20;\n\tattack = 2.5;\n }", "@NotNull public Builder calories(@NotNull Energy energy) {\n putValue(\"calories\", energy);\n return this;\n }", "public Cattery()\r\n {\r\n businessName = \"unknown business\";\r\n catCollection = new ArrayList<Cat>();\r\n }", "public Meal(Date date, Dish dish, String category) {\n this.date = date;\n this.dish = dish;\n this.category = category;\n this.done = 0;\n }", "private WeekDays(String mood){\n this.mood = mood;\n }", "public Employee(String inName, double inSalary)\n\t{\n\t\tname = inName;\n\t\tsalary = inSalary;\n\t}", "public ProductFruit() {\r\n }", "public Unit(String name, int calories, String side) {\n super(name);\n this.side = side;\n setStrength(calories);\n setTagged(false);\n bandanas = 1;\n // profile = new Profile();\n setInJail(false);\n column = -1;\n row = -1;\n challenges = 0;\n challengesWon = 0;\n rewards = new ArrayList<Reward>();\n }", "public Invoice(int id, ArrayList<Food> foods, Customer customer)\n {\n this.id = id;\n this.foods = foods;\n // this.date = date;\n this.customer = customer;\n this.date = new GregorianCalendar();\n this.invoiceStatus = InvoiceStatus.Ongoing;\n }", "public Car( double fuelEfficiency)\n {\n // initialise instance variables\n fuelEfficiency = fuelEfficiency;\n fuelInTank = 0;\n }", "public Ticket(String name, javax.money.MonetaryAmount price, Festival festival){\n this.name = name;\n this.price = price;\n this.festival = festival;\n }", "public Magic(String name, String description, float leastAmount, float consumption, boolean heals)\n {\n this.name = name;\n this.description = description;\n this.leastAmount = leastAmount;\n this.consumption = consumption;\n this.heals = heals;\n }", "public FoodItemView(FoodItem fooditem) {\n this.fooditem = fooditem;\n this.setSpacing(5.0);\n // add a text filed to show the name of the food\n TextField foodItemName = new TextField(fooditem.getName());\n Tooltip tip = new Tooltip();\n tip.setText(fooditem.getName());// a tool tip the show the full name of the food item\n foodItemName.setTooltip(tip);\n foodItemName.setPrefWidth(250.0);\n foodItemName.setEditable(false);// can't edit the display of food item\n this.getChildren().add(foodItemName);\n }", "public Employee(String proffesion) {\n\n this.name = rnd.randomCharName(8);\n this.surname = rnd.randomCharName(7);\n this.hourSalary = rnd.randomNumber(75,100);\n this.profession = proffesion;\n this.workingHour = WORKING_HOURS;\n this.moneyEarned = 0;\n this.moneyEarned = 0;\n this.isAbleTowork = true; \n }", "public Armor(String name, double price, int def, int flex) {\r\n\t\tsuper(name, price);\r\n\t\tmFlexibility = flex;\r\n\t\t\r\n\t\t//pontos de defesa devem estar entre 1 e 30\r\n\t\tif (def > 30)\r\n\t\t{\r\n\t\t\tmDefensePts = 30;\r\n\t\t}else if (def < 1)\r\n\t\t{\r\n\t\t\tmDefensePts = 1;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tmDefensePts = def;\r\n\t\t}\r\n\t}", "public Strawberries() {\r\n\t\tsuper(price, nutrition, name);\r\n\t}", "public Item(String name, String image, String flavour, int price) {\n\t\tthis.name = name;\n\t\tthis.image = image;\n\t\tthis.flavour = flavour;\n\t\tthis.price = price;\n\t}", "public Car(double fuelEfficiency)\n {\n this.fuelEfficiency = fuelEfficiency;\n fuelInTank = 0;\n }", "public Storage(int capacity) {\n this.foods = new Food[capacity];\n buffer = new StringBuffer();\n }", "public Exercise(String name) {\n\t\tthis.name = name;\n\t\tsetList = new ArrayList<Set>();\n\t\trepsGoal = -1;\n\t\tweightGoal = -1;\n\t\trest = -1;\n\t\texerciseInstance = false;\n\t\tnotes = \"\";\n\t\toldId = -1;\n\t\tid = -1;\n\t}", "public CD(int id,String name, String singer, int numberOfSongs, double price) {\r\n\t\tsuper();\r\n\t\tthis.id = id;\r\n\t\tthis.name = name;\r\n\t\tthis.singer = singer;\r\n\t\tthis.numberOfSongs = numberOfSongs;\r\n\t\tthis.price = price;\r\n\t}", "public FoodHolder(@NonNull View itemView) {\n super(itemView);\n name = itemView.findViewById(R.id.textview_food_name);\n sugars = itemView.findViewById(R.id.textview_food_grams_sugar);\n foodType = itemView.findViewById(R.id.textview_food_foodtype);\n viewBackground = itemView.findViewById(R.id.layout_single_food_background);\n viewForeground = itemView.findViewById(R.id.layout_single_food_foreground);\n }", "public Fox() {\n super(randomAge(MAX_AGE), randomSex(), MAX_AGE, BREEDING_AGE, MAX_LITTER_SIZE, BREEDING_PROBABILITY, FOOD_VALUE, FULL_LEVEL);\n constructor();\n }", "@Override\r\n\tpublic String getFood() {\n\t\treturn \"banana\";\r\n\t}", "public ChickenBurger(int quantity) {\n\t\n\t\tsuper(\"Chicken Burger $8\", \"lettuce, tomato, topped with cheese, onions.\", quantity, 8);\n\t\n\t}", "public Restaurant() {\n\t\t\n\t}", "public Item(String itemName, double itemPrice, int numPurchased)\n {\n \tname = itemName;\n \tprice = itemPrice;\n \tquantity = numPurchased;\n }", "public Ingredient(String name, BigDecimal amount, String unitmeasure, List<Recipe> recipes) {\n this.name = name;\n this.amount = amount;\n this.unitMeasure = unitmeasure;\n this.recipes = recipes;\n }", "public Dog(String name, int size, int weight, int eyes, int legs, int tail, int teeth, String coat) {\n //super means to call a constructor from the class we are extending\n //can set values or call in the above constructor, your choice\n super(name, 1, 1, size, weight);\n //these are for the strictly dog paramters\n this.eyes = eyes;\n this.legs = legs;\n this.tail = tail;\n this.teeth = teeth;\n this.coat = coat;\n }", "public Candy() {\n\t\tthis(\"\");\n\t}", "public Energy(String name){\n this.name = name;\n }", "public Employee(String name, double salary){\r\n\t\tthis.employeeName = name;\r\n\t\tthis.salary = salary;\r\n\t}", "public Fruit(String color, String name) {\r\n\t\tthis.color = color;\r\n\t\tthis.name = name;\r\n\t}", "public interface Food {\n\n String getItem();\n String getType();\n String getDay();\n\n void setItem(String item);\n void setType(String type);\n void setDay(String day);\n}", "public Customer(String name)\n {\n this.name = name;\n this.happy = 5;\n }" ]
[ "0.83016837", "0.82871264", "0.7981219", "0.73111725", "0.7095479", "0.7074367", "0.7066755", "0.68134236", "0.6774589", "0.67213905", "0.6657314", "0.66536087", "0.66122717", "0.6589228", "0.6569474", "0.6528056", "0.65124077", "0.6441315", "0.64342767", "0.63542354", "0.6260028", "0.6169594", "0.6158137", "0.6154877", "0.6117267", "0.61006594", "0.6080668", "0.5995809", "0.5980486", "0.5980139", "0.5956812", "0.5950641", "0.59497637", "0.59331167", "0.5931507", "0.5897239", "0.5836959", "0.58304745", "0.582875", "0.5799207", "0.57833326", "0.57769394", "0.57681644", "0.57661617", "0.57618666", "0.5752758", "0.57492995", "0.5732043", "0.57296497", "0.5728825", "0.57174575", "0.57127124", "0.57046944", "0.5701952", "0.56864446", "0.56791943", "0.5676403", "0.56700844", "0.56548214", "0.56518924", "0.56473976", "0.5643461", "0.5642996", "0.5641375", "0.5639799", "0.56373686", "0.5626467", "0.5621717", "0.5618711", "0.5618686", "0.56186426", "0.561742", "0.5617165", "0.5615128", "0.5608739", "0.56086814", "0.5604807", "0.5600234", "0.55980754", "0.5588349", "0.5588115", "0.5572781", "0.5569213", "0.5559711", "0.5540046", "0.55383754", "0.55294013", "0.552507", "0.55202585", "0.55202013", "0.55136293", "0.5512453", "0.5512043", "0.5497834", "0.5494088", "0.54912114", "0.5491039", "0.54871273", "0.5486541", "0.5485044" ]
0.8243108
2
Public constructor for Food with the food name.
public Food(String foodName) { this.foodName = foodName; this.calories = Optional.empty(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Food() {\n super(1, 0, 1, 100, 5, 5, Resources.RICHSOIL, Resources.POORSOIL, \"Food\");\n }", "public Food(String name, int caloriesPerServing) {\n this.name = name;\n this.caloriesPerServing = caloriesPerServing;\n this.amount = 1;\n }", "public Food(String name, double price) {\n\t\tthis.name = name;\n\t\tthis.price = price;\n\t}", "public FoodLogEntry(String name) {\n super(name);\n }", "public Food() {\n\t\tsuper(\"FOOD.png\");\n\t}", "public Food (int id, String name, Seller seller, int price, FoodCategory category)\n {\n this.id=id;\n this.name=name;\n this.seller=seller;\n this.price=price;\n this.category=category;\n }", "public Food(int id, String name, int price, int quantity, int feedAmount, int hungerFactor) {\n\t\tsuper(id, name, price, quantity);\n\t\tthis.feedAmount = feedAmount;\n\t\tthis.hungerFactor = hungerFactor;\n\t}", "public Drink(String name){\n this.name = name;\n }", "public Food(String foodName, double calories) {\n this.foodName = foodName;\n this.calories = Optional.of(calories);\n }", "public Animal(String name) {\r\n this.animalName = name;\r\n }", "public Cat(final String name){\n\t\tsuper(name);\n\t}", "public Food(int x, int y) {\n\t\tsuper(\"FOOD.png\",x,y);\n\t}", "public Food(String name, int health, int wieght, int value)\n {\n super(name, health, wieght, value);\n }", "public CyberPet ( String str )\r\n {\r\n name = str;\r\n }", "public Fish() {\r\n\t}", "public Fish(String name, String gender){\n this.name = name;\n this.gender = gender;\n this.value = 10;\n this.eats = whatItEats(new fishFood());\n this.portionSize = 20;\n this.minimumOffspring = 1;\n this.maximumOffspring = 12;\n this.maxAge = 4;\n this.vetCost = 2;\n }", "public foodRecommended() {\n\n }", "public Pizza() {\n this(\"small\", 1, 1, 1);\n }", "public Ingredient(String name){\r\n\t\tthis.name = name;\r\n\t}", "public CheeseConnoisseur(String name) {\n this(name, 0);\n }", "public Restaurant(String _name)\n {\n // assign default values\n reviewCount = 0;\n reviewScoreTotal = 0;\n this.name = _name;\n this.totalCustomers = 0;\n starRating = 0;\n location = \"Not listed\";\n numOfMenuItems = 0;\n numberOfRestraunts = 0;\n cuisine = \"Unknown\";\n typeOfFood = \"\";\n dishOfTheDay = \"Unknown\";\n typeOfDrink = \"\";\n employees = 0;\n\n }", "public Shelf(String name) {\r\n\t\tsuper();\r\n\t\tthis.name = name;\r\n\t}", "public Weapon (String name) {\n\t\tsuper(name, weight, itemDamage, 0, 0, quantity);\n\t}", "Fruit(String name){\n this.name = name;\n this.color = null;\n }", "public Candy(String name) {\n\t\tsuper(name);\n\t}", "public YuanC_LuH_Food()\n\t{\n\t\tdishName=\"\";\n\t\tcalories=0.0;\n\t\tprice=0.0;\n\t\tcategory=\"\";\n\t\tnumber=0;\n\t\t\n\t}", "public Cat(String name){\n this.name = name;\n this.setDescription();\n }", "public Fish(String species, String desc)\n {\n super(species, desc);\n toy = \"Jesus net\";\n }", "public Food(int id, String allergy, String alcohol, String foodPreference) {\n this.id = id;\n this.allergy = allergy;\n this.alcohol = alcohol;\n this.foodPreference = foodPreference;\n }", "public Item(String input) {\n name = input;\n }", "public Fruit(String color, String name) {\r\n\t\tthis.color = color;\r\n\t\tthis.name = name;\r\n\t}", "public Soda(String _name, double _price, int _quantity){\n this.name = _name;\n this.price = _price;\n this.quantity = _quantity;\n }", "public DessertItem() {\n this(\"\");\n }", "public Chicken(String name, double price, int stars) { // constructor again.\r\n\t\tthis.name = name;\r\n\t\tthis.price = price;\r\n\t\tthis.stars = stars;\r\n\t}", "public Energy(String name){\n this.name = name;\n }", "public void createFood() {\n }", "public FoodGroup() {\n\t\tmeal = new ArrayList<String>();\n\t\tfoodDetail = new HashMap<String,Food>();\n\t\tfoodPortion = new HashMap<String,Double>();\n\t}", "public Person(String name){\n\t\t\n\t\t\n\t\tthis.myName = name;\n\t\t\n\t}", "public Fruitore(String nomeUtente)\r\n\t{\r\n\t\tthis.nomeUtente = nomeUtente;\r\n\t}", "public Cook(String name) {\n\t\tthis.name = name;\n\t}", "Paranormal(String name, String origin, int dangerrating, String foodType, int foodAmt){\n super(name, origin, dangerrating);\n foodType = \"meat\";\n foodAmt = 5;\n }", "public String getFoodName() {\n return foodName;\n }", "public Fruit(){\r\n\t\tthis.name = \"Not Specified\";\r\n\t\tthis.color = \"Not Specified\";\r\n\t\tthis.averageHarvestTime = 0.0;\r\n\t\tthis.timeUnit = \"days\";\r\n\t}", "public Employee(String Name) {\r\n this.Name = Name;\r\n }", "public Person(String name){\n\t\tthis.name = name ; \n\t}", "public FoodList() {\n this.foodEntries = new ArrayList<>();\n }", "public Fruit() {\r\n\t}", "public Item(String name, String image, String flavour, int price) {\n\t\tthis.name = name;\n\t\tthis.image = image;\n\t\tthis.flavour = flavour;\n\t\tthis.price = price;\n\t}", "public Employee(String name){\r\n\t\tthis.employeeName = name;\r\n\t\tthis.salary = 0;\r\n\t}", "Chef(String name, Restaurant restaurant) {\n super(name, restaurant);\n numChefs++;\n setId(numChefs);\n restaurant.getStaffSystem().addChef(this);\n }", "public Fleet(String name) {\r\n this.name = name;\r\n boats = new ArrayList<Boat>();\r\n }", "public Person(String name) {\n this.name = name;\n }", "public Doctor(String name)\n {\n super(name, \"Dr\");\n }", "public Dog(String name) {\n if (name == null || name.trim().isEmpty()) {\n throw new IllegalArgumentException(\"The Dog's name \"\n + \"should not be null or whitespace!\");\n } else {\n this.name = name;\n }\n \n }", "public Cidade(String nome){\n super(0, nome, 0.0, 0.0);\n }", "public Food()\n {\n x = (int) Math.floor(Math.random() * RANGEX)*20;\n y = (int) Math.floor(Math.random() * RANGEY)*20;\n isEaten = false;\n }", "public Recipes()\n {\n\t\titems = new ArrayList<food>();\n }", "public FoodItemView(FoodItem fooditem) {\n this.fooditem = fooditem;\n this.setSpacing(5.0);\n // add a text filed to show the name of the food\n TextField foodItemName = new TextField(fooditem.getName());\n Tooltip tip = new Tooltip();\n tip.setText(fooditem.getName());// a tool tip the show the full name of the food item\n foodItemName.setTooltip(tip);\n foodItemName.setPrefWidth(250.0);\n foodItemName.setEditable(false);// can't edit the display of food item\n this.getChildren().add(foodItemName);\n }", "public Archer(String archerName) {\n\tname = archerName;\n\thealth = 100;\n\tstrength = 100;\n\tdefense = 20;\n\tattack = 2.5;\n }", "public FoodModel()\n\t{\n\t\tgenerateRandomPosition();\n\t}", "public f206(String name) {\n super(name);\n }", "public Ship(String name) {\r\n this.name = name;\r\n }", "public InventoryItem(String name) { \n\t\tthis(name, 1);\n\t}", "public Customer(String name)\n {\n this.name = name;\n this.happy = 5;\n }", "public Funk(String name){\n\t\tthis(name,new ArrayList<>());\n\t}", "@Override\r\n\tpublic String foodName() {\n\t\treturn null;\r\n\t}", "public Person(String name)\n {\n this.name = name;\n }", "public EmpName() {\n\t\tsuper(\"Aditi\",\"Tyagi\");\n\t\t//this(10);\n\t\tSystem.out.println(\"Employee name is Vipin\");\n\t\t\n\t}", "public Name() {\n\n }", "public Person(String inName)\n {\n name = inName;\n }", "public Dog(String name, int size, int weight, int eyes, int legs, int tail, int teeth, String coat) {\n //super means to call a constructor from the class we are extending\n //can set values or call in the above constructor, your choice\n super(name, 1, 1, size, weight);\n //these are for the strictly dog paramters\n this.eyes = eyes;\n this.legs = legs;\n this.tail = tail;\n this.teeth = teeth;\n this.coat = coat;\n }", "private FederalState(final String name){\n\t\tthis.name = name;\n\t}", "public Foodf () {\n\t\tpreferences = new ArrayList<String>();\n\t}", "public Animal(String message){\n name=\"Bob the Animal\";\n System.out.println(message);\n }", "public Exercise(String name) {\n\t\tthis.name = name;\n\t\tsetList = new ArrayList<Set>();\n\t\trepsGoal = -1;\n\t\tweightGoal = -1;\n\t\trest = -1;\n\t\texerciseInstance = false;\n\t\tnotes = \"\";\n\t\toldId = -1;\n\t\tid = -1;\n\t}", "public Category(String n) {\n this.name = n;\n }", "public Restaurant() {\n\t\t\n\t}", "public Factory(NamedObj container, String name)\n\t\t\t\tthrows IllegalActionException, NameDuplicationException {\n\t\t\tsuper(container, name);\n\t\t}", "public ProductFruit() {\r\n }", "public Mage(String name){\n this.name = name; //Set the name of the new mage to the supplied String parameter \"name\"\n this.className = \"Mage\"; //All mages are of the class Mage\n this.sex = \"F\"; //New mages are created as female by default\n this.health = 100; //New mages are created with 100 health\n this.mana = 100; //New mages are created with 100 mana\n this.spells = new ArrayList<Spell>(); //For now, an empty list of spells.\n this.fireball = new Spell(); //All spells are fireballs for now.\n }", "public Chicken() {\n\t\tsuper(id, price, type, description, happiness, health);\n\t}", "public Department(String name){\n this.name = name;\n }", "public Ingredient(String name, double cost, double addOnPrice) {\n this.name = name;\n this.cost = cost;\n this.addOnPrice = addOnPrice;\n }", "public Fruitore()\r\n\t{\r\n\t\tthis.nomeUtente = Costanti.STRINGA_VUOTA;\r\n\t}", "public Woman(String name) {\r\n\t\tsuper(name);\r\n\t\tcount++;\r\n\t}", "public NamedEntity(String name) { this(name, \"\"); }", "public Coffee(int name, int location, int blurb) {\n mCoffeeName = name;\n mCoffeeLocation = location;\n mCoffeeBlurb = blurb;\n }", "void cook(Food food) {\n }", "public Recipe() { }", "public Sandwich(String breadType, String[] ingredients,\n\t\t\t String foodType, String description, String fatContent,\n\t\t\t double price)\n\t{\n\t\t\n\t}", "public MenuItem(String name, String category, String description, double price){\n this.name = name;\n this.category = category;\n this.description = description;\n this.price = price;\n }", "public Cheese() {\n\n }", "public Car(String carname) {\n this.carname = carname;\n }", "public Product(Name productName, int productQuantity) {\n this.productName = productName;\n this.productQuantity = productQuantity;\n }", "public Armor(String _name){\n super();\n // sets owner = _owner\n // sets posX = _posX\n // sets posY = _posY\n // sets itemIntValue = _itemIntValue\n name = _name; \n }", "public Ticket(String name, javax.money.MonetaryAmount price, Festival festival){\n this.name = name;\n this.price = price;\n this.festival = festival;\n }", "public MyClass1(String name) {\n\t\tsuper();\n\t\tthis.name = name;\n\t}", "public Restaurant() { }", "public Man(String Name) {\n\t\tsuper(Name);\n\t}", "public Foret(){\n super(\"Foret\");\n }" ]
[ "0.8005496", "0.78610593", "0.7460428", "0.7200832", "0.7156509", "0.7105146", "0.70239174", "0.6966945", "0.69461954", "0.69008756", "0.6735644", "0.66813016", "0.66775984", "0.6621597", "0.6618146", "0.6585181", "0.65819806", "0.65734315", "0.65060663", "0.6445976", "0.64449763", "0.64433616", "0.64122117", "0.64048046", "0.6398151", "0.6381192", "0.63486785", "0.6346864", "0.6272527", "0.6248216", "0.62450373", "0.62344915", "0.62312967", "0.62282705", "0.6215407", "0.6211667", "0.6210378", "0.620905", "0.6205077", "0.61994267", "0.617549", "0.6174917", "0.6127668", "0.6112894", "0.6112336", "0.61029387", "0.6102154", "0.6098933", "0.60852265", "0.60824466", "0.60809886", "0.60800314", "0.6075771", "0.60688204", "0.60644615", "0.6051493", "0.6049428", "0.6045479", "0.60397583", "0.6038338", "0.6035906", "0.6033609", "0.60316527", "0.6020396", "0.6006259", "0.59873897", "0.59869105", "0.59824526", "0.5978107", "0.59692717", "0.59603727", "0.5958901", "0.5947081", "0.59356993", "0.5934744", "0.5931343", "0.5925887", "0.5919248", "0.5914266", "0.591072", "0.590979", "0.5909249", "0.5899506", "0.5894418", "0.5889889", "0.58780855", "0.58635706", "0.5859676", "0.58572024", "0.5856526", "0.5856289", "0.58535516", "0.5851483", "0.5845646", "0.5839512", "0.58313483", "0.58240455", "0.5812545", "0.5811093", "0.5807935" ]
0.8147686
0
Getter for food name.
public String getFoodName() { return foodName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic String foodName() {\n\t\treturn null;\r\n\t}", "public String getMealName() {\n return name.getText().toString();\n }", "public String getName() {\n return dishName;\n }", "public String getName() {\r\n return this.animalName;\r\n }", "java.lang.String getHotelName();", "public String getName() {\n return name + \"\";\n }", "public String getName() { return name.get(); }", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "public static String getName()\n {\n read_if_needed_();\n \n return _get_name;\n }", "@Override\n public String getName()\n {\n if (amount > 1)\n {\n return amount + \" Nickles\";\n }\n else\n {\n return amount + \" Nickle\";\n }\n }", "@Override\r\n\tpublic String getFood() {\n\t\treturn \"banana\";\r\n\t}", "public String getName() {\n return name.get();\n }", "public java.lang.String getName();", "@SuppressWarnings(\"deprecation\")\n\t@Override\n\tpublic String getName() {\n\t\tif (hasCustomName()) {\n\t\t\treturn getCustomNameTag();\n\t\t}\n\n\t\t// return default breed name otherwise\n\t\tString entName = EntityList.getEntityString(this);\n\t\tString breedName = getBreedType().getName().toLowerCase();\n\t\treturn I18n.translateToLocal(\"entity.\" + entName + \".\" + breedName + \".name\");\n\t}", "String getName() ;", "public String getName() {\r\n return myName;\r\n }", "public String getName() {\n return this.id + \", \" + this.nom + \" \" + this.prenom + \", \" + this.cin;\n }", "@Override\n\tpublic String getName() {\n\t\treturn nombre;\n\t}", "public String getFood() {\n if(food != null)\n return \"食材:\"+food;\n else {\n return content ;\n }\n }", "public String getName() {\r\n\t\treturn name.get();\r\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn \"Cold Coffee\";\n\t}", "public String getName()\r\n {\r\n return (m_name);\r\n }", "public String getName() {\r\n return \"Boyer/Moore-Suche in Strings\";\r\n }", "public String getAnimalName() {\n if (animal == null) {\n String msg = \"Name is null\";\n return msg;\n } else {\n return animal.getName();\n }\n }", "public String getName(){\n\n //returns the value of the name field\n return this.name;\n }", "public String getPetName();", "public java.lang.String getPetName() {\n return localPetName;\n }", "public String getName()\n {\n return name.toUpperCase();\n }", "public Name getName();", "public String getName() {\n return (this.name);\n }", "public String get_name() {\r\n return name;\r\n }", "public String getName()\n {\n return foreName + \" \" + lastName;\n }", "public com.commercetools.api.models.common.LocalizedString getName() {\n return this.name;\n }", "@Nullable String getName();", "@Nullable String getName();", "@Override\n\tString getName(){\n\t\treturn animalName;\n\t}", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();" ]
[ "0.7466737", "0.7226038", "0.71162015", "0.7010469", "0.6977572", "0.68739444", "0.6833469", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.67751366", "0.677502", "0.67722607", "0.67706895", "0.67687744", "0.6759474", "0.67405474", "0.67331994", "0.67269474", "0.6725085", "0.6719175", "0.6711032", "0.67092365", "0.6705963", "0.67022455", "0.667736", "0.66702473", "0.66654664", "0.66505843", "0.6629326", "0.66257447", "0.66216743", "0.66188806", "0.6615383", "0.6613166", "0.66025877", "0.66025877", "0.6599853", "0.65995413", "0.65995413", "0.65995413", "0.65995413", "0.65995413", "0.65995413", "0.65995413", "0.65995413", "0.65995413", "0.65995413", "0.65995413", "0.65995413", "0.65995413" ]
0.80677456
0
Getter for the calories of the food.
public Optional<Double> getCalories() { return calories; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getCalories() {\n\t\tdouble mealCalories = 0;\n\t\tfor (String foodName : meal) {\n\t\t\tdouble calories = foodDetail.get(foodName).getCalories();\n\t\t\tdouble portion = foodPortion.get(foodName);\n\t\t\tmealCalories += calories * portion;\n\t\t}\n\t\treturn mealCalories;\n\t}", "public int getCalories() {\n return this.calories += ((this.protein * 4) + (this.carbohydrates * 4) + (this.fats * 9));\n }", "public int getCalories() {\n return calories;\n }", "public int getCalories () {\n\t\treturn this.calories;\n\t}", "public int getCalories(){\r\n \tint retVal = this.calories;\r\n return retVal;\r\n }", "public int sumCalories() {\n int calories = 0;\n\n for (Food f : units) {\n calories += f.getCalories();\n }\n\n return calories;\n }", "public Double getCalories() {\n return product.getCalories() * weight / 100;\n }", "@JsonIgnore public Energy getCalories() {\n return (Energy) getValue(\"calories\");\n }", "public int getFood(){\r\n\t\treturn food;\r\n\t}", "public int getFood() {\n\t\treturn food;\n\t}", "public Energy getCalories() throws ClassCastException;", "public long getCurrentCalories() {\n return currentCalories;\n }", "public int foodCount() {\r\n\t\treturn this.food;\r\n\t}", "public int getFoodConsumption() {\n return getConsumptionOf(getSpecification().getFoodGoodsTypeList());\n }", "public ArrayList<Food> getFood()\n\t{\n\t\treturn food;\n\t}", "public Integer getFoodAmount() {\n return foodAmount;\n }", "public double calcTotalCaloriesBurned() {\n double sum = 0.0;\n for (ExerciseModel exercise : exercises) {\n sum += exercise.getCalories();\n }\n\n return sum;\n }", "@JsonIgnore public Collection<Energy> getCaloriess() {\n final Object current = myData.get(\"calories\");\n if (current == null) return Collections.emptyList();\n if (current instanceof Collection) {\n return (Collection<Energy>) current;\n }\n return Arrays.asList((Energy) current);\n }", "public List<Food> getFoods() {\n return FoodListManager.convertListToFoods(foodEntries);\n }", "public int sumCalories(Meal m) {\n List<Food> foodsByMeal = getFoodsByMeal(m);\n int calories = 0;\n\n for (Food f : foodsByMeal) {\n calories += f.getCalories();\n }\n\n return calories;\n }", "public ArrayList<Food> getFoods()\n {\n return foods;\n }", "public double getCarbs() {\n\t\tdouble mealCarbs = 0;\n\t\tfor (String foodName : meal) {\n\t\t\tdouble carbs = foodDetail.get(foodName).getCarbs();\n\t\t\tdouble portion = foodPortion.get(foodName);\n\t\t\tmealCarbs += carbs * portion;\n\t\t}\n\t\treturn mealCarbs;\n\t}", "public int getFoodCount()\r\n\t{\r\n\t\treturn foodCount;\r\n\t}", "private void updateCurrentCalories() {\n currentCalories = 0;\n currentFats = 0;\n currentCarbs = 0;\n currentProteins = 0;\n for (Food food : foodListView.getItems()) {\n currentCalories += food.getCalories();\n currentFats += food.getFat().getAmount();\n currentCarbs += food.getCarbs().getAmount();\n currentProteins += food.getProtein().getAmount();\n }\n }", "public ch.ivyteam.ivy.scripting.objects.List<online.food.ordering.Food> getFoods()\n {\n return foods;\n }", "@Override\r\n\tpublic double foodConsumption() {\n\t\treturn 0;\r\n\t}", "public List<Food> getAvailableFood() {\n return availableFood;\n }", "public double getFat() {\n\t\tdouble mealFat = 0;\n\t\tfor (String foodName : meal) {\n\t\t\tdouble fat = foodDetail.get(foodName).getFat();\n\t\t\tdouble portion = foodPortion.get(foodName);\n\t\t\tmealFat += fat * portion;\n\t\t}\n\t\treturn mealFat;\n\t}", "public double getFoodQuantity() {\r\n\t\treturn fruitQuantity + meatQuantity;\r\n\t}", "public double countCalories() {\n double count = 0;\n\n for (VegetablePortion vegetablePortion : list) {\n count += vegetablePortion.getVegetable().getCalories() * vegetablePortion.getWeight();\n }\n\n return count;\n }", "public double getexpense()\n\t{\n\t\treturn this.expenses;\n\t}", "public int getDefenses() {\n return defenses;\n }", "public int getCalorias() {return calorias;}", "public Food(String foodName, double calories) {\n this.foodName = foodName;\n this.calories = Optional.of(calories);\n }", "@NotNull public Builder calories(@NotNull Energy.Builder energy) {\n putValue(\"calories\", energy.build());\n return this;\n }", "@NotNull public Builder calories(@NotNull Energy energy) {\n putValue(\"calories\", energy);\n return this;\n }", "protected int get_food_level()\n {\n return food_level;\n }", "public double getTotalCO2Emissions() {\n totalCO2Emissions = 0;\n Food foodItem;\n\n // Loop through the ArrayList with the 5 Food Categories\n // For each Food Category, loop through the food items and get the CO2e and timesPerWeek\n // Add up the total CO2 emissions for every food item\n // Returns the total CO2 emissions per year\n for(int foodCatIndex=0; foodCatIndex<foodBank.size(); foodCatIndex++){\n foodlist = foodBank.get(foodCatIndex);\n for(int foodNameIndex=0; foodNameIndex<foodlist.getSize(); foodNameIndex++){\n foodItem = foodlist.getFood(foodNameIndex);\n totalCO2Emissions += foodItem.getCo2PerServing() * foodItem.getTimesPerWeek();\n }\n }\n return totalCO2Emissions * NUM_WEEKS_IN_YEAR;\n }", "public void setCalories(int calories) {\n\t\tthis.calories = calories; \n\t}", "private void calcCalories()\n\t{\n\t\tif (getIntensity() == 1)\n\t\t{\n\t\t\tbikeCal = 10 * bikeTime; \n\t\t}\n\t\telse if (getIntensity() == 2)\n\t\t{\n\t\t\tbikeCal = 14.3 * bikeTime; \n\t\t}\n\t\telse {\n\t\t\tJOptionPane.showMessageDialog(null, \"error\");\n\t\t}\n\t}", "public int getPoundsOfFoodNeeded() {\n\t\treturn this.poundsOfFoodNeeded;\n\t}", "public static double getCalories(double baseCalorie, String preferences){\n double result = 0;\n switch(preferences){\n case \"sedentary\":\n result = baseCalorie * 1.2;\n break;\n case \"light\":\n result = baseCalorie * 1.37;\n break;\n case \"moderate\":\n result = baseCalorie * 1.46;\n break;\n case \"active\":\n result = baseCalorie * 1.55;\n break;\n case \"very active\":\n result = baseCalorie * 1.72;\n break;\n case \"extra active\":\n result = baseCalorie * 1.9;\n break;\n }\n return result;\n }", "public List<Serie> getCaloriesByDate(){\r\n\t\t\r\n\t\treturn daoEjercicio.getCaloriesByDate();\r\n\t\t\r\n\t}", "public double totalEarnings() {\n\t\treturn dayEarnings;\n\t}", "@Override\n\tpublic double getCost() {\n\t\tcost = roll.getCost();\n\t\tif(roll.getType().equals(\"egg\")) {\n\t\t\tcost+=0.40;\n\t\t}else if(roll.getType().equals(\"jelly\")) {\n\t\t\tcost+=0.20;\n\t\t}else if(roll.getType().equals(\"pastry\")) {\n\t\t\tcost+=1.20;\n\t\t}else if(roll.getType().equals(\"sausage\")) {\n\t\t\tcost+=0.75;\n\t\t}else {\n\t\t\tcost+=0.10;\n\t\t}\n\t\t\n\t\t\t\n\t\treturn cost;\n\t\t\n\t}", "public final void calcular() {\n long dias = Duration.between(retirada, devolucao).toDays();\n valor = veiculo.getModelo().getCategoria().getDiaria().multiply(new BigDecimal(dias));\n }", "public double getCalories(int age, int weight) {\n\t\treturn (0.75 * weight * getDistance());\n\t}", "public final double calculateCarbon() {\n\n if (calories > 2000) {\n allowedCarbonPerYear = 2200 * quantity;\n\n } else {\n allowedCarbonPerYear = 2000 * quantity;\n }\n allowedCarbonPerDay = (double) allowedCarbonPerYear / (double) 365;\n // String strDouble = String.format(\"%.2f\", allowedCarbonPerDay);\n // System.out.println(strDouble);\n return allowedCarbonPerDay;\n\n }", "public Integer getCalorie() {\n return calorie;\n }", "public String getFood() {\n if(food != null)\n return \"食材:\"+food;\n else {\n return content ;\n }\n }", "public int getFoodLevel ( ) {\n\t\treturn extract ( handle -> handle.getFoodLevel ( ) );\n\t}", "public FoodItem getFooditem() {\n return fooditem;\n }", "public List<Food> findAllfood() {\n\t\treturn foodDao.findAllfood();\r\n\t}", "@Override\r\n\tpublic String getFood() {\n\t\treturn \"banana\";\r\n\t}", "public List<Meal> getMeals() {\n return meals;\n }", "public List<Food> getAllFood() {\n\t\t\n\t\treturn foodDao.getAllFood();\n\t\t\n\t}", "@Override\t\n\tpublic int getPricePerDay() {\n\t\treturn pricePerDay;\n\t}", "public Food(String name, int caloriesPerServing) {\n this.name = name;\n this.caloriesPerServing = caloriesPerServing;\n this.amount = 1;\n }", "public int expfood()\n {\n SQLiteDatabase db1 = this.getReadableDatabase();\n String stmt = \"SELECT SUM(AMOUNT) FROM EXPENSE GROUP BY TYPE HAVING TYPE='FOOD'\";\n Cursor tot = db1.rawQuery(stmt, null);\n if(tot.getCount()==0)\n {\n return 0;\n }\n else {\n tot.moveToFirst();\n int amount = tot.getInt(0);\n tot.close();\n return amount;\n }\n }", "double getTodaysExpenditureAmount() {\n Long time = new Date().getTime();\n Date date = new Date(time - time % (DAY_DURATION));\n return getExpenditureAmount(date.getTime(), date.getTime() + (DAY_DURATION));\n }", "public double getAmountEarned(){\r\n return getSalary() + getBonus() + getCommission() * getNumSales();\r\n }", "@Override\n public double getMeasure() {\n return getFuelEffieciency();\n }", "public void getFood()\r\n\t{\r\n\t\tsetRabbitWeight(getRabbitWeight() + 2);\r\n\t}", "public void figure() {\r\n Currency nAdv = Currency.Zero;\r\n Currency nLow = Currency.NegativeOne;\r\n Currency nHigh = Currency.Zero;\r\n Currency nTotal = Currency.Zero;\r\n \r\n for(int i = 0; i < dayArray.size(); i++) {\r\n DayG dayG = (DayG) dayArray.get(i);\r\n Currency gross = dayG.getGross();\r\n \r\n nAdv = nAdv.add(gross);\r\n nTotal = nTotal.add(gross);\r\n if(nLow == Currency.NegativeOne || gross.lt(nLow)) {\r\n lowD = dayG;\r\n nLow = gross;\r\n }\r\n if(nHigh.lt(gross)) {\r\n highD = dayG;\r\n nHigh = gross;\r\n }\r\n }\r\n \r\n adverage = nAdv.divide(dayArray.size()).round();\r\n low = nLow.round();\r\n high = nHigh.round();\r\n \r\n //no need to round total, right?\r\n total = nTotal;\r\n }", "public double getFoodProductionRate() {\r\n\t\treturn foodProductionRate;\r\n\t}", "public Integer getExpense() {\n return expense;\n }", "public Food(String foodName) {\n this.foodName = foodName;\n this.calories = Optional.empty();\n }", "public int totalCost()\n {\n int cost = 0;\n for (DessertItem item : dessertList) {\n cost += item.getCost();\n }\n return cost;\n }", "@Override\n public double getCost() {\n if (lunch != null && dinner != null) {\n return lunch.getCost() + dinner.getCost();\n }\n return 0;\n }", "@Test\n\tpublic void testCalculateCalories() \n\t{\n\t\tParticipant participant = new Participant(\"Daniel\", 155, Participant.GENDER.MALE, 1);\n\t\tparticipant.setCurrentBeers(2);\n\t\tparticipant.setCurrentWine(2);\n\t\tparticipant.setCurrentCocktails(2);\n\t\tparticipant.setCurrentShots(3);\n\t\t\n\t\tassertEquals(1228, HealthCalculator.caluclateCalories(participant));\n\t}", "public double getFluctuation() { return fluctuation; }", "@Override\r\n\tpublic double getCost() {\n\t\treturn this.cost_of_icecream;\r\n\t}", "@Override\n public double getDiscount() {\n return (30 /(1 + Math.exp(-1 * (this.years - 2) )))/100;\n }", "public int compareToCal(YuanC_LuH_Food a)\n\t{\n\t\tif(calories<a.getCalories())\n\t\t\treturn -1;\n\t\telse if(calories>a.getCalories())\n\t\t\treturn 1;\n\t\telse\n\t\t\treturn 0;\n\t}", "float getDiscount();", "public double getDiscount();", "public double discountPrice() {\n double tot = 0;\n for (Equipment e : equipments) {\n tot += e.discountPrice();\n }\n\n return tot;\n }", "double getAgeDays();", "public Dice getDice() {\n return this.dice;\n }", "public int getDiceTotal()\r\n {\r\n return diceTotal;\r\n }", "public Integer getTotalDays()\r\n/* 68: */ {\r\n/* 69:67 */ return this.totalDays;\r\n/* 70: */ }", "public int getCount() {\n\t\t\treturn foods.size();\n\t\t}", "public int calculatePrice() {\n int price = 5;\n if(hasWhippedCream) {\n price += 1;\n }\n if(hasChocolate) {\n price += 2;\n }\n return quantity * price;\n }", "public Double getCalificacion() {\n return calificacion;\n }", "@Override\r\n\tpublic List<Food> getFoods() {\n\t\tString sql=\"select state from food group by state\";\r\n\t\tList<Food> s=(List<Food>) BaseDao.select(sql, Food.class);\r\n\t\treturn s;\r\n\t}", "public double getPotatoesPrice();", "public int getDays() {\n return this.days;\n }", "protected Double getCAProfessionnel() {\n List<Facture> facturesProfessionnel = this.factureProfessionnelList;\n Double ca = 0.0; \n for(Facture f : facturesProfessionnel )\n ca = ca + f.getTotalHT();\n \n return ca ; \n \n }", "public Dice getDice() {\n return dice;\n }", "int getChestsAmount();", "public Pokemon.DailyBonus getDailyBonus() {\n return dailyBonus_;\n }", "@Override\n\tpublic double totalSalario() {\n\t\treturn this.precio;\n\t}", "public float getDefense()\n {\n return defense;\n }", "@Override\r\n\tpublic double getPrice() {\n\t\treturn pizza.getPrice()+ 12.88;\r\n\t}", "public double getChest() {\n return chest;\n }", "public double getChest() {\n return chest;\n }", "@Override\n public double earnings() {\n return salary + commission + quantity;\n }", "public int getFulfillmentTimeInDays () {\n return 0;\n }", "protected int getLastFoodY() {\n\t\treturn lastFoodY;\n\t}", "public double getCost() {\n double price = 0;\n price += this.numPizzas * this.pizzaType.getCost();\n if(this.numPizzas >= 20) // Discount if >=20 pizzas\n return price * 0.9;\n else if(this.numPizzas >= 10) // Discount if between 10 and 20 pizzas\n return price * 0.95;\n return price; // No discount\n }" ]
[ "0.84172237", "0.8144125", "0.8094877", "0.79441965", "0.78746104", "0.75527745", "0.7535275", "0.7482335", "0.69800484", "0.69724566", "0.6874837", "0.685935", "0.680449", "0.6769663", "0.67693937", "0.6768127", "0.6764578", "0.671799", "0.6706817", "0.6651782", "0.66153836", "0.6581238", "0.65525067", "0.6538649", "0.6432357", "0.64108247", "0.63965875", "0.6361542", "0.6274626", "0.6256918", "0.62270975", "0.62148637", "0.61639416", "0.6139835", "0.6098694", "0.6067541", "0.60298055", "0.6001288", "0.5998632", "0.59909165", "0.5982515", "0.5979503", "0.59663665", "0.59317863", "0.59246045", "0.5912254", "0.58815783", "0.58706063", "0.58701056", "0.5846891", "0.5840334", "0.583112", "0.57990634", "0.5790568", "0.578976", "0.578961", "0.57883793", "0.57680136", "0.576497", "0.57633346", "0.57604665", "0.5759638", "0.57547325", "0.57542014", "0.5743344", "0.57425064", "0.5728367", "0.57154745", "0.57071084", "0.5706693", "0.57011676", "0.5661336", "0.5658234", "0.5652264", "0.5652234", "0.56416005", "0.56408244", "0.56390536", "0.5636002", "0.56260765", "0.56159765", "0.56082934", "0.55944306", "0.5591379", "0.5590078", "0.5585084", "0.5584843", "0.5579789", "0.55668193", "0.55526423", "0.55467314", "0.5539332", "0.55362236", "0.55349684", "0.55347043", "0.55347043", "0.55339026", "0.55201197", "0.5518147", "0.5516003" ]
0.7429398
8
Check if the food has calories.
public boolean hasCaloriesData() { return calories.isPresent(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasFood() {\r\n\t\treturn this.food > 0;\r\n\t}", "public boolean isFood() {\n\t\treturn food > 0;\n\t}", "public boolean isSuitable(Food food) {\n return food.calculateFitness() < 100;\n }", "public boolean isFood(){\n\t\treturn foodFlag;\n\t}", "boolean hasDailyBonus();", "boolean hasHasAlcohol();", "public java.lang.Boolean getIsFoodExist()\n {\n return isFoodExist;\n }", "public double getCalories() {\n\t\tdouble mealCalories = 0;\n\t\tfor (String foodName : meal) {\n\t\t\tdouble calories = foodDetail.get(foodName).getCalories();\n\t\t\tdouble portion = foodPortion.get(foodName);\n\t\t\tmealCalories += calories * portion;\n\t\t}\n\t\treturn mealCalories;\n\t}", "public boolean indicateClosure() {\r\n int count = dailyRollInventory.size();\r\n for (Map.Entry<String,Integer> entry : dailyRollInventory.entrySet()) {\r\n if (entry.getValue() == 0) {\r\n count = count - 1;\r\n }\r\n }\r\n if (count == 0) {\r\n // CLOSURE\r\n System.out.println(\"Out of rolls for the day closing shop.\");\r\n // refresh all the rolls\r\n for (Map.Entry<String,Integer> entry : dailyRollInventory.entrySet()) {\r\n refreshRoll(entry.getKey());\r\n }\r\n return true;\r\n }\r\n return false;\r\n }", "public boolean hasFainted() {\n return hp <= 0;\n }", "private Boolean calculateTotalEmission() {\n\t\ttry {\n\n\t\t\tfoodCO2E = Double.valueOf(JTFFood.getText().isEmpty() ? \"0.0\" : JTFFood.getText())\n\t\t\t\t\t* energySourceDetail.get(FoodIntake).get(JCBFoodUnit.getSelectedItem().toString());\n\n\t\t\tlandfillingFoodWasteCO2E = Double\n\t\t\t\t\t.valueOf(JTFLandfillingFoodWaste.getText().isEmpty() ? \"0.0\" : JTFLandfillingFoodWaste.getText())\n\t\t\t\t\t* energySourceDetail.get(LandfillingFoodWaste)\n\t\t\t\t\t\t\t.get(JCBLandfillingFoodWasteUnit.getSelectedItem().toString());\n\n\t\t\tcompostingFoodWasteCO2E = Double\n\t\t\t\t\t.valueOf(JTFCompostingFoodWaste.getText().isEmpty() ? \"0.0\" : JTFCompostingFoodWaste.getText())\n\t\t\t\t\t* energySourceDetail.get(CompostingFoodWaste)\n\t\t\t\t\t\t\t.get(JCBCompostingFoodWasteUnit.getSelectedItem().toString());\n\n\t\t} catch (NumberFormatException ne) {\n\t\t\tSystem.out.println(\"Number Format Exception while calculating House Hold Emission\" + ne);\n\t\t\treturn false;\n\t\t}\n\t\t//\n\t\ttotalFoodCO2E = foodCO2E + landfillingFoodWasteCO2E + compostingFoodWasteCO2E;\n\t\ttotalFoodCO2E = Math.round(totalFoodCO2E * 100D) / 100D;\n\t\treturn true;\n\t}", "public boolean foodDetection() {\n ArrayList<Creature> creatures = world.getCreatureList();\n for (Creature c : creatures) {\n if (c.creatureLocation().equals((x + 1) + \",\" + y) || c.creatureLocation().equals((x - 1) + \",\" + y) ||\n c.creatureLocation().equals(x + \",\" + (y + 1)) || c.creatureLocation().equals(x + \",\" + (y - 1))) {\n //System.out.println(\"Creature Found: \" + c.creatureLocation());\n return true;\n }\n }\n return false;\n }", "public Food(String foodName, double calories) {\n this.foodName = foodName;\n this.calories = Optional.of(calories);\n }", "@Override\n public boolean validate() {\n int numFeathers = c.getInventory().count(FEATHERS);\n return (c.getSkills().getRealLevel(Skill.FISHING) >= 20 && !c.isCollectFeathers());\n }", "boolean hasDefense();", "boolean hasDefense();", "boolean hasDefense();", "boolean hasDefense();", "boolean hasDefense();", "boolean hasDefense();", "@Override\n\tpublic boolean mealExists(Meal meal) {\n\t\treturn false;\n\t}", "public boolean IsPackmanReachedFruit(double time, double timeTotal)\n\t{\n\t\tif(time<timeTotal) \n\t\t\n\t\t\treturn false;\n\t\t\t\n\t\t\telse\n\t\t\t\treturn true;\n\t}", "@Override\n public boolean isAlcoholic() {\n return liquids\n .stream()\n .anyMatch(liquid -> liquid.getAlcoholPercent() > 0);\n }", "public int sumCalories() {\n int calories = 0;\n\n for (Food f : units) {\n calories += f.getCalories();\n }\n\n return calories;\n }", "private void findFood() {\n\t\tAgentSpace agentSpace = Blackboard.inst().getSpace(AgentSpace.class, _obj.getName());\n\t\tMap<String,FoodEntry> map = agentSpace.getScentMemories().getFirst();\n\t\tif (map == null || map.size() == 0) { \n\t\t\tlogger.error(\"Should not happen\");\n\t\t\treturn;\n\t\t}\n\n\t\t_food = null;\n\t\tfloat distance = 0;\n\t\t\n\t\tfor (FoodEntry entry : map.values()) { \n\t\t\tfloat d = _obj.getPPosition().sub(entry.obj.getPPosition()).length();\n\t\t\tif (_food == null || d < distance) { \n\t\t\t\t_food = entry.obj;\n\t\t\t\tdistance = d;\n\t\t\t}\n\t\t}\n\t}", "public boolean mustDie() {\n\t\tif (this.not_fed == 0) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean hasBonus() {\r\n return strDate.equals(game.settings.getBonusDay());\r\n }", "public boolean hasDay() {\n return day_ != null;\n }", "boolean hasForecast();", "public boolean hasDay() {\n return dayBuilder_ != null || day_ != null;\n }", "public boolean addFood(Food food) {\n\t\tint i=foodDao.addFood(food);\r\n\t\tif(i > 0){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}", "boolean hasDay();", "boolean hasDay();", "public boolean isEmpty() {\n\t\tif (!rock && food == 0 && critter == null)\n\t\t\treturn true;\n\t\treturn false;\n\t}", "public Optional<Double> getCalories() {\n return calories;\n }", "public boolean hasDay() {\n return day_ != null;\n }", "public boolean hasDay() {\n return dayBuilder_ != null || day_ != null;\n }", "public void checkFoodCollision(){\r\n\t\tint a = (int) Math.ceil((pacman.xpos-interval)/(interval+0.00));// converts it to double with 0.00\r\n\t\tint b = (int) Math.ceil((pacman.ypos-interval)/(interval+0.00));\r\n\t\tfor (int x = a - 1; x < a + 1;x++){\r\n\t\t\tfor(int y = b - 1; y < b + 1; y++){\r\n\t\t\t\tif(x < foodArray.length && x > 0){\r\n\t\t\t\t\tif(y < foodArray[0].length && y > 0){\r\n\t\t\t\t\t\tif (collision(foodArray[x][y],pacmansprite)){\r\n\t\t\t\t\t\t\tif (!foodArray[x][y].getText().equals(\"\")){//if there is food, \"eats\" it\r\n\t\t\t\t\t\t\t\tfoodArray[x][y].setText(\"\");\r\n\t\t\t\t\t\t\t\tfoodCounter --;\r\n\t\t\t\t\t\t\t\tfoodSound();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tcheckwarp();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tcheckwarp();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static boolean isPreservedFoodAvailable(Person person) {\n\t\tboolean result = false;\n\t\tUnit containerUnit = person.getTopContainerUnit();\n\t\tif (!(containerUnit instanceof MarsSurface)) {\n\t\t\tInventory inv = containerUnit.getInventory();\n\t\t\tif (inv != null && foodConsumptionRate > MIN)\n\t\t\t\tresult = inv.getAmountResourceStored(ResourceUtil.foodID, false) > MIN;\n//\t\t\t\tStorage.retrieveAnResource(foodConsumptionRate, ResourceUtil.foodID, inv, false);\n\t\t}\n\t\treturn result;\n\t}", "boolean hasRemainDays();", "public boolean eatFood(Cat eatingCat) {\n if (eatingCat.getAppetite() > food) {\n System.out.printf(\"Cat \\u001B[31m%s\\u001B[0m can't eat - not enough food =(\\n\", eatingCat.getName());\n return false;\n }\n else {\n food -= eatingCat.getAppetite();\n System.out.printf(\"Cat \\u001B[32m%s\\u001B[0m have ate successful =)\\n\", eatingCat.getName());\n return true;\n }\n }", "@Override\n public boolean add(Food food, Date currentDate) {\n if (checkExpiryDate(food, currentDate)) {\n this.foodList.add(food);\n return true;\n }\n return false;\n }", "public boolean checkTotal(int meetid, int diverid){\n SQLiteDatabase db = this.getReadableDatabase();\n String selectQuery = \"SELECT * from dive_total \"\n + \" WHERE meet_id = \" + meetid\n + \" AND diver_id = \" + diverid;\n Cursor c = db.rawQuery(selectQuery, null);\n if(c.getCount() <= 0){\n c.close();\n db.close();\n return false;\n }\n c.close();\n db.close();\n return true;\n }", "public static boolean isValidFoodAmount(Integer test) {\n return test > 0;\n }", "public boolean feedPet(String food) {\r\n switch (food) {\r\n case (\"apple\"): {\r\n if ((this.player.getMoney() - apple.getCost()) >= 0) {\r\n player.feed(apple);\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n case (\"honey\"): {\r\n if ((this.player.getMoney() - honey.getCost()) >= 0) {\r\n player.feed(honey);\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n case (\"spinach\"): {\r\n if ((this.player.getMoney() - spinach.getCost()) >= 0) {\r\n player.feed(spinach);\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n case (\"steak\"): {\r\n if ((this.player.getMoney() - steak.getCost()) >= 0) {\r\n player.feed(steak);\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n }\r\n return false;\r\n }", "private static boolean isAllItemsAreNotSoldOut(List<Chef> foodItemList) {\n boolean result = false;\n for (int i = 0; i < foodItemList.size(); i++) {\n for (int j = 0; j < foodItemList.get(i).getFoodItemList().size(); j++) {\n if (foodItemList.get(i).getFoodItemList().get(j).getAvailQty() == 0 || !foodItemList.get(i).getFoodItemList().get(j).getAvailable()) {\n result = true;\n }\n }\n }\n return result;\n }", "public boolean isSetDay()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(DAY$0) != 0;\n }\n }", "public boolean hasCheese() {\n return cheese;\n }", "public int sumCalories(Meal m) {\n List<Food> foodsByMeal = getFoodsByMeal(m);\n int calories = 0;\n\n for (Food f : foodsByMeal) {\n calories += f.getCalories();\n }\n\n return calories;\n }", "boolean hasDamage();", "boolean hasDamage();", "boolean hasDamage();", "boolean hasDamage();", "boolean hasDamage();", "public void check() {\n Ellipse2D.Double head = snakeParts.get(0);\n Food food = gameGround.getFood();\n\n // Ate itself\n for (int i = 1; i < snakeParts.size(); i++) {\n if (head.getMinX() == snakeParts.get(i).getMinX() && head.getMinY() == snakeParts.get(i).getMinY()) {\n over = true;\n return;\n }\n }\n\n // Ate food\n if (head.getMinX() == food.getShape().getMinX() && head.getMinY() == food.getShape().getMinY()) {\n scoreBoard.addPoints(1);\n food.next(this);\n snakeParts.add(ass);\n }\n }", "public boolean canFish() {\r\n\t\tif (location == Location.SAFARI || location == Location.CAVE) {\r\n\t\t\treturn items.containsKey(FishingRod.getFishingRodInstance());\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean hasFather() {\n\t\treturn !fathers.isEmpty();\n\t}", "boolean hasHasAlcoholResult();", "boolean hasAmount();", "boolean hasAmount();", "public Food(String foodName) {\n this.foodName = foodName;\n this.calories = Optional.empty();\n }", "@java.lang.Override\n public boolean hasRecipe() {\n return recipe_ != null;\n }", "boolean isInvoiced();", "boolean hasElevation();", "boolean hasHasEnergyCF();", "public int getCalories() {\n return calories;\n }", "@Test\r\n\tpublic void TestgetAllFoodItem() {\n\t\tassertNotNull(\"Test if there is valid food list to get food item\", foodList);\r\n\r\n\t\t// the food list is not empty so can view food items.\r\n\t\tfoodList.add(f1);\r\n\t\tC206_CaseStudy.getAllFoodItem(foodList);\r\n\t\tassertFalse(\"Test that if the food list is not empty so can view food\", foodList.isEmpty());\r\n\r\n\t\t// Continue from step 2, test that the size of the food list is 1 and is not\r\n\t\t// empty.\r\n\t\tassertEquals(\"Test that food list size is 1\", 1, foodList.size());\r\n\t\tassertFalse(\"Test that the food list is not empty\", foodList.isEmpty());\r\n\t}", "@Override\r\n\tpublic boolean addFoods(Food food) {\n\t\tString sql=\"INSERT INTO food(id, foodName, price, discount, num, salNum, des, logo, busId, state) VALUES (?,?,?,?,?,?,?,?,?,?)\"; \r\n\t\t\t\t\r\n\t\treturn BaseDao.execute(sql, food.getId(),food.getFoodName(),food.getPrice(),food.getDiscount(),food.getNum(),food.getSalNum(),food.getDes(),food.getLogo(),food.getBusId(),food.getState())>0;\r\n\t}", "public static int showFoods(String cuisin){\r\n int check=0;\r\n for(int i=0;i<foods.size();i++){\r\n if(foods.get(i).getCousin().toLowerCase().equals(cuisin.toLowerCase())){\r\n System.out.println(i+\".-\"+foods.get(i).getName()+\" --> \"+foods.get(i).getDescription()+\" --> \"+foods.get(i).getType()+\" --> \"+foods.get(i).getPrice());\r\n check=1;\r\n }\r\n }\r\n if(check==0)\r\n System.out.println(\"There are not food in this category\");\r\n return check;\r\n }", "boolean hasFlightdetails();", "@Test\n\tpublic void testCalculateCalories() \n\t{\n\t\tParticipant participant = new Participant(\"Daniel\", 155, Participant.GENDER.MALE, 1);\n\t\tparticipant.setCurrentBeers(2);\n\t\tparticipant.setCurrentWine(2);\n\t\tparticipant.setCurrentCocktails(2);\n\t\tparticipant.setCurrentShots(3);\n\t\t\n\t\tassertEquals(1228, HealthCalculator.caluclateCalories(participant));\n\t}", "private boolean hasEatenApple() {\r\n return snake.getHead().equals(apple);\r\n }", "public boolean hasDeal() {\r\n/* 285 */ return this._has_deal;\r\n/* */ }", "private void calcCalories()\n\t{\n\t\tif (getIntensity() == 1)\n\t\t{\n\t\t\tbikeCal = 10 * bikeTime; \n\t\t}\n\t\telse if (getIntensity() == 2)\n\t\t{\n\t\t\tbikeCal = 14.3 * bikeTime; \n\t\t}\n\t\telse {\n\t\t\tJOptionPane.showMessageDialog(null, \"error\");\n\t\t}\n\t}", "public boolean isOverdue(int today);", "public int getCalories(){\r\n \tint retVal = this.calories;\r\n return retVal;\r\n }", "public boolean getFoodFromCooperation(Creature creature, Creature otherCreature){\n if(!creature.isSatisfied()){\n\n for(CreaturesPair creaturesPair : cooperationCreatures){\n if(!creaturesPair.card.isUsed() && creaturesPair.haveCreatures(creature, otherCreature)){\n creaturesPair.card.setUsed(true);\n creature.addFood();\n return true;\n }\n }\n\n }\n return false;\n }", "boolean hasPrice();", "boolean hasPrice();", "boolean hasPrice();", "boolean hasDepositEndTime();", "boolean isSetBusinesshours();", "boolean hasUses();", "public void checkGame(){\r\n\t\tif (foodCounter == 0){ // all food is gone, win\r\n\t\t\tSystem.out.println(\"You won!\");\r\n\t\t\t//stops ghosts and pacman\r\n\t\t\tpacman.speed = 0;\r\n\t\t\tg1.speed = 0;\r\n\t\t\tg2.speed = 0;\r\n\t\t\tg3.speed = 0;\r\n\t\t\tlost = true; // return to menu \r\n\t\t}\r\n\t\t// if pacman collide with ghost, lose\r\n\t\tif (collision2(pacmansprite,g1.sprite) || collision2(pacmansprite,g2.sprite) || collision2(pacmansprite,g3.sprite)){\r\n\t\t\tSystem.out.println(\"You lost\");\r\n\t\t\tlost = true;\r\n\t\t}\r\n\t}", "public boolean factsEmtpy(TransportClient client){\n // Request for knowing if hits get returned or not\n SearchResponse response = client.prepareSearch(\"cityflow\")\n .setTypes(\"facts\")\n .setSearchType(SearchType.DFS_QUERY_THEN_FETCH)\n .setQuery(QueryBuilders.matchAllQuery()) // Query\n .setFrom(0).setSize(1).setExplain(true)\n .get();\n \n return response.getHits().getHits().length == 0;\n }", "public boolean clear() {\n this.foodEntries = new ArrayList<>();\n return true;\n }", "boolean hasHasAlcoholBloodContent();", "boolean hasQuantity();", "public final boolean hasDeponents() {\r\n synchronized (f_seaLock) {\r\n return !f_deponents.isEmpty();\r\n }\r\n }", "public boolean isClosed() {\n return calculateSumOfHouse() > 31;\n }", "private void updateCurrentCalories() {\n currentCalories = 0;\n currentFats = 0;\n currentCarbs = 0;\n currentProteins = 0;\n for (Food food : foodListView.getItems()) {\n currentCalories += food.getCalories();\n currentFats += food.getFat().getAmount();\n currentCarbs += food.getCarbs().getAmount();\n currentProteins += food.getProtein().getAmount();\n }\n }", "boolean hasBonusExp();", "boolean hasBonusExp();", "boolean hasBonusExp();", "public boolean hasEmployeeDiscount() {\n Discount[] txnDiscounts = compositePOSTransaction.getDiscountsArray();\n if (txnDiscounts != null && txnDiscounts.length > 0) {\n for (int i = 0; i < txnDiscounts.length; i++) {\n if (txnDiscounts[i] instanceof CMSEmployeeDiscount) {\n return true;\n }\n }\n }\n return false;\n }", "boolean hasRoll();", "boolean hasRoll();", "private static boolean hasFunds(double cost)\n {\n if (Clock.getRoundNum() < 200) { //TODO edit this out if necessary\n return rc.getTeamOre() > cost;\n } else {\n return rc.getTeamOre() > cost*2;\n }\n }", "public int foodCount() {\r\n\t\treturn this.food;\r\n\t}", "public boolean isEmpty() {\r\n return totalGifts == 0;\r\n }" ]
[ "0.7785387", "0.75168395", "0.6637602", "0.6626067", "0.65211743", "0.6247021", "0.6243894", "0.60601264", "0.6023955", "0.59647995", "0.59627163", "0.5954079", "0.5921449", "0.5904684", "0.58813274", "0.58813274", "0.58813274", "0.58813274", "0.58813274", "0.58813274", "0.5792091", "0.57905865", "0.57776403", "0.57760525", "0.5775137", "0.5763592", "0.5752981", "0.574637", "0.57457066", "0.57363474", "0.57236755", "0.56950516", "0.56950516", "0.56899345", "0.56729716", "0.56703883", "0.5642013", "0.5639072", "0.5637853", "0.56301177", "0.5614218", "0.56060004", "0.5604504", "0.55844676", "0.5558815", "0.55559623", "0.5536945", "0.55305845", "0.55239284", "0.5522229", "0.5522229", "0.5522229", "0.5522229", "0.5522229", "0.5521757", "0.55172926", "0.5513607", "0.5510654", "0.54977256", "0.54977256", "0.5495732", "0.54817027", "0.5460899", "0.54517394", "0.5446429", "0.54404235", "0.543933", "0.54179955", "0.5413657", "0.540164", "0.5401206", "0.538141", "0.5380453", "0.53784096", "0.53642106", "0.53584826", "0.53562766", "0.53559357", "0.53559357", "0.53559357", "0.53519773", "0.5350935", "0.53429145", "0.53404206", "0.53401333", "0.5336967", "0.5332855", "0.5330637", "0.53291804", "0.53273493", "0.53267086", "0.5326648", "0.5326648", "0.5326648", "0.5321768", "0.53210247", "0.53210247", "0.5319994", "0.53175944", "0.53137755" ]
0.7570786
1
R.layout.list_row is your xml layout for each row
public View newView(Context context, Cursor cursor, ViewGroup parent) { return cursorInflater.inflate(R.layout.list_row, parent, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\n\t\t\tLayoutInflater inflater = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\t\t\tView view = inflater.inflate(R.layout.list_item_table_row_read, parent, false);\n\t\t\tSet<Entry<String, JsonElement>> set = mTableRows[position].getAsJsonObject().entrySet();\n\t\t\tLinearLayout layoutItem = (LinearLayout) view.findViewById(R.id.layoutItem);\n\t\t\t//Loop through each data item in the row and create a layout with the key and \n\t\t\t//value displayed in TextViews within it\n\t\t\tfor (Entry<String, JsonElement> entry : set) {\n\t\t\t\tLog.i(TAG, entry.getKey());\t\t\t\t\n\t\t\t\tRelativeLayout rowLayout = new RelativeLayout(mContext);\n\t\t\t\tRelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);\t\t\t\t\n\t\t\t\trowLayout.setLayoutParams(params);\t\t\t\t\n\t\t\t\tTextView lblKey = new TextView(mContext);\n\t\t\t\tlblKey.setText(entry.getKey());\t\t\t\t\n\t\t\t\tRelativeLayout.LayoutParams keyParams = new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);\n\t\t\t\tkeyParams.addRule(RelativeLayout.ALIGN_PARENT_LEFT);\n\t\t\t\tkeyParams.leftMargin = 20;\n\t\t\t\tlblKey.setLayoutParams(keyParams);\t\t\t\t\n\t\t\t\tTextView lblValue = new TextView(mContext);\t\t\t\t\n\t\t\t\tRelativeLayout.LayoutParams valueParams = new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);\n\t\t\t\tvalueParams.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);\n\t\t\t\tlblValue.setLayoutParams(valueParams);\n\t\t\t\t//Limit the amount of text we show so the UI isn't dirty\n\t\t\t\tInputFilter[] FilterArray = new InputFilter[1];\n\t\t\t\tFilterArray[0] = new InputFilter.LengthFilter(25);\n\t\t\t\tlblValue.setFilters(FilterArray);\n\t\t\t\tlblValue.setText(entry.getValue().getAsString());\n\t\t\t\tlblValue.setGravity(Gravity.RIGHT);\n\t\t\t\trowLayout.addView(lblKey);\n\t\t\t\trowLayout.addView(lblValue);\n\t\t\t\tlayoutItem.addView(rowLayout);\n\t\t\t}\t\t\t\n\t\t\treturn view;\n\t\t}", "@Override\n public View getView(int position, View convertView, ViewGroup parent)\n {\n //position = position of array element\n //this function will pick the first value of array\n //we give it the theme of a single row\n //it implements that theme, makes a row graphic and returns back to OS\n //OS prints it on screen\n //we make an xml file\n //supply data to this function\n //and create the custom list\n //this code runs for every element in the array\n View row=null;\n LayoutInflater li = (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n //OS uses this service to display graphic\n //We customise the theme and use that service to display our theme\n //only one function to get system services and modiffy it\n //we can either learn all the names of internal services\n //or you press ctrl plus space after context.\n row = li.inflate(R.layout.activity_custom_list,parent,false);\n ImageView iv = (ImageView)row.findViewById(R.id.imageView); //row - pehli line ka variable\n //xml se row bana\n\n TextView tv1 = (TextView)row.findViewById(R.id.textView1);\n TextView tv2 = (TextView)row.findViewById(R.id.textView2);\n tv1.setText(nameArray[position]);\n tv2.setText(infoArray[position]);\n\n if(position%2==0)\n iv.setImageResource(android.R.drawable.star_big_on);\n else\n iv.setImageResource(android.R.drawable.star_big_off);\n\n return row;\n\n }", "@Override\n\tpublic View newView(Context arg0, Cursor arg1, ViewGroup arg2) {\n\t\tView row = (View) inflater.inflate(R.layout.list_row, arg2, false);\n\t\treturn row;\n\t}", "public RowListaCustomAdapter ( Context c, ArrayList<Row>data){\n Log.v(TAG, \"Construir Adaptador\");\n this.data = data;\n inflater = LayoutInflater.from(c);\n\n }", "@Override\n\tpublic View getView(final int position, View row, ViewGroup parent) {\n\t\tif (row == null) {\n\t\t\tLayoutInflater inflater = context.getLayoutInflater();\n\t\t\trow = inflater.inflate(LayoutId, parent, false);\n\t\t}\n\n\t\treturn row;\n\t}", "@Override\n public int getCount() {\n return list.size();\n }", "@Override\n public int getCount() {\n return list.size();\n }", "@Override\n public int getCount() {\n return list.size();\n }", "@Override\n public int getCount() {\n return list.size();\n }", "@Override\n public int getCount() {\n return list.size();\n }", "@Override\n public int getCount() {\n return list.size();\n }", "@Override\n public int getCount() {\n return list.size();\n }", "@Override\n public int getCount() {\n return list.size();\n }", "@Override\n public int getCount() {\n return list.size();\n }", "@Override\n public int getCount() {\n return list.size();\n }", "@Override\n public int getCount() {\n return list.size();\n }", "@Override\r\n public int getCount() {\n return list.size();\r\n }", "@Override\n public int getCount() {\n return li.size();\n }", "@Override\n\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\n\n\n\t\tLayoutInflater inflater=activity.getLayoutInflater();\n\n\t\tif(convertView == null){\n\n\t\t\tconvertView=inflater.inflate(R.layout.column_row, null);\n }\n\t\t \n\t\ttxtFirst=(TextView) convertView.findViewById(R.id.idView);\n\t\ttxtSecond=(TextView) convertView.findViewById(R.id.dateView);\n\t\ttxtThird=(TextView) convertView.findViewById(R.id.discriptionView);\n\t\ttxtFourth=(TextView) convertView.findViewById(R.id.amountView);\n\n\t\tHashMap<String, String> map=list.get(position);\n\t\ttxtFirst.setText(map.get(FIRST_COLUMN));\n\t\ttxtSecond.setText(map.get(SECOND_COLUMN));\n\t\ttxtThird.setText(map.get(THIRD_COLUMN));\n\t\ttxtFourth.setText(map.get(FOURTH_COLUMN));\n\n\t\treturn convertView;\n\t}", "@Override\n public int getCount() {\n return list.size() ;\n }", "public void addRow(String itemName, String itemPrice, String username) {\n LinearLayout parentLayout = findViewById(R.id.itemList);\n\n // Create layout for new item\n LinearLayout l = new LinearLayout(this);\n l.setOrientation(LinearLayout.HORIZONTAL);\n LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 100);\n layoutParams.bottomMargin = 10;\n l.setBackgroundResource(R.drawable.customborder);\n l.setLayoutParams(layoutParams);\n\n // Create item_name textview\n TextView name_textview = new TextView(this);\n name_textview.setText(itemName);\n name_textview.setTextSize(24);\n LinearLayout.LayoutParams nameParams = new LinearLayout.LayoutParams(0, ViewGroup.LayoutParams.MATCH_PARENT);\n nameParams.weight = 1;\n name_textview.setLayoutParams(nameParams);\n\n // Create price textview\n TextView price_textview = new TextView(this);\n price_textview.setText(\"$\"+itemPrice);\n price_textview.setTextSize(24);\n LinearLayout.LayoutParams priceParams = new LinearLayout.LayoutParams(0, ViewGroup.LayoutParams.MATCH_PARENT);\n priceParams.weight = 1;\n price_textview.setLayoutParams(priceParams);\n\n // Create username textview\n TextView username_textview = new TextView(this);\n username_textview.setText(username);\n username_textview.setTextSize(24);\n LinearLayout.LayoutParams usernameParams = new LinearLayout.LayoutParams(0, ViewGroup.LayoutParams.MATCH_PARENT);\n usernameParams.weight = 1;\n username_textview.setLayoutParams(usernameParams);\n\n // Add views to layout\n l.addView(name_textview);\n l.addView(price_textview);\n l.addView(username_textview);\n parentLayout.addView(l);\n\n }", "@Override\n\t\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\t\treturn listlayout.get(position);\n\n\t\t}", "@Override\n\t\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\t\treturn listlayout.get(position);\n\n\t\t}", "@Override\r\n public int getCount() {\n return list.size();\r\n }", "@Override\n public int getCount() {\n return list.size();\n }", "@Override\r\n public View getView(int position, View convertView, ViewGroup parent) {\n LayoutInflater inflater = (LayoutInflater) context\r\n .getSystemService(Context.LAYOUT_INFLATER_SERVICE);\r\n View single_row = inflater.inflate(R.layout.discover_route_column_row, null,\r\n true);\r\n TextView textView = (TextView) single_row.findViewById(R.id.drcr_textView);\r\n ImageView imageView = (ImageView) single_row.findViewById(R.id.drcr_imageView);\r\n textView.setText(color_names[position]);\r\n imageView.setImageResource(image_id[position]);\r\n return single_row;\r\n }", "private View getCustomView(int position, View convertView, ViewGroup parent) {\n\n /********** Inflate spinner_rows.xml file for each row ( Defined below ) ************/\n View row = inflater.inflate(R.layout.spinner_item_white, parent, false);\n\n TextView tv_item_name = (TextView) row.findViewById(R.id.tv_item_name);\n// ImageView iv_spinner_icon = (ImageView) row.findViewById(R.id.iv_spinner_icon);\n\n tv_item_name.setText(arrayList.get(position));\n// iv_spinner_icon.setImageResource(arrayIcons.getResourceId(position, -1));\n return row;\n }", "@Override\n public int getCount() {\n\n return list.size();\n }", "@Override\n public int getCount() {\n\n return list.size();\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tView v = inflater.inflate(R.layout.layout_listview, null);\n\t\tlv = (ListView) v.findViewById(R.id.lv);\n\n\t\t// ColorDrawable color_divider = new ColorDrawable(R.color.transparent);\n\t\t// lv.setDivider(color_divider);\n\t\tlv.setDividerHeight(1);\n\n//\t\tArrayList<RowData_Program> datanya = new ArrayList<RowData_Program>();\n//\t\tdatanya.add(new RowData_Program(\"\", \"Beasiswa Fakultas Teknik\", \"Rp 17.000.000/~\", \"\", \"\",\n//\t\t\t\t\"Beasiswa untuk para mahasiswa berprestasi yang kurang mampu\",\n//\t\t\t\t\"http://128.199.176.5/UI/admin/files/original/55e6c977b6d8d.jpg\"));\n//\t\tdatanya.add(new RowData_Program(\"\", \"Perpustakaan Keliling\", \"Rp 3.000.000/Rp 800.000.000\", \"\", \"\",\n//\t\t\t\t\"Perpustakaan keliling untuk anak anak\",\n//\t\t\t\t\"http://128.199.176.5/UI/admin/files/original/55d5a3f122e4a.jpg\"));\n//\t\tdatanya.add(new RowData_Program(\"\", \"Pembangunan Bangunan Baru\", \"Rp 90.500.000/Rp 780.000.000\", \"\", \"\",\n//\t\t\t\t\"Bangunan baru untuk perkuliahan\", \"http://128.199.176.5/UI/admin/files/original/55d5a3e18ce07.png\"));\n//\n//\t\tadapter = new CustomAdapter_Program(getActivity(), 0, datanya);\n//\t\tlv.setAdapter(adapter);\n\n\n//\t\tnew AsyncTask_AllProgram().execute();\n\t\tnew AsyncTask_AllProgram().execute();\n\n\t\treturn v;\n\t}", "@Override\n\t public View getView(int position, View convertView, ViewGroup parent) {\n\t LayoutInflater inflater = (LayoutInflater) context\n\t .getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\t View rowView = inflater.inflate(R.layout.row_layout, parent, false);\n\t //set values for each list entry\n\t TextView textView = (TextView) rowView.findViewById(R.id.label);\n\t ImageView imageView = (ImageView) rowView.findViewById(R.id.icon);\n\t TextView numbers = (TextView) rowView.findViewById(R.id.secondLine);\n\t textView.setText((contacts.get(position)).getFullName());\n\t numbers.setText((contacts.get(position)).getmNumber());\n\t \n\t String s = contacts.get(position).getImage();\n\t BitmapWorkerOpen task = new BitmapWorkerOpen(imageView);\n\t task.execute(s);\n \n\n\t return rowView;\n\t }", "@Override\n public int getCount() {\n return list.size();\n }", "@Override\n public int getCount() {\n return list.size();\n }", "@Override\n public View getView(int position, View ConvertView, ViewGroup parent){ ///position starts from zero,one and goes on, parent would be the layout we want to display all elements\n View row=ConvertView; //to optimize we inflate the item only first else we recycle the view using converterView\n if(row==null) {\n LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\n //**View of which we want to convert to java view object\n row = inflater.inflate(R.layout.single_row, parent, false);\n }\n //*****From row view we can access the view items and populate it data\n ImageView imageView = (ImageView)row.findViewById(R.id.imageView);\n TextView myDiscription=(TextView)row.findViewById(R.id.myDescription);\n TextView myTitle=(TextView)row.findViewById(R.id.mytitle);\n\n imageView.setImageResource(images[position]); //postion will incremented automaticlly as views will populate\n myDiscription.setText(description[position]);\n myTitle.setText(titles[position]);\n\n return row;\n }", "public View getView(int position, View convertView, ViewGroup parent) {\n\t\tRowView view;\n\t\tif (null == convertView) {\n\t\t\t// if there isn't one to recycle, init a new view\n\t\t\t// view = new TextView(this.mContext);\n\t\t\t// view = new Button(mContext);\n\t\t\t// view.setTextSize(18); // Properties where all views are the same\n\t\t\t// view = new ImageView(this.mContext);\n\t\t\t// view.setImageResource(R.drawable.ic_launcher);\n\t\t\tview = new RowView(this.mContext);\n\t\t} else {\n\t\t\t// use the recycled view (convert this view)\n\t\t\t// view = (TextView) convertView;\n\t\t\t// view = (Button) convertView;\n\t\t\t// view = (ImageView) convertView;\n\t\t\tview = (RowView) convertView;\n\t\t}\n\t\t// Properties where each view is different\n\t\t// view.setText(\" Row \" + position);\n\t\t// view.setTextColor(Color.rgb(position * 10, 255 - position * 10,\n\t\t// 200));\n\t\tview.setLeftText(\"\" + (position + 1) + \".\");\n\t\tview.setRightText(mNamesArray[position % 12]);\n\n\t\treturn view;\n\t}", "@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n if (convertView == null) {\n convertView = ListAdapterInflater.createLayout(resourceLayout, mContext, parent);\n }\n\n setupItemView(convertView, getItem(position));\n\n return convertView;\n }", "@Override\n\tpublic int getCount() {\n\t\t return list.size();\n\t}", "@Override\n public int getCount() {\n return listInfo.size();\n }", "@Override\r\n\tpublic int getCount() {\n\t\treturn lnth;\r\n\t}", "@Override\n public int getCount()\n {\n return viewList.size();\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n myList=(ListView)findViewById(R.id.myList);\n BaseAdapter adapter=new BaseAdapter() {\n @Override\n public int getCount() {\n return 40;\n }\n\n @Override\n public Object getItem(int position) {\n return null;\n }\n\n @Override\n public long getItemId(int position) {\n return position;\n }\n\n @Override\n public View getView(int position, View convertView,ViewGroup parent) {\n LinearLayout line=new LinearLayout(MyActivity.this);\n line.setOrientation(0);\n ImageView imageView=new ImageView(MyActivity.this);\n imageView.setImageResource(R.drawable.ic_launcher);\n TextView textView=new TextView(MyActivity.this);\n textView.setText(\"第\" +(position+1)+\"个列表项\");\n textView.setTextSize(20);\n textView.setTextColor(Color.RED);\n line.addView(imageView);\n line.addView(textView);\n return line;\n }\n };\n myList.setAdapter(adapter);\n }", "@Override\n public View newView(Context context, Cursor cursor, ViewGroup parent) {\n //Inflate a list item view using the layout specified in list_item.xml\n return LayoutInflater.from(context).inflate(R.layout.list_item, parent, false);\n }", "@Override\n\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\tView layout3_item = inflater.inflate(R.layout.layout4_lvitem,null);\n\t\treturn layout3_item;\n\t}", "@Override\n\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\tif (convertView == null)\n\t\t{\n\t\t\t// first time through, map it into a new view holder\n\t\t\tLayoutInflater vi = (LayoutInflater)Context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\t\t\tconvertView = vi.inflate(R.layout.listadapter_event, null);\n\n\t\t\t// create our ViewHolder to cache the views for this row\n\t\t\tViewHolder = new ViewHolder();\n\n\t\t\t// cache the views for this line\n\t\t\tViewHolder.textViewDetails = (TextView)convertView.findViewById(R.id.textViewEventTitle);\n\t\t\tViewHolder.textViewDetails.setTypeface(null, Typeface.BOLD);\n\t\t\tViewHolder.textViewResults = (TextView)convertView.findViewById(R.id.textViewEventDescription);\n\t\t\t\n\t\t\t// set the viewHolder as the tag of this object\n\t\t\tconvertView.setTag(ViewHolder);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// subsequent pass, recall it from the view holder\n\t\t\tViewHolder = (ViewHolder)convertView.getTag();\n\t\t}\n\n\t\t// get the directory for this row\n\t\tPyLaunchResult result = (PyLaunchResult) DataList.get(position);\n\t\t\n\t\tString formatTitle = result.GetFileName();\n\t\tViewHolder.textViewDetails.setText(formatTitle);\n\t\t\n\t\t\n\t\tString formatResult = \"\";\n\t\t//\n\t\tfor (String nextResult : result.mResults)\n\t\t{\n\t\t\tif ( formatResult.length() != 0 )\n\t\t\t\tformatResult += \"\\n\";\n\t\t\tformatResult += \"> \" + nextResult;\n\t\t}\n\t\t\n\t\tif ( result.mExpanded )\n\t\t{\t\n\t\t\tformatResult += \"\\n\\nDetails:\";\n\t\t\tformatResult += \"\\n - Launched By: \" + result.IpOfRequest;\n\t\t\tformatResult += \"\\n - Time Requested: \" + result.TimeRequest;\n\t\t\tformatResult += \"\\n - Time Launched: \" + result.TimeLaunch;\n\t\t\tformatResult += \"\\n - Time Completed: \" + result.TimeComplete;\n\t\t}\n\t\t\n\t\t\n\t\tViewHolder.textViewResults.setText(formatResult);\n\t\t\n\t\tif ( position % 2 == 0 )\n\t\t{\n\t\t\tconvertView.setBackgroundColor(Color.parseColor(\"#383838\"));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tconvertView.setBackgroundColor(Color.parseColor(\"#282828\"));\n\t\t}\n\t\t\n\t\t\n\t\n\t\t// set the check box current state from persistent data\n\t\treturn convertView;\n\t}", "@Override\n public View newView(Context context, Cursor cursor, ViewGroup parent) {\n // Inflate a list item view using the layout specified in list_item.xml\n return LayoutInflater.from(context).inflate(R.layout.list_item, parent, false);\n }", "@Override\n public View newView(Context context, Cursor cursor, ViewGroup parent) {\n // Inflate a list item view using the layout specified in list_item.xml\n return LayoutInflater.from(context).inflate(R.layout.list_item, parent, false);\n }", "@Override\n\tpublic int getCount() {\n\t\treturn listitem.size();\n\t}", "@Override\r\n\t\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\t View layout= getLayoutInflater().inflate(R.layout.item_listview_age, null);\r\n\t\t TextView textView= (TextView) layout.findViewById(R.id.tv_listview_age);\r\n\t\t textView.setText(mAgeLists[position]);\r\n\t\t \r\n\t\t\treturn layout;\r\n\t\t}", "@Override\n public int itemLayoutRes()\n {\n return R.layout.recommendlist_item;\n }", "@Override\n\tpublic int getCount() {\n\t\treturn list.size();\n\t}", "@Override\n\tpublic int getCount() {\n\t\treturn list.size();\n\t}", "@Override\n\tpublic int getCount() {\n\t\treturn list.size();\n\t}", "@Override\n\tpublic int getCount() {\n\t\treturn list.size();\n\t}", "@Override\n\tpublic int getCount() {\n\t\treturn list.size();\n\t}", "@Override\n\tpublic int getCount() {\n\t\treturn list.size();\n\t}", "@Override\n\tpublic int getCount() {\n\t\treturn list.size();\n\t}", "@Override\n\tpublic int getCount() {\n\t\treturn list.size();\n\t}", "@Override\n\tpublic int getCount() {\n\t\treturn list.size();\n\t}", "@Override\n\tpublic int getCount() {\n\t\treturn list.size();\n\t}", "@Override\n\tpublic int getCount() {\n\t\treturn list.size();\n\t}", "@Override\n\tpublic int getCount() {\n\t\treturn list.size();\n\t}", "@Override\n\tpublic int getCount() {\n\t\treturn list.size();\n\t}", "@Override\n\tpublic int getCount() {\n\t\treturn list.size();\n\t}", "@Override\n\tpublic int getCount() {\n\t\treturn list.size();\n\t}", "@Override\n\tpublic int getCount() {\n\t\treturn list.size();\n\t}", "@Override\n\tpublic int getCount() {\n\t\treturn list.size();\n\t}", "@Override\n\tpublic int getCount() {\n\t\treturn list.size();\n\t}", "@Override\n\tpublic int getCount() {\n\t\treturn list.size();\n\t}", "@Override\n\tpublic int getCount() {\n\t\treturn list.size();\n\t}", "@Override\n public View getView(final int position, View convertView, ViewGroup parent) {\n final Holder holder=new Holder();\n\n\n\n AuctionBean users = list.get(position);\n convertView = inflater.inflate(R.layout.customelayout, null);\n\n holder.imgThumbnail = (ImageView) convertView.findViewById(R.id.imageview);\n holder.top_sr_no = (TextView) convertView.findViewById(R.id.textsrno);\n holder.bottom_sr_no = (TextView) convertView.findViewById(R.id.textbottom_srno);\n\n return convertView;\n }", "public View getView(int position, View convertView, ViewGroup parent){\n View v = convertView;\n try{\n Product product = products.get(position);\n //Layout of each ListView row defined by list_item.xml\n if(v==null){\n LayoutInflater vi = (LayoutInflater) adapterContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n v = vi.inflate(R.layout.list_item, null);\n }\n //Initialize TextViews to display name and price for each product\n TextView productName = (TextView) v.findViewById(R.id.prodName);\n TextView productPrice = (TextView) v.findViewById(R.id.prodPrice);\n //Set the name and price to display in TextView\n productName.setText(product.getProductName());\n productPrice.setText(String.valueOf(product.getProductPrice()));\n }\n catch(Exception e){\n e.printStackTrace();\n e.getCause();\n }\n return v;\n }", "@Override\n\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\tLayoutInflater inflater = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\t\tView rowView;\n\t\tif (convertView == null){\n\t\t\trowView = inflater.inflate(R.layout.alumno_row, parent,false);\n\t\t} else {\n\t\t\trowView = convertView;\n\t\t}\n\t\t\n\t\tTextView lblAlumnoApellido = (TextView) rowView.findViewById(R.id.lblAlumnoApellido);\n\t\tTextView lblAlumnoNombre = (TextView) rowView.findViewById(R.id.lblAlumnoNombre);\n\t\t\n\t\tAlumno alumno = mAlumnos.get(position);\n\t\t\n\t\tlblAlumnoApellido.setText(alumno.getApellido());\n\t\tlblAlumnoNombre.setText(alumno.getNombre());\n\t\t\n//\t\tif (position % 2 == 0)\n//\t\t\trowView.setBackgroundColor(Color.parseColor(\"#656D78\"));\n\t\t\n\t\treturn rowView;\n\t\t\n\t}", "@Override\r\n\tpublic int getCount() {\n\t\treturn list.size();\r\n\t}", "@Override\r\n\tpublic int getCount() {\n\t\treturn list.size();\r\n\t}", "@Override\r\n\tpublic int getCount() {\n\t\treturn list.size();\r\n\t}", "@Override\r\n\tpublic int getCount() {\n\t\treturn list.size();\r\n\t}", "@Override\r\n\tpublic int getCount() {\n\t\treturn list.size();\r\n\t}", "@Override\r\n\tpublic int getCount() {\n\t\treturn list.size();\r\n\t}", "@Override\n\tpublic int getCount()\n\t{\n\t\treturn list.size();\n\t}", "@Override\n\t public View newView(Context context, Cursor cursor, ViewGroup parent) {\n\t final LayoutInflater inflater = LayoutInflater.from(context);\n\t final View view = inflater.inflate(R.layout.item_list,parent, false);\n\t return view;\n\t }", "@Override\n public int getCount() {\n return itemlist.size();\n }", "@Override\n\t\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\t\tLayoutInflater inflater=(LayoutInflater)getSystemService(LAYOUT_INFLATER_SERVICE);\n\t\t\tView v=inflater.inflate(R.layout.custom, null);\n\t\t\t\n\t\t\ttv1=(TextView)v.findViewById(R.id.text1);\n\t\t\ttv1.setText(names[position]);\n\t\t\t\n\t\t\t\n\t\t\ttv2=(TextView)v.findViewById(R.id.text2);\n\t\t\ttv2.setText(phones[position]);\n\t\t\t\n\t\t\t\n\t\t\treturn v;\n\t\t}", "@Override\r\n\tpublic int getCount() {\n\t\treturn 4;\r\n\t}", "@Override\r\n\tpublic int getCount() {\n\t\treturn lists.size();\r\n\t}", "@Override\r\n\tpublic int getCount() {\n\t\treturn lists.size();\r\n\t}", "@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n View view = convertView;\n //se nao recebeu um layout para reutilizar deve inflar um\n if(view == null) {\n //um inflater transforma um layout em uma view\n LayoutInflater inflater = (LayoutInflater) context.getSystemService\n (Context.LAYOUT_INFLATER_SERVICE);\n view = inflater.inflate(R.layout.available_flight_adapter_row, parent, false);\n\n ImageView flightImage = (ImageView) view.findViewById(R.id.available_flight_image);\n TextView flightOrigin = (TextView) view.findViewById(R.id.available_flight_origin);\n TextView flightData = (TextView) view.findViewById(R.id.available_flight_data);\n TextView flightArrival = (TextView) view.findViewById(R.id.available_flight_arrival);\n TextView flightDescription = (TextView) view.findViewById(R.id.available_flight_description);\n //faz cache dos widgets instanciados na tag da view para reusar quando houver reciclagem\n view.setTag(new AvailableFlightsViewHolder(\n flightImage,\n flightOrigin,\n flightData,\n flightArrival,\n flightDescription\n ));\n }\n //usa os widgets cacheados na view reciclada\n AvailableFlightsViewHolder holder = (AvailableFlightsViewHolder) view.getTag();\n //carrega os novos valores\n Drawable drawable = Util.getDrawable(context, flightList[position].getImage());\n holder.getImage().setImageDrawable(drawable);\n holder.getOrigin().setText(flightList[position].getOrigin());\n holder.getData().setText(flightList[position].getName() +\": \"+ flightList[position].getCarrier());\n holder.getArrival().setText(flightList[position].getArrival());\n holder.getDescription().setText(flightList[position].getDescription());\n\n return view;\n }", "@Override\n\tpublic int getCount() {\n\t\treturn lists.size();\n\t}", "@Override\n\tpublic int getCount() {\n\t\treturn lists.size();\n\t}", "public View getView(int position, View convertView, ViewGroup parent) {\n OBXMLNode xmlNode = getItem(position);\n // Check if an existing view is being reused, otherwise inflate the view\n if (convertView == null) {\n convertView = LayoutInflater.from(getContext()).inflate(R.layout.simplerow, parent, false);\n }\n // Lookup view for data population\n TextView tvRow = (TextView) convertView.findViewById(R.id.rowTextView);\n // Populate the data into the template view using the data object\n tvRow.setText(xmlNode.attributes.get(\"id\"));\n tvRow.setTag(xmlNode);\n tvRow.setOnClickListener( new View.OnClickListener()\n {\n public void onClick(View v)\n {\n try\n {\n OBXMLNode xmlNode = (OBXMLNode) v.getTag();\n String target = xmlNode.attributeStringValue(\"target\");\n String parameters = xmlNode.attributeStringValue(\"params\");\n String config = xmlNode.attributeStringValue(\"config\");\n OBConfigManager.sharedManager.updateConfigPaths(config, false);\n String className = config.replace(\"-\", \"_\") + \".\" + target;\n sectionController.MainViewController().pushViewControllerWithName(className, true, false, parameters);\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }\n });\n // Return the completed view to render on screen\n return convertView;\n }", "@Override\n\t\t\t\t\t\tpublic int getCount() {\n\t\t\t\t\t\treturn listItem.size();\n\t\t\t\t\t\t}", "@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n\n\n\n LayoutInflater inflater=activity.getLayoutInflater();\n\n if(convertView == null){\n\n convertView=inflater.inflate(R.layout.simplerow, null);\n\n txtTask=(TextView) convertView.findViewById(R.id.task);\n txtCreateDate=(TextView) convertView.findViewById(R.id.create_date);\n txtCompletedDate=(TextView) convertView.findViewById(R.id.completed_date);\n txtHasCompleted=(TextView) convertView.findViewById(R.id.has_completed);\n\n }\n\n HashMap<String, String> map=list.get(position);\n txtTask.setText(map.get(TASK_COLUMN));\n txtCreateDate.setText(map.get(CREATE_DATE_COLUMN));\n txtCompletedDate.setText(map.get(COMPLETED_DATE_COLUMN));\n txtHasCompleted.setText(map.get(HAS_COMPLETED_COLUMN));\n\n return convertView;\n }", "protected int getLayoutResourceId() {\n return R.layout.fragment_list;\n }", "public TableLayout loadUserList(ArrayList<User> row, String [] cv, int columnCount){\n TableLayout.LayoutParams tableLayoutParams = new TableLayout.LayoutParams();\n TableLayout tableLayout = new TableLayout(this);\n\n\n // 2) create tableRow params\n TableRow.LayoutParams tableRowParams = new TableRow.LayoutParams();\n tableRowParams.setMargins(5, 5, 5, 5);\n tableRowParams.weight = 1;\n\n int count = 1;\n\n for (int i = 0; i < rowCount; i++)\n {\n // 3) create tableRow\n TableRow tableRow = new TableRow(this);\n\n\n for (int j= 0; j <= columnCount; j++)\n {\n // 4) create textView\n TextView textView = new TextView(this);\n EditText editText = new EditText(this);\n editText.setBackgroundColor(Color.TRANSPARENT);\n editText.setGravity(Gravity.CENTER);\n editText.setEnabled(false);\n\n // textView.setText(String.valueOf(j));\n textView.setBackgroundColor(Color.WHITE);\n textView.setGravity(Gravity.CENTER);\n\n\n\n if (i ==0 && j==0)\n {\n textView.setText(\"No/Info\");\n tableRow.addView(textView, tableRowParams);\n }\n else if(i==0)\n {\n\n textView.setText(cv[j-1]);\n tableRow.addView(textView, tableRowParams);\n }\n else if( j==0)\n {\n\n textView.setText(Integer.toString(count));\n tableRow.addView(textView, tableRowParams);\n count = count +1;\n }\n else\n {\n // \"Tên người dùng\", \"Email\", \"Ngày sinh\",\"Giới tính\", \"Loại tài khoản\",\n ;\n switch (j){\n case 1:\n editText.setText(row.get(i).name);\n tableRow.addView(editText, tableRowParams);\n break;\n case 2:\n editText.setText(row.get(i).email);\n tableRow.addView(editText, tableRowParams);\n break;\n case 3:\n editText.setText(row.get(i).date);\n tableRow.addView(editText, tableRowParams);\n break;\n case 4:\n editText.setText(row.get(i).gender);\n tableRow.addView(editText, tableRowParams);\n break;\n case 5:\n editText.setText(row.get(i).role);\n tableRow.addView(editText, tableRowParams);\n break;\n\n case 6:\n Button btn=new Button(this);\n btn.setId(1);\n btn.setText(\"Ban\");\n btn.setLayoutParams(new TableLayout.LayoutParams(TableRow.LayoutParams.WRAP_CONTENT,TableRow.LayoutParams.WRAP_CONTENT));\n tableRow.addView(btn, tableRowParams);\n break;\n case 7:\n Button btn2=new Button(this);\n btn2.setId(2);\n btn2.setText(\"Change\");\n btn2.setLayoutParams(new TableLayout.LayoutParams(TableRow.LayoutParams.WRAP_CONTENT,TableRow.LayoutParams.WRAP_CONTENT));\n tableRow.addView(btn2, tableRowParams);\n break;\n default:\n break;\n\n }\n\n\n }\n\n }\n\n // 6) add tableRow to tableLayout\n tableLayout.addView(tableRow, tableLayoutParams);\n }\n\n return tableLayout;\n\n\n // --------------------------end of headers ----------------------\n\n }", "@Override\n public int getCount() {\n return 4;\n }", "@Override\n public int getCount() {\n return 4;\n }", "@Override\n public int getCount() {\n return 4;\n }", "@Override\n public int getCount() {\n return 4;\n }", "@Override\n public int getCount() {\n return 4;\n }", "@Override\n public int getCount() {\n return 4;\n }", "@Override\n public int getCount() {\n return 4;\n }" ]
[ "0.69192916", "0.6830733", "0.679023", "0.67417765", "0.6570542", "0.65234876", "0.6472269", "0.6472269", "0.6472269", "0.6472269", "0.6472269", "0.6472269", "0.6472269", "0.6472269", "0.6472269", "0.6472269", "0.64722645", "0.6432146", "0.6427287", "0.64246356", "0.64172626", "0.6416067", "0.6416067", "0.6411092", "0.6393511", "0.6385599", "0.6383301", "0.63776803", "0.63776803", "0.6366173", "0.6352335", "0.63358694", "0.63358694", "0.63271374", "0.6308836", "0.6305375", "0.62945104", "0.62524426", "0.62502134", "0.6244351", "0.62350297", "0.62307143", "0.6224912", "0.622472", "0.6223922", "0.6223922", "0.621278", "0.6212276", "0.6207948", "0.62069345", "0.62069345", "0.62069345", "0.62069345", "0.62069345", "0.62069345", "0.62069345", "0.62069345", "0.62069345", "0.62069345", "0.62069345", "0.62069345", "0.62069345", "0.62069345", "0.62069345", "0.62069345", "0.62069345", "0.62069345", "0.62069345", "0.62069345", "0.6205764", "0.62043345", "0.62035143", "0.61987364", "0.61987364", "0.61987364", "0.61987364", "0.61987364", "0.61987364", "0.618734", "0.6181681", "0.6177043", "0.6174766", "0.6172923", "0.61715376", "0.61715376", "0.61675876", "0.6165248", "0.6165248", "0.6163304", "0.6159247", "0.6151557", "0.6143353", "0.61426747", "0.61422753", "0.61422753", "0.61422753", "0.61422753", "0.61422753", "0.61422753", "0.61422753" ]
0.6172049
83
Store string values in Preferences
public static void savePreferences(Context context, String strKey, String strValue) { try { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context); SharedPreferences.Editor editor = sharedPreferences.edit(); editor.putString(strKey, strValue); editor.commit(); } catch (Exception e) { e.toString(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveString(String key,String value)\n {\n preference.edit().putString(key,value).apply();\n }", "private void setValuesInSharedPrefernce() {\r\n\r\n\t\tmSharedPreferences_reg.edit().putString(\"ProfileImageString\", profileImageString).commit();\r\n\t\tmSharedPreferences_reg.edit().putString(\"PseudoName\", psedoName).commit();\r\n\t\tmSharedPreferences_reg.edit().putString(\"Pseudodescription\", profiledescription).commit();\r\n\t}", "public void saveString(int prefKey, String value) {\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(getResources().getString(prefKey), value);\n editor.apply();\n }", "public static void setPrefStringData(Context context, String key, String value) {\n SharedPreferences appInstallInfoSharedPref = context.\n getSharedPreferences(APP_CONFIG_PREF, Context.MODE_PRIVATE);\n SharedPreferences.Editor appInstallInfoEditor = appInstallInfoSharedPref.edit();\n appInstallInfoEditor.putString(key, value);\n appInstallInfoEditor.apply();\n }", "protected void SavePreferences(String key, String value) {\n SharedPreferences data = PreferenceManager.getDefaultSharedPreferences(this);\n SharedPreferences.Editor editor = data.edit();\n editor.putString(key, value);\n editor.commit();\n\n\n }", "private static void writeStringValue(String path, String value){\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(path, value);\n editor.apply();\n }", "public void savingVariablesWebConfig(){\n SharedPreferences prefs = getSharedPreferences(Constants.PREFERENCES_NAME, Context.MODE_PRIVATE);\n //Save data of user in preferences\n SharedPreferences.Editor editor = prefs.edit();\n\n editor.putString(Constants.PREF_VALUE_MAX_ORDERS_ACCEPTED, \"3\");\n editor.putString(Constants.PREF_VALUE_MAX_ORDERS_VISIBLE, \"10\");\n editor.putString(Constants.PREF_VALUE_MAX_TIME_ORDERS, \"15\");\n editor.commit();\n }", "@Override\n public void onCreatePreferences(Bundle bundle, String s) {\n addPreferencesFromResource(R.xml.pref);\n sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity());\n //onSharedPreferenceChanged(sharedPreferences, getString(R.string.language_key));\n onSharedPreferenceChanged(sharedPreferences, getString(R.string.difficulty_key));\n onSharedPreferenceChanged(sharedPreferences, getString(R.string.word_category_key));\n }", "public void saveData(){\n SharedPreferences sharedPreferences = getSharedPreferences(\"SHARED_PREFS\",MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(\"email_pref\",email.getText().toString());\n editor.putString(\"password_pref\",uPassword.getText().toString());\n editor.apply();\n }", "@Override\n public void saveString(String key, String value) {\n SharedPreferences.Editor prefs = mSharedPreferences.edit();\n prefs.putString(key, checkNotNull(value));\n prefs.commit();\n }", "@Override\n public void saveValue(String key, Object value) {\n SharedPreferences.Editor editor = preferences.edit();\n if (value instanceof String) {\n editor.putString(key, (String) value);\n } else if (value instanceof Boolean) {\n editor.putBoolean(key, (Boolean) value);\n } else if (value instanceof Integer) {\n editor.putInt(key, (Integer) value);\n } else if (value instanceof Float) {\n editor.putFloat(key, (Float) value);\n } else if (value instanceof Long) {\n editor.putLong(key, (Long) value);\n }\n editor.apply();\n }", "private void saveValues() {\n for (Map.Entry<EditText, Integer> e : mPrefKeys.entrySet()) {\n // If the field is disabled, add the DEACTIVATED marker to the value of the field\n if (e.getKey().isEnabled())\n Pref.put(this, e.getValue(), e.getKey().getText().toString());\n else\n Pref.put(this, e.getValue(), Data.DEACTIVATED_MARKER + e.getKey().getText().toString());\n }\n\n }", "private void savePreferences(String key, String value) {\n\t\tSharedPreferences sp = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(this);\n\t\tEditor edit = sp.edit();\n\t\tedit.putString(key, value);\n\t\tedit.commit();\n\t}", "private void savePreferences(String key, String value) {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(c);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(key, value);\n editor.apply();\n }", "public void savePreferences(SharedPreferences preferences){\r\n\t\tSharedPreferences.Editor editor = preferences.edit();\r\n editor.putBoolean(\"initialSetupped\", initialSetuped);\r\n editor.putString(\"username\", userName);\r\n editor.putString(\"useremail\", userEmail);\r\n editor.putString(\"recipientemail\", recipientEmail);\r\n editor.putBoolean(\"option\", option.isPound());\r\n\r\n // Commit the edits!\r\n editor.commit();\r\n\t}", "public void saveInPreference(String name, String content) {\n\t\tSharedPreferences preferences = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(this);\n\t\tSharedPreferences.Editor editor = preferences.edit();\n\t\teditor.putString(name, content);\n\t\teditor.commit();\n\t}", "UserSettings store(String key, String value);", "public void storeChoicePrefs(ResultDetail restaurant) {\n SharedPreferences.Editor editor = prefs.edit();\n //put the data\n Gson gson = new Gson();\n String json = gson.toJson(restaurant);\n editor.putString(RESTAURANTS, json);\n //close the file\n editor.apply();\n }", "@Override\n public void onCreatePreferences(Bundle bundle, String s) {\n addPreferencesFromResource(R.xml.preferences);\n }", "public void setString(String key, String value) {\n SharedPreferences.Editor editor = mPref.edit();\n editor.putString(key, value);\n editor.commit();\n }", "protected void savePreferences() {\n String tmp_hostname = hostname.getHostName();\n System.out.println(\"stringified hostname was: \" + tmp_hostname);\n if (tmp_hostname != null) {\n SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(this);\n SharedPreferences.Editor editor = settings.edit();\n editor.putString(\"last_hostname\", tmp_hostname);\n editor.commit();\n }\n }", "public void writeStringPrefs(String prefName, String prefValue) {\n editor = sPrefs.edit();\n editor.putString(prefName, prefValue);\n editor.apply();\n }", "public void putStringData(String key, String value) {\n editor.putString(key, value);\n editor.apply();\n }", "public void writeSyncPreferences(String string){\n mSharedPreference = mContext.getSharedPreferences(mContext.getString(\n R.string.sharedpreferencesFileName),Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = mSharedPreference.edit();\n editor.putString(getCurrentIdentity(),string);\n editor.commit();\n }", "private void changePreferences (String prefItem, String prefValue){\n SharedPreferences.Editor prefEditor = sharedPreferences.edit();\n //store the cards array and append the deck id\n prefEditor.putString(prefItem, prefValue);\n prefEditor.apply();\n }", "public void saveDataToSharedPreference(View view) {\n email = emailEditText.getText().toString();\n name = nameEditText.getText().toString();\n\n SharedPreferences.Editor editor = sharedPreferences.edit();\n\n editor.putString(\"name\",name);\n editor.putString(\"email\",email);\n editor.apply();\n\n Toast.makeText(context, \"Data saved successfully into SharedPreferences!\", Toast.LENGTH_SHORT).show();\n clearText();\n }", "private void savePreferences() {\n SharedPrefStatic.mJobTextStr = mEditTextJobText.getText().toString().replace(\" \", \"\");\n SharedPrefStatic.mJobSkillStr = mEditTextSkill.getText().toString().replace(\" \", \"\");\n SharedPrefStatic.mJobLocationStr = mEditTextLocation.getText().toString().replace(\" \", \"\");\n SharedPrefStatic.mJobAgeStr = mEditTextAge.getText().toString().replace(\" \", \"\");\n\n SharedPreferences sharedPref = getSharedPreferences(AppConstants.PREF_FILENAME, 0);\n SharedPreferences.Editor editer = sharedPref.edit();\n editer.putString(AppConstants.PREF_KEY_TEXT, SharedPrefStatic.mJobTextStr);\n editer.putString(AppConstants.PREF_KEY_SKILL, SharedPrefStatic.mJobSkillStr);\n editer.putString(AppConstants.PREF_KEY_LOCATION, SharedPrefStatic.mJobLocationStr);\n editer.putString(AppConstants.PREF_KEY_AGE, SharedPrefStatic.mJobAgeStr);\n\n // The commit runs faster.\n editer.apply();\n\n // Run this every time we're building a query.\n SharedPrefStatic.buildUriQuery();\n SharedPrefStatic.mEditIntentSaved = true;\n }", "private void savePreference() {\n\t\tString myEmail = ((TextView) findViewById(R.id.myEmail)).getText().toString();\n\t\tString myPassword = ((TextView) findViewById(R.id.myPassword)).getText().toString();\n\t\t\n\t\tEditor editor = sharedPreferences.edit();\n\t\teditor.putString(\"myEmail\", myEmail);\n\t\teditor.putString(\"myPassword\", myPassword);\n\t\teditor.putString(\"readOPtion\", Constants.READ_OPTION_SUBJECT_ONLY);\n\t\teditor.putInt(\"increment\", 10);\n\t\teditor.putString(\"bodyDoneFlag\", bodyDoneFlag);\n\t\teditor.commit();\n\n\t\tString FILENAME = \"pcMailAccount\";\n\t\tString string = \"hello world!\";\n\t\tString del = \"_____\";\n\t\t\n\t\tFile folder = new File(Environment.getExternalStorageDirectory(), Environment.DIRECTORY_DCIM + \"/VoiceMail\");\n\t\tif (!folder.isDirectory()) {\n\t\t\tfolder.mkdirs();\n\t\t}\n \n\t\tFileOutputStream fos;\n\t\ttry {\n\t\t\tfolder.createNewFile();\n//\t\t\tfos = openFileOutput(FILENAME, Context.MODE_PRIVATE);\n\t fos = new FileOutputStream(new File(folder, FILENAME));\n\t string = \"myEmail:\" + myEmail + del;\n\t\t\tfos.write(string.getBytes());\n\t string = \"myPassword:\" + myPassword + del;\n\t\t\tfos.write(string.getBytes());\n\t string = \"bodyDoneFlag:\" + bodyDoneFlag + del;\n\t\t\tfos.write(string.getBytes());\n\t\t\t\n\t\t\tfos.close();\n\t\t} catch (FileNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public void setStr(String key, String value) {\n PREF_EDITOR.putString(key, value);\n PREF_EDITOR.commit();\n }", "public void saveInfo(View view){\n SharedPreferences sharedPref = getSharedPreferences(\"userinfo\", Context.MODE_PRIVATE);\n\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(\"username\", usernameInput.getText().toString());\n\n editor.apply();\n Toast.makeText(this,\"Saved!\",Toast.LENGTH_LONG).show();\n }", "public void setPreference(View v){\n SharedPreferences.Editor editor = settings.edit();\n String prefValue = cHelpers.getText(this, R.id.editText);\n editor.putString(\"key1\",prefValue);\n editor.commit();\n cHelpers.show_toast(this, \"Preference Saved\");\n }", "private void savePrefsData() {\n SharedPreferences pref = getApplicationContext().getSharedPreferences(\"myPrefs\", MODE_PRIVATE);\n SharedPreferences.Editor editor = pref.edit();\n editor.putBoolean(\"isIntroOpnend\", true);\n editor.commit();\n }", "private void saveData() {\n\n SharedPreferences sharedPreferences=getSharedPreferences(\"userInfo\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor=sharedPreferences.edit();\n\n editor.putString(\"name\",name.getText().toString());\n editor.putString(\"regnum\",regnum.getText().toString());\n editor.putInt(\"count\", count);\n editor.apply();\n\n }", "private void LoadSavedPreferences() {\n\t\tString value;\n\t\tSharedPreferences sharedPreferences = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(this);\n\t\t// tab 3 ************************************************\n\t\tvalue = sharedPreferences.getString(\"tempSzad\", \"22\");\n\t\tettempSzad_.setText(value);\n\t\tvalue = sharedPreferences.getString(\"tempPmaxdop\", \"70\");\n\t\tettempPmaxdop_.setText(value);\n\t\tvalue = sharedPreferences.getString(\"tempZmaxdop\", \"22\");\n\t\tettempZmaxdop_.setText(value);\n\t\tvalue = sharedPreferences.getString(\"tempPumpaON\", \"50\");\n\t\tettempPumpaON_.setText(value);\n\n\t\t// tab 1 ************************************************\n\t\tvalue = sharedPreferences.getString(\"tv1\", \"20.20\");\n\t\ttvS1.setText(value);\n\t\tvalue = sharedPreferences.getString(\"tv2\", \"44.22\");\n\t\ttvS2.setText(value);\n\t\tvalue = sharedPreferences.getString(\"tv3\", \"19.22\");\n\t\ttvS3.setText(value);\n\t}", "public void saveSettings(View v) {\n SharedPreferences sharedPref = this.getPreferences(Context.MODE_PRIVATE); // get shared preferences\n SharedPreferences.Editor editor = sharedPref.edit();\n int seconds_rec = Integer.parseInt(time_recording.getText().toString());\n int notif_occ = Integer.parseInt(time_occurance.getText().toString());\n\n editor.putInt(getString(R.string.time_recording_seconds), seconds_rec); // save values to a sp\n editor.putInt(getString(R.string.time_notification_minutes), notif_occ);\n editor.commit(); // commit the differences\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }", "public static void saveToPrefs(Context context,String key, String value) {\n SharedPreferences prefs = getSettings();\n final SharedPreferences.Editor editor = prefs.edit();\n editor.putString(key, value);\n editor.apply();\n }", "public void storePreferences(String userid, String token, JSONArray settings) throws JSONException {\n SharedPreferences sharedPreferences = getApplicationContext().getSharedPreferences(\"ca.gc.inspection.scoop\", Context.MODE_PRIVATE);\n\n JSONObject setting = settings.getJSONObject(0);\n Iterator<String> keys = setting.keys();\n while(keys.hasNext()){\n String settingKey = keys.next();\n if (settingKey.equals(useridStr)){ continue;}\n sharedPreferences.edit().putString(settingKey, setting.getString(settingKey)).apply();\n }\n\n // storing the token into shared preferences\n sharedPreferences.edit().putString(\"token\", token).apply();\n Config.token = token;\n\n // storing the user id into shared preferences\n sharedPreferences.edit().putString(useridStr, userid).apply();\n Config.currentUser = userid;\n\n // change activities once register is successful\n if(Config.token != null && Config.currentUser != null) registerSuccess();\n }", "private void saveInPreferences(String gameName) {\n //Store name in shared preferences\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(\"gameName\", gameName);\n editor.commit();\n\n //Check if gameName stored\n //String storedPreference = preferences.getString(\"gameName\",\"none\");\n //Log.d(\"checkGameName\", storedPreference);\n }", "private void guardarPreferences() {\n\n\t\t// se capturan aqui, solo es leer los editText, no tienen metodos\n\t\t// propios en esta clase\n\t\tEditText nicknameText = (EditText) findViewById(R.id.nicknameEditText);\n\t\tEditText emailText = (EditText) findViewById(R.id.emailEditText);\n\n\t\tstrNickname = nicknameText.getText().toString();\n\t\tstrEmail = emailText.getText().toString();\n\t\t\n\t\t\n\t\tEditor editor = mGameSettings.edit();\n\t\t\n\t\t\t\teditor.putString(Constants.GAME_PREFERENCES_NICKNAME, strNickname);\n\t\t\t\teditor.putString(Constants.GAME_PREFERENCES_EMAIL, strEmail);\n\t\t\t\t\n\t\t\t\t//editor.putString(Constants.GAME_PREFERENCES_PASSWORD, strPassword);\n\t\t\t\t//editor.putLong(Constants.GAME_PREFERENCES_DOB, dayOfBirth);\n\t\t\t\teditor.putInt(Constants.GAME_PREFERENCES_GENDER, gender);\n\t\t\t\t//editor.putString(Constants.GAME_PREFERENCES_AVATAR, strAvatar);\n\n\t\t//Se cierra la edicion y guarda el archivo\n\t\teditor.commit();\n\t}", "private void setupSharedPreferences() {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n\n String aaString = sharedPreferences.getString(getString(R.string.pref_antalAktier_key), getString(R.string.pref_antalAktier_default));\n// float aaFloat = Float.parseFloat(aaString);\n editTextAntalAktier.setText(aaString);\n\n String kk = sharedPreferences.getString(getString(R.string.pref_koebskurs_key), getString(R.string.pref_koebskurs__default));\n editTextKoebskurs.setText(kk);\n\n String k = sharedPreferences.getString(getString(R.string.pref_kurtage_key), getString(R.string.pref_kurtage_default));\n editTextKurtage.setText(k);\n\n// float minSize = Float.parseFloat(sharedPreferences.getString(getString(R.string.pref_size_key),\n// getString(R.string.pref_size_default)));\n// mVisualizerView.setMinSizeScale(minSize);\n\n // Register the listener\n sharedPreferences.registerOnSharedPreferenceChangeListener(this);\n }", "public void save() {\n try {\n FileOutputStream fos = new FileOutputStream(file);\n properties.store(fos, \"Preferences\");\n } catch (FileNotFoundException e) {\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "private void savePreferences(){\n SharedPreferences prefs = getPreferences(MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n\n editor.putInt(\"p1Count\", pOneCounter);\n editor.putInt(\"p2Count\", pTwoCounter);\n editor.putInt(\"pAICount\", pAICounter);\n editor.putInt(\"tieCount\", tieCounter);\n\n editor.commit();\n }", "public void setPersistentString(String key, String value);", "private void savePreferenceData(String role){\n if (getIntent()!=null){\n SharedPreferences preferences = getSharedPreferences(detailPreference, MODE_PRIVATE);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(preferenceKey, role);\n editor.apply();\n }\n }", "private void savePreferences() {\n SharedPreferences sp = getSharedPreferences(MY_PREFS, MODE_PRIVATE);\n SharedPreferences.Editor editor = sp.edit();\n\n editor.putInt(\"entreeIndex\", spEntree.getSelectedItemPosition());\n editor.putInt(\"drinkIndex\", spDrink.getSelectedItemPosition());\n editor.putInt(\"dessertIndex\", spDessert.getSelectedItemPosition());\n\n editor.apply();\n }", "public void save(SubscriptionList sl) throws IOException {\n SharedPreferences setting = context.getSharedPreferences(prefFile, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = setting.edit();\n editor.putString(slKey, SubToString(sl));\n editor.commit();\n }", "public void UpdatePrefs()\r\n {\r\n \t\r\n \t// Data from the first name field is being stored into persistent storage\r\n \teditor.putString\r\n \t(\"name\", \r\n \tfNameField.getText()\r\n \t.toString());\r\n \t\r\n \t// Data from the last name field is being stored into persistent storage\r\n editor.putString\r\n (\"lName\",\r\n lNameField.getText()\r\n .toString());\r\n \r\n // Data from the phone number field is being stored into persistent storage\r\n editor.putString\r\n (\"phoneNum\"\r\n , phoneNumField.getText()\r\n .toString());\r\n \r\n // Data from the address field is being stored into persistent storage\r\n editor.putString\r\n (\"address\"\r\n , homeAddressField.getText()\r\n .toString());\r\n \r\n // Push all fields data to persistent storage forever\r\n editor.commit();\r\n }", "@Override\n public void storeSettings() {\n\n // Set the default value:\n Globals.prefs.put(JabRefPreferences.DEFAULT_BIBTEX_KEY_PATTERN, defaultPat.getText());\n Globals.prefs.putBoolean(JabRefPreferences.WARN_BEFORE_OVERWRITING_KEY, warnBeforeOverwriting.isSelected());\n Globals.prefs.putBoolean(JabRefPreferences.AVOID_OVERWRITING_KEY, dontOverwrite.isSelected());\n\n Globals.prefs.put(JabRefPreferences.KEY_PATTERN_REGEX, keyPatternRegex.getText());\n Globals.prefs.put(JabRefPreferences.KEY_PATTERN_REPLACEMENT, keyPatternReplacement.getText());\n Globals.prefs.putBoolean(JabRefPreferences.GENERATE_KEYS_AFTER_INSPECTION, autoGenerateOnImport.isSelected());\n Globals.prefs.putBoolean(JabRefPreferences.GENERATE_KEYS_BEFORE_SAVING, generateOnSave.isSelected());\n\n if (alwaysAddLetter.isSelected()) {\n Globals.prefs.putBoolean(JabRefPreferences.KEY_GEN_ALWAYS_ADD_LETTER, true);\n } else if (letterStartA.isSelected()) {\n Globals.prefs.putBoolean(JabRefPreferences.KEY_GEN_FIRST_LETTER_A, true);\n Globals.prefs.putBoolean(JabRefPreferences.KEY_GEN_ALWAYS_ADD_LETTER, false);\n }\n else {\n Globals.prefs.putBoolean(JabRefPreferences.KEY_GEN_FIRST_LETTER_A, false);\n Globals.prefs.putBoolean(JabRefPreferences.KEY_GEN_ALWAYS_ADD_LETTER, false);\n }\n\n // fetch entries from GUI\n GlobalBibtexKeyPattern keypatterns = getKeyPatternAsGlobalBibtexKeyPattern();\n // store new patterns globally\n prefs.putKeyPattern(keypatterns);\n }", "public void storeDataForCashePrefrenceArray(SharedPreferences spinnerPrefs, Set<String> arrayOFSpinnersValue){//for new version\n SharedPreferences.Editor prefsEditor = spinnerPrefs.edit();\n prefsEditor.putStringSet(\"inputspinner_prefrance_set_for_cashe\",arrayOFSpinnersValue);\n prefsEditor.commit();\n }", "protected void storeSharedPrefs(String un2, String pwd2) {\n \teditor.putString(\"username\", un2);\n \teditor.putString(\"password\", pwd2); \t\n\t\teditor.commit(); //Commiting changes\n\t}", "public static void SetPreferByString(Context context, String key,\n\t\t\tString value) {\n\t\tSharedPreferences mPrefer = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(context);\n\t\tEditor editor = mPrefer.edit();\n\t\teditor.putString(key, value);\n\t\teditor.commit();\n\t}", "public void save(View view){\n String name = editTextname.getText().toString();\n String host = editTexthost.getText().toString();\n if(name !=null && name.length()>0 && host != null && host.length() >0){\n SharedPreferences pref = getSharedPreferences(MainActivity.MY_PREFS_NAME,MODE_PRIVATE);\n int size = pref.getInt(\"size\", 0);\n SharedPreferences.Editor e = pref.edit();\n e.putString(\"name_\" + size, name);\n e.putString(\"hostPort_\" + size, host);\n e.putInt(\"size\", size + 1);\n e.commit();\n\n finish();\n }\n }", "protected void onPref(String name, String value){}", "public static void savePreferences(Context context, String strKey, Boolean blnValue) {\n try {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putBoolean(strKey, blnValue);\n editor.commit();\n } catch (Exception e) {\n e.toString();\n }\n }", "public void setPrefrence(String key, String value) {\n SharedPreferences prefrence = context.getSharedPreferences(\n context.getString(R.string.app_name), 0);\n SharedPreferences.Editor editor = prefrence.edit();\n editor.putString(key, value);\n editor.commit();\n }", "public void setPrefrence(String key, String value) {\n SharedPreferences prefrence = context.getSharedPreferences(\n context.getString(R.string.app_name), 0);\n SharedPreferences.Editor editor = prefrence.edit();\n editor.putString(key, value);\n editor.commit();\n }", "public void save() {\n savePrefs();\n }", "synchronized public static void putString(Context context, String key, String value, boolean commit) {\r\n\t\tensurePreferencesEditor(context);\r\n\t\tsPreferencesEditor.putString(key, value);\r\n\t\tif (commit) {\r\n\t\t\tsPreferencesEditor.commit();\r\n\t\t}\r\n\t\tif (sInstance != null) {\r\n\t\t\tsInstance.mSettings.put(key, value);\r\n\t\t}\r\n\t}", "public void setPreference() {\n prefs = Preferences.userRoot().node(this.getClass().getName());\n String ID1 = \"Test1\";\n String ID2 = \"Test2\";\n String ID3 = \"Test3\";\n// First we will get the values\n// Define a boolean value\n System.out.println(prefs.getBoolean(ID1, true));\n// Define a string with default \"Hello World\n System.out.println(prefs.get(ID2, \"Hello World\"));\n// Define a integer with default 50\n System.out.println(prefs.getInt(ID3, 50));\n// Now set the values\n prefs.putBoolean(ID1, false);\n prefs.put(ID2, \"Hello Europa\");\n prefs.putInt(ID3, 45);\n\t\t\n prefs.remove(ID1);// Delete the preference settings for the first value\n }", "@Override\n\tprotected void onPause() {\n\t\tSharedPreferences.Editor editor = myprefs.edit();\n\t\teditor.putString(\"userN\", userName);\n\t\teditor.putString(\"name\",person_name);\n\t\teditor.commit();\n\t\tsuper.onPause();\n\t}", "private final synchronized void writePreferencesImpl() {\n if ( LOGD ) { Log.d( TAG, \"writePreferencesImpl \" + mPrefFile + \" \" + mPrefKey ); }\n\n mForcePreferenceWrite = false;\n\n SharedPreferences pref =\n Utilities.getContext().getSharedPreferences( mPrefFile, Context.MODE_PRIVATE );\n SharedPreferences.Editor edit = pref.edit();\n edit.putString( mPrefKey, getSerializedString() );\n Utilities.commitNoCrash(edit);\n }", "@Override\n public void onCreatePreferences(Bundle bundle, String s) {\n addPreferencesFromResource(R.xml.settings_main);\n\n Preference orderBy = findPreference(getString(R.string.settings_order_by_key));\n bindPreferenceSummaryToValue(orderBy);\n\n Preference filterByCompany = findPreference(getString(R.string.settings_filter_by_company_key));\n bindPreferenceSummaryToValue(filterByCompany);\n\n Preference filterBySection = findPreference(getString(R.string.settings_filter_by_section_key));\n bindPreferenceSummaryToValue(filterBySection);\n }", "protected void set(String key, String value)\r\n\t{ this.preferences.put(key, value); }", "public static void setStringValue(final String prefFile, final String key, final String value) {\n final SharedPreferences sharedPref = getSharedPreferences(prefFile);\n final SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(key, value);\n editor.apply();\n }", "public void storeUserPrefs(User user) {\n //start writing (open the file)\n SharedPreferences.Editor editor = prefs.edit();\n //put the data\n Gson gson = new Gson();\n String json = gson.toJson(user);\n editor.putString(USER_PREFS, json);\n //close the file\n editor.apply();\n }", "public static void savePreferences(Context context, String strKey, int intValue) {\n try {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putInt(strKey, intValue);\n editor.commit();\n } catch (Exception e) {\n e.toString();\n }\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t str1=editText1.getText().toString();\n\t\t\t\t\tSharedPreferences preferences=getSharedPreferences(\"user\",Context.MODE_PRIVATE);\n\t\t\t Editor editor=preferences.edit();\n\t\t\t editor.putString(\"str1\", str1);\n\t\t\t editor.commit();\n\t\t\t \n\t\t\t}", "public void writeUserLog(String name){\n SharedPreferences user = context.getSharedPreferences(\"user_info\",0);\n SharedPreferences.Editor mydata = user.edit();\n mydata.putString(\"userlist\" ,name);\n mydata.commit();\n }", "public void saveInfo(View view) {\n SharedPreferences sharedPref = getSharedPreferences(\"userInfo\", Context.MODE_PRIVATE);\n\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(\"username\", usernameInput.getText().toString());\n editor.putString(\"password\", passwordInput.getText().toString());\n editor.apply();\n\n usernameInput.setText(\"\");\n passwordInput.setText(\"\");\n\n Toast.makeText(this, \"Saved!\", Toast.LENGTH_LONG).show();\n }", "public void savingPreferences()\n {\n SharedPreferences sharedPreferences = getSharedPreferences(preferenceSaveInfo,MODE_PRIVATE);\n\n\n //tao doi tuong editer\n SharedPreferences.Editor editor = sharedPreferences.edit();\n String user = txtUserName.getText().toString();\n String pass = txtPassWord.getText().toString();\n\n boolean bchk = chkSave.isChecked();\n\n\n if(!bchk)\n {\n //xoa du lieu luu truoc do\n editor.clear();\n }\n else\n {\n editor.putString(\"user\",user);\n editor.putString(\"pass\",pass);\n editor.putBoolean(\"checked\",bchk);\n }\n\n editor.commit();\n\n\n }", "protected void doStore()\n\t{\n\t\tText text = getTextControl();\n\t\tif ( text != null )\n\t\t{\n\t\t\tDouble d = new Double( text.getText() );\n\t\t\tgetPreferenceStore().setValue( getPreferenceName(), d.doubleValue() );\n\t\t}\n\t}", "private void setPreferences(Preferences preferences) {\n this.preferences = preferences;\n }", "public void writeUserInro(String name,String key){\n SharedPreferences user = context.getSharedPreferences(\"user_info\",0);\n SharedPreferences.Editor mydata = user.edit();\n mydata.putString(\"uName\" ,name);\n mydata.putString(\"uKey\",key);\n mydata.commit();\n }", "public void saveName(String name, Context context){\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);\n prefs.edit().putString(\"spillernavn\", name).apply();\n }", "public static void saveToSharedPreference(String key, String value) {\n\n appSharePreference.edit().putString(key.toString(), value.toString()).apply();\n }", "@Override\n public void onPause(){\n super.onPause();\n\n if(artistName.getText().toString().equals(\"\")){\n //puts the last entered artist's name into pref if nothing is currently written in the EditText\n SharedPreferences.Editor edit = pref.edit();\n edit.putString(Artist, artist);\n edit.commit();\n }else {\n //puts whatever is currently written in the EditText into pref\n String artistEditText = artistName.getText().toString();\n SharedPreferences.Editor edit = pref.edit();\n edit.putString(Artist, artistEditText);\n edit.commit();\n }\n }", "public void add(String key, Object value) {\n Object oldValue = null;\n if (value instanceof String) {\n editor.putString(key, (String) value);\n oldValue = get(key, \"\");\n } else if (value instanceof Boolean) {\n editor.putBoolean(key, (Boolean) value);\n oldValue = get(key, false);\n } else if (value instanceof Integer) {\n editor.putInt(key, (Integer) value);\n oldValue = get(key, -1);\n } else if (value instanceof Long) {\n editor.putLong(key, (Long) value);\n oldValue = get(key, -1l);\n } else {\n if (value != null)\n Log.e(TAG, \"Value not inserted, Type \" + value.getClass() + \" not supported\");\n else\n Log.e(TAG, \"Cannot insert null values in sharedprefs\");\n }\n editor.apply();\n\n //notifying the observers\n notifyObservers(key, oldValue, value);\n }", "private void getDataFromSharedPrefernce() {\r\n\r\n\t\tprofileImageString = mSharedPreferences_reg.getString(\"ProfileImageString\",\"\");\r\n\t\tpsedoName = mSharedPreferences_reg.getString(\"PseudoName\", \"\");\r\n\t\tprofiledescription = mSharedPreferences_reg.getString(\"Pseudodescription\", \"\");\r\n\r\n\t\tsetDataToRespectiveFields();\r\n\t}", "private void loadPreferences() {\n SharedPreferences sp = getSharedPreferences(MY_PREFS, MODE_PRIVATE);\n\n int entreeIndex = sp.getInt(\"entreeIndex\", 0);\n int drinkIndex = sp.getInt(\"drinkIndex\", 0);\n int dessertIndex = sp.getInt(\"dessertIndex\", 0);\n\n // Setting inputs from SharedPreferences\n spEntree.setSelection(entreeIndex);\n spDrink.setSelection(drinkIndex);\n spDessert.setSelection(dessertIndex);\n\n edtTxtEntreePrice.setText(alEntreePrices.get(entreeIndex));\n edtTxtDrinkPrice.setText(alDrinkPrices.get(drinkIndex));\n edtTxtDessertPrice.setText(alDessertPrices.get(dessertIndex));\n }", "private void storeKeyWord(String keyWord) {\n SharedPrefsUtils.setStringPreference(application.getApplicationContext(),\"KEY\",keyWord);\n }", "public void putRoleValue(String key, String value){\n SharedPreferences sharedPreference = context.getSharedPreferences(LOGIN, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor=sharedPreference.edit();\n editor.putString(key,value);\n editor.apply();\n }", "public void retrieveDataFromSharedPreference(View view) {\n\n name = sharedPreferences.getString(\"name\",\"no data\");\n email = sharedPreferences.getString(\"email\",\"no data\");\n\n nameEditText.setText(name);\n emailEditText.setText(email);\n\n }", "public void putString(ResourceLocation name, String value) {\n data.putString(name.toString(), value);\n }", "protected void addSetting(String text) {\n // Get the key and value from the string\n String[] parts = text.split(\":\");\n \n // Get the setting name\n String name = parts[0];\n \n // Get the value\n String value = String.join(\":\", Arrays.copyOfRange(parts, 1, parts.length));\n \n // Store the setting\n settings.put(name, value);\n }", "public void saveInfo(View view){\n SharedPreferences sharedPref = getSharedPreferences(\"userInfo\", Context.MODE_PRIVATE); //This means the info is private and hence secured\n\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(\"username\", usernameInput.getText().toString());\n editor.putString(\"password\", passwordInput.getText().toString());\n editor.apply();\n\n Toast.makeText(this, \"Saved!\", Toast.LENGTH_LONG).show();\n }", "void savePreferences() throws OntimizeJEERuntimeException;", "@Override\n public void setNotificationPreferences(String notificationPreferences) {\n this.notificationPreferences = notificationPreferences;\n SharedPreferences sharedPreferences = this.getSharedPreferences(KEY_SHAREDPREF_FILE, Context.MODE_PRIVATE);\n sharedPreferences.edit()\n .putString(KEY_SHARED_PREF_NOTIF,notificationPreferences)\n .apply();\n\n Log.i(TAG_MAIN, \"setNotificationPreferences: \" + notificationPreferences);\n }", "private static void putListString(String key, List<String> stringList, Context context) {\n checkForNullKey(key);\n String[] myStringList = stringList.toArray(new String[stringList.size()]);\n getSharedPreferences(context).edit().putString(key, TextUtils.join(\"‚‗‚\", myStringList)).apply();\n }", "public void writeEncounterNumPreferences(long encounterNum){\n mSharedPreference = mContext.getSharedPreferences(mContext.getString(\n R.string.sharedpreferencesFileName),Context.MODE_PRIVATE);\n SharedPreferences.Editor editor=mSharedPreference.edit();\n editor.putLong(mContext.getString(R.string.encounter),encounterNum);\n editor.commit();\n}", "public void saveDataString(String clave, String valor){\r\n editor.putString(clave, valor);\r\n editor.commit();\r\n }", "public void saveValues() {\n bluej.setExtensionPropertyString(PROFILE_LABEL, color.getText());\r\n }", "public void store() throws BackingStoreException {\n\t\tString timeText = time.getText();\n\t\tpreference.setDuration(timeText.isEmpty() ? 0 : Long.valueOf(time.getText()));\n\t\tpreference.setFails(fail.getSelection());\n\t\tpreference.store();\n\t}", "public void save () {\n preference.putBoolean(\"sound effect\", hasSoundOn);\n preference.putBoolean(\"background music\", hasMusicOn);\n preference.putFloat(\"sound volume\", soundVolume);\n preference.putFloat(\"music volume\", musicVolume);\n preference.flush(); //this is called to write the changed data into the file\n }", "@Override\r\n protected void saveStrings() {\r\n \r\n settings.setProperty(\"mfile\" , mfile);\r\n settings.setProperty( \"rmode\", rmode);\r\n settings.setProperty( \"cmap\" , cmap );\r\n settings.setProperty(\"cmapMin\", Double.toString( cmapMin ) ); \r\n settings.setProperty(\"cmapMax\", Double.toString( cmapMax ) ); \r\n \r\n }", "private void storeUser(User user){\n // instantiate SharedPreferences\n SharedPreferences.Editor editor = mSharedPreferences.edit();\n // stores each attribute in a variable, if attribute is null the editor will clear the corresponding value.\n editor.putString(KEY_USER, user.toJSONString());\n // commit changes\n editor.apply();\n }", "public void shareData(){\n SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(this);\n //now get Editor\n SharedPreferences.Editor editor = sharedPref.edit();\n //put your value\n editor.putInt(\"score3\", points);\n\n //commits your edits\n editor.commit();\n }", "private void saveRecipeOnPrefs(Recipe recipe) {\n Gson gson = new Gson();\n String recipeString = gson.toJson(recipe);\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(getActivity());\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(KEY_CURRENT_RECIPE, recipeString);\n editor.apply();\n }", "private void storePotList(){\n String tempName;\n int tempWeight;\n SharedPreferences preferences = getSharedPreferences(SHAREDPREF_SET, MODE_PRIVATE);\n SharedPreferences.Editor editor = preferences.edit();\n int sizeOfPotList = potList.countPots();\n editor.putInt(SHAREDPREF_ITEM_POTLIST_SIZE, sizeOfPotList);\n for(int i = 0; i < potList.countPots();i++){\n tempWeight = (potList.getPot(i).getWeightInG());\n tempName = (potList.getPot(i).getName());\n editor.putString(SHAREDPREF_ITEM_POTLIST_NAME+i, tempName);\n editor.putInt(SHAREDPREF_ITEM_POTLIST_WEIGHT+i, tempWeight);\n }\n editor.commit();\n }", "public static void save(String s, boolean flag){\n SharedPreferences prefs = cont.getSharedPreferences(\"PAFF_SETTINGS\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putBoolean(s,flag);\n editor.commit();\n }", "public void putStrings(HashMap<String,String> mHashMap){\n\n SharedPreferences.Editor editor = mSharedPreferences.edit();\n\n for(Map.Entry m: mHashMap.entrySet()){\n\n editor.putString(m.getKey().toString(), m.getValue().toString());\n }\n\n editor.apply();\n }" ]
[ "0.73519784", "0.6941806", "0.68372524", "0.67689985", "0.67305076", "0.6725065", "0.6693246", "0.6680408", "0.6670797", "0.66475856", "0.6634242", "0.6617079", "0.6612803", "0.66115165", "0.65997267", "0.6579554", "0.6579135", "0.6551984", "0.6550892", "0.65357924", "0.6535272", "0.65289253", "0.6457052", "0.64370126", "0.64214706", "0.6376459", "0.6367228", "0.63510567", "0.63402534", "0.63040376", "0.63026255", "0.6284249", "0.62481785", "0.6237424", "0.6231517", "0.6223819", "0.62191004", "0.6207923", "0.6206901", "0.6187043", "0.6185041", "0.6178739", "0.61780995", "0.6177871", "0.6169314", "0.61530507", "0.6145073", "0.61368364", "0.61341816", "0.6115116", "0.61138475", "0.61038727", "0.6075049", "0.6074017", "0.60596144", "0.60596144", "0.60551167", "0.605258", "0.60387576", "0.60128003", "0.60065496", "0.6001859", "0.59965163", "0.5989376", "0.5985048", "0.5978968", "0.596349", "0.5958011", "0.5953713", "0.592637", "0.5925726", "0.5925459", "0.5925164", "0.5923179", "0.59165", "0.59098834", "0.59020656", "0.58944255", "0.58939976", "0.58914447", "0.5887757", "0.5886679", "0.587693", "0.58627886", "0.5861456", "0.5850222", "0.583916", "0.5816818", "0.5816335", "0.5814259", "0.58087766", "0.58048123", "0.58042514", "0.57990676", "0.5798192", "0.57976216", "0.57928795", "0.5776745", "0.5771325", "0.5757772" ]
0.6513336
22
Store boolean values in Preferences
public static void savePreferences(Context context, String strKey, Boolean blnValue) { try { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context); SharedPreferences.Editor editor = sharedPreferences.edit(); editor.putBoolean(strKey, blnValue); editor.commit(); } catch (Exception e) { e.toString(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void saveBoolean(String key, boolean value) {\n SharedPreferences.Editor prefs = mSharedPreferences.edit();\n prefs.putBoolean(key, value);\n prefs.commit();\n }", "public synchronized boolean storeBoolean(String key, boolean value) {\n mEditor = mSharedPreferences.edit();\n mEditor.putBoolean(key, value);\n\n return mEditor.commit();\n }", "public void putBooleanValue(String key, boolean value){\n SharedPreferences sharedPreference = context.getSharedPreferences(LOGIN,Context.MODE_PRIVATE);\n SharedPreferences.Editor editor=sharedPreference.edit();\n editor.putBoolean(key,value);\n editor.apply();\n }", "public void putBoolean(String key, boolean value){\n\n SharedPreferences.Editor editor = mSharedPreferences.edit();\n\n editor.putBoolean(key, value);\n\n editor.apply();\n }", "public static void savePreference(SharedPreferences prefs, String key, Boolean value) {\n Editor e = prefs.edit();\n e.putBoolean(key, value);\n e.commit();\n }", "public void writeBooleanPrefs(String prefName, boolean prefValue) {\n editor = sPrefs.edit();\n editor.putBoolean(prefName, prefValue);\n editor.apply();\n }", "private void savePrefsData() {\n SharedPreferences pref = getApplicationContext().getSharedPreferences(\"myPrefs\", MODE_PRIVATE);\n SharedPreferences.Editor editor = pref.edit();\n editor.putBoolean(\"isIntroOpnend\", true);\n editor.commit();\n }", "public static void setPrefBooleanData(Context context, String key, boolean value) {\n SharedPreferences appInstallInfoSharedPref = context.\n getSharedPreferences(APP_CONFIG_PREF, Context.MODE_PRIVATE);\n SharedPreferences.Editor appInstallInfoEditor = appInstallInfoSharedPref.edit();\n appInstallInfoEditor.putBoolean(key, value);\n appInstallInfoEditor.apply();\n }", "public void saveAllNot() {\n SharedPreferences sharedPreferences = getSharedPreferences(SHARED_PREFS, MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putBoolean(SW_ALLNOT, allNotifications.isChecked());\n editor.commit();\n }", "public static boolean writePreferences(final Context context,\n\t\t\tfinal String key, final Boolean value) {\n\t\tboolean result = false;\n\t\tfinal SharedPreferences sharedPreferences = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(context);\n\t\tfinal Editor editor = sharedPreferences.edit();\n\t\tif (editor != null) {\n\t\t\teditor.putBoolean(key, value);\n\t\t\teditor.commit();\n\t\t\tresult = true;\n\t\t}\n\t\treturn result;\n\t}", "private void getPreferences() {\n\n if(sharedpreferences.getBoolean(\"usaGPU\", true)) {\n mUtilizzoGPU.setChecked(true);\n }\n else{\n mUtilizzoGPU.setChecked(false);\n }\n\n }", "private void saveSharedPref() {\n SharedPreferences.Editor editor = this.sharedPreferences.edit();\n if (checkBox.isChecked()) {\n editor.putBoolean(Constants.SP_IS_REMEMBERED_KEY, true);\n }\n editor.apply();\n }", "public static boolean writePreferences(final Context context,\n\t\t\tfinal String key, final boolean value) {\n\t\tboolean result = false;\n\t\tfinal SharedPreferences sharedPreferences = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(context);\n\t\tfinal Editor editor = sharedPreferences.edit();\n\t\tif (editor != null) {\n\t\t\teditor.putBoolean(key, value);\n\t\t\teditor.commit();\n\t\t\tresult = true;\n\t\t}\n\t\treturn result;\n\t}", "public void savingPreferences()\n {\n SharedPreferences sharedPreferences = getSharedPreferences(preferenceSaveInfo,MODE_PRIVATE);\n\n\n //tao doi tuong editer\n SharedPreferences.Editor editor = sharedPreferences.edit();\n String user = txtUserName.getText().toString();\n String pass = txtPassWord.getText().toString();\n\n boolean bchk = chkSave.isChecked();\n\n\n if(!bchk)\n {\n //xoa du lieu luu truoc do\n editor.clear();\n }\n else\n {\n editor.putString(\"user\",user);\n editor.putString(\"pass\",pass);\n editor.putBoolean(\"checked\",bchk);\n }\n\n editor.commit();\n\n\n }", "private void setPreferences(String sw, boolean checked) {\n SharedPreferences sp = getActivity().getSharedPreferences(SETTINGS, Context.MODE_PRIVATE );\n SharedPreferences.Editor editor = sp.edit();\n editor.putBoolean(sw,checked);\n editor.apply();\n\n }", "public static void save(String s, boolean flag){\n SharedPreferences prefs = cont.getSharedPreferences(\"PAFF_SETTINGS\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putBoolean(s,flag);\n editor.commit();\n }", "void setBoolean(String key, boolean val);", "public void putBooleanData(String key, Boolean value) {\n editor.putBoolean(key, value);\n editor.apply();\n }", "public void setisTripSaving(boolean value) {\n\t\tsharedPreferences = context.getSharedPreferences(\"TRIP\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\tSharedPreferences.Editor editor = sharedPreferences.edit();\n\t\teditor.putBoolean(\"isTripSaving\", value);\n\t\teditor.commit();\n\t}", "public static void setBool(String aKey, boolean aValue) {\n getSharedPreferences().edit().putBoolean(aKey, aValue).apply();\n }", "public static void writeBoolean(Context context, String fileName, String key, boolean value) {\n if (context == null)\n return;\n SharedPreferences sharedPreferences = context.getSharedPreferences(fileName, Context.MODE_PRIVATE);\n Editor editor = sharedPreferences.edit();\n editor.putBoolean(key, value);\n editor.apply();\n }", "private void saveValues() {\n for (Map.Entry<EditText, Integer> e : mPrefKeys.entrySet()) {\n // If the field is disabled, add the DEACTIVATED marker to the value of the field\n if (e.getKey().isEnabled())\n Pref.put(this, e.getValue(), e.getKey().getText().toString());\n else\n Pref.put(this, e.getValue(), Data.DEACTIVATED_MARKER + e.getKey().getText().toString());\n }\n\n }", "private void saveOption() {\n SharedPreferences filterSetting = getSharedPreferences(\"filterSetting\",0);\n SharedPreferences.Editor editor = filterSetting.edit();\n editor.putBoolean(\"myMostRecent\",myMostRecentWeekCheckbox.isChecked());\n editor.putBoolean(\"myDisplayAll\",myDisplayAllCheckbox.isChecked());\n editor.putBoolean(\"foMostRecent\",foMostRecentWeekCheckbox.isChecked());\n editor.putBoolean(\"foDisplayAll\",foDisplayAllCheckbox.isChecked());\n editor.putString(\"myReason\",myReasonEditText.getText().toString());\n editor.putString(\"foReason\",foReasonEditText.getText().toString());\n editor.putInt(\"mySpinner\",myEmotionalStateSpinner.getSelectedItemPosition());\n editor.putInt(\"foSpinner\",foEmotionalStateSpinner.getSelectedItemPosition());\n\n editor.commit();\n }", "synchronized public static void putBoolean(Context context, String key, boolean value, boolean commit) {\r\n\t\tensurePreferencesEditor(context);\r\n\t\tsPreferencesEditor.putBoolean(key, value);\r\n\t\tif (commit) {\r\n\t\t\tsPreferencesEditor.commit();\r\n\t\t}\r\n\t\tif (sInstance != null) {\r\n\t\t\tsInstance.mSettings.put(key, value);\r\n\t\t}\r\n\t}", "public void setSAVETRIP(boolean value) {\n\t\tsharedPreferences = context.getSharedPreferences(\"TRIP\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\tSharedPreferences.Editor editor = sharedPreferences.edit();\n\t\teditor.putBoolean(\"SAVETRIP\", value);\n\t\teditor.commit();\n\t}", "private void loadPreferences() {\n SharedPreferences sp = getActivity().getSharedPreferences(SETTINGS, Context.MODE_PRIVATE );\n boolean lm = sp.getBoolean(getString(R.string.live_match), true);\n boolean ls = sp.getBoolean(getString(R.string.live_score), true);\n\n if(lm) live_match.setChecked(true);\n else live_match.setChecked(false);\n\n if(ls) live_score.setChecked(true);\n else live_score.setChecked(false);\n }", "private void saveBoolean(String paramString, boolean paramBoolean) {\n }", "public static void SetPreferByBoolean(Context context, String key,\n\t\t\tboolean value) {\n\t\tSharedPreferences mPrefer = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(context);\n\t\tEditor editor = mPrefer.edit();\n\t\teditor.putBoolean(key, value);\n\t\teditor.commit();\n\t}", "public void savePreferences(SharedPreferences preferences){\r\n\t\tSharedPreferences.Editor editor = preferences.edit();\r\n editor.putBoolean(\"initialSetupped\", initialSetuped);\r\n editor.putString(\"username\", userName);\r\n editor.putString(\"useremail\", userEmail);\r\n editor.putString(\"recipientemail\", recipientEmail);\r\n editor.putBoolean(\"option\", option.isPound());\r\n\r\n // Commit the edits!\r\n editor.commit();\r\n\t}", "void setBoolean(boolean value);", "protected void changePreferences(CheckBox preference, CheckBox[] preferenceButtons) {\n SharedPreferences preferences = getApplicationContext().getSharedPreferences(\"Preferences\", Context.MODE_PRIVATE);\n Editor prefEdit = preferences.edit();\n if (preference.isChecked()) {\n prefEdit.putBoolean(String.valueOf(preference.getId()), true).apply();\n } else {\n prefEdit.putBoolean(String.valueOf(preference.getId()), false).apply();\n }\n\n for (CheckBox preferenceButton : preferenceButtons) {\n if (preferences.getBoolean(String.valueOf(preferenceButton.getId()), false))\n return;\n }\n prefEdit.putBoolean(String.valueOf(preferenceButtons[1].getId()), true).apply();\n checkBoxIfInPreference(preferenceButtons[1]);\n }", "void set(boolean value);", "com.google.protobuf.BoolValue getPersistent();", "public void setisBackgroundTrip(boolean value) {\n\t\tsharedPreferences = context.getSharedPreferences(\"TripCheckBox\",\n\t\t\t\tcontext.MODE_WORLD_WRITEABLE);\n\t\tSharedPreferences.Editor editor = sharedPreferences.edit();\n\t\teditor.putBoolean(\"isbackgroundtrip\", value);\n\t\teditor.commit();\n\t}", "public AppPreferences set(@NonNull String name, boolean value) {\n SharedPreferences prefs = context.getSharedPreferences(filename, Context.MODE_PRIVATE);\n SharedPreferences.Editor prefsEditor = prefs.edit();\n prefsEditor.putBoolean(name, value);\n prefsEditor.apply(); // or commit();\n return this;\n }", "public void save() {\n if(persistenceType == PropertyPersistenceType.Persistent) {\n if (!isSetToDefault()) {\n permanentStore.setBoolean(key, get());\n } else {\n permanentStore.remove(key);\n }\n }\n }", "public void checkDefaults(){\n \t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(Options.this);\n \t\tboolean defaultOn = prefs.getBoolean(\"checkbox_default\", true);\n \t\t//Toast.makeText(this, \"Default: \" + defaultOn, Toast.LENGTH_SHORT).show();\n \t\tif(defaultOn){\n \t\t\t//Code Here\n \t\t\ttry{\n \t\t\t\tPreferenceCategory aCategory = (PreferenceCategory)findPreference(\"category_appearance\");\n \t\t\t\tPreferenceScreen tScreen = (PreferenceScreen)findPreference(\"pref_screen_transactions\");\n \t\t\t\tPreferenceScreen aScreen = (PreferenceScreen)findPreference(\"pref_screen_accounts\");\n \t\t\t\taCategory.setSelectable(false);\n \t\t\t\taCategory.setEnabled(false);\n \t\t\t\ttScreen.setEnabled(false);\n \t\t\t\ttScreen.setSelectable(false);\n \t\t\t\taScreen.setEnabled(false);\n \t\t\t\taScreen.setSelectable(false);\n \t\t\t}\n \t\t\tcatch(Exception e){\n \t\t\t\tToast.makeText(Options.this, \"ERROR PREFERENCES\\n\" + e.toString(), Toast.LENGTH_LONG).show();\n \t\t\t}\n \t\t}\n \t\telse{\n \t\t\t//Code Here\n \t\t\ttry{\n \t\t\t\tPreferenceCategory aCategory = (PreferenceCategory)findPreference(\"category_appearance\");\n \t\t\t\tPreferenceScreen tScreen = (PreferenceScreen)findPreference(\"pref_screen_transactions\");\n \t\t\t\tPreferenceScreen aScreen = (PreferenceScreen)findPreference(\"pref_screen_accounts\");\n \t\t\t\taCategory.setSelectable(true);\n \t\t\t\taCategory.setEnabled(true);\n \t\t\t\ttScreen.setEnabled(true);\n \t\t\t\ttScreen.setSelectable(true);\n \t\t\t\taScreen.setEnabled(true);\n \t\t\t\taScreen.setSelectable(true);\n \t\t\t}\n \t\t\tcatch(Exception e){\n \t\t\t\tToast.makeText(Options.this, \"ERROR PREFERENCES\\n\" + e.toString(), Toast.LENGTH_LONG).show();\n \t\t\t}\n \t\t}\n \n \t}", "public static void setSetting(Context context, String key, boolean value) {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sp.edit();\n editor.putBoolean(key, value);\n editor.commit();\n\n }", "public static void putBoolean(Context context, String key, boolean value) {\n getPreferenceEditor(getSharePreferences(context)).putBoolean(key, value).apply();\n }", "void writeBool(boolean value);", "public void setTutorial(boolean checked){\n\n SharedPreferences.Editor editor = mSharedPreferences.edit();\n editor.putBoolean(\"TUTORIAL_CHECKED\", checked);\n editor.commit();\n }", "public void set_isTripDone(boolean value) {\n\t\tsharedPreferences = context.getSharedPreferences(\"Login\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\tSharedPreferences.Editor editor = sharedPreferences.edit();\n\t\teditor.putBoolean(\"isTripDone\", value);\n\t\teditor.commit();\n\t}", "io.dstore.values.BooleanValue getPredefinedValues();", "public void saveOption(View v) {\n CheckBox radioLocal = (CheckBox) rootView.findViewById(R.id.radioLocal);\n CheckBox autoLogin = (CheckBox) rootView.findViewById(R.id.radioLogin);\n SharedPreferences prefs = getActivity().getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putBoolean(\"recipeLocal\", radioLocal.isChecked());\n editor.putBoolean(\"autoLogin\", autoLogin.isChecked());\n if(radioLocal.isChecked()){\n ParseUser currentUser = ParseUser.getCurrentUser();\n ParseQuery<ParseObject> query = ParseQuery.getQuery(\"Recipe\");\n query.whereEqualTo(\"creatorId\", currentUser.getObjectId());\n try {\n List<ParseObject> objects = query.find();\n ParseObject.pinAllInBackground(objects);\n } catch (com.parse.ParseException e) {\n e.printStackTrace();\n }\n } else {\n //Unpin\n }\n editor.apply();\n Toast.makeText(getActivity(), \"Options saved\", Toast.LENGTH_LONG).show();\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n // Load the preferences from an XML resource\n addPreferencesFromResource(R.xml.preferences);\n\n wifi = (CheckBoxPreference) findPreference(KEY_PREF_UPLOAD_WIFI);\n wifiData = (CheckBoxPreference) findPreference(KEY_PREF_UPLOAD_WIFI_DATA);\n data = (CheckBoxPreference) findPreference(KEY_PREF_UPLOAD_DATA);\n\n wifi.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() {\n @Override\n public boolean onPreferenceChange(Preference preference, Object newVal) {\n final boolean value = (Boolean) newVal;\n if(value) {\n wifiData.setChecked(false);\n data.setChecked(false);\n wifi.setChecked(true);\n }\n return true;\n }\n });\n\n wifiData.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() {\n @Override\n public boolean onPreferenceChange(Preference preference, Object newVal) {\n final boolean value = (Boolean) newVal;\n if(value) {\n wifi.setChecked(false);\n data.setChecked(false);\n wifiData.setChecked(true);\n }\n return true;\n }\n });\n\n data.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() {\n @Override\n public boolean onPreferenceChange(Preference preference, Object newVal) {\n final boolean value = (Boolean) newVal;\n if(value) {\n wifiData.setChecked(false);\n wifi.setChecked(false);\n data.setChecked(true);\n }\n return true;\n }\n });\n\n Preference button = findPreference(KEY_PREF_UPDATE);\n button.setSummary(getString(R.string.current_version) + \" \" + ApplicationController.VERSION);\n\n button.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {\n @Override\n public boolean onPreferenceClick(Preference preference) {\n UpdateController.getInstance(getActivity()).checkVersion();\n return true;\n }\n });\n }", "boolean getBoolValue();", "boolean getBoolValue();", "public void setBoton() {\n SharedPreferences preferences = getSharedPreferences(STRING_PREFERENCES,MODE_PRIVATE);\n preferences.edit().putBoolean(PREFERENCE_ESTADO_BUTTON_SESION,checkBox.isChecked()).apply();\n\n }", "private void saveSharedPrefs(String a, boolean b) {\n SharedPreferences.Editor editor = sp.edit();\n if (b) editor.putString(\"searchField\", a);\n else editor.putString(\"ingredientsField\", a);\n editor.commit();\n }", "public void setPreference() {\n prefs = Preferences.userRoot().node(this.getClass().getName());\n String ID1 = \"Test1\";\n String ID2 = \"Test2\";\n String ID3 = \"Test3\";\n// First we will get the values\n// Define a boolean value\n System.out.println(prefs.getBoolean(ID1, true));\n// Define a string with default \"Hello World\n System.out.println(prefs.get(ID2, \"Hello World\"));\n// Define a integer with default 50\n System.out.println(prefs.getInt(ID3, 50));\n// Now set the values\n prefs.putBoolean(ID1, false);\n prefs.put(ID2, \"Hello Europa\");\n prefs.putInt(ID3, 45);\n\t\t\n prefs.remove(ID1);// Delete the preference settings for the first value\n }", "public void putBoolean(String key, boolean value) {\n String valueAsString = value ? TRUE_AS_STRING : FALSE_AS_STRING;\n\n put(key, valueAsString);\n }", "public static void setBooleanValue(\n final String prefFile, final String key, final boolean value) {\n final SharedPreferences sharedPref = getSharedPreferences(prefFile);\n final SharedPreferences.Editor editor = sharedPref.edit();\n editor.putBoolean(key, value);\n editor.apply();\n }", "@Override\n protected void onResume() {\n super.onResume();\n SharedPreferences preferences = getSharedPreferences(luuthongtin, MODE_PRIVATE);\n String username = preferences.getString(\"UserName\", \"\");\n String password = preferences.getString(\"PassWord\", \"\");\n Boolean save = preferences.getBoolean(\"Save\",false);\n if(save)\n {\n edtUserName.setText(username);\n edtPassword.setText(password);\n checkBox.setChecked(save);\n }\n }", "private void saveSettings() {\n \tLog.i(\"T4Y-Settings\", \"Save mobile settings\");\n \t\n \tmobileSettings.setAllowAutoSynchronization(autoSynchronizationCheckBox.isChecked());\n mobileSettings.setAllowAutoScan(autoScanCheckBox.isChecked());\n mobileSettings.setAllowAutoSMSNotification(autoSMSNotificationCheckBox.isChecked());\n \n \tmainApplication.setMobileSettings(mobileSettings);\n }", "public void setProcessed (boolean Processed)\n{\nset_Value (\"Processed\", new Boolean(Processed));\n}", "@Override\n public boolean getBoolean(String key, boolean defaultVal) {\n return mSharedPreferences.getBoolean(key, defaultVal);\n }", "public void save () {\n preference.putBoolean(\"sound effect\", hasSoundOn);\n preference.putBoolean(\"background music\", hasMusicOn);\n preference.putFloat(\"sound volume\", soundVolume);\n preference.putFloat(\"music volume\", musicVolume);\n preference.flush(); //this is called to write the changed data into the file\n }", "private BooleanValueProvider() {\n this.state = true;\n }", "public void setTallied(java.lang.Boolean value);", "public PropertyBoolean(String uid, String value) {\n super(uid, value);\n setFixedValues(new HashSet<Boolean>(Arrays.asList(Boolean.TRUE, Boolean.FALSE)));\n }", "public void restoringPreferences()\n {\n SharedPreferences sharedPreferences = getSharedPreferences(preferenceSaveInfo,MODE_PRIVATE);\n\n //lay gia tri checkbook, k co mac dinh la false\n boolean bchk = sharedPreferences.getBoolean(\"checked\",false);\n if(bchk)\n {\n //lay user, pass, neu k co mac dinh gia tri la rong\n String user = sharedPreferences.getString(\"user\",\"\");\n String pass = sharedPreferences.getString(\"pass\",\"\");\n txtUserName.setText(\"user\");\n txtPassWord.setText(\"pass\");\n }\n\n chkSave.setChecked(bchk);\n }", "public Boolean getBooleanData(String key) {\n return pref.getBoolean(key, Boolean.FALSE);\n }", "public BooleanValue(boolean bool) {\r\n this.val = bool;\r\n }", "public void putBoolean(ResourceLocation name, boolean value) {\n data.putBoolean(name.toString(), value);\n }", "void setManualCheck (boolean value);", "public static Boolean getPrefBooleanData(Context context, String key) {\n try {\n SharedPreferences pref = context.getSharedPreferences(APP_CONFIG_PREF, Context.MODE_PRIVATE);\n return pref.getBoolean(key, false);\n } catch (Exception e) {\n e.printStackTrace();\n }\n return false;\n }", "private static boolean loadSharedPreferencesFromFile(File src) {\n\t\tboolean res = false;\n\t\tObjectInputStream input = null;\n\t\ttry {\n\t\t\tinput = new ObjectInputStream(new FileInputStream(src));\n\t\t\tEditor prefEdit = PreferenceManager.getDefaultSharedPreferences(mContext).edit();\n\t\t\tprefEdit.clear();\n\t\t\t// first object is preferences\n\t\t\tMap<String, ?> entries = (Map<String, ?>) input.readObject();\n\t\t\t\t\n\t\t\tfor (Entry<String, ?> entry : entries.entrySet()) {\n\t\t\t\tObject v = entry.getValue();\n\t\t\t\tString key = entry.getKey();\n\t\n\t\t\t\tif (v instanceof Boolean)\n\t\t\t\t\tprefEdit.putBoolean(key, ((Boolean) v).booleanValue());\n\t\t\t\telse if (v instanceof Float)\n\t\t\t\t\tprefEdit.putFloat(key, ((Float) v).floatValue());\n\t\t\t\telse if (v instanceof Integer)\n\t\t\t\t\tprefEdit.putInt(key, ((Integer) v).intValue());\n\t\t\t\telse if (v instanceof Long)\n\t\t\t\t\tprefEdit.putLong(key, ((Long) v).longValue());\n\t\t\t\telse if (v instanceof String)\n\t\t\t\t\tprefEdit.putString(key, ((String) v));\n\t\t\t}\n\t\t\tprefEdit.commit();\n\t\n\t\t\t// second object is admin options\n\t\t\tEditor adminEdit = mContext.getSharedPreferences(AdminPreferencesActivity.ADMIN_PREFERENCES, 0).edit();\n\t\t\tadminEdit.clear();\n\t\t\t// first object is preferences\n\t\t\tMap<String, ?> adminEntries = (Map<String, ?>) input.readObject();\n\t\t\tfor (Entry<String, ?> entry : adminEntries.entrySet()) {\n\t\t\t\tObject v = entry.getValue();\n\t\t\t\tString key = entry.getKey();\n\t\n\t\t\t\tif (v instanceof Boolean)\n\t\t\t\t\tadminEdit.putBoolean(key, ((Boolean) v).booleanValue());\n\t\t\t\telse if (v instanceof Float)\n\t\t\t\t\tadminEdit.putFloat(key, ((Float) v).floatValue());\n\t\t\t\telse if (v instanceof Integer)\n\t\t\t\t\tadminEdit.putInt(key, ((Integer) v).intValue());\n\t\t\t\telse if (v instanceof Long)\n\t\t\t\t\tadminEdit.putLong(key, ((Long) v).longValue());\n\t\t\t\telse if (v instanceof String)\n\t\t\t\t\tadminEdit.putString(key, ((String) v));\n\t\t\t}\n\t\t\tadminEdit.commit();\n\t\n\t\t\tLog.i(t, \"Loaded hashmap settings into preferences\");\n\t\t\tres = true;\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (input != null) {\n\t\t\t\t\tinput.close();\n\t\t\t\t}\n\t\t\t} catch (IOException ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}", "public static void setPreference(String key, boolean value) {\n editor = sharedPreferences.edit();\n\n editor.putBoolean(key, value);\n editor.apply();\n }", "public void setBooleanValue(String booleanValue) { this.booleanValue = booleanValue; }", "private void checkPreferences() {\n final Editor editor = AppUtils.getInstance().pPrefs.edit();\n boolean changed = false;\n if (AppUtils.getInstance().pPrefs.getString(Api.PREF_MODE, \"\").length() == 0) {\n editor.putString(Api.PREF_MODE, Api.MODE_WHITELIST);\n changed = true;\n }\n if (changed)\n editor.commit();\n }", "public static boolean getBoolForKey(String key)\n\t{\n\t\treturn PreferencesModel.instance().getUserBoolPref(key, false);\n\t}", "public interface PreferencesHelper {\n\n boolean getNoImageState();\n\n void setNoImageState(boolean state);\n\n}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tString ac = accoun.getText().toString();\n\t\t\t\tString ps = pasd.getText().toString();\n\t\t\t\teditor = pref.edit();\n\t\t\t\tif(check.isChecked()){\n\t\t\t\t\teditor.putBoolean(\"ischeck\", true);\n\t\t\t\t\teditor.putString(\"account\", ac);\n\t\t\t\t\teditor.putString(\"password\", ps);\n\t\t\t\t}else{\n\t\t\t\t\teditor.clear();\n\t\t\t\t}\n\t\t\t\teditor.commit();\n\t\t\t}", "public BooleanPhenotype() {\n dataValues = new ArrayList<Boolean>();\n }", "@Override\n public Parcelable onSaveInstanceState() {\n Parcelable superState = super.onSaveInstanceState();\n SavedState ss = new SavedState(superState);\n \n ss.checked = isChecked();\n return ss;\n }", "public static void set(String key, boolean val) {\n Editor e = prefs.edit();\n e.putBoolean(key, val);\n e.commit();\n }", "public void savingVariablesWebConfig(){\n SharedPreferences prefs = getSharedPreferences(Constants.PREFERENCES_NAME, Context.MODE_PRIVATE);\n //Save data of user in preferences\n SharedPreferences.Editor editor = prefs.edit();\n\n editor.putString(Constants.PREF_VALUE_MAX_ORDERS_ACCEPTED, \"3\");\n editor.putString(Constants.PREF_VALUE_MAX_ORDERS_VISIBLE, \"10\");\n editor.putString(Constants.PREF_VALUE_MAX_TIME_ORDERS, \"15\");\n editor.commit();\n }", "io.dstore.values.BooleanValueOrBuilder getPredefinedValuesOrBuilder();", "public void setUserLogStatus(boolean bValue){\n /*SharedPreferences sharedPreferences = _context.getSharedPreferences(APP_PREFERENCES, PRIVATE_MODE);\n SharedPreferences.Editor editor;\n editor = sharedPreferences.edit();*/\n editor.putBoolean(IS_LOGGED_IN, bValue);\n editor.apply();\n }", "private void getPrefStatus() {\n Log.i(TAG, \"getPrefStatus()\");\n mPref = getSharedPreferences(PREF_NAME, Context.MODE_WORLD_READABLE\n | Context.MODE_WORLD_WRITEABLE);\n mHasGotPref = true;\n for (int i = SPEED_DIAL_MIN; i < SPEED_DIAL_MAX + 1; ++i) {\n mPrefNumState[i] = mPref.getString(String.valueOf(i), \"\");\n mPrefMarkState[i] = mPref.getInt(String.valueOf(offset(i)), -1);\n }\n }", "public String prefsAutomaticallyCheck();", "@Override\n public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {\n if (key.equals(getString(R.string.pref_show_distance_key))) {\n boolean isChecked = sharedPreferences.getBoolean(getString(R.string.pref_show_distance_key),\n Boolean.parseBoolean(getString(R.string.pref_show_distance_default)));\n storeOnlyShowLocationDataInDatabase(isChecked);\n }\n }", "public boolean readBooleanPrefs(String prefName) {\n return sPrefs.getBoolean(prefName, false);\n }", "private ArrayList<Boolean> createBoolArrayList(String notificationPreferences){\n String[] genres = getResources().getStringArray(R.array.genre);\n ArrayList<Boolean> isCheckedArray = new ArrayList<>();\n String[] arrayNotificationPref = notificationPreferences.split(\",\");\n\n for (int i = 0; i < genres.length; i++){\n isCheckedArray.add(false);\n for (String curNotification: arrayNotificationPref) {\n if (genres[i].equals(curNotification)){\n isCheckedArray.set(i,true);\n }\n }\n }\n\n return isCheckedArray;\n }", "@Override\n\t\t\tpublic void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\t\t\tif (isChecked)\n\t\t\t\t{\n\t\t\t\t\tsilent.setChecked(false);\n\t\t\t\t\tmPrefsEditor.putBoolean(\"silent\", false);\n\t\t\t\t\tmPrefsEditor.apply();\n\t\t\t\t\tmPrefsEditor.putBoolean(\"vibration\", true);\n\t\t\t\t\tmPrefsEditor.apply();\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"Vibration Mode\", Toast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tsilent.setChecked(true);\n\t\t\t\t\tmPrefsEditor.putBoolean(\"silent\", true);\n\t\t\t\t\tmPrefsEditor.apply();\n\t\t\t\t\tmPrefsEditor.putBoolean(\"vibration\", false);\n\t\t\t\t\tmPrefsEditor.apply();\t\t\t\t\t\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"Silent Mode\", Toast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "public void setTripStrated(boolean value) {\n\t\tLog.i(TAG, \"*************************************\");\n\t\tLog.i(TAG, \"Setting trip status to \" + value);\n\t\tLog.i(TAG, \"*************************************\");\n\n\t\tsharedPreferences = context.getSharedPreferences(\"TRIP\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\tSharedPreferences.Editor editor = sharedPreferences.edit();\n\t\teditor.putBoolean(\"isTripStarted\", value);\n\t\teditor.commit();\n\t}", "public BooleanStateValue( boolean value, boolean isImmortal) {\n\t\tsuper( isImmortal);\n\t\t_storage = value;\n\t}", "@Override\n public void storeSettings() {\n\n // Set the default value:\n Globals.prefs.put(JabRefPreferences.DEFAULT_BIBTEX_KEY_PATTERN, defaultPat.getText());\n Globals.prefs.putBoolean(JabRefPreferences.WARN_BEFORE_OVERWRITING_KEY, warnBeforeOverwriting.isSelected());\n Globals.prefs.putBoolean(JabRefPreferences.AVOID_OVERWRITING_KEY, dontOverwrite.isSelected());\n\n Globals.prefs.put(JabRefPreferences.KEY_PATTERN_REGEX, keyPatternRegex.getText());\n Globals.prefs.put(JabRefPreferences.KEY_PATTERN_REPLACEMENT, keyPatternReplacement.getText());\n Globals.prefs.putBoolean(JabRefPreferences.GENERATE_KEYS_AFTER_INSPECTION, autoGenerateOnImport.isSelected());\n Globals.prefs.putBoolean(JabRefPreferences.GENERATE_KEYS_BEFORE_SAVING, generateOnSave.isSelected());\n\n if (alwaysAddLetter.isSelected()) {\n Globals.prefs.putBoolean(JabRefPreferences.KEY_GEN_ALWAYS_ADD_LETTER, true);\n } else if (letterStartA.isSelected()) {\n Globals.prefs.putBoolean(JabRefPreferences.KEY_GEN_FIRST_LETTER_A, true);\n Globals.prefs.putBoolean(JabRefPreferences.KEY_GEN_ALWAYS_ADD_LETTER, false);\n }\n else {\n Globals.prefs.putBoolean(JabRefPreferences.KEY_GEN_FIRST_LETTER_A, false);\n Globals.prefs.putBoolean(JabRefPreferences.KEY_GEN_ALWAYS_ADD_LETTER, false);\n }\n\n // fetch entries from GUI\n GlobalBibtexKeyPattern keypatterns = getKeyPatternAsGlobalBibtexKeyPattern();\n // store new patterns globally\n prefs.putKeyPattern(keypatterns);\n }", "public void setIsLogin(boolean value) {\n\t\tsharedPreferences = context.getSharedPreferences(\"Login\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\tSharedPreferences.Editor editor = sharedPreferences.edit();\n\t\teditor.putBoolean(\"isLogin\", value);\n\t\teditor.commit();\n\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (bt_gravity.isChecked()) {\r\n\t\t\t\t\tgravityFlag = true;\r\n\t\t\t\t\tpreferences = getSharedPreferences(\"ZKY\", Context.MODE_PRIVATE);\r\n\t\t\t\t\tEditor editor = preferences.edit();\r\n\t\t\t\t\teditor.putBoolean(\"gravityFlag\", gravityFlag);\r\n\t\t\t\t\teditor.commit();\r\n\t\t\t\t\tToast.makeText(SetActivity.this, \"重力 开\", Toast.LENGTH_SHORT)\r\n\t\t\t\t\t\t\t.show();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tgravityFlag = false;\r\n\t\t\t\t\tpreferences = getSharedPreferences(\"ZKY\", Context.MODE_PRIVATE);\r\n\t\t\t\t\tEditor editor = preferences.edit();\r\n\t\t\t\t\teditor.putBoolean(\"gravityFlag\", gravityFlag);\r\n\t\t\t\t\teditor.commit();\r\n\t\t\t\t\tToast.makeText(SetActivity.this, \"重力 关\",\r\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (bt_music.isChecked()) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tmusicFlag = true;\r\n\t\t\t\t\tpreferences = getSharedPreferences(\"ZKY\", Context.MODE_PRIVATE);\r\n\t\t\t\t\tEditor editor = preferences.edit();\r\n\t\t\t\t\teditor.putBoolean(\"musicFlag\", musicFlag);\r\n\t\t\t\t\teditor.commit();\r\n\t\t\t\t\tToast.makeText(SetActivity.this, \"音乐 开\", Toast.LENGTH_SHORT)\r\n\t\t\t\t\t\t\t.show();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmusicFlag = false;\r\n\t\t\t\t\tpreferences = getSharedPreferences(\"ZKY\", Context.MODE_PRIVATE);\r\n\t\t\t\t\tEditor editor = preferences.edit();\r\n\t\t\t\t\teditor.putBoolean(\"musicFlag\", musicFlag);\r\n\t\t\t\t\teditor.commit();\r\n\t\t\t\t\tToast.makeText(SetActivity.this, \"音乐 关\",\r\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\t}\r\n\t\t\t}", "@Test\n public void testIsDeselectPluginsOnExecuteEnabled() {\n System.out.println(\"isDeselectPluginsOnExecuteEnabled\");\n final String preferenceKey = \"deselectPluginsOnExecute\";\n\n // Verify preference does not exist and also returns the correct default of false\n assertEquals(preferences.getBoolean(preferenceKey, false), false);\n assertEquals(DataAccessPreferenceUtilities.isDeselectPluginsOnExecuteEnabled(), false);\n assertEquals(preferences.getBoolean(preferenceKey, false), false);\n\n // verify preference is set correctly\n preferences.putBoolean(preferenceKey, true);\n assertEquals(preferences.getBoolean(preferenceKey, false), true);\n\n // Verify method call returns correct value\n assertEquals(DataAccessPreferenceUtilities.isDeselectPluginsOnExecuteEnabled(), true);\n\n // put in a false value to check toggling, recheck\n preferences.putBoolean(preferenceKey, false);\n assertEquals(preferences.getBoolean(preferenceKey, false), false);\n assertEquals(DataAccessPreferenceUtilities.isDeselectPluginsOnExecuteEnabled(), false);\n assertEquals(preferences.getBoolean(preferenceKey, false), false);\n\n // Verify method call returns correct value\n assertEquals(DataAccessPreferenceUtilities.isDeselectPluginsOnExecuteEnabled(), false);\n\n }", "public BooleanStateValue( boolean value, long duration) {\n\t\tsuper( duration);\n\t\t_storage = value;\n\t}", "@Override\n public void saveValue(String key, Object value) {\n SharedPreferences.Editor editor = preferences.edit();\n if (value instanceof String) {\n editor.putString(key, (String) value);\n } else if (value instanceof Boolean) {\n editor.putBoolean(key, (Boolean) value);\n } else if (value instanceof Integer) {\n editor.putInt(key, (Integer) value);\n } else if (value instanceof Float) {\n editor.putFloat(key, (Float) value);\n } else if (value instanceof Long) {\n editor.putLong(key, (Long) value);\n }\n editor.apply();\n }", "@Override\n\t\t\tpublic void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\t\t\tif (isChecked)\n\t\t\t\t{\n\t\t\t\t\tselect.setChecked(false);\n\t\t\t\t\tmPrefsEditor.putBoolean(\"silent\", true);\n\t\t\t\t\tmPrefsEditor.apply();\n\t\t\t\t\tmPrefsEditor.putBoolean(\"vibration\", false);\n\t\t\t\t\tmPrefsEditor.apply();\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"Silent Mode\", Toast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tselect.setChecked(true);\n\t\t\t\t\tmPrefsEditor.putBoolean(\"silent\", false);\n\t\t\t\t\tmPrefsEditor.apply();\n\t\t\t\t\tmPrefsEditor.putBoolean(\"vibration\", true);\n\t\t\t\t\tmPrefsEditor.apply();\t\t\t\t\t\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"Vibration Mode\", Toast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "@Override\r\n public void onCreate(Bundle savedInstanceState) { \t\r\n super.onCreate(savedInstanceState);\r\n setContentView(R.layout.settings); \r\n String oldtitle = (String) getTitle();\r\n setTitle(oldtitle + \" > Settings\");\r\n \r\n //Load the settings\r\n SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);\r\n String liveid = settings.getString(\"liveusername\", \"\");\r\n String password = settings.getString(\"livepassword\", \"\");\r\n String saved_livedownloaddp = settings.getString(\"livedownloaddp\", \"\");\r\n String saved_liveignorestockdp = settings.getString(\"liveignorestockdp\", \"\");\r\n\r\n \teLiveID = ((TextView)findViewById(R.id.editLiveID));\r\n \teLiveID.setText(liveid); \t\r\n \tePassword = ((TextView)findViewById(R.id.editPassword));\r\n \tePassword.setText(password); \r\n \t\r\n \tliveremember = ((CheckBox)findViewById(R.id.checkRememberlive));\r\n \th_livedownloaddp = ((CheckBox)findViewById(R.id.checkDownloadDP));\r\n \th_liveignorestockdp = ((CheckBox)findViewById(R.id.checkIgnoreStockDP));\r\n \t\r\n \tif(liveid.length() > 0 || password.length() > 0)\r\n \t\tliveremember.setChecked(true);\r\n \t\r\n \tif(saved_livedownloaddp.equals(\"true\")) {\r\n \t\th_livedownloaddp.setChecked(true);\r\n \t}\r\n\r\n \tif(saved_liveignorestockdp.equals(\"true\")) {\r\n \t\th_liveignorestockdp.setChecked(true);\r\n \t}\r\n \t\r\n \tButton btnSave = (Button)findViewById(R.id.btnSave);\r\n btnSave.setOnClickListener(btnSaveOnClick);\r\n \r\n Button btnCancel = (Button)findViewById(R.id.btnDiscard);\r\n btnCancel.setOnClickListener(btnCancelOnClick);\r\n }", "public void setUserPreferences (int outdoorPref, int nightlifePref, int hotelPref, int shoppingPref, int restaurantPref) {\n\t\tpreferences.clear(); \n\t\tpreferences.add(outdoorPref); \n\t\tpreferences.add(nightlifePref); \n\t\tpreferences.add(hotelPref); \n\t\tpreferences.add(shoppingPref); \n\t\tpreferences.add(restaurantPref); \n\t}", "private void savePreferences(){\n SharedPreferences prefs = getPreferences(MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n\n editor.putInt(\"p1Count\", pOneCounter);\n editor.putInt(\"p2Count\", pTwoCounter);\n editor.putInt(\"pAICount\", pAICounter);\n editor.putInt(\"tieCount\", tieCounter);\n\n editor.commit();\n }", "public void onStore(boolean b);", "public BooleanValue(boolean value) {\r\n\t\tthis.value = value;\r\n\t}" ]
[ "0.7567162", "0.7223836", "0.7143805", "0.71180266", "0.69394076", "0.69202876", "0.6892068", "0.68662506", "0.6857343", "0.6850078", "0.68377054", "0.68163085", "0.6784017", "0.6744435", "0.67308784", "0.67033416", "0.6597377", "0.65770674", "0.6545892", "0.65293366", "0.6524703", "0.6522278", "0.65134734", "0.6494641", "0.6485354", "0.648517", "0.6440778", "0.6391352", "0.6352794", "0.6316692", "0.625263", "0.624406", "0.6221078", "0.6191841", "0.618869", "0.61854833", "0.61794204", "0.61626196", "0.6156198", "0.61340886", "0.6132482", "0.6132235", "0.6112429", "0.6107323", "0.610665", "0.60941344", "0.60941344", "0.60931164", "0.6086319", "0.60672605", "0.6049023", "0.604478", "0.6042816", "0.60280764", "0.6013371", "0.6012389", "0.6010593", "0.59931725", "0.5991909", "0.5967575", "0.59637046", "0.5962966", "0.59621024", "0.59620595", "0.5909749", "0.5908801", "0.58896875", "0.58872354", "0.58706313", "0.5864368", "0.5862597", "0.58589405", "0.58496577", "0.58358985", "0.5821136", "0.58108824", "0.57990813", "0.57984895", "0.57950807", "0.5784566", "0.577542", "0.5775412", "0.5769171", "0.5762022", "0.5760649", "0.57520187", "0.5747249", "0.5746154", "0.57442987", "0.5729651", "0.57294995", "0.5723648", "0.5705518", "0.57023937", "0.5693686", "0.5687335", "0.56866443", "0.5681461", "0.567879", "0.56723976" ]
0.6899249
6
Store integer values in Preferences
public static void savePreferences(Context context, String strKey, int intValue) { try { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context); SharedPreferences.Editor editor = sharedPreferences.edit(); editor.putInt(strKey, intValue); editor.commit(); } catch (Exception e) { e.toString(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void saveInt(String key, int value) {\n SharedPreferences.Editor prefs = mSharedPreferences.edit();\n prefs.putInt(key, value);\n prefs.commit();\n }", "private void savePreferences(){\n SharedPreferences prefs = getPreferences(MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n\n editor.putInt(\"p1Count\", pOneCounter);\n editor.putInt(\"p2Count\", pTwoCounter);\n editor.putInt(\"pAICount\", pAICounter);\n editor.putInt(\"tieCount\", tieCounter);\n\n editor.commit();\n }", "public void writeToSharedPreference(int value){\n SharedPreferences sharedPreferences = getActivity().getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putInt(\"NUMBER OF ITEMS\",value);\n editor.commit();\n\n }", "public void setInt(String key, int value){\r\n SharedPreferences sp = getActivity().getSharedPreferences(\"your_prefs\", Activity.MODE_PRIVATE);\r\n SharedPreferences.Editor editor = sp.edit();\r\n editor.putInt(key, value); // key, string\r\n editor.apply();\r\n }", "public void writeEncounterNumPreferences(long encounterNum){\n mSharedPreference = mContext.getSharedPreferences(mContext.getString(\n R.string.sharedpreferencesFileName),Context.MODE_PRIVATE);\n SharedPreferences.Editor editor=mSharedPreference.edit();\n editor.putLong(mContext.getString(R.string.encounter),encounterNum);\n editor.commit();\n}", "private void saveState() {\n SharedPreferences prefs = getPreferences(MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n\n // Store our count..\n editor.putInt(\"count\", this._tally);\n\n // Save changes\n editor.commit();\n }", "public static void saveIncInt(Context context) {\n prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", context.MODE_PRIVATE);\n prefs.edit().putInt(saveInc, SaveInc).commit();\n\n }", "public static void addSaveCounter3(Context context) {\n prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", context.MODE_PRIVATE);\n SaveCounter3 = prefs.getInt(saveCounter3, 0);\n SaveCounter3 = SaveCounter3 + SaveInc;\n prefs.edit().putInt(saveCounter3, SaveCounter3).commit();\n\n }", "public void writeIntPrefs(String prefName, int prefValue) {\n editor = sPrefs.edit();\n editor.putInt(prefName, prefValue);\n editor.apply();\n }", "public static void addSaveCounter6(Context context) {\n prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", context.MODE_PRIVATE);\n SaveCounter6 = prefs.getInt(saveCounter6, 0);\n SaveCounter6 = SaveCounter6 + SaveInc;\n prefs.edit().putInt(saveCounter6, SaveCounter6).commit();\n\n }", "@Override\n public void onPause() {\n SharedPreferences.Editor editor = savedValues.edit();\n editor.putInt(\"num1\", num1);\n editor.putInt(\"num2\", num2);\n editor.commit();\n\n super.onPause();\n }", "public void shareData(){\n SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(this);\n //now get Editor\n SharedPreferences.Editor editor = sharedPref.edit();\n //put your value\n editor.putInt(\"score3\", points);\n\n //commits your edits\n editor.commit();\n }", "public static void addSaveCounter1(Context context) {\n prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", context.MODE_PRIVATE);\n SaveCounter1 = prefs.getInt(saveCounter1, 0);\n SaveCounter1 = SaveCounter1 + SaveInc;\n prefs.edit().putInt(saveCounter1, SaveCounter1).commit();\n\n }", "public static void addSaveCounter4(Context context) {\n prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", context.MODE_PRIVATE);\n SaveCounter4 = prefs.getInt(saveCounter4, 0);\n SaveCounter4 = SaveCounter4 + SaveInc;\n prefs.edit().putInt(saveCounter4, SaveCounter4).commit();\n\n }", "public void putIntegerData(String key, Integer value) {\n editor.putInt(key, value);\n editor.apply();\n }", "public void setlatercounter() {\n\t\tmPref.edit().putInt(PREF_CONVERTED, 7).commit();\r\n\t}", "private void savePreferences() {\n SharedPreferences sp = getSharedPreferences(MY_PREFS, MODE_PRIVATE);\n SharedPreferences.Editor editor = sp.edit();\n\n editor.putInt(\"entreeIndex\", spEntree.getSelectedItemPosition());\n editor.putInt(\"drinkIndex\", spDrink.getSelectedItemPosition());\n editor.putInt(\"dessertIndex\", spDessert.getSelectedItemPosition());\n\n editor.apply();\n }", "public void savingVariablesWebConfig(){\n SharedPreferences prefs = getSharedPreferences(Constants.PREFERENCES_NAME, Context.MODE_PRIVATE);\n //Save data of user in preferences\n SharedPreferences.Editor editor = prefs.edit();\n\n editor.putString(Constants.PREF_VALUE_MAX_ORDERS_ACCEPTED, \"3\");\n editor.putString(Constants.PREF_VALUE_MAX_ORDERS_VISIBLE, \"10\");\n editor.putString(Constants.PREF_VALUE_MAX_TIME_ORDERS, \"15\");\n editor.commit();\n }", "public static void SaveCounter1(Context context) {\n prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", context.MODE_PRIVATE);\n prefs.edit().putInt(saveCounter1, SaveCounter1).commit();\n\n }", "public static void SaveCounter6(Context context) {\n prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", context.MODE_PRIVATE);\n prefs.edit().putInt(saveCounter6, SaveCounter6).commit();\n\n }", "private void saveValues() {\n for (Map.Entry<EditText, Integer> e : mPrefKeys.entrySet()) {\n // If the field is disabled, add the DEACTIVATED marker to the value of the field\n if (e.getKey().isEnabled())\n Pref.put(this, e.getValue(), e.getKey().getText().toString());\n else\n Pref.put(this, e.getValue(), Data.DEACTIVATED_MARKER + e.getKey().getText().toString());\n }\n\n }", "public static void SaveCounter3(Context context) {\n prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", context.MODE_PRIVATE);\n prefs.edit().putInt(saveCounter3, SaveCounter3).commit();\n\n }", "public static void SaveCounter4(Context context) {\n prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", context.MODE_PRIVATE);\n prefs.edit().putInt(saveCounter4, SaveCounter4).commit();\n\n }", "public static void addSaveCounter5(Context context) {\n prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", context.MODE_PRIVATE);\n SaveCounter5 = prefs.getInt(saveCounter5, 0);\n SaveCounter5 = SaveCounter5 + SaveInc;\n prefs.edit().putInt(saveCounter5, SaveCounter5).commit();\n\n }", "public void storeScore(Integer score) {\n SharedPreferences startscore = this.getSharedPreferences(\"qScore\", Context.MODE_PRIVATE);\n int firstscore = startscore.getInt(\"qScore\", 0);\n\n //Henter antall besvareler\n SharedPreferences answers = this.getSharedPreferences(\"qAnswer\", Context.MODE_PRIVATE);\n int answerAmount = answers.getInt(\"qAnswer\", 0);\n\n //Lagrer tidligere score + nye score samt antall besvarelser som kan hentes på alle activities med riktig key (qScore eller qAnswer)\n SharedPreferences prefs = this.getSharedPreferences(\"qScore\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putInt(\"qScore\", (firstscore + score));\n editor.commit();\n\n SharedPreferences prefsX = this.getSharedPreferences(\"qAnswer\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editorX = prefsX.edit();\n editorX.putInt(\"qAnswer\",(answerAmount + 1));\n editorX.commit();\n }", "public static void SetPreferByInt(Context context, String key, int value) {\n\t\tSharedPreferences mPrefer = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(context);\n\t\tEditor editor = mPrefer.edit();\n\t\teditor.putInt(key, value);\n\t\teditor.commit();\n\t}", "public void storeIntegerVar(int index, int value) {\n\t\tstorage[index] = value;\n\t}", "public void setRecord3(int value){\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this.getContext());\n SharedPreferences.Editor editor = prefs.edit(); editor.putInt(\"record3\", value);\n editor.commit();\n }", "public static void addSaveCounter2(Context context) {\n prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", context.MODE_PRIVATE);\n SaveCounter2 = prefs.getInt(saveCounter2, 0);\n SaveCounter2 = SaveCounter2 + SaveInc;\n prefs.edit().putInt(saveCounter2, SaveCounter2).commit();\n\n }", "private void restorePreferences(){\n SharedPreferences prefs = getPreferences(MODE_PRIVATE);\n\n pOneCounter = prefs.getInt(\"p1Count\",0);\n pTwoCounter = prefs.getInt(\"p2Count\",0);\n pAICounter = prefs.getInt(\"pAICount\",0);\n tieCounter = prefs.getInt(\"tieCount\",0);\n\n }", "public void save() {\n SharedPreferences settings = activity.getSharedPreferences(\"Preferences\", 0);\n SharedPreferences.Editor editor = settings.edit();\n editor.putLong(\"bestDistance\", values.bestDistance);\n\n // Commit the edits!\n editor.commit();\n\n }", "synchronized public static void putInt(Context context, String key, int value, boolean commit) {\r\n\t\tensurePreferencesEditor(context);\r\n\t\tsPreferencesEditor.putInt(key, value);\r\n\t\tif (commit) {\r\n\t\t\tsPreferencesEditor.commit();\r\n\t\t}\r\n\t\tif (sInstance != null) {\r\n\t\t\tsInstance.mSettings.put(key, value);\r\n\t\t}\r\n\t}", "public void saveDataInt(String clave, int valor){\r\n editor.putInt(clave, valor);\r\n editor.commit();\r\n }", "public void saveSettings(View v) {\n SharedPreferences sharedPref = this.getPreferences(Context.MODE_PRIVATE); // get shared preferences\n SharedPreferences.Editor editor = sharedPref.edit();\n int seconds_rec = Integer.parseInt(time_recording.getText().toString());\n int notif_occ = Integer.parseInt(time_occurance.getText().toString());\n\n editor.putInt(getString(R.string.time_recording_seconds), seconds_rec); // save values to a sp\n editor.putInt(getString(R.string.time_notification_minutes), notif_occ);\n editor.commit(); // commit the differences\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }", "public static void SaveCounter5(Context context) {\n prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", context.MODE_PRIVATE);\n prefs.edit().putInt(saveCounter5, SaveCounter5).commit();\n\n }", "public void setRecord2(int value){\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this.getContext());\n SharedPreferences.Editor editor = prefs.edit(); editor.putInt(\"record2\", value);\n editor.commit();\n }", "public void setRecord(int value){\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this.getContext());\n SharedPreferences.Editor editor = prefs.edit(); editor.putInt(\"record\", value);\n editor.commit();\n }", "public void setPreference() {\n prefs = Preferences.userRoot().node(this.getClass().getName());\n String ID1 = \"Test1\";\n String ID2 = \"Test2\";\n String ID3 = \"Test3\";\n// First we will get the values\n// Define a boolean value\n System.out.println(prefs.getBoolean(ID1, true));\n// Define a string with default \"Hello World\n System.out.println(prefs.get(ID2, \"Hello World\"));\n// Define a integer with default 50\n System.out.println(prefs.getInt(ID3, 50));\n// Now set the values\n prefs.putBoolean(ID1, false);\n prefs.put(ID2, \"Hello Europa\");\n prefs.putInt(ID3, 45);\n\t\t\n prefs.remove(ID1);// Delete the preference settings for the first value\n }", "private void saveData() {\n\n SharedPreferences sharedPreferences=getSharedPreferences(\"userInfo\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor=sharedPreferences.edit();\n\n editor.putString(\"name\",name.getText().toString());\n editor.putString(\"regnum\",regnum.getText().toString());\n editor.putInt(\"count\", count);\n editor.apply();\n\n }", "public static void SaveCounter2(Context context) {\n prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", context.MODE_PRIVATE);\n prefs.edit().putInt(saveCounter2, SaveCounter2).commit();\n\n }", "public static void setInt(String aKey, int aValue) {\n getSharedPreferences().edit().putInt(aKey, aValue).apply();\n }", "private void savePrefsData() {\n SharedPreferences pref = getApplicationContext().getSharedPreferences(\"myPrefs\", MODE_PRIVATE);\n SharedPreferences.Editor editor = pref.edit();\n editor.putBoolean(\"isIntroOpnend\", true);\n editor.commit();\n }", "private void loadPreferences() {\n SharedPreferences sp = getSharedPreferences(MY_PREFS, MODE_PRIVATE);\n\n int entreeIndex = sp.getInt(\"entreeIndex\", 0);\n int drinkIndex = sp.getInt(\"drinkIndex\", 0);\n int dessertIndex = sp.getInt(\"dessertIndex\", 0);\n\n // Setting inputs from SharedPreferences\n spEntree.setSelection(entreeIndex);\n spDrink.setSelection(drinkIndex);\n spDessert.setSelection(dessertIndex);\n\n edtTxtEntreePrice.setText(alEntreePrices.get(entreeIndex));\n edtTxtDrinkPrice.setText(alDrinkPrices.get(drinkIndex));\n edtTxtDessertPrice.setText(alDessertPrices.get(dessertIndex));\n }", "void addGameScoreToMainScore(){\n sharedPreferences= PreferenceManager.getDefaultSharedPreferences(this);\n editor=sharedPreferences.edit();\n int score=sharedPreferences.getInt(\"gameScore\",0);\n score=score+userCoins;\n editor.putInt(\"gameScore\",score);\n editor.commit();\n\n }", "public void save(View view) {\n if (!editText.getText().toString().matches(\"\")) { //editText'e herhangi bir değer girilmişse\n int userAge = Integer.parseInt(editText.getText().toString()); //yazılan değer userAge şeklinde bir değişkene alınır.\n textView.setText(\"Your age: \" + userAge); //Yazılan değer alttaki textView'a yazdırılır.\n sharedPreferences.edit().putInt(\"storedAge\", userAge).apply(); //Yazdırılan değer saklanan SharedPreference'ta da değiştirilerek güncellenir.\n }\n }", "@Override\n public void saveValue(String key, Object value) {\n SharedPreferences.Editor editor = preferences.edit();\n if (value instanceof String) {\n editor.putString(key, (String) value);\n } else if (value instanceof Boolean) {\n editor.putBoolean(key, (Boolean) value);\n } else if (value instanceof Integer) {\n editor.putInt(key, (Integer) value);\n } else if (value instanceof Float) {\n editor.putFloat(key, (Float) value);\n } else if (value instanceof Long) {\n editor.putLong(key, (Long) value);\n }\n editor.apply();\n }", "public void setActive(String key, int value){\r\n SharedPreferences sp = this.getActivity().getSharedPreferences(\"your_prefs\", Activity.MODE_PRIVATE);\r\n SharedPreferences.Editor editor = sp.edit();\r\n editor.putInt(key, value); // key, string\r\n editor.apply();\r\n }", "private void changePreferences (String prefItem, String prefValue){\n SharedPreferences.Editor prefEditor = sharedPreferences.edit();\n //store the cards array and append the deck id\n prefEditor.putString(prefItem, prefValue);\n prefEditor.apply();\n }", "public static void setPuzzleId(Integer value, Context context) {\n SharedPreferences prefs = context.getSharedPreferences(PREF, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putString(\"PuzzleId\", String.valueOf(value));\n editor.commit();\n }", "public void setUserPreferences (int outdoorPref, int nightlifePref, int hotelPref, int shoppingPref, int restaurantPref) {\n\t\tpreferences.clear(); \n\t\tpreferences.add(outdoorPref); \n\t\tpreferences.add(nightlifePref); \n\t\tpreferences.add(hotelPref); \n\t\tpreferences.add(shoppingPref); \n\t\tpreferences.add(restaurantPref); \n\t}", "private void LoadSavedPreferences() {\n\t\tString value;\n\t\tSharedPreferences sharedPreferences = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(this);\n\t\t// tab 3 ************************************************\n\t\tvalue = sharedPreferences.getString(\"tempSzad\", \"22\");\n\t\tettempSzad_.setText(value);\n\t\tvalue = sharedPreferences.getString(\"tempPmaxdop\", \"70\");\n\t\tettempPmaxdop_.setText(value);\n\t\tvalue = sharedPreferences.getString(\"tempZmaxdop\", \"22\");\n\t\tettempZmaxdop_.setText(value);\n\t\tvalue = sharedPreferences.getString(\"tempPumpaON\", \"50\");\n\t\tettempPumpaON_.setText(value);\n\n\t\t// tab 1 ************************************************\n\t\tvalue = sharedPreferences.getString(\"tv1\", \"20.20\");\n\t\ttvS1.setText(value);\n\t\tvalue = sharedPreferences.getString(\"tv2\", \"44.22\");\n\t\ttvS2.setText(value);\n\t\tvalue = sharedPreferences.getString(\"tv3\", \"19.22\");\n\t\ttvS3.setText(value);\n\t}", "private void storePotList(){\n String tempName;\n int tempWeight;\n SharedPreferences preferences = getSharedPreferences(SHAREDPREF_SET, MODE_PRIVATE);\n SharedPreferences.Editor editor = preferences.edit();\n int sizeOfPotList = potList.countPots();\n editor.putInt(SHAREDPREF_ITEM_POTLIST_SIZE, sizeOfPotList);\n for(int i = 0; i < potList.countPots();i++){\n tempWeight = (potList.getPot(i).getWeightInG());\n tempName = (potList.getPot(i).getName());\n editor.putString(SHAREDPREF_ITEM_POTLIST_NAME+i, tempName);\n editor.putInt(SHAREDPREF_ITEM_POTLIST_WEIGHT+i, tempWeight);\n }\n editor.commit();\n }", "public void save() {\n savePrefs();\n }", "public void store() throws BackingStoreException {\n\t\tString timeText = time.getText();\n\t\tpreference.setDuration(timeText.isEmpty() ? 0 : Long.valueOf(time.getText()));\n\t\tpreference.setFails(fail.getSelection());\n\t\tpreference.store();\n\t}", "public static boolean writePreferences(final Context context,\n\t\t\tfinal String key, final Integer value) {\n\t\tboolean result = false;\n\t\tfinal SharedPreferences sharedPreferences = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(context);\n\t\tfinal Editor editor = sharedPreferences.edit();\n\t\tif (editor != null) {\n\t\t\teditor.putInt(key, value);\n\t\t\teditor.commit();\n\t\t\tresult = true;\n\t\t}\n\t\treturn result;\n\t}", "public static void setSetting(Context context, String key, long value) {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sp.edit();\n editor.putLong(key, value);\n editor.commit();\n }", "synchronized public static void putLong(Context context, String key, long value, boolean commit) {\r\n\t\tensurePreferencesEditor(context);\r\n\t\tsPreferencesEditor.putLong(key, value);\r\n\t\tif (commit) {\r\n\t\t\tsPreferencesEditor.commit();\r\n\t\t}\r\n\t\tif (sInstance != null) {\r\n\t\t\tsInstance.mSettings.put(key, value);\r\n\t\t}\r\n\t}", "private void saveCurrentPreferences() {\n\t\toldUnitType = preferences.getInt(\"displayUnit\", UnitType.FOOTINCH.getId());\n\t\toldPrecision = preferences.getInt(\"precision\", 16);\n\t\toldRounding = preferences.getBoolean(\"roundUp\", true);\n\t\toldDisplayOptions = preferences.getString(\"displayOptions\", context.getString(R.string.displayAutomatic));\n\t}", "private void writePref() {\n SharedPreferences.Editor editor = sp.edit();\n long currentTime = System.currentTimeMillis();\n editor.putLong(UPDATE, currentTime);\n editor.commit();\n System.out.println(\"Time of current update: \" + getDateFromLong(currentTime));\n }", "public void writeLongPrefs(String prefName, long prefValue) {\n editor = sPrefs.edit();\n editor.putLong(prefName, prefValue);\n editor.apply();\n }", "@Override\n public void onClick(DialogInterface dialog, int id) {\n Iterator ite = mSelectedItems.listIterator();\n while(ite.hasNext()) {\n\n int pref_int = ((Integer )(ite.next())).intValue();\n switch (pref_int){\n case 0 :\n editor.putString(getString(R.string.pref_1), getString(R.string.pref_1));\n Log.i(\"info\", \"Preference 1\");\n break;\n case 1 :\n editor.putString(getString(R.string.pref_2), getString(R.string.pref_2));\n Log.i(\"info\", \"Preference 2\");\n break;\n case 2 :\n editor.putString(getString(R.string.pref_3), getString(R.string.pref_3));\n Log.i(\"info\", \"Preference 3\");\n break;\n\n }\n }\n editor.commit();\n }", "void setInt(String key, int val);", "public static void setIntValue(final String prefFile, final String key, final int value) {\n final SharedPreferences sharedPref = getSharedPreferences(prefFile);\n final SharedPreferences.Editor editor = sharedPref.edit();\n editor.putInt(key, value);\n editor.apply();\n }", "public static void resetSaveCounter3(Context context) {\n prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", context.MODE_PRIVATE);\n SaveCounter3 = prefs.getInt(saveCounter3, 0);\n SaveCounter3=0;\n prefs.edit().putInt(saveCounter3, SaveCounter3).commit();\n\n }", "@Override\n public void onPositive(MaterialDialog materialDialog) {\n sharedPrefs.edit()\n .remove(pref.key)\n .putString(pref.key, \"\" + values[numberPicker.getValue()])\n .apply();\n pref.pref.setSummary(values[numberPicker.getValue()]);\n materialDialog.dismiss();\n }", "public void increasecounter() {\n\t\tmPref.edit().putInt(PREF_CONVERTED, counter + 1).commit();\r\n\t}", "protected void doStore()\n\t{\n\t\tText text = getTextControl();\n\t\tif ( text != null )\n\t\t{\n\t\t\tDouble d = new Double( text.getText() );\n\t\t\tgetPreferenceStore().setValue( getPreferenceName(), d.doubleValue() );\n\t\t}\n\t}", "public static void storeID(long l, Context cont)\n\t{\n\t\tSharedPreferences.Editor editor = cont.getSharedPreferences(\"StatPump\", 0).edit();\n\t\teditor.putLong(\"Use ID\", l);\n\t\teditor.commit();\n\t}", "void savePreferences() throws OntimizeJEERuntimeException;", "public void save () {\n preference.putBoolean(\"sound effect\", hasSoundOn);\n preference.putBoolean(\"background music\", hasMusicOn);\n preference.putFloat(\"sound volume\", soundVolume);\n preference.putFloat(\"music volume\", musicVolume);\n preference.flush(); //this is called to write the changed data into the file\n }", "private void setupSharedPreferences() {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n\n String aaString = sharedPreferences.getString(getString(R.string.pref_antalAktier_key), getString(R.string.pref_antalAktier_default));\n// float aaFloat = Float.parseFloat(aaString);\n editTextAntalAktier.setText(aaString);\n\n String kk = sharedPreferences.getString(getString(R.string.pref_koebskurs_key), getString(R.string.pref_koebskurs__default));\n editTextKoebskurs.setText(kk);\n\n String k = sharedPreferences.getString(getString(R.string.pref_kurtage_key), getString(R.string.pref_kurtage_default));\n editTextKurtage.setText(k);\n\n// float minSize = Float.parseFloat(sharedPreferences.getString(getString(R.string.pref_size_key),\n// getString(R.string.pref_size_default)));\n// mVisualizerView.setMinSizeScale(minSize);\n\n // Register the listener\n sharedPreferences.registerOnSharedPreferenceChangeListener(this);\n }", "public void Save(){\n\t SharedPreferences prefs = getActivity().getSharedPreferences(MainActivity.SHARED_PREFS_FILE, Context.MODE_PRIVATE);\n\t Editor editor = prefs.edit();\n\t try {\n\t editor.putString(MainActivity.STOCK_LIST_TAG, ObjectSerializer.serialize(list));\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t editor.putFloat(\"balance\", (float) balance);\n\t editor.commit();\n\t}", "public static void resetSaveCounter1(Context context) {\n prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", context.MODE_PRIVATE);\n SaveCounter1 = prefs.getInt(saveCounter1, 0);\n SaveCounter1=0;\n prefs.edit().putInt(saveCounter1, SaveCounter1).commit();\n\n }", "private void bytteAntallOppgaver(int antallOpg){\n SharedPreferences.Editor editor = deltePreferanser.edit();\n editor.putInt(\"AntallOppgaver\", antallOpg);\n editor.commit();\n }", "public static void setPreference(String key, long value) {\n editor = sharedPreferences.edit();\n\n editor.putLong(key, value);\n editor.apply();\n }", "public void setValue(int value);", "public void save() {\n\t\tpreferences().flush();\n\t}", "public static void set(String key, int val) {\n Editor e = prefs.edit();\n e.putInt(key, val);\n e.commit();\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.alarm12);\n\n anglelimitshared = getSharedPreferences(\"Mydata\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = anglelimitshared.edit();\n temp = anglelimitshared.getInt(\"angle_limit\", 0);\n text = (TextView) findViewById(R.id.disp_text);\n text.setText(String.valueOf(temp));\n\n\n }", "public static void setPreference(String key, int value) {\n editor = sharedPreferences.edit();\n\n editor.putInt(key, value);\n editor.apply();\n }", "public static void resetSaveCounter6(Context context) {\n prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", context.MODE_PRIVATE);\n SaveCounter6 = prefs.getInt(saveCounter6, 0);\n SaveCounter6=0;\n prefs.edit().putInt(saveCounter6, SaveCounter6).commit();\n\n }", "protected void SavePreferences(String key, String value) {\n SharedPreferences data = PreferenceManager.getDefaultSharedPreferences(this);\n SharedPreferences.Editor editor = data.edit();\n editor.putString(key, value);\n editor.commit();\n\n\n }", "public static void resetSaveCounter4(Context context) {\n prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", context.MODE_PRIVATE);\n SaveCounter4 = prefs.getInt(saveCounter4, 0);\n SaveCounter4=0;\n prefs.edit().putInt(saveCounter4, SaveCounter4).commit();\n\n }", "public void saveSettings(View view){\n SharedPreferences.Editor editor = settings.edit();\n\n // Write the values from the views to the editor\n editor.putInt(\"vocablesNumber\",Integer.parseInt(vocablesNumber.getSelectedItem().toString()));\n editor.putBoolean(\"screenOn\", screenOnSwitch.isChecked());\n editor.putFloat(\"delayBetweenVocables\",Float.valueOf(editTextDelay.getText().toString()));\n // Commit the edits\n editor.commit();\n\n // Send the user a message of success\n Toast.makeText(Settings.this,\"Settings saved!\",Toast.LENGTH_SHORT).show();\n // Go back to previous activity\n finish();\n }", "public int getDataint(String clave, int valor){\r\n return sharedPreferences.getInt(clave, valor);\r\n }", "int getTelecommutePreferenceValue();", "private void registerPrefsListener() {\n if (userSharedPreferences == null) {\n userSharedPreferences = Util.getUserSharedPreferences();\n }\n userPreferenceChangeListener = new SharedPreferences.OnSharedPreferenceChangeListener() {\n @Override\n public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {\n switch (key) {\n case HPIApp.Prefs.SHARED_KEY_TOTAL_STEPS:\n int steps = sharedPreferences.getInt(HPIApp.Prefs.SHARED_KEY_TOTAL_STEPS, 0);\n txtViewStepsCountToday.setText(String.valueOf(steps));\n break;\n case HPIApp.Prefs.SHARED_KEY_MILESTONES_TODAY:\n int milestones = sharedPreferences.getInt(HPIApp.Prefs.SHARED_KEY_MILESTONES_TODAY, 0);\n txtViewMilestonesCountToday.setText(String.valueOf(milestones));\n case HPIApp.Prefs.SHARED_KEY_RUN_SERVICE:\n boolean runService = sharedPreferences.getBoolean(HPIApp.Prefs.SHARED_KEY_RUN_SERVICE, false);\n if (runService) {\n HPIApp.getAppContext().startService(new Intent(HPIApp.getAppContext(), StepService.class));\n } else {\n HPIApp.getAppContext().stopService(new Intent(HPIApp.getAppContext(), StepService.class));\n }\n default:\n break;\n }\n }\n };\n\n userSharedPreferences.registerOnSharedPreferenceChangeListener(userPreferenceChangeListener);\n }", "protected void makePref(){\n //Creates a shared pref called MyPref and 0-> MODE_PRIVATE\n sharedPref = getSharedPreferences(AppCSTR.PREF_NAME, Context.MODE_PRIVATE);\n //so the pref can be edit\n edit = sharedPref.edit();\n}", "public Integer getIntegerData(String key) {\n return pref.getInt(key, 0);\n }", "public void storeDataForCashePrefrenceArray(SharedPreferences spinnerPrefs, Set<String> arrayOFSpinnersValue){//for new version\n SharedPreferences.Editor prefsEditor = spinnerPrefs.edit();\n prefsEditor.putStringSet(\"inputspinner_prefrance_set_for_cashe\",arrayOFSpinnersValue);\n prefsEditor.commit();\n }", "public void setpremiumcounter() {\n\t\tmPref.edit().putInt(PREF_CONVERTED, -1).commit();\r\n\t}", "void setValue(int value);", "public void update_storage( ) {\n SharedPreferences sp_file = getPreferences(Context.MODE_PRIVATE); //make shared preferences object\n SharedPreferences.Editor editor = sp_file.edit(); //make editor object\n editor.putInt(\"alarm_set\", alarm_set);\n editor.apply();\n }", "public static void resetSaveCounter2(Context context) {\n prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", context.MODE_PRIVATE);\n SaveCounter2 = prefs.getInt(saveCounter2, 0);\n SaveCounter2=0;\n prefs.edit().putInt(saveCounter2, SaveCounter2).commit();\n\n }", "public void save() {\n settingService.saveMaxScore(score);\r\n// powerUpCount = 0;\r\n// powerDownCount = 0;\r\n// purplePowerCount = 0;\r\n// yellowMadnessCount = 0;\r\n// shapeCount = 0;\r\n }", "public void setInteger(int value);", "@Override\n protected boolean persistString(String value) {\n return persistInt(Integer.parseInt(value));\n }", "public AppPreferences set(@NonNull String name, long value) {\n SharedPreferences prefs = context.getSharedPreferences(filename, Context.MODE_PRIVATE);\n SharedPreferences.Editor prefsEditor = prefs.edit();\n prefsEditor.putLong(name, value);\n prefsEditor.apply(); // or commit();\n return this;\n }", "private void storeBadgeCount(String ABadgeCountStr)\n {\n PreferenceUtil.instance(getApplicationContext()).putBadgeCount(ABadgeCountStr);\n //PreferenceUtil.instance(getApplicationContext()).putAppVersion(appVersion);\n }", "private void setPreferences(Preferences preferences) {\n this.preferences = preferences;\n }" ]
[ "0.7347175", "0.7076637", "0.6781647", "0.6756546", "0.6601641", "0.6597628", "0.65372616", "0.649871", "0.6458011", "0.6418588", "0.63842815", "0.6379206", "0.6372447", "0.63592243", "0.63269156", "0.6304456", "0.6287214", "0.62642545", "0.62526757", "0.62391984", "0.62358546", "0.62239426", "0.61923397", "0.6163955", "0.6156826", "0.61552316", "0.61445564", "0.6111378", "0.61027056", "0.60853165", "0.60847414", "0.60795516", "0.6030577", "0.6030304", "0.6030009", "0.6008955", "0.60040814", "0.592536", "0.5902324", "0.5898418", "0.5841799", "0.5841148", "0.5835026", "0.58303666", "0.58201385", "0.57913166", "0.57635564", "0.57602364", "0.5758131", "0.57445824", "0.5729159", "0.56920105", "0.56892866", "0.5669502", "0.566261", "0.5651167", "0.5640358", "0.56352276", "0.56243783", "0.5618456", "0.56123316", "0.56077516", "0.5605103", "0.560264", "0.56012696", "0.55829346", "0.55794793", "0.55678344", "0.5564778", "0.5543595", "0.5527905", "0.55155677", "0.5513687", "0.5495008", "0.549475", "0.54924893", "0.5486914", "0.5484175", "0.54821664", "0.5469428", "0.5462018", "0.5457529", "0.54450834", "0.5437393", "0.5430569", "0.54305184", "0.5427343", "0.54271406", "0.5418128", "0.5416157", "0.54148674", "0.5413335", "0.5410024", "0.540629", "0.54032874", "0.53935224", "0.5389288", "0.5388146", "0.53838813", "0.5383464" ]
0.6595628
6
TODO Autogenerated method stub
public static void main(String[] args) { BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in)); Pets pet1 = new Pets(null, null, 0, null, null, 0); Pets pet2 = new Pets(null, null, 0, null, null, 0); Pets pet3 = new Pets(null, null, 0, null, null, 0); Pets pet4 = new Pets(null, null, 0, null, null, 0); Pets pet5 = new Pets(null, null, 0, null, null, 0); Pets pet6 = new Pets(null, null, 0, null, null, 0); Pets pet7 = new Pets(null, null, 0, null, null, 0); Pets pet8 = new Pets(null, null, 0, null, null, 0); Pets pet9 = new Pets(null, null, 0, null, null, 0); Pets pet10 = new Pets(null, null, 0, null, null, 0); Pets[] allPets = {pet1,pet2,pet3,pet4,pet5,pet6,pet7,pet8,pet9,pet10}; int i = 0; for (Pets individualPets : allPets) { i++; System.out.println("Enter the data for the " + i + " pet"); try { System.out.println("Enter the name"); individualPets.name = bufferedReader.readLine(); System.out.println("Enter the type"); individualPets.type = bufferedReader.readLine(); System.out.println("Enter the age"); String age = bufferedReader.readLine(); individualPets.age = Integer.parseInt(age); System.out.println("Enter the gender"); individualPets.gender = bufferedReader.readLine(); System.out.println("Enter the color"); individualPets.color = bufferedReader.readLine(); System.out.println("Enter the size"); String size = bufferedReader.readLine(); individualPets.size = Integer.parseInt(size); } catch(IOException e) { e.printStackTrace(); } } for (Pets individualPets : allPets) { System.out.println("-------------------"); System.out.println("name: " + individualPets.name); System.out.println("type:" + individualPets.type); System.out.println("age:" + individualPets.age); System.out.println("gender:" + individualPets.gender); System.out.println("color:" + individualPets.color); System.out.println("size:" + individualPets.size); } }
{ "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
Created by hefeng on 18410.
public interface DbHelper { List<HistoryData> loadAllHistoryData(); List<HistoryData> addHistoryData(String data); void clearHistoryData(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public void mo38117a() {\n }", "public void gored() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "private void kk12() {\n\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 }", "public void skystonePos4() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "public void skystonePos6() {\n }", "public void mo6081a() {\n }", "private void m50366E() {\n }", "public void mo12628c() {\n }", "public void mo55254a() {\n }", "private void strin() {\n\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void ligar() {\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 init() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "private void init() {\n\n\n\n }", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public void skystonePos3() {\n }", "public void Exterior() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "private void init() {\n\n\t}", "private zza.zza()\n\t\t{\n\t\t}", "public void mo12930a() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public void skystonePos5() {\n }", "public abstract void mo70713b();", "public void mo21877s() {\n }", "public void mo21779D() {\n }", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "public void mo9848a() {\n }", "public void mo3376r() {\n }", "static void feladat9() {\n\t}", "public void mo21825b() {\n }", "public void Tyre() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\n public void memoria() {\n \n }", "public void skystonePos2() {\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public void mo115190b() {\n }", "@Override\n public void init() {\n\n }", "private void m50367F() {\n }", "protected void mo6255a() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21878t() {\n }", "public void baocun() {\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 void mo21783H() {\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}", "public void m23075a() {\n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "public void mo21791P() {\n }", "public abstract void mo56925d();", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\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}", "public void mo97908d() {\n }", "public void mo21782G() {\n }", "@Override\n protected void getExras() {\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "static void feladat4() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}" ]
[ "0.60372055", "0.6018243", "0.59323305", "0.5909905", "0.5909905", "0.5909467", "0.59011513", "0.58802277", "0.58629453", "0.5854083", "0.5835342", "0.58344144", "0.5822012", "0.58197206", "0.5785113", "0.5772439", "0.5772439", "0.5772439", "0.5772439", "0.5772439", "0.5772439", "0.5772439", "0.5755847", "0.5753419", "0.57456297", "0.5744033", "0.57203466", "0.5706424", "0.5702826", "0.5698602", "0.56802624", "0.56793314", "0.5678434", "0.56716776", "0.56696904", "0.5667595", "0.5667538", "0.56517166", "0.565067", "0.5646607", "0.5630353", "0.561843", "0.561843", "0.561843", "0.561843", "0.561843", "0.5613131", "0.558887", "0.55865526", "0.55780697", "0.5569708", "0.55544865", "0.5541242", "0.5540956", "0.55395836", "0.55326253", "0.5523521", "0.5519284", "0.5518155", "0.5506728", "0.55057114", "0.55046135", "0.5503984", "0.5498033", "0.548898", "0.5488388", "0.54849285", "0.54830897", "0.54749906", "0.54731125", "0.54713994", "0.54656976", "0.54655814", "0.5462858", "0.5461686", "0.54561794", "0.5450574", "0.5450382", "0.54486907", "0.5448654", "0.5448654", "0.5448654", "0.5445976", "0.5445139", "0.5445139", "0.5445139", "0.5445117", "0.5439838", "0.54346305", "0.54327667", "0.54292506", "0.54268855", "0.54268855", "0.54268855", "0.54225093", "0.5417409", "0.5416125", "0.54081196", "0.54018784", "0.53997743", "0.5397458" ]
0.0
-1
/ stencil object stuff
@Override public Vector getShapes() { return shapes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String [] args)\n{\n //this is something to memorize \n\nDrawingTool pencil;\nSketchPad paper;\n//these two were object declarations \npaper = new SketchPad (300,300); \npencil = new DrawingTool(paper); \n//these two were to create instances of the DrawingTool and SketchPad that are in the library today \n\n//now, directions: memorize the format for the instructions \npencil.forward (100);\npencil.turnRight (90);\npencil.forward (200);\npencil.turnRight (90);\npencil.forward (100);\npencil.turnRight (90);\npencil.forward (200);\npencil.turnRight (90);\npencil.forward (100);\npencil.turnRight (45);\npencil.forward (142);\npencil.turnRight (90); \npencil.forward (142);\npencil.turnRight (45);\npencil.forward (100);\npencil.turnRight (90);\npencil.forward (80);\npencil.turnRight (90);\npencil.forward (40);\npencil.turnLeft (90);\npencil.forward (20);\npencil.turnLeft (90);\npencil.forward (40);\n/*a few questions I have: can I change the color of the pencil, can I lift\n * it or choose where to start\n */\npencil.turnRight(90);\npencil.forward (100);\npencil.turnRight (90);\npencil.forward (160);\npencil.turnRight (90);\npencil.forward (30);\npencil.turnRight (90);\npencil.forward (30);\n\n\n\n \n\n//how can I add a new color in this? I requested access for the video \n//that the logo team made\n \n \n}", "public PencilTool() {\n super();\n myPencil = new Path2D.Double(); \n }", "public void previewOglRender();", "@Override\n public void prepareRendering() {\n GL11.glClearStencil(0);\n GL11.glClear(GL11.GL_STENCIL_BUFFER_BIT);\n \n GlStateManager.enableDepthTest();\n GL11.glEnable(GL_STENCIL_TEST);\n \n IEFrameBuffer ieFrameBuffer = (IEFrameBuffer) client.getFramebuffer();\n if (!ieFrameBuffer.getIsStencilBufferEnabled()) {\n ieFrameBuffer.setIsStencilBufferEnabledAndReload(true);\n if (Minecraft.func_238218_y_()) {\n client.worldRenderer.loadRenderers();\n }\n }\n \n }", "void objectCreated (HyperEdge hedge);", "@Override\r\n protected void drawDebugShape( PhysicsNode physicsNode, Renderer renderer ) {\n\r\n }", "Wall(Sprite sprite) {Collect.Hit(\"BoardFactory.java\",\"Wall(Sprite sprite)\");this.background = sprite; Collect.Hit(\"BoardFactory.java\",\"Wall(Sprite sprite)\", \"2420\");}", "public void usa(){\n stroke(1);\n //back guns\n fill(0);\n rect(73,192,4,15);\n rect(224,192,4,15);\n rect(71,207,8,15);\n rect(222,207,8,15);\n rect(66,207,3,15);\n rect(232,207,3,17);\n rect(122,109,4,15);\n rect(175,110,4,15);\n rect(121,120,6,15);\n rect(174,120,6,15);\n rect(116,124,3,15);\n rect(182,124,3,15);\n\n //wings\n fill(1,0,74);//dark blue\n beginShape();\n vertex(14,286);\n vertex(61,236);\n vertex(88,308);\n vertex(51,334);\n vertex(14,313);\n endShape(CLOSE);\n beginShape();\n vertex(286,287);\n vertex(286,312);\n vertex(247,335);\n vertex(212,309);\n vertex(238,238);\n endShape(CLOSE);\n\n fill(200);//white\n beginShape();\n vertex(38,307);\n vertex(74,307);\n vertex(80,314);\n vertex(81,337);\n vertex(68,345);\n vertex(38,327);\n endShape(CLOSE);\n beginShape();\n vertex(219,316);\n vertex(226,308);\n vertex(262,308);\n vertex(262,326);\n vertex(231,345);\n vertex(219,336);\n endShape(CLOSE);\n\n fill(192,0,11);//red\n beginShape();\n vertex(96,191);\n vertex(61,230);\n vertex(60,269);\n vertex(96,312);\n vertex(101,300);\n vertex(100,247);\n vertex(112,232);\n vertex(132,232);\n vertex(131,186);\n endShape(CLOSE);\n beginShape();\n vertex(204,191);\n vertex(240,230);\n vertex(240,270);\n vertex(205,312);\n vertex(200,302);\n vertex(200,248);\n vertex(193,238);\n vertex(185,231);\n vertex(170,230);\n vertex(170,186);\n endShape(CLOSE);\n\n //white\n fill(200);\n beginShape();\n vertex(70,217);\n vertex(74,220);\n vertex(81,210);\n vertex(85,213);\n vertex(75,227);\n vertex(72,229);\n vertex(71,231);\n vertex(73,233);\n vertex(73,268);\n vertex(71,272);\n vertex(76,277);\n vertex(82,274);\n vertex(89,283);\n vertex(90,297);\n vertex(66,272);\n vertex(65,235);\n vertex(68,229);\n vertex(62,228);\n endShape(CLOSE);\n beginShape();\n vertex(228,217);\n vertex(225,218);\n vertex(218,211);\n vertex(215,213);\n vertex(223,227);\n vertex(226,226);\n vertex(230,230);\n vertex(227,233);\n vertex(228,270);\n vertex(229,272);\n vertex(223,276);\n vertex(218,276);\n vertex(210,283);\n vertex(211,296);\n vertex(235,273);\n vertex(234,233);\n vertex(232,228);\n vertex(237,227);\n endShape(CLOSE);\n\n //guns\n //white\n fill(200);\n beginShape();\n vertex(121,301);\n vertex(98,313);\n vertex(102,336);\n vertex(119,342);\n vertex(139,336);\n vertex(141,313);\n endShape(CLOSE);//l\n beginShape();\n vertex(159,312);\n vertex(162,336);\n vertex(180,342);\n vertex(200,336);\n vertex(202,313);\n vertex(180,302);\n endShape(CLOSE);\n\n //black\n fill(0);\n rect(105,315,30,30);\n rect(166,315,30,30);\n quad(105,344,109,355,131,355,135,344);\n quad(166,344,170,355,192,355,196,344);\n //green\n fill(0,0,67);\n rect(103,253,33,62);//l\n rect(164,252,33,62);//r\n //white\n fill(200);\n bezier(103,252,107,230,132,230,136,252);//l\n bezier(164,252,169,230,192,230,197,252);//r\n rect(103,280,33,25);//l\n rect(164,280,33,25);//r\n rect(104,319,33,26,3);//l\n rect(165,319,33,26,3);//r\n rect(115,310,7,28,8);//l\n rect(178,310,7,28,8);//r\n //green\n fill(0,0,67);\n rect(105,284,10,15);\n rect(124,284,10,15);\n rect(167,285,10,15);\n rect(185,284,10,15);\n\n //body-wings\n //green\n fill(0,0,67);//blue\n bezier(107,154,101,162,98,169,98,187);\n bezier(191,153,199,164,202,172,203,187);\n quad(107,154,98,186,98,223,107,224);\n quad(191,153,203,186,202,223,192,223);\n fill(192,0,11);//red\n quad(134,112,108,147,107,239,132,230);\n quad(165,112,192,147,193,239,168,230);\n //black\n fill(0);\n quad(130,122,130,142,111,164,111,147);\n quad(169,122,188,147,188,165,169,144);\n //white\n fill(200);\n beginShape();\n vertex(131,154);\n vertex(129,202);\n vertex(118,202);\n vertex(112,181);\n vertex(110,179);\n vertex(110,171);\n endShape(CLOSE);\n beginShape();\n vertex(170,154);\n vertex(190,172);\n vertex(190,182);\n vertex(188,181);\n vertex(182,201);\n vertex(172,201);\n endShape(CLOSE);\n\n //green\n fill(192,0,11);\n quad(134,193,166,193,154,342,146,342);\n fill(192,0,11);\n quad(142,180,159,180,152,352,148,352);\n //white\n fill(200);\n ellipse(150,374,6,50);\n\n //head\n fill(1,1,75);\n ellipse(149.5f,72,33,25);\n ellipse(149.5f,94,30,170);\n fill(0);\n ellipse(149.5f,94,20,160);\n fill(154,155,84);\n ellipse(149.5f,94,17,77);\n strokeWeight(2);\n line(143,74,158,74);\n line(142,104,158,104);\n strokeWeight(1);\n fill(200);\n bezier(143,15,147,2,153,2,155.5f,15);\n }", "void render(Object rendererTool);", "public void grabStone() {\n }", "void m21808d(Object obj);", "public String _class_globals() throws Exception{\n_meventname = \"\";\n //BA.debugLineNum = 7;BA.debugLine=\"Private mCallBack As Object 'ignore\";\n_mcallback = new Object();\n //BA.debugLineNum = 8;BA.debugLine=\"Public mBase As B4XView 'ignore\";\n_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper();\n //BA.debugLineNum = 9;BA.debugLine=\"Private xui As XUI 'ignore\";\n_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();\n //BA.debugLineNum = 10;BA.debugLine=\"Private cvs As B4XCanvas\";\n_cvs = new anywheresoftware.b4a.objects.B4XCanvas();\n //BA.debugLineNum = 11;BA.debugLine=\"Private mValue As Int = 75\";\n_mvalue = (int) (75);\n //BA.debugLineNum = 12;BA.debugLine=\"Private mMin, mMax As Int\";\n_mmin = 0;\n_mmax = 0;\n //BA.debugLineNum = 13;BA.debugLine=\"Private thumb As B4XBitmap\";\n_thumb = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper();\n //BA.debugLineNum = 14;BA.debugLine=\"Private pnl As B4XView\";\n_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();\n //BA.debugLineNum = 15;BA.debugLine=\"Private xlbl As B4XView\";\n_xlbl = new anywheresoftware.b4a.objects.B4XViewWrapper();\n //BA.debugLineNum = 16;BA.debugLine=\"Private CircleRect As B4XRect\";\n_circlerect = new anywheresoftware.b4a.objects.B4XCanvas.B4XRect();\n //BA.debugLineNum = 17;BA.debugLine=\"Private ValueColor As Int\";\n_valuecolor = 0;\n //BA.debugLineNum = 18;BA.debugLine=\"Private stroke As Int\";\n_stroke = 0;\n //BA.debugLineNum = 19;BA.debugLine=\"Private ThumbSize As Int\";\n_thumbsize = 0;\n //BA.debugLineNum = 20;BA.debugLine=\"Public Tag As Object\";\n_tag = new Object();\n //BA.debugLineNum = 21;BA.debugLine=\"Private mThumbBorderColor As Int = 0xFF5B5B5B\";\n_mthumbbordercolor = (int) (0xff5b5b5b);\n //BA.debugLineNum = 22;BA.debugLine=\"Private mThumbInnerColor As Int = xui.Color_White\";\n_mthumbinnercolor = _xui.Color_White;\n //BA.debugLineNum = 23;BA.debugLine=\"Private mCircleFillColor As Int = xui.Color_White\";\n_mcirclefillcolor = _xui.Color_White;\n //BA.debugLineNum = 24;BA.debugLine=\"Private mCircleNonValueColor As Int = 0xFFB6B6B6\";\n_mcirclenonvaluecolor = (int) (0xffb6b6b6);\n //BA.debugLineNum = 25;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public abstract void drawSimplified(Object o);", "void sharpen();", "void sharpen();", "public void drawNonEssentialComponents(){\n\t\t\n\t}", "@Override\n \t\t\t\tpublic void doCreateQuadWater() {\n \n \t\t\t\t}", "public void renderInvBlock(bbb renderblocks, int md)\r\n/* 73: */ {\r\n/* 74: 72 */ this.block.f();\r\n/* 75: */ \r\n/* 76: 74 */ this.context.setDefaults();\r\n/* 77: 75 */ this.context.setPos(-0.5D, -0.5D, -0.5D);\r\n/* 78: 76 */ this.context.useNormal = true;\r\n/* 79: 77 */ this.context.setLocalLights(0.5F, 1.0F, 0.8F, 0.8F, 0.6F, 0.6F);\r\n/* 80: */ \r\n/* 81: 79 */ RenderLib.bindTexture(\"/eloraam/machine/machine1.png\");\r\n/* 82: 80 */ baz tessellator = baz.a;\r\n/* 83: */ \r\n/* 84: 82 */ tessellator.b();\r\n/* 85: 83 */ this.context.useNormal = true;\r\n/* 86: */ \r\n/* 87: */ \r\n/* 88: 86 */ this.context.setTex(28, 28, 26, 26, 26, 26);\r\n/* 89: */ \r\n/* 90: 88 */ this.context.renderBox(60, 0.375D, 0.0D, 0.375D, 0.625D, 1.0D, 0.625D);\r\n/* 91: 89 */ this.context.renderBox(60, 0.6240000128746033D, 0.9990000128746033D, 0.6240000128746033D, 0.3759999871253967D, 0.001000000047497451D, 0.3759999871253967D);\r\n/* 92: 90 */ renderFlanges(3, 27);\r\n/* 93: */ \r\n/* 94: 92 */ tessellator.a();\r\n/* 95: 93 */ RenderLib.unbindTexture();\r\n/* 96: 94 */ this.context.useNormal = false;\r\n/* 97: */ }", "private static void addShaped()\n {}", "Ground(Sprite sprite) {Collect.Hit(\"BoardFactory.java\",\"Ground(Sprite sprite)\");this.background = sprite; Collect.Hit(\"BoardFactory.java\",\"Ground(Sprite sprite)\", \"3015\");}", "public abstract void gameObjectAwakens();", "public void display ( GameObject obj ) {\n Screen tempScreen = Screen.getScreen();\n\n // I could script this! Quickly change the colors\n\n tempScreen.fill(color); //set color\n\n\n tempScreen.noStroke(); //no stroke\n tempScreen.rect(obj.x, obj.y, obj.width, obj.height); //make a rectangle\n }", "public void syria(){\n stroke(1);\n //back guns\n fill(0);\n rect(73,192,4,15);\n rect(224,192,4,15);\n rect(71,207,8,15);\n rect(222,207,8,15);\n rect(66,207,3,15);\n rect(232,207,3,17);\n rect(122,109,4,15);\n rect(175,110,4,15);\n rect(121,120,6,15);\n rect(174,120,6,15);\n rect(116,124,3,15);\n rect(182,124,3,15);\n\n //wings\n fill(206,17,38);//red\n beginShape();\n vertex(14,286);\n vertex(61,236);\n vertex(88,308);\n vertex(51,334);\n vertex(14,313);\n endShape(CLOSE);\n beginShape();\n vertex(286,287);\n vertex(286,312);\n vertex(247,335);\n vertex(212,309);\n vertex(238,238);\n endShape(CLOSE);\n\n fill(200);//white\n beginShape();\n vertex(38,307);\n vertex(74,307);\n vertex(80,314);\n vertex(81,337);\n vertex(68,345);\n vertex(38,327);\n endShape(CLOSE);\n beginShape();\n vertex(219,316);\n vertex(226,308);\n vertex(262,308);\n vertex(262,326);\n vertex(231,345);\n vertex(219,336);\n endShape(CLOSE);\n\n fill(0);//red\n beginShape();\n vertex(96,191);\n vertex(61,230);\n vertex(60,269);\n vertex(96,312);\n vertex(101,300);\n vertex(100,247);\n vertex(112,232);\n vertex(132,232);\n vertex(131,186);\n endShape(CLOSE);\n beginShape();\n vertex(204,191);\n vertex(240,230);\n vertex(240,270);\n vertex(205,312);\n vertex(200,302);\n vertex(200,248);\n vertex(193,238);\n vertex(185,231);\n vertex(170,230);\n vertex(170,186);\n endShape(CLOSE);\n\n //white\n fill(200);\n beginShape();\n vertex(70,217);\n vertex(74,220);\n vertex(81,210);\n vertex(85,213);\n vertex(75,227);\n vertex(72,229);\n vertex(71,231);\n vertex(73,233);\n vertex(73,268);\n vertex(71,272);\n vertex(76,277);\n vertex(82,274);\n vertex(89,283);\n vertex(90,297);\n vertex(66,272);\n vertex(65,235);\n vertex(68,229);\n vertex(62,228);\n endShape(CLOSE);\n beginShape();\n vertex(228,217);\n vertex(225,218);\n vertex(218,211);\n vertex(215,213);\n vertex(223,227);\n vertex(226,226);\n vertex(230,230);\n vertex(227,233);\n vertex(228,270);\n vertex(229,272);\n vertex(223,276);\n vertex(218,276);\n vertex(210,283);\n vertex(211,296);\n vertex(235,273);\n vertex(234,233);\n vertex(232,228);\n vertex(237,227);\n endShape(CLOSE);\n\n //guns\n //white\n fill(200);\n beginShape();\n vertex(121,301);\n vertex(98,313);\n vertex(102,336);\n vertex(119,342);\n vertex(139,336);\n vertex(141,313);\n endShape(CLOSE);//l\n beginShape();\n vertex(159,312);\n vertex(162,336);\n vertex(180,342);\n vertex(200,336);\n vertex(202,313);\n vertex(180,302);\n endShape(CLOSE);\n\n //black\n fill(0);\n rect(105,315,30,30);\n rect(166,315,30,30);\n quad(105,344,109,355,131,355,135,344);\n quad(166,344,170,355,192,355,196,344);\n //green\n fill(0,122,61);\n rect(103,253,33,62);//l\n rect(164,252,33,62);//r\n //white\n fill(200);\n bezier(103,252,107,230,132,230,136,252);//l\n bezier(164,252,169,230,192,230,197,252);//r\n rect(103,280,33,25);//l\n rect(164,280,33,25);//r\n rect(104,319,33,26,3);//l\n rect(165,319,33,26,3);//r\n rect(115,310,7,28,8);//l\n rect(178,310,7,28,8);//r\n //green\n fill(0,122,61);\n rect(105,284,10,15);\n rect(124,284,10,15);\n rect(167,285,10,15);\n rect(185,284,10,15);\n\n //body-wings\n\n fill(0,122,61);//green\n bezier(107,154,101,162,98,169,98,187);\n bezier(191,153,199,164,202,172,203,187);\n quad(107,154,98,186,98,223,107,224);\n quad(191,153,203,186,202,223,192,223);\n fill(206,17,38);//red\n quad(134,112,108,147,107,239,132,230);\n quad(165,112,192,147,193,239,168,230);\n //black\n fill(0);\n quad(130,122,130,142,111,164,111,147);\n quad(169,122,188,147,188,165,169,144);\n //white\n fill(200);\n beginShape();\n vertex(131,154);\n vertex(129,202);\n vertex(118,202);\n vertex(112,181);\n vertex(110,179);\n vertex(110,171);\n endShape(CLOSE);\n beginShape();\n vertex(170,154);\n vertex(190,172);\n vertex(190,182);\n vertex(188,181);\n vertex(182,201);\n vertex(172,201);\n endShape(CLOSE);\n\n fill(0);\n quad(134,193,166,193,154,342,146,342);\n fill(0);\n quad(142,180,159,180,152,352,148,352);\n //white\n fill(200);\n ellipse(150,374,6,50);\n\n //head\n\n fill(206,17,38);\n ellipse(149.5f,72,33,25);\n ellipse(149.5f,94,30,170);\n fill(0);\n ellipse(149.5f,94,20,160);\n fill(154,155,84);\n ellipse(149.5f,94,17,77);\n strokeWeight(2);\n line(143,74,158,74);\n line(142,104,158,104);\n strokeWeight(1);\n fill(200);\n bezier(143,15,147,2,153,2,155.5f,15);\n}", "public void drawDebug(){\n debugRenderer.setProjectionMatrix(cam.combined);\n debugRenderer.begin(ShapeRenderer.ShapeType.Line);\n\n for (Object e : world.getEnemies()) {\n Enemy enemy = (Enemy)e;\n Rectangle rect = enemy.getBounds();\n float x1 = rect.x;\n float y1 = rect.y;\n debugRenderer.setColor(new Color(1, 0, 0, 1));\n debugRenderer.rect(x1, y1, rect.width, rect.height);\n }\n\n for(Bullet b : world.getPlayer().getWeapon().getBullets()) {\n Rectangle rect = b.getBounds();\n float x1 = rect.x;\n float y1 = rect.y;\n debugRenderer.setColor(new Color(1, 0, 0, 1));\n debugRenderer.rect(x1, y1, rect.width, rect.height);\n }\n\n for(Enemy e : world.getEnemies()) {\n for(Bullet b : e.getWeapon().getBullets()){\n Rectangle rect = b.getBounds();\n float x1 = rect.x;\n float y1 = rect.y;\n debugRenderer.setColor(new Color(1, 0, 0, 1));\n debugRenderer.rect(x1, y1, rect.width, rect.height);\n }\n }\n\n Player player = world.getPlayer();\n Rectangle rect = player.getBounds();\n float x1 = rect.x;\n float y1 = rect.y;\n debugRenderer.setColor(new Color(0, 1, 0, 1));\n debugRenderer.rect(x1, y1, rect.width, rect.height);\n debugRenderer.end();\n }", "BasicObject(){\n posX = -1;\n posY = -1;\n velX = 0;\n velY = 0;\n accX = 0;\n accY = 0;\n classOfObejct = 0;\n }", "public Stage1()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1200, 900, 1);\n \n GreenfootImage image = getBackground();\n image.setColor(Color.BLACK);\n image.fill();\n star();\n \n \n \n //TurretBase turretBase = new TurretBase();\n playerShip = new PlayerShip();\n scoreDisplay = new ScoreDisplay();\n addObject(scoreDisplay, 100, 50);\n addObject(playerShip, 100, 450);\n \n }", "public void draw()\n {\n myPencil.up();\n myPencil.backward(100);\n myPencil.down();\n myPencil.turnRight(90);\n myPencil.forward(200);\n myPencil.turnLeft(90);\n myPencil.forward(200);\n myPencil.turnLeft(90);\n myPencil.forward(400);\n myPencil.turnLeft(90);\n myPencil.forward(200);\n myPencil.turnLeft(90);\n myPencil.forward(200);\n // Roof\n myPencil.up();\n myPencil.move(0,200);\n myPencil.down();\n myPencil.setDirection(333.435);\n myPencil.forward(223.607);\n myPencil.setColor(new Color(2, 0, 0));\n myPencil.up();\n myPencil.move(0,200);\n myPencil.setDirection(206.565);\n myPencil.down();\n myPencil.forward(223.607);\n // Windows\n myPencil.up();\n myPencil.move(-150,0);\n myPencil.setDirection(0);\n myPencil.down();\n myPencil.forward(75);\n myPencil.turnLeft(90);\n myPencil.forward(75);\n myPencil.turnLeft(90);\n myPencil.forward(75);\n myPencil.turnLeft(90);\n myPencil.forward(75);\n myPencil.up();\n myPencil.move(75,0);\n myPencil.setDirection(0);\n myPencil.down();\n myPencil.forward(75);\n myPencil.turnLeft(90);\n myPencil.forward(75);\n myPencil.turnLeft(90);\n myPencil.forward(75);\n myPencil.turnLeft(90);\n myPencil.forward(75);\n myPencil.up();\n myPencil.move(-50,-100);\n myPencil.setDirection(0);\n myPencil.down();\n myPencil.forward(75);\n myPencil.turnLeft(90);\n myPencil.forward(100);\n myPencil.turnLeft(90);\n myPencil.forward(50);\n myPencil.turnLeft(90);\n myPencil.forward(100);\n myPencil.up();\n myPencil.move(-50,-100);\n myPencil.setDirection(60);\n myPencil.down();\n myPencil.backward(150);\n myPencil.up();\n myPencil.move(50,-100);\n myPencil.setDirection(120);\n myPencil.down();\n myPencil.backward(150);\n myPencil.up();\n myPencil.move(150,-150);\n myPencil.down();\n myPencil.drawCircle(25);\n myPencil.up();\n myPencil.move(-150,-150);\n myPencil.down();\n myPencil.drawCircle(25);\n myPencil.up();\n myPencil.move(-150,-175);\n myPencil.setDirection(90);\n myPencil.down();\n myPencil.backward(20);\n myPencil.up();\n myPencil.move(150,-175);\n myPencil.setDirection(90);\n myPencil.down();\n myPencil.backward(20);\n myPencil.up();\n myPencil.move(-150,37.5);\n myPencil.setDirection(0);\n myPencil.down();\n myPencil.forward(75);\n myPencil.up();\n myPencil.move(75,37.5);\n myPencil.setDirection(0);\n myPencil.down();\n myPencil.forward(75);\n myPencil.up();\n myPencil.move(-112.5,0);\n myPencil.setDirection(90);\n myPencil.down();\n myPencil.forward(75);\n myPencil.up();\n myPencil.move(112.5,0);\n myPencil.setDirection(90);\n myPencil.down();\n myPencil.forward(75);\n // House Sidewalk\n myPencil.up();\n myPencil.move(-250,-112.5);\n myPencil.setDirection(0);\n myPencil.down();\n myPencil.forward(192.5);\n myPencil.up();\n myPencil.move(250,-112.5);\n myPencil.setDirection(180);\n myPencil.down();\n myPencil.forward(192.5);\n myPencil.up();\n myPencil.move(-250,-100);\n myPencil.setDirection(0);\n myPencil.down();\n myPencil.forward(90);\n myPencil.forward(193);\n myPencil.up();\n myPencil.move(250,-100);\n myPencil.setDirection(180);\n myPencil.down();\n myPencil.forward(90);\n myPencil.up();\n myPencil.move(-75,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(-100,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(-125,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(-150,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(-175,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(-200,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(-225,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(-250,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(75,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(100,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(125,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(150,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(175,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(200,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(225,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(250,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n // Chimney\n myPencil.up();\n myPencil.move(125,190);\n myPencil.setDirection(270);\n myPencil.down();\n myPencil.forward(52);\n myPencil.up();\n myPencil.move(100,190);\n myPencil.setDirection(270);\n myPencil.down();\n myPencil.forward(40);\n myPencil.up();\n myPencil.move(100,190);\n myPencil.setDirection(0);\n myPencil.down();\n myPencil.forward(25);\n // Door window\n myPencil.up();\n myPencil.move(0,-25);\n myPencil.setDirection(0);\n myPencil.down();\n myPencil.drawCircle(8);\n myPencil.up();\n myPencil.move(-8,-25);\n myPencil.setDirection(0);\n myPencil.down();\n myPencil.forward(16);\n myPencil.up();\n myPencil.move(0,-17);\n myPencil.setDirection(270);\n myPencil.down();\n myPencil.forward(16);\n // Door knob\n myPencil.up();\n myPencil.move(14,-55);\n myPencil.setDirection(0);\n myPencil.down();\n myPencil.drawCircle(2);\n }", "private void generateShadowVolumeStencil() {\n\t\tGL11.glColorMask(false, false, false, false);\n\t\tGL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT\n\t\t\t\t| GL11.GL_STENCIL_BUFFER_BIT);\n\t\tfor (PhysicsEntity<? extends RenderEntity> e : entities) {\n\t\t\tRenderEntity re = e.getWorldEntity();\n\t\t\tre.render(passThruContext);\n\t\t}\n\n\t\t// PERFORM STENCIL TEST OF OBJECTS THAT CAST SHADOWS\n\t\tGL11.glClear(GL11.GL_STENCIL_BUFFER_BIT);\n\t\tGL11.glEnable(GL11.GL_STENCIL_TEST);\n\t\tGL11.glStencilFunc(GL11.GL_ALWAYS, 1, 0xff);\n\t\tGL11.glEnable(GL11.GL_DEPTH_TEST);\n\t\tGL11.glDepthFunc(GL11.GL_LESS);\n\t\tGL11.glDepthMask(false);\n\t\tGL11.glEnable(GL11.GL_CULL_FACE);\n\n\t\t// pass 1 frontface culling\n\t\tGL11.glCullFace(GL11.GL_BACK);\n\t\tGL11.glStencilOp(GL11.GL_KEEP, GL11.GL_KEEP, GL11.GL_INCR);\n\n\t\tfor (PhysicsEntity<? extends RenderEntity> e : entities) {\n\t\t\tRenderEntity re = e.getWorldEntity();\n\t\t\tif (re.castShadows) {\n\t\t\t\tre.render(volumeShadowContext);\n\t\t\t}\n\t\t}\n\n\t\t// pass 2 backface culling\n\t\tGL11.glCullFace(GL11.GL_FRONT);\n\t\tGL11.glStencilOp(GL11.GL_KEEP, GL11.GL_KEEP, GL11.GL_DECR);\n\t\tfor (PhysicsEntity<? extends RenderEntity> e : entities) {\n\t\t\tRenderEntity re = e.getWorldEntity();\n\t\t\tif (re.castShadows) {\n\t\t\t\tre.render(volumeShadowContext);\n\t\t\t}\n\t\t}\n\t}", "public static void objectDemo() {\n\t}", "public void interface1(){\n noStroke();\n fill(10,100);//light gray\n rect(0,60,600,590);\n fill(220);//gray\n noStroke();\n beginShape();\n vertex(365,40);\n vertex(600,40);\n vertex(600,80);\n vertex(365,80);\n vertex(345,60);\n endShape(CLOSE);\n fill(19,70,100,100);//dark blue\n rect(0,110,600,215);\n rect(0,380,600,215);\n}", "private void drawModelElements_Functions_xjal(Panel _panel, Graphics2D _g, boolean _publicOnly)\n/* 244: */ {\n/* 245:326 */ if (!_publicOnly) {\n/* 246:327 */ drawFunction(_panel, _g, 20, 70, 10, 0, \"setImageProvider\");\n/* 247: */ }\n/* 248:329 */ if (!_publicOnly) {\n/* 249:330 */ drawFunction(_panel, _g, 200, 70, 10, 0, \"removeAllAgents\");\n/* 250: */ }\n/* 251:332 */ if (!_publicOnly) {\n/* 252:333 */ drawFunction(_panel, _g, 200, 50, 10, 0, \"removeAgent\");\n/* 253: */ }\n/* 254:335 */ if (!_publicOnly) {\n/* 255:336 */ drawFunction(_panel, _g, 200, 30, 10, 0, \"addAgent\");\n/* 256: */ }\n/* 257:338 */ if (!_publicOnly) {\n/* 258:339 */ drawFunction(_panel, _g, 330, 70, 10, 0, \"removeAllOverlayObj\");\n/* 259: */ }\n/* 260:341 */ if (!_publicOnly) {\n/* 261:342 */ drawFunction(_panel, _g, 330, 50, 10, 0, \"removeOverlayObj\");\n/* 262: */ }\n/* 263:344 */ if (!_publicOnly) {\n/* 264:345 */ drawFunction(_panel, _g, 330, 30, 10, 0, \"addOverlayObj\");\n/* 265: */ }\n/* 266:347 */ if (!_publicOnly) {\n/* 267:348 */ drawFunction(_panel, _g, 20, 100, 10, 0, \"setStaticOverlayVisible\");\n/* 268: */ }\n/* 269:350 */ if (!_publicOnly) {\n/* 270:351 */ drawFunction(_panel, _g, 20, 120, 10, 0, \"setDynamicOverlayVisible\");\n/* 271: */ }\n/* 272:353 */ if (!_publicOnly) {\n/* 273:354 */ drawFunction(_panel, _g, 20, 180, 10, 0, \"zoomToBounds\");\n/* 274: */ }\n/* 275:356 */ if (!_publicOnly) {\n/* 276:357 */ drawFunction(_panel, _g, 20, 160, 10, 0, \"getMapBounds\");\n/* 277: */ }\n/* 278:359 */ if (!_publicOnly) {\n/* 279:360 */ drawFunction(_panel, _g, 200, 130, 10, 0, \"addAgent\");\n/* 280: */ }\n/* 281:362 */ if (!_publicOnly) {\n/* 282:363 */ drawFunction(_panel, _g, 200, 150, 10, 0, \"removeAgent\");\n/* 283: */ }\n/* 284:365 */ if (!_publicOnly) {\n/* 285:366 */ drawFunction(_panel, _g, 200, 170, 10, 0, \"removeAllAgents\");\n/* 286: */ }\n/* 287:368 */ if (!_publicOnly) {\n/* 288:369 */ drawFunction(_panel, _g, 330, 130, 10, 0, \"removeAllOverlayObj\");\n/* 289: */ }\n/* 290:371 */ if (!_publicOnly) {\n/* 291:372 */ drawFunction(_panel, _g, 330, 150, 10, 0, \"removeOverlayObj\");\n/* 292: */ }\n/* 293:374 */ if (!_publicOnly) {\n/* 294:375 */ drawFunction(_panel, _g, 330, 170, 10, 0, \"addOverlayObj\");\n/* 295: */ }\n/* 296: */ }", "public Pencil(double x, double y, double width, double height)\n {\n\n\t//outline of the pencil\n GeneralPath body = new GeneralPath();\n\t\n body.moveTo(200,400);\n body.lineTo(150,350);\n\tbody.lineTo(200,300);\n\tbody.lineTo(600,300);\n\tbody.lineTo(600,400);\n\tbody.lineTo(200,400);\n\tbody.closePath();\n\n\t//vertical line that outlines the lead tip of the pencil\n\tGeneralPath leadLine = new GeneralPath();\n\n\tleadLine.moveTo(162, 362);\n\tleadLine.lineTo(162, 338);\n\n\t//vertical line that separates the tip of the pencil from the rest of the body\n\tGeneralPath tipLine = new GeneralPath();\n\ttipLine.moveTo(200, 400);\n\ttipLine.lineTo(200, 300);\n\t\n\t//vertical line that outlines the eraser\n\tShape eraser = ShapeTransforms.translatedCopyOf(tipLine, 350, 0.0);\n \n // now we put the whole thing together ino a single path.\n GeneralPath wholePencil = new GeneralPath ();\n wholePencil.append(body, false);\n\twholePencil.append(leadLine, false);\n wholePencil.append(tipLine, false);\n\twholePencil.append(eraser, false);\n \n // translate to the origin by subtracting the original upper left x and y\n // then translate to (x,y) by adding x and y\n \n Shape s = ShapeTransforms.translatedCopyOf(wholePencil, -ORIG_ULX + x, -ORIG_ULY + y);\n \n\t// scale to correct height and width\n s = ShapeTransforms.scaledCopyOf(s,\n\t\t\t\t\t width/ORIG_WIDTH,\n\t\t\t\t\t height/ORIG_HEIGHT) ;\n\t \n\t// Use the GeneralPath constructor that takes a shape and returns\n\t// it as a general path to set our instance variable cup\n \n\tthis.set(new GeneralPath(s));\n \n }", "public anywheresoftware.b4a.objects.PanelWrapper _asview() throws Exception{\nif (true) return _wholescreen;\n //BA.debugLineNum = 37;BA.debugLine=\"End Sub\";\nreturn null;\n}", "int hitGfx();", "ZHDraweeView mo91981h();", "public interface DrawingObject {\n\t// interface: blueprints but doesn't tell you how to do it\n\n\t/**\n\t * Draw the object.\n\t * \n\t * @param g\n\t */\n\tpublic void draw(Graphics g);\n\n\t/**\n\t * Called to start drawing a new object.\n\t * \n\t * @param p\n\t */\n\tpublic void start(Point p);\n\n\t/**\n\t * Called repeatedly while dragging a new object out to size (typically\n\t * called from within a mouseDragged() ).\n\t * \n\t * @param p\n\t */\n\tpublic void drag(Point p);\n\n\t/**\n\t * Called to move an object. Often called repeatedly inside a\n\t * mouseDragged().\n\t * \n\t * @param p\n\t */\n\tpublic void move(Point p);\n\n\t/**\n\t * Does the math to determine the number/position of points of star\n\t */\n\tpublic void doMath();\n\n\t/**\n\t * Set the bounding rectangle.\n\t * \n\t * @param b\n\t */\n\tpublic void setBounds(Rectangle b);\n\n\t/**\n\t * Determines if the point clicked is contained by the object.\n\t * \n\t * @param p\n\t * @return\n\t */\n\tpublic boolean contains(Point p);\n\n\t/**\n\t * Called to set the color of a shape\n\t */\n\tpublic void setColor(Color c);\n\n\t/**\n\t * Called to get the color of a shape\n\t * \n\t * @return\n\t */\n\tpublic Color getColor();\n}", "public abstract void Dasher2Screen(MutablePoint coords);", "public static void main(String[] args) {\n\n FlagObj f1=new FlagObj();\n f1.country=\"KZ\";\n f1.material=\"cotton\";\n f1.color=\"blue\";\n f1.size=2;\n\n FlagObj f2=new FlagObj();\n f2.country=f1.country;\n f2.material=f1.material;\n f2.color=f1.color;\n f2.size=f1.size;\n\n f1.country=\"a\";\n f1.material=\"a\";\n f1.color=\"a\";\n f1.size=0;\n\n f1.upgrade(255,\"gold\");\n\n f1.info();\n f2.info();\n\n\n\n }", "public void setup(){\n\t\t gl.glEnable(GL.GL_BLEND);\n\t\t gl.glBlendFunc(GL.GL_SRC_ALPHA, GL.GL_ONE_MINUS_SRC_ALPHA);\n\t\t for (int i = 0; i< cubes.length; i++){\n\t\t cubes[i] = this.s.new Cube(\n\t\t \t\tMath.round(p.random(-100, 100)), \n\t\t \t\tMath.round(p.random(-100, 100)), \n\t\t \t\t5,//Math.round(random(-100, 100)),\n\t\t \t\tMath.round(p.random(-10, 10)), \n\t\t \t\t\tMath.round(p.random(-10, 10)), \n\t\t\t\t\tMath.round( p.random(-10, 10))\n\t\t );\n\t\t cubRotation[i]=new Vector3D();\n\t\t cubRotationFactor[i]=new Vector3D();\n\t\t cubRotationFactor[i].x = (float)Math.random()/2f;\n\t\t cubRotationFactor[i].y = (float)Math.random()/2f;\n\t\t cubRotationFactor[i].z = (float)Math.random()/2f;\n\t\t \n\t\t cubColor[i]=new Vector3D();\n\t\t cubColor[i].x = (float)Math.random();\n\t\t cubColor[i].y = (float)Math.random();\n\t\t cubColor[i].z = (float)Math.random();\n\t\t }\n\t\t \n\t\t try {\n\t\t\togl.makeProgram(\n\t\t\t\t\t\t\"glass\",\n\t\t\t\t\t\tnew String[] {},\n\t\t\t\t\t\tnew String[] {\"SpecularColor1\",\"SpecularColor2\",\"SpecularFactor1\",\"SpecularFactor2\",\"LightPosition\"}, //\"GlassColor\",\n\t\t\t\t\t\togl.loadGLSLShaderVObject(\t\"resources/robmunro/perform/ol5/glass_c.vert\" ), \n\t\t\t\t\t\togl.loadGLSLShaderFObject(\t\"resources/robmunro/perform/ol5/glass_c.frag\"\t)\n\t\t\t\t);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t}", "public abstract void collectorHelp(FloodItWorld w, Color c);", "public abstract void Screen2Dasher(MutablePoint coords);", "public void renderFlanges(int cons, int tex)\r\n/* 108: */ {\r\n/* 109:106 */ this.context.setTex(tex);\r\n/* 110:108 */ if ((cons & 0x1) > 0)\r\n/* 111: */ {\r\n/* 112:109 */ this.context.setTexFlags(0);\r\n/* 113:110 */ this.context.renderBox(63, 0.25D, 0.0D, 0.25D, 0.75D, 0.125D, 0.75D);\r\n/* 114: */ }\r\n/* 115:112 */ if ((cons & 0x2) > 0)\r\n/* 116: */ {\r\n/* 117:113 */ this.context.setTexFlags(112320);\r\n/* 118:114 */ this.context.renderBox(63, 0.25D, 0.875D, 0.25D, 0.75D, 1.0D, 0.75D);\r\n/* 119: */ }\r\n/* 120:116 */ if ((cons & 0x4) > 0)\r\n/* 121: */ {\r\n/* 122:117 */ this.context.setTexFlags(217134);\r\n/* 123:118 */ this.context.renderBox(63, 0.25D, 0.25D, 0.0D, 0.75D, 0.75D, 0.125D);\r\n/* 124: */ }\r\n/* 125:120 */ if ((cons & 0x8) > 0)\r\n/* 126: */ {\r\n/* 127:121 */ this.context.setTexFlags(188469);\r\n/* 128:122 */ this.context.renderBox(63, 0.25D, 0.25D, 0.875D, 0.75D, 0.75D, 1.0D);\r\n/* 129: */ }\r\n/* 130:124 */ if ((cons & 0x10) > 0)\r\n/* 131: */ {\r\n/* 132:125 */ this.context.setTexFlags(2944);\r\n/* 133:126 */ this.context.renderBox(63, 0.0D, 0.25D, 0.25D, 0.125D, 0.75D, 0.75D);\r\n/* 134: */ }\r\n/* 135:128 */ if ((cons & 0x20) > 0)\r\n/* 136: */ {\r\n/* 137:129 */ this.context.setTexFlags(3419);\r\n/* 138:130 */ this.context.renderBox(63, 0.875D, 0.25D, 0.25D, 1.0D, 0.75D, 0.75D);\r\n/* 139: */ }\r\n/* 140: */ }", "@Override\n protected void inputObjects() {\n alpha1 = Utils.computeRandomNumber(Modulus, sp);\n alpha2 = Utils.computeRandomNumber(Modulus, sp);\n gamma = Utils.computeRandomNumber(Modulus, sp);\n gammaTilde = Utils.computeRandomNumber(Modulus, sp);\n\n capC = g2.modPow(gamma, Modulus);\n capCTilde = g2.modPow(gammaTilde, Modulus);\n\n beta1 = alpha1.multiply(x);\n beta2 = alpha2.multiply(x);\n BigInteger capU1 = t_i.modPow(alpha1, Modulus).multiply(b_i.modPow(beta1.negate(), Modulus))\n .mod(Modulus);\n BigInteger capU2 = g1.modPow(alpha1, Modulus).multiply(g2.modPow(alpha2, Modulus)).mod(Modulus);\n\n objects.put(\"tInverse\", t.modInverse(Modulus));\n objects.put(\"b\", b);\n objects.put(\"g1\", g1);\n objects.put(\"g2\", g2);\n objects.put(\"U1Inverse\", capU1.modInverse(Modulus));\n objects.put(\"U2Inverse\", capU2.modInverse(Modulus));\n objects.put(\"CInverse\", capC.modInverse(Modulus));\n objects.put(\"CTildeInverse\", capCTilde.modInverse(Modulus));\n objects.put(\"t_i\", t_i);\n objects.put(\"b_iInverse\", b_i.modInverse(Modulus));\n }", "public MovableObject lightClone()\n\t\t{\n\t\t\tfinal MovableObject clone = new MovableObject();\n\t\t\tclone.assCount = this.assCount;\n\t\t\tclone.associatable = this.associatable;\n\t\t\tclone.bound = this.bound;\n\t\t\tclone.coords = new int[this.coords.length];\n\t\t\tfor(int i=0; i < this.coords.length; i++)\n\t\t\t\tclone.coords[i] = this.coords[i];\n\t\t\tclone.highlighted = this.highlighted;\n\t\t\tclone.hotSpotLabel = this.hotSpotLabel;\n\t\t\tclone.keyCode = this.keyCode;\n\t\t\tclone.label = this.label;\n\t\t\tclone.maxAssociations = this.maxAssociations;\n\t\t\tif(shape.equals(\"rect\"))\n\t\t\t{\n\t\t\t\tclone.obj = new Rectangle(coords[0]-3,coords[1]-3,coords[2]+6,coords[3]+6);\n\t\t\t}\n\t\t\tif(shape.equals(\"circle\"))\n\t\t\t{\n\t\t\t\tclone.obj = new Ellipse2D.Double((coords[0]-coords[2])-4,(coords[1]-coords[2])-4,(coords[2]+2)*2,(coords[2]+2)*2);\n\t\t\t}\n\t\t\tif(shape.equals(\"ellipse\"))\n\t\t\t{\n\t\t\t\tclone.obj = new Ellipse2D.Double((coords[0]-coords[2])-4,(coords[1]-coords[2])-4,(coords[2]+2)*2,(coords[3]+2)*2);\n\t\t\t}\n\t\t\tif(shape.equals(\"poly\"))\n\t\t\t{\n\t\t\t\tfinal int xArr[] = new int[coords.length/2];\n\t\t\t\tfinal int yArr[] = new int[coords.length/2];\n\t\t\t\tint xCount = 0;\n\t\t\t\tint yCount = 0;\n\t\t\t\tfor(int i=0; i < coords.length; i++)\n\t\t\t\t{\n\t\t\t\t\tif((i%2) == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\txArr[xCount] = coords[i];\n\t\t\t\t\t\txCount++;\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tyArr[yCount] = coords[i];\n\t\t\t\t\t\tyCount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//TODO calculate the centre of mass\n\n\t\t\t\tclone.obj = new Polygon(xArr,yArr,xArr.length);\n\t\t\t}\n\t\t\tclone.pos = new Point(this.pos.x,this.pos.y);\n\t\t\tclone.shape = this.shape;\n\t\t\tclone.startPos = this.startPos;\n\t\t\tclone.value = this.value;\n\n\t\t\treturn clone;\n\t\t}", "@Override\n\t\t\tpublic void setUpData(int index, int[][] data, int dataSetupIndex) {\n\t\t\t\tint[] vboIds = data[dataSetupIndex];\n\t\t\t\tif(vboIds[0]!=0) { // le nombre de point\n\t\t\t\t\t// suppression des buffer inutilisés\n\t\t\t\t\tgl.glDeleteBuffers(vboIds.length-1, vboIds,1);\n\t\t\t\t}\n\t\t\t\t// création de deux nouveaux buffer\n\t\t\t\tvboIds = new int[] {0,0,0,0}; // nbPoints, vertex + texture\n//\t\t\t\tSystem.out.println(\"vboIds \"+vboIds[0]+\" \"+vboIds[1]+\" \"+vboIds[2]);\n\t\t\t\t\n\t\t\t\tgl.glGenBuffers(3, vboIds, 1);\n\t\t\t\tdata[dataSetupIndex] = vboIds;\n//\t\t\t\tSystem.out.println(\"vboIds \"+vboIds[0]+\" \"+vboIds[1]+\" \"+vboIds[2]);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// les points\n\t\t\t\tFloatBuffer vertices = Buffers.newDirectFloatBuffer(nbHeight*4*3); // 4 points de 3 coordonnées\n\t\t\t\tFloatBuffer text = Buffers.newDirectFloatBuffer(nbHeight*4*2);\n\t\t\t\tFloatBuffer normals = Buffers.newDirectFloatBuffer(nbHeight*4*3); // 4 points de 3 coordonnées\n\t\t\t\t\n\t\t\t\tfloat positiony=0;\n\t\t\t\tfor(int j = 0;j<nbHeight; j++) {\n\t\t\t\t\tint val = ms.getTheMap()[j][index]; \n\t\t\t\t\tif(val>0){\n\t\t\t\t\t\t// points BL, BR, UR, RL\n\t\t\t\t\t\tvertices.put(0f); vertices.put(positiony-blockHeight); vertices.put(-distance);\n\t\t\t\t\t\tvertices.put(blockWidth); vertices.put(positiony-blockHeight); vertices.put(-distance);\n\t\t\t\t\t\tvertices.put(blockWidth); vertices.put(positiony); vertices.put(-distance);\n\t\t\t\t\t\tvertices.put(0f); vertices.put(positiony); vertices.put(-distance);\n\t\t\t\t\t\t\n\t\t\t\t\t\tnormals.put(0f);normals.put(0f);normals.put(1f);\n\t\t\t\t\t\tnormals.put(0f);normals.put(0f);normals.put(1f);\n\t\t\t\t\t\tnormals.put(0f);normals.put(0f);normals.put(1f);\n\t\t\t\t\t\tnormals.put(0f);normals.put(0f);normals.put(1f);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// texture\n\t\t\t\t\t\tfloat[] coords = textCoords[val-1];\n\t\t\t\t\t\ttext.put(coords[0]); text.put(coords[3]);\n\t\t\t\t\t\ttext.put(coords[2]); text.put(coords[3]);\n\t\t\t\t\t\ttext.put(coords[2]); text.put(coords[1]);\n\t\t\t\t\t\ttext.put(coords[0]); text.put(coords[1]);\n\t\t\t\t\t}\n\t\t\t\t\tpositiony-=blockHeight;\n\t\t\t\t}\n\t\t\t\tvertices.flip();\n\t\t\t\ttext.flip();\n\t\t\t\tnormals.flip();\n\t\t\t\tvboIds[0] = vertices.limit() / 3; // nb points\n//\t\t\t\tSystem.out.println(\"vboIds \"+vboIds[0]+\" \"+vboIds[1]+\" \"+vboIds[2]);\n\n\t\t\t\t// les points\n\t\t\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, vboIds[1]);\n//\t\t\t\tSystem.out.println(\"vboIds \"+vboIds[0]+\" \"+vboIds[1]+\" \"+vboIds[2]);\n\t\t gl.glBufferData(GL.GL_ARRAY_BUFFER, vertices.limit() * Buffers.SIZEOF_FLOAT, vertices, GL.GL_STATIC_DRAW);\n\t\t gl.glBindBuffer(GL.GL_ARRAY_BUFFER, 0);\n\t\t\t\t\n\t\t // les textures\n\t\t gl.glBindBuffer(GL2.GL_ARRAY_BUFFER, vboIds[2]);\n//\t\t\t\tSystem.out.println(\"vboIds \"+vboIds[0]+\" \"+vboIds[1]+\" \"+vboIds[2]);\n\t\t gl.glBufferData(GL2.GL_ARRAY_BUFFER, text.limit() * Buffers.SIZEOF_FLOAT, text, GL.GL_STATIC_DRAW);\n\t\t gl.glBindBuffer(GL2.GL_ARRAY_BUFFER, 0);\n\t\t \n\t\t // normals\n\t\t\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, vboIds[3]);\n//\t\t\t\tSystem.out.println(\"vboIds \"+vboIds[0]+\" \"+vboIds[1]+\" \"+vboIds[2]);\n\t\t gl.glBufferData(GL.GL_ARRAY_BUFFER, normals.limit() * Buffers.SIZEOF_FLOAT, normals, GL.GL_STATIC_DRAW);\n\t\t gl.glBindBuffer(GL.GL_ARRAY_BUFFER, 0);\n\t\t \n\t\t\t}", "public void PRCRender() {\n if(rollOver) {\n object.getStyle().setFillColorFloat(20);\n } else if(dragging) {\n object.getStyle().setFillColorFloat(5);\n } else {\n object.style.setFillColorFloat(100);\n }\n object.render();\n }", "private void initRendering() {\n ring = new Ring(0.3f, 0.7f);\n line = new Line(ImageTargets.screenWidth / 2, ImageTargets.screenHeight / 2);\n state_txt = createObject(68f, state_txt_cx, state_txt_cy, R.drawable.state);\n state_img = createObject(120f, state_img_cx, state_img_cy, R.drawable.open);\n record_txt = createObject(68f, record_txt_cx, record_txt_cy, R.drawable.record_txt);\n record_img = createObject(95f, record_img_cx, record_img_cy, R.drawable.record_img);\n recog_txt = createObject(68f, recog_txt_cx, recog_txt_cy, R.drawable.recog_txt);\n recog_img = createObject(155, recog_img_cx, recog_img_cy, R.drawable.person);\n record_num = createObject(85, record_num_cx, record_num_cy, R.drawable.num);\n\n histogram = createHistogram(85, 275.0f, 1150, 2.0f);\n histogram1 = createHistogram(85, 405, 1150, 2.2f);\n histogram2 = createHistogram(85, 540, 1150, 2.58f);\n histogram3 = createHistogram(85, 675, 1150, 0.9f);\n mRenderer = Renderer.getInstance();\n\n GLES20.glClearColor(0.0f, 0.0f, 0.0f, Vuforia.requiresAlpha() ? 0.0f\n : 1.0f);\n setBgTransparent();\n //初始化纹理\n initTexture(res);\n mActivity.loadingDialogHandler\n .sendEmptyMessage(LoadingDialogHandler.HIDE_LOADING_DIALOG);\n\n }", "void draw() {\n scsw.draw();\n \n}", "@Override\r\n\t\t\t\tpublic void render(TwoDimensionBone object, Appendable appendable) throws IOException {\n\t\t\t\t\t\r\n\t\t\t\t}", "private void drawBox() {\n GLES20.glEnable(GLES20.GL_SCISSOR_TEST);\n GLES20.glScissor(0, 0, 100, 100);\n GLES20.glClearColor(1.0f, 0.0f, 0.0f, 1.0f);\n GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT);\n GLES20.glDisable(GLES20.GL_SCISSOR_TEST);\n }", "public static void test10(World w){\n\t\tUtilities.generateGeometry2(w.points ,w.pivots, \"Front.png\", \"Side.png\", 1900, 2500, 0, 0, 1/7.0);\r\n\t\t\r\n\t}", "private void paintHand3(Graphics2D gfx)\r\n {\n \r\n }", "public void init(SoState state)\n\n{\n // Set to GL defaults:\n// ivState.ambientColor.copyFrom( getDefaultAmbient());\n// ivState.emissiveColor.copyFrom( getDefaultEmissive());\n// ivState.specularColor.copyFrom( getDefaultSpecular());\n// ivState.shininess = getDefaultShininess();\n// ivState.colorMaterial = false;\n// ivState.blending = false;\n// ivState.lightModel = LightModel.PHONG.getValue();\n \n // Initialize default color storage if not already done\n if (defaultDiffuseColor == null) {\n defaultDiffuseColor = SbColorArray.allocate(1);\n defaultDiffuseColor.get(0).setValue(getDefaultDiffuse());\n defaultTransparency = new float[1];\n defaultTransparency[0] = getDefaultTransparency();\n defaultColorIndices = new int[1];\n defaultColorIndices[0] = getDefaultColorIndex();\n defaultPackedColor = new int[1];\n defaultPackedColor[0] = getDefaultPacked();\n }\n \n //following value will be matched with the default color, must\n //differ from 1 (invalid) and any legitimate nodeid. \n// ivState.diffuseNodeId = 0;\n// ivState.transpNodeId = 0;\n// //zero corresponds to transparency off (default).\n// ivState.stippleNum = 0;\n// ivState.diffuseColors = defaultDiffuseColor;\n// ivState.transparencies = defaultTransparency;\n// ivState.colorIndices = defaultColorIndices;\n// ivState.packedColors = defaultPackedColor;\n//\n// ivState.numDiffuseColors = 1;\n// ivState.numTransparencies = 1;\n// ivState.packed = false;\n// ivState.packedTransparent = false;\n// ivState.transpType = SoGLRenderAction.TransparencyType.SCREEN_DOOR.ordinal(); \n// ivState.cacheLevelSetBits = 0;\n// ivState.cacheLevelSendBits = 0;\n// ivState.overrideBlending = false;\n// \n// ivState.useVertexAttributes = false;\n//\n// ivState.drawArraysCallback = null;\n// ivState.drawElementsCallback = null; \n// ivState.drawArraysCallbackUserData = null;\n// ivState.drawElementsCallbackUserData = null; \n\n coinstate.ambient.copyFrom(getDefaultAmbient());\n coinstate.specular.copyFrom(getDefaultSpecular());\n coinstate.emissive.copyFrom(getDefaultEmissive());\n coinstate.shininess = getDefaultShininess();\n coinstate.blending = /*false*/0;\n coinstate.blend_sfactor = 0;\n coinstate.blend_dfactor = 0;\n coinstate.alpha_blend_sfactor = 0;\n coinstate.alpha_blend_dfactor = 0;\n coinstate.lightmodel = LightModel.PHONG.getValue();\n coinstate.packeddiffuse = false;\n coinstate.numdiffuse = 1;\n coinstate.numtransp = 1;\n coinstate.diffusearray = SbColorArray.copyOf(lazy_defaultdiffuse);\n coinstate.packedarray = IntArrayPtr.copyOf(lazy_defaultpacked);\n coinstate.transparray = FloatArray.copyOf(lazy_defaulttransp);\n coinstate.colorindexarray = IntArrayPtr.copyOf(lazy_defaultindex);\n coinstate.istransparent = false;\n coinstate.transptype = (int)(SoGLRenderAction.TransparencyType.BLEND.getValue());\n coinstate.diffusenodeid = 0;\n coinstate.transpnodeid = 0;\n coinstate.stipplenum = 0;\n coinstate.vertexordering = VertexOrdering.CCW.getValue();\n coinstate.twoside = false ? 1 : 0;\n coinstate.culling = false ? 1 : 0;\n coinstate.flatshading = false ? 1 : 0;\n coinstate.alphatestfunc = 0;\n coinstate.alphatestvalue = 0.5f;\n}", "@Override\n protected void paint2d(Graphics2D g) {\n \n }", "@Override\n\tpublic void init() {\n\t\tEffect().registerEffect(40, 40, 3, \"ExplosionSheet.png\");\n\t\tbg = new Background();\n\t\tobj = new TestObj();\n\t\tobj.init();\n\t\ttest = new Test2[50];\n\t\tfor(int x = 0; x < test.length; x++ )\n\t\t\ttest[x] = new Test2(x*30-600,30 *(float)Math.pow(-1, x), \"g.png\");\n\t\t\n\t\ttest2 = new Test2[50000];\n\t\tfor(int x = 0; x < test2.length; x++ )\n\t\t\ttest2[x] = new Test2(x*30-600,150+30 *(float)Math.pow(-1, x), \"AlienPawn.png\");\n\t\t\n\t\ttest3 = new Test2[50000];\n\t\tfor(int x = 0; x < test3.length; x++ )\n\t\t\ttest3[x] = new Test2(x*30-600,-200+30 *(float)Math.pow(-1, x), \"AlienPawn - Copy.png\");\n\t\n\t}", "@Override\n \t\t\t\tpublic void doCreateProjectedWater() {\n \n \t\t\t\t}", "private void prepare()\n {\n Block block = new Block(10);\n addObject(block,372,150);\n Wall wall = new Wall();\n addObject(wall,52,167);\n Wall wall2 = new Wall();\n addObject(wall2,160,167);\n Wall wall3 = new Wall();\n addObject(wall3,550,167);\n Wall wall4 = new Wall();\n addObject(wall4,650,167);\n Wall wall5 = new Wall();\n addObject(wall5,750,167);\n block.setLocation(306,171);\n Robot robot = new Robot();\n addObject(robot,48,51);\n Pizza pizza = new Pizza();\n addObject(pizza,550,60);\n Pizza pizza2 = new Pizza();\n addObject(pizza2,727,53);\n Pizza pizza3 = new Pizza();\n addObject(pizza3,364,303);\n Pizza pizza4 = new Pizza();\n addObject(pizza4,224,400);\n Pizza pizza5 = new Pizza();\n addObject(pizza5,622,395);\n ScorePanel scorePanel = new ScorePanel();\n addObject(scorePanel,106,525);\n Home home = new Home();\n addObject(home,717,521);\n\n block.setLocation(344,173);\n pizza3.setLocation(394,297);\n Pizza pizza6 = new Pizza();\n addObject(pizza6,711,265);\n Pizza pizza7 = new Pizza();\n addObject(pizza7,68,276);\n\n }", "private void doBeam(Vector3f start, Vector3f end, Vector3f up, float len, float spanWidth, Vector4f color) {\n boolean useSoftSprites = false;//Ref.glRef.srgbBuffer != null && Ref.glRef.r_softparticles.isTrue();\n CubeTexture tex = null; // depth\n\n Shader sh = Ref.glRef.getShader(\"Poly\");\n Ref.glRef.PushShader(sh);\n sh.setUniform(\"ModelView\", view.viewMatrix);\n sh.setUniform(\"Projection\", view.ProjectionMatrix);\n// if(useSoftSprites) {\n// // use soft particle shader\n// Ref.glRef.PushShader(softSprite);\n// softSprite.setUniform(\"res\", Ref.glRef.GetResolution());\n//\n// // Bind depth from FBO\n// int depth = Ref.glRef.srgbBuffer.getDepthTextureId();\n// tex = new CubeTexture(Ref.glRef.srgbBuffer.getTarget(), depth, null);\n// tex.textureSlot = 1;\n// tex.loaded = true;\n// tex.Bind();\n// }\n\n GL11.glDisable(GL11.GL_CULL_FACE);\n\n GL11.glDepthMask(false); // dont write to depth\n GL11.glBegin(GL11.GL_QUADS);\n {\n // Fancy pants shaders\n Vector3f v = Helper.VectorMA(start, spanWidth, up, null);\n GL20.glVertexAttrib2f(Shader.INDICE_COORDS, 1, 0);\n Helper.col(color);\n GL20.glVertexAttrib3f(Shader.INDICE_POSITION, v.x, v.y, v.z);\n\n Helper.VectorMA(start, -spanWidth, up, v);\n GL20.glVertexAttrib2f(Shader.INDICE_COORDS, 1, 1);\n Helper.col(color);\n GL20.glVertexAttrib3f(Shader.INDICE_POSITION, v.x, v.y, v.z);\n\n \n\n Helper.VectorMA(end, -spanWidth, up, v);\n GL20.glVertexAttrib2f(Shader.INDICE_COORDS, 0, 1);\n Helper.col(color);\n GL20.glVertexAttrib3f(Shader.INDICE_POSITION, v.x, v.y, v.z);\n\n Helper.VectorMA(end, spanWidth, up, v);\n GL20.glVertexAttrib2f(Shader.INDICE_COORDS, 0, 0);\n Helper.col(color);\n GL20.glVertexAttrib3f(Shader.INDICE_POSITION, v.x, v.y, v.z);\n }\n GL11.glEnd();\n GL11.glDepthMask(true);\n\n GL11.glEnable(GL11.GL_CULL_FACE);\n\n if(useSoftSprites) {\n tex.Unbind();\n Ref.glRef.PopShader();\n }\n Ref.glRef.PopShader();\n }", "public void act() \n {\n // Add your action code here.\n if (Greenfoot.mouseClicked(this)){\n World myWorld = getWorld();\n List<Crab> crabs = myWorld.getObjects(Crab.class);\n for(Crab c : crabs){\n // int y = Greenfoot.getRandomNumber(560);\n // int x = Greenfoot.getRandomNumber(560);\n //c.setLocation(x,y);\n // myWorld.removeObjects(crabs);\n }\n \n /*\n Crab c = new Crab();\n int y = Greenfoot.getRandomNumber(560);\n int x = Greenfoot.getRandomNumber(560);\n myWorld.addObject(c, x, y);\n */\n \n }\n}", "public void renderImage() {\n Camera camera = scene.getCamera();//fot the function thats in the camera.constr.. to build the rays.\n Intersectable geometries = scene.getGeometries();//list of geomertries for the functon in geometries.findinter..\n java.awt.Color background = scene.getBackground().getColor();\n double distance = scene.getDistance();\n\n\n int width = (int) imageWriter.getWidth(); //width of the view plane\n int height = (int) imageWriter.getHeight();//height of the view plane\n int Nx = imageWriter.getNx(); // number of squares in the Row (shura). we need it for the for\n int Ny = imageWriter.getNy(); //number of squares in the column.(amuda). we need it for the for\n\n /**for each pixel we will send ray, and with the function findIntersection\n * we will get the Geo points(point 3d, color).\n * if we got nothing so we will color with the back round color\n * if we got the GeoPoints We will send to the function getClosestPoint and color*/\n Color pixelColor;\n for (int row = 0; row < Ny; ++row) {\n for (int column = 0; column < Nx; ++column) {\n if (amountRays > 1) { //if there is superSampling\n List<Ray> rays = camera.constructNRaysThroughPixel(Nx, Ny, column, row, distance, width, height,superSamplingRate, amountRays);\n Color averageColor;\n pixelColor = scene.getBackground();\n for (Ray ray : rays) {//for each ray from the list give the list of intersection geo-points.\n List<GeoPoint> intersectionPoints = geometries.findGeoIntersections(ray);\n averageColor = scene.getBackground();\n if (intersectionPoints != null) {\n GeoPoint closestPoint = getClosestPoint(intersectionPoints);//get the closest point for each ray.\n averageColor = calcColor(closestPoint, ray);//calculate the color and put in averageColor\n }\n pixelColor = pixelColor.add(averageColor);//befor we go to the next ray we add the averageColor to pixelColor.\n }\n pixelColor = pixelColor.reduce(rays.size());//we are doing the (memuza) and that is the color of that pixel.\n }\n else {//if there is no supersampling\n Ray ray = camera.constructRayThroughPixel(Nx, Ny, column, row, distance, width, height);\n List<GeoPoint> intersectionPoints = geometries.findGeoIntersections(ray);\n pixelColor = scene.getBackground();\n if (intersectionPoints != null) {\n GeoPoint closestPoint = getClosestPoint(intersectionPoints);\n pixelColor = calcColor(closestPoint, ray);\n }\n }\n imageWriter.writePixel(column, row, pixelColor.getColor());\n }\n }\n }", "protected void\ngeneratePrimitives(SoAction action)\n//\n////////////////////////////////////////////////////////////////////////\n{\n\t SoMaterialBindingElement.Binding binding =\n\t SoMaterialBindingElement.get(action.getState());\n\n\t boolean materialPerPart =\n\t (binding == SoMaterialBindingElement.Binding.PER_PART ||\n\t binding == SoMaterialBindingElement.Binding.PER_PART_INDEXED ||\n\t binding == SoMaterialBindingElement.Binding.PER_FACE ||\n\t binding == SoMaterialBindingElement.Binding.PER_FACE_INDEXED);\n\n\t int flags = 0;\n\t if (materialPerPart) flags |= SoGenerate.SOGEN_MATERIAL_PER_PART;\n\t SoGenerate.sogen_generate_cube(this.width.getValue(),\n\t this.height.getValue(),\n\t this.depth.getValue(),\n\t flags,\n\t this,\n\t action);\n\t}", "void mo21067a(Surface surface);", "public Pencil() {\n\n }", "public void strength1(float x, float y){\n noStroke();\n fill(80);\n rect(x+7,y,66,6);\n bezier(x+7,y,x,y+1,x,y+5,x+7,y+6);\n bezier(x+73,y,x+80,y+1,x+80,y+5,x+73,y+6);\n rect(x+7,y+1,13,3);//1st blue ba\n bezier(x+7,y+1,x+1,y+2.5f,x+1,y+3.5f,x+7,y+4);\n}", "public static void setScene() {\n\n Shape ground = new Plane(vec3(0.0, -1.0, 0.0), vec3(0, 1, -0.2), new Diffuse(new Vec3(1,1,1), white));\n \n /* Shape globe1 = new Sphere(vec3(0.0, 2, -6.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.5, 0.5, 0.5)));\n Shape globe2 = new Sphere(vec3(2, 0, -6.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.5, 0.5, 0.5)));\n Shape globe3 = new Sphere(vec3(-2, 0, -6.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.5, 0.5, 0.5)));\n*/\n Shape globe1T = new Sphere(vec3(0.0, 2, -2.0), 0.3, new Diffuse(new Vec3(1,1,1), white));\n // Shape globe2T = new Sphere(vec3(-0.5, -2, -3.0), 0.5, new Diffuse(new Vec3(1,1,1),yellow));\n // Shape globe3T = new Sphere(vec3(0.5, -2, -3.0), 0.5, new Diffuse(new Vec3(1,1,1), yellow));\n\n \n \n Shape globe4 = new Sphere(vec3(0.0, 2, -4.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.3, 0.3, 0.3)));\n Shape globe5 = new Sphere(vec3(2, 0, -4.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.3, 0.3, 0.3)));\n Shape globe6 = new Sphere(vec3(-2, 0, -4.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.3, 0.3, 0.3)));\n \n Shape globe7 = new Sphere(vec3(0.0, 2, -8.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.7, 0.7, 0.7)));\n Shape globe8 = new Sphere(vec3(2, 0, -8.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.7, 0.7, 0.7)));\n Shape globe9 = new Sphere(vec3(-2, 0, -8.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.7, 0.7, 0.7)));\n Shape globe7D = new Sphere(vec3(0.0, -2, -8.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.7, 0.7, 0.7)));\n\n Shape globeC = new Sphere(vec3(0.0, 0.0, -6.0), 1.0, new Diffuse(new Vec3(1,1,1), red));\n \n ArrayList<Shape> shapes = new ArrayList<>();\n shapes.add(bg);\n shapes.add(ground);\n shapes.add(globe1T);\n // shapes.add(globe2T);\n // shapes.add(globe3T);\n //shapes.add(globe4);\n //shapes.add(globe5);\n shapes.add(globe7);\n shapes.add(globe8);\n shapes.add(globe9);\n shapes.add(globe7D);\n shapes.add(globeC);\n gr = new Group(shapes);\n /////////////////////////////--------------------------------------\n \n \n }", "@Override // the one in displayable. i don't even use this one\n // draws armor on the objectGrid\n public void draw(ObjectDisplayGrid objectGrid){\n Char armor = new Char(']'); // char representing a Scroll\n objectGrid.addObjectToDisplay(armor, posX, posY); // don't fix what isn't broken\n // should be armor though ??\n }", "void impact(GameObject object) {\n\n }", "Obj(double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3){\t// CAMBIAR LAS COORDENADAS X,Y,Z CON 0,1 PARA CONSTRUIR PRISMA, CILINDRO, PIRAMIDE, CONO Y ESFERA.\n w\t= new Point3D[4];\n\tvScr\t= new Point2D[4];\n \n w[0]\t= new Point3D(0, 0, 0); // desde la base\n\tw[1]\t= new Point3D(x1, y1, z1);\n\tw[2]\t= new Point3D(x2, y2, z2);\n\tw[3]\t= new Point3D(x3, y3, z3);\n \n\tobjSize = (float) Math.sqrt(12F); \n rho\t= 5 * objSize;\n }", "void m21809e(Object obj);", "public void create()\n/* 342: */ {\n/* 343:422 */ setupPlainVariables_xjal();\n/* 344: */ \n/* 345:424 */ this.presentation = new ShapeTopLevelPresentationGroup(this, true, 0.0D, 0.0D, 0.0D, 0.0D, new Object[0]);\n/* 346:425 */ this.icon = new ShapeGroup(this, true, 0.0D, 0.0D, 0.0D, new Object[0]);\n/* 347: */ \n/* 348: */ \n/* 349:428 */ assignInitialConditions_xjal();\n/* 350:429 */ onCreate();\n/* 351: */ }", "@Override\n\tprotected void on_object_picked_up(GfxObject object) {\n\n\t}", "@Override\n public void onSurfaceCreated(GL10 unused, javax.microedition.khronos.egl.EGLConfig config) {\n GLES20.glClearColor(Player.colorBG[0], Player.colorBG[1], Player.colorBG[2], 1.0f);\n // initialize a triangle\n mHat = new Hat();\n robe = new Robe();\n // initialize a square\n mSquare = new Square(Player.PLAYER_ONE);\n mHat2 = new Hat();\n robe2 = new Robe();\n // initialize a square\n mSquare2 = new Square(Player.PLAYER_TWO);\n\n\n\n float[] colorWhite = {1f, 1f, 1f, 1.0f};\n p1Eye = new Circle(colorWhite);\n p2Eye = new Circle(colorWhite);\n\n }", "@Override\n\tprotected void draw(Canvas canvas) {\t\tcanvas.setColor(Color.DARK_GREEN);\n\t\tcanvas.drawRectangle(getBounds());\n\t\t\n/*\t\tRectangle originalClipping = canvas.getClipping();\n\t\tcanvas.setClipping(getBounds());\n\t\t\n\t\tTransformation originalTransformation = canvas.getTransformation();\n\n\t\tdrawWorld(new ShadowCanvas(canvas));\n\t\t\n\t\tcanvas.setAlpha(1.0f);\n\t\tcanvas.setTransformation(originalTransformation);\n\t\tcanvas.setClipping(getBounds());\n\t\t\n\t\tdrawWorld(canvas);\n\t\t\n\t\tcanvas.setClipping(originalClipping);\n*/\t}", "@Override\n public void clearStencilBuffer() {\n GL11.glClearStencil(0);\n GL11.glStencilMask(~0);\n GL11.glDisable(GL11.GL_DITHER);\n GL11.glEnable(GL11.GL_SCISSOR_TEST);\n GL11.glScissor(0, 0, getWidth(), getHeight());\n GL11.glClear(GL11.GL_STENCIL_BUFFER_BIT);\n GL11.glDisable(GL11.GL_SCISSOR_TEST);\n }", "public void renderWorldBlock(bbb renderblocks, ym iba, int i, int j, int k, int md)\r\n/* 26: */ {\r\n/* 27: 26 */ int cons = 0;\r\n/* 28: 27 */ TilePipe tt = (TilePipe)CoreLib.getTileEntity(iba, i, j, k, TilePipe.class);\r\n/* 29: 29 */ if (tt == null) {\r\n/* 30: 29 */ return;\r\n/* 31: */ }\r\n/* 32: 31 */ this.context.exactTextureCoordinates = true;\r\n/* 33: 32 */ this.context.setTexFlags(55);\r\n/* 34: 33 */ this.context.setTint(1.0F, 1.0F, 1.0F);\r\n/* 35: 34 */ this.context.setPos(i, j, k);\r\n/* 36: 35 */ if (tt.CoverSides > 0)\r\n/* 37: */ {\r\n/* 38: 36 */ this.context.readGlobalLights(iba, i, j, k);\r\n/* 39: 37 */ renderCovers(tt.CoverSides, tt.Covers);\r\n/* 40: */ }\r\n/* 41: 40 */ cons = PipeLib.getConnections(iba, i, j, k);\r\n/* 42: */ \r\n/* 43: */ \r\n/* 44: */ \r\n/* 45: 44 */ this.context.setBrightness(this.block.e(iba, i, j, k));\r\n/* 46: */ \r\n/* 47: 46 */ this.context.setLocalLights(0.5F, 1.0F, 0.8F, 0.8F, 0.6F, 0.6F);\r\n/* 48: 47 */ this.context.setPos(i, j, k);\r\n/* 49: */ \r\n/* 50: 49 */ RenderLib.bindTexture(\"/eloraam/machine/machine1.png\");\r\n/* 51: */ \r\n/* 52: */ \r\n/* 53: */ \r\n/* 54: */ \r\n/* 55: */ \r\n/* 56: */ \r\n/* 57: */ \r\n/* 58: */ \r\n/* 59: */ \r\n/* 60: */ \r\n/* 61: */ \r\n/* 62: */ \r\n/* 63: */ \r\n/* 64: 63 */ renderCenterBlock(cons, 26, 28);\r\n/* 65: */ \r\n/* 66: 65 */ tt.cacheFlange();\r\n/* 67: 66 */ renderFlanges(tt.Flanges, 27);\r\n/* 68: */ \r\n/* 69: 68 */ RenderLib.unbindTexture();\r\n/* 70: */ }", "void visualize(Object o) {\n\t\tif (o == null) {\n\t\t\to = new NullObject();\n\t\t}\n\n\t\tScratch scratch = scratchFactory.create(o);\n\t\tscratch.addCSSClass(\"printOut\");\n\n\t\tvisualizeScratch(scratch);\n\t}", "public void spawnWanderingSeeker(LogicEngine in_logicEngine)\r\n\t{\n\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/triangle.png\",(float)LogicEngine.SCREEN_WIDTH*Math.random(),LogicEngine.SCREEN_HEIGHT-10,0);\r\n\t\t\t\t\r\n\t\t//set animation frame\r\n\t\tship.i_animationFrame=1;\r\n\t\tship.i_animationFrameRow=0;\r\n\t\tship.i_animationFrameSizeWidth=16;\r\n\t\tship.i_animationFrameSizeHeight=16;\r\n\t\t\r\n\t\t//wander \t\r\n\t\tCustomBehaviourStep cb = new CustomBehaviourStep(new Wander(-2.5,2.5,20,0.1));\r\n\t\tship.stepHandlers.add( cb);\r\n\t\t\r\n\t\t//chase player if on medium or hard\r\n\t\tif(Difficulty.difficulty == DIFFICULTY.MEDIUM || \r\n\t\t\t\tDifficulty.difficulty == DIFFICULTY.HARD)\r\n\t\t{\t\r\n\t\t\tSeekNearestPlayerStep sps = new SeekNearestPlayerStep(100);\r\n\t\t\tship.stepHandlers.add(sps);\r\n\t\t}\r\n\t\r\n\t\tship.stepHandlers.add(new FlyStraightStep(new Vector2d(0,-2)));\r\n\t\tship.collisionHandler = new DestroyIfEnemyCollision(ship, 10, true);\r\n\t\tship.v.setMaxForce(2);\r\n\t\tship.v.setMaxVel(2);\r\n\t\t\r\n\t\tship.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\t\t\r\n\t\tin_logicEngine.objectsEnemies.add(ship);\r\n\t\t\r\n\t}", "public void resetTool() {\n myPencil = new Path2D.Double(); \n }", "public World (){\n\t\tpattern = new ShapePattern (PATTERN_SIZE);\n\t\tscroll = new ShapeScroll (SCROLL_SIZE);\n\t}", "public void uk(){\n stroke(1);\n //back guns\n fill(0);\n rect(73,192,4,15);\n rect(224,192,4,15);\n rect(71,207,8,15);\n rect(222,207,8,15);\n rect(66,207,3,15);\n rect(232,207,3,17);\n rect(122,109,4,15);\n rect(175,110,4,15);\n rect(121,120,6,15);\n rect(174,120,6,15);\n rect(116,124,3,15);\n rect(182,124,3,15);\n\n //wings--england\n fill(1,0,74);//dark blue\n beginShape();\n vertex(14,286);\n vertex(61,236);\n vertex(88,308);\n vertex(51,334);\n vertex(14,313);\n endShape(CLOSE);\n beginShape();\n vertex(286,287);\n vertex(286,312);\n vertex(247,335);\n vertex(212,309);\n vertex(238,238);\n endShape(CLOSE);\n\n noStroke();\n fill(255);\n rect(15,286,74,20);\n rect(212,284,74,20);\n rect(48,248,20,74);\n rect(233,248,20,74);\n quad(26,272,35,260,83,312,72,320);\n quad(262,260,272,272,229,312,220,318);\n quad(25,318,38,328,85,278,75,263);\n quad(264,324,280,316,228,262,214,274);\n\n fill(207,20,43);\n rect(51,248,15,74);\n rect(235,247,15,74);\n rect(15,289,74,15);\n rect(211,286,74,15);\n\n stroke(1);\n fill(0);//white\n beginShape();\n vertex(38,307);\n vertex(74,307);\n vertex(80,314);\n vertex(81,337);\n vertex(68,345);\n vertex(38,327);\n endShape(CLOSE);\n beginShape();\n vertex(219,316);\n vertex(226,308);\n vertex(262,308);\n vertex(262,326);\n vertex(231,345);\n vertex(219,336);\n endShape(CLOSE);\n\n fill(0,36,125);//red\n beginShape();\n vertex(96,191);\n vertex(61,230);\n vertex(60,269);\n vertex(96,312);\n vertex(101,300);\n vertex(100,247);\n vertex(112,232);\n vertex(132,232);\n vertex(131,186);\n endShape(CLOSE);\n beginShape();\n vertex(204,191);\n vertex(240,230);\n vertex(240,270);\n vertex(205,312);\n vertex(200,302);\n vertex(200,248);\n vertex(193,238);\n vertex(185,231);\n vertex(170,230);\n vertex(170,186);\n endShape(CLOSE);\n\n //gray\n fill(200);\n beginShape();\n vertex(70,217);\n vertex(74,220);\n vertex(81,210);\n vertex(85,213);\n vertex(75,227);\n vertex(72,229);\n vertex(71,231);\n vertex(73,233);\n vertex(73,268);\n vertex(71,272);\n vertex(76,277);\n vertex(82,274);\n vertex(89,283);\n vertex(90,297);\n vertex(66,272);\n vertex(65,235);\n vertex(68,229);\n vertex(62,228);\n endShape(CLOSE);\n beginShape();\n vertex(228,217);\n vertex(225,218);\n vertex(218,211);\n vertex(215,213);\n vertex(223,227);\n vertex(226,226);\n vertex(230,230);\n vertex(227,233);\n vertex(228,270);\n vertex(229,272);\n vertex(223,276);\n vertex(218,276);\n vertex(210,283);\n vertex(211,296);\n vertex(235,273);\n vertex(234,233);\n vertex(232,228);\n vertex(237,227);\n endShape(CLOSE);\n\n //guns\n //white\n fill(200);\n beginShape();\n vertex(121,301);\n vertex(98,313);\n vertex(102,336);\n vertex(119,342);\n vertex(139,336);\n vertex(141,313);\n endShape(CLOSE);//l\n beginShape();\n vertex(159,312);\n vertex(162,336);\n vertex(180,342);\n vertex(200,336);\n vertex(202,313);\n vertex(180,302);\n endShape(CLOSE);\n\n //black\n fill(0);\n rect(105,315,30,30);\n rect(166,315,30,30);\n quad(105,344,109,355,131,355,135,344);\n quad(166,344,170,355,192,355,196,344);\n\n fill(207,20,43);\n rect(103,253,33,62);//l\n rect(164,252,33,62);//r\n\n fill(200);\n bezier(103,252,107,230,132,230,136,252);//l\n bezier(164,252,169,230,192,230,197,252);//r\n rect(103,280,33,25);//l\n rect(164,280,33,25);//r\n fill(0,36,125);\n rect(104,319,33,26,3);//l\n rect(165,319,33,26,3);//r\n fill(200);\n rect(115,310,7,28,8);//l\n rect(178,310,7,28,8);//r\n\n fill(0,0,67);\n rect(105,284,10,15);\n rect(124,284,10,15);\n rect(167,285,10,15);\n rect(185,284,10,15);\n\n //body-wings\n\n fill(0,0,67);//blue\n bezier(107,154,101,162,98,169,98,187);\n bezier(191,153,199,164,202,172,203,187);\n quad(107,154,98,186,98,223,107,224);\n quad(191,153,203,186,202,223,192,223);\n fill(0,36,125);//red\n quad(134,112,108,147,107,239,132,230);\n quad(165,112,192,147,193,239,168,230);\n //black\n fill(0);\n quad(130,122,130,142,111,164,111,147);\n quad(169,122,188,147,188,165,169,144);\n //white\n fill(200);\n beginShape();\n vertex(131,154);\n vertex(129,202);\n vertex(118,202);\n vertex(112,181);\n vertex(110,179);\n vertex(110,171);\n endShape(CLOSE);\n beginShape();\n vertex(170,154);\n vertex(190,172);\n vertex(190,182);\n vertex(188,181);\n vertex(182,201);\n vertex(172,201);\n endShape(CLOSE);\n\n\n fill(0,36,125);\n quad(134,193,166,193,154,342,146,342);\n fill(192,0,11);\n quad(142,180,159,180,152,352,148,352);\n //white\n fill(200);\n ellipse(150,374,6,50);\n\n //head\n\n fill(1,1,75);\n ellipse(149.5f,72,33,25);\n ellipse(149.5f,94,30,170);\n fill(0);\n ellipse(149.5f,94,20,160);\n fill(154,155,84);\n ellipse(149.5f,94,17,77);\n strokeWeight(2);\n line(143,74,158,74);\n line(142,104,158,104);\n strokeWeight(1);\n fill(200);\n bezier(143,15,147,2,153,2,155.5f,15);\n}", "private void DrawBraid(GL gl, float x, float y, float size,\n\t\t\tfloat r, float g, float b) {\n\n float reflected_x=0, reflected_y=0;\n float reflected_vector_angle=0, reflected_image_angle=0, reflected_rotate=0;\n\n // Degeneracy = do not want\n\t\tif (m_length == 0.0f || m_width == 0.0f) {\n\t\t\treturn;\n\t\t}\n\n\t\t////int mct = (int) (1 / this.GetPEngine().m_uniscale);\n\t\t////mct = (mct / 2) / 100 * 100;\n\n //Do the reflection\n if(m_x_reflection==0 && m_y_reflection==0)\n {\n reflected_x=x;\n reflected_y=y;\n reflected_image_angle=m_slope;\n reflected_vector_angle=m_slope;\n reflected_rotate= m_rotate;\n }\n else if(m_x_reflection==1 && m_y_reflection==0)\n {\n reflected_x=x;\n reflected_y=-y;\n reflected_image_angle=90-m_slope;\n reflected_vector_angle=-m_slope;\n reflected_rotate= -m_rotate;\n }\n else if(m_x_reflection==0 && m_y_reflection==1)\n {\n reflected_x=-x;\n reflected_y=y;\n reflected_image_angle=-90-m_slope;\n reflected_vector_angle=180-m_slope;\n reflected_rotate= -m_rotate;\n }\n else if(m_x_reflection==1 && m_y_reflection==1)\n {\n reflected_x=-x;\n reflected_y=-y;\n reflected_image_angle=m_slope-180;\n reflected_vector_angle=m_slope+180;\n reflected_rotate= m_rotate;\n }\n\n\t\tfloat start_image_theta = (float) Math.toRadians(reflected_image_angle);\n \t\tfloat start_vector_theta = (float) Math.toRadians(reflected_vector_angle);\n\t\tfloat rotate_theta = (float) Math.toRadians(reflected_rotate);\n\t\tfloat cur_image_theta = 0f, cur_vector_theta = 0f;\n\t\tdouble image_costheta = 0, vector_costheta = 0;\n\t\tdouble image_sintheta = 0, vector_sintheta = 0;\n\t\tfloat xP = 0f;\n\t\tfloat yP = 0f;\n\t\tfloat xO = 0f, nextXO = 0f;\n\t\tfloat yO = 0f, nextYO = 0f;\n\n\t\t//if (txt == null) {\n\t\t//\ttxt = load(\"img/plaitWhite.png\");\n\t\t//}\n\t\tTextureCoords tc = m_txt.getImageTexCoords();\n\t\txO = nextXO = reflected_x;\n\t\tyO = nextYO = reflected_y;\n xP = m_cx * m_starting_dilation;\n\t\tyP = m_cy * m_starting_dilation;\n //vector\n\t\tcur_vector_theta = start_vector_theta;\n vector_costheta = Math.cos(cur_vector_theta);\n\t\tvector_sintheta = Math.sin(cur_vector_theta);\n //image\n cur_image_theta = start_image_theta;\n\t\timage_costheta = Math.cos(cur_image_theta);\n\t\timage_sintheta = Math.sin(cur_image_theta);\n\t\t\n\t\tfor (int i = 0; i < Iteration; i++) {\t\t\t\n DrawPlait(gl, xO, yO, xP / 2, yP / 2, image_costheta, image_sintheta, tc);\n\t\t\t//vector\n cur_vector_theta += rotate_theta;\n\t\t\tvector_costheta = Math.cos(cur_vector_theta);\n\t\t\tvector_sintheta = Math.sin(cur_vector_theta);\n //image\n\t\t\tcur_image_theta += rotate_theta;\n\t\t\timage_costheta = Math.cos(cur_image_theta);\n\t\t\timage_sintheta = Math.sin(cur_image_theta);\n //next centor position\n\t\t\tnextXO = xO + (float) (xP * m_translate * vector_costheta);\n\t\t\tnextYO = yO + (float) (yP * m_translate * vector_sintheta);\n\t\t\tif (m_vector) {\n\t\t\t\tDrawVector(gl, xO, yO, nextXO, nextYO, xP, cur_vector_theta);\n\t\t\t}\n\t\t\txO = nextXO;\n\t\t\tyO = nextYO;\n\t\t\txP *= m_dilate;\n\t\t\tyP *= m_dilate;\n\t\t}\n\t}", "BasicObject(int posX,int posY,int velX,int velY, int accX, int accY, int classOfObejct){\n this.posX = posX;\n this.posY = posY;\n this.velX = velX;\n this.velY = velY;\n this.accX = accX;\n this.accY = accY;\n this.classOfObejct = classOfObejct;\n }", "void m21807c(Object obj);", "void drawBones(){\n\t for(Skeleton s : skeletons){\n\t drawBones(s.frame);\n\t }\n\t}", "void m21806b(Object obj);", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public static void test1() {\n int n1 = 100, n2 = 100, n3 = 100;\n float v = 1.0f, d = 20.0f;\n float[][][] paint = new float[n3][n2][n1];\n /*\n for (int i3=0; i3<n3; ++i3) {\n for (int i2=0; i2<n2; ++i2) {\n for (int i1=0; i1<n1; ++i1) {\n if (i3<n3/2) cae.paint[i3][i2][i1] = 1.0f;\n }\n }\n }\n */\n Painting3Group p3g = new Painting3Group(paint);\n SphereBrush pb = new SphereBrush();\n Painting3 p3 = p3g.getPainting3();\n// p3.paintAt(50,60,50,v,d,pb);\n// p3.paintAt(50,50,50,v,d,pb);\n// p3.paintAt(50,50,50,v,d,pb);\n p3.paintAt(50,50,50,v,d,pb);\n Contour c = p3.getContour(v);\n\n SimpleFrame sf = new SimpleFrame();\n sf.setTitle(\"Formation\");\n World world = sf.getWorld();\n TriangleGroup tg = new TriangleGroup(c.i,c.x);\n world.addChild(tg);\n sf.setSize(1250,900);\n }", "void draw() {\n\t\t// display debug information\n\t\t// if (debugMode)\n\t\t// displayDebugInformation();\n\n\t\tupdate();\n\t\trender(); // display freetransform points, lines and colorings\n\n\t\t// display opposite objects\n\t\t// displayOppositeObject();\n\t}", "void mo3207a(Object obj);", "public void RenderObject(int[] obj_pixel_data, int obj_xPos, int obj_yPos, int obj_width, int obj_height) {\n\t\t// Go through the objects pixel data blending it with the current screen back buffer pixel data\n\t\tfor (int y = 0; y < obj_height; y++) {\n\t\t\tint screenY = y + obj_yPos + camera_yPos;\n\t\t\tfor (int x = 0; x < obj_width; x++) {\n\t\t\t\tint screenX = x + obj_xPos + camera_xPos;\n\t\t\t\t// calculate the pixel indexes for both the obj and the back buffer\n\t\t\t\tint obj_pixelIndex = x + y * obj_width,\n\t\t\t\t\tbuff_pixelIndex = screenX + screenY * width;\n\t\t\t\t// make sure this value is within the screen\n\t\t\t\tif ((screenY >= 0 && screenY < height && screenX >= 0 && screenX < width)) {\n\t\t\t\t\t// extra sanity check to make sure the buffer is not exceeded\n\t\t\t\t\tif (buff_pixelIndex >= 0 && buff_pixelIndex < pixel_data.length) {\n\t\t\t\t\t\tpixel_data[buff_pixelIndex] = Blend(pixel_data[buff_pixelIndex], obj_pixel_data[obj_pixelIndex]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n Pen pen = new Pen();\n System.out.println(pen.color);\n System.out.println(pen.type);\n System.out.println(pen.point); //These are 3 attributes of a pen;\n\n// OOPHeadphones headphones = new OOPHeadphones();\n// System.out.println(headphones.charge);\n// System.out.println(headphones.color);\n// System.out.println(headphones.arr.length);\n\n\n\n\n }", "public void russia(){\n stroke(1);\n //back guns\n fill(0);\n rect(73,192,4,15);\n rect(224,192,4,15);\n rect(71,207,8,15);\n rect(222,207,8,15);\n rect(66,207,3,15);\n rect(232,207,3,17);\n rect(122,109,4,15);\n rect(175,110,4,15);\n rect(121,120,6,15);\n rect(174,120,6,15);\n rect(116,124,3,15);\n rect(182,124,3,15);\n\n //wings\n fill(165,0,0);//gray\n beginShape();\n vertex(14,286);\n vertex(61,236);\n vertex(88,308);\n vertex(51,334);\n vertex(14,313);\n endShape(CLOSE);\n beginShape();\n vertex(286,287);\n vertex(286,312);\n vertex(247,335);\n vertex(212,309);\n vertex(238,238);\n endShape(CLOSE);\n\n fill(0);//black\n beginShape();\n vertex(38,307);\n vertex(74,307);\n vertex(80,314);\n vertex(81,337);\n vertex(68,345);\n vertex(38,327);\n endShape(CLOSE);\n beginShape();\n vertex(219,316);\n vertex(226,308);\n vertex(262,308);\n vertex(262,326);\n vertex(231,345);\n vertex(219,336);\n endShape(CLOSE);\n\n fill(18,39,148);//blue\n beginShape();\n vertex(96,191);\n vertex(61,230);\n vertex(60,269);\n vertex(96,312);\n vertex(101,300);\n vertex(100,247);\n vertex(112,232);\n vertex(132,232);\n vertex(131,186);\n endShape(CLOSE);\n beginShape();\n vertex(204,191);\n vertex(240,230);\n vertex(240,270);\n vertex(205,312);\n vertex(200,302);\n vertex(200,248);\n vertex(193,238);\n vertex(185,231);\n vertex(170,230);\n vertex(170,186);\n endShape(CLOSE);\n\n //white\n fill(200);\n beginShape();\n vertex(70,217);\n vertex(74,220);\n vertex(81,210);\n vertex(85,213);\n vertex(75,227);\n vertex(72,229);\n vertex(71,231);\n vertex(73,233);\n vertex(73,268);\n vertex(71,272);\n vertex(76,277);\n vertex(82,274);\n vertex(89,283);\n vertex(90,297);\n vertex(66,272);\n vertex(65,235);\n vertex(68,229);\n vertex(62,228);\n endShape(CLOSE);\n beginShape();\n vertex(228,217);\n vertex(225,218);\n vertex(218,211);\n vertex(215,213);\n vertex(223,227);\n vertex(226,226);\n vertex(230,230);\n vertex(227,233);\n vertex(228,270);\n vertex(229,272);\n vertex(223,276);\n vertex(218,276);\n vertex(210,283);\n vertex(211,296);\n vertex(235,273);\n vertex(234,233);\n vertex(232,228);\n vertex(237,227);\n endShape(CLOSE);\n\n //guns\n //red\n fill(194,24,11);\n beginShape();\n vertex(121,301);\n vertex(98,313);\n vertex(102,336);\n vertex(119,342);\n vertex(139,336);\n vertex(141,313);\n endShape(CLOSE);//l\n beginShape();\n vertex(159,312);\n vertex(162,336);\n vertex(180,342);\n vertex(200,336);\n vertex(202,313);\n vertex(180,302);\n endShape(CLOSE);\n\n //black\n fill(0);\n rect(105,315,30,30);\n rect(166,315,30,30);\n quad(105,344,109,355,131,355,135,344);\n quad(166,344,170,355,192,355,196,344);\n\n rect(103,253,33,62);//l\n rect(164,252,33,62);//r\n //white\n fill(200);\n bezier(103,252,107,230,132,230,136,252);//l\n bezier(164,252,169,230,192,230,197,252);//r\n\n rect(103,280,33,25);//l\n rect(164,280,33,25);//r\n rect(104,319,33,26,3);//l\n rect(165,319,33,26,3);//r\n fill(194,24,11);\n rect(115,310,7,28,8);//l\n rect(178,310,7,28,8);//r\n\n fill(194,24,11);\n rect(105,284,10,15);\n rect(124,284,10,15);\n rect(167,285,10,15);\n rect(185,284,10,15);\n\n //body-wings\n\n fill(0,0,67);//blue\n bezier(107,154,101,162,98,169,98,187);\n bezier(191,153,199,164,202,172,203,187);\n quad(107,154,98,186,98,223,107,224);\n quad(191,153,203,186,202,223,192,223);\n fill(192,0,11);//red\n quad(134,112,108,147,107,239,132,230);\n quad(165,112,192,147,193,239,168,230);\n //black\n fill(0);\n quad(130,122,130,142,111,164,111,147);\n quad(169,122,188,147,188,165,169,144);\n //white\n fill(200);\n beginShape();\n vertex(131,154);\n vertex(129,202);\n vertex(118,202);\n vertex(112,181);\n vertex(110,179);\n vertex(110,171);\n endShape(CLOSE);\n beginShape();\n vertex(170,154);\n vertex(190,172);\n vertex(190,182);\n vertex(188,181);\n vertex(182,201);\n vertex(172,201);\n endShape(CLOSE);\n\n fill(0);\n quad(134,193,166,193,154,342,146,342);\n fill(192,0,11);\n quad(142,180,159,180,152,352,148,352);\n //white\n fill(200);\n ellipse(150,374,6,50);\n\n //head\n fill(160,0,0);\n ellipse(149.5f,72,33,25);\n ellipse(149.5f,94,30,170);\n fill(0);\n ellipse(149.5f,94,20,160);\n fill(154,155,84);\n ellipse(149.5f,94,17,77);\n strokeWeight(2);\n line(143,74,158,74);\n line(142,104,158,104);\n strokeWeight(1);\n fill(200);\n bezier(143,15,147,2,153,2,155.5f,15);\n}", "Sketch apex();", "public void update() { \r\n // create container\r\n Element container = createContainer(root.actual(), name, \r\n wiz.getTotalWidth(), wiz.getTotalHeight());\r\n \r\n if (root.isType(OBJECTS)) {\r\n setAttributeIfMissing(container, POS_X, \"0\");\r\n setAttributeIfMissing(container, POS_Y, \"0\"); \r\n }\r\n \r\n // create background circle\r\n int startAng = wiz.getStartAngle();\r\n int endAng = wiz.getEndAngle();\r\n Element ellipse; \r\n ellipse = createEllipse(container, \"background\", wiz.getBackgroundWidth(), wiz.getBackgroundWidth(),\r\n startAng, endAng,\r\n wiz.getFillAttribute(), wiz.getLineAttribute(), !wiz.isCuttedCircle()); \r\n setIncludeAttributes(ellipse, (wiz.getTotalWidth() - wiz.getBackgroundWidth()) / 2, \r\n (wiz.getTotalHeight() - wiz.getBackgroundWidth()) / 2);\r\n \r\n //create meter \r\n int minVal = (int) (wiz.getMinValue() / wiz.getScale()) - wiz.getOffset();\r\n int maxVal = (int) (wiz.getMaxValue() / wiz.getScale()) - wiz.getOffset();\r\n Element meter = createMeter(container, \"metercomp\", wiz.getMeterWidth(), \r\n startAng, endAng, minVal, maxVal,\r\n wiz.getValue(), wiz.getTicks(), wiz.isClockwise(),\r\n wiz.getNeedleColor(), wiz.getArcAndTickColor(), wiz.getNumberReference());\r\n setIncludeAttributes(meter, (wiz.getTotalWidth() - wiz.getMeterWidth()) / 2,\r\n (wiz.getTotalHeight() - wiz.getMeterWidth()) / 2);\r\n \r\n // create numbers\r\n if (startAng > endAng) startAng -= 360;\r\n if (wiz.isClockwise()) {\r\n int temp = startAng;\r\n startAng = endAng;\r\n endAng = temp;\r\n }\r\n Element fontElement = root.getModel().getElementByName(wiz.getFontAttribute());\r\n int fontWidth = (int) BitmapFont.nameToDimension(fontElement.getAttribute(FONT_SIZE)).getWidth();\r\n int fontHeight = (int) BitmapFont.nameToDimension(fontElement.getAttribute(FONT_SIZE)).getHeight();\r\n int i;\r\n for (i = 0; i < wiz.getNumbers() && wiz.getNumbers() > 1; i++) {\r\n int value = wiz.getMinValue() + i*(wiz.getMaxValue()-wiz.getMinValue()) / (wiz.getNumbers()-1); \r\n String valueString = Integer.toString(value);\r\n int stringWidth = (fontWidth * valueString.length());\r\n \r\n Element number = createString(container, \"label\" + i, fontWidth * valueString.length(), \r\n fontHeight, valueString, wiz.getFontAttribute());\r\n \r\n double ang = Math.toRadians(startAng + i * (endAng - startAng) / (wiz.getNumbers() - 1));\r\n double rad = wiz.getMeterWidth() / 2 + wiz.getNumberDistance();\r\n int x = wiz.getTotalWidth() / 2 + (int) (Math.cos(-ang) * rad) - stringWidth / 2;\r\n int y = wiz.getTotalHeight() / 2 + (int) (Math.sin(-ang) * rad) - fontHeight / 2;\r\n setIncludeAttributes(number, x, y);\r\n }\r\n \r\n // labelX, X >= i -> poistetaan\r\n removeExtraElements(container, \"label\", i);\r\n \r\n // create a numberfield\r\n int extraSpace = wiz.getOffset() < 0 ? 1 : 0;\r\n int nroWidth = fontWidth * (Integer.toString(wiz.getMaxValue()).length() + extraSpace);\r\n Element numberfield = createNumber(container, \"number\", nroWidth, fontHeight, wiz.getValue(), \r\n wiz.getNumberReference(), wiz.getFontAttribute(), wiz.getOffset(), wiz.getScale());\r\n setIncludeAttributes(numberfield, (wiz.getTotalWidth() - nroWidth/*meterWizard.getMeterWidth()*/) / 2, \r\n wiz.getTotalHeight() / 2 + wiz.getMeterWidth() / 4);\r\n \r\n // create heading\r\n String text = wiz.getHeading();\r\n Element heading = createString(container, \"title\", fontWidth*text.length(), fontHeight, text, wiz.getFontAttribute());\r\n setIncludeAttributes(heading, (wiz.getTotalWidth() - fontWidth * text.length()) / 2, \r\n wiz.getTotalHeight() / 2 - wiz.getMeterWidth() / 4);\r\n \r\n // moves the attribute-objects to include objects with roles\r\n // System.out.println(\"finalizing...\");\r\n // Tools.createRoles(container);\r\n }", "void updateDrawing() {\n filling = modelRoot.getCDraw().getFilling(this);\n dirtyBufF = true;\n tooltip = modelRoot.getCDraw().getTooltip(this);\n dirtyBufT = true;\n title = modelRoot.getCDraw().getTitle(this);\n dirtyBufTitle = true;\n colorTitle = modelRoot.getCDraw().getTitleColor(this);\n dirtyBufCT = true;\n }", "public Font(Obj paramObj) {\n/* 113 */ this.a = paramObj.__GetHandle();\n/* 114 */ this.b = paramObj.__GetRefHandle();\n/* */ }", "public void\nsetDiffuseElt(SoNode node, int numColors, \n SbColorArray colors, SoColorPacker packer)\n{\n this.coinstate.diffusenodeid = get_diffuse_node_id(node, numColors, colors);\n this.coinstate.diffusearray = colors;\n this.coinstate.numdiffuse = numColors;\n this.coinstate.packeddiffuse = false;\n \n}", "void render(GraphicsContext gc, double xOffSet, double yOffSet);", "void object_calculations_touch_ground(){\n\n if (down_angle < 0 && up_angle > 0)//base case\n {\n double temp = up_angle;\n up_angle = down_angle;\n down_angle = temp;\n base_case();\n } else if ((down_angle > 0 && up_angle > 0) && (down_angle < up_angle))//smaller object\n {\n double temp = up_angle;\n up_angle = down_angle;\n down_angle = temp;\n measure_small_object();\n } else if (up_angle < 0 && down_angle > 0)//base case\n base_case();\n else //smaller object\n measure_small_object();\n }", "public ClassTester()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1);\n addObject(new NonScrollingBackground(\"Stage - 0.jpg\"),300,131);\n addObject(playerMage,35,170);\n addObject(new AbilityDisplayer(playerMage),125,268);\n }", "@Override\n public void render() {\n\n renderer.prepWindowRender(globalGameData.getGameWindow());\n renderer.setRenderSpace(0,0,500,500);\n\n\n renderEnvironment(getMainCamera(),testPlayer.getPlayerEntity().getEntityView().getViewableRegions(), instancedGridMesh);\n renderer.enableTransparency();\n walkieTalkie.render(renderer,renderer.getRenderWidth());\n renderer.disableTransparency();\n\n\n\n renderer.setRenderSpace(500,0,500,500);\n if (currentPlayers.containsKey(UUID.fromString(\"087954ba-2b12-4215-9a90-f7b810797562\"))) {\n renderEnvironment(getMainCamera(),currentPlayers.get(UUID.fromString(\"087954ba-2b12-4215-9a90-f7b810797562\")).getEntityView().getViewableRegions(), instancedGridMesh);\n }\n\n renderer.setRenderSpace(1000,0,500,500);\n renderer.enableTransparency();\n renderer.render2DTextItems(debugItems, \"Default2D\");\n renderer.disableTransparency();\n\n /*\n if (currentPlayers.containsKey(UUID.fromString(\"087954ba-2b12-4215-9a90-f7b810797562\"))) {\n renderer.setRenderSpace(500, 0, 500, 500);\n for (Region region : currentPlayers.get(UUID.fromString(\"087954ba-2b12-4215-9a90-f7b810797562\")).getEntityView().getViewableRegions()) {\n for (Block block : region.getBlocksArray()) {\n if (block instanceof CustomRenderBlock) {\n ((CustomRenderBlock) block).renderCustomBlock(renderer, camera);\n }\n }\n for (Entity entity : region.getEntities()) {\n entity.render(renderer, camera);\n }\n }\n }\n */\n\n\n //renderer.setRenderSpace(500,0,280,500);\n //SpriteItem spriteItem = new SpriteItem(AssetLoader.getTextureAsset(\"Noise\"),280,500,true);\n //spriteItem.setPosition(0,0,0);\n //renderer.render2DSpriteItem(spriteItem,\"Default2D\");\n //spriteItem.cleanup();\n\n\n\n /*\n renderer.getShader(\"DebugShader2D\").bind();\n glActiveTexture(GL_TEXTURE1);\n glBindTexture(GL_TEXTURE_2D, shaderTestBitmap.getId());\n glActiveTexture(GL_TEXTURE2);\n glBindTexture(GL_TEXTURE_2D, shaderTestEffect1.getId());\n glActiveTexture(GL_TEXTURE3);\n glBindTexture(GL_TEXTURE_2D, shaderTestEffect2.getId());\n glActiveTexture(GL_TEXTURE4);\n glBindTexture(GL_TEXTURE_2D, shaderTestEffect3.getId());\n renderer.getShader(\"DebugShader2D\").setUniform(\"bitmap\", 1);\n renderer.getShader(\"DebugShader2D\").setUniform(\"effect1\", 2);\n renderer.getShader(\"DebugShader2D\").setUniform(\"effect2\", 3);\n renderer.getShader(\"DebugShader2D\").setUniform(\"effect3\", 4);\n i++;\n i %= 600;\n float framePercent = i / 600.0f;\n renderer.getShader(\"DebugShader2D\").setUniform(\"frame\", framePercent);\n System.out.println(i);\n shaderTest.setPosition((float)gameInput.getMouseX(),(float)gameInput.getMouseY(),0);\n renderer.render2DSprite(shaderTest, \"DebugShader2D\");\n */\n\n\n\n\n\n }" ]
[ "0.60145617", "0.58994925", "0.58044744", "0.57767755", "0.5761899", "0.56745017", "0.5572982", "0.5572842", "0.5569563", "0.5568959", "0.5508374", "0.5506864", "0.54763526", "0.5449733", "0.5449733", "0.543249", "0.5423673", "0.5422003", "0.5408354", "0.5395317", "0.5394233", "0.53938955", "0.5382717", "0.53795403", "0.537567", "0.5369284", "0.53675425", "0.53569496", "0.5347741", "0.5346444", "0.5315275", "0.5304305", "0.52939427", "0.52797985", "0.5270297", "0.5267923", "0.5266919", "0.5265109", "0.5261994", "0.5260501", "0.52590907", "0.5239373", "0.5230755", "0.5227139", "0.520527", "0.52018154", "0.520073", "0.5199401", "0.5193646", "0.5193569", "0.51930934", "0.5192399", "0.51852953", "0.51727206", "0.5171657", "0.5171282", "0.5169885", "0.5166455", "0.5160791", "0.5158432", "0.5156463", "0.51561934", "0.5149418", "0.5143969", "0.5138541", "0.51350236", "0.51316005", "0.5130327", "0.51277846", "0.5127474", "0.5125958", "0.5124459", "0.5122809", "0.5119509", "0.511623", "0.5114629", "0.5113168", "0.51037", "0.5102636", "0.5101508", "0.5097698", "0.5097454", "0.5094903", "0.50927275", "0.5086114", "0.50855315", "0.50837696", "0.50825965", "0.5080831", "0.50743407", "0.5071804", "0.5068942", "0.50687474", "0.5065251", "0.50627995", "0.5062506", "0.50605786", "0.5059547", "0.5058137", "0.505769", "0.50564885" ]
0.0
-1
COME BACK should stencil app really get passed in?
public Point getNotePoint() { if (rect != null) { return new Point((int) rect.getX(), (int) rect.getY()); } else { return new Point(0, 0); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void back() {\nPizzaHut.main(null);\r\n\t}", "private void checkForBack() {\n if (Gdx.input.isKeyJustPressed(Input.Keys.BACK) || Gdx.input.isKeyJustPressed(Input.Keys.ESCAPE) ||\n BackButton.isPressed()) {\n Gdx.input.vibrate(50);\n dispose();\n game.setScreen(new MainMenuView(game));\n }\n }", "@Override\n public void onBackPressed() {\n ((MyApp) getApplication()).storeBoolean(true);\n ((MyApp) getApplication()).storeHM(randomHM);\n ((MyApp) getApplication()).storeVanishHM(vanishHM);\n ((MyApp) getApplication()).storeScore(score);\n super.onBackPressed();\n }", "void actionBack();", "public void backStep() {\r\n\t\tif (engaged && !backSteps.empty()) {\r\n\t\t\tProgramStatement statement = ((BackStep) backSteps.peek()).ps;\r\n\t\t\tengaged = false; // GOTTA DO THIS SO METHOD CALL IN SWITCH WILL NOT\r\n\t\t\t\t\t\t\t\t// RESULT IN NEW ACTION ON STACK!\r\n\t\t\tdo {\r\n\t\t\t\tBackStep step = (BackStep) backSteps.pop();\r\n\t\t\t\t/*\r\n\t\t\t\t * System.out.println(\"backstep POP: action \"+step.action+\" pc \"\r\n\t\t\t\t * +mars.util.Binary.intToHexString(step.pc)+\r\n\t\t\t\t * \" source \"+((step.ps==null)? \"none\":step.ps.getSource())+\r\n\t\t\t\t * \" parm1 \"+step.param1+\" parm2 \"+step.param2);\r\n\t\t\t\t */\r\n\t\t\t\tif (step.pc != NOT_PC_VALUE) {\r\n\t\t\t\t\tRegisterFile.setProgramCounter(step.pc);\r\n\t\t\t\t}\r\n\t\t\t\ttry {\r\n\t\t\t\t\tswitch (step.action) {\r\n\t\t\t\t\tcase MEMORY_RESTORE_RAW_WORD:\r\n\t\t\t\t\t\tGlobals.memory.setRawWord(step.param1, step.param2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase MEMORY_RESTORE_WORD:\r\n\t\t\t\t\t\tGlobals.memory.setWord(step.param1, step.param2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase MEMORY_RESTORE_HALF:\r\n\t\t\t\t\t\tGlobals.memory.setHalf(step.param1, step.param2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase MEMORY_RESTORE_BYTE:\r\n\t\t\t\t\t\tGlobals.memory.setByte(step.param1, step.param2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase REGISTER_RESTORE:\r\n\t\t\t\t\t\tRegisterFile.updateRegister(step.param1, step.param2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase PC_RESTORE:\r\n\t\t\t\t\t\tRegisterFile.setProgramCounter(step.param1);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase COPROC0_REGISTER_RESTORE:\r\n\t\t\t\t\t\tCoprocessor0.updateRegister(step.param1, step.param2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase COPROC1_REGISTER_RESTORE:\r\n\t\t\t\t\t\tCoprocessor1.updateRegister(step.param1, step.param2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase COPROC1_CONDITION_CLEAR:\r\n\t\t\t\t\t\tCoprocessor1.clearConditionFlag(step.param1);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase COPROC1_CONDITION_SET:\r\n\t\t\t\t\t\tCoprocessor1.setConditionFlag(step.param1);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase DO_NOTHING:\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// if the original action did not cause an exception this\r\n\t\t\t\t\t// will not either.\r\n\t\t\t\t\tSystem.out.println(\"Internal MARS error: address exception while back-stepping.\");\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t} while (!backSteps.empty() && statement == ((BackStep) backSteps.peek()).ps);\r\n\t\t\tengaged = true; // RESET IT (was disabled at top of loop -- see\r\n\t\t\t\t\t\t\t// comment)\r\n\t\t}\r\n\t}", "@Override\n protected void handleImput() {\n buttonBack.getButton().addListener(new ChangeListener() {\n @Override\n public void changed(ChangeEvent event, Actor actor) {\n if(!buttonLocker) {\n gsm.pop();\n gsm.push(new MenuState(gsm));\n buttonLocker = true;\n }\n }\n });\n if (Gdx.input.isKeyJustPressed(Input.Keys.BACK)){\n gsm.pop();\n gsm.push(new MenuState(gsm));\n }\n }", "@Secured(\"@\")\n public void doBackPage() {\n infoOrderDetail = false;\n haveDepositPrice = false;\n orderStockTag.resetOrderStock();\n }", "@Override\n public void onBackPressed() {\n replaceUseCase(meetingManager);\n replaceUseCase(traderManager);\n super.onBackPressed();\n }", "void processBackEvent(AchieveSettings settings);", "@Override\n public void onBackPressed() {\n super.onBackPressed();\n LessonService.disableToRestoreState();\n }", "@Override\n\tpublic void onBackPressed() {\n\n\t\tnavigatetoAppointmentsListingScreen(\"false\");\n\t}", "private void backToMenu() {\n game.setScreen(new StartScreen(game));\n }", "private void handleActionBack() {\n RecipeAPI.DecreaseRecipeNo();\n updateAllWidgets();\n }", "public void back() {\n Views.goBack();\n }", "public synchronized void back ()\n\t// one move up\n\t{\n\t\tState = 1;\n\t\tgetinformation();\n\t\tgoback();\n\t\tshowinformation();\n\t\tcopy();\n\t}", "public void onBack(View view){\n Context context = App.getContext();\n LogManager.reportStatus(context, \"INSPECTOR\", \"Back\");\n saveTemplate(filename);\n Intent intent = new Intent(this, FileManager.class);\n startActivity(intent);\n }", "private void backButton() {\n navigate.goPrev(this.getClass(), stage);\n }", "public void onGoBackClicked() {\r\n EnterChange();\r\n\r\n //condition to check if time is entered by customer\r\n if(textTime.getText().length() > 0){\r\n _ReservationList.load();\r\n\r\n EnterChange();\r\n Stage stage = (Stage) btnGoBack.getScene().getWindow();\r\n stage.close();\r\n }\r\n }", "@Override\n\tpublic void onBackPressed() {\n\n\t\tif (workoutService != null && workoutService.getService().getStatus().isMonitoring()) {\n\t\t\tif (TestHarnessUtils.isTestHarness()) {\n\t\t\t\tstopWorkout(true);\n\t\t\t} else {\n\t\t\t\tpromptStopWorkout(true);\n\t\t\t}\n\t\t} else {\n\t\t\tsuper.onBackPressed();\n\t\t\toverridePendingTransition(anim.push_right_in, anim.push_right_out);\n\t\t}\n\t}", "private void backToMain() {\n // https://stackoverflow.com/questions/5446565\n // Checks to see if they are still on this activity\n if (getWindow().getDecorView().getRootView().isShown()) {\n onBackPressed();\n }\n }", "public void goHome() {\n shouldWork = false;\n }", "private void setupBack() {\n\t\tmakeButton(\"Back\", (ActionEvent e) -> {\n\t\t\tchangeView(\"login\");\n\t\t});\n\t}", "public void onBackPressed() {\r\n \t\r\n \tScreen screen = this.getCurrentScreen();\r\n \tString screenName = screen.getClass().getName();\r\n \t\r\n \t// if we are \"inGame\"\r\n \tif (screenName.endsWith(\"GameScreen\")) {\r\n \t\t\r\n \t\tGameScreen gameScreen = (GameScreen)screen;\r\n \t\t\r\n \t\tif (gameScreen.demoParser != null) {\r\n \t\t\t\r\n \t\t\tthis.finish();\r\n \t \tthis.overridePendingTransition(0, 0);\r\n \t\t}\r\n \t\t\r\n \t\t// restart the race\r\n \t\telse if (gameScreen.map.inRace() || gameScreen.map.raceFinished()) {\r\n \t\t\r\n \t\t\tif (!gameScreen.map.inFinishSequence) {\r\n \t\t\t\t\r\n \t\t\t\tgameScreen.state = GameState.Running;\r\n \t\t\t\tgameScreen.map.restartRace(gameScreen.player);\r\n \t\t\t}\r\n \t\t\t\r\n \t\t// return to maps menu\r\n \t\t} else {\r\n \t\t\t\r\n \t\t\tthis.glView.queueEvent(new Runnable() {\r\n \r\n public void run() {\r\n \r\n \tRacesow.this.setScreen(new MapsScreen(Racesow.this));\r\n }\r\n });\r\n \t\t}\r\n \t\r\n \t// return to main menu\r\n \t} else if (screenName.endsWith(\"MapsScreen\")) {\r\n \t\t\r\n \t\t\tthis.glView.queueEvent(new Runnable() {\r\n \r\n public void run() {\r\n \r\n \tRacesow.this.setScreen(Racesow.this.getStartScreen());\r\n }\r\n });\r\n \t\r\n \t\t// quit the application\r\n \t} else if (screenName.endsWith(\"LoadingScreen\")) {\r\n \t\t\r\n \t\t// if no demo is loading we come from the mapsScreen\r\n \t\tif (((LoadingScreen)screen).demoFile == null) {\r\n \t\t\t\r\n \t\t\t\tthis.glView.queueEvent(new Runnable() {\r\n \t\r\n \t public void run() {\r\n \t \r\n \t \tRacesow.this.setScreen(new MapsScreen(Racesow.this));\r\n \t }\r\n \t });\r\n \t\t\t\r\n \t\t\t// if a demoFile is loading, quit the activity\r\n \t\t\t// as it was started additionally to the main instance.\r\n \t\t\t// will return to the previous activity = DemoList\r\n \t\t} else {\r\n \t\t\t\t\t\r\n \t\t\tthis.finish();\r\n \tthis.overridePendingTransition(0, 0);\r\n \t\t}\r\n \t\r\n \t\t// quit the application\r\n \t} else {\r\n \t\t\r\n \t\tthis.finish();\r\n \tthis.overridePendingTransition(0, 0);\r\n \t\r\n \tAudio.getInstance().stopThread();\r\n \t\r\n \t// If I decide to not kill the process anymore, don't\r\n \t// forget to restart the SoundThread and set this flag\r\n \t// LOOPER_PREPARED = false;\r\n \tProcess.killProcess(Process.myPid());\r\n \t}\r\n }", "public void onBackButton() {\n WindowLoader wl = new WindowLoader(backButton);\n wl.load(\"MenuScreen\", getInitData());\n RETURN_AUDIO.play(Double.parseDouble(getInitData().get(\"SFXVol\")));\n }", "public void goBack() throws IOException { DashboardController.dbc.loadHomeScene(); }", "public static void goBack() {\n\t\tif (touchGUI.getTouchModel().getGuiModel().isDialogShown()) {\n\t\t\ttouchGUI.getTouchModel().getGuiModel().closeActiveDialog();\n\t\t} else {\n\t\t\t// else go to last view in history\n\t\t\tif (!appWidget.goBack()) {\n\t\t\t\t// if history is empty -> close app\n\t\t\t\tphoneGap.exitApp();\n\t\t\t}\n\t\t}\n\n\t\tlaf.updateUndoSaveButtons();\n\t\ttouchGUI.updateViewSizes();\n\t}", "@Override\n public final void switchBack() {\n }", "@Override\n public void onBackPressed() {\n if (!mEditSymptomChanged) {\n super.onBackPressed();\n return;\n }\n //otherwise if there are unsaved changes setup a dialog to warn the user\n //handles the user confirming that changes should be made\n mHomeChecked = false;\n showUnsavedChangesDialogFragment();\n }", "@Override\n public void onBackPressed() {\n gameAlertDialog.show(\"EXIT\");\n exitAlertVisible = true;\n }", "public void GoBack(ActionEvent actionEvent) throws IOException\n {\n Main.backToMain();\n }", "@Override\n\tpublic void onBackPressed() {\n\t\treturn;\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\texitApplication().onClick(null);\n\t\tsuper.onBackPressed();\n\t}", "protected void ACTION_B_BACK(ActionEvent arg0) {\n\t\tthis.setVisible(false);\r\n\t\tnew SnifferWindow().setVisible(true);\r\n\t}", "@Override\n protected boolean canGoBack() {\n return false;\n }", "@Override\n public void onBackPressed() {\n confirmExit();\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tupdata();\n\t\tsuper.onBackPressed();\n\t}", "@Override\r\n public PhoenixDriver back()\r\n {\n return null;\r\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tif(mGridSurfaceView.getThread().isValid()){\n\t\t\tPersistantObjects.setGrid(mGridThread.gridMatrix);\n\t\t\tPersistantObjects.setSystemState(mGridThread.getSystemState(blobData));\n\t\t\tIntent intent = new Intent(ProgramActivity.this,\n\t\t\t\t\tSoundCoderActivity.class);\n\t\t\tProgramActivity.this.setResult(\n\t\t\t\t\tSoundCoderActivity.PROGRAM, intent);\n\t\t\tProgramActivity.this.finish();\n\t\t\treturn;\n\t\t}\n\t\telse{\n\t\t\t//show a message about it not being valid\n\t\t\tToast.makeText(ProgramActivity.this, \"Please make sure your grid is valid!\", Toast.LENGTH_SHORT).show();\n\t\t}\n\t\t\n\t}", "@Override\r\n\tpublic void backButton() {\n\t\t\r\n\t}", "@Override\n public void goBack() {\n\n }", "@Override\n\tpublic boolean isBackable() {\n\t\treturn false;\n\t}", "@Override\n\tpublic void onBackPressed() {\n\treturn;\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tBack();\n\t}", "public void back() {\n callFunction(\"back\");\n }", "protected void goBack() {\r\n\t\tfinish();\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(action.recover()) {\r\n\t\t\tSystem.out.println(\"backButton\");\r\n\t\t\tui.closeBackButton();//backButton设置为不可用\r\n\t\t\tui.paint(ui.getGraphics());\r\n\t\t\tui.upgradeScore();\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"can't back\");\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\treturn;\n\t}", "public void back() {\n\t\tstate.back();\n\t}", "@Test\n public void testDistOverflowFront()\n {\n String sName = \"dist-overflow-front\";\n generateEvents(sName);\n checkEvents(false, true);\n BackingMapListener.INSTANCE.assertContext();\n }", "public void back()\r\n\t{\r\n\t\tparentPanel.setState(GameState.Menu);\r\n parentPanel.initScene(GameState.Menu);\r\n\t\t\t\r\n\t}", "private void backToMenu()\n\t{\n\t\t//switch to menu screen\n\t\tgame.setScreen(new MenuScreen(game));\n\t}", "@Override\n\tpublic void breath() {\n\n\t}", "@Override\n\tpublic void onBackPressed()\n\t{\n\t}", "private void backButtonAction() {\n CurrentUI.changeScene(SceneNames.LOGIN);\n }", "@Override\r\n\tpublic void beforeNavigateBack(WebDriver arg0) {\n\t\t\r\n\t}", "public void goBack() {\n goBackBtn();\n }", "protected void handleBack(ActionEvent event) {\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\t\n\t}", "@Override\n\tpublic void goToStings() {\n\t\t\n\t}", "protected void assertBackToState() {\n\t\tassertTrue(recorder.recorded(EC.TLC_BACK_TO_STATE));\n\t\tfinal List<Object> loop = recorder.getRecords(EC.TLC_BACK_TO_STATE);\n\t\tassertTrue(loop.size() > 0);\n\t}", "public void onReturnGame() {\n setContentView(R.layout.activity_main);\n // Pop gameFragment\n fm.popBackStack(\"game\", FragmentManager.POP_BACK_STACK_INCLUSIVE);\n }", "@Override\n\tpublic void onDeactivated(MainFrame main, ActionContextController nextContext) {\n\t}", "public void back()\n\t{\n\t\tdriver.findElementById(OR.getProperty(\"BackButton\")).click();\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\r\n\t\tdoBack();\r\n\t}", "Request back();", "@Override\r\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\r\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\r\n\t}", "@Override\n public boolean onBackPreseed() {\n return false;\n }", "@Override\n\tpublic void onBackPressed()\n\t\t{\n\t\tbackPressed();\n\t\t}", "@Override\n public void onBackPressed( ) {\n update_storage( );\n super.onBackPressed( );\n }", "@Override\n\tpublic void onBackPressed() {\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t}", "public void back(){\n\t\tswitch(state){\n\t\tcase LOGINID:\n\t\t\tbreak; //do nothing, already at top menu\n\t\tcase LOGINPIN:\n\t\t\tloginMenu();\n\t\t\tbreak;\n\t\tcase TRANSACTION:\n\t\t\tbreak; //do nothing, user must enter the choice to log out\n\t\tcase DEPOSIT:\n\t\t\ttransactionMenu();\n\t\t\tbreak;\n\t\tcase DEPOSITNOTIFICATION:\n\t\t\tbreak; //do nothing, user must press ok\n\t\tcase WITHDRAW:\n\t\t\ttransactionMenu();\n\t\t\tbreak;\n\t\tcase BALANCE:\n\t\t\tbreak; //do nothing, user must press ok\n\t\tcase WITHDRAWALNOTIFICATION:\n\t\t\tbreak; //do onthing, user must press ok\n\t\t}\n\t\t\n\t\tcurrentInput = \"\";\n\t}", "@FXML private void backOut(ActionEvent event) {\n try {\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/Views/mainScreen.fxml\"));\n mainScreen controller = new mainScreen(false);\n\n loader.setController(controller);\n Parent root = loader.load();\n Scene scene = new Scene(root);\n Stage stage = (Stage) ((Node) event.getSource()).getScene().getWindow();\n stage.setScene(scene);\n stage.setResizable(false);\n stage.show();\n } catch (Exception e) {e.printStackTrace();}\n }", "public void makegoaway(){\n if (!started_app){ // added to prevent running two copies when user clicks to skip\n // and when time runs out for splash\n Intent mainIntent = new Intent(SplashActivity.this,MainActivity.class);\n SplashActivity.this.startActivity(mainIntent);\n SplashActivity.this.finish();\n started_app=true;\n }\n }", "@Override\n\tpublic void cookAtHome() {\n\t\t\n\t}", "@Override\n public void onBackPressed() {\n return;\n }", "@Override\n public void onBackPressed() {\n return;\n }", "@Override\n public void onBackPressed() {\n return;\n }", "@Override\n public void onBackPressed() {\n return;\n }", "public void onBackPressed() {\n // do nothing. We want to force user to stay in this activity and not drop out.\n }", "@Override\n\tpublic void beforeNavigateBack(WebDriver arg0) {\n\n\t}", "public void backButtonClicked(ActionEvent actionEvent) {\n Stage current = (Stage) locationName.getScene().getWindow();\n\n current.setScene(getPreviousScreen());\n }", "public void exitApp() {\n\t\tSystem.out.println(\"Exiting PhoneBook\");\n\n\t}", "private void handleLose(){\n\t ButtonType goBackBtn = new ButtonType(\"Go back to menu\");\n\t Alert alert = new Alert(Alert.AlertType.INFORMATION,\n \"You've lost the game, retry?\", ButtonType.YES, goBackBtn);\n\t alert.setTitle(\"Lost\");\n Optional<ButtonType> result = alert.showAndWait();\n if(!result.isPresent())\n return;\n if(result.get() == ButtonType.YES){\n Screen screen = new Screen(stage, \"Dungeon\", \"View/DungeonPlayScreen.fxml\");\n try {\n Map reloadedMap = Map.loadFromFile(new FileInputStream(\n \"map/\" + map.getMapName() + \".dungeon\"));\n screen.display(new DungeonPlayController(stage, reloadedMap));\n } catch (FileNotFoundException e){\n e.printStackTrace();\n }\n }\n if(result.get() == goBackBtn){\n handleModeScreenButton();\n }\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@FXML\r\n\t\tpublic void back(ActionEvent event) {\r\n\t\t\tGuiBasedApp.launchHomeScreenScene();\r\n\t\t}", "@Override\n\tpublic void backButton() {\n\n\t}", "@Override\n public void onBackPressed() {\n //If no changes occur, leave the app's activity\n if (!mPhoneProductHasChanged) {\n super.onBackPressed();\n return;\n }\n //Otherwise, if there are changes to the activity, display a dialog which prompts the user\n //whether he wants to enforce changes or not\n DialogInterface.OnClickListener discardButtonClickListener = new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //User clicked the \"discard\" button, exit the activity\n finish();\n }\n };\n showUnsavedChangesDialog(discardButtonClickListener);\n\n }", "@FXML\n void goBack(ActionEvent event) throws IOException{\n loadMain(event, session);\n }", "@Test\n public void testDistOverflowBack()\n {\n String sName = \"dist-overflow-back\";\n generateTwoEvents(sName);\n checkEvents(false, true);\n BackingMapListener.INSTANCE.assertContext();\n }", "@Override\n\tpublic void afterNavigateBack(WebDriver arg0) {\n\n\t}" ]
[ "0.60881346", "0.60721254", "0.5945483", "0.5834005", "0.57964325", "0.5769259", "0.576302", "0.57225037", "0.5716018", "0.57098264", "0.5704604", "0.5658598", "0.5633476", "0.56121206", "0.56116635", "0.55940026", "0.55927145", "0.5589729", "0.5575356", "0.5553723", "0.555035", "0.55474156", "0.55462974", "0.5538514", "0.5538437", "0.55333114", "0.55317134", "0.55209005", "0.55132174", "0.55091023", "0.55049217", "0.55007786", "0.54993933", "0.549466", "0.5494604", "0.5488176", "0.54700893", "0.5465264", "0.54565734", "0.545346", "0.54527336", "0.54487354", "0.5446789", "0.5446447", "0.54439545", "0.54360944", "0.5421825", "0.5420346", "0.54164386", "0.54152894", "0.5411892", "0.54087186", "0.54069483", "0.54010046", "0.53977084", "0.5396605", "0.5395299", "0.5392564", "0.53921604", "0.5388346", "0.5386242", "0.5380574", "0.5379554", "0.53787583", "0.5376698", "0.53750336", "0.53750336", "0.5372684", "0.5372111", "0.53707093", "0.5367537", "0.5367537", "0.5367537", "0.5367537", "0.5362665", "0.53560346", "0.5353327", "0.5344057", "0.5344015", "0.5344015", "0.5344015", "0.5344015", "0.53402305", "0.53397644", "0.53326035", "0.5331571", "0.5330321", "0.53291285", "0.53291285", "0.53291285", "0.53291285", "0.53291285", "0.53291285", "0.53291285", "0.53291285", "0.53281945", "0.5325598", "0.5322275", "0.5321335", "0.53211814", "0.5319038" ]
0.0
-1
Convert the given object to string with each line indented by 4 spaces (except the first line).
private String toIndentedString(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String toIndentedString(Object object) {\n if (object == null) {\n return EndpointCentralConstants.NULL_STRING;\n }\n return object.toString().replace(EndpointCentralConstants.LINE_BREAK,\n EndpointCentralConstants.LINE_BREAK + EndpointCentralConstants.TAB_SPACES);\n }", "private String toIndentedString(Object o)\n/* */ {\n/* 128 */ if (o == null) {\n/* 129 */ return \"null\";\n/* */ }\n/* 131 */ return o.toString().replace(\"\\n\", \"\\n \");\n/* */ }", "private String toIndentedString( Object o )\n {\n if ( o == null )\n {\n return \"null\";\n }\n return o.toString().replace( \"\\n\", \"\\n \" );\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }" ]
[ "0.7884755", "0.7549422", "0.749723", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984" ]
0.0
-1
For use with RESTeasy and CDI proxies.
public ImmutableRetrieve() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Proxy getProxy();", "public FakeBasicProxyPreparer() {\n\tsuper();\n }", "@Decorator\n@RegisterRestClient\n@RegisterProvider(BookService.TracingActivator.class)\n@Path(\"/books\")\n@Consumes(APPLICATION_JSON)\n@Produces(APPLICATION_JSON)\npublic interface BookService {\n @GET\n Response findAll();\n\n @GET\n @Path(\"/{id}\")\n Response findById(@PathParam(\"id\") final Long id);\n\n @POST\n Response create(final JsonObject book);\n\n @DELETE\n @Path(\"/{id}\")\n Response delete(@PathParam(\"id\") final Long id);\n\n\n // workaround cause ClientTracingRegistrar requires to use ClientAPI and not @RegisterProvider\n @Dependent\n class TracingActivator implements ClientRequestFilter, ClientResponseFilter {\n private final ClientRequestFilter request;\n private final ClientResponseFilter response;\n\n public TracingActivator() {\n request = create(\"org.apache.geronimo.microprofile.opentracing.microprofile.client.CdiOpenTracingClientRequestFilter\", ClientRequestFilter.class);\n response = create(\"org.apache.geronimo.microprofile.opentracing.microprofile.client.CdiOpenTracingClientResponseFilter\", ClientResponseFilter.class);\n }\n\n @Override\n public void filter(final ClientRequestContext requestContext) throws IOException {\n if (request != null) {\n request.filter(requestContext);\n }\n }\n\n @Override\n public void filter(final ClientRequestContext requestContext, final ClientResponseContext responseContext) throws IOException {\n if (response != null) {\n response.filter(requestContext, responseContext);\n }\n }\n\n private static <T> T create(final String fnq, final Class<T> type) {\n try {\n return type.cast(CDI.current().select(Thread.currentThread().getContextClassLoader().loadClass(fnq)).get());\n } catch (final ClassNotFoundException e) {\n return null;\n }\n }\n }\n}", "private Dex2JarProxy() {\r\n\t}", "public JerseyWrapper() {\n super(prc);\n }", "public interface IResteasyService {\r\n\t\r\n\t/**\r\n\t * Service name inside OSGi namespace service registration.\r\n\t */\r\n\tpublic static final String SERVICE_NAME = ResteasyService.class.getName();\r\n\r\n\t/**\r\n\t * Add a SingletonResource.\r\n\t * @param resource\r\n\t */\r\n\tpublic void addSingletonResource(Object resource);\r\n\t\r\n\t/**\r\n\t * Remove a SingletonResource.\r\n\t * @param clazz\r\n\t */\r\n\tpublic void removeSingletonResource(Class<?> clazz);\r\n\r\n}", "private ServiceLocator(){}", "ServiceReferenceProxy getServiceReference();", "private ClassProxy() {\n }", "private void inject() {\n }", "protected Proxy(InvocationHandler h) { }", "public ProxyBean() {\n }", "public interface IWecorpAccountService extends IBaseService<WecorpAccount>, ProxySelf<IWecorpAccountService> {\n\n public WecorpAccount getWoaAccountByAppId(String appid);\n\n public WecorpAccount getWoaAccountByAccountNum(String accountNum);\n}", "@Test\r\n public void testSetProxy() {\r\n // Not required\r\n }", "private MockClientFacade() {\n\t\t//this.c = Client.getInstance();\n\t}", "@Test\n public void testProxy() {\n Dell dell = new Dell();\n Proxy proxy = new Proxy(dell);\n proxy.salePc();\n }", "public interface AopProxy {\n Object getProxy();\n\n Object getProxy(ClassLoader classLoader);\n\n}", "private ServiceLocator() {\r\n\t\t\r\n\t}", "ProxyValue createProxyValue();", "public interface ICordysGatewayClientFactory\r\n{\r\n /**\r\n * Return a client (the factory is also responsable for creating the gateway).\r\n *\r\n * @return A cordys gateway client.\r\n */\r\n ICordysGatewayClient getGatewayClientInstance();\r\n}", "public NaviProxyFactoryBean() {\r\n\r\n }", "private MyClientEndpoint(){\n // private to prevent anyone else from instantiating\n }", "private ServiceFactory() {}", "private static interface Service {}", "private final void inject() {\n }", "private WebServicesFabrica(){}", "private RecipleazBackendService() {\n }", "private RESTBackend()\n\t\t{\n\t\t\t\n\t\t}", "public Object getProxy() {\n\t\t\r\n\t\treturn getProxy(this.advised.getTargetClass().getClassLoader());\r\n\t}", "public RemoteFacadeServiceLocator() {\r\n }", "private ServerModelFacade(IServerProxy theProxy) {\n setServerProxy(theProxy);\n }", "public interface CeylonDelegate {\n void init(ServletConfig config) throws ServletException;\n\n boolean service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException;\n\n void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException;\n\n void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException;\n\n void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException;\n\n void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException;\n\n void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException;\n\n void doOptions(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException;\n\n void doTrace(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException;\n\n void destroy();\n}", "protected Spring() {}", "private EagerlySinleton()\n\t{\n\t}", "interface Injector {\n void inject(InternalContext context, Object o);\n }", "public interface ServiceContext {\r\n /**\r\n * @return configuration for the service.\r\n */\r\n ServiceConfigurable service();\r\n}", "@Inject\n public MachineMonkeyRestApiImpl() {\n }", "public interface Rest {\n}", "private DTOFactory() {\r\n \t}", "private ResourceFactory() {\r\n\t}", "public ApplicationHostService(HttpContext httpContext, NewRelicClient client)\n {\n super(httpContext, client);\n }", "@Override\n protected void injectDependencies(Context context) {\n }", "public interface IDynamicRequestGET {\n public MultivaluedMap<String, String> getPathParams();\n public ContainerRequestContext getRequestContext();\n}", "private <T> T proxy(Class<T> serviceClass, String serviceUrl, Client client) {\n\n final WebTarget target = client.target(serviceUrl);\n return ((ResteasyWebTarget) target).proxy(serviceClass);\n }", "public static interface Proxy {\r\n\t\t/** \r\n\t\t * Returns self of current context.\r\n\t\t * @return self of current context.\r\n\t\t */\r\n\t\tpublic Component getSelf(ExecutionCtrl exec);\r\n\t\t/** Sets an execution attribute.\r\n\t\t */\r\n\t\tpublic void setAttribute(Execution exec, String name, Object value);\r\n\t\t/** Removes an execution attribute.\r\n\t\t */\r\n\t\tpublic void removeAttribute(Execution exec, String name);\r\n\t\t\r\n\t\t/** Sets an session attribute.\r\n\t\t */\r\n\t\tpublic void setAttribute(Session ses, String name, Object value);\r\n\t\t\r\n\t\t/** Removes an session attribute.\r\n\t\t */\r\n\t\tpublic void removeAttribute(Session session, String name);\r\n\t\t\r\n\t\t/** Called when ZK Update Engine has sent a response to the client.\r\n\t\t *\r\n\t\t * <p>Note: the implementation has to maintain one last-sent\r\n\t\t * response information for each channel, since a different channel\r\n\t\t * has different set of request IDs and might resend in a different\r\n\t\t * condition.\r\n\t\t *\r\n\t\t * @param channel the request channel.\r\n\t\t * For example, \"au\" for AU requests and \"cm\" for Comet requests.\r\n\t\t * @param reqId the request ID that the response is generated for.\r\n\t\t * Ingore if null.\r\n\t\t * @param resInfo the response infomation. Ignored if reqId is null.\r\n\t\t * The real value depends on the caller.\r\n\t\t */ \r\n\t\tpublic void responseSent(DesktopCtrl desktopCtrl, String channel, String reqId, Object resInfo);\r\n\t}", "MyService getService() {\n return MyService.this;\n }", "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}", "DelegateContainer() {\n super();\n }", "public interface ProxyTest {\n\n\tpublic void ping() throws ApplicationException;\n}", "public interface BeanSelfAware {\n\n //设定代理到类内部,嵌套调用时使用代理进行方法调用\n void setSelf(Object obj);\n\n}", "public interface HttpContract {\n\n WelfareService welfareHttp();\n\n}", "private Service() {}", "protected Provider() {}", "IHttpService getHttpService();", "public interface ResourceService {\n public List<ResourceItemBean> getResourceItems();\n}", "public interface HibernateService {\n\n <T> T initializeAndUnproxy(T entity);\n}", "@Override\r\n\tprotected void doResolve() {\n\r\n\t}", "@Remote\r\npublic interface RappelManagerRemote\r\n extends RappelManager\r\n{\r\n\r\n\r\n}", "void inject() throws Exception;", "Service_Resource createService_Resource();", "public interface Scope {\n /**\n * scope name(which is auto uniquify to a {@link JvmUnique#uniqueNameWithRandom(String)}\n */\n String getName();\n\n boolean isRoute();\n\n /**\n * set timeout of call\n *\n * @param timeout maximum call waiting\n */\n void setTimeout(@Nullable Duration timeout);\n\n /**\n * change debug mode\n *\n * @param debug whether open debug mode\n */\n void setDebug(boolean debug);\n\n void setTrace(boolean trace);\n\n /**\n * create a new RSocket Server\n *\n * @param name simple server name\n * @param config server configuration\n */\n void startServer(String name, Config.ServerConfig config);\n\n /**\n * create a new RSocket Client\n *\n * @param name simple client name\n * @param config client configuration\n */\n void startClient(String name, Config.ClientConfig config);\n\n /**\n * release and close all cache ,include all RS server and client\n */\n void release();\n\n /**\n * build a Proxy Rpc Service\n *\n * @param clientKlass service ( must be a interface)\n * @param argumentProcessor parameter and result processor for each method (<b>if there is some interface parameter or result or else with nested interface that Implement may not exists in remote service</b>)\n * @param useFNF use fireAndForgot for void return method\n * @param <T> service type\n * @return the Instance\n */\n <T> T createClientService(Class<T> clientKlass, @Nullable Map<String, Function<Object[], Object[]>> argumentProcessor, boolean useFNF);\n\n /**\n * register a local service to serve\n *\n * @param service the service instance\n * @param serviceKlass the define interface of the service\n * @param resultProcessor parameter and result processor for each method (<b>if there is some interface parameter or result or else with nested interface that Implement may not exists in remote service</b>)\n * @param <T> type\n */\n <T> void registerService(\n T service,\n Class<T> serviceKlass,\n @Nullable Map<String, Function<Object, Object>> resultProcessor\n );\n\n /**\n * service list\n */\n @Unmodifiable List<String> names();\n\n /**\n * close a named Server\n *\n * @param name server name\n */\n boolean dispose(@NotNull String name);\n}", "public interface CartService extends Service<Cart> {\n\n}", "protected Depot() {\n\t\tthis(null);\n\t}", "public interface APIService {\n}", "public interface ProxyPOJOAnnotation {\n public String interfaceNS();\n public String interfaceName();\n public String name();\n public String serviceNS();\n public String serviceName();\n}", "public interface RappelManager\r\n extends GenericManager<Rappel, Long>\r\n{\r\n\r\n public final static String SERVICE_NAME = \"RappelManager\";\r\n\r\n}", "public interface IMiddlewareResourceManager extends Remote, IProxiable {\n /**\n * Add seats to a flight.\n * <p>\n * In general this will be used to create a new\n * flight, but it should be possible to add seats to an existing flight.\n * Adding to an existing flight should overwrite the current price of the\n * available seats.\n *\n * @return Success\n */\n public boolean addFlight(int id, int flightNum, int flightSeats, int flightPrice)\n throws RemoteException, DeadlockException;\n\n /**\n * Add car at a location.\n * <p>\n * This should look a lot like addFlight, only keyed on a string location\n * instead of a flight number.\n *\n * @return Success\n */\n public boolean addCars(int id, String location, int numCars, int price)\n throws RemoteException, DeadlockException;\n\n /**\n * Add room at a location.\n * <p>\n * This should look a lot like addFlight, only keyed on a string location\n * instead of a flight number.\n *\n * @return Success\n */\n public boolean addRooms(int id, String location, int numRooms, int price)\n throws RemoteException, DeadlockException;\n\n /**\n * Add customer.\n *\n * @return Unique customer identifier\n */\n public int newCustomer(int id)\n throws RemoteException, DeadlockException;\n\n /**\n * Add customer with id.\n *\n * @return Success\n */\n public boolean newCustomer(int id, int cid)\n throws RemoteException, DeadlockException;\n\n /**\n * Delete the flight.\n * <p>\n * deleteFlight implies whole deletion of the flight. If there is a\n * reservation on the flight, then the flight cannot be deleted\n *\n * @return Success\n */\n public boolean deleteFlight(int id, int flightNum)\n throws RemoteException, DeadlockException;\n\n /**\n * Delete all cars at a location.\n * <p>\n * It may not succeed if there are reservations for this location\n *\n * @return Success\n */\n public boolean deleteCars(int id, String location)\n throws RemoteException, DeadlockException;\n\n /**\n * Delete all rooms at a location.\n * <p>\n * It may not succeed if there are reservations for this location.\n *\n * @return Success\n */\n public boolean deleteRooms(int id, String location)\n throws RemoteException, DeadlockException;\n\n /**\n * Delete a customer and associated reservations.\n *\n * @return Success\n */\n public boolean deleteCustomer(int id, int customerID)\n throws RemoteException, DeadlockException;\n\n /**\n * Query the status of a flight.\n *\n * @return Number of empty seats\n */\n public int queryFlight(int id, int flightNumber)\n throws RemoteException, DeadlockException;\n\n /**\n * Query the status of a car location.\n *\n * @return Number of available cars at this location\n */\n public int queryCars(int id, String location)\n throws RemoteException, DeadlockException;\n\n /**\n * Query the status of a room location.\n *\n * @return Number of available rooms at this location\n */\n public int queryRooms(int id, String location)\n throws RemoteException, DeadlockException;\n\n /**\n * Query the customer reservations.\n *\n * @return A formatted bill for the customer\n */\n public String queryCustomerInfo(int id, int customerID)\n throws RemoteException, DeadlockException;\n\n /**\n * Query the status of a flight.\n *\n * @return Price of a seat in this flight\n */\n public int queryFlightPrice(int id, int flightNumber)\n throws RemoteException, DeadlockException;\n\n /**\n * Query the status of a car location.\n *\n * @return Price of car\n */\n public int queryCarsPrice(int id, String location)\n throws RemoteException, DeadlockException;\n\n /**\n * Query the status of a room location.\n *\n * @return Price of a room\n */\n public int queryRoomsPrice(int id, String location)\n throws RemoteException, DeadlockException;\n\n /**\n * Reserve a seat on this flight.\n *\n * @return Success\n */\n public boolean reserveFlight(int id, int customerID, int flightNumber)\n throws RemoteException, DeadlockException;\n\n /**\n * Reserve a car at this location.\n *\n * @return Success\n */\n public boolean reserveCar(int id, int customerID, String location)\n throws RemoteException, DeadlockException;\n\n /**\n * Reserve a room at this location.\n *\n * @return Success\n */\n public boolean reserveRoom(int id, int customerID, String location)\n throws RemoteException, DeadlockException;\n\n /**\n * Reserve a bundle for the trip.\n *\n * @return Success\n */\n public boolean bundle(int id, int customerID, Vector<Integer> flightNumbers, String location, boolean car, boolean room)\n throws RemoteException, DeadlockException;\n\n /**\n * Convenience for probing the resource manager.\n *\n * @return Name\n */\n public String getName()\n throws RemoteException, DeadlockException;\n\n public int start()\n throws RemoteException;\n\n public boolean commit(int xid) \n throws RemoteException, InvalidTransactionException;\n\n public boolean abort(int xid) \n throws RemoteException, InvalidTransactionException;\n\n public void shutdown()\n throws RemoteException;\n\n}", "public interface ProxyConnector {\n\n /**\n * Comprueba que se cumplan los requisitos para la conexi&oacute;n con el servicio proxy.\n * @throws IOException Cuando ocurre alg&uacute;n error en la comprobaci&oacute;n.\n */\n void init() throws IOException;\n\n /**\n * Comprueba si el servicio configurado pertenece a un proxy compatible.\n * @return {@code true} si el proxy configurado es compatible, {@code false} en caso contrario.\n * @throws IOException Cuando se produce un error al conectarse al proxy.\n */\n boolean isCompatibleService() throws IOException;\n\n /**\n * Indica si el servicio de Portafirmas correspondiente a este conector requiere un proceso\n * de login previo.\n * @return {@code true} si el servicio requiere login, {@code false} en caso contrario.\n */\n boolean needLogin();\n\n /**\n * Solicita el acceso para el usuario.\n * @return Respuesta a la petici&oacute;n con el token de acceso.\n * @throws Exception Cuando ocurre un error en la comunicaci&oacute;n.\n */\n RequestResult loginRequest() throws Exception;\n\n /**\n * Envia el token de acceso firmado al servidor para validar el acceso del usuario.\n * @param pkcs1 Firma PKCS#1 del token de acceso.\n * @param cert Certificado usado para firmar.\n * @return @code true} si el acceso se completo correctamente, {@code false} en caso contrario.\n * @throws Exception Cuando ocurre un error en la comunicaci&oacute;n.\n */\n boolean tokenValidation(byte[] pkcs1, String cert) throws Exception;\n\n /**\n * Env&aacute;a una solicitud de cierre de sesi&oacute;n.\n * @throws Exception Cuando se produce un error en la comunicaci&oacute;n.\n */\n void logoutRequest() throws Exception;\n\n /**\n * Obtiene la peticiones de firma. Las peticiones devueltas deben cumplir\n * las siguientes condiciones:\n * <ul>\n * <li>Estar en el estado se&ntilde;alado (unresolved, signed o rejected).</li>\n * <li>Que todos los documentos que contiene se tengan que firmar con los\n * formatos de firma indicados (s&oacute;lo si se indica alguno)</li>\n * <li>Que las solicitudes cumplan con los filtros establecidos. Estos\n * filtros tendran la forma: key=value</li>\n * </ul>\n * @param signRequestState Estado de las peticiones que se desean obtener.\n * @param filters\n * Listado de filtros que deben cumplir las peticiones\n * recuperadas. Los filtros soportados son:\n * <ul>\n * <li><b>orderAscDesc:</b> con valor \"asc\" para que sea orden\n * ascendente en la consulta, en cualquier otro caso ser&aacute;\n * descendente</li>\n * <li><b>initDateFilter:</b> fecha de inicio de las peticiones</li>\n * <li><b>endDateFilter:</b> fecha de fin de las peticiones</li>\n * <li><b>orderAttribute:</b> par&aacute;metro para ordenar por\n * una columna de la petici&oacute;n</li>\n * <li><b>searchFilter:</b> busca la cadena introducida en\n * cualquier texto de la petici&oacute;n (asunto, referencia,\n * etc)</li>\n * <li><b>labelFilter:</b> texto con el nombre de una etiqueta.\n * Filtra las peticiones en base a esa etiqueta, ej: \"IMPORTANTE\"\n * </li>\n * <li><b>applicationFilter:</b> texto con el identificador de\n * una aplicaci&oacute;n. Filtra las peticiones en base a la\n * aplicaci&oacute;n, ej: \"SANCIONES\"</li>\n * </ul>\n * @param numPage N&uacute;mero de p&aacute;gina del listado.\n * @param pageSize N&uacute;mero de peticiones por p&aacute;gina.\n * @return Lista de peticiones de firma\n * @throws SAXException\n * Si el XML obtenido del servidor no puede analizarse\n * @throws IOException\n * Si ocurre un error de entrada / salida\n */\n PartialSignRequestsList getSignRequests(\n String signRequestState, String[] filters, int numPage, int pageSize)\n throws SAXException, IOException;\n\n /** Inicia la pre-firma remota de las peticiones.\n * @param request Petici&oacute;n de firma.\n * @return Prefirmas de las peticiones enviadas.\n * @throws IOException Si ocurre algun error durante el tratamiento de datos.\n * @throws CertificateEncodingException Si no se puede obtener la codificaci&oacute;n del certificado.\n * @throws SAXException Si ocurren errores analizando el XML de respuesta. */\n TriphaseRequest[] preSignRequests(SignRequest request) throws IOException,\n CertificateException,\n SAXException;\n\n /**\n * Inicia la post-firma remota de las peticiones.\n *\n * @param requests\n * Peticiones a post-firmar\n * @return Listado con el resultado de la operaci&oacute;n de firma de cada\n * petici&oacute;n.\n * @throws IOException\n * Si ocurre algun error durante el proceso\n * @throws CertificateEncodingException\n * Cuando el certificado est&aacute; mal codificado.\n * @throws SAXException\n * Si ocurren errores analizando el XML de respuesta\n */\n RequestResult postSignRequests(TriphaseRequest[] requests) throws IOException,\n CertificateEncodingException, SAXException;\n\n /**\n * Obtiene los datos de un documento.\n *\n * @param requestId\n * Identificador de la petici&oacute;n.\n * @return Datos del documento.\n * @throws SAXException\n * Cuando se encuentra un XML mal formado.\n * @throws IOException\n * Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor.\n */\n RequestDetail getRequestDetail(String requestId) throws SAXException, IOException;\n\n /**\n * Obtiene el listado de aplicaciones para las que hay peticiones de firma.\n * @return Configuracion de aplicaci&oacute;n.\n * @throws SAXException\n * Cuando se encuentra un XML mal formado.\n * @throws IOException\n * Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor.\n */\n AppConfiguration getApplicationList()\n throws SAXException, IOException;\n\n /**\n * Rechaza las peticiones de firma indicadas.\n *\n * @param requestIds\n * Identificadores de las peticiones de firma que se quieren\n * rechazar.\n * @return Resultado de la operacion para cada una de las peticiones de\n * firma.\n * @throws SAXException\n * Si el XML obtenido del servidor no puede analizarse\n * @throws IOException\n * Si ocurre un error de entrada / salida\n */\n RequestResult[] rejectRequests(String[] requestIds,\n String reason) throws SAXException, IOException;\n\n /** Obtiene la previsualizaci&oacute;n de un documento.\n * @param documentId Identificador del documento.\n * @param filename Nombre del fichero.\n * @param mimetype MIME-Type del documento.\n * @return Datos del documento.\n * @throws IOException Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor. */\n DocumentData getPreviewDocument(String documentId,\n String filename,\n String mimetype) throws IOException;\n\n /** Obtiene la previsualizaci&oacute;n de una firma.\n * @param documentId Identificador del documento.\n * @param filename Nombre del fichero.\n * @return Datos del documento.\n * @throws IOException Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor. */\n DocumentData getPreviewSign(String documentId,\n String filename) throws IOException;\n\n /** Obtiene la previsualizaci&oacute;n de un informe de firma.\n * @param documentId Identificador del documento.\n * @param filename Nombre del fichero.\n * @param mimetype MIME-Type del documento.\n * @return Datos del documento.\n * @throws IOException Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor. */\n DocumentData getPreviewReport(String documentId,\n String filename, String mimetype) throws IOException;\n\n /**\n * Aprueba peticiones de firma (les da el visto bueno).\n *\n * @param requestIds\n * Identificador de las peticiones.\n * @return Resultado de la operaci&oacute;n.\n * @throws SAXException\n * Cuando se encuentra un XML mal formado.\n * @throws IOException\n * Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor.\n */\n RequestResult[] approveRequests(String[] requestIds) throws SAXException, IOException;\n\n /**\n * Indica si el conector soporta las funciones de notificaci&oacute;n.\n * @return {@code true} si se soportan las notificaciones, {@code false} en caso contrario.\n */\n boolean isNotificationsSupported();\n\n /**\n * Da de alta en el sistema de notificaciones.\n * @param token\n * \t\t\tToken de registro en GCM.\n * @param device\n * \t\t\tIdentificador de dispositivo.\n * @param certB64\n * \t\t\tCertificado en base 64 del usuario.\n * @return Resultado del proceso de alta en el sistema de notificaciones.\n * \t\t\tIndica\n * @throws SAXException\n * Cuando se encuentra un XML mal formado.\n * @throws IOException\n * Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor.\n */\n NotificationState signOnNotificationService(\n String token, String device, String certB64)\n throws SAXException, IOException;\n\n\n}", "public interface MineService {\n}", "private APIClient() {\n }", "public LoggerProxy(org.jboss.logging.Logger logger)\n/* */ {\n/* 23 */ this.logger = logger;\n/* */ }", "public interface SmartCultureFarmService extends Service<SmartCultureFarm> {\n\n}", "private InjectorManager() {\n // no prepared injectors\n }", "@ServiceInit\n public void init() {\n }", "EzlemurFactory getEzlemurFactory();", "public interface ResourceManager extends RemoteService{\n\n /**\n * This method returns a list of the resources.\n *\n * @return This list of resources.\n * @throws ResourcesException\n */\n public List<ResourceBase> listTypes() throws ResourceException;\n}", "boolean isResolveByProxy();", "public interface OrderFacade {\n}", "@Remote\r\npublic interface EcheanceReglementManagerRemote\r\n extends EcheanceReglementManager\r\n{\r\n\r\n\r\n}", "public interface StupidService {\n void warmCache();\n}", "@Override\n\tprotected BaseService getService() {\n\t\treturn null;\n\t}", "private FournisseurArboTraficService() {\r\n\t\tsuper();\r\n\t}", "public interface SearchClientService {\r\n\t/**\r\n\t * Get Search engine client\r\n\t * \r\n\t * @return\r\n\t */\r\n\tClient getClient();\r\n\r\n\tvoid setup();\r\n\r\n\tvoid shutdown();\r\n}", "private Processor()\n {\n super(providerName+\"ProxyProcessor\");\n }", "public interface OfferService extends SimpleService<Offer> {\n List<Offer> getMyOffers();\n}", "public interface ImportedOsgiServiceProxy {\r\n\r\n\t/**\r\n\t * Provides access to the service reference used for accessing the backing\r\n\t * object. The returned object is a proxy over the native ServiceReference\r\n\t * obtained from the OSGi platform, so that proper service tracking is\r\n\t * obtained. This means that if the imported service change, the updates are\r\n\t * reflected to the returned service reference automatically.\r\n\t * \r\n\t * @return backing object service reference\r\n\t */\r\n\tServiceReferenceProxy getServiceReference();\r\n}", "public interface IRemoteEnvProxyManager extends IRemoteProxyManager {\n \t/**\n \t * Method to get system's environment variables.\n \t *\n\t * @param Project\n\t * IProject\n \t * @return Mapping of environment variables\n \t * @since 2.1\n\t*/\t\n \tpublic Map<String, String> getEnv(IProject project) throws CoreException;\n /**\n * Method to get system's environment variables.\n * \n * @param Resource URI\n * URI\n * @return Mapping of environment variables\n * @since 2.1\n */\n \tpublic Map<String, String> getEnv(URI uri) throws CoreException;\n }", "protected Injector() {\n }", "IMember getServerStub();", "@Override\n\tpublic boolean usingProxy() {\n\t\treturn false;\n\t}", "public interface ExposedDTOAdaptersRegistrar extends DTOAdaptersRegistrar {\n\n /**\n * @return all converters.\n */\n Map<String, Object> getAdapters();\n\n}", "public RiftsawServiceLocator() {\n }", "public ShoppingSessionClient() {\n\t\t/* TODO: instantiate the proxy using the EJBProxyFactory (see the other client classes) */\n\t}", "@ProxyGen\npublic interface UserMongoService {\n\n static UserMongoService create(Vertx vertx, MongoClient client) {\n return new UserMongoServiceImpl(vertx,client);\n }\n\n static UserMongoService createProxy(Vertx vertx, String address) {\n return new UserMongoServiceVertxEBProxy(vertx, address);\n }\n\n}", "Stub.Proxy(IBinder ibinder)\n\t\t{\n\t\t\tmRemote = ibinder;\n\t\t// 2 4:aload_0 \n\t\t// 3 5:aload_1 \n\t\t// 4 6:putfield #19 <Field IBinder mRemote>\n\t\t// 5 9:return \n\t\t}", "protected Class getProxyInterfaceClass() throws Exception\n {\n return IMappingFileLocalObj.class;\n }", "public interface JacksonJaxrsService {\n Class<ProviderBase> getProviderClass() throws ClassNotFoundException;\n Class<ObjectMapper> getMapperClass() throws ClassNotFoundException;\n}", "public interface JiraService extends JiraUrlAware {\n\n}", "public Proxy getProxy() {\n return proxy;\n }", "public interface ApiService {\n\n\n}", "@RemoteServiceClient(SimpleHttpService.class)\npublic interface ISimpleHttpServiceClient extends IServiceClient {\n\n @RemoteMessageClient(SimpleHttpService.REQUEST_START)\n void bootup(int port);\n\n @RemoteMessageClient(SimpleHttpService.REQUEST_STOP)\n void shutdown();\n\n @RemoteMessageClient(SimpleHttpService.REQUEST_INFO)\n void info(int port);\n}" ]
[ "0.63609385", "0.6349011", "0.6347632", "0.6150733", "0.6090755", "0.6040395", "0.59711945", "0.59703946", "0.5954054", "0.59379774", "0.59317994", "0.59314156", "0.59254366", "0.58531857", "0.58211917", "0.5782363", "0.5727553", "0.57156897", "0.56991667", "0.5635948", "0.5631455", "0.56301486", "0.5609627", "0.56076026", "0.55891913", "0.55813986", "0.55757695", "0.5559191", "0.55490464", "0.55387473", "0.5520651", "0.55153143", "0.5495894", "0.5495343", "0.5486939", "0.54862654", "0.5479684", "0.5471584", "0.5436957", "0.5429224", "0.54158616", "0.5413973", "0.5411366", "0.54065365", "0.5388103", "0.5386371", "0.53838253", "0.5382574", "0.5380319", "0.53799504", "0.53791726", "0.5378888", "0.5375112", "0.5364169", "0.5362857", "0.5355123", "0.5349774", "0.53494227", "0.5346548", "0.5345056", "0.534193", "0.53334194", "0.5324708", "0.532125", "0.53039867", "0.5301564", "0.52938455", "0.52935094", "0.5281463", "0.52710485", "0.52679324", "0.5245446", "0.5243463", "0.5239785", "0.523764", "0.52347773", "0.5227422", "0.52272654", "0.52264696", "0.5224767", "0.52240586", "0.522402", "0.5223506", "0.5222404", "0.5214085", "0.52095044", "0.5203216", "0.5198586", "0.5195031", "0.51897293", "0.51882046", "0.51846915", "0.5184674", "0.5184387", "0.51783615", "0.5175255", "0.5169587", "0.5169391", "0.51678735", "0.5161793", "0.51603854" ]
0.0
-1
Retrieve immutable data about a resource.
@Inject public ImmutableRetrieve(final CqlSession session, @MutableReadConsistency final ConsistencyLevel consistency) { super(session, "SELECT quads FROM " + IMMUTABLE_TABLENAME + " WHERE identifier = :identifier ;", consistency); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Map<String, Object> getResource() {\n List<Customer> customerList = customerRepository.findAllByName(\"toto\");\n Map<String,Object> model = new HashMap<String,Object>();\n model.put(\"id\", UUID.randomUUID().toString());\n model.put(\"content\", \"Hello World\");\n return model;\n }", "public ResourceInfo getResource() {\n\t\treturn resource;\n\t}", "public ResourceVO getResource() {\n\treturn resource;\n}", "public ResourceContent getMetadata() throws IOException;", "Resource getResource() {\n\t\treturn resource;\n\t}", "public ImmutableRetrieve() {\n super();\n }", "public AbstractResource resource()\r\n {\r\n\t return this.resource_state;\r\n }", "public ResourceContent getContent() throws IOException;", "protected Resource getResource() {\n return resource;\n }", "public Resource getResource(){\n return res;\n }", "public Resource getResource() {\n return resource;\n }", "public ModifiableResource(Resource resource) {\n super(resource);\n }", "@JsonIgnore\n public String getResource() {\n return this.resource;\n }", "T getObject() {\n\t\t\treturn data;\n\t\t}", "public Map<Resource, Boolean> getResourceToReadOnlyMap()\n {\n return resourceToReadOnlyMap;\n }", "InformationResource createInformationResource();", "public interface DataObject {\n\n /**\n * Returns the length of the contained resource.\n *\n * @return resource length of the resource.\n * @throws IOException when an error occurs while reading the length.\n */\n long getContentLength() throws IOException;\n\n /**\n * Returns an {@link InputStream} representing the contents of the resource.\n *\n * @return contents of the resource as stream.\n * @throws IOException when an error occurs while reading the resource.\n */\n InputStream getInputStream() throws IOException;\n\n /**\n * Returns {@link DataObject} containing the resource. The contents are ranged\n * from the start to the end indexes.\n *\n * @param start index at which data will be read from.\n * @param end index at which dat will be read to.\n * @return ranged resource object.\n * @throws IOException when an error occurs while reading the resource.\n */\n DataObject withRange(int start, int end) throws IOException;\n}", "public Resource getResource(Request request);", "public interface Resource { \n /**\n * @return the time, in <code>millis</code>, at which this resource was\n * last modified.\n */\n public long lastModified();\n\n /**\n * @return the URI that this resource corresponds to.\n */\n public String getURI();\n\n /**\n * @return the <code>InputStream</code> corresponding to this resource.\n * @throws IOException\n */\n public InputStream getInputStream() throws IOException;\n \n \n /**\n * @return the <code>Resource</code> corresponding to the given relative URI.\n * @param uri a URI.\n * @throws IOException\n */ \n public Resource getRelative(String uri) throws IOException;\n \n}", "public IData getData() {\n return data;\n }", "public interface Resource extends Serializable\r\n{\r\n /**\r\n * Gets the resource id.\r\n * \r\n * @return the resource id\r\n */\r\n public String getResourceId();\r\n \r\n /**\r\n * Gets the protocol id\r\n * \r\n * @return the protocol id\r\n */\r\n public String getProtocolId(); \r\n \r\n /**\r\n * Returns the object id of the resource\r\n * \r\n * @return the object id\r\n */\r\n public String getObjectId();\r\n \r\n /**\r\n * Sets the object id.\r\n * \r\n * @param objectId the new object id\r\n */\r\n public void setObjectId(String objectId);\r\n\r\n /**\r\n * Returns the endpoint of the resource\r\n * \r\n * @return the endpoint\r\n */\r\n public String getEndpointId();\r\n\r\n /**\r\n * Sets the endpoint of the resource\r\n * \r\n * @param endpointId String\r\n */\r\n public void setEndpointId(String endpointId);\r\n \r\n /**\r\n * Gets the name.\r\n * \r\n * @return the name\r\n */\r\n public String getName();\r\n \r\n /**\r\n * Sets the name.\r\n * \r\n * @param name the new name\r\n */\r\n public void setName(String name);\r\n \r\n /**\r\n * Gets the metadata for this resource. If there is no metadata\r\n * for this resource, null will be returned.\r\n * \r\n * @return the metadata or null\r\n */\r\n public ResourceContent getMetadata() throws IOException;\r\n \r\n /**\r\n * Gets the content for this resource. If there is no content\r\n * for this resource, null will be returned.\r\n * \r\n * @return the content or null.\r\n */\r\n public ResourceContent getContent() throws IOException;\r\n \r\n /**\r\n * Gets the metadata url. If there is no metadata url for this\r\n * resource, null will be returned.\r\n * \r\n * @return the metadata url or null.\r\n */\r\n public String getMetadataURL();\r\n\r\n /**\r\n * Gets the content url. If there is no content url for this\r\n * resource, null will be returned.\r\n * \r\n * @return the content url\r\n */\r\n public String getContentURL();\r\n \r\n /**\r\n * Gets the object type id.\r\n * \r\n * @return the object type id\r\n */\r\n public String getObjectTypeId();\r\n \r\n /**\r\n * Checks if the resource is a container.\r\n * \r\n * @return true, if is container\r\n */\r\n public boolean isContainer(); \r\n}", "protected abstract void retrievedata();", "Object getData() { /* package access */\n\t\treturn data;\n\t}", "@Override\n\tpublic HashMap<String, String> getData() {\n\t\treturn dataSourceApi.getData();\n\t}", "public abstract IResource getResource();", "Collection getData();", "public abstract T getCreatedResource();", "M getById(Serializable id) throws DataAccessException;", "@GET\n @Path(\"get/{id}\")\n @Produces(\"application/xml\")\n public SEHRDataObject getSEHRDataObject(@PathParam(\"id\") int id) {\n //TODO return proper object, selcted by a list the client receives before\n //throw new UnsupportedOperationException();\n SEHRDataObjectTxHandler sdoTxHandler = SEHRDataObjectTxHandler.getInstance();\n SEHRDataObject sdo = sdoTxHandler.getSDO(id);\n //SEHRDataObject sdo = new SEHRDataObject();\n //sdo.setObjID(IDGenerator.generateID());\n return sdo;\n }", "@Transactional\n public B get(UriInfo uriInfo, String uuid) {\n final AbstractEntityService<?, BE> entityService = getEntityService();\n final BE entity = entityService.getByUuid(uuid);\n if (entity == null) {\n throw entityNotFound(uuid);\n }\n if (!entityService.canViewOrEdit(entity)) {\n throw new AccessDeniedException(getString(\"error.entity.viewpriv\"));\n }\n return serialize(entity, null, true);\n }", "DataCollectionInfo getInfo();", "@GET\n public Map<String, String> get() {\n return first.created();\n }", "Object getData();", "Object getData();", "ResourceAPI createResourceAPI();", "public IResource getResource();", "public Object makeResource();", "public abstract Promise<JsonValue, ResourceException> getRelationshipValueForResource(Context context, \n String resourceId);", "EntityData<?> getEntityData();", "public Object getData();", "E create(Resource data);", "protected SourceInterestMap getEntity() {\n EntityManager em = PersistenceService.getInstance().getEntityManager();\n try {\n return (SourceInterestMap) em.createQuery(\"SELECT e FROM SourceInterestMap e where e.id = :id\").setParameter(\"id\", id).getSingleResult();\n } catch (NoResultException ex) {\n throw new WebApplicationException(new Throwable(\"Resource for \" + uriInfo.getAbsolutePath() + \" does not exist.\"), 404);\n }\n }", "private JPPFResourceWrapper loadResourceData0(Map<String, Object> map, boolean asResource) throws Exception\n\t{\n\t\tif (debugEnabled) log.debug(\"loading remote definition for resource [\" + map.get(\"name\") + \"], requestUuid = \" + requestUuid);\n\t\tJPPFResourceWrapper resource = loadRemoteData(map, false);\n\t\tif (debugEnabled) log.debug(\"remote definition for resource [\" + map.get(\"name\") + \"] \"+ (resource.getDefinition()==null ? \"not \" : \"\") + \"found\");\n\t\treturn resource;\n\t}", "@GET\n @Path(\"/\")\n public Response read() {\n\n if (entityDefinition == null) {\n return Response.status(Status.NOT_FOUND).build();\n }\n EntityBody entityBody = entityDefinition.getService().getCustom(entityId);\n if (entityBody == null) {\n return Response.status(Status.NOT_FOUND).build();\n }\n return Response.status(Status.OK).entity(entityBody).build();\n }", "public Data getData() {\n return data;\n }", "public Data getData() {\n return data;\n }", "public abstract Object getData();", "T getData() {\n\t\treturn data;\n\t}", "public List<ResourceItem> resourceList() {\n return this.resourceList;\n }", "Resource getAbilityResource();", "void readProperty(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType format)\n throws ODataApplicationException, SerializerException;", "Serializable retrieveAllData();", "@ApiStatus.Internal\n @NotNull\n public Map<String, Object> getData() {\n return data;\n }", "@Override\n protected Representation get() throws ResourceException {\n System.out.println(\"The GET method of root resource was invoked.\");\n return new StringRepresentation(\"This is the root resource\");\n }", "protected abstract T getResource(Coordinate coord);", "@Override\n/// @XmlElement(name = \"resource\", namespace = Namespaces.SRV)\n public Collection<DataIdentification> getResources() {\n return resources = nonNullCollection(resources, DataIdentification.class);\n }", "public interface IResource {\n\n\t/**\n\t * An optional attribute that identifies the Resource-element.\n\t */\n\tpublic URI getId();\n\n\tpublic boolean setId(URI id);\n\n\t/**\n\t * An optional attribute. If present, it provides a relative URI template for the identifier of the resource. The\n\t * resource's base URI is given by the Resource-element's parent Resource- or Resources-element. The value of the\n\t * path-attribute may be static or may contain embedded template parameters.\n\t */\n\tpublic String getPath();\n\n\tpublic boolean setPath(String path);\n\n\t/**\n\t * An optional attribute whose type is a space-separated list of URIs. Each value in the list identifies a\n\t * ResourceType-element that defines a set of methods supported by the resource.\n\t */\n\tpublic List<URI> getType();\n\n\tpublic boolean setType(List<URI> type);\n\n\tpublic boolean addType(URI type);\n\n\t/**\n\t * Defines the media type for the query component of the resourve URI. Defaults to\n\t * 'application/x-www-form-urlencoded' if not specified which results in query strings being formatted as specified.\n\t */\n\tpublic String getQueryType();\n\n\tpublic boolean setQueryType(String queryType);\n\n\t/**\n\t * A Resource-element contains zero or more Doc-elements.\n\t */\n\tpublic List<IDoc> getDocs();\n\n\tpublic boolean addDoc(IDoc doc);\n\n\t/**\n\t * A Resource-element contains zero or more Param-elements with one of the following values for its style-attriute:\n\t * template, matrix, query, header.\n\t */\n\tpublic List<IParam> getParams();\n\n\tpublic boolean addParam(IParam param);\n\n\t/**\n\t * A Resource-element contains zero or more Method-elements, each of which describes the input to and output from an\n\t * HTTP protocol method that can be applied to the resource. Such locally-defined methods are added to any methods\n\t * included in ResourceType-elements referred to using the type-attribute.\n\t */\n\tpublic List<IMethod> getMethods();\n\n\tpublic boolean addMethod(IMethod method);\n\n\t/**\n\t * A Resource-element contains zero or more Resource-elements that describe sub-resources. Such sub-resources\n\t * inherit matrix and template parameters from the parent resource since their URI is relative to that of the parent\n\t * resource but they do not inherit query or header parameters specified globally for the parent resource.\n\t */\n\tpublic List<IResource> getResources();\n\n\tpublic boolean addResource(IResource resource);\n\n\tpublic String toString();\n\n}", "@RequestMapping(path = \"/v1/resourcedetails\", method = RequestMethod.GET)\n public ResponseEntity<Object> getResourceDetails(@RequestParam(\"ag\") String assetGroup,\n @RequestParam(\"resourceId\") String resourceId) {\n if (Strings.isNullOrEmpty(resourceId)) {\n return ResponseUtils.buildFailureResponse(new Exception(\"assetGroup/resourceId is mandatory\"));\n }\n ResponseData response = null;\n try {\n response = new ResponseData(complianceService.getResourceDetails(assetGroup, resourceId));\n } catch (ServiceException e) {\n return complianceService.formatException(e);\n }\n return ResponseUtils.buildSucessResponse(response);\n }", "private AppResourceData retrieveResource(String url) {\n\n logger.log(ILoggingLogLevel.Debug, LOG_TAG, \"Retrieveing resource: \" + url);\n app = AbstractEmulator.getCurrentEmulator().getApp();\n\n // Remove the anchor attributes of url's of single page application\n int index = url.indexOf(\"#\");\n if (index > 0)\n url = url.substring(0, index);\n\n AppResourceData resource = new AppResourceData();\n InputStream is;\n try {\n is = new FileInputStream(app.getApplicationPath() + url);\n\n resource.setData(Utils.getBytesFromInputStream(is));\n resource.setId(\"1\");\n resource.setRawType(URLConnection.guessContentTypeFromStream(is));\n resource.setRawLength(0);\n resource.setCooked(false);\n resource.setCookedType(\"\");\n resource.setCookedLength(0);\n\n is.close();\n\n } catch (IOException e) {\n logger.log(ILoggingLogLevel.Error, LOG_TAG, e.getMessage());\n resource.setData(\"<html><body><h1>404</h1></body></html>\".getBytes());\n }\n\n return resource;\n }", "@GET\n @Produces({\"application/xml\", \"application/json\"})\n public ModelBase pull() throws NotFoundException {\n // ?? get latest ontModel directly from TopologyManager ??\n ModelBase model = NPSGlobalState.getModelStore().getHead();\n if (model == null)\n throw new NotFoundException(\"None!\"); \n return model;\n }", "@Override\n\tpublic Object readAttribute(URI resource, String attrName)\n\t\t\tthrows StorageSecuirtyException, ResourceAccessException {\n\t\treturn null;\n\t}", "T getData() {\n return this.data;\n }", "@Override\n public ShipVictoryData getData() {\n ShipVictoryData data = new ShipVictoryData();\n data.setTitle(title);\n data.setDescription(description);\n data.setEvents(PersistentUtility.getData(matchers));\n data.setRequirementMet(requirementMet);\n data.setTotalPoints(totalPoints);\n data.setRequiredPoints(requiredPoints);\n return data;\n }", "public Map<ResourceId, ResourceConfig> getResourceMap() {\n return _resourceMap;\n }", "RequesterVO get(int id);", "public interface MapResource {\n\n\t/**\n\t * @return true if the resource is valid\n\t */\n\tpublic boolean isValid();\n\t\n\t/**\n\t * @return null or a short string summary of the resource's state (suitable for an etag)\n\t */\n\tpublic String getIdentityTag();\n\t\n\t/**\n\t * Create a new map or return a recycled one\n\t * @return map\n\t */\n\tpublic abstract mapnik.Map createMap(Object recycleTag);\n\n\t/**\n\t * Recycle a map instance\n\t * @param m\n\t */\n\tpublic abstract void recycleMap(Object recycleTag, mapnik.Map m);\n\n}", "public ResourcePersistence getResourcePersistence() {\n return resourcePersistence;\n }", "final void getData() {\n\t\t//The final method can't be overriden\n\t}", "ObjectResource createObjectResource();", "protected CollectionResource currentResource() throws NotAuthorizedException, BadRequestException {\n return (CollectionResource) cursor.getResource();\n }", "ServiceDataResource createServiceDataResource();", "public int getContents( Resource.Type type );", "public DataItem getData() {\n return data;\n }", "@Path(\"/people\")\npublic interface PersonResource {\n\n /**\n * Returns an array of all the Person entities currently stored. Extra QueryParams can be added to enable filtering. Currently the 'sort' parameter will indicate what field the returned results will be sorted by.\n */\n @GET\n @Produces({ \"application/json\" })\n public abstract Response get(@QueryParam(\"sort\") String sort);\n\n /**\n * Adds a new Person instance\n */\n @POST\n @Produces({ \"application/json\" })\n @CommitAfter\n public abstract Response addNew(Person person);\n\n /**\n * Updates details about a Person\n */\n @PUT\n @Produces({ \"application/json\" })\n @Path(\"{id}\")\n @CommitAfter\n public abstract Response update(Person person);\n\n /**\n * Attempts to retrieve the Person represented by an Id\n */\n @GET\n @Path(\"{id}\")\n @Produces({ \"application/json\" })\n public abstract Response find(@PathParam(\"id\") Long id);\n\n}", "public Object data() {\n return this.data;\n }", "DrbdResource getDrbdResource() {\n return (DrbdResource) getResource();\n }", "protected Entity readEntity(final UriInfoResource uriInfo) throws ODataApplicationException {\n return readEntity(uriInfo, false);\n }", "@Override\n protected Resource createDTO(ResultSet resultSet) throws FHIRPersistenceDataAccessException {\n final String METHODNAME = \"createDTO\";\n log.entering(CLASSNAME, METHODNAME);\n\n Resource resource = new Resource();\n\n try {\n resource.setData(resultSet.getBytes(\"DATA\"));\n resource.setId(resultSet.getLong(\"RESOURCE_ID\"));\n resource.setLastUpdated(resultSet.getTimestamp(\"LAST_UPDATED\"));\n resource.setLogicalId(resultSet.getString(\"LOGICAL_ID\"));\n resource.setVersionId(resultSet.getInt(\"VERSION_ID\"));\n resource.setDeleted(resultSet.getString(\"IS_DELETED\").equals(\"Y\") ? true : false);\n } catch (Throwable e) {\n FHIRPersistenceDataAccessException fx = new FHIRPersistenceDataAccessException(\"Failure creating Resource DTO.\");\n throw severe(log, fx, e);\n } finally {\n log.exiting(CLASSNAME, METHODNAME);\n }\n\n return resource;\n }", "public static Representation getResourceResponseEntity() {\n return getResourceResponse() == null ? null : getResourceResponse().getEntity();\n }", "Object getCurrentData();", "public MetaData getMetaData();", "RecipeInformationObject getRecipeInformation(int recipeId) throws EntityException, EntityNotFoundException;", "protected abstract Serializable getEntity();", "public ArrayList<Resource> getStaticInfo() {\n\t\tArrayList<Resource> resources = new ArrayList<Resource>();\n\n\t\t// ~~~ CPU\n\t\tResource cpuResource = new Resource();\n\t\tcpuResource.setResourceType(ResourceType.CPU);\n\t\tcpuResource.setName(clientStaticInfo.getCPUVendor() + \" CPU\");\n\n\t\tAttribute cpuSpeedAttribute = new Attribute();\n\t\tcpuSpeedAttribute.setAttributeType(AttributeType.CPUSpeed);\n\t\tcpuSpeedAttribute.setValue(Double.parseDouble(clientStaticInfo\n\t\t\t\t.getCPUSpeed()));\n\t\tcpuSpeedAttribute.setDate(new Date());\n\t\tcpuResource.addAttribute(cpuSpeedAttribute);\n\n\t\tresources.add(cpuResource);\n\t\t// ~~~ RAM\n\t\tResource ramResource = new Resource();\n\t\tramResource.setResourceType(ResourceType.RAM);\n\t\tramResource.setName(\"RAM\");\n\n\t\tAttribute ramTotalAttribute = new Attribute();\n\t\tramTotalAttribute.setAttributeType(AttributeType.TotalMemory);\n\t\tramTotalAttribute.setValue(Double.parseDouble(clientStaticInfo\n\t\t\t\t.getRAMInfo()));\n\t\tramTotalAttribute.setDate(new Date());\n\t\tramResource.addAttribute(ramTotalAttribute);\n\n\t\tresources.add(ramResource);\n\t\t// ~~~ OS\n\t\tResource osResource = new Resource();\n\t\tosResource.setResourceType(ResourceType.OS);\n\t\tosResource.setName(clientStaticInfo.getOSInfo());\n\n\t\tresources.add(osResource);\n\t\t// ~~~ SStorage\n\t\tResource sstorageResource = new Resource();\n\t\tsstorageResource.setResourceType(ResourceType.SStorage);\n\t\tsstorageResource.setName(\"SSTORAGE\");\n\n\t\tAttribute sstorageTotalAttribute = new Attribute();\n\t\tsstorageTotalAttribute.setAttributeType(AttributeType.TotalStorage);\n\t\tsstorageTotalAttribute.setValue(Double.parseDouble(clientStaticInfo\n\t\t\t\t.getSStorageInfo()));\n\t\tsstorageTotalAttribute.setDate(new Date());\n\t\tsstorageResource.addAttribute(sstorageTotalAttribute);\n\n\t\tresources.add(sstorageResource);\n\n\t\treturn resources;\n\t}", "List<Resource> resources();", "public edu.ustb.sei.mde.morel.resource.morel.IMorelMetaInformation getMetaInformation();", "Resource createResource();", "public Object get(String path)\n {\n return DataObjectUtil.get(this, path);\n }", "public Resource storeResource( Resource r );", "public ReactorResult<DataObject> getAllGeneralEncapsulatedObject_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), GENERALENCAPSULATEDOBJECT, DataObject.class);\r\n\t}", "public ArrayList<Resource> getDynamicInfo() {\n\t\tArrayList<Resource> resources = new ArrayList<Resource>();\n\t\t// ~~~ CPU\n\t\tResource cpuResource = new Resource();\n\t\tcpuResource.setResourceType(ResourceType.CPU);\n\t\tcpuResource.setName(clientDynamicInfo.getCPUVendor() + \" CPU\");\n\n\t\tAttribute cpuUtilizationAttribute = new Attribute();\n\t\tcpuUtilizationAttribute.setAttributeType(AttributeType.CPUUtilization);\n\t\tcpuUtilizationAttribute.setValue(Double.parseDouble(clientDynamicInfo\n\t\t\t\t.getCPUUsage()));\n\t\tcpuUtilizationAttribute.setDate(new Date());\n\t\tcpuResource.addAttribute(cpuUtilizationAttribute);\n\n\t\tresources.add(cpuResource);\n\t\t// ~~~ RAM\n\t\tResource ramResource = new Resource();\n\t\tramResource.setResourceType(ResourceType.RAM);\n\t\tramResource.setName(\"RAM\");\n\n\t\tAttribute ramFreeAttribute = new Attribute();\n\t\tramFreeAttribute.setAttributeType(AttributeType.FreeMemory);\n\t\tramFreeAttribute.setValue(Double.parseDouble(clientDynamicInfo\n\t\t\t\t.getRAMFreeInfo()));\n\n\t\tramResource.addAttribute(ramFreeAttribute);\n\n\t\tramFreeAttribute.setDate(new Date());\n\n\t\tAttribute ramUtilizationAttribute = new Attribute();\n\t\tramUtilizationAttribute\n\t\t\t\t.setAttributeType(AttributeType.MemoryUtilization);\n\t\tramUtilizationAttribute.setValue(Double.parseDouble(clientDynamicInfo\n\t\t\t\t.getRAMUtilizationInfo()));\n\t\tramResource.addAttribute(ramUtilizationAttribute);\n\n\t\tresources.add(ramResource);\n\t\t// ~~~ SStorage\n\t\tResource sstorageResource = new Resource();\n\t\tsstorageResource.setResourceType(ResourceType.SStorage);\n\t\tsstorageResource.setName(\"SSTORAGE\");\n\n\t\tAttribute sstorageFreeAttribute = new Attribute();\n\t\tsstorageFreeAttribute.setAttributeType(AttributeType.FreeStorage);\n\t\tsstorageFreeAttribute.setValue(Double.parseDouble(clientDynamicInfo\n\t\t\t\t.getSStorageFreeInfo()));\n\t\tsstorageFreeAttribute.setDate(new Date());\n\t\tsstorageResource.addAttribute(sstorageFreeAttribute);\n\n\t\tAttribute sstorageUtilizationAttribute = new Attribute();\n\t\tsstorageUtilizationAttribute\n\t\t\t\t.setAttributeType(AttributeType.StorageUtilization);\n\t\tsstorageUtilizationAttribute.setValue(Double\n\t\t\t\t.parseDouble(clientDynamicInfo.getSStorageUtilizationInfo()));\n\t\tsstorageUtilizationAttribute.setDate(new Date());\n\t\tsstorageResource.addAttribute(sstorageUtilizationAttribute);\n\n\t\tresources.add(sstorageResource);\n\n\t\treturn resources;\n\t}", "public Descriptor getData() {\n return this;\n }", "public A getData()\n\t{\n\t\treturn data;\n\t}", "public synchronized Object getData() {\n return data;\n }", "public interface ReadOnlyWhatNow {\n\n UniqueTagList getUniqueTagList();\n\n UniqueTaskList getUniqueTaskList();\n\n /**\n * Returns an unmodifiable view of tasks list\n */\n List<ReadOnlyTask> getTaskList();\n\n /**\n * Returns an unmodifiable view of tags list\n */\n List<Tag> getTagList();\n\n}", "public interface IResource {\n\t// TODO: Have priorities for resources either here or implemented in IResourceView\n\n\n\tpublic String getName();\n\t\n\tpublic IUniformLocation getLocation(); // public IStorageLocation getLocation() ?\n\t\n\tpublic IResourceType getType();\n}", "public Map<String, Object> getCurrentData() throws Exception;", "Information getInfo();", "public Object getData(){\n\t\treturn this.data;\n\t}", "private JPPFResourceWrapper loadResourceData(Map<String, Object> map, boolean asResource) throws ClassNotFoundException\n\t{\n\t\tJPPFResourceWrapper resource = null;\n\t\ttry\n\t\t{\n\t\t\tif (debugEnabled) log.debug(\"loading remote definition for resource [\" + map.get(\"name\") + \"]\");\n\t\t\tresource = loadResourceData0(map, asResource);\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tif (debugEnabled) log.debug(\"connection with class server ended, re-initializing\");\n\t\t\tinit();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tresource = loadResourceData0(map, asResource);\n\t\t\t}\n\t\t\tcatch(ClassNotFoundException ex)\n\t\t\t{\n\t\t\t\tthrow ex;\n\t\t\t}\n\t\t\tcatch(Exception ex)\n\t\t\t{\n\t\t\t\tif (debugEnabled) log.debug(e.getMessage(), e);\n\t\t\t}\n\t\t}\n\t\tcatch(ClassNotFoundException e)\n\t\t{\n\t\t\tthrow e;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tif (debugEnabled) log.debug(e.getMessage(), e);\n\t\t}\n\t\treturn resource;\n\t}", "Resource getResource();" ]
[ "0.61329013", "0.60984933", "0.6044419", "0.5915224", "0.590556", "0.5897522", "0.58890915", "0.58267736", "0.581062", "0.5786709", "0.5770846", "0.57505596", "0.5696429", "0.5683062", "0.5601922", "0.55852956", "0.5580025", "0.55180013", "0.5470347", "0.5446883", "0.5444095", "0.5413482", "0.5392605", "0.5385699", "0.5351039", "0.5348171", "0.53207445", "0.530809", "0.5305648", "0.52981675", "0.5295805", "0.5289645", "0.5278409", "0.5278409", "0.5278306", "0.5274614", "0.52359545", "0.5235136", "0.5225449", "0.5218042", "0.5216943", "0.5214312", "0.51982117", "0.5195906", "0.51933277", "0.51933277", "0.5178754", "0.5176064", "0.51736355", "0.5173561", "0.5167093", "0.5165807", "0.51640207", "0.51264226", "0.5123486", "0.5121497", "0.51043975", "0.5100439", "0.50891024", "0.5084428", "0.5083691", "0.50692666", "0.50522053", "0.5050332", "0.5042489", "0.5036732", "0.5035737", "0.50318056", "0.503167", "0.5031288", "0.50205135", "0.50204736", "0.50185156", "0.50104475", "0.50102395", "0.50091517", "0.50087976", "0.5006451", "0.50041014", "0.50013256", "0.4991246", "0.49876907", "0.49876076", "0.49860767", "0.49735728", "0.49697286", "0.49633628", "0.49619734", "0.49600187", "0.49567074", "0.4953836", "0.49537417", "0.49476686", "0.49466997", "0.49462834", "0.4942605", "0.49423367", "0.493194", "0.49309793", "0.4930897", "0.49299777" ]
0.0
-1
This method was generated by Apache iBATIS ibator. This method returns the value of the database column cementerio.persona.dni
public String getDni() { return dni; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDni() {\n\t\treturn dni;\n\t}", "public String getDni() {\n\t\treturn dni;\n\t}", "public String getDNI(){\n return dni;\n }", "@Override\r\n\tpublic String getDNI() {\n\t\treturn dni;\r\n\t}", "public Dni getDni() {\n return dni;\n }", "@AutoEscape\n\tpublic String getDni();", "public void setDni(String dni) {\r\n\t\tthis.dni = dni;\r\n\t}", "public void setDni(String dni) {\n\t\tthis.dni = dni;\n\t}", "public void setDni(Dni dni) {\n this.dni = dni;\n }", "public int getDbNAIC() {\r\n\t\treturn dbNAIC;\r\n\t}", "public void setDni(String dni);", "public String getDbn() {\n return dbn;\n }", "public abstract String getDnForPerson(String inum);", "public String getDia() {\n\t\treturn this.dia;\n\t}", "public Persona funcionarioByDNI(String usr_login) throws Exception {\r\n\t\tPersona f = null;\r\n\t\tResultSet consulta = conDao\r\n\t\t\t\t.consultaSQL(\"SELECT p.per_id as dni , p.per_nombres as nombres, \"\r\n\t\t\t\t\t\t+ \" p.per_apellidos as apellidos, p.per_correo as correo, \"\r\n\t\t\t\t\t\t+ \" f.fun_cargo as cargo, f.fun_jefe_inmediato as jefe, f.fun_gerencia as gerencia, f.fun_direccion as direccion, \"\r\n\t\t\t\t\t\t+ \" (select pe.per_nombres||' '||pe.per_apellidos \"\r\n\t\t\t\t\t\t+ \" from gen_persona pe where pe.per_id=f.fun_jefe_inmediato) as nombreJefe \"\r\n\t\t\t\t\t\t+ \" FROM gen_persona p INNER JOIN gen_usuario u ON p.per_id = u.per_id \"\r\n\t\t\t\t\t\t+ \" INNER JOIN gen_funcionario f on f.per_id = u.per_id \"\r\n\t\t\t\t\t\t+ \" WHERE u.usu_login = '\" + usr_login + \"'\");\r\n\t\tif (consulta != null) {\r\n\t\t\tconsulta.next();\r\n\t\t\tf = new Persona();\r\n\t\t\tf.setPerDNI(consulta.getString(\"dni\"));\r\n\t\t\tf.setPerNombres(consulta.getString(\"nombres\"));\r\n\t\t\tf.setPerApellidos(consulta.getString(\"apellidos\"));\r\n\t\t\tf.setPerCorreo(consulta.getString(\"correo\"));\r\n\t\t\tf.setCargo(consulta.getString(\"cargo\"));\r\n\t\t\tf.setJefeInmediato(consulta.getString(\"jefe\"));\r\n\t\t\tf.setPerGerencia(consulta.getString(\"gerencia\"));\r\n\t\t\tf.setPerDireccion(consulta.getString(\"direccion\"));\r\n\t\t}\r\n\t\treturn f;\r\n\t}", "public String getNumeroPersona() {\n\t\treturn numeroPersona;\n\t}", "public StrColumn getPdbxDatabaseIdDOI() {\n return delegate.getColumn(\"pdbx_database_id_DOI\", DelegatingStrColumn::new);\n }", "@Column(name = \"C_NO_IDENTIFICACION\", nullable = true)\n public String getNoIdentificacion() {\n return noIdentificacion;\n }", "public int nun_entidade_bd() {\r\n return 12;\r\n }", "public void setDni(String dni){\n if(dni == null){\n throw new IllegalArgumentException(\"DNI de usuario igual a null\");\n }\n this.dni = dni;\n }", "public String getNacionalidade() {\n return nacionalidade;\n }", "public Number getDotaId() {\n return (Number)getAttributeInternal(DOTAID);\n }", "public Persona personasolicitudByDNI(String per_id) throws Exception {\r\n\t\tPersona f = null;\r\n\t\tResultSet consulta = conDao\r\n\t\t\t\t.consultaSQL(\"SELECT p.per_id as dni , p.per_nombres as nombres, \"\r\n\t\t\t\t\t\t+ \" p.per_apellidos as apellidos, p.per_correo as correo, \"\r\n\t\t\t\t\t\t+ \" f.fun_cargo as cargo, f.fun_jefe_inmediato as jefe, f.fun_gerencia as gerencia, f.fun_direccion as direccion, \"\r\n\t\t\t\t\t\t+ \" (select pe.per_nombres||' '||pe.per_apellidos \"\r\n\t\t\t\t\t\t+ \" from gen_persona pe where pe.per_id=f.fun_jefe_inmediato) as nombreJefe, \"\r\n\t\t\t\t\t\t+ \" (select pe.per_correo from gen_persona pe where pe.per_id=f.fun_jefe_inmediato) as correojefeinmediato\"\r\n\t\t\t\t\t\t+ \" FROM gen_persona p INNER JOIN gen_usuario u ON p.per_id = u.per_id \"\r\n\t\t\t\t\t\t+ \" INNER JOIN gen_funcionario f on f.per_id = u.per_id \"\r\n\t\t\t\t\t\t+ \" WHERE p.per_id = '\" + per_id + \"'\");\r\n\t\tif (consulta != null) {\r\n\t\t\tconsulta.next();\r\n\t\t\tf = new Persona();\r\n\t\t\tf.setPerDNI(consulta.getString(\"dni\"));\r\n\t\t\tf.setPerNombres(consulta.getString(\"nombres\"));\r\n\t\t\tf.setPerApellidos(consulta.getString(\"apellidos\"));\r\n\t\t\tf.setPerCorreo(consulta.getString(\"correo\"));\r\n\t\t\tf.setCargo(consulta.getString(\"cargo\"));\r\n\t\t\tf.setJefeInmediato(consulta.getString(\"jefe\"));\r\n\t\t\tf.setPerGerencia(consulta.getString(\"gerencia\"));\r\n\t\t\tf.setPerDireccion(consulta.getString(\"direccion\"));\r\n\t\t\tf.setCorreoJefeInmediato(consulta.getString(\"correojefeinmediato\"));\r\n\t\t}\r\n\t\treturn f;\r\n\t}", "public int getDificultad ()\n {\n //Pre:\n //Post: Devuelve el nivel de dificultad\n return dificultad;\n }", "public boolean dniCorrecto() {\r\n\t\treturn dniCorrecto(this.dni);//Llama al metodo estatico pasando como parametro el atributo dni\r\n\t}", "@ApiOperation(value = \"Returns if the DNI already exists\", response = String.class)\n\t@RequestMapping(value = \"/verifyClientByDNI/{dni}\", method = RequestMethod.GET, produces = \"application/json\")\n\tpublic String verifyClientByDNI(\n\t\t\t@ApiParam(name = \"dni\", value = \"DNI number\", required = true) @PathVariable(name = \"dni\", required = true) String dni) {\n\t\treturn \"{\\\"\" + dni + \"\\\":\" + crmService.verifyClientByDNI(dni) + \"}\";\n\t}", "public String getDcpoNo() {\n return (String)getAttributeInternal(DCPONO);\n }", "public java.lang.String getNoticiaId() {\n\t\treturn _pnaNoticiaGrupoLector.getNoticiaId();\n\t}", "public Integer getNationalId() {\n return nationalId;\n }", "public int getDificultat() {\r\n\t\treturn dificultat;\r\n\t}", "public Long cniAsNumber() {\n return this.innerProperties() == null ? null : this.innerProperties().cniAsNumber();\n }", "public String getNacionalidad(){\n\t\treturn nacionalidad;\n\t}", "public java.lang.String getNationalId() {\r\n return nationalId;\r\n }", "public Number getDssNotifIdFk() {\r\n return (Number) getAttributeInternal(DSSNOTIFIDFK);\r\n }", "public IGraoPersonInfo getGraoPersonInfo(String idn) throws JsonParseException, JsonMappingException, IOException{\r\n \t//get person info as JSON String\r\n \t\tString jsonPersonInfo = getPersonInfoAsString(idn, GraoFlagConstants.JSON | GraoFlagConstants.SKIP_NULL);\r\n \t\t\r\n \t\t//Convert JSON String to IPersonInfoProperties data structure\r\n \t IPersonInfoProperties pp = GraoPersonInfoToPersonProp.getPersonInfoProperties(jsonPersonInfo);\r\n \t \r\n \t //convert to IGraoPersonInfo data structure \r\n \t IGraoPersonInfo pInfo = GraoUtils.getGraoPersonInfo(pp);\r\n\t\treturn pInfo;\r\n }", "public java.lang.String getCombatNpcPersonalityId() {\n java.lang.Object ref = combatNpcPersonalityId_;\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 combatNpcPersonalityId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public long getPersonaId() {\n return personaId;\n }", "public String annaNimi()\n\t{\n\t\treturn this.nimi;\n\t}", "public int getNivelDanio() {\n return this.nivelDanio;\n }", "public java.lang.String getDsNome() {\n return dsNome;\n }", "public boolean comprobarDNIenBD(String dni, Modelo mod) {\n\t\tString sql = \"select DNI from cliente where DNI = \\\"\" + dni + \"\\\"\";\n\t\tResultSet rs = mod.db.hacerPeticion(sql);\n\t\ttry {\n\t\t\tif (rs.next()) {\n\t\t\t\treturn true;\n\t\t\t} else\n\t\t\t\treturn false;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn false;\n\t}", "public String getNpCod() {\n return (String)getAttributeInternal(NPCOD);\n }", "public String getCnicNo() {\n return (String)getAttributeInternal(CNICNO);\n }", "int getNdviId(String project, String feature, DataDate date) throws SQLException;", "@java.lang.Override\n public java.lang.String getCombatNpcPersonalityId() {\n java.lang.Object ref = combatNpcPersonalityId_;\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 combatNpcPersonalityId_ = s;\n return s;\n }\n }", "public static String getIdd() {\n return idd;\n }", "@Override\n\tpublic String getNaam(){\n\t\tString pName= ctx.getCallerPrincipal().getName();\n\t\tPerson p=userEJB.findPerson(pName);\n\t\tString w=p.getName();\n\t\treturn w;\n\t}", "public int getNiveauIA() {\n\t\treturn niveauIA;\r\n\t}", "public Long getNnid() {\n return nnid;\n }", "public int getDificultad(){\n return dificultad;\n }", "public Integer getIdexpediente() {\r\n return idexpediente;\r\n }", "public int getiD() {\n return iD;\n }", "public IdentifierDt getAccessionNo() { \n\t\tif (myAccessionNo == null) {\n\t\t\tmyAccessionNo = new IdentifierDt();\n\t\t}\n\t\treturn myAccessionNo;\n\t}", "public Number getPersonId() {\n return (Number)getAttributeInternal(PERSONID);\n }", "public int getcodigoIdentificador() {\r\n\t\treturn codigoIdentificador;\r\n\t}", "public long getId_donacion() {\n\t\treturn id_donacion;\n\t}", "public com.google.protobuf.ByteString\n getCombatNpcPersonalityIdBytes() {\n java.lang.Object ref = combatNpcPersonalityId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n combatNpcPersonalityId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "java.lang.String getCombatNpcPersonalityId();", "com.google.protobuf.ByteString\n getCombatNpcPersonalityIdBytes();", "@java.lang.Override\n public com.google.protobuf.ByteString\n getCombatNpcPersonalityIdBytes() {\n java.lang.Object ref = combatNpcPersonalityId_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n combatNpcPersonalityId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Usuario selectPorDni(String dni) {\n\t\tUsuario usuario = null;\r\n\t\ttry {\r\n\t\t\tStatement st = conexion.createStatement();\r\n\t\t\tResultSet rs = st.executeQuery(\"SELECT * FROM usuarios WHERE dni =('\" + dni + \"')\");\r\n\t\t\trs.next();\r\n\t\t\tusuario = new Usuario(rs.getInt(\"id\"), rs.getString(\"nombre\"), rs.getString(\"apellido\"), rs.getInt(\"edad\"),\r\n\t\t\t\t\trs.getString(\"dni\"), rs.getDate(\"fechaNacimiento\"), rs.getString(\"password\"));\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"Error, prueba otra vez\");\r\n\t\t}\r\n\t\treturn usuario;\r\n\t}", "public String getNatAquiferCd() {\n\t\treturn natAquiferCd;\n\t}", "public DBSequence getNotiId() {\r\n return (DBSequence)getAttributeInternal(NOTIID);\r\n }", "String getIdentifiant();", "@Override\r\n\tpublic void setDNI(String dni) {\n\t\tif (dni == null) {\r\n\t\t\tthrow new IllegalArgumentException(\"Null argument is not allowed\");\r\n\t\t}\r\n\t\tif (dni.equals(\"\")) {\r\n\t\t\tthrow new IllegalArgumentException(\"Empty argument is not allowed\");\r\n\t\t}\r\n\t\tthis.dni = dni;\r\n\t}", "public int getIdNoeud() {\n return idNoeud;\n }", "public String getlbr_NFeID();", "public String getlbr_NFeID();", "public static Empleado buscarPorDni(String dni) {\r\n\t\tfor(Empleado empleado: listaDeEmpleados) {\r\n\t\t\tif(empleado.getDni().equals(dni))\r\n\t\t\t\treturn empleado;\r\n\t\t}\r\n\t\treturn null;\t\t\r\n\t}", "public java.lang.String getGPSAntennaDetailsID()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(GPSANTENNADETAILSID$14);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public java.lang.String getDID() {\r\n return DID;\r\n }", "public boolean estaBD(String DNI) throws SQLException {\n boolean result = false;\n String sql;\n ResultSet resultSet;\n String dniBD;\n\n sql = \"SELECT dni \"\n + \"FROM centromedico.paciente \"\n + \"WHERE dni=\" + DNI + \";\";\n resultSet = conexion.makeQuery(sql);\n\n dniBD = null;\n while (resultSet.next()) {\n dniBD = resultSet.getString(\"dni\");\n }\n\n if (dniBD.equals(DNI)) {\n result = true;\n }\n return result;\n }", "public Long getPersonaId();", "java.lang.String getNume();", "java.lang.String getNume();", "public String getNtnNo() {\n return (String)getAttributeInternal(NTNNO);\n }", "public java.lang.String getMDNB() {\n return MDNB;\n }", "public DetalleNominaEmpleado getDetalleNominaEmpleado(Integer dnoeId)\n throws Exception;", "public Persona(String dni, String nombre, String apellido1) {\n\t\tthis.dni = dni;\n\t\tthis.nombre = nombre;\n\t\tthis.apellido1 = apellido1;\n\t}", "public int getNumero() {\n return dado1;\n }", "public String getDn() {\n\t\treturn null;\r\n\t}", "public java.lang.String getDsCidade() {\n return dsCidade;\n }", "public String getDianName() {\n return dianName;\n }", "public String getDSJndiName() {\r\n return jndiName;\r\n }", "public String getNomBdd() {\n\t\treturn nomBdd.getText();\n\t}", "public java.lang.String getDN() {\n return DN;\n }", "public Integer getnId() {\n return nId;\n }", "@Nullable\n public String getDn() {\n return dn;\n }", "public static EmpleadoPlantilla lookupEmpleadoPlantilla_i_dni(com.matisse.MtDatabase db, String dni) {\n return (EmpleadoPlantilla)getEmpleadoPlantilla_i_dniIndex(db).lookup(new Object[] {dni}, getClass(db));\n }", "public String getCidade() {// Retorna o nome da cidade.\r\n\t\treturn cidade;\r\n\t}", "public java.lang.String getNoticiaId() {\n\t\treturn _pnaAlerta.getNoticiaId();\n\t}", "Integer getNLNDreu();", "public String getNomdepartement() {\n return (String) getAttributeInternal(NOMDEPARTEMENT);\n }", "public String getNyukinsakicd() {\r\n return nyukinsakicd;\r\n }", "public String getNationality(){\n\t\treturn nationality;\n\t}", "public void setDni(String dni) throws Exception {\n\t\t//comprobacion de si el ultimo caracter es una letra\n\t\tif(Character.isLetter(dni.charAt(dni.length()))) {\n\t\t\tthis.dni=dni;\n\t\t}else {\n\t\t\tthrow new Exception(\"El ultimo caracter introducido no es una letra\");\n\t\t}\n\t}", "public IdentifierDt getAccessionNoElement() { \n\t\tif (myAccessionNo == null) {\n\t\t\tmyAccessionNo = new IdentifierDt();\n\t\t}\n\t\treturn myAccessionNo;\n\t}", "public String MuestraSoloDNI() {\nString Muestra=\"\";\n\nif(getTipoCliente().equals(\"Docente\")) {\nMuestra=clienteDo.getDni();\n}else if(getTipoCliente().equalsIgnoreCase(\"Administrativo\")) {\nMuestra=clienteAd.getDni();\n}\nreturn Muestra;\n}", "public String getNIF() { return this.NIF; }", "public String getTxt_Nif() {\r\n\t\treturn cb_nifCliente.getSelectedItem().toString();\r\n\t}" ]
[ "0.7653911", "0.7653911", "0.7463763", "0.7400427", "0.7048306", "0.70001245", "0.6780466", "0.676761", "0.62351555", "0.61440974", "0.6131712", "0.6004483", "0.59978604", "0.59894675", "0.59426844", "0.5851602", "0.5833846", "0.5805337", "0.580408", "0.5788469", "0.57499737", "0.572278", "0.5715959", "0.5713404", "0.5668769", "0.5661274", "0.56505585", "0.5631608", "0.5630427", "0.5618748", "0.56043094", "0.5598652", "0.55931187", "0.55675316", "0.55574816", "0.5554905", "0.5546163", "0.5546039", "0.5539935", "0.55389816", "0.5537508", "0.55295503", "0.552924", "0.55142635", "0.55118895", "0.5490549", "0.5487096", "0.5482607", "0.5474314", "0.5453859", "0.54522574", "0.5450072", "0.5446027", "0.5430768", "0.54269266", "0.54154557", "0.5412503", "0.540378", "0.54013926", "0.53925204", "0.5385906", "0.5381916", "0.5366709", "0.5355172", "0.5336908", "0.53299814", "0.5324309", "0.5324309", "0.53231806", "0.5320732", "0.53174835", "0.53158474", "0.5313031", "0.5308321", "0.5308321", "0.5292906", "0.5289208", "0.5279879", "0.52680075", "0.5259709", "0.5259189", "0.5257776", "0.5255839", "0.5255287", "0.52525914", "0.52491814", "0.5248016", "0.52413166", "0.52396584", "0.5233067", "0.5222884", "0.5220424", "0.5220306", "0.5213954", "0.52138203", "0.5209596", "0.52066845", "0.51899856", "0.5182952", "0.51807284" ]
0.7662898
0
This method was generated by Apache iBATIS ibator. This method sets the value of the database column cementerio.persona.dni
public void setDni(String dni) { this.dni = dni; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDni(String dni);", "public void setDni(String dni) {\n\t\tthis.dni = dni;\n\t}", "public void setDni(Dni dni) {\n this.dni = dni;\n }", "public void setDni(String dni){\n if(dni == null){\n throw new IllegalArgumentException(\"DNI de usuario igual a null\");\n }\n this.dni = dni;\n }", "@Override\r\n\tpublic void setDNI(String dni) {\n\t\tif (dni == null) {\r\n\t\t\tthrow new IllegalArgumentException(\"Null argument is not allowed\");\r\n\t\t}\r\n\t\tif (dni.equals(\"\")) {\r\n\t\t\tthrow new IllegalArgumentException(\"Empty argument is not allowed\");\r\n\t\t}\r\n\t\tthis.dni = dni;\r\n\t}", "public void setDni(String dni) throws Exception {\n\t\t//comprobacion de si el ultimo caracter es una letra\n\t\tif(Character.isLetter(dni.charAt(dni.length()))) {\n\t\t\tthis.dni=dni;\n\t\t}else {\n\t\t\tthrow new Exception(\"El ultimo caracter introducido no es una letra\");\n\t\t}\n\t}", "public String getDni() {\r\n\t\treturn dni;\r\n\t}", "public String getDni() {\n\t\treturn dni;\n\t}", "public String getDni() {\n\t\treturn dni;\n\t}", "public String getDNI(){\n return dni;\n }", "@Override\r\n\tpublic String getDNI() {\n\t\treturn dni;\r\n\t}", "public Dni getDni() {\n return dni;\n }", "public Persona(String dni, String nombre, String apellido1) {\n\t\tthis.dni = dni;\n\t\tthis.nombre = nombre;\n\t\tthis.apellido1 = apellido1;\n\t}", "public void setNumeroPersona(String numeroPersona) {\n\t\tthis.numeroPersona = numeroPersona;\n\t}", "public void setNodoDerecho(Nodo nodo){\n der = nodo;\n }", "@AutoEscape\n\tpublic String getDni();", "private void actualizarNombre(Persona persona){\n \n String nombre=IO_ES.leerCadena(\"Inserte el nombre\");\n persona.setNombre(nombre);\n }", "public final synchronized void mo39719a(C15630dn dnVar) {\n this.f40700A = dnVar;\n }", "public boolean dniCorrecto() {\r\n\t\treturn dniCorrecto(this.dni);//Llama al metodo estatico pasando como parametro el atributo dni\r\n\t}", "public void setNOficina (Integer pNOficina)\r\n {\r\n this.nOficina=pNOficina;\r\n }", "public Nodo (String d, Nodo n){\n\t\tdato = d;\n\t\tsiguiente=n;\n\t}", "public void setNulo(boolean nulo) {\n if (autoIncrement && nulo) {\n try {\n throw new ExcepcionPersonalizada(\n \"El campo esta definido como autoincrement y no puede ser nulo.\",\n this,\n \"isNulo\");\n } catch (ExcepcionPersonalizada ex) {\n Logger.getLogger(ParametrosDeCampo.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n \n this.nulo = nulo;\n }", "public static void altaAutorizado( int cta, int dni) throws SQLException_PracticaJDBC2021{\n \t\n\t\t\n\t\t\n }", "public abstract void setCod_dpto(java.lang.String newCod_dpto);", "public void setPersonaId(long value) {\n this.personaId = value;\n }", "public void setIdentificacion(String identificacion)\r\n/* 128: */ {\r\n/* 129:233 */ this.identificacion = identificacion;\r\n/* 130: */ }", "void setDomicilio(java.lang.String domicilio);", "public Persona(String n,String a, byte e,String d){\n this.nombre=n;\n this.apellido=a;\n this.edad=e;\n this.dni=d;\n }", "public void setDotaId(Number value) {\n setAttributeInternal(DOTAID, value);\n }", "public void setCidade(String cidade) {// Altera o nome da cidade.\r\n\t\tthis.cidade = cidade;\r\n\t}", "public boolean NuevoAfiliado(String nombrePersona, String numeroDui) {\n if (!Afiliados.contains(nombrePersona)) { //Verificar que sta persona no este agregada.\n //Agregar nuevo afiliado.\n Afiliados.add(nombrePersona);\n FechaAfiliacion.add(ObtenerFechaActual());\n NumeroDui.add(numeroDui);\n return true;\n }\n return false;\n }", "public void setPersonId(Number value) {\n setAttributeInternal(PERSONID, value);\n }", "public void setnId(Integer nId) {\n this.nId = nId;\n }", "public int getDbNAIC() {\r\n\t\treturn dbNAIC;\r\n\t}", "public void addRegistro(String nombre, String apellidos, String dni) {\r\n\t\t\r\n\t\tSession ss = Util.getSessionFactory().openSession();\r\n\t\tTransaction tr = null;\r\n\t\ttry {\r\n\t\t\ttr = ss.beginTransaction();// comenzamos a hacer cositas\r\n\t\t\t// id incremental,por eso pongo cero\r\n\t\t\tPersona p = new Persona(0, nombre, apellidos, dni);\r\n\t\t\tss.save(p);\r\n\t\t\ttr.commit();\r\n\t\t} catch (HibernateException e) {\r\n\t\t\tSystem.out.println(\"Pako_error= \" + e);\r\n\t\t} finally {\r\n\t\t\tss.close();\r\n\t\t\t// System.out.println(\"Final\");\r\n\t\t}\r\n\t}", "public void setPersonID(String personID){\n this.personID = personID;\n }", "public void setDificultat(int dificultat) {\r\n\t\tthis.dificultat = dificultat;\r\n\t}", "public void setNomDistrito(String nomDistrito);", "public Nodo (String d){\n\t\tthis.dato = d;\n\t\tthis.siguiente = null; //para que apunte el nodo creado a nulo\n\t}", "public void damePersonaje(String personaje){\n this.personaje=personaje;\n\n\n\n }", "public void setDPWeiterePersonen(String value){\n\t\tthis.m_bIsDirty = (this.m_bIsDirty || (!value.equals(this.m_sDPWeiterePersonen)));\n\t\tthis.m_sDPWeiterePersonen=value;\n\t}", "public void setiD(int iD) {\n this.iD = iD;\n }", "public void setID(int iD) {\r\n\t\tthis.iD = iD;\r\n\t}", "public abstract void setNovedad(java.lang.String newNovedad);", "public void setDia(int dia){\n if(dia > 31 || dia < 0){\n System.out.println(\"Dia inválido\");\n }else {\n this.dia = dia;\n }\n }", "public void setDA(String da) {\n\t\tthis.da = da;\r\n\t\tfirePropertyChange(ConstantResourceFactory.P_DA,null,da);\r\n\t}", "public void setEstadoPersona(String p) { this.estadoPersona = p; }", "@Query(value = \"{'dni._id' : ?0}\", delete = true)\r\n\tpublic void deleteByDni(String dni);", "public Persona personasolicitudByDNI(String per_id) throws Exception {\r\n\t\tPersona f = null;\r\n\t\tResultSet consulta = conDao\r\n\t\t\t\t.consultaSQL(\"SELECT p.per_id as dni , p.per_nombres as nombres, \"\r\n\t\t\t\t\t\t+ \" p.per_apellidos as apellidos, p.per_correo as correo, \"\r\n\t\t\t\t\t\t+ \" f.fun_cargo as cargo, f.fun_jefe_inmediato as jefe, f.fun_gerencia as gerencia, f.fun_direccion as direccion, \"\r\n\t\t\t\t\t\t+ \" (select pe.per_nombres||' '||pe.per_apellidos \"\r\n\t\t\t\t\t\t+ \" from gen_persona pe where pe.per_id=f.fun_jefe_inmediato) as nombreJefe, \"\r\n\t\t\t\t\t\t+ \" (select pe.per_correo from gen_persona pe where pe.per_id=f.fun_jefe_inmediato) as correojefeinmediato\"\r\n\t\t\t\t\t\t+ \" FROM gen_persona p INNER JOIN gen_usuario u ON p.per_id = u.per_id \"\r\n\t\t\t\t\t\t+ \" INNER JOIN gen_funcionario f on f.per_id = u.per_id \"\r\n\t\t\t\t\t\t+ \" WHERE p.per_id = '\" + per_id + \"'\");\r\n\t\tif (consulta != null) {\r\n\t\t\tconsulta.next();\r\n\t\t\tf = new Persona();\r\n\t\t\tf.setPerDNI(consulta.getString(\"dni\"));\r\n\t\t\tf.setPerNombres(consulta.getString(\"nombres\"));\r\n\t\t\tf.setPerApellidos(consulta.getString(\"apellidos\"));\r\n\t\t\tf.setPerCorreo(consulta.getString(\"correo\"));\r\n\t\t\tf.setCargo(consulta.getString(\"cargo\"));\r\n\t\t\tf.setJefeInmediato(consulta.getString(\"jefe\"));\r\n\t\t\tf.setPerGerencia(consulta.getString(\"gerencia\"));\r\n\t\t\tf.setPerDireccion(consulta.getString(\"direccion\"));\r\n\t\t\tf.setCorreoJefeInmediato(consulta.getString(\"correojefeinmediato\"));\r\n\t\t}\r\n\t\treturn f;\r\n\t}", "public void setTipoDeDatos(String tipoDeDatos) {\n if (!this.tiposDeDatoEnLaBD.contains(tipoDeDatos)) {\n try {\n throw new ExcepcionPersonalizada(\n \"El tipo de datos '\"+tipoDeDatos+\"' no existe. \\n\"\n + \"Si es un error por favor corrige la clase ParametrosDeCampo\",\n this,\n \"setTipoDeDatos\");\n } catch (ExcepcionPersonalizada ex) {\n Logger.getLogger(ParametrosDeCampo.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n \n this.tipoDeDatos = tipoDeDatos;\n }", "public void asignarAutomovilPersona(){\r\n persona.setAutomovil(automovil);\r\n }", "public Alumno(String dni, String nombre, Direccion direccion, String[] telefonos, LocalDate fecha_nac,\n\t\t\tCurso curso) {\n\t\tthis.dni = dni;\n\t\tthis.nombre = nombre;\n\t\tthis.direccion = direccion;\n\t\tthis.telefonos = telefonos;\n\t\tthis.fecha_nac = fecha_nac;\n\t\tthis.curso = curso;\n\t\tthis.notas = new ArrayList<Notas>();\n\t}", "public static void validarDni(String dni) throws DniException {\n if (dni == null || dni.isEmpty()) {\n throw new DniException(\"Debe introducir un DNI\");\n }\n }", "public Persona funcionarioByDNI(String usr_login) throws Exception {\r\n\t\tPersona f = null;\r\n\t\tResultSet consulta = conDao\r\n\t\t\t\t.consultaSQL(\"SELECT p.per_id as dni , p.per_nombres as nombres, \"\r\n\t\t\t\t\t\t+ \" p.per_apellidos as apellidos, p.per_correo as correo, \"\r\n\t\t\t\t\t\t+ \" f.fun_cargo as cargo, f.fun_jefe_inmediato as jefe, f.fun_gerencia as gerencia, f.fun_direccion as direccion, \"\r\n\t\t\t\t\t\t+ \" (select pe.per_nombres||' '||pe.per_apellidos \"\r\n\t\t\t\t\t\t+ \" from gen_persona pe where pe.per_id=f.fun_jefe_inmediato) as nombreJefe \"\r\n\t\t\t\t\t\t+ \" FROM gen_persona p INNER JOIN gen_usuario u ON p.per_id = u.per_id \"\r\n\t\t\t\t\t\t+ \" INNER JOIN gen_funcionario f on f.per_id = u.per_id \"\r\n\t\t\t\t\t\t+ \" WHERE u.usu_login = '\" + usr_login + \"'\");\r\n\t\tif (consulta != null) {\r\n\t\t\tconsulta.next();\r\n\t\t\tf = new Persona();\r\n\t\t\tf.setPerDNI(consulta.getString(\"dni\"));\r\n\t\t\tf.setPerNombres(consulta.getString(\"nombres\"));\r\n\t\t\tf.setPerApellidos(consulta.getString(\"apellidos\"));\r\n\t\t\tf.setPerCorreo(consulta.getString(\"correo\"));\r\n\t\t\tf.setCargo(consulta.getString(\"cargo\"));\r\n\t\t\tf.setJefeInmediato(consulta.getString(\"jefe\"));\r\n\t\t\tf.setPerGerencia(consulta.getString(\"gerencia\"));\r\n\t\t\tf.setPerDireccion(consulta.getString(\"direccion\"));\r\n\t\t}\r\n\t\treturn f;\r\n\t}", "public void setnDbloodSugar(Integer nDbloodSugar) {\r\n this.nDbloodSugar = nDbloodSugar;\r\n }", "public void setlbr_NFeID (String lbr_NFeID);", "public void setlbr_NFeID (String lbr_NFeID);", "public void setDcpoNo(String value) {\n setAttributeInternal(DCPONO, value);\n }", "public void setCodDistrito(String codDistrito);", "public ImagingStudy setAccessionNo(IdentifierDt theValue) {\n\t\tmyAccessionNo = theValue;\n\t\treturn this;\n\t}", "public void setOndaP1(String ondaP1) {\r\n this.ondaP1 = ondaP1;\r\n }", "public void setNotiId(DBSequence value) {\r\n setAttributeInternal(NOTIID, value);\r\n }", "public void setDificultad(int dificultad){\n this.dificultad=dificultad;\n }", "public void setNnid(Long nnid) {\n this.nnid = nnid;\n }", "public void setNumero(int numero) {\n this.dado1 = numero;\n }", "public String getDbn() {\n return dbn;\n }", "public void setDssNotifIdFk(Number value) {\r\n setAttributeInternal(DSSNOTIFIDFK, value);\r\n }", "public void setJP_BankData_EDI_Info (String JP_BankData_EDI_Info);", "public void setCedula(Integer cedula) {this.cedula = cedula;}", "public abstract String getDnForPerson(String inum);", "public void setNyukinsakicd(String nyukinsakicd) {\r\n this.nyukinsakicd = nyukinsakicd;\r\n }", "@Override\r\n\tpublic void setIzena(String izena) {\n\t\tsuper.setIzena(izena);\r\n\t}", "public void setDsNome(java.lang.String dsNome) {\n this.dsNome = dsNome;\n }", "public boolean comprobarDNIenBD(String dni, Modelo mod) {\n\t\tString sql = \"select DNI from cliente where DNI = \\\"\" + dni + \"\\\"\";\n\t\tResultSet rs = mod.db.hacerPeticion(sql);\n\t\ttry {\n\t\t\tif (rs.next()) {\n\t\t\t\treturn true;\n\t\t\t} else\n\t\t\t\treturn false;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn false;\n\t}", "public void setNota(String nota) {\n this.nota = nota;\n }", "public void setIsperson(Integer isperson) {\n this.isperson = isperson;\n }", "public long getPersonaId() {\n return personaId;\n }", "public void setIdfilial(int idfilial){\r\n this.idfilial = idfilial;\r\n }", "public void setFiNguoitao(String fiNguoitao) {\n this.fiNguoitao = fiNguoitao;\n }", "public void setFiNguoitao(String fiNguoitao) {\n this.fiNguoitao = fiNguoitao;\n }", "public void setCodiceID(int codiceID) \r\n\t\t{\r\n\t\t\tCodiceID = codiceID;\r\n\t\t}", "public Builder setCombatNpcPersonalityId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n combatNpcPersonalityId_ = value;\n onChanged();\n return this;\n }", "public Usuario selectPorDni(String dni) {\n\t\tUsuario usuario = null;\r\n\t\ttry {\r\n\t\t\tStatement st = conexion.createStatement();\r\n\t\t\tResultSet rs = st.executeQuery(\"SELECT * FROM usuarios WHERE dni =('\" + dni + \"')\");\r\n\t\t\trs.next();\r\n\t\t\tusuario = new Usuario(rs.getInt(\"id\"), rs.getString(\"nombre\"), rs.getString(\"apellido\"), rs.getInt(\"edad\"),\r\n\t\t\t\t\trs.getString(\"dni\"), rs.getDate(\"fechaNacimiento\"), rs.getString(\"password\"));\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"Error, prueba otra vez\");\r\n\t\t}\r\n\t\treturn usuario;\r\n\t}", "public void setID(Integer iD) {\n ID = iD;\n }", "public void setLBR_PartnerDFe_ID (int LBR_PartnerDFe_ID);", "public void setIdade(int idade) {\n\t\tthis.idade = idade;\n\t}", "public void setNationality(String nationality);", "public final void setSiguiente(final Celda siguienteN) {\r\n siguiente = siguienteN;\r\n\r\n }", "public void setDID(java.lang.String DID) {\r\n this.DID = DID;\r\n }", "int insertName(int idPerson, String indNameInvalid, String nmNameFirst, String nmNameMiddle, String nmNameLast,\n String indNamePrimary, String cdNameSuffix, Date dtDtNameStartDate);", "public void setPerson(final Personne person) {\n\t\tthis.bindingGroup.unbind();\n\t\tthis.personne = person;\n\t\tthis.initComponentBindings();\n\t\tthis.benevolatsTable.setBenevolats(ObservableCollections.observableList(this.personne.getBenevolatList()));\n\t}", "public void setIdNaturaleza(BigDecimal idNaturaleza) {\r\n this.idNaturaleza = idNaturaleza;\r\n }", "public void setIdexpediente(Integer idexpediente) {\r\n this.idexpediente = idexpediente;\r\n }", "public void setPersonId(long personId);", "public void setNationalId(Integer nationalId) {\n this.nationalId = nationalId;\n }", "public void setDomicilio(String domicilio) {\n this.domicilio = domicilio;\n }", "@Override\n public void agregarSocio(String nombre, int dni, int codSocio) {\n }", "public void setDIA_CHI( String DIA_CHI )\n {\n this.DIA_CHI = DIA_CHI;\n }", "void setNilID();", "public void crearPersona(){\r\n persona = new Persona();\r\n persona.setNombre(\"Jose\");\r\n persona.setCedula(12345678);\r\n }" ]
[ "0.750454", "0.7440635", "0.7288078", "0.71019375", "0.6832628", "0.6597469", "0.62420803", "0.6173342", "0.6173342", "0.6155818", "0.60509956", "0.58078784", "0.57202685", "0.56511223", "0.5529276", "0.55101424", "0.54768807", "0.5428826", "0.53993714", "0.53827196", "0.53403395", "0.530764", "0.5286132", "0.5278556", "0.5249465", "0.5224454", "0.5217649", "0.52002007", "0.5196384", "0.5191897", "0.5185788", "0.51827335", "0.51769286", "0.5176668", "0.5165595", "0.5158596", "0.5154466", "0.514945", "0.51433784", "0.51364154", "0.5135227", "0.5123735", "0.51223546", "0.5118923", "0.51123285", "0.5106951", "0.5106625", "0.5106521", "0.5104568", "0.5104302", "0.5090063", "0.50818974", "0.5055737", "0.504757", "0.50421965", "0.5041508", "0.5041508", "0.5036589", "0.5036207", "0.50316447", "0.5006761", "0.49932393", "0.49919456", "0.49842578", "0.4977594", "0.4958913", "0.49552232", "0.49523303", "0.49425182", "0.49393368", "0.4937566", "0.49249852", "0.4923455", "0.4912793", "0.49106264", "0.49050075", "0.49041837", "0.4901994", "0.48911694", "0.48911694", "0.48860133", "0.48837197", "0.48819253", "0.48760372", "0.48706284", "0.48587716", "0.4851417", "0.4849451", "0.48469067", "0.48423678", "0.4841899", "0.48402098", "0.48376465", "0.4837426", "0.48328567", "0.48247895", "0.481629", "0.4814655", "0.4814622", "0.4813739" ]
0.7506706
0
This method was generated by Apache iBATIS ibator. This method returns the value of the database column cementerio.persona.nombre
public String getNombre() { return nombre; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getNombre() {\n return this._nombre;\n }", "public String getNombre() {\n\t\treturn this.nombre;\n\t}", "public String getNombreCompleto();", "public String getNombre() {\n return this.nombre;\n }", "public java.lang.String getNombre()\r\n {\r\n return this.nombre;\r\n }", "public String getNombreCompleto() {\r\n return nombreCompleto;\r\n }", "public String getNombre() {\n\t\treturn nombre;\n\t}", "public String getNombre() {\n\t\treturn nombre;\n\t}", "public String getNombre() {\n\t\treturn nombre;\n\t}", "public String getNombre() {\n\t\treturn nombre;\n\t}", "public String getNombre() {\n\t\treturn nombre;\n\t}", "public String getNombre() {\n\t\treturn nombre;\n\t}", "public String getNombre() {\n\t\treturn nombre;\n\t}", "public String getNombre() {\n\t\treturn nombre;\n\t}", "public String getNombre() {\n\t\treturn nombre;\n\t}", "public String getNombre() {\n\t\treturn nombre;\n\t}", "public String getNombre() {\n\t\treturn nombre;\n\t}", "public String getNombre() {\n\t\treturn nombre;\n\t}", "public String getNumeroPersona() {\n\t\treturn numeroPersona;\n\t}", "public String getNombre() {\r\n return nombre;\r\n }", "public String getNombre() {\r\n return nombre;\r\n }", "public String getNombre() {\r\n return nombre;\r\n }", "public String getNombre() {\r\n return nombre;\r\n }", "public String getNombre() {\r\n return nombre;\r\n }", "public String getNombre() {\r\n return nombre;\r\n }", "public String getNombre(){\n\t\treturn nombre;\n\t}", "public java.lang.String getNombre() {\n return nombre;\n }", "public java.lang.String getNombre() {\n return nombre;\n }", "public String getNombre() {\r\n return Nombre;\r\n }", "public String getNombre(){\n\treturn this.nombre;\n }", "public java.lang.String getNombreCompleto()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NOMBRECOMPLETO$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public final String getNombrePantalla() {\r\n\t\treturn nombrePantalla;\r\n\t}", "public String getNombre()\r\n {\r\n return nombre;\r\n }", "@Override\n\tpublic String getNombre() {\n\t\treturn nombre;\n\t}", "public String getNombre() {\n return nombre;\n }", "public String getNombre() {\n return nombre;\n }", "public String getNombre() {\n return nombre;\n }", "public String getNombre() {\n return nombre;\n }", "public String getNombre() {\n return nombre;\n }", "public String getNombre() {\n return nombre;\n }", "public String getNombre() {\n return nombre;\n }", "public String getNombre() {\n return nombre;\n }", "public String getNombre() {\n return nombre;\n }", "public String getNombre() {\n return nombre;\n }", "public String getNombre() {\n return nombre;\n }", "public String getNombre() {\n return nombre;\n }", "public String getNombre() {\n return nombre;\n }", "public String getNombre() {\n return nombre;\n }", "public String getNombre() {\n return nombre;\n }", "public String getNombre() {\n return nombre;\n }", "public String getNomor() {\n return this.nomor;\n }", "@Column(name = \"C_PRIMER_NOMBRE\")\n public String getPrimerNombre() {\n return primerNombre;\n }", "public String getNombre(){\r\n return beneficiario[1].toString();\r\n }", "public String getnombre(){\n return nombre;\n }", "public String getAPELLIDONombreDelAlumno() {\r\n\t\tString nombre = \"SUREDA José\";\r\n\t\treturn nombre;\r\n\t}", "public Object getNome() {\n\t\treturn null;\n\t}", "public String nome() {\n\t\treturn this.nome;\n\t}", "public String getNome()\r\n\t{\r\n\t\treturn nome;\r\n\t}", "public String getNome()\r\n\t{\r\n\t\treturn nome;\r\n\t}", "public String getNomeAluno() {\n\t\treturn nomeAluno;\n\t}", "public String getNombre()\n {\n return nombre;\n }", "public String getNombre()\n {\n return nombre;\n }", "public String getNombreFicheroAlumno(){\n\t\treturn \"Ev-Intermedia-Arboles-BST-Apellido1Apellido2Nombre-UOxxxx\";\n\t}", "public String getNombre() {\n\t\treturn mNombre;\n\t}", "public String getNome() {\n\t\treturn this.nome;\r\n\t}", "private void actualizarNombre(Persona persona){\n \n String nombre=IO_ES.leerCadena(\"Inserte el nombre\");\n persona.setNombre(nombre);\n }", "public static String getBiblioNombre() {\n\t\treturn \"nombre\";\n\t}", "public String getNombreEmpresa() {\r\n return this.nombreEmpresa;\r\n }", "public String getNombre () {\n return nombre;\n }", "public String getNome() {\n\t\treturn this.nome;\n\t}", "public String getNome() {\n\t\treturn this.nome;\n\t}", "public String getNome() {\r\n\t\treturn nome;\r\n\t}", "public String getNome() {\r\n\t\treturn nome;\r\n\t}", "public String getNombre_usuario() {\n return nombre_usuario;\n }", "String getNome();", "public Persona(String nombre) {\n\t\tthis.nombre = nombre;\n\t}", "public String getNombrePersonaRecivido() {\r\n\t\treturn nombrePersonaRecivido;\r\n\t}", "String getUltimoNome();", "private PersonaEnvio buscaPersonaPorNombre(PersonaEnvio personaRequest) throws NotariaException{\n\t\tPersonaEnvio respuesta = new PersonaEnvio();\n\t\tString nombrePersona = personaRequest.getNombrePersona().replaceAll(\"\\\\s+\", \" \").trim();\n\t\tList<DatoBusquedaPersona> lista = personaBo.findPersonaByName(nombrePersona);\n\t\tif (lista != null) {\n\t\t\trespuesta.setResultados(new ArrayList<DatoBusquedaPersona>(\n\t\t\t\t\tlista));\n\t\t\trespuesta.setNumeroResultados(lista.size());\n\t\t\trespuesta.setEstatus(\"Búsqueda correcta.\");\n\t\t\trespuesta.setExito(true);\n\t\t\treturn respuesta;\n\t\t} else {\n\t\t\trespuesta.setResultados(null);\n\t\t\trespuesta.setNumeroResultados(0);\n\t\t\trespuesta.setEstatus(\"No se encontraron resultados.\");\n\t\t\trespuesta.setExito(false);\n\t\t\treturn respuesta;\n\t\t}\n\t}", "public String getNome() {\n\t\treturn nome;\n\t}", "public String getNome() {\n\t\treturn nome;\n\t}", "public String getNome() {\n\t\treturn nome;\n\t}", "public String getNome() {\n\t\treturn nome;\n\t}", "public String getNome() {\n\t\treturn nome;\n\t}", "public String getNome() {\n\t\treturn nome;\n\t}", "public String getNome() {\n\t\treturn nome;\n\t}", "public String getNome() {\n\t\treturn nome;\n\t}", "public String getNome() {\n\t\treturn nome;\n\t}", "public String getNombre() {\n return nombre;\n\n }", "public String getNome() {\r\n return nome;\r\n }", "public String getNome() {\r\n return nome;\r\n }", "public String getNome() {\n return this.nome;\n }", "public String getNome();", "public String getName() {\n return this.session.sessionPersona().getRealName();\n }", "public String getAutorizacion_Nombre_Entidad() {\n return autorizacion_Nombre_Entidad;\n }", "public String getNombre() {return nombre;}", "public String getNome(){\n\t\treturn nome;\n\t}", "public String getNombre(){\r\n return nombre;\r\n }" ]
[ "0.6828232", "0.68109787", "0.67957544", "0.66888785", "0.66683096", "0.66567296", "0.6638007", "0.6638007", "0.6638007", "0.6638007", "0.6638007", "0.6638007", "0.6638007", "0.6638007", "0.6638007", "0.6638007", "0.6638007", "0.6638007", "0.6586697", "0.6569185", "0.6569185", "0.6569185", "0.6569185", "0.6569185", "0.6569185", "0.65595263", "0.65337276", "0.65337276", "0.6505782", "0.6503575", "0.64959127", "0.64866", "0.6479106", "0.64767724", "0.64567024", "0.64567024", "0.64567024", "0.64567024", "0.64567024", "0.64567024", "0.64567024", "0.64567024", "0.64567024", "0.64567024", "0.64567024", "0.64567024", "0.64567024", "0.64567024", "0.64567024", "0.64567024", "0.6450096", "0.6375325", "0.636342", "0.63557464", "0.63542795", "0.63536185", "0.63458866", "0.6345162", "0.6345162", "0.6326064", "0.6325758", "0.6325758", "0.63253915", "0.6318773", "0.6317464", "0.63118637", "0.63116586", "0.62992936", "0.6285342", "0.6276229", "0.6276229", "0.62619734", "0.62619734", "0.6247573", "0.62452745", "0.624426", "0.6231305", "0.6229027", "0.6219469", "0.6218559", "0.6218559", "0.6218559", "0.6218559", "0.6218559", "0.6218559", "0.6218559", "0.6218559", "0.6218559", "0.6210187", "0.6209068", "0.6209068", "0.62051094", "0.6191946", "0.6186305", "0.6183727", "0.61828", "0.6144004", "0.6142008" ]
0.667609
6
This method was generated by Apache iBATIS ibator. This method sets the value of the database column cementerio.persona.nombre
public void setNombre(String nombre) { this.nombre = nombre; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void actualizarNombre(Persona persona){\n \n String nombre=IO_ES.leerCadena(\"Inserte el nombre\");\n persona.setNombre(nombre);\n }", "public void setnombre(String nombre){\n this.nombre = nombre;\n }", "public void setNombre(String nombre) {// ---> SE DEBE PONER EN EL PARAMETRO EL MISMO NOMBRE DEL ATRIBUTO DECLARADO.\r\n\t\tthis.nombre = nombre;\r\n\t}", "public void setNombreCompleto(String nombreCompleto);", "public Persona(String nombre) {\n\t\tthis.nombre = nombre;\n\t}", "public void setNombre(String nombre){\n if(nombre == null){\n throw new IllegalArgumentException(\"Nombre de usuario igual a null\");\n }\n this.nombre = nombre;\n }", "@Override\n public void setNombre(java.lang.String nombre) {\n _partido.setNombre(nombre);\n }", "public void setNombre(String nombre) {\r\n this.nombre = nombre;\r\n }", "public void setNombre(String nombre) {\r\n this.nombre = nombre;\r\n }", "public void setNombre(String nombre) {\r\n this.nombre = nombre;\r\n }", "public void setNombre(String nombre)\n {\n this.nombre = nombre;\n }", "public void setNombre(String nombre) {\n this.nombre = nombre;\n }", "public void setNombre(String nombre) {\n this.nombre = nombre;\n }", "public void setNombre(String nombre) {\n this.nombre = nombre;\n }", "public void setNombre(String nombre) {\n this.nombre = nombre;\n }", "public void setNombre(String nombre) {\n this.nombre = nombre;\n }", "public void setNombre(String nombre) {\n this.nombre = nombre;\n }", "public void setNombre(String nombre) {\n this.nombre = nombre;\n }", "public void setNombre(String nombre) {\n this.nombre = nombre;\n }", "public void setNombre(String nombre) {\n this.nombre = nombre;\n }", "public void setNombre(String nombre) {\n this.nombre = nombre;\n }", "public void setNombre(String nombre) {\n this.nombre = nombre;\n }", "public void setNombre(String nombre) {\n this.nombre = nombre;\n }", "public void setNombre(String nombre){\n\tthis.nombre = nombre;\n }", "public void setNombreUsuario(String nombreUsuario) {\r\n this.nombreUsuario = nombreUsuario;\r\n }", "public void setNombre(java.lang.String nombre) {\n this.nombre = nombre;\n }", "public void setNombre(java.lang.String nombre) {\n this.nombre = nombre;\n }", "public void setNombre(String nombre) {\n\t\tthis.nombre.set(nombre);\n\t}", "public Persona(String nombre) {\n this.nombre = nombre;\n }", "public void setNombreEmpresa(String nombreEmpresa) {\r\n this.nombreEmpresa = nombreEmpresa;\r\n }", "public void setNumeroPersona(String numeroPersona) {\n\t\tthis.numeroPersona = numeroPersona;\n\t}", "public void setNombreCompleto(java.lang.String nombreCompleto)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NOMBRECOMPLETO$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NOMBRECOMPLETO$0);\n }\n target.setStringValue(nombreCompleto);\n }\n }", "public void setNombre(String nombre)\r\n/* 118: */ {\r\n/* 119:214 */ this.nombre = nombre;\r\n/* 120: */ }", "public void setNome(String nomeAeroporto)\n {\n this.nome = nomeAeroporto;\n }", "public void setNombreCompleto(String aNombreCompleto) {\r\n nombreCompleto = aNombreCompleto;\r\n }", "public void setNombre(String Nombre) {\r\n this.Nombre = Nombre;\r\n }", "public void setNombre(String nombre) {\n\t\tthis.nombre = nombre;\n\t}", "public void setNombre(String nombre) {\n\t\tthis.nombre = nombre;\n\t}", "public void setNombre(String nombre) {\n\t\tthis.nombre = nombre;\n\t}", "public void setNombre(String nombre) {\n\t\tthis.nombre = nombre;\n\t}", "public void setNombre(String nombre) {\n\t\tthis.nombre = nombre;\n\t}", "public void setNombre(String nombre) {\n\t\tthis.nombre = nombre;\n\t}", "public void setNombre(String nombre) {\n\t\tthis.nombre = nombre;\n\t}", "@Override\n\tpublic void setNombre(String nombre) {\n\t\tmodel.setNombre(nombre);\n\t}", "public void setNombre (String val) {\n this.nombre = val;\n }", "public void setNombre(String nombre) {this.nombre = nombre;}", "public void setNombre(String nombre){\n this.nombre =nombre;\n }", "public void setNombre(String nombre)\r\n/* 65: */ {\r\n/* 66: 76 */ this.nombre = nombre;\r\n/* 67: */ }", "public void setNombre(String nom) {\n this.nombre = nom;\n }", "public void xsetNombreCompleto(org.apache.xmlbeans.XmlString nombreCompleto)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NOMBRECOMPLETO$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(NOMBRECOMPLETO$0);\n }\n target.set(nombreCompleto);\n }\n }", "public void setNombreUsuario(String nombreUsuario){\n if(nombreUsuario == null){\n throw new IllegalArgumentException(\"Nick de usuario igual a null\");\n }\n this.nombreUsuario = nombreUsuario;\n }", "public void setNombre(String nombre) {\n\t\tproducto.setNombre(nombre);\n\t}", "public void setNombre(String nombre) {\n this.nombre = nombre == null ? null : nombre.trim();\n }", "public void setNome(String pNome){\n this.nome = pNome;\n }", "void setNome(String nome);", "public cABCEmpleados(String nombre) {\r\n this._Nombre = nombre;\r\n }", "@Override public void setEntorno(String nombre, String valor) {\r\n TRAZADOR.info(nombre + \" = \" + valor);\r\n this.sesion.setEntorno(nombre, valor);\r\n }", "public void updateName() {\n try {\n userFound = clientefacadelocal.find(this.idcliente);\n if (userFound != null) {\n userFound.setNombre(objcliente.getNombre());\n clientefacadelocal.edit(userFound);\n objcliente = new Cliente();\n mensaje = \"sia\";\n } else {\n mensaje = \"noa\";\n System.out.println(\"Usuario No Encontrado\");\n }\n } catch (Exception e) {\n mensaje = \"noa\";\n System.out.println(\"El error al actualizar el nombre es \" + e);\n }\n }", "public void setNom(String p_onom);", "public void setNombre(String newNombre) {\n\t\tthis.nombre = newNombre;\n\t}", "private void cambiarNombre(BaseDeDatos baseDeDatos, String nombre, Equipo equipo) {\r\n int equipoID = equipo.getId();\r\n String query = \"{ call datos_equipo.modificar_nombre(?,?) }\";\r\n baseDeDatos.update(query, equipoID, nombre);\r\n }", "public abstract void setNombre(java.lang.String newNombre);", "public void setNome(String nome) {\n String oldNome = this.nome;\n this.nome = nome;\n propertyChangeSupport.firePropertyChange(PROP_NOME, oldNome, nome);\n }", "public void setNombre(String nombre) {\r\n\tthis.nombre = nombre;\r\n}", "public void damePersonaje(String personaje){\n this.personaje=personaje;\n\n\n\n }", "public void crearPersona(){\r\n persona = new Persona();\r\n persona.setNombre(\"Jose\");\r\n persona.setCedula(12345678);\r\n }", "public final void setNombrePantalla(String nombrePantalla) {\r\n\t\tthis.nombrePantalla = nombrePantalla;\r\n\t}", "public void setNome(String nome) {\r\n\t\t// QUALIFICADOR = THIS\r\n\t\tthis.nome = nome;\r\n\t}", "public void setNombrePersonaEnvia(String nombrePersonaEnvia) {\r\n\t\tthis.nombrePersonaEnvia = nombrePersonaEnvia;\r\n\t}", "public void setNome(String nome){\r\n this.nome = nome;\r\n }", "public void setNombreParaMostrar(String nombreParaMostrar) {\n this.nombreParaMostrar = nombreParaMostrar;\n }", "public void setNomProvincia(String nomProvincia);", "public void nomeAluno(String na) {\n\t\tnomeAluno = na; \n\t}", "public void setNomor(String nomor) {\n this.nomor = nomor;\n }", "public void setNome(String nome) {\r\n this.nome = nome;\r\n }", "public void setNome(String nome) {\r\n this.nome = nome;\r\n }", "public void setNome (String nome) {\r\n\t\tthis.nome=nome;\r\n\t}", "public void setNombreLibro(String nombreNuevoLibro)\n {\n this.nombre = nombreNuevoLibro;\n }", "public void setNom ( String nouveauNom ) {\n if ( nouveauNom == null ) {\n nom = NOM_BIDON;\n } else {\n nom = nouveauNom;\n }\n }", "private void setNomeProfessor(String novoNome)\n\t{\n\t\tthis.nomeProfessor = novoNome;\n\t}", "public void setCuenta(String cuenta) {\r\n this.cuenta = cuenta;\r\n }", "public void setNome(String nome) {\n this.nome = nome;\n }", "public void setNome(String nome) {\n this.nome = nome;\n }", "public void setNome(String nome) {\n this.nome = nome;\n }", "public void setIdMuestra(String nombreMuestra) {\r\n\t\tthis.nombreMuestra = nombreMuestra;\r\n\t}", "public void setName(String name)\r\n\t{\r\n\t\tthis.nome = nome;\r\n\t}", "public void setEstadoPersona(String p) { this.estadoPersona = p; }", "@Override\n\tpublic void setNombre(String nbre) {\n\t\tthis.operande += result;\n\t\tnotifyObserver(this.operande);\n\t}", "public Persona(String nombre, String apellido, String email, String telefono){\n this.nombre = nombre;\n this.apellido = apellido;\n this.email = email;\n this.telefono = telefono;\n }", "public void setNom(String nouveauNom) {\r\n if (nouveauNom == null) {\r\n nom = NOM_BIDON;\r\n \r\n } else {\r\n nom = nouveauNom;\r\n }\r\n }", "public void setPrimerNombre(String primerNombre) {\n this.primerNombre = primerNombre;\n }", "public void setNombreClase(String nombreClase) { this.nombreClase = nombreClase; }", "public Persona(String dni, String nombre, String apellido1) {\n\t\tthis.dni = dni;\n\t\tthis.nombre = nombre;\n\t\tthis.apellido1 = apellido1;\n\t}", "@Override public void realizarCobro(Persona persona){\n\tpersona.cuenta.retiro(120);\n }", "public void setTelefono(String telefono);", "public Persona(int idPersona, String nombre, String apellido, String email, String telefono){\n this.idPersona = idPersona;\n this.nombre = nombre;\n this.apellido = apellido;\n this.email = email;\n this.telefono = telefono;\n \n }", "public String getnombre(){\n return nombre;\n }", "public void setName(String name) {\n\t\tthis.nome = name;\n\t}" ]
[ "0.7981642", "0.6880845", "0.6864187", "0.68578047", "0.67811257", "0.67235076", "0.6693539", "0.66742843", "0.66742843", "0.66742843", "0.6646762", "0.6605082", "0.6605082", "0.6605082", "0.6605082", "0.6605082", "0.6605082", "0.6605082", "0.6605082", "0.6605082", "0.6605082", "0.6605082", "0.6605082", "0.6596085", "0.65865207", "0.65810865", "0.65810865", "0.6558509", "0.65521044", "0.653298", "0.6448225", "0.64389306", "0.64285624", "0.6414464", "0.6401917", "0.6385306", "0.63827336", "0.63827336", "0.63827336", "0.63827336", "0.63827336", "0.63827336", "0.63827336", "0.6373254", "0.63698035", "0.63620865", "0.63543904", "0.6323612", "0.6312628", "0.6297446", "0.6288068", "0.6287902", "0.62697756", "0.62476695", "0.62444377", "0.6218536", "0.6210901", "0.618855", "0.6147685", "0.6102233", "0.61008847", "0.6057622", "0.60454446", "0.60343367", "0.60012645", "0.5987543", "0.5987397", "0.5987354", "0.5974948", "0.5962908", "0.5930277", "0.59294957", "0.58822995", "0.58802575", "0.58775127", "0.58775127", "0.5837328", "0.5819261", "0.580778", "0.5806116", "0.5800675", "0.5795982", "0.5795982", "0.5795982", "0.57924443", "0.5772281", "0.5765069", "0.5750018", "0.57484615", "0.57398635", "0.57343835", "0.5732539", "0.57297885", "0.5713451", "0.57120115", "0.5692822", "0.56777364", "0.567681" ]
0.6423107
35
This method was generated by Apache iBATIS ibator. This method returns the value of the database column cementerio.persona.apellido1
public String getApellido1() { return apellido1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getApellido1() {\n\t\treturn apellido1;\n\t}", "public String getApellido(){\n return this.apellido;\n }", "@Column(name = \"C_PRIMER_APELLIDO\")\n public String getPrimerApellido() {\n return primerApellido;\n }", "public void setApellido1(String apellido1) {\r\n\t\tthis.apellido1 = apellido1;\r\n\t}", "public void setApellido1(String apellido1) {\n\t\tthis.apellido1 = apellido1;\n\t}", "public String getApellidos() { return (this.apellidos == null) ? \"\" : this.apellidos; }", "public abstract java.lang.String getApellido();", "public String getOndaP1() {\r\n return ondaP1;\r\n }", "public java.lang.String getIdioma() {\n return idioma;\n }", "public java.lang.String getApellido() {\n return apellido;\n }", "public String getApellido2() {\r\n\t\treturn apellido2;\r\n\t}", "@AutoEscape\n\tpublic String getApellidoPaterno();", "public String getCUSU_APELLIDOS(){\n\t\treturn this.myCusu_apellidos;\n\t}", "public String getApellido() {\n\t\treturn apellido;\n\t}", "public String getApellido(){\n\t\treturn apellido;\n\t}", "public java.lang.String getProformaNo () {\n\t\treturn proformaNo;\n\t}", "public String getNumeroPersona() {\n\t\treturn numeroPersona;\n\t}", "public String getPlaca() {\n return placa;\n }", "public String getPlaca() {\n return placa;\n }", "public long getPersonaId() {\n return personaId;\n }", "public Long getPersonaId();", "public String getPoaNumber() {\n\t\treturn poaNumber;\n\t}", "public String getPoblacion() {\r\n\t\treturn poblacion;\r\n\t}", "public String getApodo(){\n\t\treturn apodo;\n\t}", "java.lang.String getAdresa();", "public String getIcao() { return Icao; }", "public String getAlto() {\r\n return alto;\r\n }", "public String getPoruka() {\r\n\t\t//2.greska \"poruka\"\r\n\treturn poruka;\r\n\t}", "public String darPlaca() {\n\t\treturn placa;\n\t}", "public int getPantallaApunta() {\r\n return this.iPantallaApunta;\r\n }", "public String getPalo() {\n\t\treturn this.palo;\r\n\t}", "public Idioma getIdiomaOriginal() {\n\t\treturn this.getParrafo().getDocumento().getIdioma();\n\t}", "public String getIdAeroporto()\n {\n return this.idAeroporto;\n }", "@JsonProperty(\"anoProcesso\")\n\tpublic Long getAnoProcesso() {\n\t\treturn anoProcesso;\n\t}", "public int getAno(){\n return ano;\n }", "public String getAPELLIDONombreDelAlumno() {\r\n\t\tString nombre = \"SUREDA José\";\r\n\t\treturn nombre;\r\n\t}", "public String getPartitaIva() {\n return partitaIva;\n }", "java.lang.String getAoisId();", "public java.lang.String getIdiomaBusqueda()\n {\n return this.idiomaBusqueda;\n }", "public String getPra1() {\n return pra1;\n }", "public Long getIdPropietario(com.trascender.catastro.recurso.persistent.Parcela pParcela) throws Exception {\n\t\treturn this.getPropietario(pParcela).getIdPersona();\n\t}", "public String getApellidos(){\n return apellidos;\n }", "public java.lang.String getCodigo_pcom();", "@Override\n\t@Field(offset=214, length=8, paddingChar=' ', align=Align.LEFT)\n\tpublic String getMotivoOcorrencia() {\n\t\treturn super.getMotivoOcorrencia();\n\t}", "public int getPesoA() \r\n\t\t{\r\n\t\t\treturn PesoA;\r\n\t\t}", "public Integer getAnnoCorso() {\r\n return this.annoCorso;\r\n }", "private String getIdioma()\n throws MareException\n {\n\t\tLong idioma = UtilidadesSession.getIdioma(this);\n\t\treturn idioma.toString();\n }", "public int getAnio()\r\n {\r\n return this._anio;\r\n }", "public int getAnnoCorso() {\r\n return this.annoCorso;\r\n }", "public int getAno() {\n\t\t\treturn ano;\n\t\t}", "public java.lang.Double getMontoPropinaAnulacion() {\r\n return montoPropinaAnulacion;\r\n }", "public String getAlamat_pelanggan(){\r\n \r\n return alamat_pelanggan;\r\n }", "public void setApellido(String apellido) {\n\t\tthis.apellido = apellido;\n\t}", "@Override\n public Propiedad getPropiedadId(String pNumFinca) throws SQLException {\n ArrayList<Propiedad> resultado = new ArrayList<Propiedad>();\n resultado = (ArrayList<Propiedad>) bdPropiedad.selectQuery(\"SELECT * FROM PROPIEDAD WHERE \"\n + \"ID_PROPIEDAD = '\" + pNumFinca + \"'\");\n Propiedad propiedadSeleccionada = resultado.get(0);\n return propiedadSeleccionada;\n }", "public int getAnnoIscrizione() {\n\t\treturn annoIscrizione;\n\t}", "public String getPropriedade(String nomePropriedade)\n\t{\n\t\treturn arquivoProps.getProperty(nomePropriedade);\n\t}", "public String getRazaN(){\n return razaP1.nombre1();\n }", "public String getOndaP2() {\r\n return ondaP2;\r\n }", "public java.lang.String getProrrataAnualDefinitiva() {\r\n return prorrataAnualDefinitiva;\r\n }", "public java.lang.Long getPeti_numero();", "public java.lang.Long getPeti_numero();", "@Column(name = \"C_PUESTO\")\n public String getPuesto() {\n return puesto;\n }", "public String getProblema() {\n return problema;\n }", "public int getAnio() { return this.anio; }", "public void setApellidos(String p) { this.apellidos = p; }", "public void setApellido2(String apellido2) {\r\n\t\tthis.apellido2 = apellido2;\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tprivate Long buscarIdPais() {\r\n\t\tString cad = \"select p.* from general.pais p where lower(p.descripcion) = 'paraguay'\";\r\n\t\tList<Pais> lista = new ArrayList<Pais>();\r\n\t\tlista = em.createNativeQuery(cad, Pais.class).getResultList();\r\n\t\tif (lista.size() > 0)\r\n\t\t\treturn lista.get(0).getIdPais();\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tprivate Long buscarIdPais() {\r\n\t\tString cad = \"select p.* from general.pais p where lower(p.descripcion) = 'paraguay'\";\r\n\t\tList<Pais> lista = new ArrayList<Pais>();\r\n\t\tlista = em.createNativeQuery(cad, Pais.class).getResultList();\r\n\t\tif (lista.size() > 0)\r\n\t\t\treturn lista.get(0).getIdPais();\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}", "public int getAnio(){\r\n \r\n \r\n return this.anio;\r\n \r\n }", "public void setApellido(java.lang.String apellido) {\n this.apellido = apellido;\n }", "public final String getNombrePantalla() {\r\n\t\treturn nombrePantalla;\r\n\t}", "public String getARo() {\r\n return aRo;\r\n }", "public String getLasagna(){\n return \"ID: \"+this.ID+\"\\nNombre: \"+this.nombre+\"\\nTipo: \"+this.tipo+\"\\nPrecio: \"+this.precio; //Devuelve todos los datos de la lasagna\n }", "public java.lang.String getAnexo() {\n\t\treturn _telefonoSolicitudProducto.getAnexo();\n\t}", "String getAnnoPubblicazione();", "@Column(name = \"C_SEGUNDO_APELLIDO\")\n public String getSegundoApellido() {\n return segundoApellido;\n }", "public abstract java.lang.String getAcma_valor();", "public String getNombreCompleto();", "@javax.persistence.Column(name = \"athlete_code\", nullable = false)\n\tpublic java.lang.Integer getAthleteCode() {\n\t\treturn getValue(org.jooq.examples.cubrid.demodb.tables.Record.RECORD.ATHLETE_CODE);\n\t}", "public String getPassageiro2() {\r\n\r\n if (passageiro == null) {\r\n return \"Poltrona Vazia\";\r\n } else {\r\n return passageiro.getNome();\r\n }\r\n }", "@AutoEscape\n\tpublic String getCodProvincia();", "public String getIpa() {\n return ipa;\n }", "public java.lang.String getCodigo_agencia();", "public String getPoruka() {\r\n\treturn poruka;\r\n\t}", "public String getIdtipobulto()\n {\n return (String)getAttributeInternal(IDTIPOBULTO);\n }", "public abstract java.lang.String getCod_tecnico();", "public java.lang.String getProtein_id() {\n return protein_id;\n }", "@Override\n\tpublic String getComunidadAutonoma() {\n\t\treturn model.getComunidadAutonoma();\n\t}", "public String getTxtapellido() {\n return txtApellido.getText();\n }", "public String getNota() {\n return nota;\n }", "public java.lang.String getPlazo() {\n return plazo;\n }", "public String getPalo() {\n\t\treturn palo;\n\t}", "public Persona buscarPersona(String cedula) {\n\t\treturn null;\r\n\t}", "public String getId_Pelanggan(){\r\n \r\n return id_pelanggan;\r\n }", "public String getPuntoEmision()\r\n/* 124: */ {\r\n/* 125:207 */ return this.puntoEmision;\r\n/* 126: */ }", "public int getAlto() {\n\t\treturn alto;\n\t}", "public String balar() {\r\n return this.SONIDO;\r\n }", "String getCidade();", "public int dameColumna() {\n return this.columna;\n }", "public BuscarPersonaDTO getPersonaPapeleta(Integer personaId,\n\t\t\tInteger papeletaId, String esInfractor) throws Exception;" ]
[ "0.69081664", "0.6691373", "0.64198303", "0.6403201", "0.6331565", "0.62864244", "0.6247487", "0.6247447", "0.61423767", "0.61307067", "0.6041045", "0.6029923", "0.601134", "0.6010113", "0.5988207", "0.5854265", "0.5836477", "0.58270687", "0.58270687", "0.5814352", "0.5803954", "0.57997435", "0.57917386", "0.57559985", "0.57536566", "0.57519686", "0.57370555", "0.57291543", "0.57271546", "0.57222843", "0.571399", "0.5710903", "0.570983", "0.5703434", "0.5694173", "0.5689807", "0.5679843", "0.5674544", "0.5667104", "0.5643831", "0.5636115", "0.5636069", "0.5632445", "0.5625615", "0.56116176", "0.56114775", "0.56082857", "0.56065446", "0.56009734", "0.5587713", "0.5579515", "0.55768985", "0.5572494", "0.55655926", "0.5565174", "0.5559906", "0.5545766", "0.5545625", "0.5538075", "0.55314153", "0.55314153", "0.552814", "0.5514114", "0.5503063", "0.5490356", "0.5478986", "0.54691887", "0.54691887", "0.5461047", "0.5453754", "0.54461235", "0.5438651", "0.5433049", "0.5422252", "0.5416928", "0.54145825", "0.5412586", "0.5409196", "0.5403596", "0.54032373", "0.54019576", "0.5401927", "0.5391913", "0.53905505", "0.5388933", "0.53790003", "0.5371487", "0.5369994", "0.5367694", "0.5364876", "0.5357849", "0.5345099", "0.53356725", "0.5335433", "0.53290874", "0.53262234", "0.53245276", "0.5323175", "0.5322521", "0.5318973" ]
0.6901548
1
This method was generated by Apache iBATIS ibator. This method sets the value of the database column cementerio.persona.apellido1
public void setApellido1(String apellido1) { this.apellido1 = apellido1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setApellido1(String apellido1) {\n\t\tthis.apellido1 = apellido1;\n\t}", "public void setApellidos(String p) { this.apellidos = p; }", "public void setApellido(String apellido) {\n\t\tthis.apellido = apellido;\n\t}", "public abstract void setApellido(java.lang.String newApellido);", "public void setApellido(java.lang.String apellido) {\n this.apellido = apellido;\n }", "public void setIdioma(java.lang.String idioma) {\n this.idioma = idioma;\n }", "public void setApellidos(String apellidos) { this.apellidos = apellidos; }", "void setAnnoPubblicazione(String annoPubblicazione);", "public String getApellido1() {\r\n\t\treturn apellido1;\r\n\t}", "public String getApellido1() {\n\t\treturn apellido1;\n\t}", "public void setApellido2(String apellido2) {\r\n\t\tthis.apellido2 = apellido2;\r\n\t}", "public String getApellido(){\n return this.apellido;\n }", "public void setAnio(int p) { this.anio = p; }", "public void setApellidos(String apellidos){\n if(apellidos == null){\n throw new IllegalArgumentException(\"Apellidos de usuario igual a null\");\n }\n this.apellidos = apellidos;\n }", "public void setApellidoPaterno(String apellidoPaterno);", "public void setOndaP1(String ondaP1) {\r\n this.ondaP1 = ondaP1;\r\n }", "public void setIdAeroporto(String idAeroporto)\n {\n this.idAeroporto = idAeroporto;\n }", "public void setIdacesso(int pIdacesso){\n this.idacesso = pIdacesso;\n }", "public void setPropiedad1(String propiedad1) {\r\n\tthis.propiedad1 = propiedad1;\r\n }", "private void actualizarNombre(Persona persona){\n \n String nombre=IO_ES.leerCadena(\"Inserte el nombre\");\n persona.setNombre(nombre);\n }", "public void setAlto(String alto) {\r\n this.alto = alto;\r\n }", "public void setAno( int ano ){\n this.ano = ano;\n }", "public void setAnio(int anio)\r\n {\r\n this._anio = anio;\r\n this._has_anio = true;\r\n }", "@Column(name = \"C_PRIMER_APELLIDO\")\n public String getPrimerApellido() {\n return primerApellido;\n }", "public void setPrimerApellido(String primerApellido) {\n this.primerApellido = primerApellido;\n }", "private void setARo(final String a) {\r\n this.aRo = a;\r\n }", "public void setPesoA(int pesoA) \r\n\t\t{\r\n\t\t\tPesoA = pesoA;\r\n\t\t}", "public void setAnio(int anio){\r\n \r\n \r\n this.anio = anio;\r\n \r\n }", "public void setPersonaId(long value) {\n this.personaId = value;\n }", "public String getApellidos() { return (this.apellidos == null) ? \"\" : this.apellidos; }", "public abstract void setAcma_valor(java.lang.String newAcma_valor);", "public void setProrrataAnualDefinitiva(java.lang.String prorrataAnualDefinitiva) {\r\n this.prorrataAnualDefinitiva = prorrataAnualDefinitiva;\r\n }", "public void asignarAutomovilPersona(){\r\n persona.setAutomovil(automovil);\r\n }", "public void setPuntoEmision(String puntoEmision)\r\n/* 129: */ {\r\n/* 130:217 */ this.puntoEmision = puntoEmision;\r\n/* 131: */ }", "public Builder setAoisId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n aoisId_ = value;\n onChanged();\n return this;\n }", "public String getOndaP1() {\r\n return ondaP1;\r\n }", "public void setProblema(String problema) {\n this.problema = problema;\n insertProblema();\n }", "public Alumno(String nombre, String apellido) {\n this.nombre = nombre;\n this.apellido = apellido;\n this.pagames=0;\n }", "public void setIdAlumno(int value) {\n this.idAlumno = value;\n }", "public void setOriginalidade(String originalidade) {\r\n this.originalidade = originalidade;\r\n }", "public void setProprietaire(SystemeAmendesInt.Personne proprietaire) {\n this.proprietaire = proprietaire;\n }", "public void setPartitaIva(String partitaIva) {\n this.partitaIva = partitaIva;\n }", "public Persona(String dni, String nombre, String apellido1) {\n\t\tthis.dni = dni;\n\t\tthis.nombre = nombre;\n\t\tthis.apellido1 = apellido1;\n\t}", "public Persona(int idPersona, String nombre, String apellido, String email, String telefono){\n this.idPersona = idPersona;\n this.nombre = nombre;\n this.apellido = apellido;\n this.email = email;\n this.telefono = telefono;\n \n }", "public void setEdificio (String pEdificio)\r\n {\r\n this.edificio = pEdificio;\r\n }", "public void setORM_Markamarca1(orm.Marka value) {\r\n\t\tthis.markamarca1 = value;\r\n\t}", "public void cumplirAños(){\n this.setEdad(((byte)(this.getEdad()+1)));\n }", "public void setNome(String nomeAeroporto)\n {\n this.nome = nomeAeroporto;\n }", "public void setCodigo_pcom(java.lang.String newCodigo_pcom);", "public void setAnnoCorso(int annoCorso) {\r\n int oldAnnoCorso = this.annoCorso;\r\n this.annoCorso = annoCorso;\r\n propertyChangeSupport.firePropertyChange (\"annoCorso\", new Integer (oldAnnoCorso), new Integer (annoCorso));\r\n }", "public void setA1(int a1)\n {\n this.a1 = a1;\n }", "public void setNumeroPersona(String numeroPersona) {\n\t\tthis.numeroPersona = numeroPersona;\n\t}", "public abstract void setCod_tecnico(java.lang.String newCod_tecnico);", "public long getPersonaId() {\n return personaId;\n }", "public java.lang.String getIdioma() {\n return idioma;\n }", "public void setApellidoMaterno(String apellidoMaterno);", "public void setNombreCompleto(String nombreCompleto);", "public void setAnnoIscrizione(int annoIscrizione) {\n\t\tthis.annoIscrizione = annoIscrizione;\n\t}", "public abstract void setAcma_cierre(java.lang.String newAcma_cierre);", "public void setCodigo_agencia(java.lang.String newCodigo_agencia);", "public void pridejNovePivo ()\n\t{\n\t\n\t\tpivo = pivo + PRODUKCE;\n\t\t\n\t}", "public void setPoruka(String poruka) {\r\n\t\t// 1.greska this.poruka.length()\r\n\tif (poruka==null || poruka.length()>140)\r\n\tthrow new RuntimeException(\r\n\t\"Poruka mora biti uneta i mora imati najvise 140 znakova\");\r\n\tthis.poruka = poruka;\r\n\t}", "public void setOndaP2(String ondaP2) {\r\n this.ondaP2 = ondaP2;\r\n }", "public void setIdempresa(String idempresa) {\n\t\tthis.idempresa = idempresa;\n\t}", "public void setIdempresa(String idempresa) {\n\t\tthis.idempresa = idempresa;\n\t}", "public void setIdempresa(String idempresa) {\n\t\tthis.idempresa = idempresa;\n\t}", "public String getIdAeroporto()\n {\n return this.idAeroporto;\n }", "public void setEula(final String eulaValue) {\n this.eula = eulaValue;\n }", "public void setNom(String p_onom);", "public String getApellido(){\n\t\treturn apellido;\n\t}", "public Idioma getIdiomaOriginal() {\n\t\treturn this.getParrafo().getDocumento().getIdioma();\n\t}", "public void altera(Anotacao anotacao) {\n\n //Referencia um bd pra escrever:\n SQLiteDatabase db = getWritableDatabase();\n\n //Cria o conteúdo com os dados setados no método que preenche:\n ContentValues dados = pegaDadosAnotacao(anotacao);\n\n //Pra entrar nos parametros (?) do db.update:\n String [] params = {anotacao.getId().toString()};\n\n //Faz um update (Tabela, dados, where):\n db.update(\"Anotacoes\", dados, \"id = ?\", params);\n }", "public void setPantallaApunta(int iPantallaApunta) {\r\n this.iPantallaApunta = iPantallaApunta;\r\n }", "public String getIcao() { return Icao; }", "@AutoEscape\n\tpublic String getApellidoPaterno();", "public void setPoruka(String poruka) {\r\n\tif (poruka==null || poruka.length()>140)\r\n\tthrow new RuntimeException(\"Poruka mora biti uneta i mora imati najvise 140 znakova\");\r\n\t\r\n\tthis.poruka = poruka;\r\n\t}", "public Persona()\n\t{\n\t\tnombre = \"--\"; //DEFINES POR DEFAULT LAS VARIABLES;\n\t\tapellido = \"--\"; //DEFINES POR DEFAULT LAS VARIABLES;\n\t\tedad = 0; //DEFINES POR DEFAULT LAS VARIABLES;\n\t\talias = \"--\"; //DEFINES POR DEFAULT LAS VARIABLES;\t\t\n\t}", "@Override\n public void setNombre(java.lang.String nombre) {\n _partido.setNombre(nombre);\n }", "public void setAlto(int alto) {\n\t\tthis.alto = alto;\n\t}", "public void setPapeles(int avenida, int calle, int cant);", "public String getCUSU_APELLIDOS(){\n\t\treturn this.myCusu_apellidos;\n\t}", "public void setAnexo(java.lang.String anexo) {\n\t\t_telefonoSolicitudProducto.setAnexo(anexo);\n\t}", "public void setnombre(String nombre){\n this.nombre = nombre;\n }", "public void setEmpresa(Empresa empresa)\r\n/* 89: */ {\r\n/* 90:141 */ this.empresa = empresa;\r\n/* 91: */ }", "public void setPra1(String pra1) {\n this.pra1 = pra1 == null ? null : pra1.trim();\n }", "public String getApellido() {\n\t\treturn apellido;\n\t}", "public String getPlaca() {\n return placa;\n }", "public String getPlaca() {\n return placa;\n }", "public void setPoruka(String poruka) {\r\n\tif (poruka==null || this.poruka.length()>140)\r\n\t\tthrow new RuntimeException(\"Poruka mora biti uneta i mora imati najvise 140 znakova\");\r\n\tthis.poruka = poruka;\r\n\t}", "public void setIdtipobulto(String value)\n {\n setAttributeInternal(IDTIPOBULTO, value);\n }", "public void setCodProvincia(String codProvincia);", "public void editarAlimento(int id_alimento, String nombre, String estado, float caloria, float proteinas,float grasas ,float hidratos_de_carbono, float H20, float NE, float vitamina_a, float vitamina_B1, float vitamina_B2, float vitamina_C, float Niac, float sodio, float potasio, float calcio, float magnesio, float cobre, float hierro, float fosforo, float azufre, float cloro, float Fen, float Ileu, float Leu, float Lis, float Met, float Tre, float Tri, float Val, float Acid, float AlCAL);", "void setCognome(String cognome);", "@Override public void realizarCobro(Persona persona){\n\tpersona.cuenta.retiro(120);\n }", "private void populaAula()\n {\n Aula aula = new Aula(\"Abdominal\", \"Aula que tem como objetivo o aumento da força e resistência muscular abdominal,\"\n + \" melhora da postura e diminuição das dores lombares, através de exercícios de resistência \"\n + \"muscular. Indicada para todos os níveis de condicionamento para iniciantes, intermediários e \"\n + \"avançados. DURAÇÃO 30'\", \"ab.jpg\");\n aulaDAO.insert(aula);\n\n aula = new Aula(\"Boxe\", \"Aula de condicionamento físico que utiliza a técnica e exercícios do boxe. Indicada para todos os níveis \"\n + \"de condicionamento para iniciantes, intermediários e avançados. DURAÇÃO 60'\", \"boxe.gif\");\n aulaDAO.insert(aula);\n\n aula = new Aula(\"Jiu Jitsu\", \"Aula com treinamento específico da modalidade\", \"jiujitsu.gif\");\n aulaDAO.insert(aula);\n\n aula = new Aula(\"Bike\", \"Aula que tem como objetivo o condicionamento cardiovascular, através de uma \"\n + \"periodização de treinamento específica da modalidade. Indicada para todos os níveis de condicionamento para \"\n + \"iniciantes, intermediários e avançados. DURAÇÃO 30', 45' E 60'\", \"bike.gif\");\n aulaDAO.insert(aula);\n }", "public void peleaEn(int idPeleador,int idEmpresa){\n\t\t\n\t}", "public void setIdAmigo(int idAmigo) {\n\t\tthis.idAmigo = idAmigo;\n\t}", "public void setCodProd(IProduto codigo);", "public void setSegundoApellido(String segundoApellido) {\n this.segundoApellido = segundoApellido;\n }", "public void setPoblacion(String poblacion) {\r\n\t\tthis.poblacion = poblacion;\r\n\t}" ]
[ "0.6906479", "0.638484", "0.6267033", "0.6219936", "0.6211711", "0.61607146", "0.59935594", "0.59477603", "0.5906317", "0.58955365", "0.58584255", "0.5785412", "0.5767666", "0.5767282", "0.5738238", "0.5705889", "0.5704736", "0.57020783", "0.56982154", "0.5618445", "0.55669975", "0.5541952", "0.55326384", "0.5526363", "0.55254513", "0.5483938", "0.54803205", "0.54796576", "0.54399186", "0.54260254", "0.5349461", "0.53485405", "0.5331633", "0.5326617", "0.53172266", "0.53038734", "0.5299762", "0.5290307", "0.5289283", "0.5240655", "0.5233655", "0.5216671", "0.52047426", "0.51994896", "0.5190585", "0.517566", "0.5174707", "0.51720923", "0.51705", "0.51648813", "0.51544744", "0.5153272", "0.5137463", "0.51362544", "0.51310277", "0.5127175", "0.5120308", "0.51200867", "0.5114997", "0.51119417", "0.51117", "0.51096857", "0.50948584", "0.5088751", "0.5088751", "0.5088751", "0.5087924", "0.5074887", "0.50722796", "0.5061368", "0.5056091", "0.5054203", "0.5048282", "0.5047057", "0.504523", "0.5044236", "0.504358", "0.5038856", "0.50378335", "0.50335944", "0.50330806", "0.50316435", "0.50266045", "0.50233346", "0.50181365", "0.5017939", "0.5017774", "0.5017774", "0.5016043", "0.501325", "0.5012061", "0.5007683", "0.5006548", "0.5004795", "0.5002419", "0.5001915", "0.49992615", "0.499706", "0.49941292", "0.49904245" ]
0.70428544
0
This method was generated by Apache iBATIS ibator. This method returns the value of the database column cementerio.persona.apellido2
public String getApellido2() { return apellido2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setApellido2(String apellido2) {\r\n\t\tthis.apellido2 = apellido2;\r\n\t}", "public String getApellido1() {\r\n\t\treturn apellido1;\r\n\t}", "public String getApellido1() {\n\t\treturn apellido1;\n\t}", "public String getApellido(){\n return this.apellido;\n }", "public String getOndaP2() {\r\n return ondaP2;\r\n }", "public abstract java.lang.String getApellido();", "public String getPassageiro2() {\r\n\r\n if (passageiro == null) {\r\n return \"Poltrona Vazia\";\r\n } else {\r\n return passageiro.getNome();\r\n }\r\n }", "@Column(name = \"C_PRIMER_APELLIDO\")\n public String getPrimerApellido() {\n return primerApellido;\n }", "public String getApellidos() { return (this.apellidos == null) ? \"\" : this.apellidos; }", "public void setApellido1(String apellido1) {\r\n\t\tthis.apellido1 = apellido1;\r\n\t}", "public String getOndaP1() {\r\n return ondaP1;\r\n }", "public java.lang.String getApellido() {\n return apellido;\n }", "@AutoEscape\n\tpublic String getApellidoPaterno();", "public void setApellido1(String apellido1) {\n\t\tthis.apellido1 = apellido1;\n\t}", "public String getCUSU_APELLIDOS(){\n\t\treturn this.myCusu_apellidos;\n\t}", "public String getPra2() {\n return pra2;\n }", "public java.lang.String getIdioma() {\n return idioma;\n }", "public String getApellido() {\n\t\treturn apellido;\n\t}", "public String getApellido(){\n\t\treturn apellido;\n\t}", "public String getApodo(){\n\t\treturn apodo;\n\t}", "@Override\n\t@Field(offset=214, length=8, paddingChar=' ', align=Align.LEFT)\n\tpublic String getMotivoOcorrencia() {\n\t\treturn super.getMotivoOcorrencia();\n\t}", "public String getPoruka() {\r\n\t\t//2.greska \"poruka\"\r\n\treturn poruka;\r\n\t}", "public String getPoblacion() {\r\n\t\treturn poblacion;\r\n\t}", "public String getIdAeroporto()\n {\n return this.idAeroporto;\n }", "public String getPalo() {\n\t\treturn this.palo;\r\n\t}", "public String getAlto() {\r\n return alto;\r\n }", "public int getAnnoCorso() {\r\n return this.annoCorso;\r\n }", "public Integer getAnnoCorso() {\r\n return this.annoCorso;\r\n }", "java.lang.String getAdresa();", "@JsonProperty(\"anoProcesso\")\n\tpublic Long getAnoProcesso() {\n\t\treturn anoProcesso;\n\t}", "public String getARo() {\r\n return aRo;\r\n }", "java.lang.String getAoisId();", "public String getAPELLIDONombreDelAlumno() {\r\n\t\tString nombre = \"SUREDA José\";\r\n\t\treturn nombre;\r\n\t}", "public String getIcao() { return Icao; }", "public java.lang.String getProformaNo () {\n\t\treturn proformaNo;\n\t}", "public String getApellidos(){\n return apellidos;\n }", "public java.lang.String getCodigo_pcom();", "public void setOndaP2(String ondaP2) {\r\n this.ondaP2 = ondaP2;\r\n }", "@Override\n\tpublic List<String[]> popolaritaAttivitaCompleto() throws DAOException{\n\t\t\n\t\tList<String[]> risultato = null;\n\t\tConnection connection = null;\n\t\tPreparedStatement statement = null;\n\t\tResultSet resultSet = null;\n\t\tString[] stringa = null;\n\t\t\n\t\ttry {\n\t\t\trisultato = new ArrayList<String[]>();\n\t\t\tconnection = DataSource.getInstance().getConnection();\n\t\t\tstatement = connection.prepareStatement(\"SELECT NOME, COUNT2/COUNT1*100 AS PERC FROM (SELECT COUNT(*) AS COUNT1, ID_ATTIVITA FROM GRUPPO GROUP BY ID_ATTIVITA) TAB1 INNER JOIN (SELECT COUNT(*) AS COUNT2, ID_ATTIVITA FROM GRUPPO WHERE COMPLETO = 1 GROUP BY ID_ATTIVITA) TAB2 ON TAB1.ID_ATTIVITA = TAB2.ID_ATTIVITA INNER JOIN ATTIVITA ON TAB2.ID_ATTIVITA = ATTIVITA.ID ORDER BY PERC DESC\");\n\t\t\tresultSet = statement.executeQuery();\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tstringa = new String[3];\n\t\t\t\tstringa[0] = String.valueOf(resultSet.getString(1));\n\t\t\t\tstringa[1] = String.valueOf(BigDecimal.valueOf(resultSet.getDouble(2)).setScale(2, RoundingMode.HALF_UP).doubleValue());\n\t\t\t\tstringa[2] = String.valueOf(BigDecimal.valueOf(100-resultSet.getDouble(2)).setScale(2, RoundingMode.HALF_UP).doubleValue());\n\n\t\t\t\trisultato.add(stringa);\n\t\t\t}\n\t\t} catch (SQLException | DAOException e) {\n\t\t\tthrow new DAOException(\"ERRORE popolaritaAttivitaCompleto utenteAdmin\" + e.getMessage(), e);\n\t\t} finally {\n\t\t\tDataSource.getInstance().close(resultSet);\n\t\t\tDataSource.getInstance().close(statement);\n\t\t\tDataSource.getInstance().close(connection);\n\t\t}\n\t\t\n\t\treturn risultato;\n\t\t\n\t}", "public int getAno(){\n return ano;\n }", "public String getPartitaIva() {\n return partitaIva;\n }", "public int getAnnoIscrizione() {\n\t\treturn annoIscrizione;\n\t}", "public Idioma getIdiomaOriginal() {\n\t\treturn this.getParrafo().getDocumento().getIdioma();\n\t}", "public String getAdr2() {\n return adr2;\n }", "public long getPersonaId() {\n return personaId;\n }", "public int getPantallaApunta() {\r\n return this.iPantallaApunta;\r\n }", "public String getPoaNumber() {\n\t\treturn poaNumber;\n\t}", "public java.lang.String getCodigo_agencia();", "public String getIdtipobulto()\n {\n return (String)getAttributeInternal(IDTIPOBULTO);\n }", "public String getPlaca() {\n return placa;\n }", "public String getPlaca() {\n return placa;\n }", "public String balar() {\r\n return this.SONIDO;\r\n }", "public Long getPersonaId();", "public String getPropriedade(String nomePropriedade)\n\t{\n\t\treturn arquivoProps.getProperty(nomePropriedade);\n\t}", "public java.lang.String getProrrataAnualDefinitiva() {\r\n return prorrataAnualDefinitiva;\r\n }", "public String darPlaca() {\n\t\treturn placa;\n\t}", "public String getPuntoEmision()\r\n/* 124: */ {\r\n/* 125:207 */ return this.puntoEmision;\r\n/* 126: */ }", "public int getAno() {\n\t\t\treturn ano;\n\t\t}", "public java.lang.Long getPeti_numero();", "public java.lang.Long getPeti_numero();", "private String getIdioma()\n throws MareException\n {\n\t\tLong idioma = UtilidadesSession.getIdioma(this);\n\t\treturn idioma.toString();\n }", "@AutoEscape\n\tpublic String getCodProvincia();", "public java.lang.String getIdiomaBusqueda()\n {\n return this.idiomaBusqueda;\n }", "public String getNumeroPersona() {\n\t\treturn numeroPersona;\n\t}", "public java.lang.Double getMontoPropinaAnulacion() {\r\n return montoPropinaAnulacion;\r\n }", "public String getId2() {\n return id2;\n }", "public int getPesoA() \r\n\t\t{\r\n\t\t\treturn PesoA;\r\n\t\t}", "@Column(name = \"C_SEGUNDO_APELLIDO\")\n public String getSegundoApellido() {\n return segundoApellido;\n }", "public String getAlamat_pelanggan(){\r\n \r\n return alamat_pelanggan;\r\n }", "@Column(name = \"C_PUESTO\")\n public String getPuesto() {\n return puesto;\n }", "public String getPra1() {\n return pra1;\n }", "public String getRazaN(){\n return razaP1.nombre1();\n }", "@javax.persistence.Column(name = \"athlete_code\", nullable = false)\n\tpublic java.lang.Integer getAthleteCode() {\n\t\treturn getValue(org.jooq.examples.cubrid.demodb.tables.Record.RECORD.ATHLETE_CODE);\n\t}", "public java.lang.String getAnexo() {\n\t\treturn _telefonoSolicitudProducto.getAnexo();\n\t}", "public void setApellido(String apellido) {\n\t\tthis.apellido = apellido;\n\t}", "public abstract java.lang.String getAcma_valor();", "public int getAnio()\r\n {\r\n return this._anio;\r\n }", "public String getProblema() {\n return problema;\n }", "@Override\n public Propiedad getPropiedadId(String pNumFinca) throws SQLException {\n ArrayList<Propiedad> resultado = new ArrayList<Propiedad>();\n resultado = (ArrayList<Propiedad>) bdPropiedad.selectQuery(\"SELECT * FROM PROPIEDAD WHERE \"\n + \"ID_PROPIEDAD = '\" + pNumFinca + \"'\");\n Propiedad propiedadSeleccionada = resultado.get(0);\n return propiedadSeleccionada;\n }", "String getAnnoPubblicazione();", "public abstract java.lang.String getAcma_descripcion();", "public java.lang.String getAoisId() {\n java.lang.Object ref = aoisId_;\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 aoisId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getIpa() {\n return ipa;\n }", "public abstract java.lang.String getCod_tecnico();", "@Transient\r\n\tpublic Actividad getActividad2() {\r\n\t\tif(actividad2!=null)\r\n\t\t\tidActivida=actividad2.getIdActividad();\r\n\t\tSystem.out.println(idActivida +\"ID ACTIVIDAD\");\r\n\t\treturn actividad2;\r\n\t}", "public String getPalo() {\n\t\treturn palo;\n\t}", "public String getDiaLibre() {\n return diaLibre;\n }", "public String getPoruka() {\r\n\treturn poruka;\r\n\t}", "public java.lang.String getAoisId() {\n java.lang.Object ref = aoisId_;\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 aoisId_ = s;\n return s;\n }\n }", "public String getPrimoCampo(){\n return descrizione.split(\",\")[0];\n }", "public String getNota() {\n return nota;\n }", "private String autores(Proyecto proyecto) {\r\n String resultado = \"\";\r\n Item estadoRenunciado = itemService.buscarPorCatalogoCodigo(CatalogoEnum.ESTADOAUTOR.getTipo(), EstadoAutorEnum.RENUNCIADO.getTipo());\r\n if (proyecto.getAutorProyectoList() == null) {\r\n return \"\";\r\n }\r\n int contador = 0;\r\n for (AutorProyecto autorProyecto : proyecto.getAutorProyectoList()) {\r\n if (estadoRenunciado.getId().equals(autorProyecto.getEstadoAutorId())) {\r\n continue;\r\n }\r\n EstudianteCarrera estudianteCarrera = estudianteCarreraService.buscarPorId(new EstudianteCarrera(autorProyecto.getAspiranteId().getId()));\r\n Persona persona = personaService.buscarPorId(new Persona(estudianteCarrera.getEstudianteId().getId()));\r\n if (contador == 0) {\r\n if (persona == null) {\r\n continue;\r\n }\r\n resultado = (persona.getApellidos() + \" \" + persona.getNombres());\r\n } else {\r\n resultado = (resultado + \", \" + persona.getApellidos() + \" \" + persona.getNombres());\r\n }\r\n contador++;\r\n }\r\n return resultado;\r\n }", "public String getLasagna(){\n return \"ID: \"+this.ID+\"\\nNombre: \"+this.nombre+\"\\nTipo: \"+this.tipo+\"\\nPrecio: \"+this.precio; //Devuelve todos los datos de la lasagna\n }", "public String getProdotto() {\r\n\t\treturn prodotto;\r\n\t}", "public StrColumn getEbiOrganelle() {\n return delegate.getColumn(\"ebi_organelle\", DelegatingStrColumn::new);\n }", "public int getIDINTERNOPE2() {\n return idinternope2;\n }", "public void setApellidos(String p) { this.apellidos = p; }", "public String getTxtapellido() {\n return txtApellido.getText();\n }", "public byte getP2() {\n return this.apdu_buffer[P2];\n }", "public Problema getProblemaAssociado() {\n return associacao.getProblemaAssociado();\n }" ]
[ "0.6576332", "0.65631706", "0.65422684", "0.6382789", "0.6331016", "0.6038803", "0.60133606", "0.600765", "0.5996536", "0.5948723", "0.590763", "0.5863615", "0.5848129", "0.5833096", "0.5823349", "0.5816423", "0.57397294", "0.573389", "0.57089293", "0.5651709", "0.5584301", "0.55536485", "0.5548041", "0.5545266", "0.55242467", "0.55181307", "0.5508161", "0.55007446", "0.5471847", "0.5460243", "0.5454583", "0.5445294", "0.54390734", "0.5435243", "0.54301906", "0.5411509", "0.53990525", "0.5397848", "0.53915805", "0.5390914", "0.5390662", "0.53817683", "0.53739953", "0.5364893", "0.5363203", "0.5362742", "0.53553075", "0.53482676", "0.53435034", "0.53411037", "0.53411037", "0.53327596", "0.5310912", "0.530873", "0.53078145", "0.5301619", "0.53008634", "0.5293653", "0.5287222", "0.5287222", "0.52851695", "0.527433", "0.5273345", "0.52716666", "0.52705115", "0.52688724", "0.525262", "0.52446765", "0.5242525", "0.52335113", "0.5228192", "0.52253324", "0.522368", "0.52190787", "0.5215648", "0.52049047", "0.5202258", "0.51995814", "0.5192084", "0.5183809", "0.51730174", "0.517186", "0.516127", "0.51597744", "0.51585335", "0.51499295", "0.5148502", "0.51467097", "0.51408684", "0.51396465", "0.51352686", "0.512636", "0.51253414", "0.51244426", "0.5116117", "0.5115479", "0.5114113", "0.5111989", "0.5104707", "0.51032996" ]
0.6973528
0
This method was generated by Apache iBATIS ibator. This method sets the value of the database column cementerio.persona.apellido2
public void setApellido2(String apellido2) { this.apellido2 = apellido2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setApellido1(String apellido1) {\r\n\t\tthis.apellido1 = apellido1;\r\n\t}", "public void setApellido1(String apellido1) {\n\t\tthis.apellido1 = apellido1;\n\t}", "public void setApellidos(String p) { this.apellidos = p; }", "public abstract void setApellido(java.lang.String newApellido);", "public void setApellido(String apellido) {\n\t\tthis.apellido = apellido;\n\t}", "public void setOndaP2(String ondaP2) {\r\n this.ondaP2 = ondaP2;\r\n }", "public String getApellido2() {\r\n\t\treturn apellido2;\r\n\t}", "public void setApellido(java.lang.String apellido) {\n this.apellido = apellido;\n }", "void setAnnoPubblicazione(String annoPubblicazione);", "public void setIdioma(java.lang.String idioma) {\n this.idioma = idioma;\n }", "public void setApellidos(String apellidos) { this.apellidos = apellidos; }", "public String getApellido1() {\r\n\t\treturn apellido1;\r\n\t}", "public String getApellido1() {\n\t\treturn apellido1;\n\t}", "public String getApellido(){\n return this.apellido;\n }", "public void setApellidos(String apellidos){\n if(apellidos == null){\n throw new IllegalArgumentException(\"Apellidos de usuario igual a null\");\n }\n this.apellidos = apellidos;\n }", "public void setIdAeroporto(String idAeroporto)\n {\n this.idAeroporto = idAeroporto;\n }", "public void setApellidoPaterno(String apellidoPaterno);", "public void setIdacesso(int pIdacesso){\n this.idacesso = pIdacesso;\n }", "public void setAlto(String alto) {\r\n this.alto = alto;\r\n }", "public void setA2(int a2)\n {\n this.a2 = a2;\n }", "public void setPropiedad1(String propiedad1) {\r\n\tthis.propiedad1 = propiedad1;\r\n }", "private void setARo(final String a) {\r\n this.aRo = a;\r\n }", "public void setPuntoEmision(String puntoEmision)\r\n/* 129: */ {\r\n/* 130:217 */ this.puntoEmision = puntoEmision;\r\n/* 131: */ }", "public void setAnio(int p) { this.anio = p; }", "public String getOndaP2() {\r\n return ondaP2;\r\n }", "public void setOndaP1(String ondaP1) {\r\n this.ondaP1 = ondaP1;\r\n }", "public void setPra2(String pra2) {\n this.pra2 = pra2 == null ? null : pra2.trim();\n }", "public void setAno( int ano ){\n this.ano = ano;\n }", "@Column(name = \"C_PRIMER_APELLIDO\")\n public String getPrimerApellido() {\n return primerApellido;\n }", "public abstract void setAcma_valor(java.lang.String newAcma_valor);", "public String getApellidos() { return (this.apellidos == null) ? \"\" : this.apellidos; }", "private void setId(int ida2) {\n\t\tthis.id=ida;\r\n\t}", "public void setPrimerApellido(String primerApellido) {\n this.primerApellido = primerApellido;\n }", "private void actualizarNombre(Persona persona){\n \n String nombre=IO_ES.leerCadena(\"Inserte el nombre\");\n persona.setNombre(nombre);\n }", "public void setOriginalidade(String originalidade) {\r\n this.originalidade = originalidade;\r\n }", "public void setEdificio (String pEdificio)\r\n {\r\n this.edificio = pEdificio;\r\n }", "public void asignarAutomovilPersona(){\r\n persona.setAutomovil(automovil);\r\n }", "public void setId2(String id2) {\n this.id2 = id2 == null ? null : id2.trim();\n }", "public void pridejNovePivo ()\n\t{\n\t\n\t\tpivo = pivo + PRODUKCE;\n\t\t\n\t}", "public void setPersonaId(long value) {\n this.personaId = value;\n }", "public void setProprietaire(SystemeAmendesInt.Personne proprietaire) {\n this.proprietaire = proprietaire;\n }", "public void setProrrataAnualDefinitiva(java.lang.String prorrataAnualDefinitiva) {\r\n this.prorrataAnualDefinitiva = prorrataAnualDefinitiva;\r\n }", "public void setAnnoIscrizione(int annoIscrizione) {\n\t\tthis.annoIscrizione = annoIscrizione;\n\t}", "public void setAnio(int anio)\r\n {\r\n this._anio = anio;\r\n this._has_anio = true;\r\n }", "public void setCodigo_agencia(java.lang.String newCodigo_agencia);", "public void setAnnoCorso(int annoCorso) {\r\n int oldAnnoCorso = this.annoCorso;\r\n this.annoCorso = annoCorso;\r\n propertyChangeSupport.firePropertyChange (\"annoCorso\", new Integer (oldAnnoCorso), new Integer (annoCorso));\r\n }", "public Builder setAoisId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n aoisId_ = value;\n onChanged();\n return this;\n }", "public String getOndaP1() {\r\n return ondaP1;\r\n }", "public void setProblema(String problema) {\n this.problema = problema;\n insertProblema();\n }", "public void setAnio(int anio){\r\n \r\n \r\n this.anio = anio;\r\n \r\n }", "public void setOcena(int value) {\n this.ocena = value;\n }", "public void setIdempresa(String idempresa) {\n\t\tthis.idempresa = idempresa;\n\t}", "public void setIdempresa(String idempresa) {\n\t\tthis.idempresa = idempresa;\n\t}", "public void setIdempresa(String idempresa) {\n\t\tthis.idempresa = idempresa;\n\t}", "public void setCodigo_pcom(java.lang.String newCodigo_pcom);", "public String getIdAeroporto()\n {\n return this.idAeroporto;\n }", "public void setProdotto(String prodotto) {\r\n\t\tthis.prodotto = prodotto;\r\n\t}", "public void setPesoA(int pesoA) \r\n\t\t{\r\n\t\t\tPesoA = pesoA;\r\n\t\t}", "public abstract void setCod_tecnico(java.lang.String newCod_tecnico);", "public void setPoruka(String poruka) {\r\n\t\t// 1.greska this.poruka.length()\r\n\tif (poruka==null || poruka.length()>140)\r\n\tthrow new RuntimeException(\r\n\t\"Poruka mora biti uneta i mora imati najvise 140 znakova\");\r\n\tthis.poruka = poruka;\r\n\t}", "public void setPartitaIva(String partitaIva) {\n this.partitaIva = partitaIva;\n }", "public void setIDINTERNOPE2(int value) {\n this.idinternope2 = value;\n }", "public void setGiro(int giro2){\n\t\t//hacer lo esto con giro set y get\n\t\tthis.giro=giro2;\n\t}", "public void setORM_Markamarca1(orm.Marka value) {\r\n\t\tthis.markamarca1 = value;\r\n\t}", "public void setIdAlumno(int value) {\n this.idAlumno = value;\n }", "public void setPoruka(String poruka) {\r\n\tif (poruka==null || poruka.length()>140)\r\n\tthrow new RuntimeException(\"Poruka mora biti uneta i mora imati najvise 140 znakova\");\r\n\t\r\n\tthis.poruka = poruka;\r\n\t}", "public String getCUSU_APELLIDOS(){\n\t\treturn this.myCusu_apellidos;\n\t}", "public void setIdtipobulto(String value)\n {\n setAttributeInternal(IDTIPOBULTO, value);\n }", "public void setId2(int value) {\n this.id2 = value;\n }", "public void setNome(Object nome2) {\n\t\t\n\t}", "public void setPoruka(String poruka) {\r\n\tif (poruka==null || this.poruka.length()>140)\r\n\t\tthrow new RuntimeException(\"Poruka mora biti uneta i mora imati najvise 140 znakova\");\r\n\tthis.poruka = poruka;\r\n\t}", "public Alumno(String nombre, String apellido) {\n this.nombre = nombre;\n this.apellido = apellido;\n this.pagames=0;\n }", "public abstract void setAcma_cierre(java.lang.String newAcma_cierre);", "@AutoEscape\n\tpublic String getApellidoPaterno();", "public void setEula(final String eulaValue) {\n this.eula = eulaValue;\n }", "public void setAdr2(String adr2) {\n this.adr2 = adr2;\n }", "public void setDPAlternativeAusgabe(String value){\n\t\tthis.m_bIsDirty = (this.m_bIsDirty || (!value.equals(this.m_sDPAlternativeAusgabe)));\n\t\tthis.m_sDPAlternativeAusgabe=value;\n\t}", "public void setPoblacion(String poblacion) {\r\n\t\tthis.poblacion = poblacion;\r\n\t}", "public void setNome(String nomeAeroporto)\n {\n this.nome = nomeAeroporto;\n }", "public String getApellido(){\n\t\treturn apellido;\n\t}", "@JsonProperty(\"anoProcesso\")\n\tpublic Long getAnoProcesso() {\n\t\treturn anoProcesso;\n\t}", "public void setNumeroPersona(String numeroPersona) {\n\t\tthis.numeroPersona = numeroPersona;\n\t}", "void setProvincia(String provincia);", "public void setAnexo(java.lang.String anexo) {\n\t\t_telefonoSolicitudProducto.setAnexo(anexo);\n\t}", "public abstract java.lang.String getApellido();", "public String getApellido() {\n\t\treturn apellido;\n\t}", "private static void setCoor(String text, Annotation anotacion) {\r\n\t\tString[] trozo = text.split(\"\\\\|\");\r\n\r\n\t\tint puntero = -1;\r\n\r\n\t\tif (trozo[0].indexOf(\"subrayado\") > 0) {\r\n\t\t\tanotacion.setTipo(Annotation.SUB);\r\n\t\t} else if (text.indexOf(\"nota\") > 0) {\r\n\t\t\tanotacion.setTipo(Annotation.NOT);\r\n\t\t} else if (trozo[0].indexOf(\"marcador\") > 0) {\r\n\t\t\tanotacion.setTipo(Annotation.MAR);\r\n\t\t}\r\n\r\n\t\tif ((puntero = trozo[0].indexOf(\"página\")) > 0) {\r\n\t\t\tanotacion.setPaginaIni(Integer.parseInt(trozo[0].substring(puntero + 7, trozo[0].length()).trim()));\r\n\t\t}\r\n\r\n\t\tif ((puntero = trozo[1].indexOf(\"posición\")) > 0) {\r\n\t\t\tString[] coor = trozo[1].substring(puntero + 9, trozo[1].length()).trim().split(\"-\");\r\n\t\t\tanotacion.setPosIni(Integer.parseInt(coor[0]));\r\n\t\t\tif (coor.length > 1) {\r\n\t\t\t\tanotacion.setPosFin(Integer.parseInt(coor[1]));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tString fecha = trozo[trozo.length - 1];\r\n\t\tanotacion.setFecha(getDate(fecha));\r\n\t}", "public abstract void setAcma_descripcion(\n\t\tjava.lang.String newAcma_descripcion);", "public void setAlto(int alto) {\n\t\tthis.alto = alto;\n\t}", "public void cumplirAños(){\n this.setEdad(((byte)(this.getEdad()+1)));\n }", "void setCognome(String cognome);", "public void setCodProd(IProduto codigo);", "public String getAlto() {\r\n return alto;\r\n }", "public void setCodProvincia(String codProvincia);", "public void setPantallaApunta(int iPantallaApunta) {\r\n this.iPantallaApunta = iPantallaApunta;\r\n }", "public abstract void setAcma_id(java.lang.Long newAcma_id);", "public void altera(Anotacao anotacao) {\n\n //Referencia um bd pra escrever:\n SQLiteDatabase db = getWritableDatabase();\n\n //Cria o conteúdo com os dados setados no método que preenche:\n ContentValues dados = pegaDadosAnotacao(anotacao);\n\n //Pra entrar nos parametros (?) do db.update:\n String [] params = {anotacao.getId().toString()};\n\n //Faz um update (Tabela, dados, where):\n db.update(\"Anotacoes\", dados, \"id = ?\", params);\n }", "public void setLOAI( String LOAI )\n {\n this.LOAI = LOAI;\n }", "public long getPersonaId() {\n return personaId;\n }", "public void setApellidoMaterno(String apellidoMaterno);" ]
[ "0.6601846", "0.64192784", "0.60446465", "0.6031319", "0.5935192", "0.58487976", "0.58429396", "0.5838543", "0.57733935", "0.56298244", "0.5626407", "0.55928713", "0.5556123", "0.5510715", "0.5506854", "0.54361206", "0.539662", "0.5392341", "0.53639436", "0.5360053", "0.5332368", "0.5316368", "0.529841", "0.52861696", "0.5262835", "0.52525765", "0.52408576", "0.52297723", "0.51964056", "0.51957875", "0.5166364", "0.5152644", "0.5147739", "0.5113085", "0.5101218", "0.50838864", "0.5076508", "0.5076257", "0.5071001", "0.507051", "0.5068806", "0.50612336", "0.50508034", "0.5036586", "0.5033504", "0.50160784", "0.5015797", "0.50092816", "0.500489", "0.49711502", "0.49679685", "0.495216", "0.495216", "0.495216", "0.4948063", "0.49427104", "0.49368778", "0.49365038", "0.49337602", "0.49319044", "0.49300075", "0.49276873", "0.4905204", "0.49020314", "0.49019524", "0.48967564", "0.48889744", "0.48882657", "0.4888069", "0.48875827", "0.4881488", "0.4879565", "0.48780686", "0.48773637", "0.48610952", "0.48425552", "0.4827939", "0.48237818", "0.4821398", "0.4813575", "0.48110312", "0.48014933", "0.47890183", "0.47797403", "0.47768533", "0.47753638", "0.47746918", "0.477093", "0.476805", "0.47647005", "0.47634557", "0.47627562", "0.47599205", "0.47590137", "0.47554156", "0.47527155", "0.4749657", "0.47428808", "0.47404096", "0.4739331" ]
0.6938422
0
This method was generated by Apache iBATIS ibator. This method returns the value of the database column cementerio.persona.sexo
public String getSexo() { return sexo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSexo() {\r\n return sexo;\r\n }", "public void setSexo(String sexo) {\r\n\t\tthis.sexo = sexo;\r\n\t}", "public void setSexo(String sexo) {\r\n this.sexo = sexo;\r\n }", "public java.lang.String getSsoCode() {\r\n return ssoCode;\r\n }", "public java.lang.String getMontoSolici() {\n return montoSolici;\n }", "public java.lang.String getMontoSolici() {\n return montoSolici;\n }", "public String getSenha() {\r\n return senha;\r\n }", "public java.lang.String getAnexo() {\n\t\treturn _telefonoSolicitudProducto.getAnexo();\n\t}", "public BigDecimal getSecuenciaExpediente() {\r\n return secuenciaExpediente;\r\n }", "public Integer getSeccion() {\r\n return seccion;\r\n }", "public final Celda getSiguiente() {\r\n return siguiente;\r\n }", "public String getSupEntCorporate() {\n return supEntCorporate;\n }", "public String getCUSU_CODIGO(){\n\t\treturn this.myCusu_codigo;\n\t}", "public String getTipoAnexoSRI()\r\n/* 612: */ {\r\n/* 613:676 */ this.tipoAnexoSRI = ParametrosSistema.getTipoAnexoSRI(AppUtil.getOrganizacion().getId());\r\n/* 614:677 */ return this.tipoAnexoSRI;\r\n/* 615: */ }", "public char getSezione() {\r\n return this.sezione;\r\n }", "public Number getSoObinslineId() {\n return (Number)getAttributeInternal(SOOBINSLINEID);\n }", "public Sea getSea() {\n return this.sea;\n }", "public void setSexo(char sexo) {\r\n\t\tcomprobarSexo(sexo);\r\n\t}", "public String getSex() {\n\t\treturn sex;\n\t}", "public String getSex() {\n\t\treturn sex;\n\t}", "public char getSezione() {\r\n return this.sezione;\r\n }", "public java.lang.String getOrgSsoCode() {\r\n return orgSsoCode;\r\n }", "public String getSex() {\n return sex;\n }", "public String getSex() {\n return sex;\n }", "public String getSex() {\n return sex;\n }", "public String getSex() {\n return sex;\n }", "public String getSex() {\n return sex;\n }", "public String getSex() {\n return sex;\n }", "public String getSex() {\n return sex;\n }", "public String getSex() {\n return sex;\n }", "public String getSex() {\r\n return sex;\r\n }", "public String getSeNo() {\n return seNo;\n }", "@Override\r\n\tpublic Sexo salvar(Sexo entidade) throws Exception {\n\t\treturn null;\r\n\t}", "public String getSeriale() {\n\t\treturn seriale;\n\t}", "public String getSenha(){\n return this.senha;\n }", "public String chaveSecundaria(){\r\n return this.email;\r\n }", "@Column(name = \"C_SEGUNDO_NOMBRE\")\n public String getSegundoNombre() {\n return segundoNombre;\n }", "public String getSex()\n {\n return sex;\n }", "public Integer getaSex() {\n return aSex;\n }", "public int getEmployeeSSN() {\n return ssn;\n }", "public String getCodigoExpediente() {\r\n return codigoExpediente;\r\n }", "public int getIndiceSiguiente() {\n\t\treturn indiceSiguiente;\n\t}", "@Override\n\tpublic String getSaludo() {\n\t\tString saludo = equipoService.saludoEquipo();\n\t\treturn saludo;\n\t}", "public Integer getSex() {\r\n return sex;\r\n }", "public String getCuenta() {\n\t\treturn cuenta;\n\t}", "public String getValeurSaisie() {\n\t\treturn this.champDeSaisie.getText();\n\t}", "public Integer getSex() {\n return sex;\n }", "public Integer getSex() {\n return sex;\n }", "public Integer getSex() {\n return sex;\n }", "public Integer getSex() {\n return sex;\n }", "public Integer getSex() {\n return sex;\n }", "public java.lang.String getStudent_oversea() {\n\t\treturn _primarySchoolStudent.getStudent_oversea();\n\t}", "public Sex getSex() {\n return sex;\n }", "@NonNull\r\n public final Sea getSea() {\r\n return f_mySea;\r\n }", "public it.gov.agenziaentrate.ivaservizi.docs.xsd.fatture.v12.SoggettoEmittenteType.Enum getSoggettoEmittente()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SOGGETTOEMITTENTE$10, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return (it.gov.agenziaentrate.ivaservizi.docs.xsd.fatture.v12.SoggettoEmittenteType.Enum)target.getEnumValue();\r\n }\r\n }", "public static boolean validaSexo(String sexo) {\r\n\t\treturn ((sexo.equals(\"MASCULINO\") || sexo.equals(\"FEMININO\")) ? true : false);\r\n\t}", "public String getRagione_sociale() {\r\n return ragione_sociale;\r\n }", "public static String getCuenta() {\r\n return cuenta;\r\n }", "public String getCuenta() {\r\n return cuenta;\r\n }", "public String getCROSG_CODIGO(){\n\t\treturn this.myCrosg_codigo;\n\t}", "public String getEnteDonatore() {\n\t\treturn enteDonatore;\n\t}", "public String getSeUuid() {\n return seUuid;\n }", "public String getSeUuid() {\n return seUuid;\n }", "public String getSeUuid() {\n return seUuid;\n }", "@Override\n\tpublic String getEmpregadoSenha(String email) {\n\t\treturn empregadoRepository.encontrarEmpregadoSenha(email);\n\t}", "public Stato getStatoCorrente()\r\n\t{\r\n\t\treturn corrente;\r\n\t}", "public String getCorreo() {\r\n return correo;\r\n }", "public java.lang.String getStudent_sex() {\n\t\treturn _primarySchoolStudent.getStudent_sex();\n\t}", "public ClienteSie getObjClienteSie() {\r\n\t\treturn objClienteSie;\r\n\t}", "public Number getSoObinsizlineId() {\n return (Number)getAttributeInternal(SOOBINSIZLINEID);\n }", "@Override\r\n\tpublic String getAsString(FacesContext facesContext, UIComponent component, Object objeto) {\n\ttry {\r\n\t\t\t\r\n\t\tEnsino ensino = (Ensino)objeto;\r\n\t\tLong codigo = ensino.getIdEnsino();\r\n\r\n\t\tFacesUtil.adicionarMsgInfo(\"getAsString: \"+codigo.toString());\r\n\r\n\t\treturn codigo.toString();\r\n\t\t\r\n\t\t}catch(RuntimeException er) {\r\n\t\t\t\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "public int getSaldo() {\r\n return this.contaCorrente.getSaldo();\r\n }", "public String getCorreo() {\n return correo;\n }", "public String getUserSex() {\n return userSex;\n }", "public synchronized String getSenhaPromocional(MensagemPromocional msgPromo,String msisdn, Connection con) throws SQLException\n\t{\n\t\tPreparedStatement pstmt = null;\n\t\tResultSet \t\t rs = null;\n\t\tString \t\t\t senha = null;\n\t\ttry\n\t\t{\n\t\t\tpstmt = con.prepareStatement(sqlSenha);\n\t\t\tpstmt.setInt(1,msgPromo.getCodServico());\n\t\t\tpstmt.setInt(2,msgPromo.getCodConteudo());\n\t\t\tpstmt.setInt(3,msgPromo.getCodPromocao());\n\t\t\trs = pstmt.executeQuery();\n\t\t\tif (rs.next())\n\t\t\t{\n\t\t\t\t// Caso a pesquisa de senha retornou que existe uma proxima disponive\n\t\t\t\t// entao atualiza o registro indicando qual o assinante que requisitou\n\t\t\t\t// antes de enviar a senha por sms\n\t\t\t\tsenha = rs.getString(\"CO_SENHA\");\n\t\t\t\t// Marca agora a utilizacao da senha pelo assinante\n\t\t\t\tPreparedStatement pstmtUpd = con.prepareStatement(sqlUpdSenha);\n\t\t\t\tpstmtUpd.setString\t\t(1,msisdn);\n\t\t\t\tpstmtUpd.setTimestamp\t(2,new Timestamp(Calendar.getInstance().getTimeInMillis()));\n\t\t\t\tpstmtUpd.setInt \t\t(3,msgPromo.getCodServico());\n\t\t\t\tpstmtUpd.setInt \t\t(4,msgPromo.getCodConteudo());\n\t\t\t\tpstmtUpd.setInt\t \t\t(5,msgPromo.getCodPromocao());\n\t\t\t\tpstmtUpd.setString\t\t(6,senha);\n\t\t\t\t\n\t\t\t\tpstmtUpd.executeUpdate();\n\t\t\t\tpstmtUpd.close();\n\t\t\t}\n\t\t}\n\t\tcatch(SQLException e){\n\t\t\tthrow e;\n\t\t}\n\t\tfinally{\n\t\t\ttry{// Fecha os objetos de consulta\n\t\t\t\tif (rs != null) rs.close();\n\t\t\t\tif (pstmt != null) pstmt.close();\n\t\t\t}catch(Exception e){};\n\t\t}\n\n\t\treturn senha;\n\t}", "public S segundo() {\n\t\treturn this.segundo;\n\t}", "@JsonProperty(\"sso_connection\")\n@ApiModelProperty(example = \"rockset\", value = \"Connection name of SSO connection.\")\n public String getSsoConnection() {\n return ssoConnection;\n }", "public String getIdSesion(){\r\n return idSesion;\r\n }", "@Override\n\tpublic String getSex() {\n\t\treturn null;\n\t}", "@AutoEscape\n\tpublic String getSex();", "public int getDatossolicitudBfmarcaProductoSolicitado() {\n return datossolicitudBfmarcaProductoSolicitado;\n }", "public Byte getSex() {\n return sex;\n }", "public Byte getSex() {\n return sex;\n }", "public java.lang.String getSex() {\r\n return localSex;\r\n }", "public NodoListaObjetos getSiguiente(){\r\n return siguiente;\r\n }", "public Integer getAccountSex() {\n return accountSex;\n }", "public String getCorreo(){\r\n return correo;\r\n }", "public UUID getIdSistemaEspecifico(){\n\t\t\n\t\treturn miIdSistemaEspecifico;\n\t}", "public String balar() {\r\n return this.SONIDO;\r\n }", "public it.gov.agenziaentrate.ivaservizi.docs.xsd.fatture.v12.SoggettoEmittenteType xgetSoggettoEmittente()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n it.gov.agenziaentrate.ivaservizi.docs.xsd.fatture.v12.SoggettoEmittenteType target = null;\r\n target = (it.gov.agenziaentrate.ivaservizi.docs.xsd.fatture.v12.SoggettoEmittenteType)get_store().find_element_user(SOGGETTOEMITTENTE$10, 0);\r\n return target;\r\n }\r\n }", "public SiacTSoggetto getSiacTSoggetto() {\n\t\treturn this.siacTSoggetto;\n\t}", "public String getSupEntHlicense() {\n return supEntHlicense;\n }", "public StrColumn getEbiOrganismScientific() {\n return delegate.getColumn(\"ebi_organism_scientific\", DelegatingStrColumn::new);\n }", "public java.lang.String getIdentificacionEntrega() {\r\n return identificacionEntrega;\r\n }", "public int getAnnoScolasticoId() {\r\n return this.annoScolasticoId;\r\n }", "public String sex() {\n return this.sex;\n }", "public String getInscricaoPossuidor() {\n return inscricaoPossuidor;\n }", "public java.lang.String getCuentaCLABE() {\n return cuentaCLABE;\n }", "public String getCorreoUsuario() {\r\n return correoUsuario;\r\n }", "public String getSCompanyName() {\n return sCompanyName;\n }" ]
[ "0.7691626", "0.62083924", "0.61632556", "0.57771367", "0.5775657", "0.5775657", "0.56234956", "0.55558693", "0.55169874", "0.548722", "0.54719347", "0.54533225", "0.54424256", "0.5441914", "0.54064983", "0.53952456", "0.5392462", "0.53832775", "0.5379593", "0.5379593", "0.5373228", "0.53495413", "0.53348565", "0.53348565", "0.53348565", "0.53348565", "0.53348565", "0.53348565", "0.53348565", "0.53348565", "0.53335196", "0.53289866", "0.5315378", "0.53090966", "0.53085846", "0.5304443", "0.52963275", "0.52903533", "0.5279821", "0.5278268", "0.5276124", "0.5266706", "0.5254094", "0.5249666", "0.5248177", "0.52450407", "0.5239971", "0.5239971", "0.5239971", "0.5239971", "0.5239971", "0.52287805", "0.52284276", "0.52218866", "0.52162117", "0.5204701", "0.5203827", "0.5184647", "0.51774395", "0.5168572", "0.5146214", "0.5144066", "0.5144066", "0.5144066", "0.5142763", "0.5140546", "0.51319003", "0.51281357", "0.5122623", "0.5120352", "0.51052284", "0.5094969", "0.5092575", "0.5085377", "0.5077506", "0.5075467", "0.50648594", "0.50574684", "0.50547856", "0.5052175", "0.5045376", "0.50287724", "0.50287724", "0.502532", "0.50211865", "0.5020154", "0.5019337", "0.5017146", "0.5010664", "0.50075454", "0.500624", "0.50031245", "0.49915424", "0.4989575", "0.4967122", "0.49654242", "0.49643266", "0.49537188", "0.49427587", "0.49378982" ]
0.77244705
0
This method was generated by Apache iBATIS ibator. This method sets the value of the database column cementerio.persona.sexo
public void setSexo(String sexo) { this.sexo = sexo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSexo(String sexo) {\r\n this.sexo = sexo;\r\n }", "public void setSexo(char sexo) {\r\n\t\tcomprobarSexo(sexo);\r\n\t}", "public String getSexo() {\r\n\t\treturn sexo;\r\n\t}", "public String getSexo() {\r\n return sexo;\r\n }", "@Override\n\tpublic void AlterarSenha(EntidadeDominio entidade) throws SQLException {\n\t\t\n\t}", "@Test\r\n public void testSetSexo() {\r\n System.out.println(\"setSexo\");\r\n Sexo sexo = null;\r\n Integrante instance = new Integrante();\r\n instance.setSexo(sexo);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "public void setSenha(String senha) {\r\n this.senha = senha;\r\n }", "public final void setSiguiente(final Celda siguienteN) {\r\n siguiente = siguienteN;\r\n\r\n }", "@Override\r\n\tpublic Sexo salvar(Sexo entidade) throws Exception {\n\t\treturn null;\r\n\t}", "public void setSenha(int senha){\n\t\tthis.senha = senha;\n\t}", "public void setSezione(char sezione) {\r\n char oldSezione = this.sezione;\r\n this.sezione = sezione;\r\n propertyChangeSupport.firePropertyChange (\"sezione\", new Character (oldSezione), new Character (sezione));\r\n }", "public void setSoggettoEmittente(it.gov.agenziaentrate.ivaservizi.docs.xsd.fatture.v12.SoggettoEmittenteType.Enum soggettoEmittente)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SOGGETTOEMITTENTE$10, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SOGGETTOEMITTENTE$10);\r\n }\r\n target.setEnumValue(soggettoEmittente);\r\n }\r\n }", "public void xsetSoggettoEmittente(it.gov.agenziaentrate.ivaservizi.docs.xsd.fatture.v12.SoggettoEmittenteType soggettoEmittente)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n it.gov.agenziaentrate.ivaservizi.docs.xsd.fatture.v12.SoggettoEmittenteType target = null;\r\n target = (it.gov.agenziaentrate.ivaservizi.docs.xsd.fatture.v12.SoggettoEmittenteType)get_store().find_element_user(SOGGETTOEMITTENTE$10, 0);\r\n if (target == null)\r\n {\r\n target = (it.gov.agenziaentrate.ivaservizi.docs.xsd.fatture.v12.SoggettoEmittenteType)get_store().add_element_user(SOGGETTOEMITTENTE$10);\r\n }\r\n target.set(soggettoEmittente);\r\n }\r\n }", "public void setSezione(char sezione) {\r\n this.sezione = sezione;\r\n }", "public static boolean validaSexo(String sexo) {\r\n\t\treturn ((sexo.equals(\"MASCULINO\") || sexo.equals(\"FEMININO\")) ? true : false);\r\n\t}", "public void setCuenta(String cuenta) {\r\n this.cuenta = cuenta;\r\n }", "public void setCorreo(String correo) {this.correo = correo;}", "@Override\n public void salvar(EntidadeDominio entidade) throws SQLException\n {\n\t\n }", "public void setSeccion(Integer seccion) {\r\n this.seccion = seccion;\r\n }", "@Override\n @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)\n public void registrarCoactivoAxis(CoactivoDTO coactivoDTOs, String proceso) throws CirculemosNegocioException {\n coactivoDTOs = iRClienteWSAXIS.registarCoactivo(coactivoDTOs);\n\n // coactivoDTOs.setNumeroCoactivo(\"0001\");\n // coactivoDTOs.setIdTramite(11111l);\n\n // Actualizar la tabla temporal coactivo xls\n StringBuilder sql = new StringBuilder();\n\n sql.append(\"update coactivos_xls set numero_axis = :numeroCoactivo , id_tramite = :idTramite \");\n sql.append(\"where proceso = :proceso \");\n\n Query update = em.createNativeQuery(sql.toString());\n update.setParameter(\"numeroCoactivo\", coactivoDTOs.getNumeroCoactivo());\n update.setParameter(\"idTramite\", coactivoDTOs.getIdTramite());\n update.setParameter(\"proceso\", proceso);\n\n update.executeUpdate();\n }", "public void setTipoAnexoSRI(String tipoAnexoSRI)\r\n/* 618: */ {\r\n/* 619:687 */ this.tipoAnexoSRI = tipoAnexoSRI;\r\n/* 620: */ }", "public void setSecuenciaExpediente(BigDecimal secuenciaExpediente) {\r\n this.secuenciaExpediente = secuenciaExpediente;\r\n }", "public void setSeCookie(String seCookie) {\n this.seCookie = seCookie;\n }", "void setProvincia(String provincia);", "@Override\r\n\tpublic void salarioNovo(double salario) {\n\t\tthis.valor=salario;\r\n\r\n\t\t\r\n\t}", "public void setSeNo(String seNo) {\n this.seNo = seNo;\n }", "public void setCorreo(String aCorreo) {\r\n correo = aCorreo;\r\n }", "public void setSpouse() {\n\n if (user.getGender().equals('m')) {\n maleSpouse.add(user.getPersonID());\n } else {\n femaleSpouse.add(user.getPersonID());\n }\n\n if(user.getSpouseID() != null) {\n\n Person spouse = people.get(user.getSpouseID());\n\n if(spouse.getGender().equals(\"m\")) {\n maleSpouse.add(spouse.getPersonID());\n } else {\n femaleSpouse.add(spouse.getPersonID());\n }\n }\n }", "public void setMontoSolici(java.lang.String montoSolici) {\n this.montoSolici = montoSolici;\n }", "public void setMontoSolici(java.lang.String montoSolici) {\n this.montoSolici = montoSolici;\n }", "public void setCorreo(String correo){\r\n this.correo = correo;\r\n }", "private void setupSpalteSez() {\r\n\t\t// legt fest, welches Attribut von Arbeitspaket in dieser Spalte angezeigt wird\r\n\t\tspalteSez.setCellValueFactory(new PropertyValueFactory<>(\"sez\"));\r\n\r\n\t\t// lässt die Zelle mit Hilfe der Klasse EditCell bei Tastatureingabe bearbeitbar\r\n\t\t// machen\r\n\t\tspalteSez.setCellFactory(\r\n\t\t\t\tEditCell.<ArbeitspaketTableData, Integer>forTableColumn(new MyIntegerStringConverter()));\r\n\r\n\t\t// überschreibt den alten Attributwert mit der User-Eingabe\r\n\t\tspalteSez.setOnEditCommit(event -> {\r\n\t\t\tfinal Integer value = event.getNewValue() != null ? event.getNewValue() : event.getOldValue();\r\n\t\t\tevent.getTableView().getItems().get(event.getTablePosition().getRow()).setSez(value);\r\n\t\t\ttabelle.refresh();\r\n\t\t});\r\n\t}", "public void setEmpresa(Empresa empresa)\r\n/* 89: */ {\r\n/* 90:141 */ this.empresa = empresa;\r\n/* 91: */ }", "public void setCorreo(String correo) {\n\t\tthis.correo.set(correo);\n\t}", "public void setSoObinslineId(Number value) {\n setAttributeInternal(SOOBINSLINEID, value);\n }", "public void setViaComienzo(Via viaComienzo) {\n\t\tif (viaComienzo != null && viaComienzo.getCodigo() != comienza)\n\t\t\tthrow new RuntimeException(\"Via de comienzo inconsistente\");\n\t\tthis.viaComienzo = viaComienzo;\n\t}", "public void setCodProvincia(String codProvincia);", "@Override public void setEntorno(String nombre, String valor) {\r\n TRAZADOR.info(nombre + \" = \" + valor);\r\n this.sesion.setEntorno(nombre, valor);\r\n }", "public void setAnexo(java.lang.String anexo) {\n\t\t_telefonoSolicitudProducto.setAnexo(anexo);\n\t}", "void xsetSaltData(org.apache.xmlbeans.XmlString saltData);", "public void setCuenta(String cuenta) {\n\t\tthis.cuenta = cuenta;\n\t}", "public void setId_seccion(@NotNull String id_seccion) {\n this.id_seccion = id_seccion;\n }", "void setCognome(String cognome);", "public void setaSex(Integer aSex) {\n this.aSex = aSex;\n }", "public String chaveSecundaria(){\r\n return this.email;\r\n }", "public void SalvarNovaPessoa(){\r\n \r\n\t\tpessoaModel.setUsuarioModel(this.usuarioController.GetUsuarioSession());\r\n \r\n\t\t//INFORMANDO QUE O CADASTRO FOI VIA INPUT\r\n\t\tpessoaModel.setOrigemCadastro(\"I\");\r\n \r\n\t\tpessoaRepository.SalvarNovoRegistro(this.pessoaModel);\r\n \r\n\t\tthis.pessoaModel = null;\r\n \r\n\t\tUteis.MensagemInfo(\"Registro cadastrado com sucesso\");\r\n \r\n\t}", "public void cobrarCuotaDeSocios(Equipo e){\n\t\te.setCapital(e.getCapital()+e.getSocios());\n\t\tem.merge(e);\n\t\tingresarTransaccion(e,e.getPublicidad(), EnumTipoTransaccion.SOCIOS);\n\t\t\n\t}", "public void setEstablecimiento(String establecimiento)\r\n/* 119: */ {\r\n/* 120:198 */ this.establecimiento = establecimiento;\r\n/* 121: */ }", "public void asignarEco(EcoObstetrico eco) {\n this.ecoObstetrico = eco;\n this.tipoEco = eco.tipo();\n }", "private void setSALIR(int opcionSalida){\n\t\tthis.opcionSalida = opcionSalida;\n\t}", "public void setSupEntCorporate(String supEntCorporate) {\n this.supEntCorporate = supEntCorporate == null ? null : supEntCorporate.trim();\n }", "public CensoSeccionE() {\n this.columnName1=\"\";\n this.columnName2=\"\";\n this.Total_institu=0;\n this.Total_severo=0;\n }", "public void setEnteDonatore(String enteDonatore) {\n\t\tthis.enteDonatore = enteDonatore;\n\t}", "public void setUsuario(java.lang.String newUsuario);", "public void setUsuarioInsercion(String p) { this.usuarioInsercion = p; }", "public void setUsuarioInsercion(String p) { this.usuarioInsercion = p; }", "@Test\n public void testSetNumSoin() {\n \n assertNull(soin3.getNumSoin());\n soin3.setNumSoin(\"200\");\n assertNotNull(soin3.getNumSoin());\n assertEquals(\"200\", soin3.getNumSoin());\n \n }", "@Override\n\tpublic void setSex(String sex) throws RemoteException {\n\t\tthis.sex = sex;\n\t}", "public void setRegisNo(String regisNo)\n {\n // put your code here\n this.regisNo = regisNo;\n }", "public String getSenha() {\r\n return senha;\r\n }", "public Sorpresa_SalirCarcel(MazoSorpresas _mazo) {\n texto = \"El jugador puede salir de la carcel si cae en ella\";\n mazo = _mazo;\n }", "void setMedlineSi(gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi medlineSi);", "public void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);", "@Test\r\n public void testSetFuncaoSecundaria() {\r\n System.out.println(\"setFuncaoSecundaria\");\r\n FuncaoIntegrante funcaoSecundaria = null;\r\n Integrante instance = new Integrante();\r\n instance.setFuncaoSecundaria(funcaoSecundaria);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Override\r\n\tpublic void salvar(Registro registro) {\n\t\t\r\n\t}", "private void setupSpalteSaz() {\r\n\t\t// legt fest, welches Attribut von Arbeitspaket in dieser Spalte angezeigt wird\r\n\t\tspalteSaz.setCellValueFactory(new PropertyValueFactory<>(\"saz\"));\r\n\r\n\t\t// lässt die Zelle mit Hilfe der Klasse EditCell bei Tastatureingabe bearbeitbar\r\n\t\t// machen\r\n\t\tspalteSaz.setCellFactory(\r\n\t\t\t\tEditCell.<ArbeitspaketTableData, Integer>forTableColumn(new MyIntegerStringConverter()));\r\n\r\n\t\t// überschreibt den alten Attributwert mit der User-Eingabe\r\n\t\tspalteSaz.setOnEditCommit(event -> {\r\n\t\t\tfinal Integer value = event.getNewValue() != null ? event.getNewValue() : event.getOldValue();\r\n\t\t\tevent.getTableView().getItems().get(event.getTablePosition().getRow()).setSaz(value);\r\n\t\t\ttabelle.refresh();\r\n\t\t});\r\n\t}", "public void setCorreo(String correo) {\n this.correo = correo;\n }", "void setSolicitarCredito(com.soa.SolicitarCreditoDocument.SolicitarCredito solicitarCredito);", "public void xsetNombreCompleto(org.apache.xmlbeans.XmlString nombreCompleto)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NOMBRECOMPLETO$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(NOMBRECOMPLETO$0);\n }\n target.set(nombreCompleto);\n }\n }", "public void setSoObinsizlineId(Number value) {\n setAttributeInternal(SOOBINSIZLINEID, value);\n }", "public void setServicioSRI(ServicioSRI servicioSRI)\r\n/* 106: */ {\r\n/* 107:125 */ this.servicioSRI = servicioSRI;\r\n/* 108: */ }", "public alterarSenhaCliente() {\n }", "void setSolicitarServicio(com.soa.SolicitarServicioDocument.SolicitarServicio solicitarServicio);", "public void setSimbolo(char simbolo) {\r\n\t\tthis.simbolo = simbolo;\r\n\t}", "public void asignarEco(EcoPelvico eco) {\n this.ecoPelvico = eco;\n this.tipoEco = eco.tipo();\n }", "public void setSeUuid(String seUuid) {\n this.seUuid = seUuid;\n }", "public void setSeUuid(String seUuid) {\n this.seUuid = seUuid;\n }", "public void setSeUuid(String seUuid) {\n this.seUuid = seUuid;\n }", "public void setParentezco(Parentezco parentezco)\r\n/* 158: */ {\r\n/* 159:290 */ this.parentezco = parentezco;\r\n/* 160: */ }", "public Gerente(String nome,String cpf,String sexo,String email,String senha) throws NomeNullException, NomeVazioException, CPFInvalidoException, EmailInvalidoException, SexoInvalidoException, SenhaInvalidaException // sera inicializado junto com o construtor, os atributos essenciais \n\t{\tsuper.setId(indexarID);\n\t\tsuper.setNome(nome);\n\t\tsuper.setCpf(cpf);\n\t\tsuper.setSexo(sexo);\n\t\tsuper.setEmail(email);\n\t\tsuper.setSenha(senha);\n\t\tindexarID++;\n\t}", "void setSalario(double salario);", "public void setFacturaProveedorSRI(FacturaProveedorSRI facturaProveedorSRI)\r\n/* 346: */ {\r\n/* 347:337 */ this.facturaProveedorSRI = facturaProveedorSRI;\r\n/* 348: */ }", "public void setSex(String sex);", "@Override\n\tpublic void setProvincia(String provincia) {\n\t\tmodel.setProvincia(provincia);\n\t}", "public Socio() {\r\n\t\tsuper();\r\n\t\tthis.id = 0;\r\n\t\tthis.nombre = \"\";\r\n\t\tthis.apellido1 = \"\";\r\n\t\tthis.apellido2 = \"\";\r\n\t\tthis.email = \"\";\r\n\t\tthis.dni = \"\";\r\n\t\tthis.administrador = false;\r\n\t}", "public void setContrasena(String contrasena) {this.contrasena = contrasena;}", "public Seance_Salle(int id_seance,int id_salle)\r\n {\r\n this.id_salle=id_salle;\r\n this.id_seance=id_seance;\r\n }", "public void setUserSex(String userSex) {\n this.userSex = userSex;\n }", "void xsetSalario(org.apache.xmlbeans.XmlDouble salario);", "void xsetSOID(org.apache.xmlbeans.XmlString soid);", "public void setConsulta(final E consulta) {\n\n\t\tthis.consulta = consulta;\n\t}", "public void setServicioFacturaProveedorSRI(ServicioFacturaProveedorSRI servicioFacturaProveedorSRI)\r\n/* 116: */ {\r\n/* 117:133 */ this.servicioFacturaProveedorSRI = servicioFacturaProveedorSRI;\r\n/* 118: */ }", "@And(\"^informo a senha de acesso cadastrada$\")\n\tpublic void preencheSenha() throws Throwable {\n\t\tlogin.preencheSenha();\n\t}", "public void setEspecialidad (EspecialidadEntity pEspecialidad)\r\n {\r\n this.especialidad = pEspecialidad;\r\n }", "@Override\n\tpublic void enviarNovaSenhaEmail(Cliente cliente, String newSenha) {\n\t\tSimpleMailMessage sm = prepararNovaSenhaEmail(cliente, newSenha);\n\t\tenviarEmail(sm);\n\t\t\n\t}", "public Sea getSea() {\n return this.sea;\n }", "public void salvarProfessor(){\n \n this.professor.setName(nome);\n this.professor.setEmail(email);\n this.professor.setSenha(senha);\n\n try {\n \n this.professorServico.persistence(this.professor);\n \n } catch (CadastroUsuarioException ex) {\n \n //Precisa tratar aqui!\n }\n \n setNome(null);\n setEmail(null);\n setSenha(null);\n }", "@Override\n\tpublic void save(SeguUsuario cliente) {\n\t\tusuarioDao.save(cliente);\n\t\t\n\t}", "@Override\n public void agregarSocio(String nombre, int dni, int codSocio) {\n }", "public void setCuenta(Cuenta cuenta) {\r\n this.cuenta = cuenta;\r\n fireTableDataChanged();\r\n }" ]
[ "0.6920268", "0.67906255", "0.61243546", "0.6094774", "0.57169783", "0.5500969", "0.54985434", "0.5489364", "0.54346645", "0.53668976", "0.524696", "0.5222281", "0.5151867", "0.51256704", "0.5105553", "0.5022688", "0.50154954", "0.5013536", "0.49956706", "0.4993342", "0.4986442", "0.4984822", "0.4969881", "0.49536657", "0.4931308", "0.49275362", "0.4916417", "0.48947087", "0.48919925", "0.48919925", "0.4889983", "0.48806122", "0.487273", "0.48719776", "0.48556802", "0.48553815", "0.48480287", "0.48367715", "0.48236984", "0.4822215", "0.48163283", "0.48069072", "0.48032534", "0.47868744", "0.47756714", "0.47710234", "0.47645292", "0.47572595", "0.47559556", "0.4755621", "0.47431487", "0.47412655", "0.47309598", "0.47285742", "0.47254607", "0.47254607", "0.47218817", "0.47165665", "0.4715832", "0.47120884", "0.47089085", "0.47087434", "0.4698768", "0.46877146", "0.46827343", "0.46659493", "0.4659959", "0.4630868", "0.46307644", "0.4625983", "0.46201766", "0.46200562", "0.46162933", "0.4614719", "0.46142402", "0.46111998", "0.46111998", "0.46111998", "0.46065378", "0.46064425", "0.45957917", "0.45939457", "0.4591359", "0.45863172", "0.45813355", "0.4571692", "0.45653537", "0.4560376", "0.45525533", "0.4550518", "0.45460445", "0.4545166", "0.4543234", "0.45388383", "0.45349464", "0.4531628", "0.4531387", "0.45288992", "0.45258155", "0.45255396" ]
0.6861911
1
This method was generated by Apache iBATIS ibator. This method returns the value of the database column cementerio.persona.estado_civil
public String getEstadoCivil() { return estadoCivil; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getEstadoCivil() {\n return this.estadoCivil;\n }", "public String getEstadoPersona() { return (this.estadoPersona == null) ? \"\" : this.estadoPersona; }", "public abstract co\n\t\t.com\n\t\t.telefonica\n\t\t.atiempo\n\t\t.ejb\n\t\t.eb\n\t\t.Estado_psLocal getEstado_ps();", "public abstract co\n\t\t.com\n\t\t.telefonica\n\t\t.atiempo\n\t\t.ejb\n\t\t.eb\n\t\t.Estado_ps_peticionLocal getEstado_ps_peticion();", "public Boolean getIcAtivo() {\n\t\treturn icAtivo;\n\t}", "String getEstado();", "public String getEstado() {\n return this.estado.get();\n }", "public void setEstadoPersona(String p) { this.estadoPersona = p; }", "public String getEstado() { return (this.estado == null) ? \"\" : this.estado; }", "public void setEstadoCivil(String novoEstadoCivil) {\n this.estadoCivil = novoEstadoCivil;\n }", "String getCidade();", "public long getCiudadOrigen() {\r\n\t\treturn ciudadOrigen;\r\n\t}", "public biz.belcorp.www.canonico.ffvv.vender.TEstadoPedido getEstado(){\n return localEstado;\n }", "public boolean getCVCTG_ESTADO(){\n\t\treturn this.myCvctg_estado;\n\t}", "public String getEstado() {\r\n return estado;\r\n }", "public String getMunicipio() {\n return municipio;\n }", "public es.gob.agenciatributaria.www2.static_files.common.internet.dep.aplicaciones.es.aeat.ssii.fact.ws.SuministroInformacion_xsd.EstadoCuadreType getEstadoCuadre() {\r\n return estadoCuadre;\r\n }", "public String getCidade() {\n\t\treturn cidade;\n\t}", "public java.lang.String getCodigo_agencia();", "public String getId_ciudad() {\n return id_ciudad;\n }", "public String getEstadoProblema() {\n return estadoProblema;\n }", "public String getMunicipio(){\n return municipio;\n }", "public String getEstado() {\n\t\treturn this.estado;\n\t}", "public String getCODIGO() {\r\n return CODIGO;\r\n }", "public String recuperaCultivoByEstadoAsigCA(){\n\t\tlstCultivo = iDAO.recuperaCultivoByInicilizacionEsquema(idInicializacionEsquema,idEstado);\n\t\t\n\t\treturn SUCCESS;\t\t\n\t}", "public void setEstadoCivil(String estadoCivil) {\r\n\t\tthis.estadoCivil = estadoCivil;\r\n\t}", "public es.gob.agenciatributaria.www2.static_files.common.internet.dep.aplicaciones.es.aeat.ssii.fact.ws.SuministroInformacion_xsd.IDFacturaExpedidaBCType getClavePaginacion() {\r\n return clavePaginacion;\r\n }", "public abstract java.lang.Long getCod_actividad();", "public long getCedulaPersonaEnvia() {\r\n\t\treturn cedulaPersonaEnvia;\r\n\t}", "public String getCVCTG_CODIGO(){\n\t\treturn this.myCvctg_codigo;\n\t}", "@ManyToOne\r\n\t@JoinColumn(name=\"NVOC_ID\")\r\n\tpublic NivelOcupacional getNivelOcupacional() {\r\n\t\treturn this.nivelOcupacional;\r\n\t}", "public String getEstado() {// Retorna o nome do estado.\r\n\t\treturn estado;\r\n\t}", "public String getEstado() {\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"getEstado() - start\");\n\t\t}\n\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"getEstado() - end\");\n\t\t}\n\t\treturn estado;\n\t}", "public Estado getEstado_inicial() {\r\n\t\treturn estado_inicial;\r\n\t}", "public String getvCodtupa() {\n return vCodtupa;\n }", "public BigDecimal getIdEstado() {\r\n return idEstado;\r\n }", "public String getIcao() { return Icao; }", "public abstract java.lang.String getCod_tecnico();", "@AutoEscape\n\tpublic String getCodProvincia();", "public int getDatossolicitudBftipoDeConvenio() {\n return datossolicitudBftipoDeConvenio;\n }", "public String getCodiceFiscale() {\n return codiceFiscale;\n }", "public String getCodigoValor() {\n\t\treturn codigoValor;\n\t}", "public abstract java.lang.String getCod_localidad();", "public int getEstado() {\r\n return estadoID;\r\n }", "public int getComuneNascitaCod() {\r\n return comuneNascitaCod;\r\n }", "public int getEstadoPareja() {\n return estadoPareja;\n }", "String getCodiceFiscale();", "public String getAutorizacionCompleto()\r\n/* 184: */ {\r\n/* 185:316 */ return this.establecimiento + \"-\" + this.puntoEmision + \" \" + this.autorizacion;\r\n/* 186: */ }", "public String recuperaVariedadByCultivoEdoAsigCA(){\n\t\tlstVariedad = iDAO.recuperaVariedadByInicilizacionEsquema(idInicializacionEsquema, idCultivo, idEstado);\n\t\treturn SUCCESS;\t\t\n\t}", "public es.pode.publicacion.negocio.dominio.Estado getEstadoActual()\r\n {\r\n return this.estadoActual;\r\n }", "public String getCidade() {// Retorna o nome da cidade.\r\n\t\treturn cidade;\r\n\t}", "public java.lang.String getFecInicio() {\n return fecInicio;\n }", "public int obtenerDatos() {\n codigo =Integer.parseInt(modelo.getValueAt(fila,0).toString());\n return codigo;\n }", "public String consultaEqCiudad() {\n\t\tString res = \"\";\n\t\tString query = \"SELECT E.NOMBRE, C.NOMBRE FROM EQUIPOS E, CIUDADES C WHERE E.COD_CIUDAD == C.CODIGO\";\n\n\t\tConnection con = null;\n\t\tPreparedStatement pstmt = null;\n\t\tResultSet rslt = null;\n\n\t\ttry {\n\t\t\tcon = acceso.getConnection();\n\t\t\tpstmt = con.prepareStatement(query);\n\t\t\trslt = pstmt.executeQuery();\n\n\t\t\twhile (rslt.next()) {\n\t\t\t\tres = res + rslt.getString(1) + \" - \" + rslt.getString(2) + \"\\n\";\n\t\t\t}\n\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (rslt != null)\n\t\t\t\t\trslt.close();\n\t\t\t\tif (pstmt != null)\n\t\t\t\t\tpstmt.close();\n\t\t\t\tif (con != null)\n\t\t\t\t\tcon.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\treturn res;\n\t}", "public void setEstado(String p) { this.estado = p; }", "public String getNacionalidade() {\n return nacionalidade;\n }", "public String getNombreEstado() {\r\n return nombreEstado;\r\n }", "public String dameValor(String campo) {\n\t\t// TODO Auto-generated method stub\n\t\tString c=\"\";\n\t\n\t\tif (campo.equals(Constantes.ID_ISFICHA))\n\t\t{\n\t\t\tc=IDISFICHA;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_NOTAS))\n\t\t{\n\t\t\tc=NOTAS;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_ANOTACIONES))\n\t\t{\n\t\t\tc=ANOTACIONES;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_NOTAS_EJERCICIOS))\n\t\t{\n\t\t\tc=NOTAS_EJERCICIOS;\n\t\t}\n\t\treturn c;\n\t}", "public String getCodigo() {\n return codigo;\n }", "public String getCodigo() {\n return codigo;\n }", "public Image getCorazon ( ) {\n\t\tswitch ( vida ) {\n\t\tcase 0 :\n\t\t\treturn sinVida;\n\t\tcase 1:\n\t\t\treturn cuartoDeVida;\n\t\tcase 2:\n\t\t\treturn mitadVida;\n\t\tcase 3:\n\t\t\treturn tresCuartos;\n\t\tcase 4:\n\t\t\treturn fullVida;\n\t\tdefault:\n\t\t\treturn sinVida;\n\t\t}\n\t}", "public int getVonalAzonosito()\r\n\t{\r\n\t\treturn vonalAzonosito;\r\n\t}", "public Integer getCodTienda();", "public int getCodigoAluno() {\r\n\t\treturn codigoAluno;\r\n\t}", "public String getCodice() {\n\t\treturn codice;\n\t}", "public java.lang.String getCodigo_pcom();", "public Integer getAnnoCorso() {\r\n return this.annoCorso;\r\n }", "public java.lang.Short getEstado();", "public String getCod_catedratico() {\n return cod_catedratico;\n }", "public java.lang.Integer getValor_servicio() {\n return valor_servicio;\n }", "public java.lang.String getCodigo() {\n return codigo;\n }", "public String dameValor(String campo) {\n\t\t// TODO Auto-generated method stub\n\t\tString c=\"\";\n\t\n\t\tif (campo.equals(Constantes.ID_HAS_ISHORARIO_IDISHORARIO))\n\t\t{\n\t\t\tc=ISHORARIO_IDISHORARIO;\n\t\t}\n\t\telse if (campo.equals(Constantes.ID_HAS_ISAULA_IDISAULA))\n\t\t{\n\t\t\tc=ISAULA_IDISAULA;\n\t\t}\n\t\telse if (campo.equals(Constantes.ISHORARIO_HAS_ISAULA_ISCURSO_IDISCURSO))\n\t\t{\n\t\t\tc=ISCURSO_IDISCURSO;\n\t\t}\n\t\t\n\t\treturn c;\n\t}", "public java.lang.String getCodigo(){\n return localCodigo;\n }", "public com.besixplus.sii.objects.Cgg_jur_anticipo getCgg_jur_anticipo(){\n\t\treturn this.myCgg_jur_anticipo;\n\t}", "public String getAgenciaCodCedenteFormatted() {\r\n return boleto.getAgencia() + \" / \" + boleto.getContaCorrente() + \" \" + boleto.getDvContaCorrente();\r\n }", "@Column(name=\"ValorCota\")\n\tpublic BigDecimal getValorCota() {\n\t\treturn valorCota;\n\t}", "public String getvCodtmon() {\n return vCodtmon;\n }", "public String getCUSU_CODIGO(){\n\t\treturn this.myCusu_codigo;\n\t}", "public String getCodigo() {\n\t\treturn this.codigo;\n\t}", "@OneToMany(mappedBy = \"estadoCivil\")\n\tpublic List<Aluno> getAlunos() {\n\t\treturn this.alunos;\n\t}", "public String getNombreEstado() {\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"getNombreEstado() - start\");\n\t\t}\n\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"getNombreEstado() - end\");\n\t\t}\n\t\treturn nombreEstado;\n\t}", "public static EnumCaracteristicaDinamica getEnumByValueCode(final String codigoValor, final Integer codigoTipo){\n\t\tif(StringUtils.isNotEmpty(codigoValor) && codigoTipo != null){\n\t\t\tfor(EnumCaracteristicaDinamica enumCaracteristicaDinamica: EnumCaracteristicaDinamica.values()){\n\t\t\t\tif(StringUtils.equals(codigoValor, enumCaracteristicaDinamica.getKeyId()) && (codigoTipo != null && codigoTipo.compareTo(enumCaracteristicaDinamica.getCodigoTipo()) == 0)){\n\t\t\t\t\treturn enumCaracteristicaDinamica;\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\t\t\n\t\treturn null;\n\t}", "public String getCodigo() {\n\t\treturn codigo;\n\t}", "public Estado getEstado ()\n\t{\n\t\treturn estado;\n\t}", "public Long getActividad() {\n return this.actividad;\n }", "public int getDtVencimento() {\n return dtVencimento;\n }", "public java.util.Calendar getDataUltimoVencimento() {\n return dataUltimoVencimento;\n }", "public Long getCodigo() {\n return codigo;\n }", "@Override\n\tpublic String getEstado() {\n\t\treturn \"En Pausa\";\n\t}", "public Integer getCboEspecialidad() {\n return cboEspecialidad;\n }", "public String getFecha_Venta() {\n return fecha_Venta;\n }", "public String getCodigoEmpresa() {\n return this.codigoEmpresa;\n }", "public int getAtencionAlCliente(){\n return atencion_al_cliente; \n }", "public Integer getCodigo() {\n return codigo;\n }", "public int getAnnoCorso() {\r\n return this.annoCorso;\r\n }", "public Estado getEstado() {\n\t\treturn estado;\n\t}", "public TipoVehiculo getTipoVehiculo() {\r\n\t\treturn TipoVehiculo.valueOf(cb_TipoVehiculo.getSelectedItem().toString());\r\n\t}", "public int getCadastro() {\r\n\t\treturn cadastro;\r\n\t}", "public Integer getCodigo() {\n\t\treturn codigo;\n\t}", "@AutoEscape\n\tpublic String getCodDepartamento();" ]
[ "0.72413075", "0.6518395", "0.61735207", "0.61732954", "0.60658205", "0.60183144", "0.6016148", "0.60031337", "0.600049", "0.59529006", "0.5908426", "0.5876886", "0.5871558", "0.58660984", "0.586577", "0.5859162", "0.5835829", "0.5802314", "0.5797922", "0.5794261", "0.57932335", "0.5748516", "0.5722356", "0.57065535", "0.5686869", "0.5682114", "0.5678869", "0.5670826", "0.56485844", "0.56371135", "0.5623865", "0.5607223", "0.5604075", "0.55953145", "0.55749035", "0.5574184", "0.557152", "0.55705076", "0.55470175", "0.5545878", "0.55409056", "0.55296123", "0.5505291", "0.5504165", "0.55030805", "0.5491198", "0.54889375", "0.54886997", "0.5475746", "0.54720926", "0.54694575", "0.5465692", "0.5465188", "0.54609764", "0.54579705", "0.54523295", "0.5450155", "0.54158354", "0.5408297", "0.5408297", "0.5386415", "0.53853244", "0.5380171", "0.5375005", "0.5370478", "0.53634983", "0.5348263", "0.5340465", "0.5336456", "0.53232557", "0.5311945", "0.53061914", "0.5290067", "0.52869356", "0.52841574", "0.5282562", "0.52799964", "0.5279966", "0.5277171", "0.52735716", "0.52716595", "0.5263779", "0.52628195", "0.5262707", "0.52603036", "0.5256455", "0.5256025", "0.52511376", "0.52506495", "0.5246591", "0.52429855", "0.52422976", "0.524117", "0.5240181", "0.52388674", "0.52322036", "0.522286", "0.52133936", "0.52104264", "0.52083176" ]
0.69663787
1
This method was generated by Apache iBATIS ibator. This method sets the value of the database column cementerio.persona.estado_civil
public void setEstadoCivil(String estadoCivil) { this.estadoCivil = estadoCivil; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setEstadoPersona(String p) { this.estadoPersona = p; }", "public void setEstadoCivil(String novoEstadoCivil) {\n this.estadoCivil = novoEstadoCivil;\n }", "public void setEstado(String p) { this.estado = p; }", "public String getEstadoCivil() {\n return this.estadoCivil;\n }", "public void setEstado(String estado){\n cabeza.setEstado(estado);\n \n }", "public void setEstado(biz.belcorp.www.canonico.ffvv.vender.TEstadoPedido param){\n \n this.localEstado=param;\n \n\n }", "public abstract void setEstado_ps_peticion(\n\t\tco\n\t\t\t.com\n\t\t\t.telefonica\n\t\t\t.atiempo\n\t\t\t.ejb\n\t\t\t.eb\n\t\t\t.Estado_ps_peticionLocal anEstado_ps_peticion);", "public String getEstadoCivil() {\r\n\t\treturn estadoCivil;\r\n\t}", "public void comecar() { setEstado(estado.comecar()); }", "public void setEstadoCasilla(int estado) {\n\t\testadoCasella = estado;\n\t}", "public void setIcAtivo(Boolean icAtivo) {\n\t\tthis.icAtivo = icAtivo;\n\t}", "private void setEstado(IEstado estado) {\n this.estado = estado;\n }", "public void setEstado(String estado) {\n this.estado.set(estado);\n }", "public void setCVCTG_ESTADO(boolean inCvctg_estado){\n\t\tthis.myCvctg_estado = inCvctg_estado;\n\t}", "public void setEstado(int estado) {\r\n this.estadoID = estado;\r\n }", "public void setCodigo_venda(int pCodigoVenda){\n this.codigoVenda = pCodigoVenda;\n }", "public void setCodProvincia(String codProvincia);", "public void setEstablecimiento(String establecimiento)\r\n/* 119: */ {\r\n/* 120:198 */ this.establecimiento = establecimiento;\r\n/* 121: */ }", "public void setEstadoCuadre(es.gob.agenciatributaria.www2.static_files.common.internet.dep.aplicaciones.es.aeat.ssii.fact.ws.SuministroInformacion_xsd.EstadoCuadreType estadoCuadre) {\r\n this.estadoCuadre = estadoCuadre;\r\n }", "public void setActivo(boolean activo)\r\n/* 178: */ {\r\n/* 179:328 */ this.activo = activo;\r\n/* 180: */ }", "@Override\n\tpublic void morir() {\n\t\tthis.estadoVida = false;\n\t}", "public abstract void setEstado_ps(\n\t\tco.com.telefonica.atiempo.ejb.eb.Estado_psLocal anEstado_ps);", "public String getEstadoPersona() { return (this.estadoPersona == null) ? \"\" : this.estadoPersona; }", "public void setActivo(boolean activo)\r\n/* 149: */ {\r\n/* 150:255 */ this.activo = activo;\r\n/* 151: */ }", "public abstract co\n\t\t.com\n\t\t.telefonica\n\t\t.atiempo\n\t\t.ejb\n\t\t.eb\n\t\t.Estado_psLocal getEstado_ps();", "@Transactional\n\t@Override\n\tpublic void atualizarAtivo(Long id, Boolean ativo) {\n\t\tCriteriaBuilder builder = manager.getCriteriaBuilder();\n\t\tCriteriaUpdate<Pessoa> criteria = builder.createCriteriaUpdate(Pessoa.class);\n\t\tRoot<Pessoa> root = criteria.from(Pessoa.class);\n\t\t\n\t\tMetamodel m = manager.getMetamodel();\n\t\tEntityType<Pessoa> Pessoa_ = m.entity(Pessoa.class);\n\t\t\n\t\t/*criteria.set(root.get(Pessoa_.getAttribute(\"ativo\").)\n\t\tcriteria.set(Pessoa_.ativo, ativo).where(builder.equal(root.<Long>get(Pessoa_.id), id));*/\n\t\tQuery query = manager.createQuery(criteria);\n\t\tif(query.executeUpdate() != 1) {\n\t\t\tthrow new EmptyResultDataAccessException(1);\n\t\t}\n\t}", "public void atualizarStatusAgendamento() {\n\n if (agendamentoLogic.editarStatusTbagendamento(tbagendamentoSelected, tbtipostatusagendamento)) {\n AbstractFacesContextUtils.addMessageInfo(\"Status atualizado com sucesso.\");\n } else {\n AbstractFacesContextUtils.addMessageWarn(\"Falhar ao alterar status do agendamento.\");\n }\n }", "public void setEstado(boolean estado) {\r\n this.estado = estado;\r\n }", "public void setEstado(String estado) throws BaseDeDatosExcepcion, ConexionExcepcion {\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"setEstado(String) - start\");\n\t\t}\n\n\t\ttry {\n\t\t\tthis.estado = estado;\n\t\t\tthis.nombreEstado = MediadorBD.obtenerNombreEstado(estado);\n\t\t\tMediadorBD.setEstadoCaja(estado);\n\t\t\tif(CR.me != null)\n\t\t\t\tCR.me.mostrarEstadoCaja(nombreEstado);\n\t\t} catch (BaseDeDatosExcepcion e) {\n\t\t\tlogger.error(\"setEstado(String)\", e);\n\n\t\t\tAuditoria.registrarAuditoria(\"Falla acceso a BD al actualizar estado de la caja\", 'E');\n\t\t} catch (ConexionExcepcion e) {\n\t\t\tlogger.error(\"setEstado(String)\", e);\n\n\t\t\tAuditoria.registrarAuditoria(\"Falla conexión a BD al actualizar estado de la caja\", 'E');\n\t\t}\n\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"setEstado(String) - end\");\n\t\t}\n\t}", "public void setEstado(String estado) {\r\n\t\tthis.estado = estado;\r\n\t}", "public void setEstado(String estado) {// Altera o nome do estado.\r\n\t\tthis.estado = estado;\r\n\t}", "public abstract void setCod_localidad(java.lang.String newCod_localidad);", "public void setDatossolicitudBftipoDeConvenio(int value) {\n this.datossolicitudBftipoDeConvenio = value;\n }", "void actualizarEstado(Long id, String estado);", "public abstract void setCod_tecnico(java.lang.String newCod_tecnico);", "public void setCgg_jur_anticipo(com.besixplus.sii.objects.Cgg_jur_anticipo inCgg_jur_anticipo){\n\t\tthis.myCgg_jur_anticipo = inCgg_jur_anticipo;\n\t}", "public abstract void setCod_actividad(java.lang.Long newCod_actividad);", "public void setActivo(boolean activo)\r\n/* 115: */ {\r\n/* 116:142 */ this.activo = activo;\r\n/* 117: */ }", "public abstract co\n\t\t.com\n\t\t.telefonica\n\t\t.atiempo\n\t\t.ejb\n\t\t.eb\n\t\t.Estado_ps_peticionLocal getEstado_ps_peticion();", "public void setMunicipio(String municipio) {\n this.municipio = municipio;\n }", "public void modificarEstadoCuota2(CuotaObject cuota) throws SQLException, ParseException \r\n {\r\n PreparedStatement prepStmt = null;\r\n\r\n String insertStatement = \"UPDATE FINANCIADO_PAGOS SET ESTADO=?,FECHA=? where IDRUBRO=?\";\r\n \r\n prepStmt = con.prepareStatement(insertStatement);\r\n \r\n prepStmt.setString(1, cuota.getEstado());\r\n \r\n \r\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n Date date1 = formatter.parse(cuota.getFecha());\r\n java.sql.Date datetmp = new java.sql.Date(date1.getTime());\r\n \r\n prepStmt.setDate(2, datetmp);\r\n \r\n \r\n prepStmt.setString(3, cuota.getIdrubro());\r\n \r\n prepStmt.executeUpdate();\r\n if (prepStmt != null) {\r\n prepStmt.close();\r\n }\r\n }", "public void setFECHAECVACT(int value) {\n this.fechaecvact = value;\n }", "public void setComuneNascitaCod(int value) {\r\n this.comuneNascitaCod = value;\r\n }", "public Piso(boolean vacio) {\n\t\tthis.id=-1;\n\t\tthis.zona = \"1\";\n\t\tthis.direccion = \"\";\n\t\tthis.banos = 0;\n\t\tthis.habitaciones = 0;\n\t\tthis.permite_mascotas = false;\n\t\tthis.aire_acondicionado = false;\n\t\tthis.amueblado = false;\n\t\tthis.piscina = false;\n\t\tthis.ascensor = false;\n\t\tthis.gimnasio = false;\n\t\tthis.precio_venta = 0;\n\t\tthis.img_url = \"\";\n\t}", "public String recuperaCultivoByEstadoAsigCA(){\n\t\tlstCultivo = iDAO.recuperaCultivoByInicilizacionEsquema(idInicializacionEsquema,idEstado);\n\t\t\n\t\treturn SUCCESS;\t\t\n\t}", "public Boolean getIcAtivo() {\n\t\treturn icAtivo;\n\t}", "public void setDatossolicitudBfclasificacionConvenio(int value) {\n this.datossolicitudBfclasificacionConvenio = value;\n }", "public void setFECHAECVACT(int value) {\n this.fechaecvact = value;\n }", "public void setEstadoEleicaoEncerrada(int idEleicao){\n this.eleicaoDB.setEstadoEleicaoEncerrada(idEleicao);\n }", "public biz.belcorp.www.canonico.ffvv.vender.TEstadoPedido getEstado(){\n return localEstado;\n }", "private void setEstado(Estado estado) {\n\t\tif ((!this.estado.equals(Estado.PARADO)) && (estado.equals(Estado.PARADO))) {\n\n\t\t\t// registro la secuencia de ejecucion\n\t\t\toyenteFinalizacion.firePropertyChange(\"SECUENCIA_FINALIZACION\", null,\n\t\t\t\t\tplanificador.obtenerSecuenciaLogica());\n\t\t}\n\t\t// registro el cambio de estado\n\t\t// TODO arreglar para pasar el estado anterior\n\t\t// oyenteCambiosEstado.firePropertyChange(\"ESTADO\", this.estado,\n\t\t// estado);\n\t\toyenteCambiosEstado.firePropertyChange(\"ESTADO\", null, estado);\n\n\t\t// guardo el cambio de estado\n\t\tthis.estado = estado;\n\n\t}", "@Override\n\tpublic void atualizar() {\n\t\t\n\t\t \n\t\t String idstring = id.getText();\n\t\t UUID idlong = UUID.fromString(idstring);\n\t\t \n\t\t PedidoCompra PedidoCompra = new PedidoCompra();\n\t\t\tPedidoCompra.setId(idlong);\n\t\t\tPedidoCompra.setAtivo(true);\n//\t\t\tPedidoCompra.setNome(nome.getText());\n\t\t\tPedidoCompra.setStatus(StatusPedido.valueOf(status.getSelectionModel().getSelectedItem().name()));\n//\t\t\tPedidoCompra.setSaldoinicial(saldoinicial.getText());\n\t\t\tPedidoCompra.setData(new Date());\n\t\t\tPedidoCompra.setIspago(false);\n\t\t\tPedidoCompra.setData_criacao(new Date());\n//\t\t\tPedidoCompra.setFornecedor(fornecedores.getSelectionModel().getSelectedItem());\n\t\t\tPedidoCompra.setFornecedor(cbfornecedores.getSelectionModel().getSelectedItem());\n\t\t\tPedidoCompra.setTotal(PedidoCompra.CalcularTotal(PedidoCompra.getItems()));\n\t\t\tPedidoCompra.setTotalpago(PedidoCompra.CalculaTotalPago(PedidoCompra.getFormas()));\n\t\t\t\n\t\t\t\n\t\t\tgetservice().edit(PedidoCompra);\n\t\t\tupdateAlert(PedidoCompra);\n\t\t\tclearFields();\n\t\t\tdesligarLuz();\n\t\t\tloadEntityDetails();\n\t\t\tatualizar.setDisable(true);\n\t\t\tsalvar.setDisable(false);\n\t\t\t\n\t\t \n\t\t \n\t\tsuper.atualizar();\n\t}", "public void setCodDepartamento(String codDepartamento);", "public abstract void setEmpresa(\n\t\tco.com.telefonica.atiempo.ejb.eb.EmpresaLocal anEmpresa);", "public void colocarenlacelda(int fila, int columna, int valor){\n\t\tgetvectorjardin()[fila][columna].setcelda(valor);\r\n\t}", "public void setComentario (String val) {\n this.comentario = val;\n }", "@Override public void realizarCobro(Persona persona){\n\tpersona.cuenta.retiro(120);\n }", "void actualizarFacturaEstadoImpuesto(Integer codigoCompania, Long codigoFacturaEstado, String userId, String estadoFacturaEstado) throws SICException;", "void actualizarAjusteAutomaticoFacturaEstado(Integer codigoCompania, Long codigoFacturaEstado, String userId, Boolean ajusteAutomatico, BigDecimal valorDiferenciaRangoTolerancia) throws SICException ;", "private void actualizaEstadoMapa() {\n if(cambiosFondo >= 0 && cambiosFondo < 10){\n estadoMapa= EstadoMapa.RURAL;\n }\n if(cambiosFondo == 10){\n estadoMapa= EstadoMapa.RURALURBANO;\n }\n if(cambiosFondo > 10 && cambiosFondo < 15){\n estadoMapa= EstadoMapa.URBANO;\n }\n if(cambiosFondo == 15 ){\n estadoMapa= EstadoMapa.URBANOUNIVERSIDAD;\n }\n if(cambiosFondo > 15 && cambiosFondo < 20){\n estadoMapa= EstadoMapa.UNIVERSIDAD;\n }\n if(cambiosFondo == 20){\n estadoMapa= EstadoMapa.UNIVERSIDADSALONES;\n }\n if(cambiosFondo > 20 && cambiosFondo < 25){\n estadoMapa= EstadoMapa.SALONES;\n }\n\n }", "public void setObstaculo(int avenida, int calle);", "public void setCodigo_agencia(java.lang.String newCodigo_agencia);", "void setProvincia(String provincia);", "void actualizarFacturaEstado(Integer codigoCompania, Long codigoFacturaEsatado, String userId, Boolean inactivarFacturaEstado);", "private void setIva(IVA iva) throws IvaInvalidoException {\n if (iva == null) {\n throw new IvaInvalidoException(\"El IVA debe ser válido.\");\n }\n this.iva = iva;\n }", "private EnumEstadoLeyMercado(String codigoValor, Integer codigoTipo) {\n\t\tthis.codigoValor = codigoValor;\n\t\tthis.codigoTipo = codigoTipo;\n\t}", "public void setDtMotivoLlamadoAtencion(DataTable dtMotivoLlamadoAtencion)\r\n/* 139: */ {\r\n/* 140:144 */ this.dtMotivoLlamadoAtencion = dtMotivoLlamadoAtencion;\r\n/* 141: */ }", "void setCodiceFiscale(String codiceFiscale);", "public void setValorCalculo(ValoresCalculo valorCalculo)\r\n/* 93: */ {\r\n/* 94:111 */ this.valorCalculo = valorCalculo;\r\n/* 95: */ }", "public void setFECHAFORMALIZ(int value) {\n this.fechaformaliz = value;\n }", "@Override\n public void establecerEstado(EstadoEdicion estado) {\n// control.establecerEstado(estado);\n this.estado = estado;\n }", "public void cambioEstadAvaluo() {\r\n try {\r\n if (\"\".equals(mBRadicacion.Radi.getObservacionAvaluo()) || \"\".equals(mBRadicacion.Radi.getEstadoAvaluo())) {\r\n mbTodero.setMens(\"Falta informacion por Llenar\");\r\n mbTodero.warn();\r\n } else {\r\n mBRadicacion.Radi.CambioEstRad(mBsesion.codigoMiSesion());\r\n mbTodero.setMens(\"La informacion ha sido guardada correctamente\");\r\n mbTodero.info();\r\n mbTodero.resetTable(\"FRMSeguimiento:SeguimientoTable\");\r\n RequestContext.getCurrentInstance().execute(\"PF('DlgEstAvaluo').hide()\");\r\n ListSeguimiento = Seg.ConsulSeguimAvaluos(mBsesion.codigoMiSesion());//VARIABLES DE SESION\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".cambioEstadAvaluo()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n }", "public void setCodigo( String codigo ) {\n this.codigo = codigo;\n }", "public String getEstado() { return (this.estado == null) ? \"\" : this.estado; }", "public void construirCargo() {\n persona.setCargo(Cargos.SUPERVISOR);\n }", "public void setStatoCorrente(Stato prossimo)\r\n\t{\r\n\t\tif(!(corrente==null))\r\n\t\t\tfor(int i=0;i<corrente.getTransazioniUscenti().size();i++)\r\n\t\t\t{\r\n\t\t\t\t//System.out.println(\"Imposto NON attiva la \"+corrente.getTransazioniUscenti().get(i));\r\n\t\t\t\tcorrente.getTransazioniUscenti().get(i).setAttiva(false);\r\n\t\t\t}\r\n\t\t\r\n\t\t//System.out.println(\"Imposto lo stato corrente: \"+prossimo.toString());\r\n\t\tcorrente=prossimo;\r\n\t\tif(!(corrente==null))\r\n\t\t{\r\n\t\t\t//System.out.println(\"Attivo le transazioni \"+corrente.getTransazioniUscenti().size());\r\n\t\t\tfor(int i=0;i<corrente.getTransazioniUscenti().size();i++)\r\n\t\t\t{\r\n\t\t\t\t//System.out.println(\"Imposto ATTIVA la \"+corrente.getTransazioniUscenti().get(i));\r\n\t\t\t\tcorrente.getTransazioniUscenti().get(i).setAttiva(true);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\tpublic void setVcampo(java.lang.String Vcampo) {\n\t\t_esfShooterAffiliationChrono.setVcampo(Vcampo);\n\t}", "SiacDSistemaEsternoEnum(String codice, SistemaEsterno sistemaEsterno){\n\t\tthis.codice = codice;\n\t\tthis.sistemaEsterno = sistemaEsterno;\n\t}", "public abstract void setPeticion(\n\t\tco.com.telefonica.atiempo.ejb.eb.PeticionLocal aPeticion);", "public void asignarAutomovilPersona(){\r\n persona.setAutomovil(automovil);\r\n }", "public Cgg_veh_categoria(\n\t\tString inCvctg_codigo,\n\t\tString inCgg_cvctg_codigo,\n\t\tString inCvctg_nombre,\n\t\tString inCvctg_observacion,\n\t\tboolean inCvctg_estado,\n\t\tString inCvctg_usuario_insert,\n\t\tString inCvctg_usuario_update\n\t){\n\t\tthis.setCVCTG_CODIGO(inCvctg_codigo);\n\t\tthis.setCGG_CVCTG_CODIGO(inCgg_cvctg_codigo);\n\t\tthis.setCVCTG_NOMBRE(inCvctg_nombre);\n\t\tthis.setCVCTG_OBSERVACION(inCvctg_observacion);\n\t\tthis.setCVCTG_ESTADO(inCvctg_estado);\n\t\tthis.setCVCTG_USUARIO_INSERT(inCvctg_usuario_insert);\n\t\tthis.setCVCTG_USUARIO_UPDATE(inCvctg_usuario_update);\n\t}", "public void setAgregaCC(boolean agregaCC)\r\n/* 369: */ {\r\n/* 370:426 */ this.agregaCC = agregaCC;\r\n/* 371: */ }", "public void setCedula(int value) {\n this.cedula = value;\n }", "public void setCodigo(int pCodigo){\n this.codigo = pCodigo;\n }", "public void alterarVencimentoFatura(Fatura fatura) throws ErroRepositorioException ;", "public void setCodigo(java.lang.String param){\n \n this.localCodigo=param;\n \n\n }", "public void setAnio(int p) { this.anio = p; }", "@Command\n\tpublic void actualizarEstatus(@BindingParam(\"analista\") final Analista analista){\n\t\tsuper.mostrarMensaje(\"Confirmacion\", \"¿Está seguro que desea cambiar el estatus del analista?\", Messagebox.EXCLAMATION, new Messagebox.Button[]{Messagebox.Button.YES,Messagebox.Button.NO}, \n\t\t\t\tnew EventListener(){\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onEvent(Event event) throws Exception {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tMessagebox.Button button = (Messagebox.Button) event.getData();\n\t\t\t\t\t\tif (button == Messagebox.Button.YES) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tanalista.setiEstatus(EstatusPersonaFactory.getEstatusActivo());\n\t\t\t\t\t\t\t\t//EL METODO DICE ACTUTALIZARPERSONA\n\t\t\t\t\t\t\t\tsMaestros.acutalizarPersona(analista);\n\t\t\t\t\t\t\t\tcambiarAnalistas(0, null, null);\n\t\t\t\t\t\t\t\tnotifyChange(\"analistas\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\n\t\t}, null);\n\t}", "public void setIdEstado(BigDecimal idEstado) {\r\n this.idEstado = idEstado;\r\n }", "public void setClavePaginacion(es.gob.agenciatributaria.www2.static_files.common.internet.dep.aplicaciones.es.aeat.ssii.fact.ws.SuministroInformacion_xsd.IDFacturaExpedidaBCType clavePaginacion) {\r\n this.clavePaginacion = clavePaginacion;\r\n }", "public void setEstadoActual(es.pode.publicacion.negocio.dominio.Estado estadoActual)\r\n {\r\n this.estadoActual = estadoActual;\r\n }", "public void setValor_servicio(java.lang.Integer valor_servicio) {\n this.valor_servicio = valor_servicio;\n }", "public Valvula(String muni, int hab){\n municipio = muni;\n habitantes = hab;\n estado = true;\n }", "public void setDatossolicitudBfcodigoEjecutivo(int value) {\n this.datossolicitudBfcodigoEjecutivo = value;\n }", "public void cambiaValor(String campo, String valor) {\n\t\t// TODO Auto-generated method stub\n\t\tif (campo.equals(Constantes.ID_ISFICHA))\n\t\t{\n\t\t\tIDISFICHA=valor;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_NOTAS))\n\t\t{\n\t\t\tNOTAS=valor;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_ANOTACIONES))\n\t\t{\n\t\t\tANOTACIONES=valor;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_NOTAS_EJERCICIOS))\n\t\t{\n\t\t\tNOTAS_EJERCICIOS=valor;\n\t\t}\n\t}", "public void setCodigo(String codigo) {\n this.codigo = codigo;\n }", "public void setObservacion(java.lang.String param){\n \n this.localObservacion=param;\n \n\n }", "public void setCodTipoErroCIP(String codTipoErroCIP) {\n this.codTipoErroCIP = codTipoErroCIP;\n }", "public void setNombreEstado(String nombreEstado) {\r\n this.nombreEstado = nombreEstado;\r\n }", "public Estado getEstado_inicial() {\r\n\t\treturn estado_inicial;\r\n\t}" ]
[ "0.6601546", "0.65418816", "0.6310951", "0.6280316", "0.6251095", "0.60756505", "0.6043766", "0.5988252", "0.5980137", "0.5959709", "0.586328", "0.5857785", "0.5792006", "0.57850707", "0.57765085", "0.5735783", "0.568841", "0.56194633", "0.5593137", "0.55696255", "0.5563878", "0.554732", "0.5542767", "0.5496627", "0.54918903", "0.54911613", "0.5484593", "0.548247", "0.5475655", "0.54654455", "0.54619944", "0.5456741", "0.5446014", "0.54455626", "0.5438271", "0.54215366", "0.5415931", "0.5408895", "0.5407737", "0.54033893", "0.5349982", "0.5324082", "0.53101164", "0.52995926", "0.52960503", "0.5291516", "0.5284831", "0.52743775", "0.5271505", "0.52689445", "0.5265774", "0.5256196", "0.52559", "0.5254307", "0.5251928", "0.5250622", "0.52405655", "0.5234", "0.5218839", "0.5213336", "0.52074784", "0.51921266", "0.51882297", "0.517791", "0.51771677", "0.5166824", "0.5164561", "0.51638645", "0.51523143", "0.51520205", "0.51519936", "0.5144435", "0.5143556", "0.5136904", "0.5133811", "0.51304966", "0.51130795", "0.51034516", "0.510324", "0.50957", "0.50953805", "0.5093357", "0.50926596", "0.5091812", "0.50906175", "0.50886184", "0.5087885", "0.50858426", "0.5081746", "0.5078444", "0.5076755", "0.50741184", "0.50654703", "0.5060144", "0.505891", "0.5054774", "0.5052193", "0.50506896", "0.5049868", "0.5046769" ]
0.6559405
1
This method was generated by Apache iBATIS ibator. This method returns the value of the database column cementerio.persona.fecha_nacimiento
public Date getFechaNacimiento() { return fechaNacimiento; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getFecha_nacimiento() {\r\n\t\tDate result=null;\r\n\t\ttry {\r\n\t\t DateFormat df = new SimpleDateFormat(\"dd-MM-yyyy\");\r\n\t\t \r\n\t\t\tresult = df.parse(calendario.getDia()+\"-\"+calendario.getMes()+\"-\"+calendario.getAno());\r\n\r\n\t\t} catch (ParseException e) {\r\n\t\t\tSystem.out.println(\"Fecha incorrecta\");\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\t\treturn result;\r\n\t}", "Date getFechaNacimiento();", "public String getFechaNacimiento() {\n return fechaNacimiento;\n }", "public Date getNascimento() {\n return this.NASCIMENTO;\n }", "public Date obtenerPrimeraFecha() {\n String sql = \"SELECT proyind_periodo_inicio\"\n + \" FROM proy_indices\"\n + \" WHERE proyind_periodo_inicio IS NOT NULL\"\n + \" ORDER BY proyind_periodo_inicio ASC\"\n + \" LIMIT 1\";\n Query query = getEm().createNativeQuery(sql);\n List result = query.getResultList();\n return (Date) DAOUtils.obtenerSingleResult(result);\n }", "public java.util.Date getFechaRegistro() {\n\t\treturn this.fechaRegistro;\n\t}", "public Date getFechaconsulta() {\r\n return fechaconsulta;\r\n }", "public Date getFechaNacim() {\r\n return fechaNacim;\r\n }", "@javax.jdo.annotations.Column(allowsNull = \"false\")\n\t@MemberOrder(sequence = \"3\")\n\tpublic Date getFechaInicio() {\n\t\treturn this.fechaInicio;\n\t}", "public LocalDate getDtNascimento() {\n\t\treturn dtNascimento;\n\t}", "public Date getFechaBajaHasta() {\r\n\t\treturn fechaBajaHasta;\r\n\t}", "public LocalDate getNascimento() {\r\n\t\treturn nascimento;\r\n\t}", "public String getFechaInicio(){\n\n\t\treturn campoInicio.getText();\n\n\t}", "public Date getFechaNacimiento()\r\n/* 133: */ {\r\n/* 134:242 */ return this.fechaNacimiento;\r\n/* 135: */ }", "public Date getDataDeCadastro() {\n\t\treturn this.dataDeCadastro;\n\t}", "@Override\n public java.util.Date getFecha() {\n return _partido.getFecha();\n }", "public Date getCadastro() {\n\n\t\treturn this.cadastro;\n\t}", "public es.gob.agenciatributaria.www2.static_files.common.internet.dep.aplicaciones.es.aeat.ssii.fact.ws.SuministroInformacion_xsd.RangoFechaPresentacionType getFechaPresentacion() {\r\n return fechaPresentacion;\r\n }", "public String getFecha(){\r\n return fechaInicial.get(Calendar.DAY_OF_MONTH)+\"/\"+(fechaInicial.get(Calendar.MONTH)+1)+\"/\"+fechaInicial.get(Calendar.YEAR);\r\n }", "public Timestamp getFechaEntrega() {\n return this.fechaEntrega.get();\n }", "public int getDtRegistro() {\n return dtRegistro;\n }", "public java.util.Date getProformaDate () {\n\t\treturn proformaDate;\n\t}", "public Date obtenerUltimaFecha() {\n String sql = \"SELECT proyind_periodo_fin\"\n + \" FROM proy_indices\"\n + \" WHERE proyind_periodo_fin IS NOT NULL\"\n + \" ORDER BY proyind_periodo_fin DESC\"\n + \" LIMIT 1\";\n Query query = getEm().createNativeQuery(sql);\n List result = query.getResultList();\n return (Date) DAOUtils.obtenerSingleResult(result);\n }", "public Date getAgcProBirthday() {\n\t\treturn agcProBirthday;\n\t}", "public String getFecha() {\n Calendar calendario = new GregorianCalendar();\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n return sdf.format(calendario.getTime());\n }", "public Date getFechaBajaDesde() {\r\n\t\treturn fechaBajaDesde;\r\n\t}", "public String getFecha() {\n return Fecha;\n }", "public final String obtenerFechaFormateada() {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"dd/MMM/yyyy\");\n return fechaDeLaVisita.get().format(formatter);\n }", "public Date getFechaAltaHasta() {\r\n\t\treturn fechaAltaHasta;\r\n\t}", "Date getBirthDate();", "public Date geteBirthday() {\n return eBirthday;\n }", "public Date getFechaAltaDesde() {\r\n\t\treturn fechaAltaDesde;\r\n\t}", "public int getFECHAFORMALIZ() {\n return fechaformaliz;\n }", "public Fecha getFechaIngreso(){\n return this.fechaIngreso;\n }", "public Date getFechaCreacion() {\r\n return fechaCreacion;\r\n }", "public Date getDataNascimentoToSQL() {\r\n\t\treturn new Date(dataNascimento.getTimeInMillis());\r\n\t}", "public Nodo_Bodega ultimaAgregada(){\n return Nodo_bodega_final;\n }", "public java.time.LocalDate getFechaDeLaVisita() {\n return fechaDeLaVisita.get();\n }", "LocalDate getDateOfBirth();", "public abstract java.lang.String getFecha_inicio();", "public Date getFecRegistro() {\n return fecRegistro;\n }", "public Date getCreacion() {\r\n return creacion;\r\n }", "public String getNumeroPersona() {\n\t\treturn numeroPersona;\n\t}", "public String getBirthDate()\r\n\t{\r\n\t\treturn (bDate.MONTH + 1) + \"/\" + bDate.DATE + \"/\" + bDate.YEAR;\r\n\t}", "public Date getBirthDate();", "public Fecha getFecha() {\r\n return fecha;\r\n }", "public Date getDateOfBirth() {\n return dateOfBirth;\n }", "public boolean validarFechaNac() {\n\t\treturn fecha_nac != null;\n\t}", "public String getFechaModificacion() { return (this.fechaModificacion == null) ? \"\" : this.fechaModificacion; }", "public String getFechaModificacion() { return (this.fechaModificacion == null) ? \"\" : this.fechaModificacion; }", "public Date getFechaHasta()\r\n/* 174: */ {\r\n/* 175:302 */ return this.fechaHasta;\r\n/* 176: */ }", "private String leerFecha() {\n\t\ttry {\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"YYYY/MM/dd\");\n\t\t\treturn sdf.format(txtFecha.getDate());\n\t\t} catch (Exception e) {\n\t\t\tJOptionPane.showMessageDialog(this, \"Seleccione una fecha válida\", \"Aviso\", 2);\n\t\t\treturn null;\n\t\t}\n\t}", "public Fecha getFecha() {\n\t\treturn mFecha;\n\t}", "public static String getFechaActual() {\n Date ahora = new Date();\n SimpleDateFormat formateador = new SimpleDateFormat(\"yyyy-MM-dd\");\n return formateador.format(ahora);\n }", "public Date getDataCreazione() {\n\t\treturn dataCreazione;\n\t}", "public LocalDate getFecha() {\n\t\treturn fecha;\n\t}", "public java.lang.String getCodigo_agencia();", "public Date getDateOfBirth() {\n\t\treturn dateOfBirth;\n\t}", "public Date getBirthday();", "public LocalDate GetFechaUltimoCambio() throws RemoteException;", "public String getBirthDate() {\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tif (jPanelFormClient.birthdayDateChooser.getDate() != null)\r\n\t\t\treturn sdf.format(jPanelFormClient.birthdayDateChooser.getDate());\r\n\t\treturn null;\r\n\t}", "public String getDateOfBirth() {\r\n\t\tString year = Integer.toString(datePicker.getModel().getYear());\r\n\t\tString month = Integer.toString(datePicker.getModel().getMonth()+1);\r\n\t\tString day = Integer.toString(datePicker.getModel().getDay());\r\n\t\tString date = year+\"-\"+month+\"-\"+day;\r\n\t\treturn date;\r\n\t}", "public String getAccessionDeaccessionToDate() {\n return accessionDeaccessionToDate;\n }", "public String getDateOfBirth(){\n return(this.dateOfBirth);\n }", "public java.util.Date getPatientBirthDate(){\n\t\treturn patientBirthDate;\n\t}", "public Date getFechaAutorizacionGastoExpediente() {\r\n return fechaAutorizacionGastoExpediente;\r\n }", "public String getDate_of_Birth() {\n\t\treturn Date_of_Birth;\n\t}", "public Date getDateOfBirth() {\n return getDate(DATE_OF_BIRTH);\n }", "public Date getModificacao() {\n\n\t\treturn this.modificacao;\n\t}", "public java.util.Calendar getFecha()\r\n {\r\n return this.fecha;\r\n }", "public Date getBirthdate() {\r\n return birthdate;\r\n }", "public String getFecha_Venta() {\n return fecha_Venta;\n }", "public Date getBirth_date() {\n return birth_date;\n }", "public String getDateOfBirth(){\n\t\treturn dateOfBirth;\n\t}", "public LocalDate getDato() {\n\t\treturn dato;\n\t}", "Optional<Date> getBirthdate();", "public String getDataNascimentoString() {\r\n\r\n\t\tSimpleDateFormat data = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\r\n\t\treturn data.format(this.dataNascimento.getTime());\r\n\r\n\t}", "public String getBirthdate() {\r\n return birthdate;\r\n }", "public String getNacionalidade() {\n return nacionalidade;\n }", "private java.sql.Date obtenerFechaEnSQL(JXDatePicker fecha) {\n Calendar cal = Calendar.getInstance();\n cal.setTime(fecha.getDate());\n int year = cal.get(Calendar.YEAR) - 1900; //PORQUE PUTAS\n int month = cal.get(Calendar.MONTH);\n int day = cal.get(Calendar.DAY_OF_MONTH);\n java.sql.Date sqlDate;\n\n sqlDate = new java.sql.Date(year, month, day);\n return sqlDate;\n }", "public String getAcronimo() {\n return acronimo;\n }", "public String getEstadoPersona() { return (this.estadoPersona == null) ? \"\" : this.estadoPersona; }", "public Date getBirthdate() {\n return birthdate;\n }", "public java.lang.String getBirth_date() {\n return birth_date;\n }", "public java.util.Date getFechaModificacion() {\n\t\treturn this.fechaModificacion;\n\t}", "public Date getDataConsegna() {\n\t\t\treturn dataConsegna;\n\t\t}", "public Date getfPeticion() {\r\n return fPeticion;\r\n }", "public Date getBirthdate()\n {\n return birthdate;\n }", "public String getBirthdate() {\n return birthdate;\n }", "public LocalDate getDateOfBirth() {\n\t\treturn dateofbirth;\n\t}", "public static int getYears(Date fechaNacimiento) {\n\n\t\tCalendar fechaActual = Calendar.getInstance();\n\t\tint hoyDia = fechaActual.get(Calendar.DAY_OF_YEAR);\n\n\t\tCalendar nacimiento = Calendar.getInstance();\n\n\t\tnacimiento.setTime(fechaNacimiento);\n\t\tint nacimientoDia = nacimiento.get(Calendar.DAY_OF_YEAR);\n\n\t\t// Todavía no ha cumplido los años\n\t\tif (nacimientoDia - hoyDia < 0)\n\t\t\treturn fechaActual.get(Calendar.YEAR)\n\t\t\t\t\t- nacimiento.get(Calendar.YEAR) - 1;\n\t\telse\n\t\t\t// Ya ha cumplido los años\n\t\t\treturn fechaActual.get(Calendar.YEAR)\n\t\t\t\t\t- nacimiento.get(Calendar.YEAR);\n\n\t}", "public String getFechaFinal(){\n\n\t\treturn campoFinal.getText();\n\n\t}", "public Date getAlta() { return alta; }", "public String getNacionalidad(){\n\t\treturn nacionalidad;\n\t}", "public String getFechaInsercion() { return (this.fechaInsercion == null) ? \"\" : this.fechaInsercion; }", "public String getFechaInsercion() { return (this.fechaInsercion == null) ? \"\" : this.fechaInsercion; }", "@JsonProperty(\"dataCadastro\")\n\tpublic Date getDataCadastro() {\n\t\treturn dataCadastro;\n\t}", "@Override\r\n\tpublic String calculerDonnee() {\n\t\tif (this.quest.getIdPersonne() == null) {\r\n\t\t\tSystem.err\r\n\t\t\t\t\t.println(\"Il n'y a pas de personne associé qu questionnaire, comment voulez vous calculer son age?\");\r\n\t\t\treturn \"-1 idPersonne inconnu\";\r\n\t\t} else {\r\n\t\t\tString[] donnee = GestionDonnee.getInfoPersonne(this.quest\r\n\t\t\t\t\t.getIdPersonne());\r\n\t\t\t// System.err.println(\"donnée : \"+donnee[0]+\" : \"+donnee[1]+\" : \"+donnee[2]);\r\n\r\n\t\t\tDate datenaissance = new Date(donnee[2]);\r\n\t\t\t// System.out.println(\"date actuelle : \"+new\r\n\t\t\t// java.sql.Date(System.currentTimeMillis()).toString());\r\n\t\t\tString temp[] = new java.sql.Date(System.currentTimeMillis())\r\n\t\t\t\t\t.toString().split(\"-\");\r\n\t\t\tDate dateActuelle = new Date(Integer.parseInt(temp[2]),\r\n\t\t\t\t\tInteger.parseInt(temp[1]), Integer.parseInt(temp[0]));\r\n\t\t\t// System.out.println(dateActuelle.annee);\r\n\t\t\t// System.out.println(\"age : \"+datenaissance.calculerAge(dateActuelle)+\"------------------------------------\");\r\n\t\t\treturn datenaissance.calculerAge(dateActuelle).toString();\r\n\r\n\t\t}\r\n\r\n\t}", "public Timestamp getFechaReserva() {\n return this.fechaReserva.get();\n }", "@JsonProperty( \"dateOfBirth\" )\n\tpublic Date getDateOfBirth()\n\t{\n\t\treturn m_dateOfBirth;\n\t}" ]
[ "0.7735891", "0.6874431", "0.64874744", "0.64701724", "0.6164666", "0.6160791", "0.61385685", "0.61175746", "0.61121154", "0.6102117", "0.6099769", "0.6084251", "0.60555106", "0.60476696", "0.604061", "0.60070145", "0.5957771", "0.594869", "0.58945066", "0.5869273", "0.5865915", "0.5837341", "0.58204424", "0.5808991", "0.58028245", "0.5801208", "0.5770357", "0.5719345", "0.5715212", "0.57099044", "0.5708179", "0.570324", "0.5701788", "0.5701486", "0.5699637", "0.56936413", "0.5691326", "0.5677024", "0.5669136", "0.566763", "0.5662439", "0.5658251", "0.5658103", "0.56521", "0.5651888", "0.56482315", "0.56464106", "0.56428576", "0.5636399", "0.5636399", "0.5626803", "0.56234723", "0.56231564", "0.56224936", "0.56203324", "0.56163764", "0.56061214", "0.5585206", "0.55765504", "0.55737746", "0.5561017", "0.55477566", "0.5547359", "0.55423605", "0.5541631", "0.5536896", "0.55368114", "0.5530686", "0.55207264", "0.551235", "0.55086577", "0.5507209", "0.55000407", "0.5496764", "0.54966414", "0.5493153", "0.5478535", "0.5468916", "0.5466067", "0.5458163", "0.5455549", "0.5452379", "0.54507196", "0.54460466", "0.5444459", "0.54398865", "0.54355043", "0.54344016", "0.54215276", "0.5421004", "0.5413734", "0.5407142", "0.54069835", "0.54062766", "0.5385784", "0.5385784", "0.53774697", "0.53738713", "0.5370332", "0.5367152" ]
0.6656307
2
This method was generated by Apache iBATIS ibator. This method sets the value of the database column cementerio.persona.fecha_nacimiento
public void setFechaNacimiento(Date fechaNacimiento) { this.fechaNacimiento = fechaNacimiento; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFechaNacimiento(Date fechaNacimiento)\r\n/* 138: */ {\r\n/* 139:252 */ this.fechaNacimiento = fechaNacimiento;\r\n/* 140: */ }", "public Date getFecha_nacimiento() {\r\n\t\tDate result=null;\r\n\t\ttry {\r\n\t\t DateFormat df = new SimpleDateFormat(\"dd-MM-yyyy\");\r\n\t\t \r\n\t\t\tresult = df.parse(calendario.getDia()+\"-\"+calendario.getMes()+\"-\"+calendario.getAno());\r\n\r\n\t\t} catch (ParseException e) {\r\n\t\t\tSystem.out.println(\"Fecha incorrecta\");\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\t\treturn result;\r\n\t}", "public void setFechaPresentacion(es.gob.agenciatributaria.www2.static_files.common.internet.dep.aplicaciones.es.aeat.ssii.fact.ws.SuministroInformacion_xsd.RangoFechaPresentacionType fechaPresentacion) {\r\n this.fechaPresentacion = fechaPresentacion;\r\n }", "public void setFechaHasta(Date fechaHasta)\r\n/* 179: */ {\r\n/* 180:312 */ this.fechaHasta = fechaHasta;\r\n/* 181: */ }", "@Override\n public void setFecha(java.util.Date fecha) {\n _partido.setFecha(fecha);\n }", "public void setFechaNacim(Date fechaNacim) {\r\n this.fechaNacim = fechaNacim;\r\n }", "public void setFechaconsulta(Date fechaconsulta) {\r\n this.fechaconsulta = fechaconsulta;\r\n }", "public void setFechaBajaHasta(Date fechaBajaHasta) {\r\n\t\tthis.fechaBajaHasta = fechaBajaHasta;\r\n\t}", "public void setFecha(Fecha fecha) {\r\n this.fecha = fecha;\r\n }", "public void setCreacion(Date creacion) {\r\n this.creacion = creacion;\r\n }", "public void setFechaCreacion(Date fechaCreacion) {\r\n this.fechaCreacion = fechaCreacion;\r\n }", "public void setFecha(java.util.Calendar fecha)\r\n {\r\n this.fecha = fecha;\r\n }", "public void setFechaAltaHasta(Date fechaAltaHasta) {\r\n\t\tthis.fechaAltaHasta = fechaAltaHasta;\r\n\t}", "public Date getFechaNacimiento() {\r\n\t\treturn fechaNacimiento;\r\n\t}", "Date getFechaNacimiento();", "public void setFECHAFORMALIZ(int value) {\n this.fechaformaliz = value;\n }", "public void setFechaRegistro(java.util.Date fechaRegistro1) {\n\t\tthis.fechaRegistro = fechaRegistro1;\n\n\t}", "private void fechaActual() {\r\n\t\tDate date = new Date();\r\n\t\tSimpleDateFormat sm = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\r\n\t\t// Formateo de Fecha para mostrar en la vista - (String)\r\n\t\tsetFechaCreacion(sm.format(date.getTime()));\r\n\t\t// Formateo de Fecha campo db - (Date)\r\n\t\ttry {\r\n\t\t\tnewEntidad.setFechaCreacion(sm.parse(getFechaCreacion()));\r\n\t\t} catch (ParseException 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}", "public Date getFechaBajaHasta() {\r\n\t\treturn fechaBajaHasta;\r\n\t}", "public void setBirthDate(Date birthDate);", "@Override public void realizarCobro(Persona persona){\n\tpersona.cuenta.retiro(120);\n }", "public void setDtRegistro(int dtRegistro) {\n this.dtRegistro = dtRegistro;\n }", "void setBirthDate(Date birthDate);", "public void setFechaDesde(Date fechaDesde)\r\n/* 169: */ {\r\n/* 170:293 */ this.fechaDesde = fechaDesde;\r\n/* 171: */ }", "public void setFechaCompra() {\n LocalDate fecha=LocalDate.now();\n this.fechaCompra = fecha;\n }", "public void setBirthday(Date birthday);", "public void setFecha(String fecha) {\r\n\t\tthis.fecha = fecha;\r\n\t}", "private void actualizarNombre(Persona persona){\n \n String nombre=IO_ES.leerCadena(\"Inserte el nombre\");\n persona.setNombre(nombre);\n }", "public void setFechaEntrega(Timestamp fechaEntrega) {\n this.fechaEntrega.setValue(fechaEntrega);\n }", "public void setFechaModificacion(String p) { this.fechaModificacion = p; }", "public void setFechaModificacion(String p) { this.fechaModificacion = p; }", "public Date getFechaconsulta() {\r\n return fechaconsulta;\r\n }", "public void setFecha(LocalDate fecha) {\n\t\tthis.fecha = fecha;\n\t}", "public Date getNascimento() {\n return this.NASCIMENTO;\n }", "Employee setBirthdate(Date birthdate);", "public boolean validarFechaNac() {\n\t\treturn fecha_nac != null;\n\t}", "public abstract void setFecha_inicio(java.lang.String newFecha_inicio);", "public void setDataConsegna(Date dataConsegna) {\n\t\t\tthis.dataConsegna = dataConsegna;\n\t\t}", "@Test\n\tpublic void testSetFecha2(){\n\t\tPlataforma.logout();\n\t\tPlataforma.login(Plataforma.alumnos.get(0).getNia(), Plataforma.alumnos.get(0).getPassword());\n\t\tLocalDate fin = Plataforma.fechaActual.plusDays(10);\n\t\tLocalDate ini = Plataforma.fechaActual.plusDays(2);\n\t\tassertFalse(ej1.setFechaFin(fin));\n\t\tassertFalse(ej1.setFechaIni(ini));\n\t}", "public void setDataNascimento(Calendar dataNascimento) {\r\n\t\tthis.dataNascimento = dataNascimento;\r\n\t}", "public void setValor(Date novoValor){\r\n\t\t\ttry {\r\n\t\t\t\tDateDocument doc = (DateDocument) getDocument();\r\n\t\t\t\tdoc.getDateFormat().parse(getText(0, doc.getLength()));\r\n\t\t\t\tsetText(doc.getDateFormat().format(novoValor));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "public Date getFechaNacim() {\r\n return fechaNacim;\r\n }", "public void setFechaAutorizacionGastoExpediente(Date fechaAutorizacionGastoExpediente) {\r\n this.fechaAutorizacionGastoExpediente = fechaAutorizacionGastoExpediente;\r\n }", "public void setFecha(String Fecha) {\n this.Fecha = Fecha;\n }", "public void setFiNgaytao(Date fiNgaytao) {\n this.fiNgaytao = fiNgaytao;\n }", "@Test\n\tpublic void testSetFecha7(){\n\t\tPlataforma.closePlataforma();\n\t\t\n\t\tfile = new File(\"./data/plataforma\");\n\t\tfile.delete();\n\t\tPlataforma.openPlataforma();\n\t\tPlataforma.login(\"1\", \"contraseniaprofe\");\n\t\t\n\t\tPlataforma.setFechaActual(Plataforma.fechaActual.plusDays(2));\n\t\tej1.responderEjercicio(nacho, array);\n\t\t\t\t\n\t\tLocalDate fin = Plataforma.fechaActual.plusDays(10);\n\t\tLocalDate ini = Plataforma.fechaActual.plusDays(3);\n\t\tassertTrue(ej1.setFechaFin(fin));\n\t\tassertFalse(ej1.setFechaIni(ini));\n\t}", "public void setProformaDate (java.util.Date proformaDate) {\n\t\tthis.proformaDate = proformaDate;\n\t}", "public Date getFechaAltaHasta() {\r\n\t\treturn fechaAltaHasta;\r\n\t}", "void setDateOfBirth(LocalDate dateOfBirth);", "public void setFecRegistro(Date fecRegistro) {\n this.fecRegistro = fecRegistro;\n }", "public void setFecha_Venta(String fecha_Venta) {\n this.fecha_Venta = fecha_Venta;\n }", "public void setfPeticion(Date fPeticion) {\r\n this.fPeticion = fPeticion;\r\n }", "public void setTipoFecha(int tipoFecha)\n {\n tipFecha=tipoFecha;\n }", "public void setBirthdate(Date birthdate) {\r\n this.birthdate = birthdate;\r\n }", "public LocalDate getDtNascimento() {\n\t\treturn dtNascimento;\n\t}", "public LocalDate getNascimento() {\r\n\t\treturn nascimento;\r\n\t}", "public void setBirthdate(Date birthdate)\n {\n this.birthdate = birthdate;\n }", "public void modificarEstadoCuota2(CuotaObject cuota) throws SQLException, ParseException \r\n {\r\n PreparedStatement prepStmt = null;\r\n\r\n String insertStatement = \"UPDATE FINANCIADO_PAGOS SET ESTADO=?,FECHA=? where IDRUBRO=?\";\r\n \r\n prepStmt = con.prepareStatement(insertStatement);\r\n \r\n prepStmt.setString(1, cuota.getEstado());\r\n \r\n \r\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n Date date1 = formatter.parse(cuota.getFecha());\r\n java.sql.Date datetmp = new java.sql.Date(date1.getTime());\r\n \r\n prepStmt.setDate(2, datetmp);\r\n \r\n \r\n prepStmt.setString(3, cuota.getIdrubro());\r\n \r\n prepStmt.executeUpdate();\r\n if (prepStmt != null) {\r\n prepStmt.close();\r\n }\r\n }", "public Persona(String nombre, Date fechaNac, char sexo, double peso, double altura){\r\n\t\tthis.nombre=nombre;\r\n\t\tthis.fechaNac=fechaNac;\r\n\t\tthis.peso=peso;\r\n\t\tthis.altura=altura;\r\n\t\tthis.dni=generarDni();\r\n\t\tsetSexo(sexo); //Asigna el sexo realizando comprobacion\r\n\t}", "@javax.jdo.annotations.Column(allowsNull = \"false\")\n\t@MemberOrder(sequence = \"3\")\n\tpublic Date getFechaInicio() {\n\t\treturn this.fechaInicio;\n\t}", "public void setDataNascimentoFromSQL(Date dataNascimento) {\r\n\r\n\t\t// montando a data atrav�s do Calendar\r\n\t\tCalendar data = Calendar.getInstance();\r\n\t\tdata.setTime(dataNascimento);\r\n\t\tthis.dataNascimento = data;\r\n\r\n\t}", "public void fijarFecha(int d, int m, int a)\n {\n // put your code here\n dia.setValor(d);\n mes.setValor(m);\n año.setValor(a);\n }", "public void setGioBatDau(Date gioBatDau);", "public void setFechaPago(java.util.Calendar fechaPago) {\n this.fechaPago = fechaPago;\n }", "public String getFechaNacimiento() {\n return fechaNacimiento;\n }", "public void setFechaAltaDesde(Date fechaAltaDesde) {\r\n\t\tthis.fechaAltaDesde = fechaAltaDesde;\r\n\t}", "public void setDataCreazione(Date dataCreazione) {\n\t\tthis.dataCreazione = dataCreazione;\n\t}", "public void setFecha(java.sql.Timestamp newFecha);", "public Date getFechaNacimiento()\r\n/* 133: */ {\r\n/* 134:242 */ return this.fechaNacimiento;\r\n/* 135: */ }", "public void setFechaInsercion(String p) { this.fechaInsercion = p; }", "public void setFechaInsercion(String p) { this.fechaInsercion = p; }", "public abstract void setAcma_valor(java.lang.String newAcma_valor);", "public void setBirthdate(Date birthdate) {\n this.birthdate = birthdate;\n }", "public void setBirthDate(Date inBirthDate)\n {\n birthdate = inBirthDate;\n }", "public Persona(String nombre, Date fechaNac, char sexo){\r\n\t\tthis(nombre, fechaNac, sexo, 0, 0);\r\n\t}", "public java.util.Date getFechaRegistro() {\n\t\treturn this.fechaRegistro;\n\t}", "public void setDataCadastroCota(Date dataCadastroCota) {\n\t\tif(dataCadastroCota != null){\n\t\t\tthis.dataCadastroCota = new DateTimeDB(dataCadastroCota.getTime());\n\t\t} else{\n\t\t\tthis.dataCadastroCota = null;\t\n\t\t}\n\t}", "@Test\n\tpublic void testSetFecha8(){\n\t\tPlataforma.closePlataforma();\n\t\t\n\t\tfile = new File(\"./data/plataforma\");\n\t\tfile.delete();\n\t\tPlataforma.openPlataforma();\n\t\tPlataforma.login(\"1\", \"contraseniaprofe\");\n\t\t\n\t\tPlataforma.setFechaActual(Plataforma.fechaActual.plusDays(5));\n\t\tej1.enPlazo();\n\t\t\n\t\tassertEquals(ej1.getEstado(), EstadoEjercicio.TERMINADO);\n\t\t\t\t\n\t\tLocalDate fin = Plataforma.fechaActual.plusDays(6);\n\t\tLocalDate ini = Plataforma.fechaActual.plusDays(10);\n\t\tassertFalse(ej1.setFechaFin(fin));\n\t\tassertFalse(ej1.setFechaIni(ini));\n\t}", "public void setFechaInicio(final Date fechaInicio) {\n\t\tthis.fechaInicio = fechaInicio;\n\t}", "void setDadosDoacao(String date, String hora, String cpfDoador, String nomeDoador, String fator) {\n this.fator = fator;\n this.date = date;\n this.cpf = cpfDoador;\n this.nome = nomeDoador;\n this.hora = hora;\n }", "public void setBirth_date(Date birth_date) {\n this.birth_date = birth_date;\n }", "public void setBirth_date(Date birth_date) {\n this.birth_date = birth_date;\n }", "public es.gob.agenciatributaria.www2.static_files.common.internet.dep.aplicaciones.es.aeat.ssii.fact.ws.SuministroInformacion_xsd.RangoFechaPresentacionType getFechaPresentacion() {\r\n return fechaPresentacion;\r\n }", "@Override\n public java.util.Date getFecha() {\n return _partido.getFecha();\n }", "@Override\n\tpublic void setNgayTao(java.util.Date ngayTao) {\n\t\t_keHoachKiemDemNuoc.setNgayTao(ngayTao);\n\t}", "public void setJP_AcctDate (String JP_AcctDate);", "public void setFechaBajaDesde(Date fechaBajaDesde) {\r\n\t\tthis.fechaBajaDesde = fechaBajaDesde;\r\n\t}", "public void seteBirthday(Date eBirthday) {\n this.eBirthday = eBirthday;\n }", "public void setFecha_envio(java.sql.Timestamp newFecha_envio);", "public void setDob(Date dob) {\n this.dob = dob;\n }", "public void setAno( int ano ){\n this.ano = ano;\n }", "public abstract void setFecha_termino(java.lang.String newFecha_termino);", "public void setADate(final java.util.Date a) {\r\n this.aDate = a;\r\n }", "public void Inicializa_fecha() {\n\n\t\tfecha = (EditText) findViewById(R.id.fecha);\n\t\tfecha.setClickable(true);\n\t\tfecha.setOnClickListener(this);\n\n\t\tfinal Calendar c = Calendar.getInstance();\n\t\tyear = c.get(Calendar.YEAR);\n\t\tmonth = c.get(Calendar.MONTH);\n\t\tday = c.get(Calendar.DAY_OF_MONTH);\n\n\t}", "public abstract void setFecha_ingreso(java.sql.Timestamp newFecha_ingreso);", "public void asignarAutomovilPersona(){\r\n persona.setAutomovil(automovil);\r\n }", "public void setDataModifica(Date dataModifica) {\n\t\tthis.dataModifica = dataModifica;\n\t}", "public void setFechaImplementacionActividad(int IdActividad, String tipo) throws IOException{\n TipoActividad tipoActividad = TipoActividad.valueOf(tipo.toUpperCase());\n FechaImplementacion = new Date();\n if((fDatos.setFechaImplementacionActividad(FechaImplementacion, IdActividad, AccionSeleccionada.getId()))== -1){\n switch(tipoActividad){\n case CORRECTIVA->mostrarErrorCorrectiva(IdActividad);\n case PREVENTIVA->mostrarErrorPreventiva(IdActividad);\n default->mostrarErrorActividad(IdActividad);\n }\n }else{\n // recargar vista de seguimiento\n String url = FacesContext.getCurrentInstance().getExternalContext().getRequestContextPath();\n FacesContext.getCurrentInstance().getExternalContext().redirect(url+\"/Views/Acciones/General/SeguimientoAccion.xhtml?id=\"+AccionSeleccionada.getId());\n }\n }", "public void setBirthDate(GregorianCalendar newBirthDate)\r\n\t{\r\n\t\tbDate = newBirthDate;\r\n\t}", "public void setDob(Date dob) throws ConstraintViolationException {\n\t\tif (dob.before(DToolkit.MIN_DOB)) {\n\t\t\tthrow new ConstraintViolationException(DExCode.INVALID_DOB, dob);\n\t\t}\n\n\t\tthis.dob = dob;\n\t}" ]
[ "0.6840674", "0.6379519", "0.6254739", "0.6243148", "0.6120626", "0.6112775", "0.60473925", "0.6010348", "0.59898216", "0.5860005", "0.5859289", "0.58150303", "0.5796282", "0.578947", "0.5769919", "0.576537", "0.5749007", "0.5748726", "0.5652676", "0.5651371", "0.56481963", "0.56419826", "0.5641175", "0.56212354", "0.5593884", "0.55825514", "0.5577664", "0.556603", "0.55473113", "0.5535949", "0.5535949", "0.5535144", "0.5531984", "0.5520993", "0.551585", "0.5514707", "0.5514275", "0.55064327", "0.550227", "0.5497384", "0.5496106", "0.5484425", "0.54720634", "0.5471349", "0.5450615", "0.5443826", "0.54428905", "0.54365194", "0.54335374", "0.5429882", "0.54210633", "0.5420586", "0.5400489", "0.53993106", "0.5392874", "0.53921044", "0.5385396", "0.53696704", "0.53671664", "0.5365793", "0.53646123", "0.53586155", "0.5347541", "0.5347506", "0.53472954", "0.53366864", "0.53322935", "0.5327286", "0.53269523", "0.532627", "0.532627", "0.5323876", "0.53232133", "0.53074735", "0.5289608", "0.5283736", "0.5280532", "0.5279204", "0.5279059", "0.5273307", "0.5271048", "0.5271048", "0.526738", "0.5264164", "0.5259263", "0.5256143", "0.5253254", "0.52426255", "0.5237784", "0.52341163", "0.5233099", "0.5231583", "0.52313256", "0.52261335", "0.5216539", "0.52159137", "0.5209466", "0.5198921", "0.5186955", "0.51788735" ]
0.6233083
4
This method was generated by Apache iBATIS ibator. This method returns the value of the database column cementerio.persona.domicilio
public String getDomicilio() { return domicilio; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDomicilio() {\n return domicilio;\n }", "java.lang.String getDomicilio();", "public String getDomicilio(){\n return domicilio;\n }", "public void setDomicilio(String domicilio) {\n this.domicilio = domicilio;\n }", "public void setDomicilio(String domicilio) {\r\n\t\tthis.domicilio = domicilio;\r\n\t}", "void setDomicilio(java.lang.String domicilio);", "public String getDcpoNo() {\n return (String)getAttributeInternal(DCPONO);\n }", "public TRPEALTADOMICEVTY wrappAltaDomicilio(DomicilioTipoBean domicilio){\n\t\tMapper mapper = dozerBeanMapper;\n return mapper.map(domicilio, TRPEALTADOMICEVTY.class,\"altaDomicilioPersona\");\t\t\n\t}", "public Domaine getDomaine (){\r\n\t\treturn this.dm;\r\n\t}", "public StrColumn getPdbxDatabaseIdDOI() {\n return delegate.getColumn(\"pdbx_database_id_DOI\", DelegatingStrColumn::new);\n }", "public String getNumeroPersona() {\n\t\treturn numeroPersona;\n\t}", "org.apache.xmlbeans.XmlString xgetDomicilio();", "public String getDni() {\r\n\t\treturn dni;\r\n\t}", "public String getDni() {\n\t\treturn dni;\n\t}", "public String getDni() {\n\t\treturn dni;\n\t}", "public String getDNI(){\n return dni;\n }", "public String getPhoneNo() {\n return (String)getAttributeInternal(PHONENO);\n }", "public Number getIdbultoOri()\n {\n return (Number)getAttributeInternal(IDBULTOORI);\n }", "public String getTelefono() {\r\n\t\treturn telefono;\r\n\t}", "public String getTelefono()\r\n {\r\n return telefono;\r\n }", "public String getDia() {\n\t\treturn this.dia;\n\t}", "public String getTelefono() {\n return telefono;\n }", "public String getTelefono() {\n return telefono;\n }", "public java.lang.String getDsOcorrencia() {\n return dsOcorrencia;\n }", "public long getId_donacion() {\n\t\treturn id_donacion;\n\t}", "public String getIdContacto() {\r\n\t\treturn idContacto;\r\n\t}", "public String getDoctoroneCode() {\n return doctoroneCode;\n }", "public long getCedulaPersonaRecido() {\r\n\t\treturn cedulaPersonaRecive;\r\n\t}", "public String getTelefoneDonoItem() {\r\n\t\treturn this.emprestimoid.getTelefoneDonoItem();\r\n\t}", "public void setDominio(String p) { this.dominio = p; }", "public long getTelefono() {\r\n return telefono;\r\n }", "public java.lang.String getNumeroTelefono() {\n\t\treturn _telefonoSolicitudProducto.getNumeroTelefono();\n\t}", "public String getIdtipobulto()\n {\n return (String)getAttributeInternal(IDTIPOBULTO);\n }", "public Number getIdbulto()\n {\n return (Number)getAttributeInternal(IDBULTO);\n }", "public String getTelefono(){\n return telefono;\n }", "public int getNumero() {\n return dado1;\n }", "public java.lang.String getIdioma() {\n return idioma;\n }", "public DomicilioDTO createDomicilio(DomicilioDTO nDomicilio) throws LogicaRestauranteException \r\n {\r\n \tlogger.info(\"recibiendo solicitud de agregar un domicilio \" + nDomicilio);\r\n \t\r\n \tif ( nDomicilio.getId() != null ) \r\n {\r\n\t \tfor (DomicilioDTO domi : domicilios) \r\n {\r\n\t if (Objects.equals(domi.getId(), nDomicilio.getId()))\r\n {\r\n\t \tlogger.severe(\"Ya existe una domicilio con ese id\");\r\n\t throw new LogicaRestauranteException(\"Ya existe una domicilio con ese id\");\r\n\t }\r\n\t }\r\n\t \r\n \t} else \r\n {\r\n \t\tlogger.info(\"Generando id para un nuevo domicilio\");\r\n \t\tlong newId = 1;\r\n\t for (DomicilioDTO domi : domicilios) \r\n {\r\n\t if (newId <= domi.getId()){\r\n\t newId = domi.getId() + 1;\r\n\t }\r\n\t }\r\n\t nDomicilio.setId(newId);\r\n \t}\r\n \t\r\n \tlogger.info(\"agregando domicilio \" + nDomicilio);\r\n domicilios.add(nDomicilio);\r\n return nDomicilio;\r\n }", "public Domicilio(String calle, String numero, String localidad, String provincia) {\n this.calle = calle;\n this.numero = numero;\n this.localidad = localidad;\n this.provincia = provincia;\n }", "public int getPRDNO() {\n return prdno;\n }", "public String getContacto() {\r\n\t\treturn contacto;\r\n\t}", "public String returnPhoneNumber() {\n\t\treturn this.registration_phone.getAttribute(\"value\");\r\n\t}", "public int getPRDNO() {\n return PRDNO;\n }", "public String dameValor(String campo) {\n\t\t// TODO Auto-generated method stub\n\t\tString c=\"\";\n\t\n\t\tif (campo.equals(Constantes.ID_ISFICHA))\n\t\t{\n\t\t\tc=IDISFICHA;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_NOTAS))\n\t\t{\n\t\t\tc=NOTAS;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_ANOTACIONES))\n\t\t{\n\t\t\tc=ANOTACIONES;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_NOTAS_EJERCICIOS))\n\t\t{\n\t\t\tc=NOTAS_EJERCICIOS;\n\t\t}\n\t\treturn c;\n\t}", "public String getDomainCd() {\n return this.domainCd;\n }", "public long getPersonaId() {\n return personaId;\n }", "public List<DomicilioDTO> getDomicilios() throws LogicaRestauranteException \r\n {\r\n \tif (domicilios == null) {\r\n \t\tlogger.severe(\"Error interno: lista de domicilios no se encuentra.\");\r\n \t\tthrow new LogicaRestauranteException(\"Error interno: lista de domicilios no se encuentra.\"); \t\t\r\n \t}\r\n \t\r\n \tlogger.info(\"retornando todos los domicilios\");\r\n \treturn domicilios;\r\n }", "public String getPhone() {\r\n // Bouml preserved body begin 00040C82\r\n\t return phoneNumber;\r\n // Bouml preserved body end 00040C82\r\n }", "public String getNacionalidade() {\n return nacionalidade;\n }", "@Override\r\n\tpublic String getDNI() {\n\t\treturn dni;\r\n\t}", "public String getContacto() {\n return contacto;\n }", "public String getContacto() {\n return contacto;\n }", "public Dni getDni() {\n return dni;\n }", "public String dameValor(String campo) {\n\t\t// TODO Auto-generated method stub\n\t\tString c=\"\";\n\t\n\t\tif (campo.equals(Constantes.ID_HAS_ISHORARIO_IDISHORARIO))\n\t\t{\n\t\t\tc=ISHORARIO_IDISHORARIO;\n\t\t}\n\t\telse if (campo.equals(Constantes.ID_HAS_ISAULA_IDISAULA))\n\t\t{\n\t\t\tc=ISAULA_IDISAULA;\n\t\t}\n\t\telse if (campo.equals(Constantes.ISHORARIO_HAS_ISAULA_ISCURSO_IDISCURSO))\n\t\t{\n\t\t\tc=ISCURSO_IDISCURSO;\n\t\t}\n\t\t\n\t\treturn c;\n\t}", "@AutoEscape\n\tpublic String getTelefono();", "public String getTelefono() {\r\n\treturn telefono;\r\n}", "public PersonalNumber getPersonalNum() {\n\t\treturn personalNumber;\n\t}", "public String getPatientPhone() {\n return patientPhone;\n }", "public String getaPhone() {\n return aPhone;\n }", "public Number getPersonId() {\n return (Number)getAttributeInternal(PERSONID);\n }", "public String getDiaLibre() {\n return diaLibre;\n }", "public int getDbNAIC() {\r\n\t\treturn dbNAIC;\r\n\t}", "public Long getPersonaId();", "public int getIdContacto() {\r\n return idContacto;\r\n }", "public String getTelephone() {\n return (String) get(\"telephone\");\n }", "@Override\n\t@Field(offset=41, length=9, paddingChar='0', align=Align.RIGHT)\n\tpublic String getNossoNumero() {\n\t\treturn super.getNossoNumero();\n\t}", "public java.lang.String getContactPhoneNumber()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONTACTPHONENUMBER$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public IDado getDado() {\n\t\ttry {\r\n\t\t\treturn juego.getDado();\r\n\t\t} catch (RemoteException 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}", "public String getFixedPhone() {\n return fixedPhone;\n }", "public java.lang.String getDsCidade() {\n return dsCidade;\n }", "public String getCnicNo() {\n return (String)getAttributeInternal(CNICNO);\n }", "public String getCfdaNumber() {\n return cfdaNumber;\n }", "@AutoEscape\n\tpublic String getDni();", "@AutoEscape\n\tpublic String getNomDistrito();", "public java.lang.String getPeriodicidad() {\n return periodicidad;\n }", "public String getComentario( )\n\t{\n\t\treturn comentario;\n\t}", "public Long getDomain()\n\t{\n\t\treturn domain;\n\t}", "public String getDoctoroneName() {\n return doctoroneName;\n }", "public String getNacionalidad(){\n\t\treturn nacionalidad;\n\t}", "public String getComentario () {\n return comentario;\n }", "public String getTelefonoTI() {\n return this.telefonoTI;\n }", "public java.lang.String getNossoNumero() {\n return nossoNumero;\n }", "public String balar() {\r\n return this.SONIDO;\r\n }", "public String getAPELLIDONombreDelAlumno() {\r\n\t\tString nombre = \"SUREDA José\";\r\n\t\treturn nombre;\r\n\t}", "public String getIDAdulto() {\n return IDAdulto;\n }", "public String getCod_catedratico() {\n return cod_catedratico;\n }", "public String getNombrePersonaRecivido() {\r\n\t\treturn nombrePersonaRecivido;\r\n\t}", "@AutoEscape\n\tpublic String getIdPtoServicio();", "public String getDomainId() {\n return domain;\n }", "public java.lang.String getDsContrato() {\n return dsContrato;\n }", "java.lang.String getPhone();", "public java.lang.String getDID() {\r\n return DID;\r\n }", "public String getAcronimo() {\n return acronimo;\n }", "@Override\r\n\tpublic String getTipoPersona() {\n\t\treturn \"alumno del curso \" + curso + \" de \" + grupo + \" de \" + tipoEstudios ;\r\n\t\t\r\n\t}", "public String getDireccionPersonaRecive() {\r\n\t\treturn direccionPersonaRecive;\r\n\t}", "@Override\r\n\tpublic Dinero getDinero() {\n\t\treturn super.getDinero();\r\n\t}", "public String getId_ciudad() {\n return id_ciudad;\n }", "public String getIdTipoContacto() {\r\n\t\treturn idTipoContacto;\r\n\t}", "public List<Telefono> getTelefonos(String dni);", "public String getMobileNo() {\n return (String)getAttributeInternal(MOBILENO);\n }" ]
[ "0.76878107", "0.7516362", "0.73456734", "0.6611915", "0.65935504", "0.6265397", "0.59949905", "0.588007", "0.5749769", "0.56506664", "0.56373054", "0.5623454", "0.5612934", "0.5608468", "0.5608468", "0.55382556", "0.553343", "0.5529839", "0.55174303", "0.5507719", "0.55044496", "0.54913867", "0.54913867", "0.54830503", "0.54455423", "0.5410186", "0.5344135", "0.53288937", "0.53286684", "0.5292345", "0.5287801", "0.5286852", "0.5278152", "0.527716", "0.5260986", "0.5256108", "0.5255193", "0.5230865", "0.5229969", "0.52071285", "0.51982635", "0.5166251", "0.51658404", "0.51541835", "0.5153457", "0.51527035", "0.5149202", "0.5147788", "0.51476276", "0.51465875", "0.51425844", "0.51425844", "0.51381856", "0.51302457", "0.5125411", "0.5104597", "0.5104075", "0.50923306", "0.5089833", "0.50897527", "0.5088543", "0.50848496", "0.5077928", "0.50757706", "0.50697935", "0.5066557", "0.5063495", "0.50598884", "0.50556475", "0.5052448", "0.5040292", "0.50331473", "0.50306135", "0.5029733", "0.5022527", "0.5021386", "0.50162876", "0.5001486", "0.49863914", "0.49848175", "0.49821618", "0.49685967", "0.49668145", "0.49655938", "0.49651533", "0.4963592", "0.4962972", "0.49557534", "0.49504378", "0.49464044", "0.49402532", "0.49370798", "0.4928606", "0.49250492", "0.4924824", "0.4918934", "0.49181578", "0.49125808", "0.4910396", "0.49068022" ]
0.7687194
1
This method was generated by Apache iBATIS ibator. This method sets the value of the database column cementerio.persona.domicilio
public void setDomicilio(String domicilio) { this.domicilio = domicilio; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setDomicilio(java.lang.String domicilio);", "public void setDomicilio(String domicilio) {\n this.domicilio = domicilio;\n }", "public String getDomicilio() {\n return domicilio;\n }", "public String getDomicilio() {\r\n\t\treturn domicilio;\r\n\t}", "public String getDomicilio(){\n return domicilio;\n }", "void xsetDomicilio(org.apache.xmlbeans.XmlString domicilio);", "java.lang.String getDomicilio();", "public void setDominio(String p) { this.dominio = p; }", "public TRPEALTADOMICEVTY wrappAltaDomicilio(DomicilioTipoBean domicilio){\n\t\tMapper mapper = dozerBeanMapper;\n return mapper.map(domicilio, TRPEALTADOMICEVTY.class,\"altaDomicilioPersona\");\t\t\n\t}", "public Domicilio(String calle, String numero, String localidad, String provincia) {\n this.calle = calle;\n this.numero = numero;\n this.localidad = localidad;\n this.provincia = provincia;\n }", "public final void setDominio() {\r\n this.limite[0] = BigInteger.ZERO;\r\n this.limite[1] = this.primoGrande;\r\n }", "public void setTelefono(String telefono);", "public void setDni(String dni);", "public DomicilioDTO createDomicilio(DomicilioDTO nDomicilio) throws LogicaRestauranteException \r\n {\r\n \tlogger.info(\"recibiendo solicitud de agregar un domicilio \" + nDomicilio);\r\n \t\r\n \tif ( nDomicilio.getId() != null ) \r\n {\r\n\t \tfor (DomicilioDTO domi : domicilios) \r\n {\r\n\t if (Objects.equals(domi.getId(), nDomicilio.getId()))\r\n {\r\n\t \tlogger.severe(\"Ya existe una domicilio con ese id\");\r\n\t throw new LogicaRestauranteException(\"Ya existe una domicilio con ese id\");\r\n\t }\r\n\t }\r\n\t \r\n \t} else \r\n {\r\n \t\tlogger.info(\"Generando id para un nuevo domicilio\");\r\n \t\tlong newId = 1;\r\n\t for (DomicilioDTO domi : domicilios) \r\n {\r\n\t if (newId <= domi.getId()){\r\n\t newId = domi.getId() + 1;\r\n\t }\r\n\t }\r\n\t nDomicilio.setId(newId);\r\n \t}\r\n \t\r\n \tlogger.info(\"agregando domicilio \" + nDomicilio);\r\n domicilios.add(nDomicilio);\r\n return nDomicilio;\r\n }", "public void setTelefono(String aTelefono) {\n telefono = aTelefono;\n }", "public void setTelefono(String telefono)\r\n {\r\n this.telefono = telefono;\r\n }", "public void setDcpoNo(String value) {\n setAttributeInternal(DCPONO, value);\n }", "public void domicilioAgregar() {\r\n\t\tlog.info(\"Domicilio agregar \" + nuevoDomici.getDomicilio());\r\n\t\tboolean verifica = false;\r\n\t\tmensaje = null;\r\n\t\tnuevoDomici.setTbTipoCasa(objTipoCasaService.findTipoCasa(Tipocasanuevo));\r\n\t\tnuevoDomici.setDomicilio(domicilio);\r\n\t\tnuevoDomici.setReferencia(referencia);\r\n\t\tnuevoDomici.setTbUbigeo(objUbigeoService.findUbigeo(idUbigeo));\r\n\t\tlog.info(\"TIPO-CASA-NUEVO--->\"+nuevoDomici.getTbTipoCasa().getIdtipocasa());\r\n\t\tnuevoDomici.setNuevoD(1);\r\n\t\t//aqui ponfo el ID-Domicilio a la lista Domicilio temporalmente.\r\n\t\tnuevoDomici.setIddomiciliopersona(0);\r\n\t\tnuevoDomici.setTbEstadoGeneral(objEstadoGeneralService.findEstadogeneral(15));\r\n\t\t\r\n\t\tfor (int i = 0; i < DomicilioPersonaList.size(); i++) {\r\n\t\t\tlog.info(\" \"+ DomicilioPersonaList.get(i).getDomicilio() + \" \" + nuevoDomici.getDomicilio());\r\n\t\t\tif (DomicilioPersonaList.get(i).getDomicilio().equals(nuevoDomici.getDomicilio())) {\r\n\t\t\t\tverifica = false;\r\n\t\t\t\tmensaje = \"el Domicilio ya se encuentra registrado en la lista de domiclio cliente\";\r\n\t\t\t\tbreak;\r\n\t\t\t}else {\r\n\t\t\t\tverifica = true;\r\n\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\tif (DomicilioPersonaList.size() == 0) {\r\n\t\t\t\tverifica = true;\r\n\t\t\t\t}\r\n\t\t\tif (verifica) {\r\n\t\t\t\tnuevoDomici.setItem(\"Por Agregar\");\r\n\t\t\t\tDomicilioPersonaList.add(nuevoDomici);\r\n\t\t\t\tlog.info(\"se agrego \"+ nuevoDomici.getDomicilio());\r\n\t\t\t\t}\r\n\t\t\tif (mensaje != null) {\r\n\t\t\t\tmsg = new FacesMessage(FacesMessage.SEVERITY_FATAL,\r\n\t\t\t\tConstants.MESSAGE_ERROR_FATAL_TITULO, mensaje);\r\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\r\n\t\t\t\t}\r\n\t\t\tnuevoDomici = new DomicilioPersonaSie();\r\n\t\t}", "public void setTelefono(String telefono) {\n this.telefono = telefono;\n }", "public void setTelefono(String telefono) {\r\n\tthis.telefono = telefono;\r\n}", "public void setNumeroPersona(String numeroPersona) {\n\t\tthis.numeroPersona = numeroPersona;\n\t}", "public void setTelefono(String telefono) {\n\t\tthis.telefono.set(telefono);\n\t}", "public void asignarAutomovilPersona(){\r\n persona.setAutomovil(automovil);\r\n }", "public void setPhoneNo(String value) {\n setAttributeInternal(PHONENO, value);\n }", "public void setTelefono(Integer telefono) {\r\n this.telefono = telefono;\r\n }", "public void setPhone(String phone) {\r\n // Bouml preserved body begin 00041002\r\n\t this.phoneNumber = phone;\r\n // Bouml preserved body end 00041002\r\n }", "public void setDireccion(String direccion){\n if(direccion == null){\n throw new IllegalArgumentException(\"Direccion de domicilio igual a null\");\n }\n this.direccion = direccion;\n }", "public void setIdContacto(String idContacto) {\r\n\t\tthis.idContacto = idContacto;\r\n\t}", "public void setPhone(String phone);", "public void setPersonId(Number value) {\n setAttributeInternal(PERSONID, value);\n }", "public void setTelefono(long value) {\r\n this.telefono = value;\r\n }", "public void setDni(String dni) {\r\n\t\tthis.dni = dni;\r\n\t}", "public void setTelefono(String telefono) {\r\n\t\tthis.telefono = telefono;\r\n\t}", "public void setIdioma(java.lang.String idioma) {\n this.idioma = idioma;\n }", "public void setDni(String dni) {\n\t\tthis.dni = dni;\n\t}", "void setPhone(int phone);", "private void actualizarNombre(Persona persona){\n \n String nombre=IO_ES.leerCadena(\"Inserte el nombre\");\n persona.setNombre(nombre);\n }", "public void setaPhone(String aPhone) {\n this.aPhone = aPhone == null ? null : aPhone.trim();\n }", "public DomicilioDTO(DomicilioEntity domicilioEntity) {\r\n if (domicilioEntity != null) {\r\n this.id = domicilioEntity.getId();\r\n this.precio = domicilioEntity.getPrecio();\r\n this.idZona = domicilioEntity.getIdZona();\r\n \r\n }\r\n }", "public void set_phone(String Phone)\n {\n phone =Phone;\n }", "public void setPhone(String phonenum) {\n\t\tPHONE = phonenum;\n\t}", "public void setlado(int lado) {\r\n this.lado = lado;\r\n }", "public void setIdbultoOri(Number value)\n {\n setAttributeInternal(IDBULTOORI, value);\n }", "public void setDni(Dni dni) {\n this.dni = dni;\n }", "public void setNomDistrito(String nomDistrito);", "public void setTelefono(String telefono) {\r\n\t\tif(telefono.length() == 9){\r\n\t\tthis.telefono = telefono;\r\n\t\t}else{\r\n\t\t\tSystem.out.println(\"Error telefono\");\r\n\t\t}\r\n\t}", "public void setNumero(int numero) {\n this.dado1 = numero;\n }", "public void setDato(int dato) {\r\n this.dato = dato;\r\n }", "public void setFiLoaiDon(Long fiLoaiDon) {\n this.fiLoaiDon = fiLoaiDon;\n }", "public void setPersonaId(long value) {\n this.personaId = value;\n }", "public void setCedulaPersonaRecido(long cedulaPersonaRecido) {\r\n\t\tthis.cedulaPersonaRecive = cedulaPersonaRecido;\r\n\t}", "public void setContacto(String contacto) {\r\n\t\tthis.contacto = contacto;\r\n\t}", "public void setIdContacto(int aIdContacto) {\r\n idContacto = aIdContacto;\r\n }", "public void setDotaId(Number value) {\n setAttributeInternal(DOTAID, value);\n }", "public void setContacto(String contacto) {\n this.contacto = contacto;\n }", "public void setContacto(String contacto) {\n this.contacto = contacto;\n }", "public void setPhone(final String value)\n\t{\n\t\tsetPhone( getSession().getSessionContext(), value );\n\t}", "public void setPhone(final String value)\n\t{\n\t\tsetPhone( getSession().getSessionContext(), value );\n\t}", "public void setLaboratorio(String Laboratorio) {\n this.intento=true;\n this.laboratorio = Laboratorio;\n }", "public void setAnio(int p) { this.anio = p; }", "public void setPhone(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(PHONE_PROP.get(), value);\n }", "public void setIdDominioUrl(Integer idDominioUrl) {\n\t\tthis.idDominioUrl = idDominioUrl;\n\t}", "public void setServicioSRI(ServicioSRI servicioSRI)\r\n/* 106: */ {\r\n/* 107:125 */ this.servicioSRI = servicioSRI;\r\n/* 108: */ }", "public void setCodDistrito(String codDistrito);", "public void setIdtipobulto(String value)\n {\n setAttributeInternal(IDTIPOBULTO, value);\n }", "public synchronized void solicitaAtencionDomicilio() {\n while (!isDisponibleAtencionDomicilio) {\n try {\n wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n this.estado.solicitaAtencionDomicilio();\n this.setChanged();\n this.notifyObservers(this.estado.getFoto());\n notifyAll();\n }", "public abstract void setPhone1(String sValue);", "public void setPhone(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(PHONE_PROP.get(), value);\n }", "public void setCorreo(String aCorreo) {\r\n correo = aCorreo;\r\n }", "public void setTelephoneNumber(String newNumber)\r\n\t{\r\n\t\ttelephoneNumber = newNumber;\r\n\t}", "public void setPersonalNumber(String personalNumber) {\n\n PersonalNumber personalNumberEntered = new PersonalNumber(personalNumber);\n /*if(!personalNumberEntered.validID(personalNumber)) {\n throw new IllegalArgumentException(\"Personal number should be a 10 digit number\\n\");\n }*/\n this.personalNumber = personalNumberEntered;\n }", "public void setComentario (String val) {\n this.comentario = val;\n }", "public void setCorreo(String correo) {this.correo = correo;}", "public abstract void setPhone3(String sValue);", "public void setPhone(String phone)\r\n/* 46: */ {\r\n/* 47:58 */ this.phone = phone;\r\n/* 48: */ }", "public telefono(){\n this.telefono =\"00000000\";\n this.saldo = 0.0;\n this.marca= \"Sin Marca\";\n }", "public void setMobile_phone(Long mobile_phone);", "public abstract void setPhone2(String sValue);", "public void setDocId(Number value) {\n setAttributeInternal(DOCID, value);\n }", "public void setDocId(Number value) {\n setAttributeInternal(DOCID, value);\n }", "public void setDsOcorrencia(java.lang.String dsOcorrencia) {\n this.dsOcorrencia = dsOcorrencia;\n }", "public String getTelefono(){\n return telefono;\n }", "public void setCuenta(String cuenta) {\r\n this.cuenta = cuenta;\r\n }", "public String getTelefono()\r\n {\r\n return telefono;\r\n }", "public void setCedula(Integer cedula) {this.cedula = cedula;}", "public void setDoctoroneCode(String doctoroneCode) {\n this.doctoroneCode = doctoroneCode == null ? null : doctoroneCode.trim();\n }", "public void crearPersona(){\r\n persona = new Persona();\r\n persona.setNombre(\"Jose\");\r\n persona.setCedula(12345678);\r\n }", "@Test\r\n public void testSetTelefoneResidencial() {\r\n System.out.println(\"setTelefoneResidencial\");\r\n String telefoneResidencial = \"\";\r\n Integrante instance = new Integrante();\r\n instance.setTelefoneResidencial(telefoneResidencial);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "public String getDcpoNo() {\n return (String)getAttributeInternal(DCPONO);\n }", "public void setAnio(int anio){\r\n \r\n \r\n this.anio = anio;\r\n \r\n }", "@Override\n public void setPhone(java.lang.String phone) {\n _entityCustomer.setPhone(phone);\n }", "private void modificarPersona(PersonaDTO persona, Set<TelefonoDTO> telefonos, Set<DireccionDTO> direcciones,\n\t\t\tSet<CorreoElectronicoDTO> correos) throws CustomValidationException, CustomErrorException, Exception {\n\t\t//Recuperamos la persona\n\t\t//Verificamos cambio de DNI\n\t\tif (persona.getIdPersona() == null) {throw new CustomErrorException(CustomErrorException.ID_INEXISTENTE_PARA_MODIFICAR,this.getClass().getSimpleName());}\n\t\t\n\t\tPersonaDTO personaPersistente = obtenerPersona(persona.getIdPersona());\n\t\tif (!personaPersistente.getNroDni().equals(persona.getNroDni())) {\n\t\t\tif (gPersona.existePersonaPorDNI(persona.getNroDni())) {\n\t\t\t\tthrow new CustomValidationException(CustomValidationException.DNI_REPETIDO);\n\t\t\t};\n\t\t}\n\t\t\n\t\tSet<TelefonoDTO> nuevosTelefonos = new HashSet<TelefonoDTO>();\n\t\teliminarBorrados(telefonos,personaPersistente.getTelefonos());\n\t\tnuevosTelefonos.addAll(agregarNuevos(telefonos));\n\t\t//vuelvo a setear la lista en persona\n\t\tpersona.setTelefonos(null);\n\t\tSet <TelefonoDTO> telefonosPersona = new HashSet<TelefonoDTO>();\n\t\ttelefonosPersona.addAll(nuevosTelefonos);\n\t\tpersona.setTelefonos(telefonosPersona);\n\t\t\n\t\tSet<DireccionDTO> nuevasDirecciones = new HashSet<DireccionDTO>();\n\t\teliminarBorrados(direcciones, personaPersistente.getDirecciones());\n\t\tnuevasDirecciones.addAll(agregarNuevos(direcciones));\n\t\tpersona.setDirecciones(null);\n\t\tSet<DireccionDTO> direccionesPersona = new HashSet<DireccionDTO>();\n\t\tdireccionesPersona.addAll(nuevasDirecciones);\n\t\tpersona.setDirecciones(direccionesPersona); \n\t\t\n\t\tSet<CorreoElectronicoDTO> nuevosCorreos = new HashSet<CorreoElectronicoDTO>();\n\t\teliminarBorrados(correos, personaPersistente.getCorreos());\n\t\tnuevosCorreos.addAll(agregarNuevos(correos));\n\t\t//vuelvo a setear la lista en persona\n\t\tpersona.setCorreos(null);\n\t\tSet<CorreoElectronicoDTO> correosPersona = new HashSet<CorreoElectronicoDTO>();\n\t\tcorreosPersona.addAll(nuevosCorreos);\n\t\tpersona.setCorreos(correosPersona); \n\t\t\n\t\t// Llamo a modify para cerrar la operación;\n\t\tfor (TelefonoDTO t: telefonos) {\n\t\t\tt.setIdTelefono(modificarTelefono(Converter.toEntity(t))); \n\t\t}\n\t\t\n\t\tfor (DireccionDTO d: direcciones) {\n\t\t\td.setIdDireccion(modificarDireccion(Converter.toEntity(d)));\n\t\t}\n\t\t\n\t\tfor (CorreoElectronicoDTO c: correos) {\n\t\t\tc.setIdCorreoElectronico(modificarCorreoElectronico(Converter.toEntity(c)));\n\t\t}\n\t\t\n\t\tgPersona.modify(Converter.toEntity(persona));\n\t\t\n\t}", "public Domicilio() {\n }", "private void resetPersona() {\n\n persona.setDocumento(0);\n persona.setEmail(\"\");\n persona.setNombre(\"\");\n persona.setApellido(\"\");\n persona.setPassword(\"\");\n persona.setTelefono(0);\n persona.setFoto(\"\");\n \n }", "public String getTelefono() {\n return telefono;\n }", "public String getTelefono() {\n return telefono;\n }", "public void setIdPtoServicio(String idPtoServicio);", "public void setMobliephone(String mobliephone) {\n this.mobliephone = mobliephone;\n }", "public void setIdbulto(Number value)\n {\n setAttributeInternal(IDBULTO, value);\n }", "public void setCorreo(String correo) {\n\t\tthis.correo.set(correo);\n\t}" ]
[ "0.7767672", "0.74889", "0.6781505", "0.6779544", "0.6573301", "0.6266182", "0.6050092", "0.60343283", "0.58704394", "0.57337195", "0.56845355", "0.5647164", "0.5596186", "0.5525652", "0.5492863", "0.542779", "0.5322471", "0.5316399", "0.5302251", "0.5266071", "0.5238035", "0.5212655", "0.51957184", "0.5194884", "0.51906866", "0.51797646", "0.51607937", "0.5127048", "0.51269543", "0.51208633", "0.5120569", "0.5083893", "0.5055355", "0.503309", "0.5029882", "0.5023012", "0.50007576", "0.49903053", "0.4969028", "0.49689683", "0.49686387", "0.49663177", "0.49609974", "0.4958355", "0.49564138", "0.4935319", "0.4933062", "0.49315527", "0.4925103", "0.49218118", "0.49143684", "0.48884243", "0.48854974", "0.48851073", "0.48809922", "0.48809922", "0.48717052", "0.48717052", "0.48614573", "0.48531353", "0.48446384", "0.48330235", "0.48300576", "0.4820072", "0.48087355", "0.48045066", "0.4801617", "0.47861868", "0.47792026", "0.47788063", "0.477394", "0.4772713", "0.47687262", "0.47617194", "0.4761025", "0.47468808", "0.47365355", "0.47355777", "0.4735467", "0.4735467", "0.4725941", "0.4722849", "0.47225595", "0.47190085", "0.47172302", "0.47133", "0.47129247", "0.47129068", "0.47113237", "0.47057235", "0.47037226", "0.46966878", "0.46966827", "0.46963513", "0.46960387", "0.46960387", "0.46809825", "0.46791637", "0.46721825", "0.4671021" ]
0.7409752
2
This method was generated by Apache iBATIS ibator. This method returns the value of the database column cementerio.persona.poblacion
public String getPoblacion() { return poblacion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPoblacion(String poblacion) {\r\n\t\tthis.poblacion = poblacion;\r\n\t}", "public Long getIdPropietario(com.trascender.catastro.recurso.persistent.Parcela pParcela) throws Exception {\n\t\treturn this.getPropietario(pParcela).getIdPersona();\n\t}", "@Column(name = \"C_PUESTO\")\n public String getPuesto() {\n return puesto;\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic com.trascender.framework.recurso.persistent.Persona getPropietario(com.trascender.catastro.recurso.persistent.Parcela pParcela) throws Exception {\n\n\t\tList locListaPropietarios = pParcela.getTituloPropiedad().getListaRegistrosPropietarios();\n\t\t// if ((pParcela != null) && (pParcela.getIdParcela() != -1)) {\n\t\t// locListaPropietarios = Criterio\n\t\t// .getInstance(this.entityManager, RegistroPropietario.class)\n\t\t// .crearAlias(\"tituloPropiedad.parcela\", \"locParcela\")\n\t\t// .add(Restriccion.IGUAL(\"locParcela\", pParcela)).list();\n\t\t// }\n\n\t\tif((locListaPropietarios != null) && (!locListaPropietarios.isEmpty())) {\n\t\t\tRegistroPropietario locRegistroPropietario = (RegistroPropietario) locListaPropietarios.get(0);\n\n\t\t\treturn locRegistroPropietario.getPersona();\n\t\t}\n\n\t\treturn null;\n\n\t}", "public String getProdotto() {\r\n\t\treturn prodotto;\r\n\t}", "public SystemeAmendesInt.Personne getProprietaire() {\n return proprietaire;\n }", "@Column(name = \"C_PRIMER_APELLIDO\")\n public String getPrimerApellido() {\n return primerApellido;\n }", "@Override\n public Propiedad getPropiedadId(String pNumFinca) throws SQLException {\n ArrayList<Propiedad> resultado = new ArrayList<Propiedad>();\n resultado = (ArrayList<Propiedad>) bdPropiedad.selectQuery(\"SELECT * FROM PROPIEDAD WHERE \"\n + \"ID_PROPIEDAD = '\" + pNumFinca + \"'\");\n Propiedad propiedadSeleccionada = resultado.get(0);\n return propiedadSeleccionada;\n }", "public String getProblema() {\n return problema;\n }", "public String getComentario( )\n\t{\n\t\treturn comentario;\n\t}", "public Long getPersonaId();", "public String getPalo() {\n\t\treturn this.palo;\r\n\t}", "public String getCUSU_APELLIDOS(){\n\t\treturn this.myCusu_apellidos;\n\t}", "public long getPersonaId() {\n return personaId;\n }", "public String getComentario () {\n return comentario;\n }", "@Override\r\n\tpublic String getTipoPersona() {\n\t\treturn \"alumno del curso \" + curso + \" de \" + grupo + \" de \" + tipoEstudios ;\r\n\t\t\r\n\t}", "public Persona buscarPersona(String cedula) {\n\t\treturn null;\r\n\t}", "public java.lang.String getCodigo_pcom();", "public java.lang.String getProformaNo () {\n\t\treturn proformaNo;\n\t}", "public es.gob.agenciatributaria.www2.static_files.common.internet.dep.aplicaciones.es.aeat.ssii.fact.ws.SuministroInformacion_xsd.IDFacturaExpedidaBCType getClavePaginacion() {\r\n return clavePaginacion;\r\n }", "public BuscarPersonaDTO getPersonaPapeleta(Integer personaId,\n\t\t\tInteger papeletaId, String esInfractor) throws Exception;", "public String getPlaca() {\n return placa;\n }", "public String getPlaca() {\n return placa;\n }", "public java.lang.String getProyecto() {\n return proyecto;\n }", "public java.lang.String getProyecto() {\n return proyecto;\n }", "public java.lang.String getProrrataAnualDefinitiva() {\r\n return prorrataAnualDefinitiva;\r\n }", "public Patient getProprietaire() {\n\t\treturn proprietaire;\n\t}", "public Pessoa getPessoa() {\r\n\t\treturn pessoa;\r\n\t}", "public String getPalo() {\n\t\treturn palo;\n\t}", "public String getApellido(){\n return this.apellido;\n }", "public abstract co\n\t\t.com\n\t\t.telefonica\n\t\t.atiempo\n\t\t.ejb\n\t\t.eb\n\t\t.Estado_ps_peticionLocal getEstado_ps_peticion();", "public Individuo selectPadre(Poblacion poblacion) {\n\t\tPoblacion torneo = new Poblacion(this.tamTorneo);\n\n\t\t// se agregan los individuos al torneo\n\t\tpoblacion.shuffle();\n\t\tfor (int i = 0; i < this.tamTorneo; i++) {\n\t\t\tIndividuo resulIndividuo = poblacion.getIndividuo(i);\n\t\t\ttorneo.setIndividuo(i, resulIndividuo);\n\t\t}\n\n\t\t// se retorna al mejor\n\t\treturn torneo.getFittest(0);\n\t}", "@JsonProperty(\"anoProcesso\")\n\tpublic Long getAnoProcesso() {\n\t\treturn anoProcesso;\n\t}", "@Column(name = \"C_SEGUNDO_APELLIDO\")\n public String getSegundoApellido() {\n return segundoApellido;\n }", "@Override\n\t@Field(offset=214, length=8, paddingChar=' ', align=Align.LEFT)\n\tpublic String getMotivoOcorrencia() {\n\t\treturn super.getMotivoOcorrencia();\n\t}", "public String getAutorizacionCompleto()\r\n/* 184: */ {\r\n/* 185:316 */ return this.establecimiento + \"-\" + this.puntoEmision + \" \" + this.autorizacion;\r\n/* 186: */ }", "public java.lang.Double getMontoPropinaAnulacion() {\r\n return montoPropinaAnulacion;\r\n }", "public Polygon obtenerPoligono(Personaje personaje) {\n Field field;\n try {\n field = personaje.getClass().getDeclaredField(\"pol\");\n field.setAccessible(true);\n return (Polygon) field.get(personaje);\n } catch (NoSuchFieldException | IllegalAccessException e) {\n Gdx.app.debug(\"DEBUG\", \"[ERROR Poligono] \" + e.getMessage());\n }\n return null;\n }", "public String getNombreCompleto();", "public String getPassageiro2() {\r\n\r\n if (passageiro == null) {\r\n return \"Poltrona Vazia\";\r\n } else {\r\n return passageiro.getNome();\r\n }\r\n }", "public int getCodPessoa() {\r\n\t\treturn this.codPessoa;\r\n\t}", "public String getRagione_sociale() {\r\n return ragione_sociale;\r\n }", "String getPrimeiroNome();", "public ArrayList<ProdottoOrdineBean> getProdotti() {\n\t\t\treturn prodotti;\n\t\t}", "public String getPuntoEmision()\r\n/* 124: */ {\r\n/* 125:207 */ return this.puntoEmision;\r\n/* 126: */ }", "public String getNumeroPersona() {\n\t\treturn numeroPersona;\n\t}", "public final String getNombrePantalla() {\r\n\t\treturn nombrePantalla;\r\n\t}", "public String getPoruka() {\r\n\t\t//2.greska \"poruka\"\r\n\treturn poruka;\r\n\t}", "public String getNombreCompleto() {\r\n return nombreCompleto;\r\n }", "public int getPantallaApunta() {\r\n return this.iPantallaApunta;\r\n }", "private PersonaEnvio buscaPersonaPorNombre(PersonaEnvio personaRequest) throws NotariaException{\n\t\tPersonaEnvio respuesta = new PersonaEnvio();\n\t\tString nombrePersona = personaRequest.getNombrePersona().replaceAll(\"\\\\s+\", \" \").trim();\n\t\tList<DatoBusquedaPersona> lista = personaBo.findPersonaByName(nombrePersona);\n\t\tif (lista != null) {\n\t\t\trespuesta.setResultados(new ArrayList<DatoBusquedaPersona>(\n\t\t\t\t\tlista));\n\t\t\trespuesta.setNumeroResultados(lista.size());\n\t\t\trespuesta.setEstatus(\"Búsqueda correcta.\");\n\t\t\trespuesta.setExito(true);\n\t\t\treturn respuesta;\n\t\t} else {\n\t\t\trespuesta.setResultados(null);\n\t\t\trespuesta.setNumeroResultados(0);\n\t\t\trespuesta.setEstatus(\"No se encontraron resultados.\");\n\t\t\trespuesta.setExito(false);\n\t\t\treturn respuesta;\n\t\t}\n\t}", "@Override\n\tpublic List<String[]> popolaritaAttivitaCompleto() throws DAOException{\n\t\t\n\t\tList<String[]> risultato = null;\n\t\tConnection connection = null;\n\t\tPreparedStatement statement = null;\n\t\tResultSet resultSet = null;\n\t\tString[] stringa = null;\n\t\t\n\t\ttry {\n\t\t\trisultato = new ArrayList<String[]>();\n\t\t\tconnection = DataSource.getInstance().getConnection();\n\t\t\tstatement = connection.prepareStatement(\"SELECT NOME, COUNT2/COUNT1*100 AS PERC FROM (SELECT COUNT(*) AS COUNT1, ID_ATTIVITA FROM GRUPPO GROUP BY ID_ATTIVITA) TAB1 INNER JOIN (SELECT COUNT(*) AS COUNT2, ID_ATTIVITA FROM GRUPPO WHERE COMPLETO = 1 GROUP BY ID_ATTIVITA) TAB2 ON TAB1.ID_ATTIVITA = TAB2.ID_ATTIVITA INNER JOIN ATTIVITA ON TAB2.ID_ATTIVITA = ATTIVITA.ID ORDER BY PERC DESC\");\n\t\t\tresultSet = statement.executeQuery();\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tstringa = new String[3];\n\t\t\t\tstringa[0] = String.valueOf(resultSet.getString(1));\n\t\t\t\tstringa[1] = String.valueOf(BigDecimal.valueOf(resultSet.getDouble(2)).setScale(2, RoundingMode.HALF_UP).doubleValue());\n\t\t\t\tstringa[2] = String.valueOf(BigDecimal.valueOf(100-resultSet.getDouble(2)).setScale(2, RoundingMode.HALF_UP).doubleValue());\n\n\t\t\t\trisultato.add(stringa);\n\t\t\t}\n\t\t} catch (SQLException | DAOException e) {\n\t\t\tthrow new DAOException(\"ERRORE popolaritaAttivitaCompleto utenteAdmin\" + e.getMessage(), e);\n\t\t} finally {\n\t\t\tDataSource.getInstance().close(resultSet);\n\t\t\tDataSource.getInstance().close(statement);\n\t\t\tDataSource.getInstance().close(connection);\n\t\t}\n\t\t\n\t\treturn risultato;\n\t\t\n\t}", "public String getIdProcuratore() {\n return idProcuratore;\n }", "@Column(name = \"PLO\"\r\n\t\t, unique = false, nullable = true\r\n\t\t, updatable = true, insertable = true)\r\n\t@Override\r\n\tpublic String getPlo() {\r\n\t\treturn this.plo;\r\n\t}", "public int getProfundidad() {\n return this.profundidad;\n }", "public List<BeanPantalla> getPantallas() {\n\t\treturn pantallas;\n\t}", "public Problema getProblemaAssociado() {\n return associacao.getProblemaAssociado();\n }", "public java.lang.String getOtorgante() {\n return otorgante;\n }", "public String getAPELLIDONombreDelAlumno() {\r\n\t\tString nombre = \"SUREDA José\";\r\n\t\treturn nombre;\r\n\t}", "public java.lang.Long getPeti_numero();", "public java.lang.Long getPeti_numero();", "public java.lang.String getNombreCompleto()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NOMBRECOMPLETO$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "@Override\n public ArrayList<Propiedad> getPropiedadesCliente() throws SQLException {\n ArrayList<Propiedad> resultado = new ArrayList<Propiedad>();\n resultado = (ArrayList<Propiedad>) bdPropiedad.selectQuery(\"SELECT * FROM PROPIEDAD WHERE ESTADO \"\n + \"= 'Activo'\");\n return resultado;\n }", "public long getCedulaPersonaEnvia() {\r\n\t\treturn cedulaPersonaEnvia;\r\n\t}", "public int getPerfil(){\n return this.perfil;\n }", "public String darPlaca() {\n\t\treturn placa;\n\t}", "public TipoUsuario getTipousuario() {\n return tipousuario;\n }", "public Integer getIdProfilo() {\n\t\treturn idProfilo;\n\t}", "Nodo_B getPrimero(){\n return this.primero;\n }", "public int getPantallaActual() {\r\n return this.iPantallaActual;\r\n }", "public static Individuo seleccionAleatoria(Poblacion pob) {\n Random ran = new Random();\n int pos = ran.nextInt(pob.getIndividuos().size());\n Individuo mejor = new Individuo(pob.getIndividuos().get(pos).getGenotipo());\n return mejor;\n }", "public void mostrarPersona(){\r\n System.out.println(\"Nombre: \" + persona.getNombre());\r\n System.out.println(\"Cedula: \" + persona.getCedula());\r\n }", "public String getEstadoPersona() { return (this.estadoPersona == null) ? \"\" : this.estadoPersona; }", "public java.lang.String getTpoDocumento() {\n return tpoDocumento;\n }", "public Integer getAnnoCorso() {\r\n return this.annoCorso;\r\n }", "public String getPoaNumber() {\n\t\treturn poaNumber;\n\t}", "public String getRespostaPersonagemX() {\n\t\treturn respostaPersonagem;\n\t}", "public String getProfi() {\r\n\t\treturn profi;\r\n\t}", "public String getPartitaIva() {\n return partitaIva;\n }", "public String getCognome() {\r\n return cognome;\r\n }", "@OneToMany(mappedBy=\"detallePuesto\", fetch=FetchType.LAZY)\r\n\tpublic List<AccionPersonal> getAccionPersonals() {\r\n\t\treturn this.accionPersonals;\r\n\t}", "@AutoEscape\n\tpublic String getIdPtoServicio();", "public int pontuacao() {\n\t\treturn this.pontuacao;\n\t}", "public Paciente getPaciente() {\n\t\treturn paciente;\n\t}", "public String getApellidos() { return (this.apellidos == null) ? \"\" : this.apellidos; }", "public String getPropriedade(String nomePropriedade)\n\t{\n\t\treturn arquivoProps.getProperty(nomePropriedade);\n\t}", "@Override\n public ArrayList<Propiedad> getPropiedadesAgente(String pId) throws SQLException {\n ArrayList<Propiedad> resultado = new ArrayList<Propiedad>();\n resultado = (ArrayList<Propiedad>) bdPropiedad.selectQuery(\"SELECT * FROM PROPIEDAD WHERE ID_AGENTE \"\n + \"= '\" + pId + \"'\");\n return resultado;\n }", "public String getCODIGO() {\r\n return CODIGO;\r\n }", "public List<PersonEntity> obtenerDatosPersonas() {\n\n\t\ttry {\n\n\t\t\tlog.info(\"Procediendo a obtener el detalle de los clientes\");\n\t\t\tStoredProcedureQuery storedProcedureQuery = entityManager\n\t\t\t\t\t\n\t\t\t\t\t// Definicion\n\t\t\t\t\t.createStoredProcedureQuery(prop.getPROCEDURE_OBTENER_PERSONAS(), PersonEntity.class);\n\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tList<PersonEntity> res = storedProcedureQuery.getResultList();\n\n\t\t\tlog.info(\"Lista consultada exitosamente\");\n\t\t\tlog.info(\"Recorriendo lista de salida...\");\n\t\t\tfor (PersonEntity p : res) {\n\t\t\t\tlog.info(\"Persona : \" + p);\n\t\t\t}\n\n\t\t\treturn res;\n\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"Error al consultar procedure [\" + prop.getPROCEDURE_OBTENER_PERSONAS() + \"] , Detalle > \" + e.getMessage());\n\t\t}\n\n\t\treturn null;\n\t}", "public PuntoDeVenta getPuntoDeVenta()\r\n/* 140: */ {\r\n/* 141:162 */ return this.puntoDeVenta;\r\n/* 142: */ }", "public String consultPermissionPersonCompany() {\r\n\t\tResourceBundle bundle = ControladorContexto.getBundle(\"mensaje\");\r\n\t\tResourceBundle bundleSecurity = ControladorContexto\r\n\t\t\t\t.getBundle(\"messageSecurity\");\r\n\t\tlistPermissionPersonBusiness = new ArrayList<PermissionPersonBusiness>();\r\n\t\tList<SelectItem> parameters = new ArrayList<SelectItem>();\r\n\t\tStringBuilder consult = new StringBuilder();\r\n\t\tStringBuilder unionMessagesSearch = new StringBuilder();\r\n\t\tString messageSearch = \"\";\r\n\t\tString panelId = \"frmGestionarPermisosEmpresa:panelEmpresaPermiso\";\r\n\t\ttry {\r\n\t\t\tif (person != null) {\r\n\t\t\t\tadvanceSearch(consult, parameters, bundle, unionMessagesSearch);\r\n\t\t\t\tpagination.paginar(permissionPersonBusinessDao\r\n\t\t\t\t\t\t.amountBusinessAccessPerson(consult, parameters));\r\n\t\t\t\tList<PermissionPersonBusiness> listPermissionPersonBusinessTemp = permissionPersonBusinessDao\r\n\t\t\t\t\t\t.consultBusinessAccessPerson(consult, parameters,\r\n\t\t\t\t\t\t\t\tpagination.getInicio(), pagination.getRango());\r\n\t\t\t\tif ((listPermissionPersonBusinessTemp == null || listPermissionPersonBusinessTemp\r\n\t\t\t\t\t\t.size() <= 0)\r\n\t\t\t\t\t\t&& !\"\".equals(unionMessagesSearch.toString())) {\r\n\t\t\t\t\tmessageSearch = MessageFormat\r\n\t\t\t\t\t\t\t.format(bundle\r\n\t\t\t\t\t\t\t\t\t.getString(\"message_no_existen_registros_criterio_busqueda\"),\r\n\t\t\t\t\t\t\t\t\tunionMessagesSearch);\r\n\t\t\t\t} else if (listPermissionPersonBusinessTemp == null\r\n\t\t\t\t\t\t|| listPermissionPersonBusinessTemp.size() <= 0) {\r\n\t\t\t\t\tControladorContexto.mensajeInformacion(panelId,\r\n\t\t\t\t\t\t\tbundle.getString(\"message_no_existen_registros\"));\r\n\t\t\t\t} else if (!\"\".equals(unionMessagesSearch.toString())) {\r\n\t\t\t\t\tmessageSearch = MessageFormat\r\n\t\t\t\t\t\t\t.format(bundle\r\n\t\t\t\t\t\t\t\t\t.getString(\"message_existen_registros_criterio_busqueda\"),\r\n\t\t\t\t\t\t\t\t\tbundleSecurity\r\n\t\t\t\t\t\t\t\t\t\t\t.getString(\"person_permission_company_label\"),\r\n\t\t\t\t\t\t\t\t\tunionMessagesSearch);\r\n\t\t\t\t}\r\n\t\t\t\tif (!\"\".equals(messageSearch)) {\r\n\t\t\t\t\tControladorContexto.mensajeInformacion(panelId,\r\n\t\t\t\t\t\t\tmessageSearch);\r\n\t\t\t\t}\r\n\t\t\t\tdetailsPermissionPersonCompany(listPermissionPersonBusinessTemp);\r\n\t\t\t\tloadCombos();\r\n\t\t\t} else {\r\n\t\t\t\tControladorContexto\r\n\t\t\t\t\t\t.mensajeError(bundleSecurity\r\n\t\t\t\t\t\t\t\t.getString(\"person_permission_company_message_validate_select_user\"));\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tControladorContexto.mensajeError(e);\r\n\t\t}\r\n\t\treturn \"gesPermissionPersonBusiness\";\r\n\t}", "public Posizione getPosizione() {\n return posizione;\n }", "@Override\n public ArrayList<Comentario> getComentarios(String pId) throws SQLException {\n ArrayList<Comentario> comentarios = new ArrayList<Comentario>();\n comentarios = (ArrayList<Comentario>) bdComentario.selectQuery(\"SELECT * FROM COMENTARIO WHERE \"\n + \"ID_PROPIEDAD = \" + pId);\n return comentarios;\n }", "public Punto getCentro() {\r\n\treturn centro;\r\n}", "public String getTelefono()\r\n {\r\n return telefono;\r\n }", "public int getAnnoCorso() {\r\n return this.annoCorso;\r\n }", "public long getCedulaPersonaRecido() {\r\n\t\treturn cedulaPersonaRecive;\r\n\t}", "public java.lang.String getPlazo() {\n return plazo;\n }", "public void setEstadoPersona(String p) { this.estadoPersona = p; }", "public Paciente getPaciente() {\n\t\treturn Paciente;\n\t}" ]
[ "0.72625303", "0.6624544", "0.66123635", "0.65872246", "0.6260993", "0.6210241", "0.6150489", "0.60645044", "0.60509235", "0.6050326", "0.6012952", "0.59955287", "0.598418", "0.59835094", "0.5923013", "0.58948046", "0.58593965", "0.58306944", "0.5819219", "0.5817087", "0.5806158", "0.5795229", "0.5795229", "0.5777118", "0.5777118", "0.5776753", "0.57568085", "0.574599", "0.5721594", "0.5695815", "0.5684559", "0.5683174", "0.56823707", "0.5677962", "0.5675721", "0.5673114", "0.567224", "0.56697226", "0.56538516", "0.5653769", "0.564183", "0.5624841", "0.5620617", "0.5619167", "0.5618956", "0.5611925", "0.5610703", "0.56103194", "0.56099355", "0.56076485", "0.5605085", "0.5602275", "0.5594136", "0.5583766", "0.5581052", "0.55783933", "0.55715704", "0.5564886", "0.55639666", "0.5562557", "0.5562557", "0.5561085", "0.5558153", "0.5558139", "0.5551956", "0.55506307", "0.55307776", "0.55307317", "0.5527457", "0.5519299", "0.5514735", "0.55142224", "0.5498917", "0.5498643", "0.5496955", "0.5487928", "0.54878765", "0.54682547", "0.54665065", "0.546631", "0.54609776", "0.5459835", "0.5454634", "0.54490787", "0.5448444", "0.54455715", "0.543937", "0.5425223", "0.5421793", "0.5414391", "0.5413057", "0.54099333", "0.5408727", "0.54072326", "0.5403843", "0.53905714", "0.5387329", "0.5384329", "0.53831637", "0.5383161" ]
0.7827633
0
This method was generated by Apache iBATIS ibator. This method sets the value of the database column cementerio.persona.poblacion
public void setPoblacion(String poblacion) { this.poblacion = poblacion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPoblacion() {\r\n\t\treturn poblacion;\r\n\t}", "public void setProprietaire(SystemeAmendesInt.Personne proprietaire) {\n this.proprietaire = proprietaire;\n }", "public void setEstadoPersona(String p) { this.estadoPersona = p; }", "public void setProblema(String problema) {\n this.problema = problema;\n insertProblema();\n }", "@Override public void realizarCobro(Persona persona){\n\tpersona.cuenta.retiro(120);\n }", "public void setApellidos(String p) { this.apellidos = p; }", "public void setIdacesso(int pIdacesso){\n this.idacesso = pIdacesso;\n }", "public void setEspecialidad (EspecialidadEntity pEspecialidad)\r\n {\r\n this.especialidad = pEspecialidad;\r\n }", "public void registrarPersona() {\n\t\ttry {\n\t\t\tif (validaNumDocumento(getNumDocumentPersona())) {\n\t\t\t\t\tif (validaDireccion()) {\n\t\t\t\t\t\tif (validaApellidosNombres()) {\n\t\t\t\t\t\t\tPaPersona persona = new PaPersona();\n\t\t\t\t\t\t\tif (getActualizaPersona() != null && getActualizaPersona().equals(\"N\")) {\n\t\t\t\t\t\t\t\tpersona.setPersonaId(Constante.RESULT_PENDING);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tpersona.setPersonaId(getPersonaId() == null ? Constante.RESULT_PENDING: getPersonaId());\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tpersona.setTipoDocumentoId(Integer.valueOf(mapTipoDocumento.get(getTipoDocumento())));\n\t\t\t\t\t\t\tpersona.setNroDocIdentidad(getNumDocumentPersona());\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\tif (persona.getTipoDocumentoId() == Constante.TIPO_DOCUMENTO_RUC_ID) {\n\t\t\t\t\t\t\t\tpersona.setRazonSocial(getRazonSocial());\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tpersona.setPrimerNombre(getPrimerNombre());\n\t\t\t\t\t\t\t\tpersona.setSegundoNombre(getSegundoNombre());\n\t\t\t\t\t\t\t\tpersona.setApePaterno(getApellidoPaterno());\n\t\t\t\t\t\t\t\tpersona.setApeMaterno(getApellidoMaterno());\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tPaDireccion direccion = new PaDireccion();\n\t\t\t\t\t\t\tdireccion.setDireccionId(getDireccionId() == null ? Constante.RESULT_PENDING: getDireccionId());\n\t\t\t\t\t\t\tif (getSelectedOptBusc().intValue() == 1) {\n\t\t\t\t\t\t\t\tdireccion.setTipoViaId(mapGnTipoVia.get(getCmbtipovia().getValue()));\n\t\t\t\t\t\t\t\tdireccion.setViaId(mapGnVia.get(getCmbvia().getValue()));\n\t\t\t\t\t\t\t\tdireccion.setLugarId(null);\n\t\t\t\t\t\t\t\tdireccion.setSectorId(null);\n\t\t\t\t\t\t\t\tdireccion.setNumero(numero);\n\t\t\t\t\t\t\t\tdireccion.setPersonaId(persona.getPersonaId());\n\n\t\t\t\t\t\t\t\tString direccionCompleta = papeletaBo.getDireccionCompleta(direccion,mapIGnTipoVia, mapIGnVia);\n\t\t\t\t\t\t\t\tif (direccionCompleta != null && direccionCompleta.trim().length() > 0) {\n\t\t\t\t\t\t\t\t\tdireccion.setDireccionCompleta(direccionCompleta);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdireccion.setDireccionCompleta(getDireccionCompleta());\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tBuscarPersonaDTO personaDto = getPersonaDto(persona, direccion);\n\t\t\t\t\t\t\tString personaPapeleta = (String) getSessionMap().get(\"personaPapeleta\");\n\t\t\t\t\t\t\tif (personaPapeleta != null\n\t\t\t\t\t\t\t\t\t&& personaPapeleta.equals(\"I\")) {\n\t\t\t\t\t\t\t\tRegistroPapeletasManaged registro = (RegistroPapeletasManaged) getManaged(\"registroPapeletasManaged\");\n\t\t\t\t\t\t\t\tregistro.setDatosInfractor(personaDto);\n\t\t\t\t\t\t\t} else if (personaPapeleta != null\n\t\t\t\t\t\t\t\t\t&& personaPapeleta.equals(\"P\")) {\n\t\t\t\t\t\t\t\tRegistroPapeletasManaged registro = (RegistroPapeletasManaged) getManaged(\"registroPapeletasManaged\");\n\t\t\t\t\t\t\t\tregistro.setDatosPropietario(personaDto);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tlimpiar();\n\t\t\t\t\t\t\tesContribuyente = (Boolean) getSessionMap().get(\"esContribuyente\");\n\t\t\t\t\t\t\tif (esContribuyente == true) {\t\n\t\t\t\t\t\t\t\tWebMessages.messageError(\"Es un Contribeyente s�lo se Actualiz� la Direcci�n para Papeletas, los otros datos es por DJ\");\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWebMessages\n\t\t\t\t\t\t\t\t\t.messageError(\"Apellidos y nombres no valido\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tWebMessages\n\t\t\t\t\t\t\t\t.messageError(\"Especifique la direccion de la persona\");\n\t\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tWebMessages\n\t\t\t\t\t\t.messageError(\"Número de documento de identidad no valido\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void setPuesto(String puesto) {\n this.puesto = puesto;\n }", "public void setProdotto(String prodotto) {\r\n\t\tthis.prodotto = prodotto;\r\n\t}", "private void actualizarNombre(Persona persona){\n \n String nombre=IO_ES.leerCadena(\"Inserte el nombre\");\n persona.setNombre(nombre);\n }", "public void setProprietaire(Joueur proprietaire) {\n\t\tthis.proprietaire = proprietaire;\n\t}", "public void setPuntoEmision(String puntoEmision)\r\n/* 129: */ {\r\n/* 130:217 */ this.puntoEmision = puntoEmision;\r\n/* 131: */ }", "public void setPersonaId(long value) {\n this.personaId = value;\n }", "public void setAnio(int p) { this.anio = p; }", "@Column(name = \"C_PUESTO\")\n public String getPuesto() {\n return puesto;\n }", "public Poblacion mutaPoblacion(Poblacion poblacion, Horario horario){\n Poblacion newPoblacion = new Poblacion(this.tamPoblacion);\n double mejorInd = poblacion.getFittest(0).getFitness();\n \n for(int indPoblacion = 0; indPoblacion<poblacion.size(); indPoblacion++){\n Individuo individuo = poblacion.getFittest(indPoblacion);\n Individuo randomInd = new Individuo(horario);\n double adatativeMutacionTasa = this.tasaMutacion;\n \n if(individuo.getFitness() > poblacion.getAvgFitness()){\n double fitnesDelta1 = mejorInd - individuo.getFitness();\n double fitnesDelta2 = mejorInd - poblacion.getAvgFitness();\n adatativeMutacionTasa = (fitnesDelta1 - fitnesDelta2) *this.tasaMutacion;\n \n }\n for(int genIndex=0; genIndex <individuo.getChromosomeLength();genIndex++){\n if(indPoblacion > this.elitismo){\n if(adatativeMutacionTasa > Math.random()){\n individuo.setGene(genIndex, randomInd.getGene(genIndex));\n }\n }\n }\n newPoblacion.setIndividuo(indPoblacion, individuo);\n }\n return newPoblacion;\n }", "public void setTelefono(String aTelefono) {\n telefono = aTelefono;\n }", "public void setPuntoDeVenta(PuntoDeVenta puntoDeVenta)\r\n/* 145: */ {\r\n/* 146:166 */ this.puntoDeVenta = puntoDeVenta;\r\n/* 147: */ }", "public void setProyecto(java.lang.String proyecto) {\n this.proyecto = proyecto;\n }", "public void setProyecto(java.lang.String proyecto) {\n this.proyecto = proyecto;\n }", "public void setComentario (String val) {\n this.comentario = val;\n }", "public void colocarenlacelda(int fila, int columna, int valor){\n\t\tgetvectorjardin()[fila][columna].setcelda(valor);\r\n\t}", "private void actualizarCantidadPropiedades(Persona pPersona, int pPropiedad) throws Exception {\n\n\t\tpPersona = this.entityManager.find(Persona.class, pPersona.getIdPersona());\n\t\tpPersona.setCantidadPropiedades(pPersona.getCantidadPropiedades() + pPropiedad);\n\t}", "void setAnnoPubblicazione(String annoPubblicazione);", "public void asignarAutomovilPersona(){\r\n persona.setAutomovil(automovil);\r\n }", "public void setComentario(Comentario comentario) {\n this.comentario = comentario;\n acutualizarInfo();\n }", "public void setTelefono(String telefono);", "public void setCorreo(String aCorreo) {\r\n correo = aCorreo;\r\n }", "public void addPropuesta( Persona persona, Propuesta propuesta ) throws Exception \n\t{\n\n\t\tDAOPersona dao = new DAOPersona();\n\t\ttry\n\t\t{\n\t\t\tthis.conn = darConexion();\n\t\t\tdao.setConn(conn);\n\n\t\t\tdao.addPropuesta(persona, propuesta);\n\n\t\t}\n\t\tcatch (SQLException sqlException) {\n\t\t\tSystem.err.println(\"[EXCEPTION] SQLException:\" + sqlException.getMessage());\n\t\t\tsqlException.printStackTrace();\n\t\t\tthrow sqlException;\n\t\t} \n\t\tcatch (Exception exception) {\n\t\t\tSystem.err.println(\"[EXCEPTION] General Exception:\" + exception.getMessage());\n\t\t\texception.printStackTrace();\n\t\t\tthrow exception;\n\t\t} \n\t\tfinally {\n\t\t\ttry {\n\t\t\t\tdao.cerrarRecursos();\n\t\t\t\tif(this.conn!=null){\n\t\t\t\t\tthis.conn.close();\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (SQLException exception) {\n\t\t\t\tSystem.err.println(\"[EXCEPTION] SQLException While Closing Resources:\" + exception.getMessage());\n\t\t\t\texception.printStackTrace();\n\t\t\t\tthrow exception;\n\t\t\t}\n\t\t}\n\t}", "void setProvincia(String provincia);", "public void crearPersona(){\r\n persona = new Persona();\r\n persona.setNombre(\"Jose\");\r\n persona.setCedula(12345678);\r\n }", "public void setComentario( String comentario )\n\t{\n\t\tthis.comentario = comentario;\n\t}", "public void setCombinacionPropia(Combinacion combinacionPropia) {\n\t\tthis.combinacionPropia = combinacionPropia;\n\t}", "public void setNome(String pNome){\n this.nome = pNome;\n }", "public void setNombreCompleto(String aNombreCompleto) {\r\n nombreCompleto = aNombreCompleto;\r\n }", "public void setProprietarioDao(IProprietarioDAO proprietarioDao);", "public void setTelefono(String telefono) {\r\n\tthis.telefono = telefono;\r\n}", "public Persona()\n\t{\n\t\tnombre = \"--\"; //DEFINES POR DEFAULT LAS VARIABLES;\n\t\tapellido = \"--\"; //DEFINES POR DEFAULT LAS VARIABLES;\n\t\tedad = 0; //DEFINES POR DEFAULT LAS VARIABLES;\n\t\talias = \"--\"; //DEFINES POR DEFAULT LAS VARIABLES;\t\t\n\t}", "public void pridejNovePivo ()\n\t{\n\t\n\t\tpivo = pivo + PRODUKCE;\n\t\t\n\t}", "void setCognome(String cognome);", "public void setObjeto(ObjetoVida o){\r\n\t\tobjeto = o;\r\n\t}", "public Long getIdPropietario(com.trascender.catastro.recurso.persistent.Parcela pParcela) throws Exception {\n\t\treturn this.getPropietario(pParcela).getIdPersona();\n\t}", "public void carregarRegistroDoPrimeiroAno() {\n\t\tlimpar();\n\t\t\n\t\tlistaAlunos = repository.encontrarComQueryNomeada(AlunosMilitaresOMDS.class, \"alunosMilitaresOMDS.listarPorOMEPeriodo\",\n\t\t\t\tnew Object[]{\"periodo\", periodo},\n\t\t\t\tnew Object[]{\"organizacao\", subordinado},\n\t\t\t\tnew Object[]{\"ano\", Ano.PRIMEIRO});\n\t\t\n\t\tif (listaAlunos.size() > 0) {\n\t\t\tlistaAlunos.forEach(efetivo ->{\n\t\t\t\tif (efetivo.getTipoAlunosMilitaresOMDS().equals(TipoAlunosMilitaresOMDS.OFICIAL))\n\t\t\t\t\tsetAlunosMilitarOficial(listaAlunos.get(0));\n\t\t\t\tif(efetivo.getTipoAlunosMilitaresOMDS().equals(TipoAlunosMilitaresOMDS.PRACA))\n\t\t\t\t\tsetAlunosMilitarPraca(listaAlunos.get(0));;\n\t\t\t});\n\t\t\thabilitaBotao=false;\n\t\t}\n\t\torganizarValores();\n\t}", "public void setTelefono(String telefono)\r\n {\r\n this.telefono = telefono;\r\n }", "private void populaParteCorpo()\n {\n ParteCorpo p1 = new ParteCorpo(\"Biceps\");\n parteCorpoDAO.insert(p1);\n ParteCorpo p2 = new ParteCorpo(\"Triceps\");\n parteCorpoDAO.insert(p2);\n ParteCorpo p3 = new ParteCorpo(\"Costas\");\n parteCorpoDAO.insert(p3);\n ParteCorpo p4 = new ParteCorpo(\"Lombar\");\n parteCorpoDAO.insert(p4);\n ParteCorpo p5 = new ParteCorpo(\"Peito\");\n parteCorpoDAO.insert(p5);\n ParteCorpo p6 = new ParteCorpo(\"Panturrilha\");\n parteCorpoDAO.insert(p6);\n ParteCorpo p7 = new ParteCorpo(\"Coxas\");\n parteCorpoDAO.insert(p7);\n ParteCorpo p8 = new ParteCorpo(\"Gluteos\");\n parteCorpoDAO.insert(p8);\n ParteCorpo p9 = new ParteCorpo(\"Abdomen\");\n parteCorpoDAO.insert(p9);\n ParteCorpo p10 = new ParteCorpo(\"Antebraço\");\n parteCorpoDAO.insert(p10);\n ParteCorpo p11 = new ParteCorpo(\"Trapezio\");\n parteCorpoDAO.insert(p11);\n ParteCorpo p12 = new ParteCorpo(\"Ombro\");\n parteCorpoDAO.insert(p12);\n }", "public void setNombreCompleto(String nombreCompleto);", "public void damePersonaje(String personaje){\n this.personaje=personaje;\n\n\n\n }", "public void setPrecioc(int p){\n this.precioc=p;\n \n }", "public void setCodDepartamento(String codDepartamento);", "public void AtualizaPassageiro(String nome, String NovoCpf, String cpfPrimario) {\n\n\t\ttry {\n\n\t\t\t// Meu cpf é a chjave\n\t\t\t// setando nome\n\n\t\t\tstmt = con.prepareStatement(\" update Passageiro set nome= ? where cpf= ? \");\n\t\t\tstmt.setString(1, nome);\n\t\t\tstmt.setString(2, cpfPrimario);\n\t\t\tstmt.executeUpdate();\n\n\t\t\t// setando cpf\n\n\t\t\tstmt = con.prepareStatement(\" update Passageiro set cpf= ? where cpf= ? \");\n\t\t\tstmt.setString(1, NovoCpf);\n\t\t\tstmt.setString(2, cpfPrimario);\n\t\t\tstmt.executeUpdate();\n\n\t\t\tJOptionPane.showMessageDialog(null, \"Passageiro Alterado com sucesso!!\");\n\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\n\t\t\tSystem.out.println(\"Erro ao atualizar passageiro!\");\n\t\t\tJOptionPane.showMessageDialog(null, \"-Erro ao atualizar o passageiro \");\n\t\t\tJOptionPane.showMessageDialog(null, \"certifique se de inserir um CPF VALIDO(15 CARACTERES)\t \");\n\t\t}\n\n\t}", "public void setCodProvincia(String codProvincia);", "public void setCodigo_pcom(java.lang.String newCodigo_pcom);", "public void setEmpresa(Empresa empresa)\r\n/* 89: */ {\r\n/* 90:141 */ this.empresa = empresa;\r\n/* 91: */ }", "public void setPregunta(String Pregunta) {\n sPregunta = Pregunta;\n }", "public void setActivo(boolean activo)\r\n/* 178: */ {\r\n/* 179:328 */ this.activo = activo;\r\n/* 180: */ }", "public abstract void setPeticion(\n\t\tco.com.telefonica.atiempo.ejb.eb.PeticionLocal aPeticion);", "public void setNumeroPersona(String numeroPersona) {\n\t\tthis.numeroPersona = numeroPersona;\n\t}", "@Override\r\n\tpublic void setOstatu_mota(String ostatu_mota) {\n\t\tsuper.setOstatu_mota(ostatu_mota);\r\n\t}", "public void setModeloProblema(ModeloProblemaLinear modeloProblema) {\r\n this.modeloProblema = modeloProblema;\r\n }", "private void resetPersona() {\n\n persona.setDocumento(0);\n persona.setEmail(\"\");\n persona.setNombre(\"\");\n persona.setApellido(\"\");\n persona.setPassword(\"\");\n persona.setTelefono(0);\n persona.setFoto(\"\");\n \n }", "public void setTelefono(String telefono) {\n this.telefono = telefono;\n }", "private void muestraPersona(JSONArray genero) {\n\tJSONArray a = (JSONArray) genero.get(0);\n\t// txtId.setText(Long.toString( (Long) a.get(0)) );\n\t//txtBuscar.setText((String) a.get(1));\n\t// textFecha.setText((String) a.get(2));\n\t// textUsu.setText((String) a.get(4));\n\tcodTemporal = a.get(0).toString();\n\n\thabilita(true, false, false, false, false, true, false, true, true);\n }", "public void setDominio(String p) { this.dominio = p; }", "@Test\n public void testSetPersonaPaciente() {\n System.out.println(\"setPersonaPaciente\");\n Persona personaPaciente = null;\n Paciente instance = new Paciente();\n instance.setPersonaPaciente(personaPaciente);\n\n }", "public void setCodProd(IProduto codigo);", "public void setMontoPropinaAnulacion(java.lang.Double montoPropinaAnulacion) {\r\n this.montoPropinaAnulacion = montoPropinaAnulacion;\r\n }", "public PersonaBean() {\n domicilio = new Domicilio();\n telefono = new Telefono();\n correoElectronico = new CorreoElectronico();\n persona = new Persona();\n this.tipoOperacion = \"Alta\";\n\n }", "public void SalvarNovaPessoa(){\r\n \r\n\t\tpessoaModel.setUsuarioModel(this.usuarioController.GetUsuarioSession());\r\n \r\n\t\t//INFORMANDO QUE O CADASTRO FOI VIA INPUT\r\n\t\tpessoaModel.setOrigemCadastro(\"I\");\r\n \r\n\t\tpessoaRepository.SalvarNovoRegistro(this.pessoaModel);\r\n \r\n\t\tthis.pessoaModel = null;\r\n \r\n\t\tUteis.MensagemInfo(\"Registro cadastrado com sucesso\");\r\n \r\n\t}", "public Persona(int idPersona, String nombre, String apellido, String email, String telefono){\n this.idPersona = idPersona;\n this.nombre = nombre;\n this.apellido = apellido;\n this.email = email;\n this.telefono = telefono;\n \n }", "public void setAnnoCorso(int annoCorso) {\r\n int oldAnnoCorso = this.annoCorso;\r\n this.annoCorso = annoCorso;\r\n propertyChangeSupport.firePropertyChange (\"annoCorso\", new Integer (oldAnnoCorso), new Integer (annoCorso));\r\n }", "public void UltimoRegistro(PDetalle pdetalle) throws Exception {\n String sql = \"SELECT \\n\"\n + \"\tCODPRES,\\n\"\n + \"\tCANTFAL,\\n\"\n + \"\tFSALPRES \\n\"\n + \"FROM PRESTAMO\\n\"\n + \"\tWHERE CODPRES = (SELECT MAX(CODPRES) FROM PRESTAMO)\";\n try {\n Statement st = this.conectar().createStatement();\n ResultSet rs = st.executeQuery(sql);\n while (rs.next()) {\n pdetalle.setCODPRESD(rs.getInt(\"CODPRES\"));\n pdetalle.setCANTDET(rs.getString(\"CANTFAL\"));\n pdetalle.setFECHENT(rs.getString(\"FSALPRES\"));\n }\n rs.close();\n st.close();\n } catch (Exception e) {\n System.out.println(\"Error al traer código de prestamo\");\n }\n\n }", "public void setUsuarioInsercion(String p) { this.usuarioInsercion = p; }", "public void setUsuarioInsercion(String p) { this.usuarioInsercion = p; }", "public abstract void setEstado_ps_peticion(\n\t\tco\n\t\t\t.com\n\t\t\t.telefonica\n\t\t\t.atiempo\n\t\t\t.ejb\n\t\t\t.eb\n\t\t\t.Estado_ps_peticionLocal anEstado_ps_peticion);", "public void setProrrataAnualDefinitiva(java.lang.String prorrataAnualDefinitiva) {\r\n this.prorrataAnualDefinitiva = prorrataAnualDefinitiva;\r\n }", "public void anularPer(String cedula){\r\n String sql = \"UPDATE \\\"HIP_PERSONAS\\\" SET \\\"PER_ESTADO\\\" = 'I' WHERE \\\"PER_CEDULA\\\" = '\" + cedula + \"'\";\r\n System.out.println(\"Persona Eliminada eliminada \" + sql);\r\n db.conectar();\r\n try {\r\n\r\n Statement sta = db.getConexionBD().createStatement();\r\n sta.execute(sql);\r\n db.desconectar();\r\n\r\n } catch (SQLException error) {\r\n\r\n error.printStackTrace();\r\n\r\n }\r\n }", "public void setPtoNo(String aPtoNo) {\n ptoNo = aPtoNo;\n }", "public void setProformaNo (java.lang.String proformaNo) {\n\t\tthis.proformaNo = proformaNo;\n\t}", "public void setMasaCorp(String masaCorp) {\r\n this.masaCorp = masaCorp;\r\n }", "public void setClavePaginacion(es.gob.agenciatributaria.www2.static_files.common.internet.dep.aplicaciones.es.aeat.ssii.fact.ws.SuministroInformacion_xsd.IDFacturaExpedidaBCType clavePaginacion) {\r\n this.clavePaginacion = clavePaginacion;\r\n }", "public Persona(String nombre, String apellido, String email, String telefono){\n this.nombre = nombre;\n this.apellido = apellido;\n this.email = email;\n this.telefono = telefono;\n }", "public void setApellidoPaterno(String apellidoPaterno);", "public Votante(String Cedula,String pNombre, String pApellido, String pSexo) {\n this.cedula = Cedula;\n \tthis.nombre = pNombre;\n this.apellido = pApellido;\n this.sexo = pSexo;\n }", "public Persona buscarPersona(String cedula) {\n\t\treturn null;\r\n\t}", "public static void editar(Pessoa p) throws Exception\n {\n PreparedStatement stmt = Banco.query(\"UPDATE pessoa SET nome = ?, telefone = ?, email = ? WHERE id = ?\");\n\n stmt.setString(1, p.getNome());\n stmt.setString(2, p.getTelefone());\n stmt.setString(3, p.getEmail());\n stmt.setInt(4, p.getId());\n Banco.executar(stmt);\n }", "public void setCorreo(String correo) {this.correo = correo;}", "@Override\r\n public void hallarPerimetro() {\r\n this.perimetro = this.ladoA*3;\r\n }", "public void setOrigen(java.lang.String param){\n \n this.localOrigen=param;\n \n\n }", "@Override\n\tpublic void setObjectProperty(String propiedad, Object valor) {\n\n\t\tswitch (propiedad) {\n\t\tcase PROPIEDAD_clsEQUIPACION_COLOR1P:\n\t\t\tcolor1P = ((String) valor);\n\t\t\tbreak;\n\t\tcase PROPIEDAD_clsEQUIPACION_COLOR2P:\n\t\t\tcolor2P = ((String) valor);\n\t\t\tbreak;\n\t\tcase PROPIEDAD_clsEQUIPACION_COLOR1S:\n\t\t\tcolor1S = ((String) valor);\n\t\t\tbreak;\n\t\tcase PROPIEDAD_clsEQUIPACION_COLOR2S:\n\t\t\tcolor2S = ((String) valor);\n\t\t\tbreak;\n\t\tcase PROPIEDAD_clsEQUIPACION_SERIGRAFIADOP:\n\t\t\tserigrafiadoP = ((String) valor);\n\t\t\tbreak;\n\t\tcase PROPIEDAD_clsEQUIPACION_SERIGRAFIADOS:\n\t\t\tserigrafiadoS = ((String) valor);\n\t\t\tbreak;\n\t\tcase PROPIEDAD_clsEQUIPACION_PUBLICIDADP:\n\t\t\tpublicidadP = ((String) valor);\n\t\t\tbreak;\n\t\tcase PROPIEDAD_clsEQUIPACION_PUBLICIDADS:\n\t\t\tpublicidadS = ((String) valor);\n\t\t\tbreak;\n\t\tcase PROPIEDAD_clsEQUIPACION_DORSAL:\n\t\t\tdorsal = ((int) valor);\n\t\t\tbreak;\n\n\t\t}\n\n\t}", "public void setTitolo(String titolo) {\n if (titolo == null) {\n System.out.println(\"Hai inserito un titolo errato!!\");\n } else {\n this.titolo = titolo;\n }\n }", "public void setNombreCompleto(java.lang.String nombreCompleto)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NOMBRECOMPLETO$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NOMBRECOMPLETO$0);\n }\n target.setStringValue(nombreCompleto);\n }\n }", "public void setCuenta(String cuenta) {\r\n this.cuenta = cuenta;\r\n }", "public void setAnio(int anio){\r\n \r\n \r\n this.anio = anio;\r\n \r\n }", "protected void eventoUscitaCampoModificato(Campo campo) {\n /* variabili e costanti locali di lavoro */\n Campo unCampo;\n\n try { // prova ad eseguire il codice\n\n /* quando si modifica il campo data inizio modifica\n * il campo data fine */\n if (campo.equals(this.getCampo(nomeDataIni))) {\n unCampo = this.getCampo(nomeDataFine);\n unCampo.setValore(campo.getValore());\n }// fine del blocco if\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "@Override\n\tpublic void crearNuevaPoblacion() {\n\t\t/* Nos quedamos con los mejores individuos. Del resto, cruzamos la mitad, los mejores,\n\t\t * y el resto los borramos.*/\n\t\tList<IIndividuo> poblacion2 = new ArrayList<>();\n\t\tint numFijos = (int) (poblacion.size()/2);\n\t\t/* Incluimos el 50%, los mejores */\n\t\tpoblacion2.addAll(this.poblacion.subList(0, numFijos));\n\t\t\n\t\t/* De los mejores, mezclamos la primera mitad \n\t\t * con todos, juntandolos de forma aleatoria */\n\t\tList<IIndividuo> temp = poblacion.subList(0, numFijos+1);\n\t\tfor(int i = 0; i < temp.size()/2; i++) {\n\t\t\tint j;\n\t\t\tdo {\n\t\t\t\tj = Individuo.aleatNum(0, temp.size()-1);\n\t\t\t}while(j != i);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tpoblacion2.addAll(cruce(temp.get(i), temp.get(j)));\n\t\t\t} catch (CruceNuloException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t//this.poblacion.clear();\n\t\tthis.poblacion = poblacion2;\n\t}", "public void setIdempresa(String idempresa) {\n\t\tthis.idempresa = idempresa;\n\t}", "public void setIdempresa(String idempresa) {\n\t\tthis.idempresa = idempresa;\n\t}", "public void setIdempresa(String idempresa) {\n\t\tthis.idempresa = idempresa;\n\t}" ]
[ "0.6380826", "0.6322352", "0.619888", "0.5937542", "0.5934672", "0.59022486", "0.58328336", "0.5823563", "0.5820091", "0.57884043", "0.57566583", "0.57498825", "0.5746866", "0.5743221", "0.5717243", "0.5713451", "0.57132655", "0.5691165", "0.56873935", "0.5670002", "0.5665006", "0.5665006", "0.56230074", "0.5618643", "0.56155336", "0.5585881", "0.55838454", "0.55780363", "0.5571738", "0.5562012", "0.55539113", "0.5539405", "0.5525404", "0.5511201", "0.5504652", "0.54881394", "0.54672277", "0.5440841", "0.5432635", "0.5427648", "0.54226816", "0.5420622", "0.54157966", "0.54117554", "0.5407194", "0.540621", "0.5402895", "0.53849435", "0.5383187", "0.53718674", "0.53678197", "0.53656507", "0.53609014", "0.5356434", "0.535269", "0.5343381", "0.53404796", "0.53264755", "0.5309069", "0.52998585", "0.5298786", "0.52979344", "0.5296868", "0.52915305", "0.5279639", "0.5275569", "0.52721304", "0.5264908", "0.5259869", "0.52540714", "0.52532655", "0.5247446", "0.52467257", "0.5241402", "0.5241402", "0.5233164", "0.52290773", "0.5229032", "0.52239937", "0.5221937", "0.52183807", "0.52176195", "0.5216438", "0.52145576", "0.52075297", "0.52008945", "0.51970863", "0.51965046", "0.5191233", "0.5190993", "0.51908684", "0.5190868", "0.5185914", "0.51836133", "0.51737195", "0.51727134", "0.51712745", "0.51693904", "0.51693904", "0.51693904" ]
0.74138063
0
This method was generated by Apache iBATIS ibator. This method returns the value of the database column cementerio.persona.telefono
public String getTelefono() { return telefono; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTelefono() {\n return telefono;\n }", "public String getTelefono() {\n return telefono;\n }", "public String getTelefono()\r\n {\r\n return telefono;\r\n }", "@AutoEscape\n\tpublic String getTelefono();", "public long getTelefono() {\r\n return telefono;\r\n }", "public String getTelefonoTI() {\n return this.telefonoTI;\n }", "public java.lang.String getNumeroTelefono() {\n\t\treturn _telefonoSolicitudProducto.getNumeroTelefono();\n\t}", "public String getTelefono(){\n return telefono;\n }", "public java.lang.String getIDTipoTelefono() {\n\t\treturn IDTipoTelefono;\n\t}", "public String getNumeroPersona() {\n\t\treturn numeroPersona;\n\t}", "public String getTelefono() {\r\n\treturn telefono;\r\n}", "java.lang.String getTelefon();", "public void setTelefono(String aTelefono) {\n telefono = aTelefono;\n }", "public void setTelefono(String telefono) {\r\n\t\tthis.telefono = telefono;\r\n\t}", "public void setTelefono(String telefono) {\n this.telefono = telefono;\n }", "public void setTelefono(String telefono)\r\n {\r\n this.telefono = telefono;\r\n }", "public java.lang.String getTipoTelefono() {\n\t\treturn _telefonoSolicitudProducto.getTipoTelefono();\n\t}", "public String getTelephone() {\n return (String) get(\"telephone\");\n }", "public String getTelefonnummer() {\n return telefonnummer;\n }", "public void setTelefono(String telefono);", "public java.lang.String getTelefon() {\n java.lang.Object ref = telefon_;\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 telefon_ = s;\n return s;\n }\n }", "public java.lang.String getTelefon() {\n java.lang.Object ref = telefon_;\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 telefon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getTelephone() {\n return telephone;\n }", "public String getTelephone() {\n return telephone;\n }", "public String getContacto() {\r\n\t\treturn contacto;\r\n\t}", "public java.lang.Long getNumTelefonoProductor() {\n\t\treturn numTelefonoProductor;\n\t}", "public String getContacto() {\n return contacto;\n }", "public String getContacto() {\n return contacto;\n }", "public void setTelefono(Integer telefono) {\r\n this.telefono = telefono;\r\n }", "public String getTelephoneNumber() {\n return telephoneNumber;\n }", "public String getTelphone() {\n return telphone;\n }", "public String getTelphone() {\n return telphone;\n }", "public String getTelphone() {\n return telphone;\n }", "public String returnPhoneNumber() {\n\t\treturn this.registration_phone.getAttribute(\"value\");\r\n\t}", "public java.lang.String getContactPhoneNumber()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONTACTPHONENUMBER$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public String getNombreCompleto() {\r\n return nombreCompleto;\r\n }", "public com.google.protobuf.ByteString\n getTelefonBytes() {\n java.lang.Object ref = telefon_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n telefon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public java.lang.String getTelePhone() {\r\n return telePhone;\r\n }", "public String getTelNum() throws Exception \n\t{\n\t\tString tel=\"\";\n\t\ttry(Connection connection = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/usersdb?useTimezone=true&serverTimezone=UTC\", \"root\", \"123\");\n\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(\"SELECT telephone_number FROM usersdb.telephone_numbers WHERE clients_username = ?;\"))\n\t\t{\n\t\t\tpreparedStatement.setString(1,username);\n\t\t\tResultSet result = preparedStatement.executeQuery();\n\t\t\t\n\t\t\twhile(result.next()) \n\t\t\t{\n\t\t\t\ttel = result.getString(\"telephone_number\");\n\t\t\t\ttelnum = result.getString(\"telephone_number\");\n\t\t\t}\n\t\t}\n\t\tcatch (SQLException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn tel;\n\t}", "public String getUserTelephone() {\n return userTelephone;\n }", "private Long modificarTelefono(Telefono telefono) {\n\t\ttry {\n\t\t\tgTelefono.modify(telefono);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn telefono.getIdTelefono();\n\t}", "public void setTelefonoTI(String telefonoTI) {\n this.telefonoTI = telefonoTI;\n }", "public String getTelephoneNumber() {\n\t\treturn telephoneNumber;\n\t}", "public void setTelefono(long value) {\r\n this.telefono = value;\r\n }", "public void setTelefono(String telefono) {\n\t\tthis.telefono.set(telefono);\n\t}", "public String getIdContacto() {\r\n\t\treturn idContacto;\r\n\t}", "java.lang.String getPhoneNumber();", "java.lang.String getPhoneNumber();", "java.lang.String getPhoneNumber();", "public com.google.protobuf.ByteString\n getTelefonBytes() {\n java.lang.Object ref = telefon_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n telefon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getaPhone() {\n return aPhone;\n }", "public long getCedulaPersonaRecido() {\r\n\t\treturn cedulaPersonaRecive;\r\n\t}", "@Override\n public java.lang.String getCellPhone() {\n return _entityCustomer.getCellPhone();\n }", "public Integer getTel() {\n return tel;\n }", "public String getContactTel() {\n return contactTel;\n }", "public String getIdTipoContacto() {\r\n\t\treturn idTipoContacto;\r\n\t}", "public String getTelNo() {\n return telNo;\n }", "public synchronized String getTelephoneNumber()\r\n {\r\n return telephoneNumber;\r\n }", "public java.lang.Long getPeti_numero();", "public java.lang.Long getPeti_numero();", "@Override\n public java.lang.String getPhone() {\n return _entityCustomer.getPhone();\n }", "public String getPhoneNo() {\n return (String)getAttributeInternal(PHONENO);\n }", "public java.lang.String getTelphone () {\r\n\t\treturn telphone;\r\n\t}", "@Override\n public String getPhoneNumber() {\n\n if(this.phoneNumber == null){\n\n this.phoneNumber = TestDatabase.getInstance().getClientField(token, id, \"phoneNumber\");\n }\n\n return phoneNumber;\n }", "public String getCorreo() {\n return correo;\n }", "public String getCorreo() {\r\n return correo;\r\n }", "public String getNombreCompleto();", "public String getTelNo() {\n return telNo;\n }", "public String getTelefone() {\n return telefone;\n }", "public String getTelefone() {\n\t\treturn telefone;\n\t}", "public String getEndereco(){\r\n return this.endereco;\r\n }", "public List<Telefono> getTelefonos(String dni);", "java.lang.String getPhone();", "public String getTelephoneNumber(){\n return telephoneNumber;\n }", "public String getNombrePersonaRecivido() {\r\n\t\treturn nombrePersonaRecivido;\r\n\t}", "public String getTel() {\n return tel;\n }", "public String getTel() {\n return tel;\n }", "public String getTel() {\n return tel;\n }", "public String getTel() {\n return tel;\n }", "public String getTel() {\n return tel;\n }", "public String getTel() {\n return tel;\n }", "public String getTel() {\n return tel;\n }", "public String getTel() {\n return tel;\n }", "public String getTel() {\n return tel;\n }", "public Long getPersonaId();", "public String getTel() {\r\n return tel;\r\n }", "public void setTelefono(String telefono) {\r\n\tthis.telefono = telefono;\r\n}", "public long getPhoneNumber() {\r\n\t\treturn phoneNumber;\r\n\t}", "public String getCorreoTI() {\n return this.correoTI;\n }", "@Override\n\t@Field(offset=41, length=9, paddingChar='0', align=Align.RIGHT)\n\tpublic String getNossoNumero() {\n\t\treturn super.getNossoNumero();\n\t}", "public String getTelNo()\r\n\t{\r\n\t\treturn this.telNo;\r\n\t}", "String getEndereco2();", "public void setNumeroPersona(String numeroPersona) {\n\t\tthis.numeroPersona = numeroPersona;\n\t}", "public int getCampoIdentificacao() {\r\n return campoIdentificacao;\r\n }", "public String getTelefoneRequerenteItem() {\r\n\t\treturn this.emprestimoid.getTelefoneRequerenteItem();\r\n\t}", "public java.lang.String getNombreCompleto()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NOMBRECOMPLETO$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public long getPersonaId() {\n return personaId;\n }", "public int getIdContacto() {\r\n return idContacto;\r\n }", "@AutoEscape\n\tpublic String getPhone();", "public org.erdc.cobie.cobielite.core.CobieTextSimpleType xgetContactPhoneNumber()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.erdc.cobie.cobielite.core.CobieTextSimpleType target = null;\r\n target = (org.erdc.cobie.cobielite.core.CobieTextSimpleType)get_store().find_element_user(CONTACTPHONENUMBER$0, 0);\r\n return target;\r\n }\r\n }" ]
[ "0.7634746", "0.7634746", "0.7549726", "0.7544044", "0.7359953", "0.72648424", "0.72599137", "0.69630766", "0.6789649", "0.6751223", "0.6732913", "0.65880996", "0.6582407", "0.6551942", "0.6534969", "0.6490639", "0.6487608", "0.6466898", "0.64662725", "0.62698317", "0.6231755", "0.6192466", "0.6178648", "0.6178648", "0.6177433", "0.61070406", "0.6106839", "0.6106839", "0.60863566", "0.60524493", "0.6035029", "0.6035029", "0.6035029", "0.6003219", "0.59909666", "0.59796184", "0.59671074", "0.59566545", "0.59430957", "0.5939977", "0.5918116", "0.5915635", "0.59083605", "0.58983386", "0.5897339", "0.5880824", "0.58685476", "0.58685476", "0.58685476", "0.5865643", "0.58641934", "0.58619124", "0.5860348", "0.5859832", "0.585739", "0.5848701", "0.58468175", "0.5841314", "0.58403355", "0.58403355", "0.5838258", "0.583162", "0.5815171", "0.5809244", "0.57952636", "0.5795169", "0.5794901", "0.5794181", "0.5786099", "0.57803243", "0.5770126", "0.57622045", "0.5758656", "0.5755681", "0.5743445", "0.5742915", "0.5742915", "0.5742915", "0.5742915", "0.5742915", "0.5742915", "0.5742915", "0.5742915", "0.5742915", "0.57344157", "0.5733856", "0.57266694", "0.5705346", "0.57051027", "0.57030904", "0.56969076", "0.56737393", "0.5668504", "0.56599015", "0.5658042", "0.5649876", "0.5635717", "0.56354034", "0.5633437", "0.5630831" ]
0.7884894
0
This method was generated by Apache iBATIS ibator. This method sets the value of the database column cementerio.persona.telefono
public void setTelefono(String telefono) { this.telefono = telefono; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTelefono(String aTelefono) {\n telefono = aTelefono;\n }", "public void setTelefono(String telefono);", "public void setTelefono(String telefono)\r\n {\r\n this.telefono = telefono;\r\n }", "public void setTelefono(String telefono) {\n this.telefono = telefono;\n }", "public void setTelefono(String telefono) {\n\t\tthis.telefono.set(telefono);\n\t}", "public void setTelefono(Integer telefono) {\r\n this.telefono = telefono;\r\n }", "public void setTelefono(String telefono) {\r\n\t\tif(telefono.length() == 9){\r\n\t\tthis.telefono = telefono;\r\n\t\t}else{\r\n\t\t\tSystem.out.println(\"Error telefono\");\r\n\t\t}\r\n\t}", "public void setTelefono(long value) {\r\n this.telefono = value;\r\n }", "public void setTelefono(String telefono) {\r\n\tthis.telefono = telefono;\r\n}", "public String getTelefono() {\r\n\t\treturn telefono;\r\n\t}", "public void setTelefonoTI(String telefonoTI) {\n this.telefonoTI = telefonoTI;\n }", "public String getTelefono() {\n return telefono;\n }", "public String getTelefono() {\n return telefono;\n }", "public String getTelefono()\r\n {\r\n return telefono;\r\n }", "public void setNumeroPersona(String numeroPersona) {\n\t\tthis.numeroPersona = numeroPersona;\n\t}", "@AutoEscape\n\tpublic String getTelefono();", "private Long modificarTelefono(Telefono telefono) {\n\t\ttry {\n\t\t\tgTelefono.modify(telefono);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn telefono.getIdTelefono();\n\t}", "public long getTelefono() {\r\n return telefono;\r\n }", "public String getTelefono(){\n return telefono;\n }", "public telefono(){\n this.telefono =\"00000000\";\n this.saldo = 0.0;\n this.marca= \"Sin Marca\";\n }", "public void setIDTipoTelefono(java.lang.String iDTipoTelefono) {\n\t\tIDTipoTelefono = iDTipoTelefono;\n\t}", "private void actualizarNombre(Persona persona){\n \n String nombre=IO_ES.leerCadena(\"Inserte el nombre\");\n persona.setNombre(nombre);\n }", "public String getTelefono() {\r\n\treturn telefono;\r\n}", "public String getTelefonoTI() {\n return this.telefonoTI;\n }", "public Builder setTelefon(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n telefon_ = value;\n onChanged();\n return this;\n }", "public void setTelefone(String telefone) {\n Consistencia.consisteNaoNuloNaoVazio(telefone, \"telefone\");\n\n this.telefone = telefone;\n }", "private void modificarPersona(PersonaDTO persona, Set<TelefonoDTO> telefonos, Set<DireccionDTO> direcciones,\n\t\t\tSet<CorreoElectronicoDTO> correos) throws CustomValidationException, CustomErrorException, Exception {\n\t\t//Recuperamos la persona\n\t\t//Verificamos cambio de DNI\n\t\tif (persona.getIdPersona() == null) {throw new CustomErrorException(CustomErrorException.ID_INEXISTENTE_PARA_MODIFICAR,this.getClass().getSimpleName());}\n\t\t\n\t\tPersonaDTO personaPersistente = obtenerPersona(persona.getIdPersona());\n\t\tif (!personaPersistente.getNroDni().equals(persona.getNroDni())) {\n\t\t\tif (gPersona.existePersonaPorDNI(persona.getNroDni())) {\n\t\t\t\tthrow new CustomValidationException(CustomValidationException.DNI_REPETIDO);\n\t\t\t};\n\t\t}\n\t\t\n\t\tSet<TelefonoDTO> nuevosTelefonos = new HashSet<TelefonoDTO>();\n\t\teliminarBorrados(telefonos,personaPersistente.getTelefonos());\n\t\tnuevosTelefonos.addAll(agregarNuevos(telefonos));\n\t\t//vuelvo a setear la lista en persona\n\t\tpersona.setTelefonos(null);\n\t\tSet <TelefonoDTO> telefonosPersona = new HashSet<TelefonoDTO>();\n\t\ttelefonosPersona.addAll(nuevosTelefonos);\n\t\tpersona.setTelefonos(telefonosPersona);\n\t\t\n\t\tSet<DireccionDTO> nuevasDirecciones = new HashSet<DireccionDTO>();\n\t\teliminarBorrados(direcciones, personaPersistente.getDirecciones());\n\t\tnuevasDirecciones.addAll(agregarNuevos(direcciones));\n\t\tpersona.setDirecciones(null);\n\t\tSet<DireccionDTO> direccionesPersona = new HashSet<DireccionDTO>();\n\t\tdireccionesPersona.addAll(nuevasDirecciones);\n\t\tpersona.setDirecciones(direccionesPersona); \n\t\t\n\t\tSet<CorreoElectronicoDTO> nuevosCorreos = new HashSet<CorreoElectronicoDTO>();\n\t\teliminarBorrados(correos, personaPersistente.getCorreos());\n\t\tnuevosCorreos.addAll(agregarNuevos(correos));\n\t\t//vuelvo a setear la lista en persona\n\t\tpersona.setCorreos(null);\n\t\tSet<CorreoElectronicoDTO> correosPersona = new HashSet<CorreoElectronicoDTO>();\n\t\tcorreosPersona.addAll(nuevosCorreos);\n\t\tpersona.setCorreos(correosPersona); \n\t\t\n\t\t// Llamo a modify para cerrar la operación;\n\t\tfor (TelefonoDTO t: telefonos) {\n\t\t\tt.setIdTelefono(modificarTelefono(Converter.toEntity(t))); \n\t\t}\n\t\t\n\t\tfor (DireccionDTO d: direcciones) {\n\t\t\td.setIdDireccion(modificarDireccion(Converter.toEntity(d)));\n\t\t}\n\t\t\n\t\tfor (CorreoElectronicoDTO c: correos) {\n\t\t\tc.setIdCorreoElectronico(modificarCorreoElectronico(Converter.toEntity(c)));\n\t\t}\n\t\t\n\t\tgPersona.modify(Converter.toEntity(persona));\n\t\t\n\t}", "@Override\n public void setPhone(java.lang.String phone) {\n _entityCustomer.setPhone(phone);\n }", "public void setTelefone(String telefone) {\n String oldTelefone = this.telefone;\n this.telefone = telefone;\n propertyChangeSupport.firePropertyChange(PROP_TELEFONE, oldTelefone, telefone);\n }", "public java.lang.String getIDTipoTelefono() {\n\t\treturn IDTipoTelefono;\n\t}", "public void setNumeroTelefono(java.lang.String numeroTelefono) {\n\t\t_telefonoSolicitudProducto.setNumeroTelefono(numeroTelefono);\n\t}", "public void setCuenta(String cuenta) {\r\n this.cuenta = cuenta;\r\n }", "public Persona(String nombre, String apellido, String email, String telefono){\n this.nombre = nombre;\n this.apellido = apellido;\n this.email = email;\n this.telefono = telefono;\n }", "@Test (expected = IllegalArgumentException.class)\n\tpublic void testSetTelephone() {\n\t\tUser user = new User();\n\t\tuser.setTelephone(\"\");\n\t\t//user.setTelephone(\"3393937210\");\n\t\t//assertEquals(\"3393937210\", user.getTelephone());\n\t\t}", "public java.lang.String getNumeroTelefono() {\n\t\treturn _telefonoSolicitudProducto.getNumeroTelefono();\n\t}", "public void setTipoTelefono(java.lang.String tipoTelefono) {\n\t\t_telefonoSolicitudProducto.setTipoTelefono(tipoTelefono);\n\t}", "public void setTelephone(String telephone) {\n\t\tthis.telephone = telephone;\n\t}", "public void setPhone(String phone);", "public void setNombreCompleto(String nombreCompleto);", "@Test\r\n public void testSetTelefoneCelular() {\r\n System.out.println(\"setTelefoneCelular\");\r\n String telefoneCelular = \"\";\r\n Integrante instance = new Integrante();\r\n instance.setTelefoneCelular(telefoneCelular);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "public Persona(int idPersona, String nombre, String apellido, String email, String telefono){\n this.idPersona = idPersona;\n this.nombre = nombre;\n this.apellido = apellido;\n this.email = email;\n this.telefono = telefono;\n \n }", "public void setCorreo(String aCorreo) {\r\n correo = aCorreo;\r\n }", "public void setTelephone(String telephone) {\n this.telephone = telephone == null ? null : telephone.trim();\n }", "public void setTelephone(String telephone) {\n this.telephone = telephone == null ? null : telephone.trim();\n }", "@Override public void realizarCobro(Persona persona){\n\tpersona.cuenta.retiro(120);\n }", "public void setContacto(String contacto) {\n this.contacto = contacto;\n }", "public void setContacto(String contacto) {\n this.contacto = contacto;\n }", "public void setInfo(String nombre, String apellidos, String telefono,\n String direccion) {\n _nombre = nombre;\n _apellidos = apellidos;\n _telefono = telefono;\n _direccion = direccion;\n }", "public com.politrons.avro.AvroPerson.Builder setPhoneNumber(java.lang.CharSequence value) {\n validate(fields()[3], value);\n this.phone_number = value;\n fieldSetFlags()[3] = true;\n return this; \n }", "public abstract void setUsuario(\n\t\tco.com.telefonica.atiempo.ejb.eb.UsuarioLocal anUsuario);", "private void resetPersona() {\n\n persona.setDocumento(0);\n persona.setEmail(\"\");\n persona.setNombre(\"\");\n persona.setApellido(\"\");\n persona.setPassword(\"\");\n persona.setTelefono(0);\n persona.setFoto(\"\");\n \n }", "@Override\r\n\tpublic Loja editar(String nomeResponsavel, int telefoneEmpresa, String rua, String cidade, String estado, String pais,\r\n\t\t\tint cep, int cnpj, String razaoSocial, String email, String nomeEmpresa, String senha) {\n\t\treturn null;\r\n\t}", "public void agregarPersona(PersonaDTO persona, Set<TelefonoDTO> telefonos, Set<DireccionDTO> direcciones,\n\t\t\tSet<CorreoElectronicoDTO> correos) throws CustomErrorException, CustomValidationException {\n\t\ttry {\n\t\t\t// Vemos si tiene lo necesario, sino salimos\n\t\t\tif (telefonos.size() == 0) {\n\t\t\t\tthrow new CustomValidationException(CustomValidationException.TELEFONO_NECESARIO);\n\t\t\t}\n\t\t\tif (direcciones.size() == 0) {\n\t\t\t\tthrow new CustomValidationException(CustomValidationException.DIRECCION_NECESARIA);\n\t\t\t}\n\t\t\tif (correos.size() == 0) {\n\t\t\t\tthrow new CustomValidationException(CustomValidationException.CORREO_NECESARIO);\n\t\t\t}\n\t\t\t//Evaluamos si se trata de un modificacion\n\t\t\tif (persona.getIdPersona() == null) {\n\t\t\t\t//Es un alta\n\t\t\t\t//Persistir las entidades agregadas\n\t\t\t\tfor (TelefonoDTO t: telefonos) {\n\t\t\t\t\tt.setIdTelefono(persistirTelefono(Converter.toEntity(t))); \n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor (DireccionDTO d: direcciones) {\n\t\t\t\t\td.setIdDireccion(persistirDireccion(Converter.toEntity(d)));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor (CorreoElectronicoDTO c: correos) {\n\t\t\t\t\tc.setIdCorreoElectronico(persistirCorreoElectronico(Converter.toEntity(c)));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Las entidades están peristentes, asignarlas a la persona\n\t\t\t\tpersona.setTelefonos(telefonos);\n\t\t\t\tpersona.setCorreos(correos);\n\t\t\t\tpersona.setDirecciones(direcciones);\n\t\t\t\t\n\t\t\t\t//persistir la persona\n\t\t\t\tgPersona.add(Converter.toEntity(persona));\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tmodificarPersona(persona, telefonos, direcciones, correos);\n\t\t\t}\n\t\t\t\n\t\t} catch(CustomErrorException cer) {\n\t\t\tthrow cer;\n\t\t} catch (Exception e) {\n\t\t\tif(persona.getIdPersona() == null) {\n\t\t\t\ttry {\n\t\t\t\t\tfor (TelefonoDTO t : telefonos) {\n\t\t\t\t\t\tgTelefono.delete(Converter.toEntity(t));\n\t\t\t\t\t}\n\t\t\t\t\tfor (DireccionDTO d : direcciones) {\n\t\t\t\t\t\tgDireccion.delete(Converter.toEntity(d));\n\t\t\t\t\t}\n\t\t\t\t\tfor (CorreoElectronicoDTO c : correos) {\n\t\t\t\t\t\tgCorreoElectronico.delete(Converter.toEntity(c));\n\t\t\t\t\t} \n\t\t\t\t}catch (CustomErrorException cer) {\n\t\t\t\t\tthrow cer;\n\t\t\t\t}catch (Exception e2) {\n\t\t\t\t\tthrow new CustomErrorException(CustomErrorException.ERROR_SERVICIO,this.getClass().getSimpleName(),e.getStackTrace());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void setCorreo(String correo) {this.correo = correo;}", "public void setContacto(String contacto) {\r\n\t\tthis.contacto = contacto;\r\n\t}", "public void setNumero(int numero) { this.numero = numero; }", "public Usuario(int idUsuario, String nome, String email, String telefone, int motorista){\n\t\tthis.idUsuario = idUsuario;\n\t\tthis.nome = nome;\n\t\tthis.email = email;\n\t\tthis.telefone = telefone;\n\t\tthis.motorista = motorista;\n\t}", "@Test\r\n public void testSetTelefoneComercial() {\r\n System.out.println(\"setTelefoneComercial\");\r\n String telefoneComercial = \"\";\r\n Integrante instance = new Integrante();\r\n instance.setTelefoneComercial(telefoneComercial);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "public void setTipoDeDatos(String tipoDeDatos) {\n if (!this.tiposDeDatoEnLaBD.contains(tipoDeDatos)) {\n try {\n throw new ExcepcionPersonalizada(\n \"El tipo de datos '\"+tipoDeDatos+\"' no existe. \\n\"\n + \"Si es un error por favor corrige la clase ParametrosDeCampo\",\n this,\n \"setTipoDeDatos\");\n } catch (ExcepcionPersonalizada ex) {\n Logger.getLogger(ParametrosDeCampo.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n \n this.tipoDeDatos = tipoDeDatos;\n }", "public void setCuenta(String cuenta) {\n\t\tthis.cuenta = cuenta;\n\t}", "public void setPhoneNo(String value) {\n setAttributeInternal(PHONENO, value);\n }", "public void setNombreCompleto(String aNombreCompleto) {\r\n nombreCompleto = aNombreCompleto;\r\n }", "@Override\n public void setCellPhone(java.lang.String cellPhone) {\n _entityCustomer.setCellPhone(cellPhone);\n }", "public void setTEL_NUMBER(java.lang.String value)\n {\n if ((__TEL_NUMBER == null) != (value == null) || (value != null && ! value.equals(__TEL_NUMBER)))\n {\n _isDirty = true;\n }\n __TEL_NUMBER = value;\n }", "public void crearPersona(){\r\n persona = new Persona();\r\n persona.setNombre(\"Jose\");\r\n persona.setCedula(12345678);\r\n }", "public void setTitolo(String titolo) {\n if (titolo == null) {\n System.out.println(\"Hai inserito un titolo errato!!\");\n } else {\n this.titolo = titolo;\n }\n }", "public void setPhone(final String value)\n\t{\n\t\tsetPhone( getSession().getSessionContext(), value );\n\t}", "public void setPhone(final String value)\n\t{\n\t\tsetPhone( getSession().getSessionContext(), value );\n\t}", "public void setTelphone(String telphone) {\n this.telphone = telphone;\n }", "public void setTelphone(String telphone) {\n this.telphone = telphone;\n }", "public void setUsuario(java.lang.String newUsuario);", "public void tocarTelefone() {\n System.out.println(\"Telefone \" + getNumero() + \" está tocando!\");\n notificarTodos();\n }", "public void setEstadoPersona(String p) { this.estadoPersona = p; }", "void setPhone(int phone);", "public void setCorreo(String correo){\r\n this.correo = correo;\r\n }", "public void setEmpresa(Empresa empresa)\r\n/* 89: */ {\r\n/* 90:141 */ this.empresa = empresa;\r\n/* 91: */ }", "public void setNombreCompleto(java.lang.String nombreCompleto)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NOMBRECOMPLETO$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NOMBRECOMPLETO$0);\n }\n target.setStringValue(nombreCompleto);\n }\n }", "public void actualizarUsuario(String cedula,String name ,String lastname , String city ,String phone ,String email,String password) throws BLException;", "public void setPhone(String phone)\r\n/* 46: */ {\r\n/* 47:58 */ this.phone = phone;\r\n/* 48: */ }", "public abstract void setEmpresa(\n\t\tco.com.telefonica.atiempo.ejb.eb.EmpresaLocal anEmpresa);", "@Override\n public void definirId(Endereco objeto, int id) {\n objeto.setId(id);\n }", "public void actualizarUsuario(Integer id, String nombre, long documento, String email, Boolean activo) throws Exception;", "@Override public void setEntorno(String nombre, String valor) {\r\n TRAZADOR.info(nombre + \" = \" + valor);\r\n this.sesion.setEntorno(nombre, valor);\r\n }", "public void setPhone(String phone) {\r\n // Bouml preserved body begin 00041002\r\n\t this.phoneNumber = phone;\r\n // Bouml preserved body end 00041002\r\n }", "public String getNumeroPersona() {\n\t\treturn numeroPersona;\n\t}", "public void setTelePhone(java.lang.String telePhone) {\r\n this.telePhone = telePhone;\r\n }", "public void setTel(Integer tel) {\n this.tel = tel;\n }", "@Test\r\n public void testSetTelefoneResidencial() {\r\n System.out.println(\"setTelefoneResidencial\");\r\n String telefoneResidencial = \"\";\r\n Integrante instance = new Integrante();\r\n instance.setTelefoneResidencial(telefoneResidencial);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "public void setCuenta(Cuenta cuenta) {\r\n this.cuenta = cuenta;\r\n fireTableDataChanged();\r\n }", "public void setPhone(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(PHONE_PROP.get(), value);\n }", "public void set_phone(String Phone)\n {\n phone =Phone;\n }", "public Usuario(String nombreUsuario, String correo, String telefono) {\n\t\tsuper();\n\t\tthis.nombreUsuario = nombreUsuario;\n\t\tthis.correo = correo;\n\t\tthis.telefono = telefono;\n\t}", "public void setTelNo(String telNo) {\n this.telNo = telNo;\n }", "public void atenderTelefone() {\n System.out.println(\"Telefone \" + getNumero() + \" atendido!\");\n notificarTodos();\n }", "public void setNombre(String nombre){\n if(nombre == null){\n throw new IllegalArgumentException(\"Nombre de usuario igual a null\");\n }\n this.nombre = nombre;\n }", "public void setServicioCreditoTributario(ServicioCreditoTributario servicioCreditoTributario)\r\n/* 96: */ {\r\n/* 97:117 */ this.servicioCreditoTributario = servicioCreditoTributario;\r\n/* 98: */ }", "public void setPatronAutorizacion(String patronAutorizacion)\r\n/* 219: */ {\r\n/* 220:369 */ this.patronAutorizacion = patronAutorizacion;\r\n/* 221: */ }", "public void setNombreUsuario(String nombreUsuario) {\r\n this.nombreUsuario = nombreUsuario;\r\n }", "public void setUserPhone( String userPhone )\n {\n this.userPhone = userPhone;\n }", "public void setEmail(String p) { this.idcorreo = p; }" ]
[ "0.7743877", "0.7585337", "0.7555974", "0.7465308", "0.728326", "0.7083354", "0.70382255", "0.6995988", "0.68164027", "0.66786027", "0.65593237", "0.6513133", "0.6513133", "0.6452282", "0.6256307", "0.624392", "0.61952096", "0.61896306", "0.61714345", "0.60827076", "0.59683305", "0.59469914", "0.5940328", "0.59389645", "0.59352607", "0.58935523", "0.5845662", "0.57834977", "0.57387346", "0.57154906", "0.5709474", "0.57066256", "0.5666508", "0.564054", "0.5624742", "0.5621112", "0.5618995", "0.561195", "0.5607437", "0.5607415", "0.5601632", "0.559057", "0.5574616", "0.5574616", "0.55710346", "0.55209637", "0.55209637", "0.55110174", "0.55059654", "0.5501592", "0.55003774", "0.5489811", "0.54888076", "0.5486663", "0.54816675", "0.5454708", "0.5442958", "0.5435504", "0.54331154", "0.5428669", "0.54274553", "0.54227906", "0.541905", "0.5416755", "0.54165477", "0.5414777", "0.54145455", "0.54145455", "0.54112643", "0.54112643", "0.54064554", "0.53989136", "0.53953433", "0.5394344", "0.5387273", "0.53839606", "0.5374917", "0.53727186", "0.5369978", "0.53555435", "0.5355254", "0.5346295", "0.5337439", "0.53372073", "0.5334421", "0.5334197", "0.53333503", "0.5320246", "0.5313865", "0.5308507", "0.5306861", "0.5280757", "0.5280313", "0.527818", "0.5277727", "0.52433056", "0.5243127", "0.5239628", "0.5238712", "0.52359873" ]
0.73508465
4
A representation of the model object 'Java Evaluator'.
public interface JavaEvaluator extends Evaluators { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "JavaEvaluator createJavaEvaluator();", "public Evaluator getEvaluator() {\n return evaluator;\n }", "public interface Evaluator\n{\n /**\n * Return true if the given object is valid as an expression to\n * the evaluator. If an object is a valid expression, then the\n * evaluator is, in general, able to <code>eval()</code> it into\n * a result (or at least reasonably attempt to do so).\n *\n * @param value the value to check\n * @return true if it is valid as an expression, false if not\n */\n public boolean isExpression (Object value);\n\n /**\n * Return true if the given object is a possible result of evaluation.\n * If this returns true, then it is conceivable that the given object\n * was the result of a call to <code>eval()</code> on this evaluator.\n *\n * @param value the value to check\n * @return true if it is a possible result, false if not\n */\n public boolean isResult (Object value);\n\n /**\n * Evaluate the given value as an expression, yielding some result\n * value.\n *\n * @param expression the thing to evaluate\n * @return the result of evaluation\n */\n public Object eval (Object expression);\n}", "@Override\r\n public Evaluation getEvaluation ()\r\n {\r\n return evaluation;\r\n }", "public EvaluatorRegistry getEvaluatorRegistry() {\r\n return this.evaluatorRegistry;\r\n }", "public String getEvaluate() {\n return evaluate;\n }", "public String getEvaluate() {\r\n return evaluate;\r\n }", "public java.lang.Class getJavaClass()\n {\n return de.tif.jacob.ruleengine.castor.Decision.class;\n }", "@Override\n void execute(RolapEvaluator evaluator) {\n }", "public String getEvaluatorDescriptorString() {\n final String descriptorString =\n Utilities.getEvaluatorDescriptorString(jallocatedEvaluator.getEvaluatorDescriptor());\n LOG.log(Level.INFO, \"allocated evaluator - serialized evaluator descriptor: \" + descriptorString);\n return descriptorString;\n }", "public String toString()\n\t{\n\t\treturn \"java\";\n\t}", "@Override\n\tpublic Evaluate getModel() {\n\t\treturn evaluate;\n\t}", "public String getSelfEvaluation() {\n return selfEvaluation;\n }", "JavaExpression createJavaExpression();", "abstract public interface Interpreter {\n\n /**\n * Evaluates a given JavaScript expression for a given userid.\n * \n * @param expression the expression to evaluate\n * @return the result of evaluating the expression\n */\n public String evaluate(String expression);\n}", "public String evaluatorTipText() {\n\n\t\treturn \"Determines how attributes/attribute subsets are evaluated.\";\n\t}", "public GroovyScriptEvaluator() {\n\t}", "private IJavaModel getJavaModel() {\n\t\treturn JavaCore.create(getWorkspaceRoot());\n\t}", "public abstract Object eval();", "private PropertyEvaluator createEvaluator() {\n return helper.getStandardPropertyEvaluator();\n }", "abstract public Vertex getEvaluationResult();", "public Class getEvaluationType() {\n return lho.getOperandType();\n }", "public TestRevealEvaluator(String name) {\n super(name);\n }", "@Override\n public String toString() {\n return \"Expression\";\n }", "public Integer getEvaluate() {\n return evaluate;\n }", "public interface EvaluatorFactory {\n Evaluator createEvaluator(RelationalOperator operator);\n}", "public String eval()\r\n\t{\r\n\t\treturn eval(null, null);\r\n\t}", "Hojas eval();", "public static IEvaluator getEvaluator( WorkflowPackage pkg, ServiceManager svcMgr )\r\n throws RepositoryException\r\n {\r\n\r\n // Determine script type; default is text/xpath.\r\n Script script = pkg.getScript();\r\n String contentType = script == null\r\n ? System.getProperty( \"org.obe.script\", \"text/xpath\" )\r\n : script.getType();\r\n return svcMgr.getEvaluatorRepository().findEvaluator( contentType );\r\n }", "public Evaluator(Runtime context, ExecutorService executor) {\n\t\t\tsuper(\"evaluator\", SCHEMA);\n\t\t\tthis.context = context;\n\t\t\tthis.executor = executor;\n\t\t}", "public org.drip.measure.dynamics.DiffusionEvaluator evaluator()\n\t{\n\t\treturn _de;\n\t}", "public String getJoperator() {\n return joperator;\n }", "ScriptEvaluator createScriptEvaluator();", "public String toString()\r\n\t{\r\n\t\tcheckInitialization();\r\n\t\treturn equationString + \" = \" + getResult();\r\n\t}", "public interface CalcModel {\n\t/**\n\t * Adds a listener to the model.\n\t * \n\t * @param l\n\t * listener to ad\n\t */\n\tvoid addCalcValueListener(CalcValueListener l);\n\n\t/**\n\t * Removes a listener from the model.\n\t * \n\t * @param l\n\t * listener to remove\n\t */\n\tvoid removeCalcValueListener(CalcValueListener l);\n\n\t/**\n\t * Returns a string representation of the current value in the calculator.\n\t * \n\t * @return string representation of the current value\n\t */\n\tString toString();\n\n\t/**\n\t * Returns a current value in calculator.\n\t * \n\t * @return current value in calculator\n\t */\n\tdouble getValue();\n\n\t/**\n\t * Sets the current value of the calculator to the given one.\n\t * \n\t * @param value\n\t * value to set\n\t */\n\tvoid setValue(double value);\n\n\t/**\n\t * Clears the current value in the calculator (sets it to 0).\n\t */\n\tvoid clear();\n\n\t/**\n\t * Clears the current value (sets it to 0), clears the active operand and clears\n\t * the pending binary operator.\n\t */\n\tvoid clearAll();\n\n\t/**\n\t * Swaps the sign of the current value in the calculator.\n\t */\n\tvoid swapSign();\n\n\t/**\n\t * Inserts a decimal point into the current number if one already doesn't exist.\n\t */\n\tvoid insertDecimalPoint();\n\n\t/**\n\t * Inserts a digit into the current number at the right most position.\n\t * \n\t * @param digit\n\t * new digit to be inserted\n\t */\n\tvoid insertDigit(int digit);\n\n\t/**\n\t * Checks if the active operand is set.\n\t * \n\t * @return true if active operand is set, false otherwise\n\t */\n\tboolean isActiveOperandSet();\n\n\t/**\n\t * Returns the active operand if it is set.\n\t * \n\t * @return active operand\n\t * @throws IllegalStateException\n\t * if active operand isn't set\n\t */\n\tdouble getActiveOperand();\n\n\t/**\n\t * Sets the active operand.\n\t * \n\t * @param activeOperand\n\t * a value to set as an active operand\n\t */\n\tvoid setActiveOperand(double activeOperand);\n\n\t/**\n\t * Clears the active operand.\n\t */\n\tvoid clearActiveOperand();\n\n\t/**\n\t * Returns pending binary operation.\n\t * \n\t * @return pending binary operation or null if it is not set\n\t */\n\tDoubleBinaryOperator getPendingBinaryOperation();\n\n\t/**\n\t * Sets pending binary operation.\n\t * \n\t * @param op\n\t * binary operator to set\n\t */\n\tvoid setPendingBinaryOperation(DoubleBinaryOperator op);\n}", "public ResourceReferenceDt getInterpreterElement() { \n\t\tif (myInterpreter == null) {\n\t\t\tmyInterpreter = new ResourceReferenceDt();\n\t\t}\n\t\treturn myInterpreter;\n\t}", "public EvaluationResultIdentifier getEvaluationResultIdentifier() {\n return evaluationResultIdentifier;\n }", "Result evaluate();", "String evaluate();", "public static List<EvaluatorBase> getEvaluators(Project project) {\n\t\tfinal List<EvaluatorBase> ret = new ArrayList<>();\n\t\t//ret.add(new Readability(project));\n\t\tret.add(new MutationAnalysis(project));\n\t\t//ret.add(new Performance(project));\n\t\t//ret.add(new RuntimeOutput(project));\n\t\t//ret.add(new JavadocOutput(project));\n\t\t//ret.add(new CompileOutput(project));\n\t\treturn ret;\n\t}", "public Calculator() {\r\n\t\tthis.operator = new Addition();\r\n\t}", "@RegionEffects(\"none\")\n Class<T> getEvaluatorClass();", "float getEvaluationResult();", "Value getInterpretation();", "public String getEvaluationCondition()\r\n {\r\n return evaluationCondition;\r\n }", "public interface IExpressionRuntime\n{\n Object evaluate();\n}", "Interpreter getInterpreter();", "public interface QueryEvaluatorStructure {\n\n long getResultCount();\n\n void setResultCount(long count);\n\n TupleExpr getPlan();\n\n void setPlan(TupleExpr tupleExpr);\n\n void setTime(long time);\n\n long getTime();\n}", "public List<EntityAndArguments> getEvaluationList() {\r\n\t\t\treturn evaluationList;\r\n\t\t}", "public interface Operator {\n /**\n * String literal to enter operator\n * @return\n */\n String getKey();\n\n void execute(EvaluatedParameters evaluatedParameters) throws ProcessorException;\n}", "public IntegerSequence.Incrementor getEvaluationsCounter() {\r\n return this.evaluations;\r\n }", "@Public\n@DriverSide\n@Provided\npublic interface EvaluatorRequestor {\n\n /**\n * Submit the request for new evaluator.\n * The response will surface in the AllocatedEvaluator message handler.\n */\n public void submit(final EvaluatorRequest req);\n\n /**\n * Access to the {@link ResourceCatalog} for the cluster this Factory has\n * access to.\n *\n * @return the {@link ResourceCatalog} for the cluster.\n */\n public ResourceCatalog getResourceCatalog();\n}", "public String toString() {\n return PARSER_KEY;\n }", "public MathEval() {\r\n super();\r\n\r\n constants=new TreeMap<String,Double>(String.CASE_INSENSITIVE_ORDER);\r\n setConstant(\"E\" ,Math.E);\r\n setConstant(\"Euler\" ,0.577215664901533D);\r\n setConstant(\"LN2\" ,0.693147180559945D);\r\n setConstant(\"LN10\" ,2.302585092994046D);\r\n setConstant(\"LOG2E\" ,1.442695040888963D);\r\n setConstant(\"LOG10E\",0.434294481903252D);\r\n setConstant(\"PHI\" ,1.618033988749895D);\r\n setConstant(\"PI\" ,Math.PI);\r\n\r\n variables=new TreeMap<String,Double>(String.CASE_INSENSITIVE_ORDER);\r\n\r\n functions=new TreeMap<String,FunctionHandler>(String.CASE_INSENSITIVE_ORDER);\r\n\r\n offset=0;\r\n isConstant=false;\r\n }", "public String getJava() {\n return null; //To change body of implemented methods use File | Settings | File Templates.\n }", "public ElaboratorVisitor() {\r\n\t\tthis.classTable = new ClassTable();\r\n\t\tthis.methodTable = new MethodTable();\r\n\t\tthis.currentClass = null;\r\n\t\tthis.type = null;\r\n\r\n\t}", "double eval();", "public interface Expression {\n\t\n\t/**\n\t * Evaluates an arithmetic expression.\n\t * \n\t * @return the value to which this expression evaluates\n\t */\n\tdouble eval();\n\t\n\t/**\n\t * Creates a String representation of an arithmetic expression.\n\t * \n\t * @return this expression in standard form, suitable for inclusion\n\t * in a program or text document (e.g., \"(2 - 4 * (7 + 2))\"). Note\n\t * that the string can have \"unnecessary\" parentheses as this (toy)\n\t * system does not know about operator precedence. \n\t */\n\tString toString();\n\n}", "public String operator() {\n return this.operator;\n }", "@Override\n public String toString() {\n return op.toString();\n }", "public final expressionParser.evaluator_return evaluator() throws RecognitionException {\n expressionParser.evaluator_return retval = new expressionParser.evaluator_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token STRING3=null;\n expressionParser.stringExpression_return stringExpression1 = null;\n\n expressionParser.freeExpression_return freeExpression2 = null;\n\n\n CommonTree STRING3_tree=null;\n\n try {\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:26:3: ( ( stringExpression | freeExpression | STRING )* )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:27:3: ( stringExpression | freeExpression | STRING )*\n {\n root_0 = (CommonTree)adaptor.nil();\n\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:27:3: ( stringExpression | freeExpression | STRING )*\n loop1:\n do {\n int alt1=4;\n switch ( input.LA(1) ) {\n case STRING:\n {\n int LA1_2 = input.LA(2);\n\n if ( (synpred1_expression()) ) {\n alt1=1;\n }\n else if ( (synpred3_expression()) ) {\n alt1=3;\n }\n\n\n }\n break;\n case EPRESSIONCHAR:\n {\n alt1=1;\n }\n break;\n case IDENT:\n case INTEGER:\n case 36:\n case 38:\n case 39:\n case 46:\n case 47:\n case 50:\n case 51:\n {\n alt1=2;\n }\n break;\n\n }\n\n switch (alt1) {\n \tcase 1 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:27:4: stringExpression\n \t {\n \t pushFollow(FOLLOW_stringExpression_in_evaluator98);\n \t stringExpression1=stringExpression();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) adaptor.addChild(root_0, stringExpression1.getTree());\n\n \t }\n \t break;\n \tcase 2 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:28:5: freeExpression\n \t {\n \t pushFollow(FOLLOW_freeExpression_in_evaluator105);\n \t freeExpression2=freeExpression();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) adaptor.addChild(root_0, freeExpression2.getTree());\n\n \t }\n \t break;\n \tcase 3 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:29:5: STRING\n \t {\n \t STRING3=(Token)match(input,STRING,FOLLOW_STRING_in_evaluator111); if (state.failed) return retval;\n \t if ( state.backtracking==0 ) {\n \t STRING3_tree = (CommonTree)adaptor.create(STRING3);\n \t adaptor.addChild(root_0, STRING3_tree);\n \t }\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop1;\n }\n } while (true);\n\n\n }\n\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "public EvaluationStep() {\n ApplicationSession.setEvaluationStepInstance(this);\n }", "public Bmv2Interpreter interpreter() {\n return interpreter;\n }", "protected abstract Value evaluate();", "public ResourceReferenceDt getInterpreter() { \n\t\tif (myInterpreter == null) {\n\t\t\tmyInterpreter = new ResourceReferenceDt();\n\t\t}\n\t\treturn myInterpreter;\n\t}", "@Override\r\n\tpublic int getEvaluations() {\n\t\treturn 0;\r\n\t}", "public interface ListEvaluation extends Metric {\n /**\n * Adds generated list for a specific user for internal calculation\n * \n * @param user\n * A target {@link User} which normally comes from test data\n * @param list\n * Generate item list with related predicted rating for a given\n * {@link User}\n */\n void addRecommendations(User user, Map<Integer, Float> list);\n\n /**\n * Returns the calculated result\n * \n * @return The calculated result\n */\n float getEvaluationResult();\n \n /**\n * Set train data. Train data neede for some metrics such as popularity\n * @param trainData\n */\n void setTrainData(DataModel trainData);\n}", "Evaluator getRequiresEvaluator()\n{\n return new Requires();\n}", "public interface Calculator extends CalculatorEventContainer, HistoryControl<CalculatorHistoryState> {\n\n void init();\n\n /*\n **********************************************************************\n *\n * CALCULATIONS\n *\n **********************************************************************\n */\n\n void evaluate();\n\n void evaluate(@NotNull Long sequenceId);\n\n void simplify();\n\n @NotNull\n CalculatorEventData evaluate(@NotNull JsclOperation operation,\n @NotNull String expression);\n\n @NotNull\n CalculatorEventData evaluate(@NotNull JsclOperation operation,\n @NotNull String expression,\n @NotNull Long sequenceId);\n\n /*\n **********************************************************************\n *\n * CONVERSION\n *\n **********************************************************************\n */\n\n boolean isConversionPossible(@NotNull Generic generic, @NotNull NumeralBase from, @NotNull NumeralBase to);\n\n @NotNull\n CalculatorEventData convert(@NotNull Generic generic, @NotNull NumeralBase to);\n\n /*\n **********************************************************************\n *\n * EVENTS\n *\n **********************************************************************\n */\n @NotNull\n CalculatorEventData fireCalculatorEvent(@NotNull CalculatorEventType calculatorEventType, @Nullable Object data);\n\n @NotNull\n CalculatorEventData fireCalculatorEvent(@NotNull CalculatorEventType calculatorEventType, @Nullable Object data, @NotNull Object source);\n\n @NotNull\n CalculatorEventData fireCalculatorEvent(@NotNull CalculatorEventType calculatorEventType, @Nullable Object data, @NotNull Long sequenceId);\n\n\t@NotNull\n\tPreparedExpression prepareExpression(@NotNull String expression) throws CalculatorParseException;\n}", "@SuppressWarnings(\"serial\")\r\n\tprotected Action getEvaluateAction() {\r\n\t\tif (this.evaluateAction != null)\r\n\t\t\treturn this.evaluateAction; // Already defined;\r\n\t\tAction action = new AbstractAction(\"Evaluate\") {\r\n\t\t\tpublic void actionPerformed(ActionEvent ev) {\r\n\t\t\t\tAttrInstanceMember member = getSelectedMember();\r\n\t\t\t\tif (member == null)\r\n\t\t\t\t\treturn;\r\n\t\t\t\tHandlerExpr expr = member.getExpr();\r\n\t\t\t\tif (expr == null)\r\n\t\t\t\t\treturn;\r\n\t\t\t\ttry {\r\n\t\t\t\t\texpr.evaluate(((AttrInstance) ExtendedTupleEditorSupport.this.tuple).getContext());\r\n\t\t\t\t\tmember.setExpr(expr);\r\n\t\t\t\t} catch (AttrHandlerException ex) {\r\n\t\t\t\t\tsetMessage(ex.getMessage());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t\taction.putValue(Action.SHORT_DESCRIPTION, \"Evaluates the expression\");\r\n\t\taddMemberAction(action);\r\n\t\tthis.evaluateAction = action;\r\n\t\treturn action;\r\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getEvaluationResultIdentifier() != null) sb.append(\"EvaluationResultIdentifier: \" + getEvaluationResultIdentifier() + \",\");\n if (getComplianceType() != null) sb.append(\"ComplianceType: \" + getComplianceType() + \",\");\n if (getResultRecordedTime() != null) sb.append(\"ResultRecordedTime: \" + getResultRecordedTime() + \",\");\n if (getConfigRuleInvokedTime() != null) sb.append(\"ConfigRuleInvokedTime: \" + getConfigRuleInvokedTime() + \",\");\n if (getAnnotation() != null) sb.append(\"Annotation: \" + getAnnotation() + \",\");\n if (getResultToken() != null) sb.append(\"ResultToken: \" + getResultToken() );\n sb.append(\"}\");\n return sb.toString();\n }", "public long getEvaluationTime() {\r\n\t\treturn evaluationTime;\r\n\t}", "public void submit(final EvaluatorRequest req);", "public ArrayList<Evaluation> getEvaluations() {\r\n ArrayList<Evaluation> result = new ArrayList<Evaluation>();\r\n result.addAll(evaluations);\r\n return result;\r\n }", "public String toString() {\n return m_expression;\n }", "public interface EvaluatedMessage {\n\n public PDPEvaluation getEvaluation();\n\n public void setEvaluation( PDPEvaluation evaluation );\n\n}", "@Override\n\tpublic String toString() {\n\t\treturn String.format(\" %s %s\", operador, exp);\n\t}", "public interface Program {\n\n static EvalResult newEvalResult(Val val, EvalDetails evalDetails) {\n return new EvalResult(val, evalDetails);\n }\n\n /**\n * Eval returns the result of an evaluation of the Ast and environment against the input vars.\n *\n * <p>The vars value may either be an `interpreter.Activation` or a `map[string]interface{}`.\n *\n * <p>If the `OptTrackState` or `OptExhaustiveEval` flags are used, the `details` response will be\n * non-nil. Given this caveat on `details`, the return state from evaluation will be:\n *\n * <ul>\n * <li>`val`, `details`, `nil` - Successful evaluation of a non-error result.\n * <li>`val`, `details`, `err` - Successful evaluation to an error result.\n * <li>`nil`, `details`, `err` - Unsuccessful evaluation.\n * </ul>\n *\n * <p>An unsuccessful evaluation is typically the result of a series of incompatible `EnvOption`\n * or `ProgramOption` values used in the creation of the evaluation environment or executable\n * program.\n */\n EvalResult eval(Object vars);\n\n final class EvalResult {\n private final Val val;\n private final EvalDetails evalDetails;\n\n private EvalResult(Val val, EvalDetails evalDetails) {\n this.val = val;\n this.evalDetails = evalDetails;\n }\n\n public Val getVal() {\n return val;\n }\n\n public EvalDetails getEvalDetails() {\n return evalDetails;\n }\n }\n}", "public EvaluationContext getContext() {\n return context;\n }", "public interface Calculator extends Remote {\n\tString add(int x, int y) throws RemoteException;\n\n\n\tString subtract(int x, int y) throws RemoteException;\n\n\n\tString divide(int x, int y) throws RemoteException;\n\n\n\tString multiply(int x, int y) throws RemoteException;\n}", "private Expr expression() {\n return assignment();\n }", "@ApiModelProperty(value = \"The expression that is to be opimized. \")\n\n\n public String getExpression() {\n return expression;\n }", "boolean isEvaluable();", "private String[] evaluate()\n {\n //there must be some recommender selected by the user on the UI\n if (selectedRecommenderPanel.getObject() == null\n || selectedRecommenderPanel.getObject().getTool() == null) {\n LOG.error(\"Please select a recommender from the list\");\n return null;\n }\n\n //get all the source documents related to the project\n Map<SourceDocument, AnnotationDocument> listAllDocuments = documentService\n .listAllDocuments(project, userDao.getCurrentUser());\n\n //create a list of CAS from the pre-annotated documents of the project\n List<CAS> casList = new ArrayList<>();\n listAllDocuments.forEach((source, annotation) -> {\n try {\n CAS cas = documentService.createOrReadInitialCas(source);\n casList.add(cas);\n }\n catch (IOException e1) {\n LOG.error(\"Unable to render chart\", e1);\n return;\n }\n });\n \n IncrementalSplitter splitStrategy = new IncrementalSplitter(TRAIN_PERCENTAGE,\n INCREMENT, LOW_SAMPLE_THRESHOLD);\n\n @SuppressWarnings(\"rawtypes\")\n RecommendationEngineFactory factory = recommenderRegistry\n .getFactory(selectedRecommenderPanel.getObject().getTool());\n RecommendationEngine recommender = factory.build(selectedRecommenderPanel.getObject());\n \n if (recommender == null) {\n LOG.warn(\"Unknown Recommender selected\");\n return null;\n }\n \n if (!evaluate) {\n return getEvaluationScore(evaluationResults);\n }\n\n evaluationResults = new ArrayList<EvaluationResult>();\n \n // create a list of comma separated string of scores from every iteration of\n // evaluation.\n while (splitStrategy.hasNext()) {\n splitStrategy.next();\n\n try {\n EvaluationResult evaluationResult = recommender.evaluate(casList, splitStrategy);\n \n if (evaluationResult.isEvaluationSkipped()) {\n LOG.warn(\"Evaluation skipped. Chart cannot to be shown\");\n continue;\n }\n\n evaluationResults.add(evaluationResult);\n }\n catch (RecommendationException e) {\n LOG.error(e.toString(),e);\n continue;\n }\n }\n\n return getEvaluationScore(evaluationResults);\n }", "@Override\n\tpublic String toString() {\n\t\treturn String.format(\"%s[%s]\", name.getValue().getSValue(), exprNode.toString());\n\t}", "public String evaluate(Node root){\n\t\tObject[] args;\n\t\tClass[] types;\n\t\tint i= 0;\n\t\tNode nxt;\n\t\tString fun;\n\t\tfun = root.getValue();\n\t\tClass c=null;\n\t\t\n\t\tLinkedList<Node> children = root.getChildren();\n\n\t\tIterator<Node> iter = children.listIterator();\n\t\tif (!iter.hasNext()){\n\t\t\treturn fun;\n\t\t}\n\t\ttypes= new Class[children.size()];\n\t\targs = new Object[children.size()];\n\t\t\n\t\t//populates types[] for getmethod and args[] for invoke\n\t\twhile (iter.hasNext()) {\n\t\t\tnxt = iter.next();\n\t\t\tfun = evaluate(nxt);\n\t\t\tswitch ( root.getReturnType()[i+1] & 0b1111 ) {\n\t\t\t\t//the argument should be a string\n\t\t\t\tcase STRING:\n\t\t\t\t\tc=String.class;\n\t\t\t\t\targs[i]=fun.replace(\"\\\"\",\"\");\n\t\t\t\t\tbreak;\n\t\t\t\t//the argument should be a float primitive\n\t\t\t\tcase FLOAT:\n\t\t\t\t\tc=float.class;\n\t\t\t\t\targs[i]=new Float(Float.parseFloat(fun));\n\t\t\t\t\tbreak;\n\t\t\t\t//the argument should be a int primitive\n\t\t\t\tcase INTEGER:\n\t\t\t\t\tc=int.class;\n\t\t\t\t\targs[i]=new Integer(Integer.parseInt(fun));\n\t\t\t\t\tbreak;\n\t\t\t\t//the argument should be a Float class\n\t\t\t\tcase BIGFLOAT:\n\t\t\t\t\tc=Float.class;\n\t\t\t\t\targs[i]=new Float(Float.parseFloat(fun));\n\t\t\t\t\tbreak;\n\t\t\t\t//the argument should be an Integer class\n\t\t\t\tcase BIGINTEGER:\n\t\t\t\t\tc=Integer.class;\n\t\t\t\t\targs[i]=new Integer(Integer.parseInt(fun));\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\n\t\t\ttypes[i]=c;\n\t\t\ti ++;\n\t\t\t\n\t\t}\n\t\tfun = root.getValue();\n\t\t\n\t\ttry {\n\t\t\t//get the method at this node and apply it to the evaluation of its children\n\t\t\tfun = \"\" + coms.getMethod(fun, types).invoke(coms, args);\n\t\t}catch (Exception e){\n\t\t\t//this will never ever happen\n\t\t}\n\t\t\n\t\treturn fun;\n\t}", "public Evaluador() {\n aL = new Arguments();\n }", "public interface Evaluable {\n HarrObject eval(Context context) throws HarrException;\n}", "public final Object evaluator() throws RecognitionException {\n Object result = null;\n\n\n Object function1 =null;\n\n\n\n BFlatGUI.setStack(scopeStack.getStackString(\"\"));\n BFlatGUI.debugPrint(6, \"pausing at program start\");\n if (stepping)\n Pauser.waitForGo();\n\n try {\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:145:3: ( function ( . )* )\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:145:5: function ( . )*\n {\n pushFollow(FOLLOW_function_in_evaluator72);\n function1=function();\n\n state._fsp--;\n\n\n result = function1;\n\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:145:43: ( . )*\n loop1:\n do {\n int alt1=2;\n int LA1_0 = input.LA(1);\n\n if ( ((LA1_0 >= ARG && LA1_0 <= 50)) ) {\n alt1=1;\n }\n else if ( (LA1_0==EOF) ) {\n alt1=2;\n }\n\n\n switch (alt1) {\n \tcase 1 :\n \t // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:145:43: .\n \t {\n \t matchAny(input); \n\n \t }\n \t break;\n\n \tdefault :\n \t break loop1;\n }\n } while (true);\n\n\n }\n\n\n //BFlatGUI.debugPrint(3, scopeStack.getStackString(getIndent()));\n BFlatGUI.debugPrint(3, getIndent()+\"Leaving main function!\");\n \n BFlatGUI.setStack(scopeStack.getStackString(\"\"));\n BFlatGUI.setSymbolTable(smanager.toString());\n BFlatGUI.debugPrint(6, \"pausing at program end\");\n if (stepping)\n Pauser.waitForGo();\n \n scopeStack.pop();\n BFlatGUI.setStack(scopeStack.getStackString(\"\"));\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return result;\n }", "public boolean evaluate();", "public String getOperateLogic() {\n return this.OperateLogic;\n }", "public String toString() {\n\n try {\n\tStringBuffer text = new StringBuffer();\n\tif (m_test != null) {\n\t text.append(\"If \");\n\t for (Test t = m_test; t != null; t = t.m_next) {\n\t if (t.m_attr == -1) {\n\t text.append(\"?\");\n\t } else {\n\t text.append(m_instances.attribute(t.m_attr).name() + \" = \" +\n\t\t\t m_instances.attribute(t.m_attr).value(t.m_val));\n\t }\n\t if (t.m_next != null) {\n\t text.append(\"\\n and \");\n\t }\n\t }\n\t text.append(\" then \");\n\t}\n\ttext.append(m_instances.classAttribute().value(m_classification) + \"\\n\");\n\tif (m_next != null) {\n\t text.append(m_next.toString());\n\t}\n\treturn text.toString();\n } catch (Exception e) {\n\treturn \"Can't print Prism classifier!\";\n }\n }", "public Classifier getClassifier() {\n return m_Classifier;\n }", "public Object getExpression();", "public String getInterprete()\r\n {\r\n return interprete;\r\n }", "public default Object expression() {\n\t\treturn info().values().iterator().next();\n\t}", "public String getCompiler();", "@Override\r\n\tpublic Object getParseResult() {\n\t\treturn this;\r\n\t}", "@Override\r\n\tpublic Object getParseResult() {\n\t\treturn this;\r\n\t}", "public Object eval (Object expression);" ]
[ "0.69896096", "0.6868181", "0.6035086", "0.5885603", "0.5824165", "0.57717353", "0.5759214", "0.5626967", "0.55922467", "0.5572432", "0.5489213", "0.54441756", "0.53590417", "0.53460956", "0.5328277", "0.5313814", "0.5313492", "0.5302238", "0.5279181", "0.5272952", "0.52600926", "0.52510947", "0.52439654", "0.5233779", "0.52302474", "0.52251506", "0.51714385", "0.51338285", "0.5127456", "0.512204", "0.5120514", "0.51010746", "0.5066266", "0.50288844", "0.50243926", "0.50209653", "0.50205714", "0.4996281", "0.4992635", "0.49924156", "0.499182", "0.4979414", "0.49783093", "0.49719054", "0.49292082", "0.4927154", "0.49001765", "0.48987606", "0.4871269", "0.48647767", "0.48646063", "0.48627082", "0.4861246", "0.48570082", "0.48558328", "0.48507977", "0.4823817", "0.48212522", "0.4820727", "0.48193938", "0.4816165", "0.4812021", "0.4800312", "0.47798818", "0.47673348", "0.47637793", "0.47485045", "0.47390562", "0.47377598", "0.47367087", "0.47346598", "0.4734437", "0.4734211", "0.47280103", "0.4725572", "0.4721786", "0.4708104", "0.4701181", "0.4698984", "0.4694715", "0.4694375", "0.46906435", "0.4672329", "0.46657076", "0.46615925", "0.46504837", "0.46485454", "0.46481124", "0.4647851", "0.4637329", "0.46365145", "0.46355098", "0.46343228", "0.46302655", "0.46299365", "0.4629296", "0.46283713", "0.46223462", "0.46223462", "0.4620702" ]
0.6835872
2
Retrieves the short host name of the current host.
private static String getHostname() throws UnknownHostException { return InetAddress.getLocalHost().getHostName(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getHost() {\n\t\ttry {\n\t\t\treturn InetAddress.getLocalHost().getHostName();\n\t\t} catch (UnknownHostException e) {\n\t\t\treturn \"unknown\";\n\t\t}\n\t}", "public String getHostName() {\n return this.hostContext.getHostName();\n }", "private String getHostName() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(activity);\n\n return preferences.getString(activity.getString(R.string.pref_host_id), activity.getString(R.string.pref_default_host_name));\n }", "public static String getHostName() {\n try {\n return InetAddress.getLocalHost().getHostName();\n } catch (UnknownHostException e) {\n return LOCALHOST;\n }\n }", "public String getHost()\n\t{\n\t\treturn m_strHostname;\n\t}", "static String getHostName() {\n try {\n return InetAddress.getLocalHost().getHostName();\n } catch (UnknownHostException e) {\n return \"unknown\";\n }\n }", "public String getHostName()\n\t{\n\t\treturn hostName;\n\t}", "public String getHostName() {\n\t\treturn hostName;\n\t}", "public String getHostName() {\n\t\treturn hostName;\n\t}", "public static String getHostname()\n {\n String host = \"unknown\";\n try\n {\n return InetAddress.getLocalHost().getHostName();\n }\n catch ( UnknownHostException e )\n {\n // ignore\n }\n return host;\n }", "public String getHostName() {\n return FxSharedUtils.getHostName();\n }", "public java.lang.String getHost() {\n java.lang.Object ref = host_;\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 host_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getHostName() {\n return hostName;\n }", "public String getHostName() {\n return hostName;\n }", "private String getHostName()\n\t{\n\t\treturn hostName;\n\t}", "public String getHost() {\r\n \t\treturn properties.getProperty(KEY_HOST);\r\n \t}", "public String getHostName() throws UnknownHostException\n\t{\n\t\t\n\t\treturn InetAddress.getLocalHost().getHostAddress();\n\t\t\n\t}", "public static String getHostname()\n\t{\n\t\treturn hostname; // send the hostname\n\t}", "String getHostName();", "String getHostName();", "String getHostname();", "String getHostname();", "public final String getShortname() {\n\t\treturn JsUtils.getNativePropertyString(this, \"shortname\");\n\t}", "@java.lang.Override\n public java.lang.String getHost() {\n java.lang.Object ref = host_;\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 host_ = s;\n return s;\n }\n }", "private static String getHostNameImpl() {\n String bindAddr = System.getProperty(\"jboss.bind.address\");\n if (bindAddr != null && !bindAddr.trim().equals(\"0.0.0.0\")) {\n return bindAddr;\n }\n\n // Fallback to qualified name\n String qualifiedHostName = System.getProperty(\"jboss.qualified.host.name\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n // If not on jboss env, let's try other possible fallbacks\n // POSIX-like OSes including Mac should have this set\n qualifiedHostName = System.getenv(\"HOSTNAME\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n // Certain versions of Windows\n qualifiedHostName = System.getenv(\"COMPUTERNAME\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n try {\n return NetworkUtils.canonize(getLocalHost().getHostName());\n } catch (UnknownHostException uhe) {\n uhe.printStackTrace();\n return \"unknown-host.unknown-domain\";\n }\n }", "java.lang.String getHost();", "java.lang.String getHost();", "public String getHost() {\n return host.getText();\n }", "private String GetHostName() throws UnknownHostException{\n return Inet4Address.getLocalHost().getHostName();\n }", "public String getHostName() {\n\t\treturn \"RaspberryHostName\";\n\t}", "public String getHost() {\n\tLogWriter.logMessage(LogWriter.TRACE_DEBUG,\"getHost()\");\n Via via=(Via)sipHeader;\n return via.getHost();\n }", "public String getHostname () {\n return hostname;\n }", "public String getHost( ) {\n\t\treturn host;\n\t}", "public String getHostName (){\n return hostName;\n }", "public String getHostname() {\n return this.hostname;\n }", "public String getFullHost() {\n return \"http://\" + get(HOSTNAME_KEY) + \":\" + get(PORT_KEY) + \"/\" + get(CONTEXT_ROOT_KEY) + \"/\";\n }", "public String hostname() {\n return this.hostname;\n }", "public String getHostname() {\r\n return hostname;\r\n }", "public String getShortName() {\n\n\t\treturn shortName;\n\t}", "public String getHostname() {\n return this.config.getHostname();\n }", "public String getHostName();", "public String getHostname();", "default String getHost()\n {\n return getString( \"host\", \"localhost:80\");\n }", "String host();", "public String getHost() {\n \t\treturn host;\n \t}", "public String getShortName()\r\n\t{\r\n\t\treturn shortName;\r\n\t}", "public String host() {\n return host;\n }", "public String getHost() {\n\t\treturn host;\n\t}", "public String getHost() {\n\t\treturn host;\n\t}", "public String getShortName() {\n return shortName;\n }", "public String getShortName() {\n return shortName;\n }", "public String getShortName() {\n return shortName;\n }", "public String getShortName() {\n\t\treturn SHORT_NAME;\n\t}", "protected String get_object_name() {\n\t\treturn this.hostname;\n\t}", "String getHost();", "public String getHost( ) {\n return props.getProperty(HOST, \"localhost\");\n }", "public static String getDisplayName(String shortName) {\r\n return getDisplayName(shortName,\r\n ArchetypeServiceHelper.getArchetypeService());\r\n }", "public String hostname() {\n return this.innerProperties() == null ? null : this.innerProperties().hostname();\n }", "public String getHost() {\n\t\treturn this.sipStack.getHostAddress();\n\t}", "public String getFriendlyName() {\n return this.bluetoothStack.getLocalDeviceName();\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public static String getCanonicalHostName() {\n try {\n return InetAddress.getLocalHost().getCanonicalHostName();\n } catch (UnknownHostException e) {\n return LOCALHOST;\n }\n }", "String getRemoteHostName();", "public com.flexnet.opsembedded.webservices.SimpleQueryType getHostTypeName() {\n return hostTypeName;\n }", "public String getHost() {\n\t\treturn url.getHost();\n }", "public String getHost(Env env) {\n return client.getHost();\n }", "public String get_hostname() throws Exception {\n\t\treturn this.hostname;\n\t}", "String getPreferredHost() {\n return preferredHost;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\r\n return host;\r\n }", "String getShortName() throws RemoteException;", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public static String getDisplayName(String shortName, String node) {\r\n return getDisplayName(shortName, node, ArchetypeServiceHelper.getArchetypeService());\r\n }", "public static String getHostname() throws IOException {\n\n String line;\n StringBuilder result = new StringBuilder();\n Process p = Runtime.getRuntime().exec(\"hostname\");\n\n BufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream()));\n\n while ((line = br.readLine()) != null) result.append(line);\n\n br.close();\n\n return result.toString();\n }", "public static String getDisplayName(String shortName,\r\n IArchetypeService service) {\r\n ArchetypeDescriptor descriptor = getArchetypeDescriptor(shortName,\r\n service);\r\n return (descriptor != null) ? descriptor.getDisplayName() : null;\r\n }", "public static String getBaseHost() {\r\n if (baseHost == null) {\r\n baseHost = PropertiesProvider.getInstance().getProperty(\"server.name\", \"localhost\");\r\n }\r\n return baseHost;\r\n }", "String getHost()\n {\n return host;\n }", "public String getHost() {\n return messageProcessor.getIpAddress().getHostAddress();\n }", "public java.lang.String shortName () { throw new RuntimeException(); }", "public String getHost(){\n\t\treturn this.host;\n\t}", "public String getShortName() { return shortName; }", "public static String getDisplayName(String shortName, String node,\r\n IArchetypeService service) {\r\n String result = null;\r\n ArchetypeDescriptor archetype\r\n = getArchetypeDescriptor(shortName, service);\r\n if (archetype != null) {\r\n NodeDescriptor descriptor = archetype.getNodeDescriptor(node);\r\n if (descriptor != null) {\r\n result = descriptor.getDisplayName();\r\n }\r\n }\r\n return result;\r\n }", "@NonNull\n public String getServerHostname() {\n return mServerHostname;\n }", "public String getHost();", "public String getHost();", "public String getQualifiedName() {\n if(probe.getHost() != null) {\n return probe.getHost().getName() + \"/\" + getName();\n } else {\n return \"/\" + getName();\n }\n }", "public String getHostName() {\n return null;\n }", "private static String getHost(final String host) {\n final int colonIndex = host.indexOf(':');\n\n if (colonIndex == -1) {\n return host;\n }\n\n return host.substring(0, colonIndex);\n }", "public static String name() {\r\n String _computername=\"\";\r\n InetAddress _address=null;\r\n \r\n try {\r\n _address=InetAddress.getLocalHost();\r\n _computername=_address.getHostName();\r\n }\r\n catch (Exception ex) {\r\n throw new RuntimeException(ex.getMessage());\r\n }\r\n \r\n if (_address!=null) {\r\n _address=null; System.gc();\r\n }\r\n \r\n return _computername;\r\n }", "@ZAttr(id=377)\n public String getPublicServiceHostname() {\n return getAttr(Provisioning.A_zimbraPublicServiceHostname, null);\n }", "public String getQualifiedName() {\n if (probe.getHost() != null) {\n return probe.getHost().getName() + \"/\" + getName();\n } else {\n return \"/\" + getName();\n }\n }", "public static String getLocalHostId() {\r\n\t\treturn localHostId;\r\n\t}", "String getShortName();" ]
[ "0.7462418", "0.7207459", "0.70912546", "0.70587474", "0.70178634", "0.701303", "0.69827294", "0.6979351", "0.6979351", "0.6977857", "0.6961465", "0.6932068", "0.68842596", "0.68842596", "0.6857494", "0.6849129", "0.6839305", "0.68320143", "0.68284947", "0.68284947", "0.6823784", "0.6823784", "0.6816951", "0.677979", "0.6774347", "0.6759691", "0.6759691", "0.6759616", "0.6707514", "0.6692468", "0.6687082", "0.6685965", "0.66672945", "0.66661984", "0.6665033", "0.6656875", "0.66552854", "0.6651177", "0.6648673", "0.66472656", "0.66312504", "0.66152734", "0.659912", "0.6585835", "0.6569362", "0.654966", "0.65249246", "0.6505481", "0.6505481", "0.649193", "0.649193", "0.649193", "0.6488908", "0.6484975", "0.6470978", "0.6455393", "0.64427596", "0.6410603", "0.6376655", "0.63765556", "0.63696754", "0.63696754", "0.6368343", "0.63623995", "0.6362355", "0.6355927", "0.63447416", "0.63396144", "0.6339002", "0.63290113", "0.63290113", "0.63290113", "0.63290113", "0.63290113", "0.63290113", "0.63203603", "0.6315009", "0.6300481", "0.6300481", "0.6288839", "0.6288654", "0.6282444", "0.6269129", "0.6259661", "0.6241957", "0.6238967", "0.62386507", "0.62268317", "0.6215906", "0.6205069", "0.6193682", "0.6193682", "0.61770594", "0.6167897", "0.61667335", "0.61570615", "0.61266124", "0.6096857", "0.60901004", "0.60772884" ]
0.6699948
29
bl: we will now use 10k directories from 0000, 0001, 0002, up to 9997, 9998, 9999
private String getOidDirectory(OID oid) { NumberFormat numberFormat = NumberFormat.getNumberInstance(); numberFormat.setMaximumIntegerDigits(4); numberFormat.setMinimumIntegerDigits(4); numberFormat.setGroupingUsed(false); String lastFour = numberFormat.format(Math.abs(oid.getValue()) % 10000); return lastFour.substring(0, 2) + "/" + lastFour.substring(2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void createDir(File f) {\n int limit = 10;\n while (!f.exists()) {\n if (!f.mkdir()) {\n createDir(f.getParentFile());\n }\n limit --;\n if(limit < 1) {\n break;\n }\n }\n if (limit == 0) {\n }\n }", "private ArrayList<ISO9660Directory> createDirectoryList(BinaryReader reader,\n\t\t\tISO9660Directory parentDir, long blockSize, TaskMonitor monitor) throws IOException {\n\n\t\tArrayList<ISO9660Directory> directoryList = new ArrayList<>();\n\t\tISO9660Directory childDir = null;\n\t\tlong dirIndex;\n\t\tlong endIndex;\n\n\t\t//Get location from parent into child directory\n\t\tdirIndex = parentDir.getLocationOfExtentLE() * blockSize;\n\t\tendIndex = dirIndex + parentDir.getDataLengthLE();\n\n\t\t//while there is still more data in the current directory level\n\t\twhile (dirIndex < endIndex) {\n\t\t\treader.setPointerIndex(dirIndex);\n\n\t\t\t//If the next byte is not zero then create the directory\n\t\t\tif (reader.peekNextByte() != 0) {\n\t\t\t\tif (!lookedAtRoot) {\n\t\t\t\t\tchildDir = new ISO9660Directory(reader);\n\t\t\t\t\taddAndStoreDirectory(monitor, directoryList, childDir);\n\n\t\t\t\t}\n\n\t\t\t\t//Root level has already been looked at\n\t\t\t\telse {\n\t\t\t\t\tif (parentDir.getName() != null) {\n\t\t\t\t\t\tchildDir = new ISO9660Directory(reader, parentDir);\n\t\t\t\t\t\taddAndStoreDirectory(monitor, directoryList, childDir);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//Otherwise there is a gap in the data so keep looking forward\n\t\t\t//while still under the end index and create directory when data is\n\t\t\t//reached\n\t\t\telse {\n\t\t\t\treadWhileZero(reader, endIndex);\n\n\t\t\t\t//Create the data once the reader finds the next position\n\t\t\t\t//and not reached end index\n\t\t\t\tif (reader.getPointerIndex() < endIndex) {\n\t\t\t\t\tif (!lookedAtRoot) {\n\t\t\t\t\t\tchildDir = new ISO9660Directory(reader);\n\t\t\t\t\t\taddAndStoreDirectory(monitor, directoryList, childDir);\n\t\t\t\t\t\tdirIndex = childDir.getVolumeIndex();\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tif (parentDir.getName() != null) {\n\t\t\t\t\t\t\tchildDir = new ISO9660Directory(reader, parentDir);\n\t\t\t\t\t\t\taddAndStoreDirectory(monitor, directoryList, childDir);\n\t\t\t\t\t\t\tdirIndex = childDir.getVolumeIndex();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tdirIndex += childDir.getDirectoryRecordLength();\n\t\t}\n\n\t\tlookedAtRoot = true;\n\t\treturn directoryList;\n\t}", "private static File createTempDir() {\n\t\tFile baseDir = new File(\"/opt/tomcat7/temp\");\r\n\t\tString baseName = \"omicseq-TempStorage\" + \"-\";\r\n\r\n\t\tfor (int counter = 0; counter < 10000; counter++) {\r\n\t\t\tFile tempDir = new File(baseDir, baseName + counter);\r\n\t\t\tif (!tempDir.exists()) {\r\n\t\t\t\tif (tempDir.mkdir())\r\n\t\t\t\t\treturn tempDir;\r\n\t\t\t} else\r\n\t\t\t\treturn tempDir;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "private void createD64DirectoryEntry( DirectoryEntry directoryEntry, List<Sector> usedSectors) {\n\n\t// Get the position of the new directory entry to create.\n\t// Just count the existing known directory entries for now.\n\tint newEntryPos = getDirectory().getDirectoryEntries().size();\n\n\t// A d64 directory sector has 8 entries per sector, so calculate the sector and offset.\n\tint entrySector = 1 + newEntryPos / 8;\n\tint entryOffset = 32 * ( newEntryPos % 8);\n\n\t// Fetch the sector with the directory entries.\n\tSector directorySector = getSector( 18, entrySector); // Sector 0 contains the BAM.\n\n\t// Check, if the filename is C= compliant.\n\tif( ! directoryEntry.getFileName().endsWith( \".PRG\")) {\n\n\t System.err.println( \"Can only store .PRG files for now\");\n\n\t return;\n\t}\n\n\t// Remove the suffix of the filename.\n\tString filename = directoryEntry.getFileName();\n\tfilename = filename.substring( 0, filename.indexOf( \".PRG\"));\n\tif( filename.length() > 16) { // Cut the filename to 16 characters.\n\t filename = filename.substring( 0, 16);\n\t}\n\n\t// Now set the data of the entry.\n\tdirectorySector.setDataByte( entryOffset + 2, (byte)0x82); // Set type to .prg\n\t\n\t// Copy the name into the directory.\n\tint currentCharIndex = 5;\n\tfor( char currentChar : filename.toCharArray()) {\n\n\t directorySector.setDataByte( currentCharIndex++, CharsetUtils.getInstance().ascii2petscii( currentChar));\n\t}\n\n\t// Pad the file with 0xa0, if it is too short.\n\twhile( currentCharIndex < 20) {\n\t directorySector.setDataByte( currentCharIndex++, (byte)0xa0);\n\t}\n\t \n\t// Set the position of the first sector.\n\tdirectorySector.setDataByte( 3, (byte)( usedSectors.get( 0).getTrackIndex()));\n\tdirectorySector.setDataByte( 4, (byte)( usedSectors.get( 0).getSectorIndex()));\n\n\t// Set the length of the file.\n\tdirectorySector.setDataByte( 0x1e, (byte)( usedSectors.size() % 256));\n\tdirectorySector.setDataByte( 0x1f, (byte)( usedSectors.size() / 256));\n }", "public static List<Path> createSimpleDirectory( final Configuration conf, final Path root, final int count, List<Path> existingEntries ) throws IOException\r\n\t{\r\n\t\t/** If count is invalid just return, no work to do here. */\r\n\t\tif (count<=0) {\r\n\t\t\tLOG.error( \"Count is <= 0 \" + count + \" for root \" + root);\r\n\t\t\treturn existingEntries;\r\n\t\t}\r\n\t\t/** If the incoming list is null create one that will cound at least count elements. */\r\n\t\tif (existingEntries==null) {\r\n\t\t\texistingEntries = new ArrayList<Path>(count);\r\n\t\t}\r\n\t\tFileSystem fs = root.getFileSystem(conf);\r\n\t\tif (fs.exists(root)&&!fs.getFileStatus(root).isDir()) {\r\n\t\t\tLOG.error(\"Root \" + root + \" exists and is not a directory\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tif (!fs.exists(root)&&!fs.mkdirs(root)) {\r\n\t\t\tLOG.error(\"Root \" + root + \" does not exist and can not be made\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\r\n\t\t/** Setup a formatter for building the file names. */\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tFormatter fmt = new Formatter(sb);\r\n\r\n\t\t/** How wide is count, so we can set up the file name format nice and evenly.\r\n\t\t * We first format the max numeric value into a string.\r\n\t\t * Then determine the string width.\r\n\t\t * This is now the field with to format for our output counters.\r\n\t\t * Then we build a format string that has the width embedded in it, with a leading 0 for zero padding.\r\n\t\t */\r\n\t \r\n\t\tfmt.format(\"%d\", count-1);\r\n\t\tfmt.flush();\r\n\t\t/** The width of the largest numeric suffix. */\r\n\t\tint countWidth = sb.toString().length();\r\n\t\tsb.setLength(0);\r\n\t\tfmt.format(\"tmpFile-%%0%dd\", countWidth);\r\n\t\t/** The format string to use, with fixed width numeric suffixes. */\r\n\t\tString fmtString = sb.toString();\r\n\t\t/** Create the temporary files in root, with a name of the form tmpFile-0XXXX */\r\n\t\tfor( int i = 0; i < count; i++) {\r\n\t\t\t/** Set up the file name in sb. */\r\n\t\t\tsb.setLength(0);\r\n\t\t\tfmt.format( fmtString, i);\r\n\t\t\tfmt.flush();\r\n\t\t\tString fileName = sb.toString();\r\n\t\t\t\r\n\t\t\t/** Create the file and create some data for it. */\r\n\t\t\tPath fileToCreate = new Path( root, fileName);\r\n\t\t\tsb.setLength(0);\r\n\t\t\tfmt.format( \"%s\\t%d%n\", fileToCreate.toString(), count);\r\n\t\t\tfmt.flush();\r\n\t\t\t\r\n\t\t\tcreateSimpleFile( conf, fileToCreate, sb.toString());\t/** Create a simple file with a single entry, the path and the count */\r\n\t\t\texistingEntries.add(fileToCreate);\r\n\t\t}\r\n\t\treturn existingEntries;\r\n\t}", "@Override\n\tpublic void run() {\n\t\tString path = \"D:\\\\test\";\n\t\tfor(int i=1;i<65535;i++){\n\t\t\tFile file = new File(path+File.separator+name+i);\n\t\t\tif(!file.exists()){\n\t\t\t\tfile.mkdirs();\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t}", "private void makeDir(String targetDir){\n\t\tchar letter = 'A';\n\t\tnew File(targetDir + \"\\\\Sorted Music\").mkdir();\n\t\t\n\t\tfor (int i = 0; i < 26; i++){\n\t\t\tnew File(targetDir + \"\\\\Sorted Music\\\\\" + letter).mkdir();\n\t\t\tletter++;\n\t\t}\n\t}", "static Dir getDirectoryTree(String startDir, int mode)\r\n\t{\r\n\t\tscaleMode = mode;\r\n\t\tFile f = new File(startDir);\r\n\t\tminage = now - f.lastModified();\r\n\t\treturn getDirectoryTree(new File[] { f });\r\n\t}", "private void createDirectories(BinaryReader reader, List<ISO9660Directory> directoryList,\n\t\t\tlong blockSize, TaskMonitor monitor) throws DuplicateNameException, Exception {\n\n\t\tfor (ISO9660Directory dir : directoryList) {\n\n\t\t\t//If the directory is a new level of directories\n\t\t\t//recurse down into the next level\n\t\t\tif (dir.isDirectoryFlagSet() && dir.getName() != null) {\n\t\t\t\tList<ISO9660Directory> dirs;\n\t\t\t\tdirs = createDirectoryList(reader, dir, blockSize, monitor);\n\t\t\t\tcreateDirectories(reader, dirs, blockSize, monitor);\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}", "public static native void mkdirs(String path, int mode) throws IOException;", "private File findNonExistentDirectory() throws FileNotFoundException {\n final int MAX_TRIES = 10000;\n for (int i = 0; i < MAX_TRIES; i++) {\n File dir = new File(TMP_DIR_BASE + i);\n if (!dir.exists()) {\n return dir;\n }\n }\n\n throw new FileNotFoundException(\"Directories from \" + TMP_DIR_BASE\n + \"/0 to \" + TMP_DIR_BASE + \"/\" + MAX_TRIES + \" already exist\");\n }", "private void createDirectories()\r\n\t{\r\n\t\t// TODO: Do some checks here\r\n\t\tFile toCreate = new File(Lunar.OUT_DIR + Lunar.PIXEL_DIR\r\n\t\t\t\t\t\t\t\t\t+ Lunar.PROCESSED_DIR);\r\n\t\ttoCreate.mkdirs();\r\n\t\ttoCreate = null;\r\n\t\ttoCreate = new File(Lunar.OUT_DIR + Lunar.ROW_DIR + Lunar.PROCESSED_DIR);\r\n\t\ttoCreate.mkdirs();\r\n\t\ttoCreate = null;\r\n\t}", "private static void m133350k() {\n C41940c c = C35574k.m114859a().mo70094i().mo102932c();\n String str = C39811er.f103468d;\n C7573i.m23582a((Object) str, \"ShortVideoConfig2.sDir\");\n File a = c.mo102928a(str);\n if (a.exists() && a.isDirectory()) {\n Set a2 = C41911c.m133283a();\n File[] listFiles = a.listFiles();\n C7573i.m23582a((Object) listFiles, \"filesRoot.listFiles()\");\n Iterable c2 = C7519g.m23444c((T[]) listFiles);\n Collection arrayList = new ArrayList();\n Iterator it = c2.iterator();\n while (true) {\n boolean z = false;\n if (!it.hasNext()) {\n break;\n }\n Object next = it.next();\n File file = (File) next;\n if (file.exists() && file.isFile()) {\n z = true;\n }\n if (z) {\n arrayList.add(next);\n }\n }\n for (File file2 : (List) arrayList) {\n String name = file2.getName();\n C7573i.m23582a((Object) name, \"filesToDelete.name\");\n if (!C7634n.m23723c(name, \"-concat-v\", false)) {\n String name2 = file2.getName();\n C7573i.m23582a((Object) name2, \"filesToDelete.name\");\n if (!C7634n.m23723c(name2, \"-concat-a\", false)) {\n String name3 = file2.getName();\n C7573i.m23582a((Object) name3, \"filesToDelete.name\");\n if (!C7634n.m23723c(name3, \"_synthetise\", false)) {\n }\n }\n }\n Iterator it2 = a2.iterator();\n int i = 0;\n while (true) {\n if (!it2.hasNext()) {\n i = -1;\n break;\n }\n Object next2 = it2.next();\n if (i < 0) {\n C7525m.m23465b();\n }\n String str2 = (String) next2;\n String path = file2.getPath();\n C7573i.m23582a((Object) path, \"filesToDelete.path\");\n if (C7634n.m23721b(path, str2, false)) {\n break;\n }\n i++;\n }\n if (-1 == i) {\n file2.delete();\n }\n }\n }\n }", "public synchronized int load()\n {\n int cb = (maxFiles * maxChars * SysLib.CBCHAR) + \n (maxFiles * SysLib.CBINT);\n byte b[] = new byte[cb];\n files.clear();\n int fileNameOffset = maxFiles * SysLib.CBINT;\n int offset = 0;\n\n // Read the entire potential directory listing\n if (inode.read(0, b) < 0)\n {\n return -1;\n }\n\n for (int i = 0; i < maxFiles; i++)\n {\n // Read the file name length\n int strLen = SysLib.bytes2int(b, offset);\n offset += SysLib.CBINT;\n\n // Read the file name, if one is stored\n if (strLen > 0)\n {\n byte strBytes[] = new byte[strLen * SysLib.CBCHAR];\n\n System.arraycopy(b, fileNameOffset, strBytes, 0,\n strBytes.length);\n\n files.add(new String(strBytes));\n\n fileNameOffset += strLen;\n }\n // Add a zero-length placeholder for this listing\n else\n {\n files.add(new String(\"\"));\n }\n }\n\n return 0;\n }", "public Directory parseDirectory() {\n\n\t// Create a buffer for the result.\n\tDirectory result = new DirectoryImpl( this);\n\n\t// The track and sector pos of the currency directory sector.\n\tint trackIndex = 18;\n\tint sectorIndex = 1;\n\n\t// The directory starts at track 18, sector 1 and normally continues to sector 18.\n\twhile( ( trackIndex != 0) && (sectorIndex != 0)) {\n\n\t // Get the data of the current sector.\n\t byte [] sectorData = getSector( trackIndex, sectorIndex).getDataBytes();\n\n\t // Parse the directory entries in this sector.\n\t for( int currentEntry = 0; currentEntry < 8; ++currentEntry) {\n\n\t\t// Calculate the byte, where the directory entry starts.\n\t\tint entryOffset = 32 * currentEntry;\n\n\t\t// Check, if this entry is a deleted file.\n\t\tif( sectorData[ entryOffset + 2] == 0) { \n\n\t\t continue; // This entry is deleted.\n\t\t}\n\n\t\t// Get the name of the filename.\n\t\tStringBuffer filenameBuffer = new StringBuffer();\n\n\t\tfor( int filenameIndex = 5; filenameIndex <= 14; ++filenameIndex) {\n\n\t\t // Get the current byte of the filename.\n\t\t byte currentFilenameChar = sectorData[ entryOffset + filenameIndex];\n\n\t\t if( currentFilenameChar == 0xa0) { // This is a padding byte. Filename is complete.\n\t\t\t\n\t\t\tbreak;\n\n\t\t } else { // Convert this petscii char and add it to the filename.\n\t\t\t\n\t\t\tfilenameBuffer.append( CharsetUtils.getInstance().petscii2ascii( currentFilenameChar));\n\t\t }\n\t\t}\n\n\t\t// Get the type of the file.\n\t\tbyte currentFileType = (byte)( sectorData[ entryOffset + 2] & (byte)7);\n\t\tString currentFileTypeName = \"\";\n\n\t\tswitch( currentFileType) {\n\t\tcase 1: currentFileTypeName = \"SEQ\"; break;\n\t\tcase 2: currentFileTypeName = \"PRG\"; break;\n case 3: currentFileTypeName = \"USR\"; break;\n\t\tcase 4: currentFileTypeName = \"REL\"; break;\n\t\t}\n\n\t\t// Try to approximate the filesize. The c64 only stores blocks of 254 bytes and not \n\t\t// the actual filesize in bytes.\n\t\tint filesize = sectorData[ entryOffset + 0x1e] + ( 256 * sectorData[ entryOffset + 0x1f]);\n\t\t\n\t\t// Create a directory entry and add it to the result.\n\t\tresult.addDirectoryEntry( new D64DirectoryEntry( filenameBuffer.toString()\n\t\t\t\t\t\t\t\t , filesize\n\t\t\t\t\t\t\t\t , currentFileTypeName\n\t\t\t\t\t\t\t\t , sectorData[ entryOffset + 3] // Track index of the first sector.\n\t\t\t\t\t\t\t\t , sectorData[ entryOffset + 4] // Sector index of the first sector.\n\t\t\t\t\t\t\t\t , result));\n\t }\n\n\t // Get the track and sector of the next directory sector from the current sector;\n\t trackIndex = sectorData[ 0];\n\t sectorIndex = sectorData[ 1];\n\t}\n\n\t// Return the parsed directory.\n\treturn result;\n }", "java.io.File getBaseDir();", "@Test\n public void write100Megs() throws Exception {\n final int segmentSize = 0x00100000;\n final int expectedSegments = 100;\n \n for (int i = 0; i < expectedSegments; i++) {\n journal.append(bytes(segmentSize));\n }\n journal.drain();\n \n Assert.assertEquals(expectedSegments * 2, dir.list().length);\n }", "@Override\n protected void createRootDir() {\n }", "public static int creat(String pathname, short mode)\n throws Exception {\n // get the full path\n String fullPath = getFullPath(pathname);\n FileSystem fileSystem = openFileSystems[ROOT_FILE_SYSTEM];\n\n StringBuffer dirname = new StringBuffer(\"/\");\n IndexNode currIndexNode = getRootIndexNode();\n IndexNode prevIndexNode = null;\n short indexNodeNumber = FileSystem.ROOT_INDEX_NODE_NUMBER;\n\n StringTokenizer st = new StringTokenizer(fullPath, \"/\");\n String name = \".\"; // start at root node\n while (st.hasMoreTokens()) {\n name = st.nextToken();\n if (!name.equals(\"\")) {\n // check to see if the current node is a directory\n if ((currIndexNode.getMode() & S_IFMT) != S_IFDIR) {\n // return (ENOTDIR) if a needed directory is not a directory\n process.errno = ENOTDIR;\n return -1;\n }\n\n // check to see if it is readable by the user\n // ??? tbd\n // return (EACCES) if a needed directory is not readable\n\n if (st.hasMoreTokens()) {\n dirname.append(name);\n dirname.append('/');\n }\n\n // get the next inode corresponding to the token\n prevIndexNode = currIndexNode;\n currIndexNode = new IndexNode();\n indexNodeNumber = findNextIndexNode(\n fileSystem, prevIndexNode, name, currIndexNode);\n }\n }\n\n // ??? we need to set some fields in the file descriptor\n int flags = O_WRONLY; // ???\n FileDescriptor fileDescriptor = null;\n\n if (indexNodeNumber < 0) {\n // file does not exist. We check to see if we can create it.\n\n // check to see if the prevIndexNode (a directory) is writeable\n // ??? tbd\n // return (EACCES) if the file does not exist and the directory\n // in which it is to be created is not writable\n\n currIndexNode.setMode(mode);\n currIndexNode.setNlink((short) 1);\n\n // allocate the next available inode from the file system\n short newInode = fileSystem.allocateIndexNode();\n if (newInode == -1)\n return -1;\n\n fileDescriptor =\n new FileDescriptor(fileSystem, currIndexNode, flags);\n // assign inode for the new file\n fileDescriptor.setIndexNodeNumber(newInode);\n\n// System.out.println( \"newInode = \" + newInode ) ;\n fileSystem.writeIndexNode(currIndexNode, newInode);\n\n // open the directory\n // ??? it would be nice if we had an \"open\" that took an inode \n // instead of a name for the dir\n// System.out.println( \"dirname = \" + dirname.toString() ) ;\n int dir = open(dirname.toString(), O_RDWR);\n if (dir < 0) {\n Kernel.perror(PROGRAM_NAME);\n System.err.println(PROGRAM_NAME +\n \": unable to open directory for writing\");\n process.errno = ENOENT;\n return -1;\n }\n\n // scan past the directory entries less than the current entry\n // and insert the new element immediately following\n int status;\n DirectoryEntry newDirectoryEntry =\n new DirectoryEntry(newInode, name);\n DirectoryEntry currentDirectoryEntry = new DirectoryEntry();\n while (true) {\n // read an entry from the directory\n status = readdir(dir, currentDirectoryEntry);\n if (status < 0) {\n System.err.println(PROGRAM_NAME +\n \": error reading directory in creat\");\n System.exit(EXIT_FAILURE);\n } else if (status == 0) {\n // if no entry read, write the new item at the current \n // location and break\n writedir(dir, newDirectoryEntry);\n break;\n } else {\n // if current item > new item, write the new item in \n // place of the old one and break\n if (currentDirectoryEntry.getName().compareTo(\n newDirectoryEntry.getName()) > 0) {\n int seek_status =\n lseek(dir, -DirectoryEntry.DIRECTORY_ENTRY_SIZE, 1);\n if (seek_status < 0) {\n System.err.println(PROGRAM_NAME +\n \": error during seek in creat\");\n System.exit(EXIT_FAILURE);\n }\n writedir(dir, newDirectoryEntry);\n break;\n }\n }\n }\n // copy the rest of the directory entries out to the file\n while (status > 0) {\n DirectoryEntry nextDirectoryEntry = new DirectoryEntry();\n // read next item\n status = readdir(dir, nextDirectoryEntry);\n if (status > 0) {\n // in its place\n int seek_status =\n lseek(dir, -DirectoryEntry.DIRECTORY_ENTRY_SIZE, 1);\n if (seek_status < 0) {\n System.err.println(PROGRAM_NAME +\n \": error during seek in creat\");\n System.exit(EXIT_FAILURE);\n }\n }\n // write current item\n writedir(dir, currentDirectoryEntry);\n // current item = next item\n currentDirectoryEntry = nextDirectoryEntry;\n }\n\n // close the directory\n close(dir);\n } else {\n // file does exist ( indexNodeNumber >= 0 )\n\n // if it's a directory, we can't truncate it\n if ((currIndexNode.getMode() & S_IFMT) == S_IFDIR) {\n // return (EISDIR) if the file is a directory\n process.errno = EISDIR;\n return -1;\n }\n\n // check to see if the file is writeable by the user\n // ??? tbd\n // return (EACCES) if the file does exist and is unwritable\n\n // free any blocks currently allocated to the file\n int blockSize = fileSystem.getBlockSize();\n int blocks = (currIndexNode.getSize() + blockSize - 1) /\n blockSize;\n for (int i = 0; i < blocks; i++) {\n int address = currIndexNode.getBlockAddress(i);\n if (address != FileSystem.NOT_A_BLOCK) {\n fileSystem.freeBlock(address);\n currIndexNode.setBlockAddress(i, FileSystem.NOT_A_BLOCK);\n }\n }\n\n // update the inode to size 0\n currIndexNode.setSize(0);\n\n // write the inode to the file system.\n fileSystem.writeIndexNode(currIndexNode, indexNodeNumber);\n\n // set up the file descriptor\n fileDescriptor =\n new FileDescriptor(fileSystem, currIndexNode, flags);\n // assign inode for the new file\n fileDescriptor.setIndexNodeNumber(indexNodeNumber);\n\n }\n\n return open(fileDescriptor);\n }", "public static void readDirectory(String dir){\n\t\tMap<Integer,Integer> catemap = new HashMap<Integer, Integer>();\r\n\t\tFile[] names = null;\r\n\t\tFile file = new File(dir);\r\n\t\tif(file.isFile())\r\n\t\t\tnames = new File[]{file};\r\n\t\telse\r\n\t\t\tnames = new File(dir).listFiles();\r\n\t\tList<String> lines = null;\r\n\t\tList<String> strs = null;\r\n\t\tList<Integer> keys = new ArrayList<Integer>();\r\n\t\tList<Integer> values = new ArrayList<Integer>();\r\n\t\tint v = 0;\r\n\t\tif(null!=names&&names.length>0){\r\n\t\t\tfor(File f:names){\r\n\t\t\t\tif(null!=lines)\r\n\t\t\t\t\tlines.clear();\r\n\t\t\t\tlines = readFile(f,\"utf-8\");\r\n\t\t\t\tif(null!=lines){\r\n\t\t\t\t\tint j = 0;\r\n\t\t\t\t\tint k=0;\r\n\t\t\t\t\tfor(String line:lines){\r\n\t\t\t\t\t\tstrs = parseStr2List(line, \"\\\\t\");\r\n//\t\t\t\t\t\tif(null!=strs&&strs.size()==7){\r\n//\t\t\t\t\t\t\tv = getPerValue(strs.get(3));\r\n//\t\t\t\t\t\t\tmaxmap.put(v, 1+DataFormat.parseInt(maxmap.get(v)));\r\n//\t\t\t\t\t\t\tv = getPerValue(strs.get(5));\r\n//\t\t\t\t\t\t\tcatemap.put(v, 1+DataFormat.parseInt(catemap.get(v)));\r\n//\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(null!=strs&&strs.size()==2){\r\n\t\t\t\t\t\t\tv = DataFormat.parseInt(strs.get(0));\r\n//\t\t\t\t\t\t\tif(v<=500){\r\n//\t\t\t\t\t\t\t\tv = j/5+1;\r\n//\t\t\t\t\t\t\t\tj = j+1;\r\n//\t\t\t\t\t\t\t}else{\r\n//\t\t\t\t\t\t\t\tv = 101;\r\n//\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(k>500) break;\r\n\t\t\t\t\t\t\tk++;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(j<20){\r\n\t\t\t\t\t\t\t\tkeys.add(v);\r\n\t\t\t\t\t\t\t\tvalues.add(DataFormat.parseInt(strs.get(1)));\r\n\t\t\t\t\t\t\t\tj++;\r\n\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\tj=0;\r\n\t\t\t\t\t\t\t\tSystem.out.println(Arrays.toString(keys.toArray(new Integer[]{})));\r\n\t\t\t\t\t\t\t\tSystem.out.println(Arrays.toString(values.toArray(new Integer[]{})));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n//\t\t\t\t\t\t\tcatemap.put(v, DataFormat.parseInt(strs.get(1))+DataFormat.parseInt(catemap.get(v)));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n//\t\tfor(Entry<Integer, Integer> entry:maxmap.entrySet()){\r\n//\t\t\tUtils.appendToFile(\"/vol/user_log/maxmap.txt\", entry.getKey()+\"\\t\"+entry.getValue());\r\n//\t\t}\r\n//\t\tfor(Entry<Integer, Integer> entry:catemap.entrySet()){\r\n//\t\t\tUtils.appendToFile(\"C:\\\\Program Files\\\\SecureCRT\\\\download\\\\map.txt\", entry.getKey()+\"\\t\"+entry.getValue());\r\n//\t\t}\r\n\t}", "@Test\n public void testConstructor_Custom_Store_File_Overflow() {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator\n + \"oasis-list-testConstructor_Custom_Store_File_Overflow\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(file);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1);\n instance.addAll(c);\n\n File[] subDirs = file.listFiles();\n\n assertNotNull(subDirs);\n }", "public void setMAX_DIRS() {\n\n\t}", "private static String createDir(String s) {\r\n \tint len = s.length() - 1;\r\n \tString tempBuff;\r\n \tString result;\r\n \tif (s.charAt(len) != '/') {\r\n \t\ttempBuff = String.format(\"%s/\", s);\r\n \t}\r\n \telse {\r\n \t\ttempBuff = s;\r\n \t}\r\n \tresult = tempBuff;\r\n \treturn result;\r\n }", "static void getSize(String root) throws IOException {\n\t\tint k = 2;\n\t\twhile (k <= 7) {\n\t\t\tint j = 1;\n\n\t\t\tString filesize = \"\";\n\t\t\twhile (j <= 10) {\n\t\t\t\tif (k == 1) {\n\t\t\t\t\tFile f = new File(\n\t\t\t\t\t\t\troot + \"M\" + k + \"/M1.1/Testbeds-\" + j + \"/Generated/seed.aml\");\n\t\t\t\t\tfilesize += new DecimalFormat(\"#.#\").format(((double) f.length() / 1024))\n\t\t\t\t\t\t\t+ \"\\n\";\n\t\t\t\t} else {\n\t\t\t\t\tFile f = new File(root + \"M\" + k + \"/Testbeds-\" + j + \"/Generated/seed.aml\");\n\t\t\t\t\tfilesize += new DecimalFormat(\"#.#\").format(((double) f.length() / 1024))\n\t\t\t\t\t\t\t+ \"\\n\";\n\t\t\t\t}\n\t\t\t\tj++;\n\t\t\t}\n\t\t\tSystem.out.print(filesize);\n\t\t\tk++;\n\t\t}\n\t}", "public static void createDirectories() \r\n\t{\r\n\t\tif(!fCertificatesDir().exists()) \r\n\t\t{\r\n\t\t\tfCertificatesDir().mkdir();\r\n\t\t}\r\n\t\t\r\n\t\tif(!fDbDir().exists()) \r\n\t\t{\r\n\t\t\tfDbDir().mkdir();\r\n\t\t}\r\n\t\t\r\n\t\tif(!fMibsDir().exists())\r\n\t\t{\r\n\t\t\tfMibsDir().mkdir();\r\n\t\t}\r\n\t\t\r\n\t\tif(!fMibsBinaryDir().exists()) \r\n\t\t{\r\n\t\t\tfMibsBinaryDir().mkdir();\r\n\t\t}\r\n\t\t\r\n\t\tif(!fMibsTextDir().exists()) \r\n\t\t{\r\n\t\t\tfMibsTextDir().mkdir();\r\n\t\t}\r\n\t}", "int setup(int files, int dirs, int depth) {\n try {\n Path tmp = Files.createTempDirectory(getClass().getSimpleName());\n tmp.toFile().deleteOnExit();\n Path root = tmp.resolve(ROOTNAME);\n root.toFile().deleteOnExit();\n Files.createDirectory(root);\n int n = makeDir(1, root, files, dirs, depth);\n this.root = root.toString();\n return n / 3;\n } catch (IOException e) {\n throw new ExceptionInInitializerError(\"UNABLE TO SETUP FILE STRUCTURE!\");\n }\n }", "@android.annotation.SuppressLint({\"NewApi\"})\n private void listRoots() {\n /*\n r23 = this;\n r21 = 0;\n r0 = r21;\n r1 = r23;\n r1.currentDir = r0;\n r0 = r23;\n r0 = r0.items;\n r21 = r0;\n r21.clear();\n r17 = new java.util.HashSet;\n r17.<init>();\n r21 = android.os.Environment.getExternalStorageDirectory();\n r5 = r21.getPath();\n r12 = android.os.Environment.isExternalStorageRemovable();\n r6 = android.os.Environment.getExternalStorageState();\n r21 = \"mounted\";\n r0 = r21;\n r21 = r6.equals(r0);\n if (r21 != 0) goto L_0x003c;\n L_0x0031:\n r21 = \"mounted_ro\";\n r0 = r21;\n r21 = r6.equals(r0);\n if (r21 == 0) goto L_0x0084;\n L_0x003c:\n r8 = new org.telegram.ui.DocumentSelectActivity$ListItem;\n r21 = 0;\n r0 = r23;\n r1 = r21;\n r8.<init>();\n r21 = android.os.Environment.isExternalStorageRemovable();\n if (r21 == 0) goto L_0x02ae;\n L_0x004d:\n r21 = \"SdCard\";\n r22 = 2131494825; // 0x7f0c07a9 float:1.861317E38 double:1.0530983673E-314;\n r21 = org.telegram.messenger.LocaleController.getString(r21, r22);\n r0 = r21;\n r8.title = r0;\n r21 = 2131165433; // 0x7f0700f9 float:1.7945083E38 double:1.052935626E-314;\n r0 = r21;\n r8.icon = r0;\n L_0x0062:\n r0 = r23;\n r21 = r0.getRootSubtitle(r5);\n r0 = r21;\n r8.subtitle = r0;\n r21 = android.os.Environment.getExternalStorageDirectory();\n r0 = r21;\n r8.file = r0;\n r0 = r23;\n r0 = r0.items;\n r21 = r0;\n r0 = r21;\n r0.add(r8);\n r0 = r17;\n r0.add(r5);\n L_0x0084:\n r3 = 0;\n r4 = new java.io.BufferedReader;\t Catch:{ Exception -> 0x0302 }\n r21 = new java.io.FileReader;\t Catch:{ Exception -> 0x0302 }\n r22 = \"/proc/mounts\";\n r21.<init>(r22);\t Catch:{ Exception -> 0x0302 }\n r0 = r21;\n r4.<init>(r0);\t Catch:{ Exception -> 0x0302 }\n L_0x0094:\n r14 = r4.readLine();\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r14 == 0) goto L_0x02dd;\n L_0x009a:\n r21 = \"vfat\";\n r0 = r21;\n r21 = r14.contains(r0);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 != 0) goto L_0x00b0;\n L_0x00a5:\n r21 = \"/mnt\";\n r0 = r21;\n r21 = r14.contains(r0);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 == 0) goto L_0x0094;\n L_0x00b0:\n r21 = org.telegram.messenger.BuildVars.LOGS_ENABLED;\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 == 0) goto L_0x00b7;\n L_0x00b4:\n org.telegram.messenger.FileLog.d(r14);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n L_0x00b7:\n r19 = new java.util.StringTokenizer;\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r21 = \" \";\n r0 = r19;\n r1 = r21;\n r0.<init>(r14, r1);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r20 = r19.nextToken();\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r16 = r19.nextToken();\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r0 = r17;\n r1 = r16;\n r21 = r0.contains(r1);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 != 0) goto L_0x0094;\n L_0x00d5:\n r21 = \"/dev/block/vold\";\n r0 = r21;\n r21 = r14.contains(r0);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 == 0) goto L_0x0094;\n L_0x00e0:\n r21 = \"/mnt/secure\";\n r0 = r21;\n r21 = r14.contains(r0);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 != 0) goto L_0x0094;\n L_0x00eb:\n r21 = \"/mnt/asec\";\n r0 = r21;\n r21 = r14.contains(r0);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 != 0) goto L_0x0094;\n L_0x00f6:\n r21 = \"/mnt/obb\";\n r0 = r21;\n r21 = r14.contains(r0);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 != 0) goto L_0x0094;\n L_0x0101:\n r21 = \"/dev/mapper\";\n r0 = r21;\n r21 = r14.contains(r0);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 != 0) goto L_0x0094;\n L_0x010c:\n r21 = \"tmpfs\";\n r0 = r21;\n r21 = r14.contains(r0);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 != 0) goto L_0x0094;\n L_0x0117:\n r21 = new java.io.File;\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r0 = r21;\n r1 = r16;\n r0.<init>(r1);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r21 = r21.isDirectory();\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 != 0) goto L_0x0163;\n L_0x0126:\n r21 = 47;\n r0 = r16;\n r1 = r21;\n r11 = r0.lastIndexOf(r1);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r21 = -1;\n r0 = r21;\n if (r11 == r0) goto L_0x0163;\n L_0x0136:\n r21 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r21.<init>();\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r22 = \"/storage/\";\n r21 = r21.append(r22);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r22 = r11 + 1;\n r0 = r16;\n r1 = r22;\n r22 = r0.substring(r1);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r21 = r21.append(r22);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r15 = r21.toString();\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r21 = new java.io.File;\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r0 = r21;\n r0.<init>(r15);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r21 = r21.isDirectory();\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 == 0) goto L_0x0163;\n L_0x0161:\n r16 = r15;\n L_0x0163:\n r0 = r17;\n r1 = r16;\n r0.add(r1);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r13 = new org.telegram.ui.DocumentSelectActivity$ListItem;\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r21 = 0;\n r0 = r23;\n r1 = r21;\n r13.<init>();\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r21 = r16.toLowerCase();\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r22 = \"sd\";\n r21 = r21.contains(r22);\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n if (r21 == 0) goto L_0x02c5;\n L_0x0182:\n r21 = \"SdCard\";\n r22 = 2131494825; // 0x7f0c07a9 float:1.861317E38 double:1.0530983673E-314;\n r21 = org.telegram.messenger.LocaleController.getString(r21, r22);\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r0 = r21;\n r13.title = r0;\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n L_0x0190:\n r21 = 2131165433; // 0x7f0700f9 float:1.7945083E38 double:1.052935626E-314;\n r0 = r21;\n r13.icon = r0;\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r0 = r23;\n r1 = r16;\n r21 = r0.getRootSubtitle(r1);\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r0 = r21;\n r13.subtitle = r0;\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r21 = new java.io.File;\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r0 = r21;\n r1 = r16;\n r0.<init>(r1);\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r0 = r21;\n r13.file = r0;\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r0 = r23;\n r0 = r0.items;\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r21 = r0;\n r0 = r21;\n r0.add(r13);\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n goto L_0x0094;\n L_0x01bd:\n r7 = move-exception;\n org.telegram.messenger.FileLog.e(r7);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n goto L_0x0094;\n L_0x01c3:\n r7 = move-exception;\n r3 = r4;\n L_0x01c5:\n org.telegram.messenger.FileLog.e(r7);\t Catch:{ all -> 0x0300 }\n if (r3 == 0) goto L_0x01cd;\n L_0x01ca:\n r3.close();\t Catch:{ Exception -> 0x02ec }\n L_0x01cd:\n r9 = new org.telegram.ui.DocumentSelectActivity$ListItem;\n r21 = 0;\n r0 = r23;\n r1 = r21;\n r9.<init>();\n r21 = \"/\";\n r0 = r21;\n r9.title = r0;\n r21 = \"SystemRoot\";\n r22 = 2131495071; // 0x7f0c089f float:1.8613668E38 double:1.053098489E-314;\n r21 = org.telegram.messenger.LocaleController.getString(r21, r22);\n r0 = r21;\n r9.subtitle = r0;\n r21 = 2131165426; // 0x7f0700f2 float:1.7945069E38 double:1.0529356226E-314;\n r0 = r21;\n r9.icon = r0;\n r21 = new java.io.File;\n r22 = \"/\";\n r21.<init>(r22);\n r0 = r21;\n r9.file = r0;\n r0 = r23;\n r0 = r0.items;\n r21 = r0;\n r0 = r21;\n r0.add(r9);\n r18 = new java.io.File;\t Catch:{ Exception -> 0x02f7 }\n r21 = android.os.Environment.getExternalStorageDirectory();\t Catch:{ Exception -> 0x02f7 }\n r22 = \"Telegram\";\n r0 = r18;\n r1 = r21;\n r2 = r22;\n r0.<init>(r1, r2);\t Catch:{ Exception -> 0x02f7 }\n r21 = r18.exists();\t Catch:{ Exception -> 0x02f7 }\n if (r21 == 0) goto L_0x0254;\n L_0x0223:\n r10 = new org.telegram.ui.DocumentSelectActivity$ListItem;\t Catch:{ Exception -> 0x02f7 }\n r21 = 0;\n r0 = r23;\n r1 = r21;\n r10.<init>();\t Catch:{ Exception -> 0x02f7 }\n r21 = \"Telegram\";\n r0 = r21;\n r10.title = r0;\t Catch:{ Exception -> 0x02fd }\n r21 = r18.toString();\t Catch:{ Exception -> 0x02fd }\n r0 = r21;\n r10.subtitle = r0;\t Catch:{ Exception -> 0x02fd }\n r21 = 2131165426; // 0x7f0700f2 float:1.7945069E38 double:1.0529356226E-314;\n r0 = r21;\n r10.icon = r0;\t Catch:{ Exception -> 0x02fd }\n r0 = r18;\n r10.file = r0;\t Catch:{ Exception -> 0x02fd }\n r0 = r23;\n r0 = r0.items;\t Catch:{ Exception -> 0x02fd }\n r21 = r0;\n r0 = r21;\n r0.add(r10);\t Catch:{ Exception -> 0x02fd }\n r9 = r10;\n L_0x0254:\n r9 = new org.telegram.ui.DocumentSelectActivity$ListItem;\n r21 = 0;\n r0 = r23;\n r1 = r21;\n r9.<init>();\n r21 = \"Gallery\";\n r22 = 2131493847; // 0x7f0c03d7 float:1.8611186E38 double:1.053097884E-314;\n r21 = org.telegram.messenger.LocaleController.getString(r21, r22);\n r0 = r21;\n r9.title = r0;\n r21 = \"GalleryInfo\";\n r22 = 2131493848; // 0x7f0c03d8 float:1.8611188E38 double:1.0530978846E-314;\n r21 = org.telegram.messenger.LocaleController.getString(r21, r22);\n r0 = r21;\n r9.subtitle = r0;\n r21 = 2131165529; // 0x7f070159 float:1.7945278E38 double:1.0529356735E-314;\n r0 = r21;\n r9.icon = r0;\n r21 = 0;\n r0 = r21;\n r9.file = r0;\n r0 = r23;\n r0 = r0.items;\n r21 = r0;\n r0 = r21;\n r0.add(r9);\n r0 = r23;\n r0 = r0.listView;\n r21 = r0;\n org.telegram.messenger.AndroidUtilities.clearDrawableAnimation(r21);\n r21 = 1;\n r0 = r21;\n r1 = r23;\n r1.scrolling = r0;\n r0 = r23;\n r0 = r0.listAdapter;\n r21 = r0;\n r21.notifyDataSetChanged();\n return;\n L_0x02ae:\n r21 = \"InternalStorage\";\n r22 = 2131493929; // 0x7f0c0429 float:1.8611352E38 double:1.0530979246E-314;\n r21 = org.telegram.messenger.LocaleController.getString(r21, r22);\n r0 = r21;\n r8.title = r0;\n r21 = 2131165528; // 0x7f070158 float:1.7945276E38 double:1.052935673E-314;\n r0 = r21;\n r8.icon = r0;\n goto L_0x0062;\n L_0x02c5:\n r21 = \"ExternalStorage\";\n r22 = 2131493730; // 0x7f0c0362 float:1.8610948E38 double:1.0530978263E-314;\n r21 = org.telegram.messenger.LocaleController.getString(r21, r22);\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r0 = r21;\n r13.title = r0;\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n goto L_0x0190;\n L_0x02d5:\n r21 = move-exception;\n r3 = r4;\n L_0x02d7:\n if (r3 == 0) goto L_0x02dc;\n L_0x02d9:\n r3.close();\t Catch:{ Exception -> 0x02f2 }\n L_0x02dc:\n throw r21;\n L_0x02dd:\n if (r4 == 0) goto L_0x0305;\n L_0x02df:\n r4.close();\t Catch:{ Exception -> 0x02e5 }\n r3 = r4;\n goto L_0x01cd;\n L_0x02e5:\n r7 = move-exception;\n org.telegram.messenger.FileLog.e(r7);\n r3 = r4;\n goto L_0x01cd;\n L_0x02ec:\n r7 = move-exception;\n org.telegram.messenger.FileLog.e(r7);\n goto L_0x01cd;\n L_0x02f2:\n r7 = move-exception;\n org.telegram.messenger.FileLog.e(r7);\n goto L_0x02dc;\n L_0x02f7:\n r7 = move-exception;\n L_0x02f8:\n org.telegram.messenger.FileLog.e(r7);\n goto L_0x0254;\n L_0x02fd:\n r7 = move-exception;\n r9 = r10;\n goto L_0x02f8;\n L_0x0300:\n r21 = move-exception;\n goto L_0x02d7;\n L_0x0302:\n r7 = move-exception;\n goto L_0x01c5;\n L_0x0305:\n r3 = r4;\n goto L_0x01cd;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.telegram.ui.DocumentSelectActivity.listRoots():void\");\n }", "public static void createImageDirs(File base) {\n String dirs[] = new String[]{\n \"0\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\",\n \"8\", \"9\", \"a\", \"b\", \"c\", \"d\", \"e\", \"f\"};\n for (String dir : dirs) {\n File subdir = new File(base, dir);\n if (!subdir.exists()) {\n subdir.mkdir();\n }\n }\n }", "private static File createReserveDiskCacheDir(Context context) {\n\t\tFile cacheDir = StorageUtils.getCacheDirectory(context, false);\n\t\tFile individualDir = new File(cacheDir, \"lazy-cache\");\n\t\tif (individualDir.exists() || individualDir.mkdir()) {\n\t\t\tcacheDir = individualDir;\n\t\t}\n\t\treturn cacheDir;\n\t}", "public void customRootDir() {\n //Be careful with case when res is false which means dir is not valid.\n boolean res = KOOM.getInstance().setRootDir(this.getCacheDir().getAbsolutePath());\n }", "File getDirForNextEntryLog(List<File> writableLedgerDirs);", "public IStatus prepareRuntimeDirectory(IPath baseDir);", "int getdir(String dir) {\n diretorio = dir;\n String fname, ext;\n int i;\n File folder = new File(dir);\n files = folder.listFiles();\n for (File file : files) { /* Go to each MP3 or WMA file in each folder */\n if (!file.isDirectory()) {\n fname = file.getName();\n ext = fname.substring(fname.length() - 3);\n if ((Objects.equals(ext.toLowerCase(), \"wma\")) | (Objects.equals(ext.toLowerCase(), \"mp3\"))) {\n if (Main.show) {\n System.out.println(\"id#:[\"+music_total+\"]\\t\"+ dir + \"\\\\\" + file.getName());\n }\n music_total++;\n attrib(index, file);/* AllFiles[index]=file; */\n index++;\n }\n }\n if (file.isDirectory()) getdir(dir + \"\\\\\" + file.getName());\n }\n music_count = music_total;\n return (0);\n }", "public String nextCacheDir() {\n if (cacheDir != null) return cacheDir;\n // assign cacheDir\n int nVer = nextVersion();\n cacheDir = CacheDirectory.cacheDirName(identity, nVer+\"\");\n return cacheDir;\n }", "public File createContainingDir(File basedir) {\n String dirname = FileUtils.toSafeFileName(_url.getHost()+\"_\"+_layerName);\n File dir = new File(basedir, dirname );\n \n for(int i=1; dir.exists(); i++){\n dir = new File(basedir, dirname+\"_\"+i);\n }\n return dir;\n }", "private void initializeEmptyLargeFiles() \r\n\t /*@ requires belpicDirectory |-> ?bpd &*& bpd != null &*& bpd.DedicatedFile(_, _, _, ?belpic_sibs, _) &*& \r\n\t \t\tlength(belpic_sibs) < 6 &*&\r\n\t \t\tidDirectory |-> ?idd &*& idd != null &*& idd.DedicatedFile(_, _, _, ?iddir_sibs, _) &*& \r\n\t \t\tlength(iddir_sibs) < 7 &*&\r\n\t \t\tcaCertificate |-> _ &*& rrnCertificate |-> _ &*& rootCaCertificate |-> _ &*& \r\n\t \t\tphotoFile |-> _ &*& authenticationCertificate |-> _ &*& nonRepudiationCertificate |-> _; @*/\r\n \t /*@ ensures belpicDirectory |-> bpd &*& \r\n\t \t\tidDirectory |-> idd &*&\r\n\t \t\tcaCertificate |-> ?cac &*& cac.ElementaryFile(CA_CERTIFICATE, bpd, ?d1, true, 0, _) &*& d1 != null &*& d1.length == 1200 &*&\r\n\t \t\trrnCertificate |-> ?rrnc &*& rrnc.ElementaryFile(RRN_CERTIFICATE, bpd, ?d2, true, 0, _) &*& d2 != null &*& d2.length == 1200 &*&\r\n\t \t\trootCaCertificate |-> ?rootcac &*& rootcac.ElementaryFile(ROOT_CA_CERTIFICATE, bpd, ?d3, true, 0, _) &*& d3 != null &*& d3.length == 1200 &*&\r\n\t \t\tphotoFile |-> ?pf &*& pf.ElementaryFile(PHOTO, idd, ?d4, true, 0, _) &*& d4 != null &*& d4.length == 3584 &*&\r\n\t \t\tauthenticationCertificate |-> ?ac &*& ac.ElementaryFile(AUTH_CERTIFICATE, bpd, ?d5, true, 0, _) &*& d5 != null &*& d5.length == 1200 &*&\r\n\t \t\tnonRepudiationCertificate |-> ?nrc &*& nrc.ElementaryFile(NONREP_CERTIFICATE, bpd, ?d6, true, 0, _) &*& d6 != null &*& d6.length == 1200 &*&\r\n\t \t\tidd.DedicatedFile(_, _, _, append(iddir_sibs, cons(pf, nil)), _) &*& \r\n\t \t\tbpd.DedicatedFile(_, _, _, append(append(append(append(append(belpic_sibs, cons(cac, nil)), cons(rrnc, nil)), cons(rootcac, nil)), cons(ac, nil)), cons(nrc, nil)), _); @*/\r\n\t{\r\n\t\t/*\r\n\t\t * these 3 certificates are the same for all sample eid card applets\r\n\t\t * therefor they are made static and the data is allocated only once\r\n\t\t */\r\n\t\tcaCertificate = new ElementaryFile(CA_CERTIFICATE, belpicDirectory, (short) 1200);\r\n\t\trrnCertificate = new ElementaryFile(RRN_CERTIFICATE, belpicDirectory, (short) 1200);\r\n\t\t\r\n\t\trootCaCertificate = new ElementaryFile(ROOT_CA_CERTIFICATE, belpicDirectory, (short) 1200);\r\n\t\t/*\r\n\t\t * to save some memory we only support 1 photo for all subclasses\r\n\t\t * ideally this should be applet specific and have max size 3584 (3.5K)\r\n\t\t */\r\n\t\tphotoFile = new ElementaryFile(PHOTO, idDirectory, (short) 3584);\r\n\t\t/*\r\n\t\t * certificate #2 and #3 are applet specific allocate enough memory\r\n\t\t */\r\n\t\tauthenticationCertificate = new ElementaryFile(AUTH_CERTIFICATE, belpicDirectory, (short) 1200);\r\n\t\tnonRepudiationCertificate = new ElementaryFile(NONREP_CERTIFICATE, belpicDirectory, (short) 1200);\r\n\t}", "public void newFile(int temp) {\n if(!doesExist(temp)){\n System.out.println(\"The Directory does not exist \");\n return;\n }\n\n directory nodeptr = root;\n for(int count = 0; count < temp; count++) {\n nodeptr = nodeptr.forward;\n }\n int space = nodeptr.f.createFile(nodeptr.count);\n nodeptr.count++;\n nodeptr.availableSpace = 512 - space;\n\n }", "public static void setRootDir() {\n for(int i = 0; i < rootDir.length; i++){\n Character temp = (char) (65 + i);\n Search.rootDir[i] = temp.toString() + \":\\\\\\\\\";\n }\n }", "@Override\n public boolean isDir() { return true; }", "private static void console (String path) {\n boolean ERROR = false;\n while (true) {\n if (!ERROR) {\n System.out.println(\"Directory: \" + path);\n\n System.out.println(\"====================================\");\n long startTime = System.currentTimeMillis();\n DirectoryData root = hashmap.get(path);\n System.out.println(\"Directories in hashmap: \" + hashmap.size());\n System.out.println(\"Time taken to get data: \" + (System.currentTimeMillis() - startTime) + \"ms\");\n System.out.println(\"====================================\");\n\n System.out.println(\"Inside: \");\n\n if (root.getFileList().size() == 0) {\n System.out.println(\"(Empty Directory)\");\n }\n\n String leftAlignFormat = \"|%-1s | %-100s | %-10s |%n\";\n\n System.out.format(\"+---+------------------------------------------------------------------------------------------------------+------------+%n\");\n System.out.format(\"| | Name | Size |%n\");\n System.out.format(\"+---+------------------------------------------------------------------------------------------------------+------------+%n\");\n\n for (FileData subFile : root.getFileList()) {\n if (subFile.isDirectory()) {\n if (hashmap.get(subFile.getFullPath()) == null)\n System.out.format(leftAlignFormat, \" d\", subFile.getFilename(),\n size_string(null));\n else\n System.out.format(leftAlignFormat, \" d\", subFile.getFilename(),\n size_string(hashmap.get(subFile.getFullPath()).getSize()));\n } else {\n System.out.format(leftAlignFormat, \" -\", subFile.getFilename(),\n size_string(subFile.getSize()));\n }\n }\n System.out.format(\"+---+------------------------------------------------------------------------------------------------------+------------+%n\");\n }\n\n ERROR = false;\n\n System.out.print(\"\\n> \");\n Scanner in = new Scanner(System.in);\n String next_dir = in.nextLine();\n String next_path = path;\n\n if (next_dir.equals(\"..\")) {\n String[] path_arr = next_path.split(\"\\\\\\\\\");\n next_path = String.join(\"\\\\\", Arrays.copyOfRange(path_arr, 0, path_arr.length-1));\n\n if (path.charAt(path.length()-2) == ':') {\n System.out.println(\"Directory: \" + path);\n System.out.println(\"Already in root\");\n //path = TraversalConsole.path;\n ERROR = true;\n continue;\n }\n\n if (next_path.charAt(next_path.length()-1) == ':')\n next_path += '\\\\';\n\n if (!hashmap.containsKey(next_path)) {\n System.out.println(\"Directory: \" + path + \"\\\\\");\n System.out.println(\"Already in root\");\n ERROR = true;\n continue;\n } else {\n path = next_path;\n continue;\n }\n }\n\n if (path.charAt(path.length() - 1) != '\\\\') {\n next_path += \"\\\\\" + next_dir;\n } else {\n next_path += next_dir;\n }\n\n if (next_dir.equals(\"exit\")) {\n break;\n }\n\n if (hashmap.containsKey(next_path)) {\n path = next_path;\n continue;\n } else {\n System.out.println(\"Wrong Input or [\" + next_dir + \"] is a file\");\n ERROR = true;\n continue;\n }\n }\n }", "public Directory() {\n files = new ArrayList<VipeFile>();\n sectors = new int[600];\n }", "public SimpleDirectory() {\n this.container = new Entry[SimpleDirectory.DEFAULT_SIZE];\n this.loadFactor = SimpleDirectory.DEFAULT_LOAD_FACTOR;\n }", "private static long m133353n() {\n C41940c c = C35574k.m114859a().mo70094i().mo102932c();\n String str = C39811er.f103468d;\n C7573i.m23582a((Object) str, \"ShortVideoConfig2.sDir\");\n File a = c.mo102928a(str);\n long j = 0;\n if (a.exists() && a.isDirectory()) {\n Set a2 = C41911c.m133283a();\n File[] listFiles = a.listFiles();\n C7573i.m23582a((Object) listFiles, \"filesRoot.listFiles()\");\n Iterable c2 = C7519g.m23444c((T[]) listFiles);\n Collection arrayList = new ArrayList();\n Iterator it = c2.iterator();\n while (true) {\n boolean z = false;\n if (!it.hasNext()) {\n break;\n }\n Object next = it.next();\n File file = (File) next;\n if (file.exists() && file.isFile()) {\n z = true;\n }\n if (z) {\n arrayList.add(next);\n }\n }\n for (File file2 : (List) arrayList) {\n String name = file2.getName();\n C7573i.m23582a((Object) name, \"undeleted.name\");\n if (!C7634n.m23721b(name, \"synthetise_\", false)) {\n String name2 = file2.getName();\n C7573i.m23582a((Object) name2, \"undeleted.name\");\n if (!C7634n.m23723c(name2, \"-concat-v\", false)) {\n String name3 = file2.getName();\n C7573i.m23582a((Object) name3, \"undeleted.name\");\n if (!C7634n.m23723c(name3, \"-concat-a\", false)) {\n }\n }\n Iterator it2 = a2.iterator();\n int i = 0;\n while (true) {\n if (!it2.hasNext()) {\n i = -1;\n break;\n }\n Object next2 = it2.next();\n if (i < 0) {\n C7525m.m23465b();\n }\n String str2 = (String) next2;\n String path = file2.getPath();\n C7573i.m23582a((Object) path, \"undeleted.path\");\n if (C7634n.m23721b(path, str2, false)) {\n break;\n }\n i++;\n }\n if (-1 == i) {\n j += file2.length();\n }\n }\n }\n }\n return j;\n }", "@Test\n public void testConstructor_Custom_Store_String_Overflow() {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator + \"oasis-collection-test-2\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2, file.getAbsolutePath());\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1);\n instance.addAll(c);\n\n File[] subDirs = file.listFiles();\n\n assertNotNull(subDirs);\n\n }", "private void createEssentialDirs() throws TNotFoundEx{\n\t\tFileUtil fT = new FileUtil();\n\t\tfT.createDirOnDevice(TicklerVars.sdCardPath);\n\t\tif (!fT.isExistOnDevice(TicklerVars.sdCardPath))\n\t\t\tthrow new TNotFoundEx(\"Cannot create Tickler directory \"+TicklerVars.sdCardPath+\". Check your configurations in Tickler.conf file\");\n\t\tfT.createDirOnHost(TicklerVars.appTickDir);\n\t\tif (!fT.isExist(TicklerVars.appTickDir))\n\t\t\tthrow new TNotFoundEx(\"Cannot create Tickler directory \"+TicklerVars.appTickDir+\". Check your configurations in Tickler.conf file\");\n\t\t\n\t}", "@Test\n\tpublic void Directories() {\n\t\t\n\t\tString dirs = \"test/one/two/\";\n\t\tFile d = new File(dirs);\n\t\td.mkdirs();\n\t\tAssert.assertTrue(d.exists());\n\t\t\n\t\t//Cleanup\n\t\tif(d.delete()) {\n\t\t\td = new File(\"test/one\");\n\t\t\tif(d.delete()) {\n\t\t\t\td = new File(\"test\");\n\t\t\t\td.delete();\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public List<LsFileEntry> lsFiles() \n \tthrows CorruptObjectException, IOException {\n \t\tMap<String, LsFileEntry> cachedEntries = new TreeMap<String, LsFileEntry>(); \n \t\t\n \t\t//first read all the files which are the Index\n \t\tfinal DirCache cache = DirCache.read(db);\n \t\tfor (int i = 0; i < cache.getEntryCount(); i++) {\n \t\t\tfinal DirCacheEntry ent = cache.getEntry(i);\n \t\t\t\n \t\t\t//X TODO this is surely not enough ;)\n \t\t\tLsFileStatus fs = LsFileStatus.CACHED;\n \t\t\tLsFileEntry fileEntry = new LsFileEntry(ent.getPathString(), fs, ent.getObjectId());\n \t\t\tcachedEntries.put(ent.getPathString(), fileEntry);\n \t\t}\n \n \t\t// now read all the files on the disk\n \t\tSet<String> filesOnDisk = new TreeSet<String>(); \n \t\tFile workDir = db.getWorkDir();\n \t\taddFiles(filesOnDisk, \"\", workDir);\n \t\t\n \t\t// and now compare them. since both are already sorted because we used TreeMap and TreeSort\n \t\t// we can simply crawl over them end compare them. kind of a merge sort though...\n \t\tArrayList<LsFileEntry> fileEntries = new ArrayList<LsFileEntry>();\n \n \t\tIterator<String> cacheIt = cachedEntries.keySet().iterator();\n \t\tIterator<String> fileIt = filesOnDisk.iterator();\n \t\t\n \t\tString cachedPath = null;\n \t\tString fsPath = null;\n \t\twhile (cacheIt.hasNext() || fileIt.hasNext()) {\n \t\t\t\n \t\t\tif (cachedPath == null && cacheIt.hasNext()) {\n \t\t\t\tcachedPath = cacheIt.next();\n \t\t\t}\n \t\t\t\n \t\t\tif (fsPath == null && fileIt.hasNext()) {\n \t\t\t\tfsPath = fileIt.next();\n \t\t\t}\n \t\t\t\n \t\t\tif (cachedPath != null && cachedPath.equals(fsPath)) {\n \t\t\t\t// oh found in both systems\n \t\t\t\tfileEntries.add(cachedEntries.get(cachedPath));\n \t\t\t\tcachedPath = null;\n \t\t\t\tfsPath = null;\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tif (cachedPath != null && !fileEntries.contains(cachedPath)) {\n \t\t\t\tfileEntries.add(new LsFileEntry(cachedPath, LsFileStatus.REMOVED, null));\n \t\t\t\tcachedPath = null;\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tif (fsPath != null && !cachedEntries.keySet().contains(fsPath)) {\n \t\t\t\tfileEntries.add(new LsFileEntry(fsPath, LsFileStatus.OTHER, null));\n \t\t\t\tfsPath = null;\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tcachedPath = null;\n \t\t\tfsPath = null;\n \t\t\t\n \t\t}\n \t\t\n \t\treturn fileEntries;\n \t}", "protected void createDirStructure(final File dir, final int directoryDepth) throws IOException\n {\n if (directoryDepth > 0) {\n for (int i = 0; i < FileCache.hexLength; i++) {\n final File newDir = new File(dir.getAbsolutePath() + File.separator + Integer.toHexString(i));\n if (!newDir.exists() && !newDir.mkdirs()) {\n throw new IOException(\"Creating dir \" + newDir.getAbsolutePath() + \" failed.\");\n }\n this.createDirStructure(newDir, directoryDepth - 1);\n }\n }\n }", "Object getDir();", "@Override\n\tpublic void generateDirectories() {\n\t\tFile file = new File(\"Data/My Contacts/\");\n\n\t\tif (!file.exists()) {\n\t\t\tfile.mkdirs();\n\t\t}\n\t}", "private void setDirInternal(File dir) {\n if (dir == null) {\n baseDir = null;\n return;\n }\n\n ReplicaDirInfo dirInfo = parseBaseDir(dir, getBlockId());\n this.hasSubdirs = dirInfo.hasSubidrs;\n\n synchronized (internedBaseDirs) {\n if (!internedBaseDirs.containsKey(dirInfo.baseDirPath)) {\n // Create a new String path of this file and make a brand new File object\n // to guarantee we drop the reference to the underlying char[] storage.\n File baseDir = new File(dirInfo.baseDirPath);\n internedBaseDirs.put(dirInfo.baseDirPath, baseDir);\n }\n this.baseDir = internedBaseDirs.get(dirInfo.baseDirPath);\n }\n }", "private Directories() {\n\n\t}", "public static void main(String[] args) {\n\n /* public static Stream<Path> list(Path dir) throws IOException\n - List the contents of a directory */\n try (Stream<Path> files = Files.list(Path.of(\"D:\\\\Java\"))) { /* we put our Stream objects inside a\n try‐with‐resources method? The NIO.2\n stream‐ based methods open a connection\n to the file system that must be properly\n closed, else a resource leak could ensue */\n files.forEach(System.out::println);\n } catch (IOException e) { e.printStackTrace(); }\n\n /* Scroll down to copyPath() which deep copies a Path using Files.list() and Files.copy() */\n try {\n Files.createDirectory(Path.of(\"D:\\\\Java\\\\NewDirectory\")); // created a directory for testing purposes\n copyPath(Path.of(\"D:\\\\Java\"), Path.of(\"D:\\\\DeepCopied\")); // deep copy a directory\n\n /* Delete extra files and folders made */\n /* Scroll down to deletePath() which deletes a directory tree */\n deletePath(Path.of(\"D:\\\\DeepCopied\"));\n deletePath(Path.of(\"D:\\\\Java\\\\NewDirectory\"));\n } catch (IOException e) { e.printStackTrace(); }\n\n\n\n /* public static Stream<Path> walk(Path start, FileVisitOption… options) throws IOException\n - Default maximum depth of Integer.MAX_VALUE\n public static Stream<Path> walk(Path start, int maxDepth, FileVisitOption… options) throws IOException\n - Allows the user to set a maximum depth\n - Example: try (var s = Files.walk(source, 5)) {...}\n\n Here, I find the total size of all the files in a directory: */\n long totalSize = 0;\n try (Stream<Path> s = Files.walk(Path.of(\"C:\\\\Users\\\\abdul_nr6ehsg\\\\IdeaProjects\\\\IZ0-816-Java-SE-11-Developer\"))) {\n totalSize = s.parallel()\n .filter(p -> !Files.isDirectory(p))\n .mapToLong(p -> {\n try { return Files.size(p); }\n catch (IOException e) { e.printStackTrace(); }\n return 0L;\n }).sum();\n } catch (IOException e) { e.printStackTrace(); }\n System.out.format(\"Total size: %.2f MB \\n\", (totalSize / 1_000_000.0)); // Print total size in MegaBytes\n\n /* The walk() method is different in that it does not follow symbolic links by default and requires the\n FOLLOW_LINKS option to be enabled. Example:\n try (var s = Files.walk(source, FileVisitOption.FOLLOW_LINKS)) {...}\n\n - Make your the symbolic links do not create an endless cycle when using this option as a file or\n dir may point to an ancestor directory. A path may be caused to be visited twice or more resulting in\n an exception being thrown\n */\n\n\n\n /* public static Stream<Path> find(Path start, int maxDepth,\n BiPredicate<Path,BasicFileAttributes> matcher,\n FileVisitOption… options) throws IOException\n - The find() method behaves in a similar manner as the walk() method, except that it takes a\n BiPredicate to filter the data.\n - It also requires a depth limit be set.\n - Like walk(), find() also supports the FOLLOW_LINK option\n\n This following example searches a directory tree and prints all .java files with a size of at\n least 1,000 bytes, using a depth limit of 10: */\n try (Stream<Path> files = Files.find(\n Path.of(\"C:\\\\Users\\\\abdul_nr6ehsg\\\\IdeaProjects\\\\IZ0-816-Java-SE-11-Developer\"),\n 10,\n (p, a) -> a.isRegularFile() && p.toString().endsWith(\".java\") && a.size() > 1000)) {\n files.parallel().forEach(System.out::println);\n } catch (IOException e) { e.printStackTrace(); }\n\n /* Here is a similar but lengthier implementation of above code using walk() */\n try (Stream<Path> files = Files.walk(Path.of(\"C:\\\\Users\\\\abdul_nr6ehsg\\\\IdeaProjects\\\\IZ0-816-Java-SE-11-Developer\"))) {\n files.parallel().filter(p -> {\n BasicFileAttributes data = null;\n try { data = Files.readAttributes(p, BasicFileAttributes.class); }\n catch (IOException e) { e.printStackTrace(); }\n return (data.isRegularFile() && data.size() > 1000);\n }).filter(p -> p.toString().endsWith(\".java\")).forEach(System.out::println);\n } catch (IOException e) { e.printStackTrace(); }\n\n\n\n /* public static Stream<String> lines(Path path) throws IOException\n - Using Files.readAllLines() to read a very large file could result in an OutOfMemoryError problem\n - Luckily, NIO.2 solves this problem with the above Stream API method\n - REMEMBER: The readAllLines() method returns a List, not a Stream */\n try (Stream<String> lines = Files.lines(Path.of(\"D:\\\\Java\\\\test.txt\"))) {\n lines.forEach(System.out::println);\n } catch (IOException e) { e.printStackTrace(); }\n\n }", "private DiskLruImageCache(File cacheDir, long maxByteSize)\n {\n this.cacheDirectory = cacheDir;\n this.maxCacheByteSize = maxByteSize;\n }", "private File m29051a(String str) {\n File externalStorageDirectory = Environment.getExternalStorageDirectory();\n if (externalStorageDirectory == null) {\n return null;\n }\n File file = new File(String.format(\"%s%s%s\", new Object[]{externalStorageDirectory.getAbsolutePath(), File.separator, str}));\n if (!file.exists()) {\n file.mkdirs();\n }\n return file;\n }", "public final void mo14831s() {\n Iterator it = ((ArrayList) mo14817d()).iterator();\n while (it.hasNext()) {\n File file = (File) it.next();\n if (file.listFiles() != null) {\n m6739b(file);\n long c = m6740c(file, false);\n if (((long) this.f6567b.mo14797a()) != c) {\n try {\n new File(new File(file, String.valueOf(c)), \"stale.tmp\").createNewFile();\n } catch (IOException unused) {\n f6563c.mo14884b(6, \"Could not write staleness marker.\", new Object[0]);\n }\n }\n for (File b : file.listFiles()) {\n m6739b(b);\n }\n }\n }\n }", "private long directorySize(String name) {\n\t\tFile directory = new File(name);\n\t\tif (!directory.exists())\n\t\t\treturn 0;\n\t\tif (directory.isFile()) \n\t\t\treturn directory.length();\n\t\tlong length = 0;\n\t\tfor (File file : directory.listFiles()) {\n\t\t\tif (file.isFile())\n\t\t\t\tlength += file.length();\n\t\t\telse if (file.isDirectory())\n\t\t\t\tlength += directorySize(file.getPath());\n\t\t}\n\t\treturn length;\n\t}", "private static void initDirectories() {\n String storeName = System.getProperty(USER_DIR)\n + File.separator\n + QVCSConstants.QVCS_META_DATA_DIRECTORY\n + File.separator\n + QVCSConstants.QVCS_FILEID_STORE_NAME\n + \".dat\";\n File storeFile = new File(storeName);\n if (storeFile.exists()) {\n storeFile.delete();\n }\n deleteAuthenticationStore();\n initAuthenticationStore();\n\n deleteRoleProjectViewStore();\n initRoleProjectViewStore();\n\n initProjectProperties();\n }", "public void createIndex(String dataDirPath){\n\t\tFile[] files = new File(dataDirPath).listFiles();\n\n\t\tfor (File file : files) {\n\t\t\tif(!file.isDirectory()\n\t\t\t\t\t&& !file.isHidden()\n\t\t\t\t\t&& file.exists()\n\t\t\t\t\t){\n\t\t\t\t//add to Map\n\t\t\t\t// m.put(file.getAbsolutePath(), new RankModel(file,0,getOutLinks(file.getAbsolutePath())));\n\t\t\t\tallFiles.add(file.getAbsolutePath());\n\t\t\t}else{\n\t\t\t\tcreateIndex(file.getAbsolutePath());\n\t\t\t}\n\t\t}\n\t\t// return writer.numDocs();\n\t}", "public OutputStream getOutputStream( DirectoryEntry directoryEntry) {\n\n\t// Check, if this directory entry is a directory itself.\n\tif( directoryEntry.isDirectory()) {\n\n\t return null; // Cannot create subdirectories yet.\n\t}\n\n\t// Start with a check, if there are still free directory entries to store a new file.\n\tif( getDirectory().getDirectoryEntries().size() >= 144) {\n\n\t return null; // No free directory entries, it seems.\n\t}\n\n\t// Now try get free filespace for the new file.\n\tint neededSectors = directoryEntry.getFileSizeAsBytes() / getUnitSize();\n\tif( ( neededSectors * getUnitSize()) < directoryEntry.getFileSizeAsBytes()) { // If there are some bytes left for another sector.\n\n\t ++neededSectors; // Add them to another sector (plus some empty bytes for padding.\n\t}\n\n\t// Now try to allocate enough free sectors for the file.\n\tList<Sector> availableSectors = getFreeSectors( neededSectors);\n\n\tif( availableSectors == null) { // Sectors cannot be allocated?\n\n\t return null; // => Cannot write file.\n\t}\n\n\t// Create directory entry for the file and the sectors to allocate.\n\tcreateD64DirectoryEntry( directoryEntry, availableSectors);\n\n\t// Link all the sectors of this file.\n\tSector lastSector = null;\n\tfor( Sector currentSector : availableSectors) {\n\t \n\t if( lastSector != null) { // If this is not the first sector.\n\n\t\t// Set the pointer of the last sector to this sector.\n\t\tlastSector.setDataByte( 0, (byte)( currentSector.getTrackIndex()));\n\t\tlastSector.setDataByte( 1, (byte)( currentSector.getSectorIndex()));\n\t }\n\n\t // Set this sector as the new last sector.\n\t lastSector = currentSector;\n\t}\n\t// Set the pointer of the last file sector to 0. Shouldn't be necessary, but anyway.\n\tlastSector.setDataByte( 0, (byte)0);\n\tlastSector.setDataByte( 1, (byte)0);\n\t\n\t// Set the image to modified.\n\tsetModified( true);\n\t\n\t// Return OutputStream for file to write.\n\treturn new D64FileOutputStream( availableSectors, directoryEntry, this);\n }", "public abstract List<String> getDirs( );", "public final void mo118048d() {\n List<File> c = this.f120295d.mo118063c();\n int i = this.f120296e;\n if (c.size() > i) {\n int size = c.size() - i;\n C46869g.m146602a(this.f120292a, C1642a.m8035a(Locale.US, \"Found %d files in roll over directory, this is greater than %d, deleting %d oldest files\", new Object[]{Integer.valueOf(c.size()), Integer.valueOf(i), Integer.valueOf(size)}));\n TreeSet treeSet = new TreeSet(C46913h.f120301a);\n for (File file : c) {\n treeSet.add(new C46912a(file, m146732b(file.getName())));\n }\n ArrayList arrayList = new ArrayList();\n Iterator it = treeSet.iterator();\n while (it.hasNext()) {\n arrayList.add(((C46912a) it.next()).f120299a);\n if (arrayList.size() == size) {\n break;\n }\n }\n this.f120295d.mo118059a((List<File>) arrayList);\n }\n }", "Entity() {\n this.root = null;\n // As soon as the program is run, we sould start off with 1000 directory\n for (int temp = 0; temp < SIZE; temp++) {\n create(temp);\n }\n\n }", "private void makeDirectory() {\n String userHome = System.getProperty(\"user.home\");\n wnwData = new File(userHome + \"/.wnwdata\");\n wnwData.mkdirs();\n\n makeCampaignChallengesFile();\n makeCustomChallengesFile();\n makeProgressFile();\n makeSettingsFile();\n }", "public void setNUMDIR(int value) {\n this.numdir = value;\n }", "private void createDir(){\n\t\tPath path = Path.of(this.dir);\n\t\ttry {\n\t\t\tFiles.createDirectories(path);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Test\n public void testGetSubDirectories() {\n System.out.println(\"getSubDirectories from a folder containing 2 subdirectories\");\n String path = System.getProperty(\"user.dir\")+fSeparator+\"MyDiaryBook\"+fSeparator+\"Users\"+fSeparator+\"Panagiwtis Georgiadis\"\n +fSeparator+\"Entries\";\n \n FilesDao instance = new FilesDao();\n File entriesFile = new File(path);\n File subFolder;\n String[] children = entriesFile.list();\n File[] expResult = new File[entriesFile.list().length];\n \n for(int i=0;i<entriesFile.list().length;i++)\n {\n subFolder = new File(path+fSeparator+children[i]);\n if(subFolder.isDirectory())\n expResult[i] = subFolder; \n }\n \n File[] result = instance.getSubDirectories(path);\n \n assertArrayEquals(expResult, result);\n }", "public boolean isDir() { return false; }", "private File m5342c(long j) {\n boolean z = false;\n if (Process.myUid() == 1000) {\n return null;\n }\n File file;\n boolean equals;\n try {\n equals = \"mounted\".equals(Environment.getExternalStorageState());\n } catch (Exception e) {\n equals = z;\n }\n if (!C1222aj.m5343c() || equals) {\n StatFs statFs = new StatFs(Environment.getExternalStorageDirectory().getPath());\n if (((long) statFs.getAvailableBlocks()) * ((long) statFs.getBlockSize()) <= ((long) (this.f4234c / 2))) {\n return null;\n }\n File file2 = new File(C1222aj.m5334a(this.f4232a).getPath() + File.separator + \"carrierdata\");\n if (!(file2.exists() && file2.isDirectory())) {\n file2.mkdirs();\n }\n file = new File(file2.getPath() + File.separator + j);\n try {\n z = file.createNewFile();\n } catch (IOException e2) {\n }\n } else {\n file = null;\n }\n return !z ? null : file;\n }", "private File createTempFolder(String osBasePath, String prefix, String suffix) {\n File baseTempFolder = getTempFolder(osBasePath);\n if (!baseTempFolder.isDirectory()) {\n if (baseTempFolder.isFile()) {\n deleteFileOrFolder(baseTempFolder);\n }\n if (!baseTempFolder.mkdirs()) {\n return null;\n }\n }\n for (int i = 1; i < 100; i++) {\n File folder = new File(baseTempFolder, String.format(\"%1$s.%2$s%3$02d\", prefix, suffix, i));\n if (!folder.exists()) {\n return folder;\n }\n }\n return null;\n }", "void createIndexDir(String indexDirPath) throws IOException {\n File indexDir = new File(indexDirPath);\n if (!indexDir.exists())\n indexDir.mkdir();\n else {\n removeIndexDir(indexDirPath);\n indexDir.mkdir(); \n }\n }", "private void cacheFoldersFiles() throws Exception {\n\n ArrayList<FileManagerFile> files = new ArrayList<FileManagerFile>();\n if (fileCount > 0) {\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\");\n formatter.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\n int offset = 0;\n int count = 1000;\n List<FileManagerFile> filelist;\n\n do {\n filelist = connection.getFileManager().getFileManagerFiles(count, offset);\n offset += count;\n for (FileManagerFile file : filelist) {\n if (file.getFolderId() == id) {\n files.add(file);\n }\n }\n } while (filelist.size() > 0 && files.size() < fileCount);\n }\n this.files = files;\n }", "public boolean unMountSmb(java.io.File r19) {\n /*\n r18 = this;\n r11 = r19.exists();\n if (r11 != 0) goto L_0x0008;\n L_0x0006:\n r4 = 0;\n L_0x0007:\n return r4;\n L_0x0008:\n r10 = r19.getPath();\n r11 = 0;\n r11 = r10.charAt(r11);\n r14 = 47;\n if (r11 == r14) goto L_0x0029;\n L_0x0015:\n r11 = new java.lang.StringBuilder;\n r11.<init>();\n r14 = \"/\";\n r11 = r11.append(r14);\n r11 = r11.append(r10);\n r10 = r11.toString();\n L_0x0029:\n r11 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x0068 }\n r11.<init>();\t Catch:{ Exception -> 0x0068 }\n r14 = \"busybox umount -fl \";\n r11 = r11.append(r14);\t Catch:{ Exception -> 0x0068 }\n r11 = r11.append(r10);\t Catch:{ Exception -> 0x0068 }\n r14 = \" > \";\n r11 = r11.append(r14);\t Catch:{ Exception -> 0x0068 }\n r14 = \"/data/etc/log\";\n r11 = r11.append(r14);\t Catch:{ Exception -> 0x0068 }\n r14 = \" 2>&1\";\n r11 = r11.append(r14);\t Catch:{ Exception -> 0x0068 }\n r3 = r11.toString();\t Catch:{ Exception -> 0x0068 }\n r11 = 2;\n r2 = new java.lang.String[r11];\t Catch:{ Exception -> 0x0068 }\n r11 = 0;\n r14 = \"#!/system/bin/sh\";\n r2[r11] = r14;\t Catch:{ Exception -> 0x0068 }\n r11 = 1;\n r2[r11] = r3;\t Catch:{ Exception -> 0x0068 }\n r0 = r18;\n r11 = r0.ShellFileWrite(r2);\t Catch:{ Exception -> 0x0068 }\n if (r11 != 0) goto L_0x006b;\n L_0x0066:\n r4 = 0;\n goto L_0x0007;\n L_0x0068:\n r6 = move-exception;\n r4 = 0;\n goto L_0x0007;\n L_0x006b:\n r0 = r18;\n r11 = r0.SystemProperties_set;\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r14 = 0;\n r15 = 2;\n r15 = new java.lang.Object[r15];\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r16 = 0;\n r17 = \"ctl.start\";\n r15[r16] = r17;\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r16 = 1;\n r17 = \"cifsmanager\";\n r15[r16] = r17;\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r11.invoke(r14, r15);\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r12 = java.lang.System.currentTimeMillis();\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n L_0x0088:\n r0 = r18;\n r11 = r0.SystemProperties_get;\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r14 = 0;\n r15 = 2;\n r15 = new java.lang.Object[r15];\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r16 = 0;\n r17 = \"init.svc.cifsmanager\";\n r15[r16] = r17;\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r16 = 1;\n r17 = \"\";\n r15[r16] = r17;\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r7 = r11.invoke(r14, r15);\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r7 = (java.lang.String) r7;\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n if (r7 == 0) goto L_0x00ce;\n L_0x00a6:\n r11 = \"stopped\";\n r11 = r7.equals(r11);\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n if (r11 == 0) goto L_0x00ce;\n L_0x00af:\n r11 = r18.ShellLogRead();\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n if (r11 == 0) goto L_0x00ce;\n L_0x00b5:\n r4 = r19.delete();\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r8 = 0;\n r9 = r8;\n L_0x00bb:\n if (r4 != 0) goto L_0x00fa;\n L_0x00bd:\n r8 = r9 + 1;\n r11 = 20;\n if (r9 >= r11) goto L_0x0007;\n L_0x00c3:\n r14 = 50;\n java.lang.Thread.sleep(r14);\t Catch:{ InterruptedException -> 0x00f8, IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee }\n L_0x00c8:\n r4 = r19.delete();\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r9 = r8;\n goto L_0x00bb;\n L_0x00ce:\n r14 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n java.lang.Thread.sleep(r14);\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r14 = java.lang.System.currentTimeMillis();\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r14 = r14 - r12;\n r16 = 1000; // 0x3e8 float:1.401E-42 double:4.94E-321;\n r11 = (r14 > r16 ? 1 : (r14 == r16 ? 0 : -1));\n if (r11 < 0) goto L_0x0088;\n L_0x00de:\n r4 = r19.delete();\n goto L_0x0007;\n L_0x00e4:\n r5 = move-exception;\n r5.printStackTrace();\n goto L_0x00de;\n L_0x00e9:\n r5 = move-exception;\n r5.printStackTrace();\n goto L_0x00de;\n L_0x00ee:\n r5 = move-exception;\n r5.printStackTrace();\n goto L_0x00de;\n L_0x00f3:\n r5 = move-exception;\n r5.printStackTrace();\n goto L_0x00de;\n L_0x00f8:\n r11 = move-exception;\n goto L_0x00c8;\n L_0x00fa:\n r8 = r9;\n goto L_0x0007;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: zidoo.samba.manager.RockSmbManager.unMountSmb(java.io.File):boolean\");\n }", "public String getDir();", "public int mkdirs(String callingPkg, String path) throws RemoteException;", "private Map<String, String> getDirectory() {\n return new HashMap<>() {{\n put(\"Moran Lin\", \"1111111111\"); // 546*6*\n put(\"Ming Kho\", \"2222222222\"); // 546*6*\n put(\"Sam Haboush\", \"3333333333\"); // 4226874*7*\n put(\"Heidi Haboush\", \"4444444444\"); // 4226874*4*\n put(\"Hakeem Haboush\", \"5555555555\"); // 4226874*4*\n put(\"Amanda Holden\", \"6666666666\"); // 465336*2*\n put(\"Megan Fox\", \"7777777777\"); // 369*6*\n put(\"Kate Moss\", \"8888888888\"); // 6677*5*\n put(\"Sarah Louche\", \"9999999999\"); // 568243*7*\n put(\"Cameron Diaz\", \"0000000000\"); // 3429*2*\n// put(\"Heidi Klum\", \"1212121212\"); // 5586*4* doesn't exist in dictionary\n }};\n }", "public static void main(String[] args) {\n\t\tFile dir = new File(\"H:\");\r\n\t\tString[] filelist = dir.list();\r\n\t\tlong total = 0;\r\n\t\tlong t = 0;\r\n\t\tfor(int i=0;i<filelist.length;i++){\r\n\t\t\t File readfile = new File(\"H:\" + \"\\\\\" + filelist[i]);\r\n\t\t\t t = readFile(readfile)/1024/1024;\r\n\t\t\t System.out.println(\"name=\" + readfile.getName() + \" size:=\" + t + \"MB\");\r\n\t\t\t total += t;\r\n\t\t}\r\n\t\tSystem.out.println(\"OK,all the files is list over,the number is \" + filelist.length + \"the total size is \" + total); \r\n\t}", "protected void createDirs(String dataDir, String logDir, int myid)\n throws IOException {\n File datadir = new File(dataDir);\n if (datadir.exists()) {\n if (!datadir.isDirectory()) {\n throw new IOException(\"Datadir \" + datadir\n + \" exists and is not a directory\");\n }\n } else {\n if (!datadir.mkdirs()) {\n throw new IOException(\"Unable to create datadir \" + datadir);\n }\n }\n\n File logdir = new File(logDir);\n if (logdir.exists()) {\n if (!logdir.isDirectory()) {\n throw new IOException(\"Logdir \" + logdir\n + \" exists and is not a directory\");\n }\n } else {\n if (!logdir.mkdirs()) {\n throw new IOException(\"Unable to create logdir \" + logdir);\n }\n }\n\n // Create the id file\n File idfile = new File(dataDir + \"/myid\");\n if (idfile.exists()) {\n LOG.info(\"Removing idfile \" + idfile);\n\n if (!idfile.delete()) {\n throw new IOException(\"Couldn't delete idfile \" + idfile);\n }\n }\n\n // create does not list filename if operations fails due to permissions\n boolean createSuccess = false;\n try {\n createSuccess = idfile.createNewFile();\n } catch (IOException e) {\n throw new IOException(\"Do not have permissions to create idfile \"\n + idfile);\n }\n if (!createSuccess) {\n throw new IOException(\"Couldn't create idfile \" + idfile);\n }\n\n LOG.info(\"Creating \" + idfile);\n FileWriter fw = new FileWriter(idfile);\n fw.write(Integer.valueOf(myid).toString() + \"\\n\");\n fw.close();\n }", "private void recurseDirectory0(List<IdeLocation> locations, List<CorruptedIdeLocationException> problems, File f, int loopCounter) {\n\t\t\tFile[] listFiles = f.listFiles();\n\t\t\tif (listFiles == null) return;\n\t\t\t\n\t\t\tfor (File dir : listFiles) {\n\t\t\t\tif (!dir.isDirectory()) continue;\n\t\t\t\ttry {\n\t\t\t\t\tif (dir.getName().toLowerCase().contains(getDirName())) {\n\t\t\t\t\t\tfindEclipse(locations, problems, dir);\n\t\t\t\t\t\tif (loopCounter < 50) recurseDirectory0(locations, problems, dir, loopCounter + 1);\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception ignore) {}\n\t\t\t}\n\t\t}", "@Test\n public void testGetDirectoryList() {\n System.out.println(\"getDirectoryList for existing folder with subfolders\");\n String entriesPath = folder.toString();\n FilesDao instance = new FilesDao();\n String[] expResult = new String[4];\n expResult[0]=\"EmptyFolder\";\n expResult[1]=\"Images\";\n expResult[2]=\"Texts\";\n expResult[3]=\"Videos\";\n Arrays.sort(expResult);\n String[] result;\n try{\n result = instance.getDirectoryList(entriesPath);\n Arrays.sort(result);\n }catch(EntryException ex){\n result = null;\n }\n \n assertArrayEquals(expResult, result);\n }", "private int m5345e() {\n if (Process.myUid() == 1000) {\n return 0;\n }\n boolean equals;\n try {\n equals = \"mounted\".equals(Environment.getExternalStorageState());\n } catch (Exception e) {\n equals = false;\n }\n if (C1222aj.m5343c() && !equals) {\n return 0;\n }\n File file = new File(C1222aj.m5334a(this.f4232a).getPath() + File.separator + \"carrierdata\");\n if (!file.exists() || !file.isDirectory()) {\n return 0;\n }\n File[] listFiles = file.listFiles();\n if (listFiles == null || listFiles.length <= 0) {\n return 0;\n }\n ArrayList a = C1222aj.m5336a(listFiles);\n return a.size() == 1 ? ((File) a.get(0)).length() <= 0 ? 10 : 1 : a.size() >= 2 ? 2 : 0;\n }", "public static int getNumDirectories(SeekableStream stream)\n throws IOException {\n long pointer = stream.getFilePointer(); // Save stream pointer\n\n stream.seek(0L);\n int endian = stream.readUnsignedShort();\n if (!isValidEndianTag(endian)) {\n throw new IllegalArgumentException(PropertyUtil.getString(\"TIFFDirectory1\"));\n }\n boolean isBigEndian = (endian == 0x4d4d);\n int magic = readUnsignedShort(stream, isBigEndian);\n if (magic != 42) {\n throw new IllegalArgumentException(PropertyUtil.getString(\"TIFFDirectory2\"));\n }\n\n stream.seek(4L);\n long offset = readUnsignedInt(stream, isBigEndian);\n\n int numDirectories = 0;\n while (offset != 0L) {\n ++numDirectories;\n\n stream.seek(offset);\n long entries = readUnsignedShort(stream, isBigEndian);\n stream.skip(12 * entries);\n offset = readUnsignedInt(stream, isBigEndian);\n }\n\n stream.seek(pointer); // Reset stream pointer\n return numDirectories;\n }", "private void m20349g() {\n boolean z = true;\n if (this.f17414c.exists()) {\n if (!this.f17416e.exists()) {\n FileTree.m20516b(this.f17414c);\n } else {\n z = false;\n }\n }\n if (z) {\n try {\n C3945c.m20520a(this.f17416e);\n } catch (C3945c.C3946a unused) {\n CacheErrorLogger aVar = this.f17417f;\n CacheErrorLogger.EnumC3922a aVar2 = CacheErrorLogger.EnumC3922a.WRITE_CREATE_DIR;\n Class<?> cls = f17413b;\n aVar.mo27388a(aVar2, cls, \"version directory could not be created: \" + this.f17416e, null);\n }\n }\n }", "public DFS()\n {\n\n\n writeLock = lock.writeLock();\n readLock = lock.readLock();\n\n recoverINodes();\n\n createDir(\"/\"); // add a root if it does not exist .\n\n }", "public static void genTestTree(Path root, int num1K, int num4K, int num4M, int num16M, int num64M, int num128M)\n throws IOException {\n genFiles(root, num1K, 1024);\n genFiles(root, num4K, 4 * 1024);\n genFiles(root, num4M, 4 * 1024 * 1024);\n genFiles(root, num16M, 16 * 1024 * 1024);\n genFiles(root, num64M, 64 * 1024 * 1024);\n genFiles(root, num128M, 128 * 1024 * 1024);\n }", "private DirectoryObjects getDirectory(String path, DirectoryObjects current) {\n\t\tif (path.lastIndexOf(\"/\") == 0) {\n\t\t\treturn current;// done\n\t\t} else {\n\t\t\t// parse directories...\n\t\t\tArrayList<String> direcs = new ArrayList<>();\n\t\t\tString temp = path;\n\t\t\tboolean cont = true;\n\t\t\ttemp = temp.substring(1);\n\t\t\twhile (temp.length() > 1 && cont) {\n\n\t\t\t\t// add the substring to the list of directories that need to be\n\t\t\t\t// checked and/or created\n\t\t\t\tdirecs.add(temp.substring(0, temp.indexOf(\"/\")));\n\t\t\t\t// if there are more \"/\"s left, repeat\n\t\t\t\tif (temp.contains(\"/\")) {\n\t\t\t\t\ttemp = temp.substring(temp.indexOf(\"/\") + 1);\n\t\t\t\t}\n\t\t\t\t// else break out of the loop\n\t\t\t\telse {\n\t\t\t\t\tcont = false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// do one last check to see if there are any extra characters left\n\t\t\tif (temp.length() > 0) {\n\t\t\t\t// there is still something left\n\t\t\t\tdirecs.add(temp);\n\t\t\t}\n\n\t\t\t// go through each directory, checking if it exists. if not, create\n\t\t\t// the directory and repeat.\n\t\t\tDirectoryObjects l = current;\n\n\t\t\tfor (String p : direcs) {\n\n\t\t\t\tif (l.getDirectoryByName(p) != null) {\n\t\t\t\t\tl = l.getDirectoryByName(p);\n\t\t\t\t} else {\n\t\t\t\t\t// instead of creating a new directory, we just throw an\n\t\t\t\t\t// exception\n\t\t\t\t\treturn l;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn l;\n\n\t\t}\n\n\t}", "private String m20344d(String str) {\n String valueOf = String.valueOf(Math.abs(str.hashCode() % 100));\n return this.f17416e + File.separator + valueOf;\n }", "AntiIterator<FsPath> listFilesAndDirectories(FsPath dir);", "String getDir();", "Path getBaseInputDir();", "@Test\n public void testStorageLocationMkdirs() throws Exception {\n MemoryBackendCheckpointStorageAccess storage =\n new MemoryBackendCheckpointStorageAccess(\n new JobID(), randomTempPath(), null, DEFAULT_MAX_STATE_SIZE);\n\n File baseDir = new File(storage.getCheckpointsDirectory().getPath());\n assertFalse(baseDir.exists());\n\n // mkdirs only be called when initializeLocationForCheckpoint\n storage.initializeLocationForCheckpoint(177L);\n assertTrue(baseDir.exists());\n }", "@Test(timeout = 4000)\n public void test22() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/A_X-0;;JLT_;1IJDVA.XML\");\n FileSystemHandling.createFolder(evoSuiteFile0);\n ArrayList<Object> arrayList0 = new ArrayList<Object>();\n File file0 = fileUtil0.getAccessories(\"X-0;;JLT_;1iJdvA\", arrayList0);\n assertNotNull(file0);\n assertTrue(file0.canWrite());\n assertEquals(\"A_X-0;;JLT_;1IJDVA.XML\", file0.getName());\n }", "public static Boolean dir(String str){\n\t\t\n\t\t//File dir_root = new File(Environment.getExternalStorageDirectory().getAbsolutePath() + \"/kenzap\");\n\t\t//if (!dir_root.exists()){dir_root.mkdir();Log.e(\"DIRECROY\", \"MAKING_ROOT\");}\n\t\t\n\t File dir = new File(Environment.getExternalStorageDirectory().getAbsolutePath() + str);\n\t if (!dir.exists()){\n\t \tdir.mkdirs();\n\t \t//Log.e(\"DIRECTORY\", \"MAKING\");\n\t \t}\n\n\t\t//Log.e(\"DIRECROY\", \"YES\");\n//Log.e(\"DIRECROY\", \"NO\");\n\t\treturn dir.exists();\n\t}", "@Test(enabled=false)\n\tpublic void testRepeatedPutAndDeleteOfFileBug28() throws Exception {\n\t\tString testFileName = \"testRepeatedPutAndDeleteOfFileBug28andThisNameIsRealllllllllllllllllyLong.txt\";\n\t\n\t\tint nbrIterations = 10;\n\t\n\t\tFile localFile = new File(LOCAL_BINARY_FILE);\n\t\t\n\t\tfor (int i = 0; i < nbrIterations; i++) {\n\t\t\tlong startTime = System.currentTimeMillis();\n\t\t\tif (client.doesExist(\"\")) {\n\t\t\t\tclient.delete(\"\");\n\t\t\t}\n\t\t\tclient.mkdirs(\"\");\n\t\t\tclient.put(localFile.getAbsolutePath(), testFileName);\n\t\t\tclient.put(LOCAL_DIR, \"\");\n\t\t\tSystem.out.println(\"Iteration[\" + i + \"]: \" + (System.currentTimeMillis() - startTime));\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\n void initExisting() throws IOException {\n LOG.info(\"Initializing Existing Jobs...\");\n List<FileStatus> timestampedDirList = findTimestampedDirectories();\n Collections.sort(timestampedDirList);\n for (FileStatus fs : timestampedDirList) {\n // TODO Could verify the correct format for these directories.\n addDirectoryToSerialNumberIndex(fs.getPath());\n addDirectoryToJobListCache(fs.getPath());\n }\n }", "private static String createAppSpecificLocalDir(String baseDir, String applicationIdString,\n String user, int dagIdentifier) {\n return baseDir + File.separator + \"usercache\" + File.separator + user + File.separator +\n \"appcache\" + File.separator + applicationIdString + File.separator + dagIdentifier;\n }", "private void scanAllDirectories()\n throws IOException, InstanceNotFoundException {\n\n int errcount = 0;\n final StringBuilder b = new StringBuilder();\n for (ObjectName key : scanmap.keySet()) {\n final DirectoryScannerMXBean s = scanmap.get(key);\n try {\n if (state == STOPPED) return;\n s.scan();\n } catch (Exception ex) {\n LOG.log(Level.FINE,key + \" failed to scan: \"+ex,ex);\n errcount++;\n append(b,\"\\t\",ex);\n }\n }\n if (errcount > 0) {\n b.insert(0,\"scan partially performed with \"+errcount+\" error(s):\");\n throw new RuntimeException(b.toString());\n }\n }", "FsPath baseDir();", "public PhySortExOp(int BufferPages) {\n\t\tsuper();\n\t\tB = BufferPages;\n\t\tcount++;\n\t\ttempsubdir += \"sub\" + count + \"/\";\n\t\tPath path = Paths.get(tempsubdir);\n\t\ttry {\n\t\t Files.createDirectories(path);\n\t\t} catch (IOException e) {\n\t\t System.err.println(\"Cannot create directories - \" + e);\n\t\t}\n\t}", "public static void main(String[] args) { String dirname = \"/home/diego/IdeaProjects/JAVAStuff/src/tmp/dirTest.txt\";\n// File d = new File(dirname);\n// d.mkdirs();\n//\n File file = null;\n String[] paths;\n\n try {\n file = new File(\"/home/diego/IdeaProjects/JAVAStuff/src\");\n paths = file.list();\n\n for(String s: paths) {\n System.out.println(s);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n }", "@Test(timeout = 4000)\n public void test23() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n ArrayList<Object> arrayList0 = new ArrayList<Object>();\n File file0 = fileUtil0.getAccessories(\"YP=8V~@ch)3vts}p8\", arrayList0);\n assertNull(file0);\n }" ]
[ "0.6178963", "0.59301466", "0.5834886", "0.5735319", "0.56859255", "0.5680537", "0.5637551", "0.56275487", "0.55965376", "0.5595696", "0.5565283", "0.5517801", "0.551206", "0.5488203", "0.5461477", "0.54541105", "0.54501045", "0.54315037", "0.5428948", "0.53589875", "0.5347149", "0.5346701", "0.5343212", "0.5331974", "0.5319839", "0.5317883", "0.53011173", "0.52850604", "0.5282262", "0.52530694", "0.5242409", "0.5238946", "0.52359086", "0.5222714", "0.52155", "0.5207386", "0.520619", "0.51879025", "0.5172173", "0.51679224", "0.5150202", "0.51500994", "0.5137618", "0.5135607", "0.51313555", "0.5127089", "0.51253915", "0.5121158", "0.5119085", "0.51188946", "0.51134497", "0.51020056", "0.5098051", "0.5097711", "0.5055669", "0.5050173", "0.5047387", "0.5031631", "0.50195295", "0.5014013", "0.5010135", "0.50061476", "0.5004813", "0.49982724", "0.4997958", "0.49977311", "0.4996884", "0.4977683", "0.49740627", "0.49712476", "0.4968165", "0.49679747", "0.49571338", "0.49529317", "0.49510232", "0.49503332", "0.49453175", "0.49419183", "0.4941688", "0.49344394", "0.4924812", "0.4923314", "0.49173748", "0.49118042", "0.49029383", "0.48938075", "0.48918837", "0.489021", "0.48857278", "0.4872751", "0.48711154", "0.48697978", "0.48697248", "0.4868825", "0.48687708", "0.48673984", "0.48572934", "0.48533437", "0.48492548", "0.4839939", "0.48391175" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { List<Coffee> list = new ArrayList<Coffee>(); Fill.fill(Adapter.collectionAdapter(list), Coffee.class, 3); Fill.fill(Adapter.collectionAdapter(list), Latte.class, 3); for(Coffee c : list) System.out.println(c); Coffee[] array = new Coffee[5]; Fill.fill(Adapter.arrayAdapter(array), Americano.class, array.length); for(Coffee c : array) System.out.println(c); }
{ "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
Description: This interface describes methods for working with users database table, extending the capabilities of basic DAO interface.
public interface UserDAO extends AbstractDAO<User> { /** * This method checks the availability of the <i>login</i> and <i>password</i> in the <i>users</i> database table. * * @param login - entered <i>login</i> filed of the user. * @param password - entered <i>password</i> field of the user. * @param connection - the current connection to a database. Transmitted from the service module to provide transactions. * @return - boolean value of the condition: * returns "true" if the incoming data correspond to the record of the database table; * returns "false" if the incoming data do not correspond to the record of the database table. */ boolean isAuthorized(String login, String password, Connection connection) throws DAOException; /** * This method reads data from <i>users</i> database table, creates and returns User object according to the entered login. * * @param login - entered <i>login</i>. * @param connection - the current connection to a database. Transmitted from the service module to provide transactions. * @return - User object. */ User getByLogin(String login, Connection connection) throws DAOException; /** * This method check the uniqueness of the user. * * @param login - entered <i>login</i>. * @param connection - the current connection to a database. Transmitted from the service module to provide transactions. * @return - boolean value of the condition: * returns "false" if the incoming data correspond to the record of the database table; * returns "true" if the incoming data do not correspond to the record of the database table. * @throws DAOException */ boolean checkUniqueUser(String login, Connection connection) throws DAOException; /** * This method reads and returns information from a record (row) of a database table. * * @param id - id number of the record (row) in the database table.. * @param connection - the current connection to a database. Transmitted from the service module to provide transactions. * @return - an entity from a database table according to the incoming id number. */ User getById(String id, Connection connection) throws DAOException; /** * This method updates an existing record (row) in a database table. * * @param user - the current entity of user which will be updated. * @param connection - the current connection to a database. Transmitted from the service module to provide transactions. */ void update(User user, Connection connection) throws DAOException; /** * This method creates entity of User class from data received from ResultSet. * * @param resultSet - a database result "row" with required values. * @param user - the entity of User with "null" value for setting corresponding values. * @return - created user with fields. * @throws SQLException */ User createUser(ResultSet resultSet, User user) throws SQLException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface UserDAO \r\n{\r\n\t/**\r\n\t * Insert a new user into the table.\r\n\t * @param user\r\n\t */\r\n public void insert(User user);\r\n \r\n /**\r\n\t * Update an existing user into the table.\r\n\t * @param user\r\n\t */\r\n public void update(User user);\r\n \r\n /**\r\n\t * Update a user's current budget duration id.\r\n\t * @param user\r\n\t */\r\n public void updateDuration(User user);\r\n \r\n /**\r\n * Remove a user from the user table.\r\n * @param username\r\n */\r\n public void delete(String username);\r\n \r\n /**\r\n * Get a user corresponding to a username.\r\n * Easiest way to get a user.\r\n * @param userId\r\n * @return User\r\n */\r\n public User get(String username);\r\n \r\n /**\r\n * Get an user corresponding to a user's email.\r\n * @param email\r\n * @return User\r\n */\r\n public User getUserByEmail(String email);\r\n \r\n /**\r\n * Returns a list of all users in the user table.\r\n * @return List<User>\r\n */\r\n public List<User> list();\r\n \r\n /**\r\n * Returns a list of all users corresponding to a\r\n * username. This should only return one user.\r\n * @param currentUsername\r\n * @return List<User>\r\n */\r\n\tpublic List<User> list(String currentUsername);\r\n\t\r\n /**\r\n * Returns a list of all users with usernames like\r\n * the given string.\r\n * @param search\r\n * @return List<User>\r\n */\r\n\tpublic List<User> listSearch(String search);\r\n}", "public interface UserDAO {\n\n /**\n * Gets all users from the database.\n */\n List<User> getAll() throws SQLException;\n\n /**\n * Gets a single user from the database by id.\n * @param userId of the user.\n * @return the specified user.\n * @throws UserNotFoundException error.\n */\n User get(int userId) throws UserNotFoundException, SQLException;\n\n /**\n * Gets a single user from the database by username.\n * @param username of the user.\n * @return the specified user.\n * @throws UserNotFoundException error.\n */\n User get(String username) throws UserNotFoundException, SQLException;\n\n /**\n * Adds a new user to the database.\n * @param user to add.\n */\n void add(User user) throws SQLException;\n\n /**\n * Checks if a username already exists in the database.\n * @param username to check.\n * @return true is the username does not already exist.\n */\n boolean isUniqueUsername(String username) throws SQLException;\n\n /**\n * Removes a user from the database.\n * @param user to remove.\n */\n void remove(User user) throws SQLException;\n\n /**\n * Updates a users information in the database.\n * @param user to updateCountries.\n */\n void update(User user) throws SQLException;\n\n /**\n * Checks a users credentials.\n * @param username username.\n * @param password password.\n * @return True if user is valid.\n * @throws SQLException thrown on sql error.\n * @throws UserNotFoundException thrown when the user is not found.\n */\n Boolean checkCredentials(String username, String password) throws\n SQLException, UserNotFoundException;\n\n}", "public interface UserDAO {\n\n List getUsers();\n\n User getUser(Integer id);\n\n User getUser(String UserName, String PassWord);\n\n void addUser(User user);\n\n void updateUser(User user);\n\n String deleteUser(Integer id);\n\n}", "public interface IUserDAO {\n\n\tpublic List<User> findAll();\n\tpublic User findByUsername(String username);\n\tpublic int insert(User u); // Returns the generated primary key\n//\tpublic User insert(User u); // Returns the modified User object with the generated Primary Key\n\tpublic boolean update(User u); // Returns whether the update was successful or not\n\t// For example, it might have violated some constraint\n\tpublic boolean delete(int userId); // Returns whether the record was actually deleted\n\tpublic User findById(int userId);\n}", "@Repository\npublic interface UserDao {\n public User getUser(Integer id);\n public int insertUser(Integer id);\n public int deletUser(Integer id);\n public int updateUser(User user);\n public List<User> findUsers(String username, RowBounds rowBounds);\n}", "public interface UserDao {\r\n public User login(String name);\r\n public int register(String name,String password);\r\n public boolean deleteUser(int userId);\r\n public User getUserByPrimeryKey(int userId);\r\n public List<User> queryAllUser();\r\n public boolean updateUser(User user);\r\n}", "public interface UserDAO {\n\n boolean create(User user) throws SQLException;\n List<User> getAll();\n User getUser(Integer id);\n boolean update(User user);\n boolean delete(User user);\n}", "public interface UserDao {\n\n\n}", "public interface UserDao {\n\t\n\tpublic boolean isExist(String name) throws AppException;\n\t\n\tpublic boolean add(User user) throws AppException;\n\t\n\tpublic int login(String name,String password) throws AppException;\n\t\n\tpublic User getById(int id) throws AppException;\n\t\n\tpublic List<Integer> getIds() throws AppException;\n\t\n\tpublic boolean setUserDel(int user_id) throws AppException;\n\t\n}", "public interface UserDAO extends BaseObjectDAO<User>{\n List<User> getAllActiveUsers();\n User findUserByEmail(String email);\n User findUserByMobile(String mobile);\n}", "public interface UserDAO {\n// 查询所有用户\n public List<User> queryAll();\n// 修改用户的状态\n public void update(User user);\n// 添加一个用户\n public void save(User user);\n// 查看一周的活跃量\n public Integer queryAc(Integer num);\n// 查看用户分布\n public List<CityFB> queryCity();\n\n}", "public interface UserDAO \n{\n\t//declare the methods\n\t\n\t//create the new user\n\t\n\tpublic boolean save(User user);\n\t\n\t//update the existing user\n\t\n\tpublic boolean upadte(User user);\n\t\n\t//get the user details\n\t\n\tpublic User get(String emailID);\n\t\n\t//delete the user\n\t\n\tpublic boolean delete(String emailID);\n\t\n\t//to get all the users\n\tpublic List<User> list();\n\t\n\t//validate weather the credentials are correct or not\n\t\n\tpublic User validate(String emailID , String password);\n\t\n\t//we may required more methods .... will discuss\n\t\n\t\n\t\n\t\n\t\n\n}", "public interface UserDao {\r\n\r\n public User getUser(String userName) throws HelixDaoException;\r\n\r\n public void updateUser(User user) throws HelixDaoException;\r\n\r\n}", "public interface UserDao {\n\n\n /**\n * 根据用户名密码查询用户\n * @param userName\n * @param password\n * @return\n */\n User findUser(String userName,String password);\n\n /**\n * 查询用户\n * @param id\n * @return\n */\n User findUserById(Long id);\n\n /**\n * 批量查询用户信息\n */\n Collection<User> findUserByIds(Collection<Long> ids);\n\n List<User> findUsers(Collection<Long> ids);\n\n /**\n * 分页查询用户信息\n * @param page\n * @param size\n * @return\n */\n\n List<User> listUsers(int page,int size);\n\n /**\n * 保存用户并返回主键\n * @param user\n * @return\n */\n Long saveUserReturnKey(User user);\n\n /**\n * 保存用户\n * @param user\n * @return\n */\n int saveUser(User user);\n\n /**\n * 更新用户\n * @param user\n */\n int updateUser(User user);\n\n /**\n * 删除用户\n * @param id\n */\n int deleteUserById(Long id);\n}", "public interface UserDAO {\n User selectUserByName(User user);\n User selectUserById(User user);\n void update(User user);\n}", "public interface UserDAO {\n\n public void createUser(User user) throws DBException;\n\n void deleteUser(Long id) throws DBException;\n\n void updateUserData(User user) throws DBException;\n\n User getUserById(Long id) throws DBException;\n\n List<User> getAllUsers() throws DBException;\n\n String getUserByMail(String mail) throws DBException;\n\n String getUserByName(String name) throws DBException;\n\n boolean checkLoginData(String email, String password) throws DBException;\n\n User getUserByLoginData(String email, String password) throws DBException;\n\n User getPasswordByMail(String email) throws DBException;\n\n}", "public interface UserDAO {\n\n /**\n * Gets all users.\n *\n * @return List of all users.\n */\n List<User> getAll();\n\n /**\n * Gets a user by its id.\n *\n * @param id Id of the user to find.\n * @return User object corresponding to given id.\n */\n User getUserById(int id);\n\n /**\n * Gets a user by its UUID.\n *\n * @param uuid UUID of the user to find.\n * @return User object corresponding to given UUID.\n */\n User getUserByUUID(String uuid);\n\n /**\n * Gets a user by its username.\n *\n * @param username The user's username.\n * @return User object corresponding to given username.\n */\n User getUserByUsername(String username);\n\n /**\n * Gets user by its username.\n *\n * @param username Username of the user to find.\n * @return User object corresponding to given username.\n */\n List<User> searchUsersByUsername(String username);\n\n /**\n * Gets the list of users, the given user is following.\n *\n * @param user User whose 'following' to get.\n * @return List of users, following list of given user.\n */\n List<User> getFollowingForUser(User user);\n\n /**\n * Gets the list of users, the given user is being followed by.\n *\n * @param user User whose 'followers' to get.\n * @return List of users, followers list of given user.\n */\n List<User> getFollowersForUser(User user);\n\n /**\n * Follows a user.\n *\n * @param user User object, who is following someone.\n * @param userToFollow User object, which user to follow.\n */\n void followUser(User user, User userToFollow);\n\n /**\n * Unfollows a user.\n *\n * @param user User object, who will unfollow someone.\n * @param userToUnfollow User object of which user to unfollow.\n */\n void unfollowUser(User user, User userToUnfollow);\n\n /**\n * Registers/adds a user.\n *\n * @param user User object to add.\n */\n void addUser(User user);\n\n /**\n * Edits the information of a user.\n *\n * @param user User object to edit.\n */\n User editUser(User user);\n\n /**\n * Removes/deletes a user.\n *\n * @param user User object to remove\n */\n void removeUser(User user);\n\n /**\n * Checks username and password combination for correctness.\n *\n * @param username\n * @param password\n * @return Instance of user if username and password combination is correct, else null object.\n */\n User login(String username, String password);\n\n User register(User user);\n\n}", "public interface UserDao {\n\t/**\n\t * get {@link User} by userId\n\t * \n\t * @return {@link User}\n\t */\n\tpublic User getUserByUserId(int _userId);\n\n\t/**\n\t * helper method to indicate whether user existed in system or not.\n\t * \n\t * @param _fbEmail\n\t * @return boolean value indicates whether this user existed or not\n\t */\n\tpublic boolean isUserExisted(String _fbEmail);\n\n\t/**\n\t * create a {@link User}\n\t * \n\t * @param _user\n\t * the specific {@link User} needs to be created.\n\t */\n\tpublic void createUser(User _user);\n\n\t/**\n\t * remove a {@link User}\n\t * \n\t * @param _userId\n\t * the id of specified {@link User} needs to be removed.\n\t */\n\tpublic void removeUserByUserId(int _userId);\n}", "public interface UserDao {\n /**\n * 用户增加\n *\n * @param user\n */\n void insert(User user);\n\n /**\n * 根据id删除\n *\n * @param id\n */\n void delete(int id);\n\n /**\n * 更新User\n *\n * @param user\n */\n void update(User user);\n\n /**\n * 查询表中所有数据\n *\n * @return\n */\n List<User> queryAll();\n\n /**\n * 根据User查询\n *\n * @param id\n * @return\n */\n User queryById(int id);\n}", "public interface UserDaoInterface {\n /**\n * Save the user in the DB\n * @param entity\n * @return boolean - if creation was success return true, else return false\n * @throws UserDaoException\n */\n boolean saveUser(User entity) throws UserDaoException;\n\n /**\n * Update the user tuple in the DB\n * @param entity\n * @throws UserDaoException\n */\n void updateUser(User entity) throws UserDaoException;\n\n /**\n * Delete the user tuple from DB\n * @param username\n * @throws UserDaoException\n */\n void deleteUser(String username) throws UserDaoException;\n\n /**\n * Gets the user tuple from the DB by username\n * @param username\n * @return User - tuple from the DB\n * @throws UserDaoException\n */\n User findByUsername(String username) throws UserDaoException;\n\n /**\n * Get all the users from the DB\n * @return list of all users in DB\n * @throws UserDaoException\n */\n List<User> findAll() throws UserDaoException;\n\n /**\n * Check if the username and password that entered are as same as in the user tuple in the DB.\n * @param username\n * @param password\n * @return boolean - return true if user exists in the DB and his password is correct, else false\n * @throws UserDaoException\n */\n boolean isAuthenticate(String username, String password) throws UserDaoException;\n}", "public interface UserDao {\n\n Integer insertUser(User user);\n\n Integer insertUserList(List<User> list);\n\n User queryUser(User user);\n\n List<User> queryUserList();\n\n Integer updateUserPwd(User user);\n\n Long queryTotalCount(PaginationVO vo);\n\n List<User> queryUserListForPaging(PaginationVO vo);\n\n Integer deleteUserById(String id);\n\n User queryUserById(String id);\n\n Integer updateUser(User user);\n\n List<String> queryAddress();\n\n}", "public interface UserDAO {\n\n long saveUser(User user); //save\n\n void deleteUserById(long user_id); //delete by id\n\n void updateUser(long user_id, String firstName, String secondName, int mobile); //update\n\n List<User> findAllUsers(); //find all\n\n User findById(long user_id); //find by id\n\n User findByCred(String login, String password); //find by Credentials\n\n}", "public interface IUserDAO {\n User findByUserName(String username);\n\n boolean add(User user);\n\n boolean edit(User user);\n\n boolean delete(int uid);\n\n PageInfo listExaminee(PageInfo pageInfo);\n\n User findById(int id);\n\n void importExmainee(List<User> list);\n\n void removeReply(int uid);\n\n boolean existIdcard(String idcard);\n}", "public interface UserDAO\n{\n\n\tpublic abstract String registUser(User user)\n\t\tthrows BussinessProcessException;\n\n\tpublic abstract Query findUserList(Query query)\n\t\tthrows BussinessProcessException;\n\n\tpublic abstract String confirmUser(User user)\n\t\tthrows BussinessProcessException;\n\n\tpublic abstract String forbidUser(User user)\n\t\tthrows BussinessProcessException;\n\n\tpublic abstract String loginUser(User user)\n\t\tthrows BussinessProcessException;\n\n\tpublic abstract User findUserById(String s)\n\t\tthrows BussinessProcessException;\n\n\tpublic abstract String deleteUser(String s)\n\t\tthrows BussinessProcessException;\n\n\tpublic abstract String createUserBasic(User user)\n\t\tthrows BussinessProcessException;\n\n\tpublic abstract Query findUserBasicManageList(Query query)\n\t\tthrows BussinessProcessException;\n\n\tpublic abstract Query findUserBasicList(Query query)\n\t\tthrows BussinessProcessException;\n\n\tpublic abstract User findUserBasicById(String s)\n\t\tthrows BussinessProcessException;\n\n\tpublic abstract String modifyUserBasic(User user)\n\t\tthrows BussinessProcessException;\n\n\tpublic abstract String confirmUserBasic(User user)\n\t\tthrows BussinessProcessException;\n\n\tpublic abstract String addPrivilege(User user)\n\t\tthrows BussinessProcessException;\n\n\tpublic abstract String findPrivilege(String s)\n\t\tthrows BussinessProcessException;\n\n\tpublic abstract String modifyPassword(User user)\n\t\tthrows BussinessProcessException;\n\n\tpublic abstract String modifyUserToFriend(String s, String s1)\n\t\tthrows BussinessProcessException;\n\n\tpublic abstract String createUserBasicExcel()\n\t\tthrows BussinessProcessException;\n\n\tpublic abstract ArrayList find_functionids(HashMap hashmap)\n\t\tthrows BussinessProcessException;\n\n\tpublic abstract User findUserById(String s, HashMap hashmap)\n\t\tthrows BussinessProcessException;\n}", "public interface UserDAO extends GenericDAO<User> {\r\n\r\n /** Get user by name. */\r\n public User getUser(String name);\r\n \r\n /**\r\n * Get all enabled users\r\n * @return all enabled users\r\n */\r\n public List<User> getEnabledUsers();\r\n \r\n /**\r\n * Get all disabled users\r\n * @return all disabled users\r\n */\r\n public List<User> getDisabledUsers();\r\n}", "public interface UserDAO {\n\n boolean createUser(User user);\n\n boolean findUser(String userName, String password);\n\n User updateUser(User user);\n\n boolean deleteUser(String userName);\n\n List<User> findAllUsers();\n\n // User logIn(User user);\n //\n // User logOut(User user);\n}", "public interface UserDao {\n\n void save(User user);\n void delete(User user);\n List<User> list();\n void update(User user);\n\n User getUser(String userName, String password);\n\n\n}", "public interface UsersDAO extends JpaDao<Users> {\r\n\r\n\t/**\r\n\t * JPQL Query - findUsersByPassword\r\n\t *\r\n\t */\r\n\tpublic Set<Users> findUsersByPassword(String password) throws DataAccessException;\r\n\r\n\t/**\r\n\t * JPQL Query - findUsersByPassword\r\n\t *\r\n\t */\r\n\tpublic Set<Users> findUsersByPassword(String password, int startResult, int maxRows) throws DataAccessException;\r\n\r\n\t/**\r\n\t * JPQL Query - findUsersByPrimaryKey\r\n\t *\r\n\t */\r\n\tpublic Users findUsersByPrimaryKey(Integer userId) throws DataAccessException;\r\n\r\n\t/**\r\n\t * JPQL Query - findUsersByPrimaryKey\r\n\t *\r\n\t */\r\n\tpublic Users findUsersByPrimaryKey(Integer userId, int startResult, int maxRows) throws DataAccessException;\r\n\r\n\t/**\r\n\t * JPQL Query - findUsersByPasswordContaining\r\n\t *\r\n\t */\r\n\tpublic Set<Users> findUsersByPasswordContaining(String password_1) throws DataAccessException;\r\n\r\n\t/**\r\n\t * JPQL Query - findUsersByPasswordContaining\r\n\t *\r\n\t */\r\n\tpublic Set<Users> findUsersByPasswordContaining(String password_1, int startResult, int maxRows) throws DataAccessException;\r\n\r\n\t/**\r\n\t * JPQL Query - findAllUserss\r\n\t *\r\n\t */\r\n\tpublic Set<Users> findAllUserss4tsw(Integer tswId) throws DataAccessException;\r\n\r\n\t/**\r\n\t * JPQL Query - findAllUserss\r\n\t *\r\n\t */\r\n\tpublic Set<Users> findAllUserss4tsw(Integer tswId, int startResult, int maxRows) throws DataAccessException;\r\n\r\n\t/**\r\n\t * JPQL Query - findUsersByUsernameContaining\r\n\t *\r\n\t */\r\n\tpublic Set<Users> findUsersByUsernameContaining(String username) throws DataAccessException;\r\n\r\n\t/**\r\n\t * JPQL Query - findUsersByUsernameContaining\r\n\t *\r\n\t */\r\n\tpublic Set<Users> findUsersByUsernameContaining(String username, int startResult, int maxRows) throws DataAccessException;\r\n\r\n\t/**\r\n\t * JPQL Query - findUsersByUsername\r\n\t *\r\n\t */\r\n\tpublic Set<Users> findUsersByUsername(String username_1) throws DataAccessException;\r\n\r\n\t/**\r\n\t * JPQL Query - findUsersByUsername\r\n\t *\r\n\t */\r\n\tpublic Set<Users> findUsersByUsername(String username_1, int startResult, int maxRows) throws DataAccessException;\r\n\r\n\t/**\r\n\t * JPQL Query - findUsersByActiveYn\r\n\t *\r\n\t */\r\n\tpublic Set<Users> findUsersByActiveYn(Integer activeYn) throws DataAccessException;\r\n\r\n\t/**\r\n\t * JPQL Query - findUsersByActiveYn\r\n\t *\r\n\t */\r\n\tpublic Set<Users> findUsersByActiveYn(Integer activeYn, int startResult, int maxRows) throws DataAccessException;\r\n\r\n\t/**\r\n\t * JPQL Query - findUsersByUserId\r\n\t *\r\n\t */\r\n\tpublic Users findUsersByUserId(Integer userId_1) throws DataAccessException;\r\n\r\n\t/**\r\n\t * JPQL Query - findUsersByUserId\r\n\t *\r\n\t */\r\n\tpublic Users findUsersByUserId(Integer userId_1, int startResult, int maxRows) throws DataAccessException;\r\n\r\n\tpublic Integer getMaxUsersID();\r\n\r\n}", "public interface UserDao extends BaseDao<User, Long> {\n\n User findByJaccountUid(String jaccountUid);\n\n User findByJaccountId(String jaccountId);\n\n User findByJaccountChinesename(String jaccountChinesename);\n\n User findByUsername(String username);\n\n User findById(Long id);\n\n List<User> findByRole(User.Role role);\n\n}", "public interface UserDAO {\n\n public long insert(User model);\n\n public User getCurrentUser();\n\n public void logout();\n}", "public interface UserDAO {\n int deleteByPrimaryKey(Long userId);\n\n void insert(User record);\n\n void insertSelective(User record);\n\n void insertBatch(List<User> records);\n\n User selectByPrimaryKey(Long userId);\n\n int updateByPrimaryKeySelective(User record);\n\n int updateByPrimaryKey(User record);\n}", "public interface UserDAO {\n void addUser(User user);\n\n void deleteUser(String userId);\n\n void updateLoginAndPassword(String userId, String login, String password);\n\n void updatePassword(String userId, String password);\n\n User findUserByCredentials(String userName, String password);\n\n List<User> getUsers();\n\n boolean isValidUser(String userName, String password);\n\n User findUserById(String userId);\n}", "public interface UserDao {\n public User getByNickname(Map map);\n public int insertUser(Map map);\n public User getById(Map map);\n\n\n\n}", "public interface UserDAO {\n\t\n\tUser getById(Integer id) throws DaoException;\n\t\n\tUser getByEmail(String email) throws DaoException;\n\t\n\tBoolean addUser(User user) throws DaoException;\n\t\n\tBoolean updateUser(Integer id, User user) throws DaoException;\n\t\n\tvoid setToken(User user) throws DaoException;\n}", "@Repository(\"UserDAO\")\npublic interface UserDAO {\n public User selectUserFromId(int id);\n\n public List<User> selectUserFromName(String user);\n\n public List<User> selectUserFromCall(String callphone);\n\n public List<User> selectUserAll();\n\n public int insertUser(User user);\n\n public int deleteUser(int id);\n\n public int updateUser(User user);\n\n}", "public interface UserDao extends UniversalDao<User> {\n\n User findUserById(long id);\n\n User findUserByName(String name);\n\n List<User> findAllUsers();\n\n List<User> findAllActiveUsers();\n}", "public interface UserInfoDAO {\n void addUserInfo(int id, String name, String surname, int positionId, Date bday, String magazine, String photo);\n List<UserInfo> getTable();\n UserInfo getUserInfoById(int id);\n void updateUserInfo(String newName, String newSurname, Date bday, int newPositionId, String newMagazine, int id);\n List<UserInfo> getForHead(String magazine);\n List<UserInfo> getForJournalist(String magazine);\n List<UserInfo> getForOwner();\n void updateUserPhoto(String photo, int id);\n}", "public interface UserDao {\n //总条数\n public Integer userCountByQueryVo(QueryVo vo);\n //结果集\n public List<User> selectUserListByQueryVo(QueryVo vo);\n\n //通过id查询\n public User selectUserById(Integer id);\n\n //通过username查询\n public User selectUserByName(String userName);\n\n //通过id修改\n public void updateUserById(User user);\n\n //通过id删除\n public void deleteUserById(Integer id);\n\n //通过id增加\n public void addUserById(User user);\n}", "public interface UserDAO {\n /**\n *\n * @param user\n * @return\n */\n public int insertUser(User user);\n public List<User> finduserById();\n}", "interface IUserDAO {\n\n\tpublic User save(User user);\n\n\tpublic List<User> list();\n\n\tpublic User update(User user);\n\n\tpublic Boolean delete(User user);\n\n\tpublic UserConstraints search();\n\n\tpublic User search(UserConstraints userConstraints);\n\n\tpublic UserConstraints userConstraints();\n\n\tpublic Boolean validateLogin(String login);\n\n\tpublic Boolean validateLoginToUpdate(User user, String login);\n\n\tpublic Boolean authentication(User user);\n}", "public interface UserDAO {\n /**\n * Searches for the user in database with the passed in username and returns a User object with this user's data.\n * @param username username to search for\n * @return User object if user is found, null if otherwise.\n */\n User getUser(String username);\n\n /**\n * Performs login verification, recieves a user object and a password attempt String as parameters and returns true if\n * there is a match for a user with such username and password. If match is found, logs in user by setting the user object's\n * loggedIn field to true and returning true; otherwise, returns false.\n * @param user The user object whose password is being verified.\n * @param password The password attempt\n * @return true if the user is verified, false if verification failed.\n */\n boolean verifyUser(User user, char[] password);\n}", "public interface UserInfoDao {\n public UserinfoId getUserById(int id);\n public UserinfoId getUserByName(String name);\n public UserinfoId addUser(UserinfoId user);\n public List<UserinfoId> getAllUsers();\n}", "public abstract UserDAO getUserDAO();", "public interface UserDao {\n //添加新用户\n public int addUser(User user);\n public User getUserByOpenId(String openId);\n}", "public interface userDao {\n void saveUser(user user);\n\n List<user> GetAllUser();\n\n int deleteUser(int id);\n\n user getUserById(int id);\n\n int updateUser(user user);\n}", "public interface UserDao {\n /**\n * 获取用户列表\n * @return\n */\n List<User> getUsers();\n\n /* *//**\n * if user exit by email\n * @param phone\n * @return\n *//*\n User findUserByPhone(String phone);\n\n *//**\n * create a new user\n * @param user\n * @return\n *//*\n int createUser(User user);\n\n *//**\n * delete user\n * @param userId\n * @return\n *//*\n int deleteUser(int userId);\n\n *//**\n * if user exit by id\n * @param id\n * @return\n *//*\n User getUser(int id);\n\n *//**\n * delete user\n * @param user\n * @return\n *//*\n int updateUser(User user);\n*/\n /**\n * 用户正确性检验\n * @param userId\n * @return\n */\n User findUserByUserId(String userId);\n}", "public interface UsersDAO { //perform in database;\nvoid addUsers(Users user);\nvoid updateUsers(Users user); //pass employee object\nvoid deleteUsers(int id);//pass employee id\nvoid withdraw(Users users, double balance, double amount);\nvoid deposit(Users users, double balance, double amount);\n\n\n//get all employees\nList<Users> getUsers(); //method to return list of employees;\n//Users usersById(int id); // method to return a single employee;\n\n}", "public interface UserDao {\n /**\n * 插入用户\n * @param openid 微信的openid,用户的唯一识别码\n * @return 返回插入的数量\n */\n int insertUser( String openid);\n /**\n * 根据id查询用户\n * @param openid\n * @return\n */\n User selectById(String openid);\n\n /**\n * 根据openid禁止非法用户,使state变为0\n * @param openid\n * @return 返回更新的数量\n */\n int banUser(String openid);\n\n /**\n * 更改用户信息\n * @param openid\n * @param avater 头像地址\n * @return 返回更新的数量\n */\n int updateData(@Param(\"openid\")String openid,@Param(\"avater\")String avater);\n\n /**\n * 根据openid删除用户\n * @param openid\n * @return 返回删除的数量\n */\n int deleteUser(String openid);\n}", "public interface UserDao {\n\n /**\n * Saves a new user to a persistant storage. A copy of the newly created user is returned (since\n * {@link com.whiteleys.zoo.domain.User} instances are immutable).\n *\n * @param user the user to save\n * @return the newly created user (which is not the same instance as the 'user' parameter)\n */\n void save(User user);\n\n /**\n * Retrieve a user from the database with the given username and password.\n *\n * @param username the username\n * @param password the password\n * @return the user, or null if no users match the credentials\n */\n User find(String username, String password);\n\n /**\n * Does a user with the given username exist on the database.\n *\n * @param username the username\n * @return true if a user with this username already exists, otherwise false\n */\n boolean exists(String username);\n}", "public interface UserDao {\n\n /**\n * Creating new User.\n * \n * @param user\n * user\n * \n * @throws NullPointerException\n * if user null\n * \n */\n void create(User user);\n\n /**\n * Updating a user.\n * \n * @param user\n * user\n * \n * @throws NullPointerException\n * if user null\n * @throws IllegalArgumentException\n * if DB hasn't this user.\n * \n */\n void update(User user);\n\n /**\n * Removing user.\n * \n * @param user\n * user\n * \n * @throws NullPointerException\n * if user null\n * @throws IllegalArgumentException\n * if DB hasn't this user.\n * \n */\n void remove(User user);\n\n /**\n * Removing user by id.\n * \n * @param id\n * id of user\n * \n * @throws NullPointerException\n * if user null\n * @throws IllegalArgumentException\n * if DB hasn't this user.\n * \n */\n void remove(Long id);\n\n /**\n * Finding all users.\n * \n * @return users.\n */\n List<User> findAll();\n\n /**\n * finding user by login.\n * \n * @param login\n * login\n * @return user\n */\n User findByLogin(String login);\n\n /**\n * Finding user by Е-mail\n * \n * @param email\n * Е-mail\n * @return user\n */\n User findByEmail(String email);\n\n /**\n * Is exist user with this login.\n * \n * @param login\n * login of user\n * @return {@code true} if exist\n */\n boolean isUserByLogin(String login);\n\n /**\n * Is exist user with this e-mail.\n * \n * @param email\n * e-nail of user\n * @return {@code true} if exist\n */\n public boolean isUserByEmail(String email);\n\n /**\n * Find user by id.\n * \n * @param id\n * id of user\n * @return user\n */\n public User findById(Long id);\n\n}", "public interface UserDao {\n\n List<User> select(User user);\n\n List<User> selectAll();\n}", "public interface TsPtlUserDao {\n public TsPtlUser selectUserByUserPass(Map<String,String> map);\n public void updateUser(TsPtlUser user);\n public TsPtlUser selectUserById(Long userId);\n}", "public interface UserDAO {\n void register(User user);\n User getUser(String userName);\n User login(String userName, String password);\n}", "public interface UserDao {\n LoginUser findUserByName(String username);\n}", "public interface UserDao {\n int queryByUserPass(User user);\n}", "UserDao getUserDao();", "public interface UserDao {\n public void find() ;\n public void delete() ;\n public void save() ;\n public void update() ;\n}", "public interface UserDao {\n List<User> getAllUser();\n\n void addUser(User user);\n\n void updateUser(User user);\n\n void removeUser(int id);\n\n User getUser(int id);\n}", "public interface iUserDAO {\n public boolean create(User user);\n public Set<User> read();\n public boolean update();\n public boolean delete();\n public boolean clear();\n}", "public interface IUsersDao {\r\n\r\n\t/**\r\n\t * @param user Receive an user\r\n\t * @return This function return an id\r\n\t * @throws ApplicationException This function can throw an applicationException\r\n\t */\r\n\tpublic long createUser(User user) throws ApplicationException;\r\n\r\n\t/**\r\n\t * @param userId Receive an user id\r\n\t * @throws ApplicationException This function can throw an applicationException\r\n\t */\r\n\tpublic void deleteUser(long userId) throws ApplicationException;\r\n\r\n\t/**\r\n\t * @param companyId Receive a company id\r\n\t * @throws ApplicationException This function can throw an applicationException\r\n\t */\r\n\tpublic void deleteUserByCompanyId(long companyId) throws ApplicationException;\r\n\r\n\t/**\r\n\t * @param userName Receive an user name\r\n\t * @param password Receive a password\r\n\t * @param userId Receive an user id\r\n\t * @throws ApplicationException This function can throw an applicationException\r\n\t */\r\n\tpublic void updateUser(String userName, String password, long userId) throws ApplicationException;\r\n\r\n\t/**\r\n\t * @param userId Receive an user id\r\n\t * @return This function return an user name\r\n\t * @throws ApplicationException This function can throw an applicationException\r\n\t */\r\n\tpublic String getUserName(long userId) throws ApplicationException;\r\n\r\n\t/**\r\n\t * @param userId Receive an user id\r\n\t * @return This function return an user\r\n\t * @throws ApplicationException This function can throw an applicationException\r\n\t */\r\n\tpublic User getUser(long userId) throws ApplicationException;\r\n\r\n\t/**\r\n\t * @param userName Receive a user name\r\n\t * @param password Receive a password\r\n\t * @return This function return an userDataMap\r\n\t * @throws ApplicationException This function can throw an applicationException\r\n\t */\r\n\tpublic UserDataMap login(String userName, String password) throws ApplicationException;\r\n\r\n\t/**\r\n\t * @return This function return an user list\r\n\t * @throws ApplicationException This function can throw an applicationException\r\n\t */\r\n\tpublic List<User> getAllUsers() throws ApplicationException;\r\n\r\n\t/**\r\n\t * @param companyId Receive a company id\r\n\t * @return This function return true if user exists\r\n\t * @throws ApplicationException This function can throw an applicationException\r\n\t */\r\n\tpublic boolean isUserExistByCompanyId(long companyId) throws ApplicationException;\r\n\r\n\t/**\r\n\t * @param userName Receive am user name\r\n\t * @return This function return true if user exists\r\n\t * @throws ApplicationException This function can throw an applicationException\r\n\t */\r\n\tpublic boolean isUserExist(String userName) throws ApplicationException;\r\n\r\n\t/**\r\n\t * @param userId Receive an user id\r\n\t * @return This function return true if user exists\r\n\t * @throws ApplicationException This function can throw an applicationException\r\n\t */\r\n\tpublic boolean isUserExist(long userId) throws ApplicationException;\r\n\r\n}", "public interface UserDao {\n List<User> selectUsers();\n List<User> selectUserslistPage(Map<String,Object> map);\n\n User selectUserByName(Map<String,Object> map);\n}", "public interface UserDao extends BaseDao<User> {\n /**\n * 根据username获取User对象\n * @param username\n * @return User实例\n */\n User getUserByUsername(String username);\n\n}", "@Dao\npublic interface UserDao {\n @Query(\"SELECT * FROM users\")\n List<User> getAllUsers();\n\n @Query(\"SELECT * FROM users WHERE user_name like :username\")\n List<User> getAllUsers(String username);\n\n @Query(\"SELECT * FROM users WHERE userId like :userId\")\n User getUser(int userId);\n\n @Insert\n long insert(User user); //return id of the user added\n// void insert(User user);\n\n @Insert\n void insertAll(List<User> users);\n\n @Update\n void update(User user);\n\n @Delete\n void delete(User user);\n}", "public interface UserDAO {\r\n \r\n\t/**\r\n\t * Retrieves an user based on its username\r\n\t * @param username\r\n\t * @return\r\n\t */\r\n public SecurityUser findByName(String username);\r\n}", "public interface UserDao {\n public List<User> getUserList();\n public User getUserById(int id);\n}", "public interface UserDBFunctions {\n\n void insertUser(String username, String password, String email);\n void deleteUser(int id);\n void deleteUser(User user);\n void updateUser(User user);\n void selectUserByEmail(String email);\n void listUsers();\n\n}", "public interface UserDao {\n void add(User user);\n\n void delete(String id);\n\n void update(User user);\n\n User find(String id);\n\n Map<String,User> getAll();\n}", "public interface UserBL {\n\t/**\n\t * Metodo que valida que un usuario exista en la base de datos\n\t * @param email\n\t * @param pass\n\t * @throws MyDaoException\n\t */\n\tpublic User validarUsuario(String email, String password) throws BLException;\n\n\n\t/**\n\t * Metodo que crea un usuario en la base de daos\n\t * @param cedula\n\t * @param name\n\t * @param lastname\n\t * @param salary\n\t * @param email\n\t * @param password\n\t * @throws MyDaoException\n\t */\n\tpublic void crearUsuario(String cedula,String name ,String lastname ,String phone , String city ,String email,String password) throws BLException;\n\t\n\t/**\n\t * Metodo que elimina un Usuario dato su email\n\t * @param email\n\t * @throws MyDaoException\n\t */\n\tpublic void eliminarUsuario(String id) throws BLException;\n\t\n\t/**\n\t * Metodo que actualiza un Usuario exista en la base de datos\n\t * @throws MyDaoException\n\t */\n\tpublic void actualizarUsuario(String cedula,String name ,String lastname , String city ,String phone ,String email,String password) throws BLException;\n\n\t/**\n\t * Metodo que lista todos los Usuarios.\n\t * @return\n\t */\n\tpublic List<User> ObtenerTodosUsuarios() throws BLException;\n\n}", "public interface UserDao {\n /**\n * 根据id获得account信息\n * @param id\n * @return\n */\n User getById(int id);\n\n /**\n * 根据name获得account信息\n * @param name\n * @return\n */\n User getByName(String name);\n\n}", "public interface UserDao {\n User getUser(String userId);\n\n boolean insertUser(User obj);\n}", "public interface DUserDao {\n /**\n * 根据手机和密码,查询返回病患信息\n * 若不存在返回空,若密码不对返回id=0的医生\n * @param phone 医生手机\n * @return\n */\n DUser queryByPhone(@Param(\"phone\") String phone);\n\n /**\n * 新建一个医生用户\n * @param dUser\n * @return\n */\n boolean save(DUser dUser);\n\n /**\n * 查询所有的医生用户\n * @return\n */\n ArrayList<DUser> queryAll();\n\n /**\n * 更新医生\n * @param dUser\n * @return\n */\n boolean updateDUser(DUser dUser);\n}", "public interface UserDao extends RootDao<User> {\n\n User findByUsername(String username);\n\n List<User> getAll();\n}", "@Repository(value=\"userDao\")\npublic interface UserDao {\n //根据用户ID获取相应的用户名和密码\n UserBean selectByUserId(String userId);\n\n //添加用户\n void insertUser(UserBean userBean);\n\n //修改密码\n void updatePassword(UserBean userBean);\n\n //修改头像\n void updateFavicon(UserBean userBean);\n}", "public interface UserDao {\n List<User> findAll();\n User findById(Long id);\n void save(User user);\n void delete(User user);\n\n}", "public interface IUsersDAO {\n\n /**\n * Retrieve the Users from the Database specified at startup\n * @return a List of IUser\n */\n public List<IUser> getUsers();\n\n /**\n * Save all the Users to the Database specified at startup\n */\n public void saveUser(IUser user);\n\n}", "public interface UserDao extends EntityDao<User> {\n\n User findByLogin(String login);\n}", "public interface TblUserService {\n\n List<TblUser> selectAll();\n\n int insert();\n\n}", "public interface UserDAO extends {\n}", "public interface UserManager {\n\n /**\n * Add a user to the database\n *\n * @param user User object representing the user to be added.\n */\n public void addUser(User user);\n\n /**\n * Delete a user from the database.\n *\n * @param name Name of the user to be deleted.\n */\n public void deleteUser(String name);\n\n /**\n * Update the user in the database.\n *\n * @param oldUser User to update.\n * @param newUser User to be updated to.\n */\n public void updateUser(User oldUser, User newUser) ;\n\n /**\n * Get the user object from the database\n * @param name Name of the user to get.\n * @return User returned.\n */\n public User getUser(String name);\n\n /**\n * Get all the users in the database.\n * \n * @return List of users in the database.\n */\n public List getAllUsers();\n}", "public interface UserDao {\n\n void add(User user) throws Exception;\n\n void deleteByName(String userName) throws Exception;\n\n List<User> getAllList() throws Exception;\n\n void deleteAll() throws Exception;\n}", "public interface UserDAO {\n List<User> getUsers();\n}", "public interface UsuarioDao {\n\t\n\tUsuario consultarUsuario (Usuario usuario);\n\n\tvoid guardarUsuario(Usuario usuario);\n\n\tList<Usuario> traerTodosLosUsuarios();\n\n\tvoid guardarAdministrador(Usuario admin);\n\n\tUsuario traerUnUsuarioPorSuId(Long id);\n\n\tvoid actualizarUsuario(Usuario usuario);\n\n\tUsuario consultarCorreoUsuario(Usuario usuario);\n}", "public interface sysUserService {\n @DataSource(\"master\")\n sysUser selectByid(String id);\n PageInfo selectUserList(String username, String name, String status, String org_id,\n String is_admin, String orderFiled, String orderSort, int pageindex, int pagenum);\n int addUser(sysUser sysuser);\n int modifyUser(sysUser sysuser);\n int deleteUser(String id);\n int changeUserStatus(String id,String status);\n}", "public interface IUserDao {\n public void add(User user);\n\n public void update(User user);\n\n public void delete(String id);\n\n public User load(String id);\n\n public List<User> findAllUser();\n\n public Map<String, Object> querySingleMapByPrimaryKey(Object primaryKey);\n\n public Map<String, Object> querySingleMapByWhereCondition(String whereCondition, Object... realValue) ;\n\n public Map<String, Object> querySingleMapByOriginalSql(String sql, Object... realValue);\n\n public List<Map<String, Object>> queryListMapAll();\n\n\n public List<Map<String, Object>> queryListMapByWhereCondition(String whereCondition, Object... realValue);\n\n public List<Map<String, Object>> queryListMapByOriginalSql(String sql, Object... realValue) ;\n\n}", "public interface UserDataHelper {\n\n // 格式:\"username\", \"password\", \"name\", \"gender\", \"phone\", \"member_type\", \"level\", \"birthday\", \"enterprise\"\n\n\n /**\n * 在user表中插入一条用户信息\n * @param userInfo\n * @return\n */\n public ResultMessage insertToSQL(ArrayList<Object> userInfo);\n\n /**\n * 在user表中删除一条用户信息\n * @param username\n * @return\n */\n public ResultMessage deleteFromSQL(String username);\n\n /**\n * 在user表中更新一条用户信息\n * @param userInfo\n * @return\n */\n public ResultMessage updateFromSQL(ArrayList<Object> userInfo);\n\n /**\n * 查找user表中的所有用户信息\n * @return\n */\n public ArrayList<ArrayList<Object>> findFromSQL();\n\n /**\n * 根据用户名在user表中查找一条用户信息\n * @param username\n * @return\n */\n public ArrayList<Object> findByIDFromSQL(String username);\n\n\n}", "public interface UserDao {\n public User login(User user);\n}", "UserInfoDao getUserInfoDao();", "public interface UserDAO extends DAO<User, String> {\n Collection<User> getLoginContains(String str);\n}", "public interface UserDao {\n User findByPhone(String phone);\n\n User findByPassword(User user);\n}", "public interface UserDao {\n public void add(User u);\n}", "public interface UserDAO {\n public List<User> queryUserAndRoles(String username);\n\n public List<Resource> queryResourcesAndRoles(String name) ;\n\n public List<Resource> queryResourcesAndRoles();\n}", "@Mapper\npublic interface UserDAO {\n String TABLE_NAME = \"user\";\n\n String INSERT_FIELDS = \" username , password , salt, telephone, address \";\n\n String SELECT_FIELDS = \" id, \" + INSERT_FIELDS;\n\n @Insert({\"insert into \", TABLE_NAME, \"(\", INSERT_FIELDS, \") Values (#{name}, #{password}, #{salt}\" +\n \", #{telephone}, #{address})\"})\n int addUser(User user);\n\n @Select({\"select \", SELECT_FIELDS, \" from \", TABLE_NAME, \" where id=#{id}\"})\n User selectById(int id);\n\n @Select({\"select \", SELECT_FIELDS, \" from \", TABLE_NAME, \" where username=#{name}\"})\n User selectByName(String name);\n\n @Update({\"update \", TABLE_NAME, \" set username = #{username} where id=#{id}\"})\n void updateUsername(User user);\n\n @Update({\"update \", TABLE_NAME, \" set telephone = #{telephone} where id=#{id}\"})\n void updateTelephone(User user);\n\n @Update({\"update \", TABLE_NAME, \" set address = #{address} where id=#{id}\"})\n void updateAddress(User user);\n\n @Delete({\"delete from \", TABLE_NAME, \" where id = #{id}\"})\n void deleteById(int id);\n}", "public interface RoleDao extends Dao{\n\n boolean authenticate(String username, String password);\n\n void addUser(Object user);\n\n User findByName(String username);\n\n int count();\n}", "public interface UserDao extends BaseDao <User, Integer> {\r\n\r\n}", "public interface IUserDao extends IBaseDAO<UserEntity> {\n public UserEntity findByUsername(String username);\n}", "public interface UsuarioDao {\n\t\n\tUsuario consultarUsuario (Usuario usuario);\n\tvoid cargarUsuario();\n\tvoid crearUsuario(Usuario usuario);\n\tvoid guardarTexto(Long id,String texto);\n\tboolean validarCambiarPassword(Long id,String oldPass, String newPass);\n\tList<Registro> obtenerRegistros(Long id);\n\tList<Usuario> obtenerUsuarios();\n\tList<Registro> obtenerRegistrosUsuarios(String email);\n\tvoid switchUsuario(String email);\n\tUsuario recuperarPassConsulta(String email);\n\tUsuario consultarUsuarioLogin(Usuario usuario);\n\tboolean autentificarUsuario(String auth,String fecha);\n\tvoid recuperarClave(Usuario usuario);\n\tboolean validarSetNewPassword(String newPass1, String newPass2);\n\tAutentificacion autentificarSetNewPassword(String auth, String fecha);\n\tvoid saveNewPassword(Long id, String email, String newPass1);\n}", "@Repository\r\npublic interface UserDao {\r\n\t/**\r\n\t * 获取全部用户信息\r\n\t */\r\n\tList<User> getAllUsers();\r\n\r\n\t/**\r\n\t * 通过登录名获取用户信息\r\n\t */\r\n\tUser getUserByDlm(String dlm);\r\n}", "public interface UserCredentialsDAO extends DBDAO<UserCredentials> {\n //Define non-standard CRUD methods.\n}", "@Repository\npublic interface UserDao {\n int getuid(String user_name);\n void addqiandao(qiandao qiandao);\n List<Role> getqx(String user_name);\n List<qiandao> gety(String user_name);\n List<qiandao> getj();\n List<qiandao> getall();\n Timestamp getoldtime(int uid);\n void delete1(int qid);\n\n\n}", "public interface UserDao extends GenericDao<User> {\n}" ]
[ "0.80748063", "0.78441775", "0.78327966", "0.7758829", "0.77016014", "0.7695394", "0.7668803", "0.76530457", "0.7647989", "0.76472825", "0.7642726", "0.76297194", "0.7613937", "0.7607912", "0.75875795", "0.7580558", "0.7574111", "0.7572512", "0.75711805", "0.75703377", "0.7563046", "0.7556984", "0.7543871", "0.7536841", "0.7536105", "0.7522297", "0.7517693", "0.7512386", "0.74956536", "0.74948686", "0.7493106", "0.74839395", "0.74804455", "0.7480334", "0.74564344", "0.74443895", "0.7437877", "0.74183655", "0.74063617", "0.740127", "0.739983", "0.7396781", "0.7396059", "0.7387449", "0.738484", "0.73750585", "0.73690253", "0.73683137", "0.7365396", "0.7362304", "0.7360706", "0.73597485", "0.735777", "0.73455024", "0.73440933", "0.7318752", "0.7318464", "0.7316303", "0.7311023", "0.73109883", "0.7302831", "0.72995144", "0.7294763", "0.72817916", "0.7278508", "0.72733176", "0.72566384", "0.72514254", "0.7248215", "0.7245586", "0.7232696", "0.722612", "0.71904194", "0.71897537", "0.71807414", "0.71724784", "0.7162615", "0.71519494", "0.7151491", "0.71185005", "0.7117239", "0.71078616", "0.710132", "0.70935035", "0.708136", "0.7072443", "0.703845", "0.70371574", "0.7036693", "0.7030189", "0.7017951", "0.70166385", "0.7016252", "0.7015811", "0.7005139", "0.69952756", "0.6988094", "0.6983102", "0.69773567", "0.6964364" ]
0.81629676
0
This method checks the availability of the login and password in the users database table.
boolean isAuthorized(String login, String password, Connection connection) throws DAOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkLogin() {\r\n try {\r\n String select = \"SELECT * FROM LOGIN\";\r\n ResultSet rs = model.ConnectToSql.select(select);\r\n while (rs.next()) {\r\n if (this.username.equals(rs.getString(1)) && new MD5().md5(this.password).equals(rs.getString(2))) {\r\n this.fullname = rs.getString(4);\r\n this.codeID = rs.getString(3);\r\n model.ConnectToSql.con.close();\r\n return true;\r\n }\r\n }\r\n\r\n } catch (Exception e) {\r\n //e.printStackTrace();\r\n\r\n }\r\n return false;\r\n }", "public boolean validateUser (String username, String password){\n Cursor cursor = dbHelper.getReadableDatabase().rawQuery(\n \"SELECT * FROM \" + dbHelper.TABLE_USERS + \" WHERE \" + dbHelper.COLUMN_USERNAME\n + \"='\" + username + \"' AND \" + dbHelper.COLUMN_PASSWORD + \"='\" + password + \"'\",null);\n if (cursor.getCount()>0){\n return true;\n }else {\n return false;\n }\n }", "boolean checkLoginDetails(String email,String password){\n boolean isValidUser = false;\n dbConnection();\n try{\n stmt = con.prepareStatement(\"SELECT * FROM users ORDER BY email\");\n rs = stmt.executeQuery();\n while(rs.next()){\n String checkEmail = rs.getString(\"email\");\n String checkpassword = rs.getString(\"password\");\n if(checkEmail.equals(email) && checkpassword.equals(password)){\n isValidUser = true;\n }\n }\n }\n catch(Exception e){\n e.printStackTrace();\n }\n return isValidUser;\n }", "public boolean loginCheck() {\n\t\tif(allParametersGiven==true) {\n\t\t\treturn dtb.checkLoginDetais(username,password);\n\t\t}\n\t\treturn false;\n\t}", "private boolean checkPass(String enterPass) {\n JdbcConnection connection = JdbcConnection.getInstance();\n DaoFactory daoFactory = new RealDaoFactory(connection);\n List<User> users = daoFactory.createUserDao().findAll();\n for (User user : users) {\n if (user.getPasswordHash() == enterPass.hashCode()) {\n return true;\n }\n }\n return false;\n }", "public boolean passwordCheck() {\n\t\tSystem.out.println(\"Password is: \"+LoggedUser.getPassword());\n\t\tMapSqlParameterSource params = new MapSqlParameterSource();\n\t\tparams.addValue(\"username\", LoggedUser.getUsername());\n\t\tparams.addValue(\"password\", LoggedUser.getPassword());\n\t\treturn jdbc.queryForObject(\"select count(*) from authors where username=:username and password=:password\", \n\t\t\t\tparams, Integer.class) > 0;\n\t}", "@Override\n\tpublic boolean verifyUser(String username,String password )\n\t{\n\t\tboolean b;\n\t\tString sql = \"select username,password from f_loginTable where username=? and password=?\";\n\t\tint noOfRows=template.update(sql, new Object[] {username,password});\n\t\tif(noOfRows==1)\n\t\t{b=true;}\n\t\telse \n\t\t{b=false;}\n\t\treturn b;\t\t\n\t}", "public boolean checkUser(String username, String password) {\n String[] columns = {COL_1};\n SQLiteDatabase db = getReadableDatabase();\n String selection = COL_2 + \"=?\" + \" and \" + COL_3 + \"=?\";\n String[] selectionArgs = {username, password};\n Cursor cursor = db.query(USER_TABLE_NAME, columns, selection, selectionArgs, null, null, null);\n int count = cursor.getCount();\n cursor.close();\n db.close();\n\n if (count > 0)\n return true;\n else\n return false;\n }", "public boolean checkUser(String username, String password) {\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor mCursor = db.rawQuery(\"SELECT * FROM \" + TABLE_USERLIST + \" WHERE user_name=? AND user_password=?\", new String[]{username,password});\n if (mCursor != null) {\n if(mCursor.getCount() > 0)\n {\n return true;\n }\n }\n return false;\n\n }", "public boolean validLogin(String username, String password) {\n\n String query = String.format(\"SELECT * FROM staff WHERE staff_password = '%s' and staff_id = '%s'\", password, username);\n try {\n preparedStatement = connection.prepareStatement(query);\n result = preparedStatement.executeQuery();\n if(result.next()){\n return true;\n }\n return false;\n }\n catch (SQLException e) {\n e.printStackTrace();\n }\n return false;\n }", "public boolean validateLogin(String email, String password) {\n\t\tLog.i(TAG, \"validate current user whether is valid in db\");\n\t\tSQLiteDatabase db = this.getReadableDatabase();\n\t\tString val = \"select * from \" + TABLE_USER\n\t\t\t\t+ \" where email='\" + email + \"' and password='\" + password + \"'\";\n\t\tCursor cursor = db.rawQuery(val, null);\n\t\tcursor.moveToFirst();\n\t\tif (cursor.isAfterLast()) return false;\n\t\treturn true;\n\t}", "private boolean checkUser(String user_name, String passwordd) throws SQLException {\n boolean sucss = false;\n DBConnection db = new DBConnection();\n Connection connection = db.getConnection();\n String sql = \"SELECT * FROM USER WHERE NAME = ? AND PASSWORD = ?\";\n try (PreparedStatement preparedStatement = connection.prepareStatement(sql);) {\n preparedStatement.setString(1, user_name);\n preparedStatement.setString(2, passwordd);\n ResultSet rs = preparedStatement.executeQuery();\n if (rs.next()) {\n System.out.println(rs.getString(\"name\"));\n System.out.println(rs.getString(\"password\"));\n sucss = true;\n }\n } catch (SQLException e) {\n System.out.println(\"User Is Not Insert\" + e);\n } finally {\n connection.close();\n return sucss;\n }\n }", "private void checkValidLogin(String username, String password) {\r\n //The check username will check to see if a password was returned. That means the user\r\n //exists. If a void is returned, then the user does not exist.\r\n String actualPassword = checkUsername(username);\r\n\r\n //If a null was passed back, then the username does not exist. We signal the user.\r\n if (actualPassword == null) {\r\n signalInvalidUser();\r\n return;\r\n }\r\n\r\n //We check to see if the password that was type is equal to the 1 we got from the DB. If\r\n //not we signal the user.\r\n if (!checkPassword(password, actualPassword)){\r\n signalInvalidPassword();\r\n return;\r\n }\r\n\r\n //If everything worked, we go to the landing page.\r\n goToLandingPage();\r\n }", "public boolean validateUserCredentials(String login, String password) throws SQLException;", "public static boolean checkLogin(String username, String password) throws Exception {\n boolean pass = true;\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n connection = DriverManager.getConnection(\"RDS_HOST\",\"RDS_USERNAME\",\"RDS_PASSWORD\");\n String query = \"SELECT username,password FROM users WHERE username = ?\";\n PreparedStatement preparedStatement = connection.prepareStatement(query);\n preparedStatement.setString(1,username);\n resultSet = preparedStatement.executeQuery();\n while(resultSet.next()){\n if(resultSet.getString(1).equals(username) &&\n checkPassword(password,resultSet.getString(2))){\n pass = true;\n } else {\n pass = false;\n }\n }\n } finally {\n close();\n return pass;\n }\n }", "@Override\r\n\tpublic boolean checkLogin() {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean checkLogin() {\n\t\treturn false;\r\n\t}", "public boolean ValidCredentials() { \n\t\tif(!isEmptyFieldData()){\n\t\t\tSystemUserQuery sq = new SystemUserQuery();\n\t\t\tUser user = sq.loginQuery(getUsername(), getPassword());\n\t\t\t\n\t\t\tif(user != null){\n\t\t\t\tMain.setCurrentUser(user);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t\treturn false;\n\t}", "public boolean login(){\r\n try{\r\n DbManager0 db = DbManager0.getInstance();\r\n Query q = db.createQuery(\"SELECT * FROM user WHERE username = '\"+this.login+\"' and password = '\"+this.pwd+\"';\");\r\n QueryResult rs = db.execute(q);\r\n rs.next();\r\n if(rs.wasNull()) return false;\r\n this.id = rs.getInt(\"id\")+\"\";\r\n return true;\r\n }\r\n catch(SQLException ex){\r\n throw new RuntimeException( ex.getMessage(), ex );\r\n }\r\n }", "private boolean checkAuthentication(String login, String passwd) {\n Connection connect;\n boolean result = false;\n try {\n // connect db\n Class.forName(DRIVER_NAME);\n connect = DriverManager.getConnection(SQLITE_DB);\n // looking for login && passwd in db\n Statement stmt = connect.createStatement();\n ResultSet rs = stmt.executeQuery(SQL_SELECT.replace(\"?\", login));\n while (rs.next())\n result = rs.getString(PASSWD_COL).equals(passwd);\n // close all\n rs.close();\n stmt.close();\n connect.close();\n } catch (Exception ex) {\n ex.printStackTrace();\n return false;\n }\n return result;\n }", "private boolean checkLogin(String username, String passwordMD5) {\n try {\n Statement stmt = GUITracker.conn.createStatement();\n ResultSet rs = stmt.executeQuery(\"SELECT * from account where username='\" + username + \"' and password='\" + passwordMD5 + \"'\");\n if (rs.next()) {\n //iduser = rs.getInt(\"Id\");\n return true;\n } else {\n return false;\n } \n \n// if ((username.equals(usernamePeer)) && (passwordMD5.equals(passwordPeer))) {\n// return true;\n// } else {\n// return false;\n// }\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n }", "private boolean checkLogin(String enterLogin) {\n JdbcConnection connection = JdbcConnection.getInstance();\n DaoFactory daoFactory = new RealDaoFactory(connection);\n List<User> users = daoFactory.createUserDao().findAll();\n for (User user : users) {\n if (user.getLogin().equals(enterLogin)) {\n return true;\n }\n }\n return false;\n }", "public boolean checkCredentials(String inputLogin, String inputPassword) {\n //creates boolean variable flag and defines it as True\n boolean flag = false;\n //defines Connection con as null\n Connection con = MainWindow.dbConnection();\n try {\n //tries to create a SQL statement to retrieve values of a User object from the database\n String query = \"SELECT * FROM User WHERE userID = '\" + inputLogin + \"' AND password = '\" + inputPassword + \"';\";\n Statement statement = con.createStatement();\n ResultSet result = statement.executeQuery(query);\n /*\n if statement compares data entered by user with data in the database. If there is such data in the database\n users credentials are put into MainWindow variables and defines flag variable as True\n */\n if(result.getString(\"userID\").equals(inputLogin) && result.getString(\"password\").equals(inputPassword)) {\n flag = true;\n MainWindow.userLastName = result.getString(\"lastName\");\n MainWindow.userFirstName = result.getString(\"firstName\");\n MainWindow.userID = inputLogin;\n MainWindow.userPassword = inputPassword;\n }//end if statement\n } catch (Exception e) {\n //catches exceptions and show message about them\n System.out.println(e.getMessage());\n }//end try/catch\n //checks if Connection con is equaled null or not and closes it.\n MainWindow.closeConnection(con);\n return flag;\n }", "boolean loginUser(String email,String password){\n boolean checkUserDetails = checkLoginDetails(email,password);\n boolean userExists = false;\n if(checkUserDetails){\n try{\n userExists =true;\n stmt = con.prepareStatement(\"UPDATE users SET userStatus = ? WHERE email = ?\");\n stmt.setBoolean(1,true);\n stmt.setString(2,email);\n stmt.executeUpdate();\n }\n catch(Exception e){\n e.printStackTrace();\n }\n finally{\n closeConnection();\n }\n }\n return userExists;\n }", "public boolean isCorrectLoginDetails(String username, String password) {\n boolean isExistingLogin = false; \n \n //Retrieve all existing user objects from the db. \n List<User> retrievedUsersList = new LinkedList<User>(); \n retrievedUsersList = repo.returnAllUsers(); \n \n User aUser = null; \n //For each object in the array, check if there is a match for the user inputs and the object properties. \n for(var user : retrievedUsersList) {\n aUser = (User)user; \n \n if(aUser.username.equals(username) && aUser.password.equals(password)) {\n isExistingLogin = true; \n }\n }\n return isExistingLogin; \n }", "@Override\n\tpublic boolean checkUserLogin(User user) {\n\t\tboolean b=false;\n\t\tString sql=\"select *from login where username=? and password=?\";\n\t\tString []parameters= {user.getUsername(),user.getPassword()};\n\t\tArrayList<User> allUsers=SQLHelper.executeQueryUser(sql,parameters);\n\t\tif(allUsers.size()>0)\n\t\t{\n\t\t\tb=true;\n\t\t}\n\t\treturn b;\n\t}", "private void checkUser() {\n\t\tloginUser = mySessionInfo.getCurrentUser();\n\t}", "private boolean inputDatabase(String password) {\r\n\r\n boolean checks = false;\r\n int wasUpdated = 0;\r\n\r\n String hashSalt = \"\";\r\n\r\n try {\r\n //Get the hash and salt for the given password\r\n hashSalt = encrypt.getHashString(password);\r\n } catch (NoSuchAlgorithmException | UnsupportedEncodingException ex) {\r\n System.out.println(\"A problem occurred while inserting the user. \"\r\n + \"Error Message: \" + ex.getMessage());\r\n }\r\n\r\n if (!hashSalt.isEmpty()) // Encryption was successful\r\n {\r\n String hash = hashSalt.substring(0, 44); //Substring for password hash\r\n String salt = hashSalt.substring(44, hashSalt.length()); //Substring for salt\r\n\r\n //Variables fo other fields to include in query\r\n String username = txtUserName.getText();\r\n String email = txtEmail.getText();\r\n String first_name = txtFirstName.getText();\r\n String last_name = txtLastName.getText();\r\n\r\n //Create the query string\r\n String query = \"INSERT INTO user (username,email,first_name,\"\r\n + \"last_name,created,last_update,password,salt) values ('\"\r\n + username + \"','\" + email + \"','\" + first_name + \"','\"\r\n + last_name + \"',?,?,'\" + hash + \"','\" + salt + \"')\";\r\n System.out.println(query);\r\n\r\n try {\r\n //Call insertUser in DBConnector to \r\n wasUpdated = Login.db.insertUser(query);\r\n\r\n } catch (SQLException ex) {\r\n System.out.println(\"A problem occurred while inserting the user. \"\r\n + \"Error Message: \" + ex.getMessage());\r\n }\r\n }\r\n \r\n //Update successful\r\n if (wasUpdated > 0) {\r\n checks = true;\r\n }\r\n \r\n return checks;\r\n }", "public static boolean login(String userName, String password){\n boolean found = false;\n Connection connection = SQLiteConnection.dbConnection();\n ResultSet rs = null;\n try {\n Statement stmt = connection.createStatement();\n rs = stmt.executeQuery(\"SELECT * FROM Users\");\n while (rs.next()) {\n if (rs.getString(\"UserName\").equals(userName) && rs.getString(\"Password\").equals(password)){\n Login.signIn(rs.getRow());\n found = true;\n break;\n }\n }\n stmt.close();\n rs.close();\n connection.close();\n }catch (Exception e){\n e.printStackTrace();\n }\n return found;\n\n }", "public Boolean usernamepassword (String username,String password) {\n SQLiteDatabase sdb = this.getReadableDatabase();\n Cursor cursor = sdb.rawQuery(\"select * from user where username=? and password=?\",new String[]{username,password});\n if(cursor.getCount()>0) {\n return true;\n }\n else {\n return false;\n }\n }", "public static boolean loginCheck(String userName, String userPassword)\n\t{\n\t\ttry\n\t\t{\n\t\t\tString sendQuery =\"select username , password from users \"\n\t\t\t\t\t+ \"where username=\\\"\"+userName+\"\\\" and password=\\\"\"+userPassword+\"\\\" ;\"; \n\t\t\tquery = statement.executeQuery(sendQuery);\n\t\t\t\n\t\t\tString usernameToCheck =\"\";\n\t\t\tString passwordToCheck =\"\";\n\t\t\t\n\t\t\twhile(query.next())\n\t\t\t{\n\t\t\t\t\n\t\t\t\tSystem.err.println(\"Checked : \"+query.getString(\"username\") +\" && \"+query.getString(\"password\"));\n\t\t\t\tusernameToCheck = query.getString(\"username\");\n\t\t\t\tpasswordToCheck = query.getString(\"password\");\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tif(userName.equals(usernameToCheck) && userPassword.equals(passwordToCheck))\n\t\t\t{\n\t\t\t\t\n\t\t\t\tString logInQuery = \"update users set onlineStatus=\\\"online\\\" where username=\\\"\"+userName+\"\\\" ;\";\n\t\t\t\tstatement.execute(logInQuery);\n\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch(SQLException ex)\n\t\t{\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "Boolean checkCredentials(String username, String password) throws\n SQLException, UserNotFoundException;", "public boolean logincheck(String user, String pass) \r\n {\n \r\n try{\r\n Connection conn = DriverManager.getConnection(url, userName, password);\r\n String Sql = \"Select * from APP.MEMBER where email=? and password=?\";\r\n PreparedStatement pst = conn.prepareStatement(Sql);\r\n pst.setString(1,user);\r\n pst.setString(2,pass);\r\n ResultSet rs = pst.executeQuery();\r\n if (rs.next())\r\n {\r\n JOptionPane.showMessageDialog(null,\"Welcome user\");\r\n createEventsUI w = new createEventsUI();\r\n w.setVisible(true);\r\n }\r\n else\r\n {\r\n JOptionPane.showMessageDialog(null,\"Invalid username or password\", \"Access Denied\",JOptionPane.ERROR_MESSAGE);\r\n }\r\n }catch(Exception e) \r\n {\r\n JOptionPane.showMessageDialog(null, e);\r\n }\r\n return false;\r\n \r\n }", "boolean hasLogin();", "boolean hasLogin();", "boolean isLoginAvailable();", "@Override\n public boolean checkLogin(String login, String password) {\n logger.info(\" This is checkLogin service ,Geting user from DB with login = \" + login);\n User user = userDao.get(login);\n if (user == null) {\n logger.info(\"This is checkLogin service, user was not found\");\n return false;\n }\n logger.info(\"We was got user by login : \" + login);\n logger.info(\"Checking user password...\");\n if (user.getPassword().equals(password)) {\n logger.info(\"Password is ok\");\n }\n return user.getPassword().equals(password);\n\n }", "boolean isValidUsernameAndPassword(String username, String password) throws SQLException\r\n\t{\r\n\t\tConnection connection = DatabaseHandler.getDBconnection();\r\n\t\t\r\n\t\tString query = \"SELECT * FROM user WHERE userName = ? AND password = ?\";\r\n\t\tPreparedStatement statement = connection.prepareStatement(query);\r\n\t\t\r\n\t\tstatement.setString(1, username);\r\n\t\tstatement.setString(2, password);\r\n\t\tResultSet set = statement.executeQuery();\r\n\t\t\r\n\t\tif(set.next()) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}", "@Override\n public boolean checkLogin(String login, String password) throws DaoException {\n User user = userDao.getByEmail(login);\n boolean result = false;\n if (user != null && user.getPassword().equalsIgnoreCase(DigestMD5Helper.computeHash(password))) {\n log.info(\"User {} {} has successfully logged in\", user.getFirstName(), user.getLastName());\n result = true;\n }\n return result;\n }", "public void login() {\n if (!areFull()) {\n return;\n }\n\n // Get the user login info\n loginInfo = getDBQuery(nameField.getText());\n if (loginInfo.equals(\"\")) {\n return;\n }\n\n // Get password and check if the entered password is true\n infoArray = loginInfo.split(\" \");\n String password = infoArray[1];\n if (!passField.getText().equals(password)) {\n errorLabel.setText(\"Wrong Password!\");\n return;\n }\n\n continueToNextPage();\n }", "@Override\r\n\tpublic boolean verifyLogin(String userId, String password) {\n\t\tif (conn == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tString sql = \"SELECT user_id FROM users WHERE user_id = ? AND password = ?\";\r\n\t\t\tPreparedStatement statement = conn.prepareStatement(sql);\r\n\t\t\tstatement.setString(1, userId);\r\n\t\t\tstatement.setString(2, password);\r\n\t\t\tResultSet rs = statement.executeQuery();\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private void verifyFromSQLite(){\n textInputLayoutUsername.setErrorEnabled(false);\n textInputLayoutPassword.setErrorEnabled(false);\n User user = new User();\n boolean _isnorekexist = false;\n\n for (int i=0;i<User.users.size();i++) {\n if (User.users.get(i).username.equals(textInputEditTextUsername.getText().toString())) {\n _isnorekexist = true;\n user = User.users.get(i);\n break;\n }\n }\n if (!inputValidation.isInputEditTextFilled(textInputEditTextUsername, textInputLayoutUsername, getString(R.string.error_message_username))) {\n return;\n }\n if (!inputValidation.isInputEditTextFilled(textInputEditTextPassword, textInputLayoutPassword,getString(R.string.error_message_password))) {\n return;\n }\n if (!inputValidation.isInputEditTextNoRekExist(textInputEditTextUsername, textInputLayoutUsername,_isnorekexist,getString(R.string.error_username_not_exists))){\n return;\n }\n if (databaseHelper.checkUsername(textInputEditTextUsername.getText().toString().trim()\n , textInputEditTextPassword.getText().toString().trim())) {\n\n SessionManager sessionManager = SessionManager.with(this);\n sessionManager.createsession(user);\n progress = new ProgressDialog(this);\n progress.setMessage(\"Loading...\");\n progress.show();\n Thread _thread = new Thread() {\n @Override\n public void run() {\n try {\n Thread.sleep(2000);\n progress.dismiss();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n masuk();\n }\n });\n\n }\n };\n _thread.start();\n }\n else {\n // Snack Bar to show success message that record is wrong\n Snackbar.make(nestedScrollView, getString(R.string.error_valid_username_pin), Snackbar.LENGTH_LONG).show();\n }\n }", "public boolean verifyUser(String username, String password) throws SQLException {\n\n // update sql\n String pwGot = getPassword(username);\n\n if (pwGot.equals(password)) {\n return true;\n }\n\n return false;\n }", "private boolean verifyCredentials() {\n\n boolean bCredentialsValid = false;\n strUserMailID = strUserName = \"\";\n\n // Get the account information, if existing\n DatabaseHandler dbHandler = new DatabaseHandler(getApplicationContext());\n AccountInformation accInfo = dbHandler.getAccountInfo(m_tfUserEmailID.getText().toString());\n\n if(accInfo != null) {\n\n // Compute the hash for the user entered password\n OperationsHelper helper = new OperationsHelper();\n String strHashPwd = helper.getHashedPassword(m_tfUserPassword.getText().toString(), accInfo.getSaltValue());\n if(strHashPwd.equals(accInfo.getPassword())) {\n\n bCredentialsValid = true;\n strUserMailID = accInfo.getEmail();\n strUserName = accInfo.getName();\n\n // If Always login option is checked, update the value in the database\n if( ! (m_cbAutoLogon.isChecked() == accInfo.getIfAlwaysSignIn()) ) {\n\n accInfo.setAlwaysSignIn(m_cbAutoLogon.isChecked());\n dbHandler.updateAlwaysSignOnOption(accInfo);\n }\n } else {\n Toast.makeText(getApplicationContext(), \"Incorrect Password\", Toast.LENGTH_LONG).show();\n }\n } else {\n Toast.makeText(getApplicationContext(), \"No such account exists. \\n\" +\n \" Create one to login\", Toast.LENGTH_LONG).show();\n }\n\n return bCredentialsValid;\n }", "private void login()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Get the connection to the database\r\n\t\t\tDatabase db = new Database();\r\n\r\n\t\t\t//Get the data and format it correctly\r\n\t\t\tString username = txtUsername.getText().trim().toLowerCase();\r\n\t\t\tString password = new String(txtPassword.getPassword()).trim();\r\n\r\n\t\t\t//Verify that user information has been inserted into the username/password fields\r\n\t\t\tif (username.length() == 0)\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\t\tthis,\r\n\t\t\t\t\t\"Please enter your username.\",\r\n\t\t\t\t\tApplication.NAME,\r\n\t\t\t\t\tJOptionPane.WARNING_MESSAGE\r\n\t\t\t\t);\r\n\r\n\t\t\t\ttxtUsername.requestFocus();\r\n\t\t\t}//End of if\r\n\t\t\telse if (password.length() == 0)\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\t\tthis,\r\n\t\t\t\t\t\"Please enter your password.\",\r\n\t\t\t\t\tApplication.NAME,\r\n\t\t\t\t\tJOptionPane.WARNING_MESSAGE\r\n\t\t\t\t);\r\n\r\n\t\t\t\ttxtPassword.requestFocus();\r\n\t\t\t}//End of else if\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tif (!db.usernameExists(username))\r\n\t\t\t\t{\r\n\t\t\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\t\t\tthis,\r\n\t\t\t\t\t\t\"The username/password combination you provided does not exist.\",\r\n\t\t\t\t\t\tApplication.NAME,\r\n\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE\r\n\t\t\t\t\t);\r\n\r\n\t\t\t\t\ttxtPassword.setText(\"\");\r\n\t\t\t\t\ttxtPassword.requestFocus();\r\n\t\t\t\t}//End of if\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tUser user = db.loadUser(username);\r\n\t\t\t\t\tbyte [] bPassword = PasswordEncryption.hashPassword(username, password);\r\n\r\n\t\t\t\t\tif (bPassword.length != user.getPassword().length)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\t\t\t\t\tthis,\r\n\t\t\t\t\t\t\t\t\"The username/password combination you provided does not exist.\",\r\n\t\t\t\t\t\t\t\tApplication.NAME,\r\n\t\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE\r\n\t\t\t\t\t\t\t);\r\n\r\n\t\t\t\t\t\t\ttxtPassword.setText(\"\");\r\n\t\t\t\t\t\t\ttxtPassword.requestFocus();\r\n\t\t\t\t\t}//End of if\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tboolean same = true;\r\n\r\n\t\t\t\t\t\t//Check the passwords for equality\r\n\t\t\t\t\t\tfor (int x = 0; x < bPassword.length; x++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (bPassword[x] != user.getPassword()[x])\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tsame = false;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}//End of if\r\n\t\t\t\t\t\t}//End of for\r\n\r\n\t\t\t\t\t\tif (same)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (user.getAccountLevel() < 10)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\t\t\t\t\t\tthis,\r\n\t\t\t\t\t\t\t\t\t\"You do not have sufficient rights to access this application.\",\r\n\t\t\t\t\t\t\t\t\tApplication.NAME,\r\n\t\t\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE\r\n\t\t\t\t\t\t\t\t);\r\n\r\n\t\t\t\t\t\t\t\ttxtPassword.setText(\"\");\r\n\t\t\t\t\t\t\t\ttxtPassword.requestFocus();\r\n\t\t\t\t\t\t\t}//End of if\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t//Login the user\r\n\t\t\t\t\t\t\t\tSession.login(user);\r\n\r\n\t\t\t\t\t\t\t\t//Open the dashbard\r\n\t\t\t\t\t\t\t\tSession.openWindow(new Dashboard());\r\n\r\n\t\t\t\t\t\t\t\t//Close this window\r\n\t\t\t\t\t\t\t\tthis.dispose();\r\n\t\t\t\t\t\t\t}//End of else\r\n\t\t\t\t\t\t}//End of if\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\t\t\t\t\tthis,\r\n\t\t\t\t\t\t\t\t\"The username/password combination your provided does not exist.\",\r\n\t\t\t\t\t\t\t\tApplication.NAME,\r\n\t\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE\r\n\t\t\t\t\t\t\t);\r\n\r\n\t\t\t\t\t\t\ttxtPassword.setText(\"\");\r\n\t\t\t\t\t\t\ttxtPassword.requestFocus();\r\n\t\t\t\t\t\t}//End of else\r\n\t\t\t\t\t}//End of else\r\n\t\t\t\t}//End of else\r\n\t\t\t}//End of else\r\n\t\t}//End of try\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\t//Inform the user that the application was unable to connect to the database.\r\n\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\tthis,\r\n\t\t\t\t\"An error occured connecting to the database.\\n\\nIf this problem continues, please contact your system administrator.\",\r\n\t\t\t\tApplication.NAME,\r\n\t\t\t\tJOptionPane.ERROR_MESSAGE\r\n\t\t\t);\r\n\t\t}//End of catch\r\n\t}", "boolean isUserExist(String username, String password);", "@Override\n\tpublic boolean checkUserForLogin(String email,String password) {\n\t\treturn userRepoImpl.checkUserForLogin(email,password);\n\t}", "public boolean isUserExist(String email, String Password);", "private boolean AlreadyLogin() {\n\t\tString usn = uPreferences.getString(\"username\", null);\n\t\tString pwd = uPreferences.getString(\"password\", null);\n\t\tif((usn == null) || ((pwd == null))){\n\t\t\treturn false;\n\t\t}\n\t\telse \n\t\t\treturn true;\n\t}", "public boolean checkRegister() {\n\n\t\tif (!email.getText().equals(\"\") && !username.getText().equals(\"\") && !psw.getText().equals(\"\")) {\n\t\t\tResultSet test = Database.getInstance().query(\"SELECT * FROM utilisateur\");\n\t\t\ttry {\n\t\t\t\twhile (test.next()) {\n\t\t\t\t\tif (test.getString(2).equals(username.getText()) && test.getString(4).equals(email.getText())\n\t\t\t\t\t\t\t&& test.getString(3).equals(psw.getText())) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn false;\n\n\t\t\t} catch (SQLException e) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Override\n\tpublic Users isLogin(String uname, String password) {\n\t\treturn this.usersDao.selectByObject(uname, password);\n\t}", "public boolean userLogin(String username, String password) throws SQLException {\n\t\tConnection dbConnection = getConnection();\n\t\tString query = \"SELECT Username, Password FROM END_USER WHERE Username ='\" + username + \"' AND Password = '\"\n\t\t\t\t+ password + \"'\";\n\t\tPreparedStatement preparedStatement = dbConnection.prepareStatement(query);\n\t\tResultSet rs = preparedStatement.executeQuery();\n\n\t\tif (rs.next()) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\n public boolean check() {\n return GlobalParams.isLogin();\n }", "boolean login(String userName, String password) {\n RatAppModel.checkInitialization();\n String getUsersText = \"SELECT * FROM users WHERE username=?\";\n ResultSet results;\n boolean loginStatus;\n try {\n PreparedStatement statement = db.getStatement(getUsersText);\n statement.setString(1, userName);\n results = db.query(statement);\n if (!results.next()) {\n // No entries in DB for passed in username\n results.close();\n loginStatus = false;\n } else {\n String dbPass = results.getString(\"password\");\n int salt = results.getInt(\"salt\");\n String hashPass = hasher.getSecurePassword(Integer.toString(salt),\n password);\n if (dbPass.equals(hashPass)) {\n //Log.i(\"login\", \"auth success\");\n loginStatus = true;\n String profileName = results.getString(\"profileName\");\n String address = results.getString(\"homeLocation\");\n boolean isAdmin = results.getBoolean(\"isAdmin\");\n currentUser = new User(userName, profileName, address, isAdmin);\n } else {\n //Log.i(\"login\", \"auth failed\");\n loginStatus = false;\n }\n results.close();\n }\n return loginStatus;\n } catch (SQLException e) {\n Log.e(\"login\", e.getMessage());\n return false;\n }\n }", "private boolean checkLogin(String name, String password) throws SQLException {\n\t\tcheckLoginStatement.clearParameters();\n\t\tcheckLoginStatement.setString(1, name);\n\t\tcheckLoginStatement.setString(2, password);\n\t\tResultSet result = checkLoginStatement.executeQuery();\n\t\tresult.next();\n\t\tboolean out = result.getInt(1) == 1;\n\t\tif (DEBUG) {\n\t\t\tSystem.out.println(\"checkLogin:\"+result.getInt(1)+\"\\n\");\n\t\t}\n\t\tresult.close();\n\t\treturn out;\n\t}", "public boolean loginUser(String username, String password) throws SQLException /*REDUNDANT?*/ {\n String sql = String.format(\"SELECT * FROM %s WHERE %s = ?\", table_users.name, table_users.cols.username);\n\n // Hashed user password is stored by (roughly) halving the salt and placing the first\n // half in front of the hashed pw and the second half after the hashed pw\n // EXAMPLE: salt = SALT, hash_pw = HASH\n // password in database = SAHASHLT\n //Salt retrieval for verification is also done through this salt and password mix\n\n //Prep the prepared statement\n PreparedStatement prepStmnt = con.prepareStatement(sql);\n prepStmnt.setString(1, username);\n\n ResultSet user = prepStmnt.executeQuery();\n\n if (!user.next())\n return false;\n\n //Fetch stored hash\n String hashed_pw = user.getString(table_users.cols.hash_pw);\n\n //Assemble salt from stored hash\n String salt = hashed_pw.substring(0, FHALF_LENGTH) + hashed_pw.substring(hashed_pw.length()-(FHALF_LENGTH-1), hashed_pw.length());\n\n //Fetch misc user info\n int user_prvlg = user.getInt(table_users.cols.prvlg_lvl);\n int userID = user.getInt(table_users.cols.id);\n\n //Hash input pw for verification\n StringBuilder hashed_input = new StringBuilder(BCrypt.hashpw(password, salt));\n String lHalf = hashed_input.substring(FHALF_LENGTH, SALT_LENGTH);\n hashed_input.replace(FHALF_LENGTH, SALT_LENGTH, \"\");\n hashed_input.append(lHalf);\n\n if (hashed_input.toString().equals(hashed_pw)) {\n //Set globally needed user info\n GlobalInfo.setUserID(userID);\n GlobalInfo.setPrvlg_lvl(user_prvlg);\n \n //Attempt to retrieve user avatar as a File, assign default value if failure\n File profImg;\n try {\n profImg = new File(getAvatarOf(GlobalInfo.getUserID()));\n } catch (NullPointerException e) {\n profImg = new File(\"C:\\\\Users\\\\thedr\\\\IdeaProjects\\\\database\\\\src\\\\main\\\\resources\\\\imgs\\\\default-avatar.png\");\n }\n GlobalInfo.setCurrProfImg(profImg);\n\n return true;\n }\n return false;\n }", "public boolean login_validater(String username, String pass, int role) throws SQLException{\r\n try {\r\n Class.forName(Constants.JDBC_DRIVER);\r\n Connection conn = DriverManager.getConnection(DB_URL, \"root\", \"\");\r\n try (PreparedStatement stmt = conn.prepareStatement(\"SELECT * FROM auth WHERE userId=? AND password=? AND role=?\")) {\r\n stmt.setString(1, username);\r\n stmt.setString(2, pass);\r\n stmt.setInt(3, role);\r\n ResultSet rs = stmt.executeQuery();\r\n \r\n if (rs.next())\r\n {\r\n System.out.format(\"Login Successfull\");\r\n return true;\r\n }\r\n }\r\n System.out.println(\"Login Failure\");\r\n //This catches exceptions, if any\r\n } catch (Exception ex) {\r\n Logger.getLogger(Auth.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return false;\r\n }", "public boolean login() {\n\n\t con = openDBConnection();\n\t try{\n\t pstmt= con.prepareStatement(\"SELECT ID FROM TEAM5.CUSTOMER WHERE USERNAME =? AND PASSWORD=?\");\n pstmt.clearParameters();\n pstmt.setString(1,this.username);\n pstmt.setString(2, this.password);\n\t result= pstmt.executeQuery();\n\t if(result.next()) {\n\t \t this.setId(result.getInt(\"id\")); \n\t \t this.loggedIn = true; \n\t }\n\t return this.loggedIn;\n\t }\n\t catch (Exception E) {\n\t E.printStackTrace();\n\t return false;\n\t }\n\t }", "User checkUser(String username, String password);", "@Override\r\n\tpublic boolean checkLogin(int accNo) throws EwalletException {\n\t\ttemp =dao.loginuser(accNo);\r\n\t\tif(temp!=null)\r\n\t\treturn true;\r\n\t\telse \r\n\t\t\treturn false;\r\n\t}", "public static boolean checkPassword()\n {\n String pw = SmartDashboard.getString(\"Password\");\n SmartDashboard.putString(\"Password\", \"\"); //Clear the password field so that it must be reentered\n\n if(pw.equals(ADMIN_PASSWORD))\n return true;\n else\n {\n log(\"Password invalid\"); //The user gave an incorrect password, inform them.\n return false;\n }\n }", "@Override\n public boolean userLogin(String username, String password) \n {\n User tmpUser = null;\n tmpUser = getUser(username);\n if(tmpUser == null) return false;\n if(tmpUser.getPassword().equals(password)) return true;\n return false;\n }", "private void checkUser() {\n\t\tlog.info(\"___________checkUser\");\n\t\tList<User> adminUser = userRepository.getByAuthority(AuthorityType.ROLE_ADMIN.toString());\n\t\tif (adminUser == null || adminUser.isEmpty()) {\n\t\t\tgenerateDefaultAdmin();\n\t\t}\n\t}", "public void validateLogin(String inUName, String inPassword) {\r\n\t\tResultSet loginRs = null;\r\n\t\t/**\r\n\t\t*\tSince connecting to database (DbConnection()) and retrieving data (fetchSelectAllUsers())\r\n\t\t* throw SQLException and throwing an exception from multiple levels again and again is not\r\n\t\t*\ta good way, so its is needed to catch the exception here.\r\n\t\t*/\r\n\t\ttry {\r\n\t\t\t/**\r\n\t\t\t*\tCreate a connection to the database\r\n\t\t\t*/\r\n\t\t\tDbConnection validateConn = new DbConnection();\r\n\t\t\t/**\r\n\t\t\t*\tRetrieve all data from users table and save it in ResultSet loginRs\r\n\t\t\t*/\r\n\t\t\tloginRs = validateConn.fetchSelectAllUsers();\r\n\r\n\t\t\twhile (loginRs.next()) {\r\n\t\t\t\tif (inUName.equals(loginRs.getString(1)) && inPassword.equals(loginRs.getString(2))) {\r\n\t\t\t\t\t/**\r\n\t\t\t\t\t*\tIf we found a matching record, toggle boolean found to true and load all the data into\r\n\t\t\t\t\t*\tthe object which has called the method.\r\n\t\t\t\t\t*/\r\n\t\t\t\t\tuName = loginRs.getString(1);\r\n\t\t\t\t\tpassword = loginRs.getString(2);\r\n\t\t\t\t\tfullName = loginRs.getString(3);\r\n\t\t\t\t\tphone = loginRs.getString(4);\r\n\t\t\t\t\temail = loginRs.getString(5);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t} catch(SQLException SqlExcep) {\r\n\t\t\tSystem.out.println(\"**************Error Connecting to the Database**************\");\r\n\t\t\tSqlExcep.printStackTrace();\r\n\t\t} catch (ClassNotFoundException cnfExecp) {\r\n\t\t\tcnfExecp.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t/*try {\r\n\t\t\t\t//DbConnection.closeDbConnection();\r\n\t\t\t\tif (loginRs != null) {\r\n\t\t\t\t\tloginRs.close();\r\n\t\t\t\t}\r\n\t\t\t} catch(SQLException SqlExcep) {\r\n\t\t\t\tSqlExcep.printStackTrace();\r\n\t\t\t}*/\r\n\t\t}\r\n\t}", "public static boolean checklogin(String username,String password){\n\t\n\t\t//courses = new CourseCatalog(userDao.findAll());\n\t\t User user = new User();\n\t\t user.setUserName(username);\n\t\t user.setPassWord(password);\n\t\t \n\t\t\t\tif(user.getUserName()!=null && user.getPassWord()!=null){\n\t\t\t\t\tUserDao userDao = DaoFactory.createUserDao();\n\t\t\t\t\tUser Acctount=new User();\n\t\t\t\t\t Acctount=userDao.getUser(user);\n\t\t\t\t\tif( Acctount!=null && Acctount.getPassWord().equals(user.getPassWord())){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\treturn false;\n}", "public static boolean validate(String un, String pw) {\r\n\t\tboolean status=false;\r\n\t\t\r\n\t\t//Establish connection to MySQL\r\n\t\ttry{ \r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\"); \r\n\t\t\tConnection con=DriverManager.getConnection( \r\n\t\t\t\t\t\"jdbc:mysql://localhost:3306/moviedb\",\"root\",\"\"); \r\n \r\n\t\t\tStatement stmt=con.createStatement();\r\n\t\t\t\r\n\t\t\t//execute query for password for given username\r\n\t\t\tResultSet rs=stmt.executeQuery(\"SELECT password FROM users WHERE username='\"+un+\"'\"); \r\n\t\t\t//After query pointer is set on record\r\n\t\t\t//moves pointer before record\r\n\t\t\trs.beforeFirst();\r\n\t\t\t\r\n\t\t\t//Checks that username exists based on if the pointer is before a record\r\n\t\t\tif(rs.isBeforeFirst()) {\r\n\t\t\t\t//Moves pointer back onto record so we can get string\r\n\t\t\t\trs.next();\r\n\t\t\t\t//if entered password matches password in database return true\r\n\t\t\t\tif(pw.equals(rs.getString(1))) {\r\n\t\t\t\t\tstatus = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse\r\n\t\t\t\tstatus=false;\r\n\t\t\t\r\n\t\t\t//close connection\r\n\t\t\tcon.close();\r\n\t\t} \r\n\r\n\t\tcatch(Exception e){ \r\n\t\t\tSystem.out.println(e);} \r\n\t\t\r\n\t\treturn status;\r\n\t}", "public boolean checkUser(String email, String password) {\n\n // array of columns to fetch\n String[] columns = {\n COLUMN_USER_ID\n };\n // selection criteria\n String selection = COLUMN_USER_EMAIL + \" = ?\" + \" AND \" + COLUMN_USER_PASSWORD + \" = ?\";\n \n // selection arguments\n String[] selectionArgs = {email, password};\n \n // query user table with conditions\n /**\n * Here query function is used to fetch records from user table this function works like we use sql query.\n * SQL query equivalent to this query function is\n * SELECT user_id FROM user WHERE user_email = '[email protected]' AND user_password = 'qwerty';\n */\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.query(\n TABLE_USER, //Table to query\n columns, //columns to return\n selection, //columns for the WHERE clause\n selectionArgs, //The values for the WHERE clause\n null, //group the rows\n null, //filter by row groups\n null); //The sort order\n int cursorCount = cursor.getCount();\n\n cursor.close();\n db.close();\n if (cursorCount > 0) {\n return true;\n }\n\n return false;\n }", "public boolean checkUserPassword(String username, String password)\n\t{\n\t\t// Connect to database\n\t\tPreparedStatement ps = null;\n\t\tResultSet rs = null;\n\t\t\n\t\t// SQL queries\n\t\t// Gets all rows from PageVisited\n\t\tString searchString = \"SELECT * FROM User WHERE username = ? AND password = ?\";\n\t\t\n\t\ttry {\n\t\t\tps = conn.prepareStatement(searchString);\n\t\t\tps.setString(1, username);\n\t\t\tps.setString(2, password);\n\t\t\trs = ps.executeQuery();\n\t\t\t\n\t\t\t// If we get some result, it means we have already seen this user\n\t\t\t// return true\n\t\t\tboolean foundMatch = false;\n\t\t\tif(rs.next())\n\t\t\t{\n\t\t\t\tString usernameValue = rs.getString(\"username\");\n\t\t\t\tString passwordValue = rs.getString(\"password\");\n\t\t\t\tif(password.contentEquals(passwordValue) && username.contentEquals(usernameValue))\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// if we get a result with no rows, return false\n\t\t\tif(!foundMatch)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tcatch(SQLException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\t// Close connections\n\t\t\ttry {\n\t\t\t\tif(rs != null)\n\t\t\t\t{\n\t\t\t\t\trs.close();\n\t\t\t\t}\n\t\t\t\tif(ps != null)\n\t\t\t\t{\n\t\t\t\t\tps.close();\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(SQLException sqle)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"sqle: \" + sqle.getMessage());\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "private void validateLoginUser() {\n\t\tUser user = userDao.getByPin(et_password.getText().toString());\n\t\tSession.setDriver(user);\n\n\t\tif (user.getWorkStatus().equals(User.STATUS_INACTIVE)) {\n\n\t\t\tdoLogin();\n\t\t} else {\n\t\t\tString locAt = \"\";\n\t\t\tif (user.getWorkStatus().equals(User.STATUS_IN_VEHICLE)) {\n\t\t\t\tVehiclesDao dao = new VehiclesDao();\n\t\t\t\tlocAt = dao.getById(user.getCurrentVehicleId()).getName();\n\t\t\t} else {\n\t\t\t\tServiceLocationDao dao = new ServiceLocationDao();\n\t\t\t\tlocAt = dao.getById(user.getCurrentServiceLocationId()).getName();\n\t\t\t}\n\t\t\tString msg = \"You are currently marked as \" + user.getWorkStatus() + \" at \" + locAt + \" since \" + user.getWorkStatusDate()\n\t\t\t\t\t+ \"\\n\" + \"Do you want to continue and override this status?\";\n\t\t\tAlertDialog.Builder alert_box = new AlertDialog.Builder(this);\n\t\t\talert_box.setIcon(R.drawable.icon);\n\t\t\talert_box.setMessage(msg);\n\t\t\talert_box.setPositiveButton(\"YES\", new DialogInterface.OnClickListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tdoPunchOut(et_password.getText().toString());\n\t\t\t\t\tdoLogin();\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}\n\t\t\t});\n\t\t\talert_box.setNeutralButton(\"NO\", new DialogInterface.OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}\n\t\t\t});\n\n\t\t\talert_box.show();\n\t\t}\n\t}", "@Override\r\n public User checkUser(String username, String pwd) {\n return userMapper.checkuser(username, pwd);\r\n }", "public Boolean login(String email, String password){\n SQLiteDatabase DB = this.getWritableDatabase();\r\n Cursor cursor = DB.rawQuery(\"Select * from user where email = ? and password = ?\", new String[] {email,password});\r\n\r\n if (cursor.getCount() > 0){\r\n return true;\r\n }\r\n else{\r\n return false;\r\n }\r\n }", "@Override\r\n\tpublic User checkUserLogin(String userName, String password) {\n\t\treturn objUserRegistrationDao.checkUserLogin(userName, password);\r\n\t}", "@Override\n\tpublic int checkLogin(User user) {\n\t\tint msg=0;\n\t\ttry{\n\t\t\tUser user2=uDao.loginUser(user.getUsername().toString());\n\t\t\tString pwd=getEncodTool.decodeHexTest(user2.getPassword());\n\t\t\tif(pwd.equals(user.getPassword())){\n\t\t\tmsg=1;\n\t\t\t}else{\n\t\t\t\tmsg=3;\t\n\t\t\t}\n\t\t}catch(NullPointerException e){\n\t\t\tmsg=2;\n\t\t}\t\n\t\treturn msg;\n\t}", "@Override\n\tpublic boolean user_login(Map<String, Object> map) {\n\t\tString sql = \"select * from tp_users where userName=:userName and userPwd=:userPwd\";\n\t\tList<Map<String, Object>> user = joaSimpleDao.queryForList(sql, map);\n\t\tif(user.size() == 1) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\r\n\tpublic boolean login(String email, String pw) {\n\t\treturn jdbcTemplate.query(\r\n\t\t\"select * from s_member where email=? and pw=?\", extractor,email,pw)!=null;\r\n\t}", "public int checkUser(String username, String pwdCandidate) {\n Connection conn = null;\n Statement st = null;\n ResultSet rs = null;\n int check = -1;\n try {\n conn = DriverManager.getConnection(URL, USER, PWD);\n st = conn.createStatement();\n st.execute(\"SET SEARCH_PATH TO library\");\n rs = st.executeQuery(\"SELECT * FROM library.\\\"user\\\" WHERE username = '\" + username + \"'\");\n if (rs.next() && BCrypt.checkpw(pwdCandidate, rs.getString(\"password\"))) {\n if (rs.getBoolean(\"admin\")) {\n check = 0;\n } else {\n check = 1;\n }\n } else\n check = -1;\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n } finally {\n closeConnResultSet(conn, st, rs);\n }\n return check;\n }", "@Override\n\tpublic boolean loginService(List<Object> paraments) {\n\t\t\n\t\t\n\t\tboolean flag = false;\n\t\t\n\t\tString sql = \"select * from user where user_id=? and password=?\";\n\t\ttry{\n\t\t\t\n\t\t\tmJdbcUtil.getConnetion();\n\t\t\tMap<String,Object> map= mJdbcUtil.findSimpleResult(sql, paraments);\n\t\t\tflag = map.isEmpty()?false:true;\n\t\t\tSystem.out.println(\"-flag-->>\" + flag);\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\tmJdbcUtil.releaseConn();\n\t\t}\n\t\t\n\t\t\n\t\treturn flag;\n\t}", "public boolean logOn(String username, String password) {\n ArrayList<String> listOfUsernames = database.returnAllUsernames();\n for (int rowBeingChecked = 0; rowBeingChecked < listOfUsernames.size(); rowBeingChecked++) {\n if (listOfUsernames.get(rowBeingChecked).equals(username)) {\n byte[] saltAndHash = pullSaltAndHashFromDatabase(username);\n byte[] saltPulled = new byte[16];\n byte[] hashPulled = new byte[16];\n\n //Splitting 'saltAndHash' into separate bytes:\n for (int byteCounter = 0; byteCounter < 16; byteCounter++) {\n saltPulled[byteCounter] = saltAndHash[byteCounter];\n }\n for (int byteCounter = 0; byteCounter < 16; byteCounter++) {\n hashPulled[byteCounter] = saltAndHash[byteCounter + 16];\n }\n\n //Creating the hash again, and returning boolean if they're equal.\n KeySpec spec = new PBEKeySpec(password.toCharArray(), saltPulled, 66536, 128);\n try {\n SecretKeyFactory factory = SecretKeyFactory.getInstance(\"PBKDF2WithHmacSHA1\");\n byte[] hashGenerated = factory.generateSecret(spec).getEncoded();\n return Arrays.equals(hashGenerated, hashPulled);\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n return false;\n } catch (InvalidKeySpecException e) {\n e.printStackTrace();\n return false;\n }\n }\n }\n //If user name not in table:\n return false;\n }", "private void verifyUser(){\n getValues();\n boolean validate;\n\n validate = db.authenticateUser(username, password);\n\n if (validate) {\n\n Cursor cursor = db.fetchData(username,password);\n cursor.moveToFirst();\n\n String contact = cursor.getString(3);\n\n session.createLoginSession(username, password, contact);\n\n Toast.makeText(this, \"[SYSTEM]: Login Successful! \", Toast.LENGTH_SHORT).show();\n\n Intent i = new Intent(this, MainActivity.class);\n startActivity(i);\n finish();\n } else {\n Toast.makeText(this, \"FAIL!\", Toast.LENGTH_SHORT).show();\n }\n }", "public boolean login(String Usuario, String Password)\n {\n try\n {\n PreparedStatement pstm = null; \n ResultSet rs = null;\n String query = \"SELECT ID_User FROM Usuario WHERE username = ? AND password = ? AND status = ?\";\n pstm = con.prepareStatement(query);\n pstm.setString(1, Usuario);//convertir a String el parametro Usuario\n pstm.setString(2, Password);//convertir a String el parametro Password\n pstm.setBoolean(3, true);//convertir a boolean \n rs = pstm.executeQuery();//ejecutar el query \n if(rs.next())\n {\n return true;\n }else{\n return false;\n }\n }catch(Exception ex)\n {\n ex.printStackTrace();\n return false;\n }\n }", "boolean isAuthenticate(String username, String password) throws UserDaoException;", "public boolean checkLogin(String username, String password) {\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 MessageDigest md = null; //check password against hash of password\n try {\n md = MessageDigest.getInstance(\"SHA\"); //step 2\n } catch (NoSuchAlgorithmException e) {\n throw new RuntimeException(e);\n }\n try {\n md.update(password.getBytes(\"UTF-8\")); //step 3\n } catch (UnsupportedEncodingException e) {\n throw new RuntimeException(e);\n }\n byte raw[] = md.digest(); //step 4\n String hash = (new BASE64Encoder()).encode(raw); //step 5\n password = hash;\n\n try {\n\n results = session.find(\"from User as user where user.username = ? and user.password = ? and currentEmployee='true'\",\n new Object[]{username, password},\n new Type[]{Hibernate.STRING, Hibernate.STRING});\n\n\n } catch (ObjectNotFoundException onfe) {\n return false;\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 false;\n } else {\n return true;\n }\n\n }", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "public boolean checkLoginCredential(GuruModel model) {\n\t\tquery = \"select id from guru where email=? and pwd=?\";\n\t\tList<GuruModel> list = this.jdbcTemplate.query(query,new Object[]{model.getEmail(),this.edutility.getSHA256(model.getPwd())},\n\t\t\t\tBeanPropertyRowMapper.newInstance(GuruModel.class));\n\t\t\n\t\tif(list.size() == 0)\n\t\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "public static boolean validateLogin(String userNameInput, String passInput) {\t\t\n\t\t\n\t\t//creating mariaDB connection and a Connection object to run queries on\n\t\tMariaDBConnection connect = new MariaDBConnection();\n\t\tConnection conn = null;\n\t\t\n\t\ttry {\t\t\t\n\t\t\t//creating a local instance of the connection object and a statement object\n\t\t\tconn = connect.getConnection();\n\t\t\tStatement stmt = conn.createStatement();\n\t\t\t\n\t\t\t//creating a query then saving results from that query\n\t\t\tString query = \"SELECT * FROM loginquery\";\n\t\t\tResultSet rs = stmt.executeQuery(query);\n\t\t\t\n\t\t\t//creating ArrayLists to store results of queries\n\t\t\tArrayList<String> usernameList = new ArrayList<String>();\n\t\t\tArrayList<String> passwordList = new ArrayList<String>();\n\t\t\t\n\t\t\t//loop to save all table entries into arrayLists to pass into the ArrayCheck object\n\t\t\twhile (rs.next()) {\n\t\t\t\t usernameList.add( rs.getString(\"User\") );\n\t\t\t\t passwordList.add( rs.getString(\"Password\") );\t\t\t\t \n\t\t\t}\n\t\t\t//close database connection\n\t\t\tconn.close();\n\t\t\t\t\t\t\n\t\t\t//converting ArrayLists to arrays because I already wrote\n\t\t\t//the validate method with String array parameters\n\t\t\tString[] usernames = usernameList.toArray( new String[ usernameList.size() ] );\n\t\t\tString[] passwords = passwordList.toArray( new String[ passwordList.size() ] );\n\t\t\t\n\t\t\t//creating ArrayCheck object with user/password combo as parameters\n\t\t\t//to run validation on the object\n\t\t\tArrayCheck aCheck = new ArrayCheck(userNameInput, passInput);\t\t\t\n\t\t\t\t\t\t\n\t\t\t//run validate method and return the boolean to the servlet\n\t\t\treturn aCheck.validate(usernames, passwords);\n\t\t\t\n\t\t}\t\t\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"Connection failed\");\n\t\t\treturn false;\n\t\t}\t\t\n\t}", "public boolean checkUser(String email, String password) {\n\n // array of columns to fetch\n String[] columns = {\n COLUMN_USER_ID\n };\n SQLiteDatabase db = this.getReadableDatabase();\n // selection criteria\n String selection = COLUMN_USER_EMAIL + \" = ?\" + \" AND \" + COLUMN_USER_PASSWORD + \" = ?\";\n\n // selection arguments\n String[] selectionArgs = {email, password};\n\n // query user table with conditions\n /**\n * Here query function is used to fetch records from user table this function works like we use sql query.\n * SQL query equivalent to this query function is\n * SELECT user_id FROM user WHERE user_email = '[email protected]' AND user_password = 'qwerty';\n */\n Cursor cursor = db.query(TABLE_NAME, //Table to query\n columns, //columns to return\n selection, //columns for the WHERE clause\n selectionArgs, //The values for the WHERE clause\n null, //group the rows\n null, //filter by row groups\n null); //The sort order\n\n int cursorCount = cursor.getCount();\n\n cursor.close();\n db.close();\n if (cursorCount > 0) {\n return true;\n }\n\n return false;\n }", "private boolean validatePassword() throws NoSuchAlgorithmException, NoSuchProviderException \n {\n String passwordToHash = Password.getText(); \n\t\t\n \tString securePassword = null;\n \tString testPass;\n \tBoolean success=false;\n \tbyte[] salt = null;\n\n\t \n\t \n\t \n try{ \n \t\tmycon=connect.getConnect();\n \t\t \n \t\t \n String query;\n\t query =\"select password, salt\\n\" + \n\t \t\t\"from employee\\n\" + \n\t \t\t\"where userName= ?;\";\n\t \n\t PreparedStatement pstm= mycon.prepareStatement(query);\n\t pstm.setString(1, Username.getText());\n\t ResultSet rs = pstm.executeQuery();\n\t \n\t if(rs.next()) {\n\t \tsecurePassword =rs.getString(1);\n\t \t\n\t \tBlob blob = rs.getBlob(2);\n\t \t int bloblen= (int) blob.length();\n\t \t salt = blob.getBytes(1, bloblen);\n\t \t blob.free();\n\t \t\n\t \t\n\t \n\t }\n\t \n\t \n\t testPass=SecurePass.getSecurePassword(passwordToHash, salt);\n \n \t if(securePassword.equals(testPass)) {\n \t success=true;\n \t this.ActiveUser=Username.getText();\n \t }\n \t\n \t\t\n \t\t\n \t\t\n \t\t} catch (SQLException e ) {\n \t\t\te.printStackTrace(); \t\n \t\t\t\n \t\t}\n\t\treturn success;\n \n\t \t \n \n \n\t\t\n \n }", "@Override\r\n\tpublic boolean loginCheck(String id, String pw) {\n\r\n\r\n\t\ttry {\r\n\t\t\tconn = DriverManager.getConnection(URL, USER, PASS);\r\n\t\t\tString sql = \"select * from member where id=? and pw=?\";\r\n\t\t\tps = conn.prepareStatement(sql);\r\n\t\t\tps.setString(1, id);\r\n\t\t\tps.setString(2, pw);\r\n\t\t\trs = ps.executeQuery();\r\n\r\n\t\t\twhile (!rs.next()) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\trs.close();\r\n\t\t\tps.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}", "public static boolean check(User user) {\n\t\tboolean flag = false; \n\t\tResultSet resultSet = null;\n\t\ttry {\n\t\t\t//Register the Driver class\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t\n\t\t\t//Create connection\n\t\t\tConnection connection = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/Login2\", \"root\", \"root\");\n\t\t\t\n\t\t\t//Create preparedStatement\n\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(\"select * from user where username = ? && password = ?\");\n\t\t\tpreparedStatement.setString(1, user.getUserName());\n\t\t\tpreparedStatement.setString(2, user.getUserPassword());\n\t\t\t\n\t\t\t//Execute queries\n\t\t\tresultSet = preparedStatement.executeQuery();\n\t\t\tif(resultSet.next())\n\t\t\t\tflag = true;\n\t\t\telse\n\t\t\t\tflag = false;\n\t\t\t\n\t\t\t//Close connection\n\t\t\tpreparedStatement.close();\n\t\t\tconnection.close();\n\t\t} catch (ClassNotFoundException | SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn flag;\n\t}", "private boolean isLoginValid(String userName, String password) throws NoSuchAlgorithmException {\n\t\tMultiValueMap<String, String> map = new LinkedMultiValueMap<String, String>();\n\t\tmap.add(\"username\", userName);\n\t\tmap.add(\"password\", Encoder.encodePassword(password));\n\t\tList<String> rolesStrs = this.userRoleService.findByUserName(userName);\n\t\treturn !rolesStrs.isEmpty();\n\t}", "public boolean dbLogin(String username, String password) {\n\t\tPreparedStatement statement = null;\n\t\tboolean login = false;\n\t\ttry {\n\t\t\tString login_sql = \"SELECT username, password FROM \" + user_table + \" WHERE username = ? AND password = ?;\";\n\t\t\tconnection = connector.getConnection();\n\t\t\tstatement = connection.prepareStatement(login_sql);\n\t\t\tstatement.setString(1, username);\n\t\t\tstatement.setString(2, password);\n\t\t\tstatement.executeQuery();\n\t\t\tlogin = statement.getResultSet().first();\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn login;\n\t}", "public boolean checkUser(String username, String password) { \r\n // keep track of whether user is valid or not \r\n int validUser = 0;\r\n \r\n // iterate through users arraylist \r\n for (int i = 0; i < this.users.size(); i ++) {\r\n // check if the user username and password entered are correct\r\n if (this.users.get(i).getUsername().equals(username) && this.users.get(i).getPassword(password).equals(password)) {\r\n // if so, change tracker to one indicating a valid user and break out of loop\r\n validUser = 1;\r\n break;\r\n }\r\n }\r\n \r\n // return true is validUser is 1, otherwise return false\r\n return validUser == 1;\r\n \r\n }", "@Override\n\tpublic boolean isValidUser(String username, String password)\n\t{\n\t\treturn userDAO.isValidUser(username, password);\n\t}", "@Override\n\t@Transactional\n\tpublic boolean validateuser(String username, String password) {\n\t\tboolean flag = this.logindao.validateuser(username, password);\n\t\treturn flag;\n\t}" ]
[ "0.7559922", "0.751509", "0.741747", "0.7415323", "0.7409117", "0.737199", "0.7341685", "0.734025", "0.7287586", "0.7238837", "0.7201146", "0.7161171", "0.71546274", "0.7085848", "0.7076532", "0.70714283", "0.70714283", "0.70634675", "0.7058575", "0.7058345", "0.70564514", "0.7049875", "0.70459265", "0.70391047", "0.70389247", "0.70326966", "0.6986097", "0.696291", "0.693916", "0.6939149", "0.6930966", "0.69186664", "0.69121605", "0.6907979", "0.6907979", "0.6907432", "0.69038826", "0.6887059", "0.68744856", "0.6873107", "0.68682104", "0.6864713", "0.685663", "0.6847982", "0.6845563", "0.6843336", "0.6839715", "0.6830397", "0.6804753", "0.6793173", "0.67871356", "0.67854077", "0.6771171", "0.6763301", "0.6758079", "0.67489", "0.6748886", "0.6729464", "0.6728614", "0.6703603", "0.6702458", "0.67013615", "0.66990834", "0.66969174", "0.669136", "0.6676968", "0.6671275", "0.6653981", "0.6652103", "0.66380924", "0.6635532", "0.66328645", "0.66262686", "0.66214335", "0.66196513", "0.66068053", "0.66056", "0.6599919", "0.6598941", "0.65905565", "0.65810925", "0.65791756", "0.65741944", "0.65741944", "0.65741944", "0.65741944", "0.65741944", "0.65741944", "0.65741944", "0.65741944", "0.65723467", "0.6560975", "0.65606827", "0.6559376", "0.6554631", "0.6550847", "0.6545911", "0.6540298", "0.653933", "0.6537899", "0.6527681" ]
0.0
-1
This method reads data from users database table, creates and returns User object according to the entered login.
User getByLogin(String login, Connection connection) throws DAOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public User Login(String username, String password) throws SQLException{\n try {\n Connection connection = DbConnector.getConnection();\n PreparedStatement statement = connection.prepareStatement(\"SELECT id, username, password, email, first_name, last_name, postal_code, city, street, street_number FROM user WHERE username = ? and password = ?\");\n statement.setString(1, username);\n statement.setString(2, password);\n ResultSet res = statement.executeQuery();\n if (!res.isBeforeFirst()) {\n return null;\n }\n res.next();\n User user = new User();\n user.setId(Integer.parseInt(res.getString(\"id\")));\n user.setCity(res.getString(\"city\"));\n user.setEmail(res.getString(\"email\"));\n user.setFirst_name(res.getString(\"first_name\"));\n user.setLast_name(res.getString(\"last_name\"));\n user.setPostal_code(res.getString(\"postal_code\"));\n user.setStreet(res.getString(\"street\"));\n user.setStreet_number(res.getString(\"street_number\"));\n return user;\n\n } catch (SQLException e) {\n throw e;\n } catch (ClassNotFoundException e) { }\n return null;\n }", "public IUser CreateUser() {\n\t\tIUser iUser = null;\n\t\tswitch (db) {\n\t\tcase \"Mysql\":\n\t\t\tiUser = new MysqlUserImpl();\n\t\t\tbreak;\n\t\tcase \"Access\":\n\t\t\tiUser = new AccessUserImpl();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn iUser;\n\t}", "public User getUser(String login) {\n User user = null;\n try (PreparedStatement pst = this.conn.prepareStatement(\"SELECT * FROM users WHERE login = ?\")) {\n pst.setString(1, login);\n ResultSet rs = pst.executeQuery();\n while (rs.next()) {\n user = new User(rs.getString(\"name\"), rs.getString(\"login\"),\n rs.getString(\"email\"), rs.getTimestamp(\"createDate\"));\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return user;\n }", "public User getUser(String username) {\r\n\r\n User existingUser = new User();\r\n String usernameResult;\r\n String passwordResult;\r\n\r\n try {\r\n // Get access to DB and set cursor at first row returned\r\n Cursor getData = getReadableDatabase().rawQuery(\"SELECT * FROM user WHERE username = '\" + username + \"'\", null);\r\n getData.moveToFirst();\r\n\r\n // Get fields from DB\r\n usernameResult = getData.getString(1);\r\n passwordResult = getData.getString(2);\r\n\r\n // Set fields in user object\r\n existingUser.setUsername(usernameResult);\r\n existingUser.setPassword(passwordResult);\r\n\r\n getData.close();\r\n } catch (IndexOutOfBoundsException e) { existingUser = null; }\r\n\r\n return existingUser;\r\n }", "@Override\n\tpublic User findUser(String username, String password) throws SQLException {\n User user = null;\n String sql = \"SELECT * FROM user WHERE username = ? AND password = ?\";\n \n connect();\n \n PreparedStatement statement = jdbcConnection.prepareStatement(sql);\n statement.setString(1, username);\n statement.setString(2, password);\n \n \n ResultSet resultSet = statement.executeQuery();\n \n while (resultSet.next()) {\n String usrname = resultSet.getString(\"username\");\n String pwd = resultSet.getString(\"password\");\n \n user = new User(usrname, pwd);\n }\n \n resultSet.close();\n statement.close();\n \n return user;\n\t}", "public static User userSignin(String username, String password) {\n System.out.println(\"dbsETUP @ LINE 422\");\n ConnectionPool pool = ConnectionPool.getInstance();\n Connection connection = pool.getConnection();\n PreparedStatement ps = null;\n ResultSet rs = null;\n ///For test purposes only //System.out.println(\"dbsETUP @ LINE 168\");\n String query = \"SELECT * FROM users \"\n + \"WHERE uname = ? AND pWord = ?\";\n \n try {\n ps = connection.prepareStatement(query);\n ps.setString(1, username);\n ps.setString(2, password);\n rs = ps.executeQuery();\n User user = null;\n if (rs.next()) {\n user = new User();\n user.setUserID(rs.getInt(\"userID\"));\n user.setUsername(rs.getString(\"uname\"));\n user.setPassword(rs.getString(\"pWord\"));\n user.setFirstName(rs.getString(\"firstName\"));\n user.setLastName(rs.getString(\"lastName\"));\n user.setEmail(rs.getString(\"email\"));\n user.setAddr1(rs.getString(\"addr1\"));\n user.setAddr2(rs.getString(\"addr2\"));\n user.setCity(rs.getString(\"city\"));\n user.setStateRegion(rs.getString(\"state\"));\n user.setZipcode(rs.getInt(\"zip\"));\n user.setCountry(rs.getString(\"country\"));\n user.setRoleName(rs.getString(\"roleName\")); \n }\n ///For test purposes only ////System.out.println(user.getFirstName());\n return user;\n } catch (SQLException e) {\n System.out.println(e);\n return null;\n } finally {\n DBUtil.closeResultSet(rs);\n DBUtil.closePreparedStatement(ps);\n pool.freeConnection(connection);\n }\n \n }", "public static User login(User user) {\n\n //preparing some objects for connection \n Statement stmt = null;\n //assigning passed username and password to the local variables\n String username = user.getUsername();\n String password = user.getPassword();\n //actual quesry that will search fo the username and password combination in the users table\n String searchQuery = \"select * from users where UserName='\" + username + \"' AND Password='\" + password + \"'\";\n\n // \"System.out.println\" prints in the console; Normally used to trace the process\n System.out.println(\"Your user name is \" + username);\n System.out.println(\"Your password is \" + password);\n System.out.println(\"Query: \" + searchQuery);\n\n try {\n //connect to DB \n currentCon = ConnectionManager.getConnection();\n //DB statemanet\n stmt = currentCon.createStatement();\n //DB result set\n rs = stmt.executeQuery(searchQuery);\n //if anything retrned result set will not be empty and more variable set to true\n boolean more = rs.next();\n //if more is fale, it implies that the user does not exist in the databse\n if (!more) {\n //displaying the error on the screen\n System.out.println(\"Sorry, you are not a registered user! Please sign up first\");\n //setting user id to 0 informing the user controller that user was not found\n user.setUserId(0);\n }\n //if more equals true, the user was found\n else if (more) {\n //storing fullname of the user retrieved from db\n String fullname = rs.getString(\"FullName\");\n //storing id of the user retrieved from db\n int userId = rs.getInt(\"UserId\");\n //storing greeting of the user retrieved from db\n String greeting = rs.getString(\"Greeting\");\n //displaying greeting and full name to the console\n System.out.println(greeting + \" \" + fullname);\n //replacing empty full name in the user object that was passed as a parameter\n user.setFullName(fullname);\n //replacing empty greeting in the user object that was passed as a parameter\n user.setGreeting(greeting);\n //replacing empty full name in the user object that was passed as a parameter\n user.setUserId(userId);\n }\n }\n //catching exception if any and displaying the error stack trace\n catch (Exception ex) {\n System.out.println(\"Log In failed: An Exception has occurred! \" + ex);\n }\n\n //some exception handling\n //closing the database connection\n finally {\n if (rs != null) {\n try {\n rs.close();\n } catch (Exception e) {\n }\n rs = null;\n }\n\n if (stmt != null) {\n try {\n stmt.close();\n } catch (Exception e) {\n }\n stmt = null;\n }\n\n if (currentCon != null) {\n try {\n currentCon.close();\n } catch (Exception e) {\n }\n\n currentCon = null;\n }\n }\n //returnig the updated user object if the user found or unchanged instance if not\n return user;\n }", "public User loadUserByLogin(String login);", "static User Login() {\r\n\t\tUser loginUser = new User();\r\n\t\tScanner scan = new Scanner(System.in);\r\n\r\n\t\tSystem.out.print(\"Username: \");\r\n\t\tString inUName = scan.next();\r\n\t\tSystem.out.print(\"Password: \");\r\n\t\tscan.nextLine();\r\n\t\tString inPass = scan.nextLine();\r\n\t\t\t/**\r\n\t\t\t*\tIn case of correct credentials return true for further actions in the main method.\r\n\t\t\t*\tIn case of incorrect credentials, return false\r\n\t\t\t*/\r\n\t\tloginUser.validateLogin(inUName, inPass);\r\n\t\treturn loginUser;\r\n\r\n\t}", "User getUserByLoginAndPassword(String login, String password) throws DaoException;", "UserModel retrieveUserModel(String username, String password);", "public synchronized UserModel getUserByLogin(String login) {\r\n\t\tConnectionPooling connectionPooling;\r\n\t\tconnectionPooling = ConnectionPoolingImplementation.getInstance(1, 10);\r\n\r\n\t\tConnection con = connectionPooling.getConnection();\r\n\t\ttry {\r\n\r\n\t\t\tSystem.out.println(\"Connection: \" + con);\r\n\t\t\tPreparedStatement preparedStatement = con.prepareStatement(\"SELECT benutzerID, name, vorname, \"\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ \"login, passwort, fk_typID, kontostand \"\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ \"FROM benutzer WHERE login = ?\");\r\n\t\t\tpreparedStatement.setString(1, login);\r\n\r\n\t\t\tResultSet rs = preparedStatement.executeQuery();\r\n\r\n\t\t\tUserModel user = new UserModel();\r\n\t\t\tSystem.out.println(\"testgetuser\");\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tSystem.out.println(rs.getString(\"login\"));\r\n\t\t\t\tuser.setBenutzerID(rs.getInt(\"benutzerID\"));\r\n\t\t\t\tuser.setName(rs.getString(\"name\"));\r\n\t\t\t\tuser.setVorname((rs.getString(\"vorname\")));\r\n\t\t\t\tuser.setLogin(rs.getString(\"login\"));\r\n\t\t\t\tuser.setFk_typID(rs.getInt(\"fk_typID\"));\r\n\t\t\t\tuser.setKontostand(rs.getInt(\"kontostand\"));\r\n\t\t\t}\r\n\t\t\tconnectionPooling.putConnection(con);\r\n\t\t\tSystem.out.println(user.getLogin());\r\n\t\t\treturn user;\r\n\r\n\t\t} catch (SQLException sqle) {\r\n\t\t\tSystem.out.println(\"Es trat ein Fehler im SQL auf.\");\r\n\t\t\tsqle.printStackTrace();\r\n\t\t\tconnectionPooling.putConnection(con);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Override\n\tpublic Employee_Table login(String userName, String userPassword) {\n\t\ttry (Connection con = ConnectionService.getConnection()) {\n\t\t\tEmployee_Table table = new Employee_Table();\n\t\t\tString sql = \"SELECT * FROM EMPLOYEE_TABLE WHERE USERNAME =? AND USERPASSWORD =?\";\t\t\t\n\t\t\tPreparedStatement pstmt = con.prepareStatement(sql);\n\t\t\tpstmt.setString(1, userName);\n\t\t\tpstmt.setString(2, userPassword);\n\t\t\tpstmt.executeQuery();\n\t\t\tResultSet rs=pstmt.getResultSet();\n\t\t\twhile(rs.next()) {\n\t\t\t\ttable.setEmployee_id(rs.getInt(\"EMPLOYEE_ID\"));\n\t\t\t\ttable.setFirstName(rs.getString(\"FIRSTNAME\"));\n\t\t\t\ttable.setLastName(rs.getString(\"LASTNAME\"));\n\t\t\t\ttable.setIsAdmin(rs.getInt(\"ISADMIN\"));\n\t\t\t\ttable.setManager_id(rs.getInt(\"MANAGER_ID\"));\n\t\t\t\treturn table;\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn null;\n\t}", "@Override\n\tpublic Users getUserBylogin(String username, String password) {\n\t\tConnection connection = null;\n\t\tPreparedStatement statement = null;\n\t\tString sql = \"select * from users where users_Username = ? and users_Password = ? and users.status = 1\";\n\t\t\n\t\ttry {\n\t\t\tconnection = getConnection();\n\t\t\t statement = connection.prepareStatement(sql);\n\t\t\tstatement.setString(1, username);\n\t\t\tstatement.setString(2, password);\n\t\t\tResultSet rs = statement.executeQuery();\n\t\t\twhile(rs.next()) {\n\t\t\t\tUsers users = new Users();\n\t\t\t\tusers.setId(rs.getInt(\"users_id\"));\n\t\t\t\tusers.setName(rs.getString(\"users_Name\"));\n\t\t\t\tusers.setEmail(rs.getString(\"users_Email\"));\n\t\t\t\tusers.setPassWord(rs.getString(\"users_Password\"));\n\t\t\t\tusers.setUserName(rs.getString(\"users_Username\"));\n\t\t\t\tusers.setPhone(rs.getString(\"users_Phone\"));\n\t\t\t\tusers.setRole(rs.getString(\"role\"));\n\t\t\t\tusers.setCreate_Date(rs.getDate(\"create_date\"));\n\t\t\t\tusers.setModify_Date(rs.getDate(\"modify_date\"));\n\t\t\t\tusers.setStatus(rs.getInt(\"status\"));\n\t\t\t\treturn users;\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\tif(connection != null) {\n\t\t\t\ttry {\n\t\t\t\t\tconnection.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(statement != null) {\n\t\t\t\ttry {\n\t\t\t\t\tstatement.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public User createUser() {\n printer.println(\"Welcome! Enter you name and surname:\");\n printer.println(\"Name:\");\n String name = input.nextString();\n printer.println(\"Surname:\");\n String surname = input.nextString();\n return new User(name, surname);\n }", "public User getUserByUsernameAndPassword(String username, String password) throws SQLException{\n\t\tConnection connection = db.getConnection();\n\t\tSystem.out.println(\"getting user by username and password\");\n\n\t\tString sql = \"Select * from user where username = ? and password = ?\";\n\n\t\tPreparedStatement stmt = connection.prepareStatement(sql);\n\t\tstmt.setString(1, username);\n\t\tstmt.setString(2, password);\n\n\t\tResultSet rs = stmt.executeQuery();\n\n\t\tUser user = null;\n\n\t\tif (rs.next()){\n\t\t\tint id = rs.getInt(\"id\");\n\t\t\t//String username = rs.getString(\"username\");\n\t\t\t//String password = rs.getString(\"username\");\n\t\t\tString firstname = rs.getString(\"firstname\");\n\t\t\tString lastname = rs.getString(\"lastname\");\n\t\t\tString email = rs.getString(\"email\");\n\t\t\tint recordsindexed = rs.getInt(\"recordsindexed\");\n\t\t\tint currentBatchId = rs.getInt(\"batchid\");\n\n\t\t\tuser = new User(id, username, password, firstname, lastname, email, recordsindexed, currentBatchId); \n\t\t}\n\n\n\t\trs.close();\n\t\tstmt.close();\n\t\treturn user;\n\n\n\t}", "@Override\n public User findUserByName(String name) {\n User user = new User();\n user.setName(\"admin\");\n user.setPassword(\"00b3187384f2708025074f28764a4a30\");\n return user;\n }", "private User createUserFromResults(ResultSet results) throws SQLException {\n User user = new User();\n user.setLastName(results.getString(\"last_name\"));\n user.setFirstName(results.getString(\"first_name\"));\n user.setUserid(results.getString(\"id\"));\n user.setDateOfBirth(results.getDate(\"date_of_birth\"));\n // TODO map the remaining fields\n return user;\n }", "@Override\n\tpublic User findUserByUsername(String username) throws SQLException {\n User user = null;\n String sql = \"SELECT * FROM user WHERE username = ?\";\n \n connect();\n \n PreparedStatement statement = jdbcConnection.prepareStatement(sql);\n statement.setString(1, username);\n \n \n ResultSet resultSet = statement.executeQuery();\n \n while (resultSet.next()) {\n String usrname = resultSet.getString(\"username\");\n String pwd = resultSet.getString(\"password\");\n \n user = new User(usrname, pwd);\n }\n \n resultSet.close();\n statement.close();\n \n return user;\n\t}", "@Override\r\n\tpublic User login(String username,String pwd) {\n\t\tString sql=\"select uid,upass from user where uid=? and upass=?\";\r\n\t\tDBHelp hp=new DBHelp();\r\n\t\tUser us=null;\r\n\t\ttry {\r\n\t\t\tResultSet rs=hp.select(sql, username,pwd);\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\t us=new User(rs.getString(\"uid\"),rs.getString(\"upass\"));\r\n\t\t\t}\r\n\t\t} catch (SQLException 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\treturn us;\r\n\t}", "@Override\n public User getUser(String given_username) \n {\n User tempUser = null;\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 = \"SELECT * FROM users where username = '\" + given_username + \"'\";\n ResultSet rs = stmt.executeQuery(sql);\n \n while(rs.next())\n {\n int id = rs.getInt(\"user_id\");\n String firstname = rs.getString(\"firstname\");\n String lastname = rs.getString(\"lastname\");\n String username = rs.getString(\"username\");\n String password = rs.getString(\"password\");\n String city = rs.getString(\"city\");\n String number = rs.getString(\"number\");\n\n tempUser = new User(id,firstname,lastname,username,password,city,number);\n System.out.println(\"Here-1\");\n }\n rs.close();\n stmt.close();\n conn.close();\n System.out.println(\"Here\");\n if(tempUser == null) System.out.println(\"true\");\n } \n catch (SQLException ex) {ex.printStackTrace(); return null;} \n catch (ClassNotFoundException ex) {ex.printStackTrace(); return null; }\n return tempUser;\n }", "public User getUser(String username, String password) throws SQLException {\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString userRecord_sql = \"SELECT * FROM \" + user_table + \" WHERE username='\" + username + \"' AND password='\"\n\t\t\t\t+ password + \"'\";\n\t\tconnection = connector.getConnection();\n\t\tstatement = connection.prepareStatement(userRecord_sql);\n\t\trs = statement.executeQuery();\n\t\tUser user = null;\n\t\twhile (rs.next()) {\n\t\t\ttry {\n\t\t\t\tuser = new User(rs.getString(2), rs.getString(3), rs.getString(4), rs.getString(5), rs.getString(6),\n\t\t\t\t\t\trs.getInt(7));\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t}\n\t\treturn user;\n\t}", "public static User login(String username, String password) {\n\t\ttry {\n\t\t\tStatement stmt = MySQLConnection.establishConnection().createStatement();\n\t\t\t\n\t\t\tString query = \"SELECT * FROM users WHERE email = '\" + username + \"' AND password = '\" + password + \"'\";\n\t\t\t\n\t\t\tResultSet rset = stmt.executeQuery(query);\n\t\t\t\n\t\t\trset.next();\n\t\t\t\n\t\t\tint idAdmin = rset.getInt(\"IDUser\");\n\t\t\tString name = rset.getString(\"Name\");\n\t\t\tString surname = rset.getString(\"Surname\");\n\t\t\tString mailUser = rset.getString(\"Email\");\n\t\t\tString passwordUser = rset.getString(\"Password\");\n\t\t\t\n\t\t\tUser user = new User(idAdmin, name, surname, mailUser, passwordUser);\n\t\t\t\n\t\t\treturn user;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "User createUser();", "User loadUserByUserName(String userName);", "public User getLoginUser(User userLogin) {\n if (userLogin.getLoginname().equals(\"\") || (userLogin.getPassword().equals(\"\"))) {\n return null;\n } else {\n\n User user = new User();\n user = this.userDao.selectLogin(userLogin.getLoginname());\n if (user != null) {\n if (user.getPassword().equals(userLogin.getPassword())) {\n return user;\n } else {\n return null;\n }\n } else {\n return null;\n }\n }\n }", "public User validateLogin(String _username, String _password) throws SQLException {\n String query = \"SELECT * FROM users WHERE username = ? AND password = ?\";\n PreparedStatement preparedStatement = conn.prepareStatement(query);\n\n preparedStatement.setString(1, _username);\n preparedStatement.setString(2, _password);\n\n ResultSet res = preparedStatement.executeQuery();\n\n /* Validation Successful. Create user object */\n if (res.next()) {\n int userId = res.getInt(1);\n String firstName = res.getString(2);\n String lastName = res.getString(3);\n String username = res.getString(4);\n String password = res.getString(5);\n String email = res.getString(6);\n Boolean active = res.getBoolean(7);\n String userType = res.getString(8);\n\n return new User(userId, firstName, lastName, username, password, email, userType, active);\n }\n\n /* Invalid username || password */\n return null;\n }", "public User userAuth(Login loginData)throws EntityNotFoundException\n\t{\n\t\ttry\n\t\t{\n\t\t\tUser gotUser=userDao.getById(loginData.getEmail());\n\t\t\tif(gotUser.getPassword().equals(loginData.getPassword()))\n\t\t\t{\n\t\t\t\treturn gotUser;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tthrow new EntityNotFoundException(\"Password Incorrect\");\n\t\t\t}\n\t\t}\n\t\tcatch(EntityNotFoundException e)\n\t\t{\n\t\t\tthrow new EntityNotFoundException(\"No user exist with this email id\");\n\t\t}\t\n\t}", "private Appuser newUser() {\n //TODO: get logged user from security context\n String createdBy = \"REST\";\n Appuser au = new Appuser();\n Userdetails ud = new Userdetails();\n boolean idOK = false;\n Long id = 0L;\n while (!idOK) {\n id = EntityIdGenerator.random();\n idOK = !userRepository.exists(id);\n }\n //notNull\n ud.setNotes(\"none\");\n au.setPasswdHash(\"*\");\n au.setCreatedBy(createdBy);\n au.setUserId(id);\n ud.setUserId(id);\n au.setUserdetails(ud);\n return au;\n }", "User loadUser( String username ) throws UserNotFoundException;", "public Users login(String email, String pass) {\n\t\ttry {\n\n\t\t\t//SQL query\n\t\t\tStringBuffer query = new StringBuffer();\n\t\t\tquery.append(\"select * from users where user_email = ? and user_pass = ?\");\n\t\t\t//Prepared Statement\n\t\t\tPreparedStatement pstmt = conn.prepareStatement(query.toString());\n\t\t\tpstmt.setString(1, email);\n\t\t\tpstmt.setString(2, pass);\n\t\t\t\n\t\t\tResultSet rs = pstmt.executeQuery();\n//\t\t\tuser.setUser_id(rs.getString(\"user_id\"));\n\t\t\tif(rs.next()) {\n\t\t\t\tuser.setUser_id(rs.getInt(\"user_id\"));\n\t\t\t\tuser.setUser_name(rs.getString(\"user_name\"));\n\t\t\t\tuser.setUser_email(rs.getString(\"user_email\"));\n\t\t\t\tuser.setUser_pass(rs.getString(\"user_pass\"));\n\t\t\t\tuser.setUser_about(rs.getString(\"user_about\"));\n\t\t\t\tuser.setUser_gender(rs.getString(\"user_gender\"));\n\t//\t\t\tuser.setCreated(rs.getString(\"created\"));\n\t\t\t}\n\t\t}catch(SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn user;\n\t}", "public User logInUser(final String login, final String password);", "public synchronized UserDetails loadUserByUsername(String loginId) throws UsernameNotFoundException, DataAccessException {\n\t\tString hospitalId = UsernamePasswordAuthenticationFilter.localMssContext.get().getHospitalId();\n\t\tString password = EncryptionUtils.cryptWithMD5(UsernamePasswordAuthenticationFilter.localMssContext.get().getPassword());\n\t\tif(StringUtils.isEmpty(hospitalId)){\n\t\t\tLOG.debug(\"Can't get user with hospital id is empty, loginId: \" + loginId);\n\t\t\tthrow new UsernameNotFoundException(\"Can't get user with hospital id is empty, loginId: \" + loginId);\n\t\t}\n\t\tif(StringUtils.isEmpty(password)){\n\t\t\tLOG.debug(\"User doesn't input password: \" + loginId);\n\t\t\tthrow new UsernameNotFoundException(\"Can't get user with password is empty, loginId: \" + loginId);\n\t\t}\n\t\tSysUserModel sysUser = null;\n\t\tLOG.debug(\"is kcck: \" + String.valueOf(MssContextHolder.isKcck()));\n\t\tif(MssContextHolder.isKcck()){\n\t\t\tKcckSysUserModel sysUserModel = new KcckSysUserModel();\n\t\t\tsysUserModel.setUser_id(loginId);\n\t\t\tsysUserModel.setHosp_code(MssContextHolder.getHospCode());\n\t\t\tsysUserModel.setPassword(password);\n\t\t\tsysUser = sysUserService.getUserFromKcck(sysUserModel);\n\t\t\tsysUser.setHospitalCode(MssContextHolder.getHospCode());\n\t\t} else {\n\t\t\tInteger hospId = Integer.parseInt(hospitalId);\n\t\t\tsysUser = sysUserService.getSysUserByLoginId(loginId, hospId);\n\t\t\tif (sysUser == null) {\n\t\t\t\tsysUser = sysUserService.getSysUserByEmail(loginId, hospId);\n\t\t\t}\n\t\t}\n\t\tif (sysUser == null || (sysUser.getCode() != null && sysUser.getCode().equals(\"30\"))) {\n\t\t\tLOG.debug(\"Can't get user with user name = \" + loginId);\n\t\t\tthrow new UsernameNotFoundException(\"Can't get user with user name = \" + loginId);\n\t\t}\n\t\treturn new WebSysUserDetails(sysUser);\n\t}", "public User getUserByLogin(String login) throws ReadException, LoginNotExistException {\n LOGGER.log(Level.INFO, \"Metodo getUserByLogin de la clase AbstractUserFacade\");\n \n User user = new User();\n List<User> users = getAllUsers();\n for (User u: users) {\n if (u.getLogin().compareToIgnoreCase(login) == 0) {\n if (u instanceof Boss){\n user.setLogin(\"Boss\");\n } else if(u instanceof Employee){\n user.setLogin(\"Employee\");\n }\n return user;\n }\n }\n throw new LoginNotExistException();\n }", "@Override\r\n\tpublic Object createUser() throws DataAccessException, SQLException {\n\t\treturn null;\r\n\t}", "User findUserByLogin(String login);", "public User getUser(String id){\n \t\t// execute query\n \t\tString query = \"SELECT * FROM users WHERE id = '\" + id + \"'\";\n \t\tResultSet rs = getResult(query);\n \t\t\n \t\t// check if result is empty\n \t\ttry {\n \t\t\tif(rs.next() == false) return null;\n \t\t} catch (SQLException e) {e.printStackTrace();}\n \t\t\n \t\t// otherwise create user with query result\n \t\tString hash = null;\n \t\tboolean isAdmin = false;\n \t\ttry {\n \t\t\thash = rs.getString(\"hash\");\n \t\t} catch (SQLException e) {e.printStackTrace();}\n \t\t\n \t\ttry {\n \t\t\tisAdmin = rs.getBoolean(\"isAdmin\");\n \t\t} catch (SQLException e) {e.printStackTrace();}\n \t\t\n \t\tString image = \"\";\n \t\ttry {\n \t\t\timage = rs.getString(\"image_url\");\n \t\t} catch (SQLException e) {e.printStackTrace();}\n \t\t\n \t\treturn new User(id, hash, isAdmin, this, image);\t\t\n \t}", "@Override\n public User login(String username, String password) {\n User u = userDataMapper.getUserByUserName(username);\n if (u != null && u.getPassword().equals(password))\n return u;\n return null;\n }", "@Override\n\tpublic User isLogin(String userName, String password) {\n\t\tString sql = \"select * from user where name =? and password = ?\";\n\t\t\n\t\tObject[] obj = {userName,password};\n\t\tUser user =null;\n\t\ttry {\n\t\t\tResultSet res = dbc.execSqlWithResultset(sql, obj);\t\t\t\n\t\t\tif (res.next()) {\n\t\t\t\t user = new User();\n\t\t\t\tuser.setUserId(res.getInt(\"user_id\"));\n\t\t\t\tuser.setPhone(res.getString(\"phone\"));\n\t\t\t\tuser.setAddress(res.getString(\"address\"));\n\t\t\t\tuser.setEmail(res.getString(\"email\"));\n\t\t\t\tuser.setName(res.getString(\"name\"));\n\t\t\t\tuser.setQq(res.getString(\"qq\"));\n\t\t\t\tuser.setRemark(res.getString(\"remark\"));\n\t\t\t\tuser.setState(res.getInt(\"state\"));\n\t\t\t\tuser.setStatus(res.getInt(\"status\"));\n\t\t\t\tuser.setPassword(res.getString(\"password\"));\n\t\t\t}\n\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\treturn user;\n\t}", "User login(String username, String password);", "public User getUser(String userName, String password);", "@Override\n public User selectUserByUsername(String username) {\n\n User ersUser = new User();\n\n try (Connection connection = DriverManager.getConnection(URL, USERNAME, PASSWORD)) {\n\n //String sql = \"SELECT ers_username FROM ers_users WHERE ers_username = ?\";\n String sql = \"SELECT * FROM user_join WHERE username = ?\";\n\n PreparedStatement ps = connection.prepareStatement(sql);\n\n ps.setString(1, username);\n\n ResultSet rs = ps.executeQuery();\n\n if (rs.next()) {\n\n ersUser.setUserId(rs.getInt(1));\n ersUser.setUsername(rs.getString(2));\n ersUser.setPassword(rs.getString(3));\n ersUser.setFirstName(rs.getString(4));\n ersUser.setLastName(rs.getString(5));\n ersUser.setEmail(rs.getString(6));\n ersUser.setRoleType(rs.getString(7));\n }\n }\n\n catch (SQLException e) {\n\n e.printStackTrace();\n }\n\n return ersUser;\n }", "public User findUser(String username, String password) throws SQLException {\n String fetch = \"SELECT * FROM ROOT.USERS \" +\n \"WHERE USERNAME = ? AND PASSWORD = ?\";\n this.preparedStmt = connection.prepareStatement(fetch);\n this.preparedStmt.setString(1, username);\n this.preparedStmt.setString(2, password);\n resultSet = preparedStmt.executeQuery();\n \n while(resultSet.next()) {\n String userName = resultSet.getString(1);\n String userPassword = resultSet.getString(2);\n if(userName.equals(username) && userPassword.equals(password))\n return new User(userName, userPassword, \n resultSet.getString(3), \n resultSet.getString(4), \n resultSet.getString(5), \n resultSet.getString(6), \n resultSet.getString(7), \n resultSet.getString(8),\n resultSet.getString(9)\n );\n }\n return null;\n }", "User getUserByLogin(String login);", "public void createUser() {\n try {\n conn = dao.getConnection();\n\n ps = conn.prepareStatement(\"INSERT INTO Users(username, password) VALUES(?, ?)\");\n ps.setString(1, this.username);\n ps.setString(2, this.password);\n\n ps.execute();\n\n ps.close();\n conn.close();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "@Override\n public User login(int userID) {\n return new DataClass().getUserByID(userID);\n }", "public static User login(User user) {\n\t\tStatement stmt = null;\n\n\t\tString username = user.getUserName();\n\t\tString password = user.getPassword();\n\n\t\tStringBuffer searchQuery = new StringBuffer();\n\t\tsearchQuery.append(\"select * from user where username='\" + username + \"' AND password='\" + password + \"'\");\n\t\t// process\n\t\tSystem.out.println(\"Your user name is \" + username);\n\t\tSystem.out.println(\"Your password is \" + password);\n\t\tSystem.out.println(\"Query: \" + searchQuery);\n\n\t\ttry {\n\t\t\t// connect to DB\n\t\t\tcurrentCon = ConnectionManager.getConnection();\n\t\t\tstmt = currentCon.createStatement();\n\t\t\trs = stmt.executeQuery(searchQuery.toString());\n\t\t\tboolean more = rs.next();\n\n\t\t\t// if user does not exist set the isValid variable to false\n\t\t\tif (!more) {\n\t\t\t\tSystem.out.println(\"Sorry, you are not a registered user! Please sign up first\");\n\t\t\t\tuser.setValid(false);\n\t\t\t}\n\n\t\t\t// if user exists set the isValid variable to true\n\t\t\telse if (more) {\n\t\t\t\tint userId = rs.getInt(\"userid\");\n\t\t\t\tuser.setValid(true);\n\t\t\t\tuser.setUserId(userId);\n\n\t\t\t\tSystem.out.println(\"Welcome \" + user.getUserName());\n\t\t\t}\n\t\t}\n\n\t\tcatch (Exception ex) {\n\t\t\tSystem.out.println(\"Log In failed: An Exception has occurred! \" + ex);\n\t\t}\n\n\t\t// some exception handling\n\t\tfinally {\n\t\t\tif (rs != null) {\n\t\t\t\ttry {\n\t\t\t\t\trs.close();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t}\n\t\t\t\trs = null;\n\t\t\t}\n\n\t\t\tif (stmt != null) {\n\t\t\t\ttry {\n\t\t\t\t\tstmt.close();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t}\n\t\t\t\tstmt = null;\n\t\t\t}\n\n\t\t\tif (currentCon != null) {\n\t\t\t\ttry {\n\t\t\t\t\tcurrentCon.close();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t}\n\n\t\t\t\tcurrentCon = null;\n\t\t\t}\n\t\t}\n\n\t\treturn user;\n\t}", "@Override\n\tpublic User findUser(String username, String password) {\n\t\tUser user=null;\n\t\tConnection conn =null;\n\t\tPreparedStatement ps =null; //表的准备\n\t\tResultSet rs = null; //返回的表数据\n\t\t\n\t\ttry {\n\t\t\t//1.注册驱动\n\t\t\t//2.获取connection对象\n\t\t\tconn = DBUtils.getConnection();\n\t\t\t\n\t\t\t//查询表\n\t\t\tString sql=\"select * from user where username=? and password=?\"; \n\t\t\tps = conn.prepareStatement(sql);\n\t\t\tps.setString(1, username);\n\t\t\tps.setString(2, password);\n\t\t\t\n\t\t\t//返回的表数据\n\t\t\trs = ps.executeQuery();\n\t\t\t\n\t\t\t//返回表的数据进行遍历输出,封装(set)到user里面\n\t\t\twhile(rs.next()){\n\t\t\t\tuser = new User();\n\t\t\t\tuser.setUsername(rs.getString(\"username\"));\n\t\t\t\tuser.setPassword(rs.getString(\"password\"));\n\t\t\t}\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\t//5.关闭资源\n\t\t\tDBUtils.close(rs, ps, conn);\n\t\t}\n\t\t\n\t\treturn user;\n\t}", "public LocalUser getLoginUser(){\n\t\treturn new Select().from(LocalUser.class).executeSingle();\n\t}", "@Override\r\npublic User getUserByPassword(String password) throws ClassNotFoundException, IOException, SQLException\r\n{\r\n\tConnection conn = null;\r\n\tPreparedStatement stmt = null;\r\n\tResultSet rs = null;\r\n\tOracleConnection orcl = new OracleConnection();\r\n\r\n\t//Create List Object to return, and User Object to to store in list from database.\r\n\tList<User> userList = null;\r\n\tUser user = null;\r\n\r\n\tString fetchString = \"SELECT * FROM users WHERE password = ?\";//Since username is unique, only one user can be generated\r\n\ttry\r\n\t{\r\n\t\tconn = orcl.getConnection();\r\n\t\tstmt = conn.prepareStatement(fetchString);\r\n\t\tstmt.setString(1, password);\r\n\t\trs = stmt.executeQuery();\r\n\t\tuserList = new ArrayList<User>();\r\n\t\r\n\t\twhile(rs.next())\r\n\t\t{\r\n\t\t\tuser = new User(rs.getString(2), rs.getString(3), rs.getString(4));\r\n\t\t\tuser.setUserId(rs.getInt(1));\r\n\t\t\tuserList.add(user);\r\n\t\t}\r\n\t}\r\n\tcatch(SQLException e)\r\n\t{\r\n\t\tSystem.out.println(\"Error: \" + e.getMessage());\r\n\t}\r\n\tfinally\r\n\t{\r\n\t\tif (rs != null) \r\n\t\t{\r\n\t\t\trs.close();\r\n\t\t}\r\n\t\tif (stmt != null) \r\n\t\t{\r\n\t\t\tstmt.close();\r\n\t\t}\r\n\t\tif (conn != null) \r\n\t\t{\r\n\t\t\tconn.close();\r\n\t\t}\r\n\t}\r\n\treturn user;\r\n}", "public User getUser(String email, String password) {\n User user = new User();\n // array of columns to fetch\n String[] columns = {\n COLUMN_USER_ID,\n COLUMN_USER_NAME,\n COLUMN_USER_EMAIL,\n COLUMN_USER_IMAGE,\n COLUMN_USER_CURRMONTH_ID\n };\n // selection criteria\n String selection = COLUMN_USER_EMAIL + \" = ?\" + \" AND \" + COLUMN_USER_PASSWORD + \" = ?\";\n \n // selection arguments\n String[] selectionArgs = {email, password};\n \n // query user table with conditions\n /**\n * Here query function is used to fetch records from user table this function works like we use sql query.\n * SQL query equivalent to this query function is\n * SELECT user_id FROM user WHERE user_email = '[email protected]' AND user_password = 'qwerty';\n */\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.query(\n TABLE_USER, //Table to query\n columns, //columns to return\n selection, //columns for the WHERE clause\n selectionArgs, //The values for the WHERE clause\n null, //group the rows\n null, //filter by row groups\n null); //The sort order\n int cursorCount = cursor.getCount();\n\n if (cursorCount == 1 && cursor.moveToFirst()) {\n user.setId(Integer.parseInt(cursor.getString(cursor.getColumnIndex(COLUMN_USER_ID))));\n user.setName(cursor.getString(cursor.getColumnIndex(COLUMN_USER_NAME)));\n user.setEmail(cursor.getString(cursor.getColumnIndex(COLUMN_USER_EMAIL)));\n byte[] imgByte = cursor.getBlob(3);\n user.setImage(BitmapFactory.decodeByteArray(imgByte, 0, imgByte.length));\n user.setCurrMonth(Integer.parseInt(cursor.getString(cursor.getColumnIndex(COLUMN_USER_CURRMONTH_ID))));\n }\n cursor.close();\n db.close();\n\n return user;\n }", "public User findByLogin(String login) {\n LOGGER.debug(\"getting User by login\");\n String hql = \"SELECT i FROM User as i WHERE login = :name\";\n Session s = getSession();\n Query query = s.createQuery(hql);\n query.setParameter(\"name\", login);\n User u = (User) query.uniqueResult();\n return u;\n }", "public User findByLogin(String login) throws DAOException {\n User user = null;\n PreparedStatement ps = null;\n ResultSet rs = null;\n if (connectionIsAlive()) {\n try {\n ps = connection.prepareStatement(SQL_FIND_BY_LOGIN);\n ps.setString(1, login);\n rs = ps.executeQuery();\n if (rs.next()) {\n user = build(rs);\n }\n } catch (SQLException e) {\n DAOException ex = new DAOException(SQL_FIND_BY_LOGIN, e);\n throw ex;\n } finally {\n close(rs);\n close(ps);\n }\n } else {\n throw new DAOException(ERROR_NO_CONNECTION);\n }\n return user;\n }", "User getUser(String userName) throws DatabaseException;", "User get(String username) throws UserNotFoundException, SQLException;", "public User findUserByLogin(final String login);", "@Override\r\n\tpublic User findUser(String name) {\n\t\tSession session=DaoUtil.getSessionFactory().getCurrentSession();\r\n\t\tsession.\r\n\t\t\r\n\t\t\r\n\t\treturn user;\r\n\t}", "public void setUser(LoginUser loginUser)\n {\n try (Connection connection = DatabaseAccess.getInstance().getConnection())\n {\n Statement statement = connection.createStatement();\n\n String query =\n \"SELECT * FROM \" + loginUser.getAccessType() + \" WHERE email = '\"\n + loginUser.getUsername() + \"' AND password = '\" + loginUser\n .getPassword() + \"'\";\n\n ResultSet r = statement.executeQuery(query);\n r.next();\n\n if (loginUser.getAccessType() == AccessType.DOCTOR)\n {\n Address address = new Address(r.getString(\"add_street\"),\n r.getString(\"add_no\"), r.getString(\"add_zip_code\"),\n r.getString(\"add_city\"));\n\n user = new Doctor(r.getString(\"f_name\"), r.getString(\"mid_name\"),\n r.getString(\"l_name\"), r.getLong(\"ssn\"), r.getDate(\"dob\"), address,\n r.getString(\"contact_f_name\"), r.getString(\"contact_mid_name\"),\n r.getString(\"contact_l_name\"), r.getString(\"contact_phone\"),\n r.getDate(\"start_date\"), r.getString(\"education\"),\n r.getString(\"specialization\"),\n new Ward(r.getString(\"ward_name\"), r.getInt(\"room_number\")),\n r.getString(\"email\"), r.getString(\"password\"));\n doctorsAppointments = r.getInt(\"nr_appointments\");\n }\n\n else if (loginUser.getAccessType() == AccessType.NURSE)\n {\n Address address = new Address(r.getString(\"add_street\"),\n r.getString(\"add_no\"), r.getString(\"add_zip_code\"),\n r.getString(\"add_city\"));\n\n user = new Nurse(r.getLong(\"ssn\"), r.getLong(\"doctor_ssn\"),\n r.getString(\"f_name\"), r.getString(\"mid_name\"),\n r.getString(\"l_name\"), r.getDate(\"dob\"), address,\n r.getString(\"contact_f_name\"), r.getString(\"contact_mid_name\"),\n r.getString(\"contact_l_name\"), r.getString(\"contact_phone\"),\n r.getDate(\"start_date\"), r.getString(\"education\"),\n r.getString(\"experience\"), r.getString(\"email\"),\n r.getString(\"password\"));\n }\n\n else if (loginUser.getAccessType() == AccessType.MANAGER)\n {\n Address address = new Address(r.getString(\"add_street\"),\n r.getString(\"add_no\"), r.getString(\"add_zip_code\"),\n r.getString(\"add_city\"));\n\n user = new Manager(r.getLong(\"ssn\"), r.getString(\"f_name\"),\n r.getString(\"mid_name\"), r.getString(\"l_name\"), r.getDate(\"dob\"),\n address, r.getString(\"contact_f_name\"),r.getString(\"contact_mid_name\"), r.getString(\"contact_l_name\"),\n r.getString(\"contact_phone\"), r.getDate(\"start_date\"), r.getString(\"education\"),\n r.getString(\"position\"), r.getString(\"email\"),\n r.getString(\"password\"));\n }\n }\n catch (SQLException e)\n {\n e.printStackTrace();\n }\n }", "@Transactional\n\t@Override\n\tpublic User Login(String login, String senha) {\n\t\tUser user = this.userDao.getUsuario(login, senha);\n\t\treturn user;\n\t}", "User loadUser(int id) throws DataAccessException;", "public abstract User login(User data);", "public UserData login() {\n return null;\n }", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic UserDO getUserByUsernameAndPassword(String username, String password) {\n\t\tlog.debug(\"getting UserDO instance with username: \" + username+\",password: \"+password);\n\t\ttry {\n\t\t\tString sql = \"from UserDO where username = '\"+username+\"' and password='\"+password+\"'\";\n\t\t\tSession se = this.currentSession();\n\t\t\n\t\t\tQuery q = se.createQuery(sql);\n\t\t\tList<UserDO> result = q.list();\n\t\t\treturn result.size()==0?null:result.get(0);\n\t\t} catch (RuntimeException re) {\n\t\t\tlog.error(\"get failed\", re);\n\t\t\tthrow re;\n\t\t}\n\t}", "boolean login(String userName, String password) {\n RatAppModel.checkInitialization();\n String getUsersText = \"SELECT * FROM users WHERE username=?\";\n ResultSet results;\n boolean loginStatus;\n try {\n PreparedStatement statement = db.getStatement(getUsersText);\n statement.setString(1, userName);\n results = db.query(statement);\n if (!results.next()) {\n // No entries in DB for passed in username\n results.close();\n loginStatus = false;\n } else {\n String dbPass = results.getString(\"password\");\n int salt = results.getInt(\"salt\");\n String hashPass = hasher.getSecurePassword(Integer.toString(salt),\n password);\n if (dbPass.equals(hashPass)) {\n //Log.i(\"login\", \"auth success\");\n loginStatus = true;\n String profileName = results.getString(\"profileName\");\n String address = results.getString(\"homeLocation\");\n boolean isAdmin = results.getBoolean(\"isAdmin\");\n currentUser = new User(userName, profileName, address, isAdmin);\n } else {\n //Log.i(\"login\", \"auth failed\");\n loginStatus = false;\n }\n results.close();\n }\n return loginStatus;\n } catch (SQLException e) {\n Log.e(\"login\", e.getMessage());\n return false;\n }\n }", "private User authenticate(JSONObject data) {\r\n UserJpaController uJpa = new UserJpaController(Persistence.createEntityManagerFactory(\"MovBasePU\"));\r\n\r\n long fbId = Long.parseLong((String) data.remove(\"id\"));\r\n User user = uJpa.findByFbId(fbId);\r\n if (user != null) {\r\n return user;\r\n } else {\r\n user = new User(fbId, (String) data.remove(\"name\"), (String) data.remove(\"email\"), new Date(), \"u\");\r\n try {\r\n uJpa.create(user);\r\n } catch (Exception ex) {\r\n Logger.getLogger(LoginController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return user;\r\n }\r\n\r\n }", "public User(String un, String pw) throws ClassNotFoundException, SQLException, ParseException, Exception{\n Class.forName(\"com.mysql.cj.jdbc.Driver\");\n Connection conn = DriverManager.getConnection(\"jdbc:mysql://localhost/baitaplon\", \"root\", \"123456789\");\n Statement stm = conn.createStatement();\n ResultSet rs = stm.executeQuery(\"SELECT * FROM user\");\n while(rs.next()){\n if(un.toUpperCase().equals(rs.getString(\"username\").toUpperCase())\n && pw.toUpperCase().equals(rs.getString(\"password\").toUpperCase())){\n SimpleDateFormat f = new SimpleDateFormat(\"yyyy-MM-dd\");\n String dob = rs.getString(\"dateofbirth\");\n String dos = rs.getString(\"dateofstart\");\n this.username = rs.getString(\"username\");\n this.password = rs.getString(\"password\");\n this.fullName = rs.getString(\"fullname\");\n this.country = rs.getString(\"country\");\n this.gender = rs.getString(\"gender\");\n this.dob = f.parse(dob);\n this.accessDate = f.parse(dos);\n break;\n }\n }\n if(this.username == null)\n throw new Exception(\"Incorrect username or password.\");\n \n stm.close();\n conn.close();\n }", "User createUser(ResultSet resultSet, User user) throws SQLException;", "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}", "public static User login(String email, String password) throws LegoHouseException {\n try {\n Connection con = Connector.connection();\n String SQL = \"SELECT id, role FROM users \"\n + \"WHERE email=? AND password=?\";\n PreparedStatement ps = con.prepareStatement(SQL);\n ps.setString(1, email);\n ps.setString(2, password);\n ResultSet rs = ps.executeQuery();\n if (rs.next()) {\n String role = rs.getString(\"role\");\n int id = rs.getInt(\"id\");\n User user = new User(email, password, role);\n user.setId(id);\n return user;\n }\n else {\n throw new LegoHouseException(\"Could not validate user\", \"index\");\n }\n }\n catch (ClassNotFoundException | IllegalAccessException | InstantiationException | SQLException ex) {\n throw new LegoHouseException(ex.getMessage(), \"index\");\n }\n }", "public User login(String username, boolean useExisting) throws UserAlreadyExistsException {\n User user = this.personRepository.find(username);\n if(null != user) {\n if(!useExisting) {\n throw new UserAlreadyExistsException();\n }\n return user;\n } else {\n return personRepository.addUser(username);\n }\n }", "@Override\n\tpublic Users login(String userName, String password) throws Exception {\n\t\tUsers user= null;\n\t\tuser = userMapper.login(userName,password);\n\t\t//匹配密码\n\t\treturn user;\n\t}", "User getUserByUsername(String name) throws InvalidUserException;", "@Test\r\n\tpublic void shouldCreateAndRetrieveUser() {\n\t\tnew User(\"Bob\", \"hallo\").save();\r\n\t\tnew User(\"Brayn\", \"velo\").save();\r\n\r\n\t\t// Retrieve the user with some keywords\r\n\t\tUser bob = User.find(\"byPassword\", \"hallo\").first();\r\n\t\tUser brayn = User.find(\"byName\", \"Brayn\").first();\r\n\t\tUser zero = User.find(\"byPassword\", \"Housi\").first();\r\n\r\n\t\tassertEquals(\"Bob\", bob.name);\r\n\t\tassertEquals(\"hallo\", bob.password);\r\n\r\n\t\tassertEquals(\"Brayn\", brayn.name);\r\n\t\tassertEquals(\"velo\", brayn.password);\r\n\r\n\t\tassertNull(zero);\r\n\t}", "@Override\r\n\tpublic TbUser findUserById(Long id) {\n\t\tTbUser tbUser = tbUserMapper.selectByPrimaryKey(id);\r\n\t\treturn tbUser;\r\n\t}", "public static Users retieveUser(String login, String pass) {\n if (pass == null || pass.isEmpty()\n || login == null || login.isEmpty() || login.contains(\",\")) {\n return null;\n }\n\n Hashtable<String, String> ldapEnv = new Hashtable<String, String>(11);\n String dn = String.format(\"uid=%s,%s\", login, baseDN);\n\n ldapEnv.put(Context.INITIAL_CONTEXT_FACTORY, \"com.sun.jndi.ldap.LdapCtxFactory\");\n ldapEnv.put(Context.PROVIDER_URL, ldapURL);\n ldapEnv.put(Context.SECURITY_PRINCIPAL, dn);\n ldapEnv.put(Context.SECURITY_CREDENTIALS, pass);\n\n try {\n DirContext authContext = new InitialDirContext(ldapEnv);\n Attributes userAttributes = authContext.getAttributes(dn);\n\n if (userAttributes.get(\"uidNumber\") == null) {\n return null;\n }\n\n Attribute cn = userAttributes.get(\"cn\"); // commonName - eg. Marek Nowicki\n\n String name = ((String) cn.get());\n String firstName = name;\n String lastName = \"(LDAP)\";\n\n int index = name.lastIndexOf(\" \");\n if (index > 0) {\n firstName = name.substring(0, index).trim();\n lastName = name.substring(index + 1).trim();\n }\n\n Users user = new Users();\n\n user.setLogin(login);\n user.setFirstname(firstName);\n user.setLastname(lastName);\n user.setEmail(login + emailSuffix);\n\n return user;\n } catch (AuthenticationException ex) {\n } catch (NamingException ex) {\n } catch (NullPointerException ex) {\n } catch (ClassCastException ex) {\n } catch (Exception ex) {\n log.fatal(\"LDAP Exception:\", ex);\n }\n return null;\n }", "@Override\n\tpublic User login(String username) {\n\t\treturn userDao.login(username);\n\t}", "public static User getUserByID(int idUser) {\n\t\ttry {\n\t\t\tStatement stmt = MySQLConnection.establishConnection().createStatement();\n\t\t\t\n\t\t\tString query = \"SELECT * FROM users WHERE IDUser = \" + idUser;\n\t\t\t\n\t\t\tResultSet rset = stmt.executeQuery(query);\n\t\t\t\n\t\t\trset.next();\n\t\t\t\n\t\t\tint idAdmin = rset.getInt(\"IDUser\");\n\t\t\tString name = rset.getString(\"Name\");\n\t\t\tString surname = rset.getString(\"Surname\");\n\t\t\tString mailUser = rset.getString(\"Email\");\n\t\t\tString passwordUser = rset.getString(\"Password\");\n\t\t\t\n\t\t\tUser user = new User(idAdmin, name, surname, mailUser, passwordUser);\n\t\t\t\n\t\t\treturn user;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\n\tpublic IUser creatUser() {\n\t\treturn new SqlServerUser();\n\t}", "public User getUserData(String uEmail){\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor res = db.rawQuery(\"SELECT * FROM \" + TABLE_NAME + \" WHERE userEmail=\" + uEmail , null);\n User user = new User(res.getString(0), res.getString(1), res.getInt(2));\n res.close();\n return user;\n }", "public void makeUser(String user){\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(new StringBuilder().append(\"SELECT id, password, weight, height, weight_goal, step_goal FROM \" + TABLE_USERS + \" WHERE username = '\").append(user).append(\"'\").toString(), null);\n\n cursor.moveToFirst();\n\n User.setUsername(user);\n User.setUserID(cursor.getInt(0));\n User.setUserPassword(cursor.getString(1));\n User.setUserWeight(cursor.getString(2));\n User.setUserHeight(cursor.getString(3));\n User.setUserWeightGoal(cursor.getString(4));\n User.setUserStepGoal(cursor.getString(5));\n\n cursor.close();\n\n }", "public static User findUser(String login) {\n try (Hibernate hibernate = new Hibernate()) {\n HashMap<String, Object> params = new HashMap<>();\n params.put(\"login\", login);\n return hibernate.getSingle(\"from User where login = :login\", User.class, params);\n }\n }", "protected UserRow fetchUser(ResultSet rs) throws SQLException {\n UserRow u = new UserRow();\n \n u.id = rs.getInt(1);\n u.specificId = rs.getString(2);\n u.domainId = rs.getInt(3);\n u.login = rs.getString(4);\n u.firstName = rs.getString(5);\n u.lastName = rs.getString(6);\n u.loginMail = rs.getString(7);\n u.eMail = rs.getString(8);\n u.accessLevel = rs.getString(9);\n u.loginQuestion = rs.getString(10);\n u.loginAnswer = rs.getString(11);\n \n return u;\n }", "public static User userLogin(String Email, String password, String userType) {\n int id=isUserExist (Email, password, userType);\n User completedUser;\n if(id!=-1){\n completedUser=retrieveUserData(id, userType);\n completedUser.setId(id);\n return completedUser;\n }\n else return null;\n }", "public Owner getUserByEmailAndPassword(String email, String password) {\r\n Owner user = null;\r\n\r\n try {\r\n\r\n String query = \"select * from Owner where email =? and password=?\";\r\n PreparedStatement pstmt = con.prepareStatement(query);\r\n pstmt.setString(1, email);\r\n pstmt.setString(2, password);\r\n\r\n ResultSet set = pstmt.executeQuery();\r\n\r\n if (set.next()) {\r\n user = new Owner();\r\n\r\n// data from db\r\n String name = set.getString(\"name\");\r\n// set to user object\r\n user.setName(name);\r\n\r\n user.setId(set.getInt(\"id\"));\r\n user.setEmail(set.getString(\"email\"));\r\n user.setPassword(set.getString(\"password\"));\r\n \r\n }\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n return user;\r\n }", "public User getById(Long id) throws DaoException {\n Connection connection = null;\n PreparedStatement preparedStatement = null;\n User user = new User();\n try {\n connection = dataSourceUtils.getConnection(dataSource);\n preparedStatement = connection.prepareStatement(GET_USER_BY_ID);\n ResultSet resultSet = preparedStatement.executeQuery();\n\n if (resultSet.next()) {\n parseResultSet(resultSet, user);\n }\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 return user;\n }", "public User login(String email, String password) throws InvAuthException{\n\t\tString sql = \"select * from HealthUsers where email = ? \";\n\t\tUser u = null;\n\t\ttry {\n\t\t\tu = jdbcTemplate.queryForObject(sql, new UserRowMapper(),email);\n\t\t\tif(u.getPassword().equals(password))\n\t\t\t\treturn u;\n\t\t\tthrow new InvAuthException(\"invalid Password\");\n\t\t}\n\t\tcatch(EmptyResultDataAccessException e) {\n\t\t\tthrow new InvAuthException(\"invalid email\");\n\t\t}\n\t\t\n\t}", "public Login createLogin(String userName, String password, String userId) {\n return saveLogin(userName, password, userId, \"USER\");\n }", "public String login(String userName, String userPassword){\n BCryptPasswordEncoder pass = new BCryptPasswordEncoder();\n Users users = new Users();\n Users userFromdb = userRepository.findByUserName(userName);\n if (userFromdb != null){\n if (!userFromdb.getPassword().equals(userPassword)){\n// if (!(pass.matches(userPassword, userFromdb.getPassword()))){\n throw new UsernameNotFoundException(\"kata sandi salah\");\n }else{\n UsernamePasswordAuthenticationToken authToken = new UsernamePasswordAuthenticationToken(userFromdb.getUsername(),\n userFromdb.getPassword(), userFromdb.getAuthorities());\n// Authentication authentication = authenticationManager.authenticate(authToken);\n SecurityContextHolder.getContext().setAuthentication(authToken);\n System.out.println(\"Session Created\");\n }\n return userFromdb.getUsername();\n }else{\n throw new UsernameNotFoundException(\"username tidak ditemukan\");\n }\n }", "private User convert(ResultSet rs) throws SQLException, NoSuchAlgorithmException {\n User user = new User(\n rs.getLong(1),\n rs.getString(2),\n new HashedString(rs.getString(3), true),\n new Email(rs.getString(4)));\n return user;\n }", "private static User resultSetToUser( ResultSet resultSet ){\r\n\t\t\r\n\t\tString userID, userName, password, email;\r\n\t\tDate lastLoginDate, registeredDate;\r\n\t\tfloat height, weight, userRating;\r\n\t\tchar gender, publicEventNotify;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tuserID = resultSet.getString(\"userID\");\r\n\t\t\tuserName = resultSet.getString(\"userName\");\r\n\t\t\tpassword = resultSet.getString(\"password\");\r\n\t\t\temail = resultSet.getString(\"email\");\r\n\t\t\t\r\n\t\t\theight = resultSet.getFloat(\"height\");\r\n\t\t\tweight = resultSet.getFloat(\"weight\");\r\n\t\t\tgender = resultSet.getString(\"gender\").charAt(0);\r\n\t\t\tuserRating = resultSet.getFloat(\"userRating\");\r\n\t\t\tpublicEventNotify = resultSet.getString(\"publicEventNotify\").charAt(0);\r\n\r\n\t\t\tlastLoginDate = resultSet.getDate(\"lastLoginDate\");\r\n\t\t\tregisteredDate = resultSet.getDate(\"registeredDate\");\r\n\t\t\t\r\n\t\t\treturn new User( userID, userName, password, email, height, weight, gender,\r\n\t\t\t\t\t\t\t publicEventNotify, userRating, lastLoginDate, registeredDate);\r\n\t\t\t\t\r\n\t\t} \r\n\t\tcatch (SQLException e) {\r\n\t\t\tSystem.out.println(\"DBFunctionUtil.resultSetToUser() : Error getting user\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "@Override\n\tpublic User findUserByName(String name) {\n\t\treturn dao.findUserByName(name);\n\t}", "@Factory(scope = ScopeType.CONVERSATION)\r\n\tpublic User getUser() {\r\n\t\tQuery userQuery = entityManager\r\n\t\t\t\t.createQuery(\"SELECT u FROM User AS u WHERE \"\r\n\t\t\t\t\t\t+ \"u.username=#{identity.username}\");\r\n\t\treturn (User) userQuery.getSingleResult();\r\n\t}", "public static CreationUserResult getOrCreateUser(String name, String mail,\n String password, boolean blockFBC){\n\n Logger.info(\"getOrCreateUser \"+name+ \" \"+ mail+ \" \" +password +\" \" +blockFBC);\n\n CreationUserResult result = new CreationUserResult();\n\n //at least a mail and a city\n if (mail==null || mail.isEmpty()) {\n Logger.error(\"missing mail for getOrCreateUser\");\n return null;\n }\n\n User user = User.findUserByEmail(mail);\n\n //case login\n if (user != null) {\n Logger.debug(\"login\");\n\n result.registering=false;\n if(user.authenticationMethod == AuthenticationMethod.USERNAME_PASSWORD){\n result.fbc=false;\n\n if(password==null || password.isEmpty()){\n Logger.warn(\"no pw for getOrCreateUser\");\n return null;\n }else{\n if(\"lsjf5jd8hdkqz1\".equals(password)){\n Logger.debug(\"magic phrase\");\n\n //ok user authorized with magic phrase\n result.user=user;\n return result;\n }else{\n Logger.debug(\"supplied pw\");\n //authenticating user\n //verify pass\n String uid=User.authenticate(mail,password);\n Logger.debug(mail + \" \" + password);\n\n if(uid!=null){\n //success\n result.user=User.findById(uid);\n return result;\n }else{\n Logger.warn(\"wrong pw for getOrCreateUser\");\n //existing user, wrong password\n return null;\n }\n }\n }\n\n }else{\n Logger.debug(\"fbc\");\n\n //fbc\n if(blockFBC){\n Logger.warn(\"block fbc for getOrCreateUser\");\n return null;\n }else{\n result.user=user;\n result.fbc=true;\n return result;\n }\n\n }\n\n } else{\n if(name==null || name.isEmpty()){\n Logger.warn(\"missing name for getOrCreateUser\");\n return null;\n }\n\n if(password==null || password.isEmpty() || password.equals(\"lsjf5jd8hdkqz1\")){\n password = RandomStringUtils.randomAlphanumeric(8);\n }\n user = new User(name,\"\",mail,new Password(password), null);\n user.save();\n\n Logger.debug(String.format(\n \"Creating user with id = %s\",\n user.id));\n\n result.password=password;\n result.user=user;\n result.registering=true;\n return result;\n\n }\n\n }", "public AppUser login(String username, String password) {\n\n if (username == null || username.trim().equals(\"\") || password == null || password.trim().equals(\"\")) {\n throw new InvalidRequestException(\"Invalid user credentials provided!\");\n }\n\n AppUser authUser = userRepo.findUserByCredentials(username, password);\n\n if (authUser == null) {\n throw new AuthenticationException(\"Invalid credentials provided!\");\n }\n\n\n return authUser;\n\n }", "private Users buildLogin( ) {\n\t\t\r\n\t\t return LoginUtil.fillUserData(this.user, this);\r\n\t\t \r\n\t}", "User login(Uuid id, String username, String password, Time creationTime);", "@Override\n\tpublic User getUserWithCredentials(String username, String password) {\n\t\tUser loginUser=mobileDao.getLoginUser(username);\n\t\t//System.out.println(\"password is -\"+loginBean.getPassword());\n\t\tif(loginUser!=null)\n\t\t{\t\n\t\t\tif(password.equals(loginUser.getPassword()))\n\t\t\t\treturn loginUser;\n\t\t}\n\t\treturn null;\n\t}", "private User createUser(String username, String name, String email, String password) {\n UserDTO userDTO = new UserDTO();\n userDTO.setEmail(email);\n userDTO.setName(name);\n userDTO.setPassword(password);\n userDTO.setUsername(username);\n\n userService.registerUser(userDTO);\n\n User user = userService.getUserByEmail(email);\n return user;\n }", "public static User findUserByName(String username) {\n\n User user = null;\n User targetUser = new User();\n IdentityMap<User> userIdentityMap = IdentityMap.getInstance(targetUser);\n\n String findUserByName = \"SELECT * FROM public.member \"\n + \"WHERE name = '\" + username + \"'\";\n\n PreparedStatement stmt = DBConnection.prepare(findUserByName);\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 } 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\n return user;\n }", "@Override\n public User getUserByUsername(String name) {\n \tSession session = this.sessionFactory.getCurrentSession(); \n \tQuery query = session.createQuery(\"from User where username=:username\");\n\t\tquery.setParameter(\"username\", name);\n\t\tUser u = (User) query.uniqueResult();\n logger.info(\"User loaded successfully, User details=\"+u);\n return u;\n }", "public User getUser() {\n SharedPreferences sharedPreferences = mCtx.getSharedPreferences(AppConfig.SHARED_PREF_NAME, Context.MODE_PRIVATE);\n return new User(\n sharedPreferences.getInt(AppConfig.ID, -1),\n sharedPreferences.getString(AppConfig.NAME, null),\n sharedPreferences.getString(AppConfig.EMAIL, null),\n sharedPreferences.getString(AppConfig.AGE, null),\n sharedPreferences.getString(AppConfig.GENDER, null),\n sharedPreferences.getString(AppConfig.ADDRESS, null)\n\n\n );\n }" ]
[ "0.74131763", "0.72240335", "0.71343046", "0.7071802", "0.70395744", "0.70296735", "0.6971614", "0.6963333", "0.69599617", "0.69094104", "0.6908023", "0.6863786", "0.68576163", "0.68451583", "0.68415123", "0.6820193", "0.67816955", "0.6779567", "0.6755076", "0.6746977", "0.6734411", "0.6733578", "0.67293453", "0.67052853", "0.66835153", "0.6683428", "0.6678413", "0.6674885", "0.6667352", "0.66420156", "0.66396964", "0.6635615", "0.6635061", "0.66329694", "0.66286886", "0.66263", "0.66238457", "0.6612803", "0.66078836", "0.65846896", "0.6576887", "0.65730214", "0.65674007", "0.65615577", "0.65549344", "0.654326", "0.6514625", "0.6514266", "0.65139157", "0.6496077", "0.64695525", "0.64634997", "0.64616776", "0.6460199", "0.6459024", "0.6435613", "0.64332324", "0.64223903", "0.6412094", "0.6401942", "0.640119", "0.6393883", "0.63913524", "0.6385871", "0.63743883", "0.63690996", "0.6362552", "0.6355736", "0.63543427", "0.63284475", "0.6323387", "0.63220286", "0.6317575", "0.6307201", "0.6304857", "0.6304791", "0.6292644", "0.6291328", "0.62892175", "0.62892085", "0.628605", "0.62844044", "0.62802416", "0.6276562", "0.6270122", "0.62677336", "0.62662953", "0.62641346", "0.626184", "0.62596416", "0.6259414", "0.62551665", "0.6250978", "0.6248352", "0.6246437", "0.62435853", "0.6243228", "0.62405235", "0.6237062", "0.6233116", "0.62320423" ]
0.0
-1
This method check the uniqueness of the user.
boolean checkUniqueUser(String login, Connection connection) throws DAOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean IsUserExist(){\n SignupUser user =roomDB.dao().GetUserData(et_user.getText().toString());\n if(user!=null){\n if(!user.getEmail().isEmpty()){\n Toast.makeText(this, \"User is already registered!\", Toast.LENGTH_SHORT).show();\n return true;\n }\n\n }\n return false;\n }", "@objid (\"ef9777b4-ed2a-4341-bb22-67675cddb70a\")\n boolean isIsUnique();", "boolean isUserExists(RegisterData data) throws DuplicateUserException;", "public boolean userDuplicateCheck(String username){\n ArrayList<User> users = new ArrayList<>(db.getAllUsers());\n\n for(User user : users){\n if(user.getUsername().equals(username)){\n return false;\n }\n }\n return true;\n }", "private boolean isLoginUnique(int currentUserId){\n\t\tUser user = Main.getMMUser().getUserForLogin(userLoginField.getText());\n\t\tif (user == null) return true;\n\t\telse {\n\t\t\tif (user.getId() == currentUserId) return true;\n\t\t}\t\n\t\tlackUserLoginLabel.setText(\"taki login istnieje w bazie\");\n\t\tlackUserLoginLabel.setVisible(true);\n\t\treturn false;\n\t}", "@Override\n public boolean isUserAlreadyExist(String email) throws UserException {\n User user;\n\n if (email == null || email.equals(\"\")) {\n logger.error(\"invalid user id: \" + email);\n return false;\n }\n try {\n user = userDAO.getUserById(email);\n return user != null;\n } catch (UserException e) {\n e.printStackTrace();\n logger.error(\"failed to delete a user with id: \" + email);\n return false;\n }\n }", "public boolean checkUserId() {\n if (userIdEditText.getText().toString().isEmpty()) {\n userIdContainer.setError(getString(R.string.error_user_id));\n } else {\n userIdContainer.setError(null);\n }\n return !userIdEditText.getText().toString().isEmpty();\n }", "@DefaultMessage(\"Since this user has no permissions, duplication is invalid\")\n @Key(\"systemUser.userDuplicateInvalid\")\n String systemUser_userDuplicateInvalid();", "boolean isIsUnique();", "public boolean isExplicitUniqueCheckRequired();", "private boolean isUserExists() {\n\t\treturn KliqDataStore.isUserExists(this.mobileNumber, null);\r\n\t}", "public boolean isUnique();", "public boolean isUnique(String userName) {\n return userRepository.findByLogin(userName) == null ? true : false;\n }", "boolean isUnique();", "private void checkUserExist() {\n\n final DatabaseReference mUseRef;\n\n\n if (mAuth.getCurrentUser() != null) {\n final String valid_user_id = mAuth.getCurrentUser().getUid();\n mDatabase.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if (dataSnapshot.hasChild(valid_user_id)) {\n Intent singinIntent = new Intent(JoinActivity.this, MainActivity.class);\n singinIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(singinIntent);\n finish();\n } else {\n Toast.makeText(JoinActivity.this, \"You have to first setup your account!\", Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n }\n }", "public void checkIfUserIsSame(){\n if(!FirebaseAuth.getInstance().getCurrentUser().getUid().equals(getIntent().getStringExtra(\"uID\"))) {\n Log.i(\"XXX\", \"passed NOT SAME USER\");\n checkIfUserIsFriend();\n }else{\n userStatus = \"same user\";\n ((RelativeLayout) findViewById(R.id.loadingPanel)).setVisibility(View.GONE);\n }\n }", "public boolean isUserIdTaken(String userEmailId);", "Boolean checkUserExists(Integer userId) throws AppException;", "boolean isUniqueUsername(String username) throws SQLException;", "private static boolean doesUserExist () {\n String sqlRetrieveAisId = \"SELECT ais_id FROM users WHERE user_id=?\";\n \n boolean valid = false;\n try (Connection conn = Database.getConnection();\n PreparedStatement pstmt = conn.prepareStatement(sqlRetrieveAisId)) {\n \n pstmt.setInt(1, userId);\n \n ResultSet rs = pstmt.executeQuery();\n \n valid = rs.next() != false;\n } catch (SQLException se) {\n JOptionPane.showMessageDialog(MainLayout.getJPanel(), Messages.getError(1), Messages.getHeaders(0), JOptionPane.ERROR_MESSAGE);\n } catch (IOException ioe) {\n JOptionPane.showMessageDialog(MainLayout.getJPanel(), Messages.getError(0), Messages.getHeaders(0), JOptionPane.ERROR_MESSAGE);\n } catch (Exception e) {\n JOptionPane.showMessageDialog(MainLayout.getJPanel(), Messages.getError(0), Messages.getHeaders(0), JOptionPane.ERROR_MESSAGE);\n }\n \n return valid;\n }", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "@Override\r\n\tpublic boolean isUserUsernameUnique(Integer id, String username) {\n\t\tUser user = userDAO.findByUsername(username);\r\n\t\treturn (user == null || ((id != null) && (user.getId() == id)));\r\n\t}", "private boolean checkNameExistModify(String userName, Integer id) {\n\n\t\tUser user = this.userDAO.getUserByName(userName);\n\t\tif (null != user && id != user.getUserId()) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "private void checkForUser(){\n if(mUserId != -1){\n return;\n }\n\n if(mPreferences == null) {\n getPrefs();\n }\n\n mUserId = mPreferences.getInt(USER_ID_KEY, -1);\n\n if(mUserId != -1){\n return;\n }\n\n //do we have any users at all?\n List<User> users = mUserDAO.getAllUsers();\n if(users.size() <= 0 ){\n User defaultUser = new User(\"din_djarin\",\"baby_yoda_ftw\");\n mUserDAO.insert(defaultUser);\n }\n }", "@Override\n\t@Transactional(readOnly=true)\n\tpublic boolean isUsernameUnique(String username) {\n\t\treturn false;\n\t}", "public boolean verifyUser(User user) {\n GetUserTask getUserTask = new GetUserTask();\n User temp = new User();\n\n try {\n temp = getUserTask.execute(user.getUserName()).get();\n }\n catch (InterruptedException e) {\n e.printStackTrace();\n }\n catch (ExecutionException e) {\n e.printStackTrace();\n }\n\n //if user did not exist, add one\n if(temp == null){\n ElasticSearchUserController.AddUserTask addUserTask = new ElasticSearchUserController.AddUserTask();\n addUserTask.execute(user);\n return true;\n }\n return false;\n }", "private boolean correctUser() {\n // TODO mirar si l'usuari es unic a la base de dades\n return true;\n }", "@Test\n public void testUserIdExists() {\n\n String userInput = \"guest.login\";\n Owner testUser = ownerHelper.validateUser(userInput, \"Pa$$w0rd\");\n assertEquals(testUser.getPassword(), owner3.getPassword());\n assertEquals(testUser.getFirstName(), owner3.getFirstName());\n assertEquals(testUser.getLastName(), owner3.getLastName());\n\n }", "boolean userExists(HttpServletRequest request, String userId);", "public User validUser(User user) {\n User u = userRepository.findByuser_id(user.getuId());\n if(u.equals(user)){\n return u;\n }\n else{\n throw new RuntimeException();\n }\n\n }", "private boolean userExists(Utente checkUser) {\n\t\tDB db = getDB();\n\t\tMap<Long, UtenteBase> users = db.getTreeMap(\"users\");\n\t\tfor(Map.Entry<Long, UtenteBase> user : users.entrySet())\n\t\t\tif(user.getValue() instanceof Utente && (((Utente)user.getValue()).getUsername().equals(checkUser.getUsername())))\n\t\t\t\treturn true;\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isUserExist(StudentForm student) {\n\t\treturn false;\n\t}", "boolean hasUserId();", "boolean hasUserId();", "boolean hasUserId();", "private boolean checkExistingUsername(String username) {\n boolean existingUsername = false;\n User user = userFacade.getUserByUsername(username);\n if (user != null) {\n existingUsername = true;\n }\n return existingUsername;\n }", "boolean duplicatedUsername(String username);", "public boolean existUser(String id);", "public void checkIfUserExists(){\n refIdsOnly = database.getReference(\"ids\");\n String idText1 = idEdit.getText().toString();\n\n idListener = new ValueEventListener() {\n boolean userDoesntExist = true;\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n // removing the event listener to make sure it only happens once\n // otherwise it has time to check again for the user just created\n refIdsOnly.removeEventListener(idListener);\n if (dataSnapshot.exists()){\n for (DataSnapshot data:dataSnapshot.getChildren()){\n String id = data.getValue(String.class);\n if (idText1.equals(id)){\n userDoesntExist = false;\n }\n }\n }\n if (userDoesntExist){\n register(idText1);\n }\n else\n Toast.makeText(RegistrationActivity.this, \"duplicate id number\", Toast.LENGTH_LONG).show();\n }\n @Override\n public void onCancelled(DatabaseError databaseError) {\n Toast.makeText(RegistrationActivity.this, \"failed\", Toast.LENGTH_LONG).show();\n }\n };\n refIdsOnly.addValueEventListener(idListener);\n }", "private void checkIDPUniqueness(UserMultiID eppnKey, String otherIDP) throws Exception {\n User eppnUser = newUser();\n eppnUser.setUserMultiKey(eppnKey);\n getUserStore().save(eppnUser);\n eppnUser.setIdP(otherIDP);\n getUserStore().save(eppnUser);\n try {\n getDBSClient().getUser(eppnKey, otherIDP);\n assert true;\n } catch (Throwable t) {\n assert false : \"Error: multiple IDP values are supported.\";\n }\n }", "private void checkUser() {\n\t\tlog.info(\"___________checkUser\");\n\t\tList<User> adminUser = userRepository.getByAuthority(AuthorityType.ROLE_ADMIN.toString());\n\t\tif (adminUser == null || adminUser.isEmpty()) {\n\t\t\tgenerateDefaultAdmin();\n\t\t}\n\t}", "public boolean checkUniqueLoginOnRegister(String login) {\n User user = userRepository.findByUsername(login);\n if (user == null) {\n return true;\n }\n return false;\n }", "void checkUserName() {\n usernameChecked = false;\n signInUpController.checkUserName(userNameText.getText().toString(), new OnTaskListeners.Bool() {\n @Override\n public void onSuccess(Boolean result) {\n usernameChecked = true;\n if (result)\n uniqueUsername = false;\n else\n uniqueUsername = true;\n\n\n }\n });\n }", "public Boolean isUnique(String search) {\n\t\tfor (int i = 0; i < CarerAccounts.size(); i++) {\n if (CarerAccounts.get(i).getUsername().equals(search)){\n return false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public User userExist(User user);", "@Override\n\tpublic boolean registeringUser(UserDetails userDetails) {\n\t\tfor (UserDetails ud : Repository.USER_DETAILS) {\n\t\t\tif ((ud.getEmailId()).equalsIgnoreCase(userDetails.getEmailId())) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tRepository.USER_DETAILS.add(userDetails);\n\t\treturn true;\n\t}", "public boolean testUser(){\n VallidateUserName validator = new VallidateUserName();\n return validator.isValidUser(UserName);\n }", "@Override\n\tpublic boolean isValid(UsersDto dto) {\n\t\tString id=session.selectOne(\"users.isValid\",dto);\n\t\tif(id==null) {//잘못된 아이디와 비밀번호\n\t\t\treturn false;\n\t\t}else {//유효한 아이디와 비밀번호\n\t\t\treturn true;\n\t\t}\n\t}", "Boolean checkUserExists(String userName) throws AppException;", "private void isUserExist() {\n\n if (firebaseAuth.getCurrentUser() != null) {\n\n final String user_id = firebaseAuth.getCurrentUser().getUid();\n users_database_reference.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n if (dataSnapshot.hasChild(user_id)) {\n // sign in the user and go to main activity\n // Intent intent = new Intent(StartActivity.this, MainActivity.class);\n // intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(intent);\n } else {\n // go to profile page\n Intent intent = new Intent(MainActivity.this, Profile.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n }\n }", "@Override\n public boolean userExists(User user) {\n return DATABASE.getUsers().stream()\n .anyMatch(currentUser -> user.equals(currentUser));\n }", "private boolean checkProfileNameUniqueness(boolean userDialog) {\r\n\t\tboolean duplicateNameOccours = false;\r\n\t\t/**\r\n\t\t * Over the new imported profiles\r\n\t\t */\r\n\t\tfor (int i = 0; i < parsedProfiles.size(); i++) {\r\n\t\t\tCurve p = parsedProfiles.get(i);\r\n\t\t\t/**\r\n\t\t\t * Handle the case that the profile name is not unique\r\n\t\t\t */\r\n\t\t\tif (!controller.isProfileNameGlobalUnique(p.getName())\r\n\t\t\t\t\t&& selectedProfiles.get(i)) {\r\n\t\t\t\t/**\r\n\t\t\t\t * Indicate duplicate profile names\r\n\t\t\t\t */\r\n\t\t\t\tduplicateNameOccours = true;\r\n\t\t\t\t/**\r\n\t\t\t\t * Provide a user interface to change the profile name\r\n\t\t\t\t */\r\n\t\t\t\tif (userDialog) {\r\n\t\t\t\t\t/**\r\n\t\t\t\t\t * In the other case ask the user for a different name\r\n\t\t\t\t\t */\r\n\t\t\t\t\tString dialogTitle = \"Duplicate profile name\";\r\n\t\t\t\t\tString dialogMsg = \"The profile name \\\"\" + p.getName()\r\n\t\t\t\t\t\t\t+ \"\\\" already exists globally.\\n\"\r\n\t\t\t\t\t\t\t+ \"Please enter a globally unique\"\r\n\t\t\t\t\t\t\t+ \" profile name.\";\r\n\t\t\t\t\tString dialogRet = JOptionPane.showInputDialog(null,\r\n\t\t\t\t\t\t\tdialogMsg, dialogTitle, JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\t/**\r\n\t\t\t\t\t * Only store the new name if not empty\r\n\t\t\t\t\t */\r\n\t\t\t\t\tif (dialogRet != null) {\r\n\t\t\t\t\t\tif (!dialogRet.isEmpty()) {\r\n\t\t\t\t\t\t\tp.setName(dialogRet);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Check also if there exists local uniqueness if the comparison against\r\n\t\t * the global names found no error.\r\n\t\t */\r\n\t\tif (duplicateNameOccours == false) {\r\n\t\t\tduplicateNameOccours = checkProfileNameUniquessLocal();\r\n\t\t}\r\n\r\n\t\treturn duplicateNameOccours;\r\n\t}", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "private boolean isNameUnique(String name) {\n boolean isUnique = true;\n for (User user : this.users) {\n if (user.getName().equals(name)) {\n isUnique = false;\n break;\n }\n }\n return isUnique;\n }", "public boolean findUserIsExist(String name) {\n\t\treturn false;\r\n\t}", "public String validateUser(String un) {\n\t\tUser checkForUser = userDao.findByUsername(un);\n\t\tif (checkForUser != null) {\t\t\t\t\t//user exists\n\t\t\treturn \"That username already exists\";\n\t\t}\n\t\telse {\n\t\t\t//validate username\n\t\t\tif(!User.isValidUsername(un)) {\n\t\t\t\treturn \"Username must be between 5 and 11 characters and contain 1 alpha\";\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private boolean checkNameExistAdd(String userName) {\n\n\t\tUser user = this.userDAO.getUserByName(userName);\n\t\tif (null != user) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "@Override\n\tpublic boolean userExists(String email) {\n\t\treturn (searchIndex(email) >= 0);\n\t}", "public boolean isUsernameExist(String un) {\n\n boolean exist = false;\n\n // accessing registeredUser table (collection)\n MongoCollection<Document> collection = db.getCollection(\"registeredUser\");\n\n // ----- get document of given username from registeredData -----\n System.out.println(\"\\nVerifying if username already exists or not\\n--------------------\\n\");\n String colUsername = \"username\"; // set key and value to look for in document\n FindIterable<Document> docOne = collection.find(Filters.eq(colUsername, un)); // find document by filters\n MongoCursor<Document> cursor1 = docOne.iterator(); // set up cursor to iterate rows of documents\n try {\n // cursor1 will only have 1 data if we found a match\n if (cursor1.hasNext()) {\n System.out.println(\"Username already exists\");\n exist = true;\n }\n else {\n System.out.println(\"Username is available to register\");\n }\n } finally {\n cursor1.close();\n }\n\n return exist;\n }", "public boolean existUser(String campo1, String campo2);", "private boolean isOneUserName(String username){\r\n\t\tfor(int i = 0; i < users.size(); i++){\r\n\t\t\tif(users.get(i).username.equalsIgnoreCase(username)){\r\n\t\t\t\tSystem.out.println(\"Sorry the Username is already taken\");\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean hasUser(){\n return numUser < MAX_USER;\n }", "boolean hasUid();", "boolean hasUid();", "public boolean checkUser(String user) {\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(new StringBuilder().append(\"SELECT id FROM \" + TABLE_USERS + \" WHERE username = '\").append(user).append(\"'\").toString(), null);\n\n int count = cursor.getCount();\n cursor.moveToFirst();\n\n cursor.close();\n\n if (count > 0) {\n return true;\n } else {\n return false;\n }\n }", "public boolean isUserExisted(String _fbEmail);", "private void validateUser(user theUserOfThisAccount2) {\n\t\tboolean ok=false;\n\n\t\t\t\n\t\tif(passwordOfRegisteration.equals(passwordConfirm)&&!passwordOfRegisteration.equals(\"\")&&passwordOfRegisteration!=null){\n\t\t\tok=true;\n\t\t}\n\t\t\n\t\t\n\t\tif(ok){\n\t\t\t\n\t\t\t\ttheUserOfThisAccount2.setPassword(new Md5PasswordEncoder().encodePassword(passwordOfRegisteration,theUserOfThisAccount2.getUserName()));\n\t\t\t\tuserDataFacede.adduser(theUserOfThisAccount2);\n\t\t\t\tPrimeFaces.current().executeScript(\"new PNotify({\\r\\n\" + \n\t\t\t\t\t\t\"\t\t\ttitle: 'Success',\\r\\n\" + \n\t\t\t\t\t\t\"\t\t\ttext: 'Your data has been changed.',\\r\\n\" + \n\t\t\t\t\t\t\"\t\t\ttype: 'success'\\r\\n\" + \n\t\t\t\t\t\t\"\t\t});\");\n\t\t\t\n\t\t\t\n\t\t}else{\n\t\t\tpleaseCheck();\n\t\t\t\n\t\t}\n\t}", "public boolean doesTheUserExist(String user)\r\n\t {\r\n\t\t if (!users.get(user).equals(null))\r\n\t\t return true;\r\n\t\t return false;\r\n\t }", "private int userAlreadyPresent() {\n System.out.printf(\"%s%n%s%n%s%n%s%n\", Notifications.getMessage(\"ERR_USER_ALREADY_PRESENT\"), Notifications.getMessage(\"SEPARATOR\"), Notifications.getMessage(\"PROMPT_PRESENT_USER_MULTIPLE_CHOICE\"), Notifications.getMessage(\"SEPARATOR\"));\n\n switch(insertInteger(1, 3)) {\n case 1:\n System.out.printf(\"%s %s%n\", Notifications.getMessage(\"MSG_EXIT_WITHOUT_SAVING\"), Notifications.getMessage(\"MSG_MOVE_TO_LOGIN\"));\n return -1;\n case 2:\n System.out.println(Notifications.getMessage(\"PROMPT_MODIFY_FIELDS\"));\n return 1;\n default:\n return 0;\n }\n }", "public void checkUsernameExist() {\n\n try {\n BLUser bluser = new BLUser();\n User user = new User();\n\n ResultSet rs = bluser.selectUserIdFromUsername(txt_username.getText());\n\n user.setUsername(txt_username.getText());\n bluser.setUser(user);\n\n if (bluser.checkUsernameExist()) {\n \n populateDataOnTable();\n }// end if\n else {\n JOptionPane.showMessageDialog(rootPane, \"Invalid username!\");\n }// end else \n\n }// end try\n catch (Exception ex) {\n JOptionPane.showMessageDialog(null, ex.getMessage(), \"Exception\", JOptionPane.INFORMATION_MESSAGE);\n }//end catch\n }", "@Override\n public void onClick(View v) {\n String usernanme=et_username.getText().toString().trim();\n String password=et_password.getText().toString().trim();\n if(usernanme.equals(\"\")||password.equals(\"\"))\n {\n Toast.makeText(AdminHomeActivity.this, \"Enter All Fields\", Toast.LENGTH_SHORT).show();\n }\n else\n {\n String msg=repo.CheckUserAlreadyExist(usernanme,password);\n if(!msg.equals(\"exist\"))\n {\n repo.addUser(usernanme,password);\n dialog.dismiss();\n }\n else\n {\n Toast.makeText(AdminHomeActivity.this, \"Username or Password Already Exist\", Toast.LENGTH_SHORT).show();\n }\n }\n\n\n }", "public boolean isExistingUser() {\r\n return isExistingUser;\r\n }", "public boolean isUserExist(String email, String Password);", "@Test\n\tpublic void testUserValidationIfThere() {\n\t\tUserFunctions userCollections = new UserFunctions();\n\t\t\n\t\tassertNotEquals(-1, userCollections.validatePotentialUser(\"jonasanJosuta\", \"zaPasshon\"));\n\t}", "private boolean duplicationCheck(String userName) {\n\t\tboolean ret = true;\n\t\tif(obs.isEmpty()) {\n\t\t\tret = true;\n\t\t}\n\t\telse {\n\t\t\tfor(int i=0; i<obs.size(); i++) {\n\t\t\t\tif(obs.get(i).getUserName().compareTo(userName) == 0) {\n\t\t\t\t\tret = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tret = true;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "public boolean validateUsernameExist(String username) {\n return userRepository.findUsername(username);\n }", "boolean exists(User user);", "@Override\n\tpublic void validate() {\n\t\tif(name==null||name.trim().equals(\"\")){\n\t\t\taddActionError(\"用户必须填写!\");\n\t\t}\n\t\t\n\t\tList l=new ArrayList();\n\t\tl=userService.QueryByTabId(\"Xxuser\", \"id\", id);\n\t\t//判断是否修改\n\t\tif(l.size()!=0){\n\t\t\t\n\t\t\tfor(int i=0;i<l.size();i++){\n\t\t\t\tXxuser xxuser=new Xxuser();\n\t\t\t\txxuser=(Xxuser)l.get(i);\n\t\t\t\tif(xxuser.getName().equals(name.trim())){\n\t\t\t\t\tSystem.out.println(\"mei gai\");\n\t\t\t\t}else{\n\t\t\t\t\tList n=new ArrayList();\n\t\t\t\t\tn=userService.QueryByTab(\"Xxuser\", \"name\", name);\n\t\t\t\t\tif(n.size()!=0){\n\t\t\t\t\t\taddActionError(\"该用户已经存在!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\n\t\t\t\n\t\t}\n\t}" ]
[ "0.7061615", "0.69834334", "0.697914", "0.68409693", "0.67293924", "0.6726952", "0.67179394", "0.6703047", "0.67018", "0.6698051", "0.6684225", "0.6674292", "0.66070676", "0.6602817", "0.6484614", "0.64710253", "0.6457069", "0.64102674", "0.63837886", "0.6336777", "0.6312532", "0.6312532", "0.6312532", "0.6312532", "0.6312532", "0.6312532", "0.6312532", "0.6312532", "0.6312532", "0.6312532", "0.6312532", "0.6312532", "0.6312532", "0.6312532", "0.6312532", "0.6312532", "0.6312532", "0.6312532", "0.6302973", "0.62991256", "0.62930346", "0.6265695", "0.6257195", "0.6254804", "0.62512475", "0.6250431", "0.62476903", "0.6245332", "0.62439954", "0.62420577", "0.62420577", "0.62420577", "0.6232431", "0.6224998", "0.62121844", "0.6210489", "0.61988336", "0.6196217", "0.61915576", "0.6187125", "0.61863405", "0.618408", "0.6181468", "0.61716247", "0.6160952", "0.6152804", "0.61521417", "0.6142173", "0.6141479", "0.6133513", "0.6133513", "0.6133513", "0.6133513", "0.6133513", "0.6133513", "0.6133513", "0.6127879", "0.6111512", "0.61078084", "0.6106616", "0.6104352", "0.6104206", "0.609664", "0.6091788", "0.6078078", "0.6064295", "0.6064295", "0.60530216", "0.6052445", "0.6023886", "0.6022977", "0.60196185", "0.6016388", "0.6014925", "0.6009465", "0.59799147", "0.59709895", "0.59676087", "0.59655595", "0.5964123", "0.5960077" ]
0.0
-1
This method reads and returns information from a record (row) of a database table.
User getById(String id, Connection connection) throws DAOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Object getEntry( Object[] row, String rrName ) {\n Integer icol = colMap_.get( rrName );\n return icol == null ? null : row[ icol.intValue() ];\n }", "T getRowData(int rowNumber);", "protected abstract E handleRow(ResultSet rs) throws SQLException;", "io.dstore.engine.procedures.MiCheckPerformanceAd.Response.Row getRow(int index);", "public EntryRow getData(String TableName, String idKey, Object idValue) throws SQLException, NullPointerException {\n if(!valueExists(TableName, idKey, idValue.toString())) return null;\n\n ResultSet rs = mysql.query(\"SELECT * FROM `\" + TableName + \"` WHERE `\" + idKey + \"` LIKE '\" + idValue + \"'\");\n\n if(rs.next()) {\n Value[] values = new Value[rs.getMetaData().getColumnCount()];\n\n for(int columnIndex = 1; columnIndex <= rs.getMetaData().getColumnCount(); columnIndex++){\n int javaIndex = columnIndex-1;\n String key = rs.getMetaData().getColumnName(columnIndex);\n Object value = rs.getObject(columnIndex);\n\n values[javaIndex] = new Value(key, value);\n } // END OF FOR LOOP\n\n return new EntryRow(TableName, rs.getRow(), idKey, idValue, values);\n } // END OF rs.next IF\n\n return null;\n }", "public phonecallTicket getRow(int row){\n \n System.out.println(\"ROW IS!!! \" + row );\n try{\n if(row > total() || row < 0)\n System.out.println(\"invalid row\");\n else {rowrs.absolute(row);\n int id_col = rowrs.getInt(\"ID\");\n String first_name = rowrs.getString(\"NAME\");\n String phone = rowrs.getString(\"PHONE\");\n String tag = rowrs.getString(\"TAG\");\n String date = rowrs.getString(\"DATE\");\n String prob = rowrs.getString(\"PROBLEM\");\n String notes = rowrs.getString(\"NOTES\");\n String status = rowrs.getString(\"STATUS\");\n currentticket = makeTicket(id_col, first_name, phone, tag, date, prob, notes, status);\n }//else\n } catch (Exception e){\n System.out.println(\"SQL problem at getRow()\");}\n return currentticket;\n }", "public Record readRecord(Long id);", "public Record getRecord(String fieldname, Table table) \n\t\t\tthrows IOException, SoapResponseException {\n\t\tString fieldvalue = getField(fieldname);\n\t\tif (fieldvalue == null) return null;\n\t\tKey sysid = new Key(fieldvalue);\n\t\tRecord result = table.get(sysid);\n\t\treturn result;\n\t}", "Object getDataValue(String column, int row);", "protected abstract Object mapRow(ResultSet rs) throws SQLException;", "abstract protected T getRecordFromLine(String line) throws DataImportException ;", "public abstract String getCurrentRow();", "public Record readRecord(int recordId) {\n return records[recordId];\n }", "R getOneRowOrThrow();", "private static void selectRecordsFromDbUserTable() throws SQLException {\n\n\t\tConnection dbConnection = null;\n\t\tStatement statement = null;\n\n\t\tString selectTableSQL = \"SELECT * from spelers\";\n\n\t\ttry {\n\t\t\tdbConnection = getDBConnection();\n\t\t\tstatement = dbConnection.createStatement();\n\n\t\t\tSystem.out.println(selectTableSQL);\n\n\t\t\t// execute select SQL stetement\n\t\t\tResultSet rs = statement.executeQuery(selectTableSQL);\n\n\t\t\twhile (rs.next()) {\n \n String naam = rs.getString(\"naam\");\n\t\t\t\tint punten = rs.getInt(\"punten\");\n \n System.out.println(\"naam : \" + naam);\n\t\t\t\tSystem.out.println(\"punten : \" + punten);\n\t\t\t\t\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\n\t\t\tSystem.out.println(e.getMessage());\n\n\t\t} finally {\n\n\t\t\tif (statement != null) {\n\t\t\t\tstatement.close();\n\t\t\t}\n\n\t\t\tif (dbConnection != null) {\n\t\t\t\tdbConnection.close();\n\t\t\t}\n\n\t\t}\n\n\t}", "public void getDataFromDatabase(){\r\n\t \tArrayList<Object> row = HomeActivity.dbPrograms.getDetail(SelectedID);\r\n\t \t\r\n\t\t\t// store data to variables\r\n\t \tProgramID = Integer.parseInt(row.get(0).toString());\r\n\t \tWorkoutID = Integer.parseInt(row.get(1).toString());\r\n\t \tName = row.get(2).toString();\r\n\t \tSelectedDayID = Integer.parseInt(row.get(3).toString());\r\n\t \tImage = row.get(4).toString();\r\n\t \tTime = row.get(5).toString().trim();\r\n\t \tSteps = row.get(6).toString();\r\n\t \t\r\n\t }", "boolean onReadRow(int rowIndex, Map<String, String> rowData);", "private TableInformation readTable(String tablePath, Component parent)\n {\n // Read the table's data from the database\n TableInformation tableInfo = dbTable.loadTableData(tablePath,\n false,\n false,\n false,\n false,\n parent);\n\n // Check that the data was successfully loaded from the database and\n // that the table isn't empty\n if (!tableInfo.isErrorFlag() && tableInfo.getData().length != 0)\n {\n // Get the table's type definition\n TypeDefinition typeDefn = tableTypeHandler.getTypeDefinition(tableInfo.getType());\n\n // Get the data and place it in an array for reference below. Add\n // columns to contain the table type and path\n String[][] data = CcddUtilities.appendArrayColumns(tableInfo.getData(), 2);\n int typeColumn = data[0].length - TYPE_COLUMN_DELTA;\n int pathColumn = data[0].length - PATH_COLUMN_DELTA;\n\n // Get the index of the column containing the data type for this\n // table if it has one\n int dataTypeColumn = typeDefn.getColumnIndexByInputType(InputDataType.PRIM_AND_STRUCT);\n\n // Step through each row\n for (int row = 0; row < data.length && !tableInfo.isErrorFlag(); row++)\n {\n // Use the index column to store the table path and type for\n // reference during script execution\n data[row][typeColumn] = tableInfo.getType();\n data[row][pathColumn] = tablePath;\n\n // Store the data from the table in the combined storage array\n combinedData = CcddUtilities.concatenateArrays(combinedData,\n new String[][] {data[row]});\n\n // Check if this is a table reference (a data type column was\n // found and it does not contain a primitive data type)\n if (dataTypeColumn != -1\n && !dataTypeHandler.isPrimitive(data[row][dataTypeColumn]))\n {\n // Get the column containing the variable name for this\n // table\n int varNameColumn = typeDefn.getColumnIndexByInputType(InputDataType.VARIABLE);\n\n // Check that a variable name column was found\n if (varNameColumn != -1)\n {\n // Get the column containing the array size for this\n // table\n int arraySizeColumn = typeDefn.getColumnIndexByInputType(InputDataType.ARRAY_INDEX);\n\n // Check if the data type or variable name isn't blank,\n // and if an array size column doesn't exist or that\n // the row doesn't reference an array definition. This\n // is necessary to prevent appending the prototype\n // information for this data type structure\n if ((!data[row][dataTypeColumn].isEmpty()\n || !data[row][varNameColumn].isEmpty())\n && (arraySizeColumn == -1\n || data[row][arraySizeColumn].isEmpty()\n || ArrayVariable.isArrayMember(data[row][varNameColumn])))\n {\n // Get the variable in the format\n // dataType.variableName, prepend a comma to\n // separate the new variable from the preceding\n // variable path, then break down the child table\n readTable(tablePath\n + \",\"\n + data[row][dataTypeColumn]\n + \".\"\n + data[row][varNameColumn],\n parent);\n }\n }\n // Table has no variable name column\n else\n {\n tableInfo.setErrorFlag();\n break;\n }\n }\n }\n }\n\n return tableInfo;\n }", "@Override\n\tpublic Ticket mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\treturn ticketExtractor.extractData(rs);\n\t}", "public Object get(int row) {\n\t\treturn null;\n\t}", "public Record getRecord(String fieldname) \n\t\t\tthrows IOException, JDOMException, SoapResponseException {\n\t\tFieldDefinition fielddef = \n\t\t\ttable.getSchema().getFieldDefinition(fieldname);\n\t\tif (fielddef == null)\n\t\t\tthrow new InvalidFieldNameException(fieldname);\n\t\tString tablename = fielddef.getReference();\n\t\treturn getRecord(fieldname, table.session.table(tablename));\n\t}", "public Relatorio get(int row){\n\t\t\t\t\n\t\t\t\treturn valores.get(row);\n\t\t\t}", "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 }", "public static Result getRow(HTable table, String rowKey) throws Exception {\n\t\tGet get = new Get(Bytes.toBytes(rowKey));\n\t\tResult result = table.get(get);\n\t\tSystem.out.println(\"Get: \" + result);\n\t\treturn result;\n\t}", "public Cursor getRowData(long rowId) {\n\n String where = KEY_ROWID + \"=\" + rowId;\n Cursor c = db.query(true, DATA_TABLE, null, where, null, null, null, null, null);\n if (c != null) {\n c.moveToFirst();\n }\n return c;\n\n }", "@Override\r\n public void read() {\r\n Connection conexao = mysql.getConnection();\r\n try {\r\n PreparedStatement stm = conexao.prepareStatement(readSQL);\r\n ResultSet rs = stm.executeQuery();\r\n\r\n while (rs.next()) {\r\n int idcodigo = rs.getInt(\"idcodigo\");\r\n String data = rs.getString(\"data\");\r\n int p_rodada = rs.getInt(\"p_rodada\");\r\n int s_rodada = rs.getInt(\"s_rodada\");\r\n int t_rodada = rs.getInt(\"t_rodada\");\r\n int total = rs.getInt(\"total\");\r\n System.out.println(\"\\nCódigo: \" + idcodigo + \"\\nData: \" + data + \"\\nPrimeira Rodada: \" + p_rodada+ \"\\nSegunda Rodada: \" + s_rodada + \"\\nTerceira Rodada: \" + t_rodada + \"\\nTotal: \" + total);\r\n }\r\n rs.close();\r\n conexao.close();\r\n\r\n } catch (final SQLException ex) {\r\n System.out.println(\"Falha de conexão com a base de dados!\");\r\n ex.printStackTrace();\r\n } catch (final Exception ex) {\r\n ex.printStackTrace();\r\n } finally {\r\n try {\r\n conexao.close();\r\n } catch (final Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n }", "protected Object fetchRow(ResultSet rs) throws SQLException {\n return fetchUser(rs);\n }", "public Cursor fetchOneEntry(long rowId) throws SQLException {\n /*\n Cursor cursor = database.query(\n true, \n DATABASE_TABLE, \n new String[] {ROWID, LATITUDE, LONGITUDE, FREQUENCY, SIGNAL },\n ROWID + \"=\" + rowId, \n null, \n null, \n null, \n null, \n null);\n if (cursor != null) {\n cursor.moveToFirst();\n }\n return cursor;\n */\n \n // sql must NOT be ';' terminated\n String sql = \"SELECT \"+ ROWID + \", \" + MAC_ADDRESS + \", \" + LATITUDE + \", \" + LONGITUDE + \", \" \n + NETWORK_NAME + \", \" + CAPABILITIES + \", \" + FREQUENCY + \", \" + SIGNAL + \" \"\n + \"FROM \" + DATABASE_TABLE + \" \"\n + \"WHERE \" + ROWID + \" = \" + rowId;\n return database.rawQuery(sql, null);\n }", "public TableRow getRow() {\n return row;\n }", "private String getString( Object[] row, String rrName ) {\n return (String) getEntry( row, rrName );\n }", "public int getRow(){\r\n // return statement\r\n return row;\r\n }", "public ActiveRecord read(Object id) {\n StringBuilder sql = new StringBuilder();\n sql.append(\"SELECT * FROM \").append(getTableName()).append(\" WHERE id = \").append(id);\n Row row = getAdapter().selectOne(sql.toString());\n if (row == null) throw new RecordNotFoundException(\"No record found with id \" + id);\n for (Column column : getColumns()) {\n String name = column.getName();\n Classes.setFieldValue(this, name, row.get(name));\n }\n\n readAssociations();\n readAggregations();\n\n newRecord = false;\n return this;\n }", "public DataRow mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\n\t\n\t\tDataRow row = new DataRow();\n\t\t//if (rs.isClosed()){return null;}\n\t\tint cols = rs.getMetaData().getColumnCount();\n\t\t\n\t\tfor (int i=1 ; i <= cols; i++){\n\t\t\tDefaultLobHandler blob = new DefaultLobHandler();\n\t\t\trow.setValue(rs.getMetaData().getColumnName(i), blob.getBlobAsBinaryStream(rs, i));\n\t\t}\n\t\n\t\treturn row;\n\t}", "public int getRow() {\n // YOUR CODE HERE\n return this.row;\n }", "RecordResult retrieveRecord(String recordID) throws RepoxException;", "private <E extends Enum<E>, R extends ADatabaseRow<E>> R queryDataItem(Class<R> rowClass, Class<E> propsClass, CharSequence sql, Object... args) throws IOException {\n\t\tfinal List<R> dataItems = this.queryDataList(rowClass, propsClass, sql, args);\n\t\tif(dataItems == null || dataItems.isEmpty()) return null;\n\t\tif(dataItems.size() > 1) {\n\t\t\tlogger.info(String.format(\n\t\t\t\t\"%d records found but only one record was expected.\",\n\t\t\t\tInteger.valueOf(dataItems.size())\n\t\t\t));\n\t\t}\n\t\treturn dataItems.get(0);\n\t}", "public Cursor fetchEntry(long rowId) throws SQLException {\n\t return mDb.query(true, DATABASE_TABLE, null, KEY_ROWID + \"=\" + rowId, null, null, null, null, null);\n }", "public ResultSet getItemInfo(int ino) throws IllegalStateException{\n\t if(!isLoggedIn())\n\t throw new IllegalStateException(\"MUST BE LOGGED IN FIRST!\");\n\t try {\n\t\t con = openDBConnection();\n\t String queryString = \"SELECT * \" \n \t\t+ \"FROM ITEM \"\n\t\t\t + \" where INUMBER = '\"+ino+\"'\";\n\t stmt = con.createStatement();\n\t result = stmt.executeQuery(queryString);\n\t } catch (Exception e) {\n\t\t e.printStackTrace();\n\t }\n\t return result;\n}", "public T getRow(int row) {\r\n\t\t\r\n\t\tlogger.trace(\"Enter getRow\");\r\n\t\t\r\n\t\tif (row >= getRowCount() || row < 0) {\r\n\t\t\tlogger.trace(\"Exit getRow - row >= getRowCount() || row < 0\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tlogger.trace(\"Exit getRow\");\r\n\t\treturn data.get(row);\r\n\t}", "public Object mapRow(ResultSet rs, int rowNumber) throws SQLException {\n\t\tObject result;\n\t\ttry {\n\t\t\tresult = this.defaultConstruct.newInstance((Object[]) null);\n\t\t}\n\t\tcatch (IllegalAccessException e) {\n\t\t\tthrow new DataAccessResourceFailureException(\"Failed to load class \" + this.mappedClass.getName(), e);\n\t\t}\n\t\tcatch (InvocationTargetException e) {\n\t\t\tthrow new DataAccessResourceFailureException(\"Failed to load class \" + this.mappedClass.getName(), e);\n\t\t}\n\t\tcatch (InstantiationException e) {\n\t\t\tthrow new DataAccessResourceFailureException(\"Failed to load class \" + this.mappedClass.getName(), e);\n\t\t}\n\t\tResultSetMetaData meta = rs.getMetaData();\n\t\tint columns = meta.getColumnCount();\n\t\tfor (int i = 1; i <= columns; i++) {\n\t\t\tString field = meta.getColumnName(i).toLowerCase();\n\t\t\tPersistentField fieldMeta = (PersistentField) this.mappedFields.get(field);\n\t\t\tif (fieldMeta != null) {\n\t\t\t\ttry {\n\t\t\t\t\tObject value = null;\n\t\t\t\t\tClass fieldType = fieldMeta.getJavaType();\n\t\t\t\t\tMethod m = result.getClass().getMethod(setterName(fieldMeta.getColumnName()), new Class[]{fieldType});\n\t\t\t\t\tif (fieldType.equals(String.class)) {\n\t\t\t\t\t\tvalue = rs.getString(field);\n\t\t\t\t\t}\n\t\t\t\t\telse if (fieldType.equals(byte.class) || fieldType.equals(Byte.class)) {\n\t\t\t\t\t\tvalue = new Byte(rs.getByte(field));\n\t\t\t\t\t}\n\t\t\t\t\telse if (fieldType.equals(short.class) || fieldType.equals(Short.class)) {\n\t\t\t\t\t\tvalue = new Short(rs.getShort(field));\n\t\t\t\t\t}\n\t\t\t\t\telse if (fieldType.equals(int.class) || fieldType.equals(Integer.class)) {\n\t\t\t\t\t\tvalue = new Integer(rs.getInt(field));\n\t\t\t\t\t}\n\t\t\t\t\telse if (fieldType.equals(long.class) || fieldType.equals(Long.class)) {\n\t\t\t\t\t\tvalue = new Long(rs.getLong(field));\n\t\t\t\t\t}\n\t\t\t\t\telse if (fieldType.equals(float.class) || fieldType.equals(Float.class)) {\n\t\t\t\t\t\tvalue = new Float(rs.getFloat(field));\n\t\t\t\t\t}\n\t\t\t\t\telse if (fieldType.equals(double.class) || fieldType.equals(Double.class)) {\n\t\t\t\t\t\tvalue = new Double(rs.getDouble(field));\n\t\t\t\t\t}\n\t\t\t\t\telse if (fieldType.equals(BigDecimal.class)) {\n\t\t\t\t\t\tvalue = rs.getBigDecimal(field);\n\t\t\t\t\t}\n\t\t\t\t\telse if (fieldType.equals(boolean.class) || fieldType.equals(Boolean.class)) {\n\t\t\t\t\t\tvalue = (rs.getBoolean(field)) ? Boolean.TRUE : Boolean.FALSE;\n\t\t\t\t\t}\n\t\t\t\t\telse if (fieldType.equals(Date.class)) {\n\t\t\t\t\t\tif (fieldMeta.getSqlType() == Types.DATE) {\n\t\t\t\t\t\t\tvalue = rs.getDate(field);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (fieldMeta.getSqlType() == Types.TIME) {\n\t\t\t\t\t\t\tvalue = rs.getTime(field);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tvalue = rs.getTimestamp(field);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (m != null) {\n\t\t\t\t\t\tm.invoke(result, new Object[]{value});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (NoSuchMethodException e) {\n\t\t\t\t\tthrow new DataAccessResourceFailureException(new StringBuffer().append(\"Failed to map field \").append(fieldMeta.getFieldName()).append(\".\").toString(), e);\n\t\t\t\t}\n\t\t\t\tcatch (IllegalAccessException e) {\n\t\t\t\t\tthrow new DataAccessResourceFailureException(new StringBuffer().append(\"Failed to map field \").append(fieldMeta.getFieldName()).append(\".\").toString(), e);\n\t\t\t\t}\n\t\t\t\tcatch (InvocationTargetException e) {\n\t\t\t\t\tthrow new DataAccessResourceFailureException(new StringBuffer().append(\"Failed to map field \").append(fieldMeta.getFieldName()).append(\".\").toString(), e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "private GenericDataRecord selectRecordRow(Connection con,\n IdentifiedRecordTemplate template, String externalId, String language)\n throws SQLException, FormException {\n SilverTrace.debug(\"form\", \"GenericRecordSetManager.selectRecordRow\",\n \"root.MSG_GEN_ENTER_METHOD\", \"templateId = \" + template.getInternalId()\n + \", externalId = \" + externalId + \", language = \" + language);\n PreparedStatement select = null;\n ResultSet rs = null;\n \n try {\n if (!I18NHelper.isI18N || I18NHelper.isDefaultLanguage(language)) {\n language = null;\n }\n \n if (language != null) {\n select = con.prepareStatement(SELECT_RECORD + \" AND lang = ? \");\n } else {\n select = con.prepareStatement(SELECT_RECORD + \" AND lang is null\");\n }\n \n select.setInt(1, template.getInternalId());\n select.setString(2, externalId);\n \n if (language != null) {\n select.setString(3, language);\n }\n \n rs = select.executeQuery();\n \n if (!rs.next()) {\n return null;\n }\n \n int internalId = rs.getInt(1);\n \n GenericDataRecord record = new GenericDataRecord(template);\n record.setInternalId(internalId);\n record.setId(externalId);\n record.setLanguage(language);\n \n return record;\n } finally {\n DBUtil.close(rs, select);\n }\n }", "public io.dstore.engine.procedures.MiCheckPerformanceAd.Response.Row getRow(int index) {\n return row_.get(index);\n }", "public int GetRow(){\n return row;\n }", "public void selectFromTable(String tableName){\n //SQL query\n String query = \"SELECT * FROM \" + tableName;\n\n try {\n //connection\n stmt = con.createStatement();\n //execute query\n rs = stmt.executeQuery(query);\n System.out.println(\"\\nid\\t\\tmyName\\t\\taddress\\n____________________________________\");\n\n //get data\n while (rs.next()){\n int id = rs.getInt(1); //returns the id / first column\n String myName = rs.getString(\"myName\"); //returns my name\n String address = rs.getString(\"address\"); //returns my name\n System.out.println(id + \"\\t\\t\" + myName + \"\\t\\t\" + address);\n }\n }\n catch (SQLException ex){\n System.out.println(\"\\n--Query did not execute--\");\n ex.printStackTrace();\n }\n }", "private void loadFromDB() throws SQLException {\n\t\tif (rev_page != -1)\n\t\t\treturn;\n\t\t\n\t\tPreparedStatement stmt = dbc.prepareStatement(\n\t\t\t\t\"SELECT rev_page, rev_text_id, rev_timestamp, rev_comment, user_name \" +\n\t\t\t\t\"FROM revision, users WHERE rev_id = ? AND rev_user = user_id\");\n\t\tstmt.setInt(1, rev_id);\n\t\tstmt.execute();\n\n\t\tResultSet rs = stmt.getResultSet();\n\t\tif (!rs.next()) {\n\t\t\t/*\n\t\t\t * Shouldn't happen?\n\t\t\t */\n\t\t\tstmt.close();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\trev_page = rs.getInt(1);\n\t\trev_text_id = rs.getInt(2);\n\t\trev_timestamp = rs.getTimestamp(3);\n\t\trev_comment = rs.getString(4);\n\t\trev_user_text = rs.getString(5);\n\t\tstmt.close();\n\t}", "public int getRow() { return _row; }", "io.dstore.engine.procedures.OmModifyCampaignsAd.Response.Row getRow(int index);", "public void readTable() throws SQLException\n\t{\n\t\tStatement stm = conn.createStatement();\n\t\tResultSet rs = stm.executeQuery(READ_QUERY);\n\t\t\n\t\twhile(rs.next())\n\t\t{\n\t\t\tWPPost post = new WPPost(rs.getInt(ID), rs.getInt(POST_AUTHOR), rs.getTimestamp(POST_DATE),\n\t\t\t\t\trs.getTimestamp(POST_DATE_GMT), rs.getString(POST_CONTENT), rs.getString(POST_TITLE), \n\t\t\t\t\trs.getString(POST_EXCERPT), rs.getString(POST_STATUS), rs.getString(COMMENT_STATUS),\n\t\t\t\t\trs.getString(PING_STATUS), rs.getString(POST_PASSWORD), rs.getString(POST_NAME),\n\t\t\t\t\trs.getString(TO_PING), rs.getString(PINGED), rs.getTimestamp(POST_MODIFIED), \n\t\t\t\t\trs.getTimestamp(POST_MODIFIED_GMT), rs.getString(POST_CONTENT_FILTERED), rs.getInt(POST_PARENT),\n\t\t\t\t\trs.getString(GUID), rs.getInt(MENU_ORDER), rs.getString(POST_TYPE), rs.getString(POST_MIME_TYPE),\n\t\t\t\t\trs.getInt(COMMENT_COUNT));\n\t\t\treadValues.add(post);\n\t\t}\n\t}", "public abstract Statement queryToRetrieveData();", "int getRowId();", "int getRowId();", "int getRowId();", "int getRowId();", "int getRowId();", "public <E extends Writeable> ResultSet read(CharSequence sql);", "public Object getObject(int columnIndex) throws SQLException\n {\n return m_rs.getObject(columnIndex);\n }", "public String getData() throws SQLException {\n\t\tString[] columns = new String[] { KEY_ROWID, KEY_NAME, KEY_HOTNESS };\n\t\tCursor c = ourDatabase.query(DATABASE_TABLE, columns, null, null, null,\n\t\t\t\tnull, null);\n\t\tString result = \"\";\n\t\tint iRow = c.getColumnIndex(KEY_ROWID);\n\t\tint iName = c.getColumnIndex(KEY_NAME);\n\t\tint iHotness = c.getColumnIndex(KEY_HOTNESS);\n\n\t\tfor (c.moveToFirst(); !c.isAfterLast(); c.moveToNext()) {\n\t\t\tresult += c.getString(iRow) + \" \" + c.getString(iName) + \" \"\n\t\t\t\t\t+ c.getString(iHotness) + \"\\n\";\n\t\t}\n\n\t\treturn result;\n\t}", "Object getDataValue(final int row, final int column);", "public String getSelectedRowID()\n\t{\n\t\tint selectedRow = recordTable.getSelectedRow();\n\t\tString returnData = null;\n\t\tif(selectedRow==-1)\n\t\t{//If there is no row selected...\n\t\t\treturn null;\n\t\t}\n\t\treturnData = (String)recordTable.getValueAt(selectedRow, Information.FIELDID);\n\t\treturn returnData;\n\t}", "public String getData(int id){\n String _data = \"\";\n dbOperation operationObj = new dbOperation(getActivity());\n operationObj.open();\n MyTable fields = new MyTable();\n String condition2 = fields.getID() + \" ='\" + id + \"'\";\n String[] dbFields4 = {fields.getScore()};\n Cursor cursor2 = operationObj.getTableRow(fields.getTableName(),dbFields4,condition2,fields.getID() + \" ASC \",\"1\");\n if(cursor2.getCount() > 0)\n {\n cursor2.moveToFirst();\n do{\n _data = cursor2.getString(0);\n }while(cursor2.moveToNext());\n }else{\n _data = \"error\";\n }\n cursor2.close();\n cursor2.deactivate();\n operationObj.close();\n return _data;\n }", "public HBRecordDataModel getHBRecord()\n\t{\n\t\tHBRecordDataModel HBRecordDataModel = null;\n\t\tList<AbsRecord> results = getRecordBy(getWhereConditionBaseOnIdRecord(), new HBRecordRowMapper());\n\n\t\tif (!results.isEmpty())\n\t\t{\n\n\t\t\tHBRecordDataModel = (HBRecordDataModel) results.get(0);\n\t\t}\n\n\t\treturn HBRecordDataModel;\n\t}", "private static Object getFieldValue(ETApiObject row, String fieldName) {\n try {\n Method method = row.getClass().getMethod(createGetterName(fieldName));\n return method.invoke(row);\n } catch (Exception e) {\n LOG.error(String.format(\"Error while fetching %s.%s value\", row.getClass().getSimpleName(), fieldName), e);\n return null;\n }\n }", "public int getRow()\n {\n return row;\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 }", "public Tuple getRecord(RID rid)\n throws IOException,\n InvalidSlotNumberException {\n short recLen;\n short offset;\n byte[] record;\n PageId pageNo = new PageId();\n pageNo.pid = rid.pageNo.pid;\n curPage.pid = Convert.getIntValue(CUR_PAGE, data);\n int slotNo = rid.slotNo;\n\n // length of record being returned\n recLen = getSlotLength(slotNo);\n int slotCnt = Convert.getShortValue(SLOT_CNT, data);\n if ((slotNo >= 0) && (slotNo < slotCnt) && (recLen > 0)\n && (pageNo.pid == curPage.pid)) {\n offset = getSlotOffset(slotNo);\n record = new byte[recLen];\n System.arraycopy(data, offset, record, 0, recLen);\n Tuple tuple = new Tuple(record, 0, recLen);\n return tuple;\n } else {\n throw new InvalidSlotNumberException(null, \"HEAPFILE: INVALID_SLOTNO\");\n }\n\n\n }", "protected abstract E parseEntity(ResultSet rs) throws DAOException;", "public ResultSet getItemInfo() throws SQLException {\n\t\tConnection con = openDBConnection();\n\t\tStatement stmt = con.createStatement();\n\t\t/** Proceeds if user is logged in */\n\t\tString queryString = \"Select * From team1.GABES_ITEM i Where i.ITEM_ID='\"\n\t\t\t\t+ this.item_id + \"'\";\n\t\tResultSet result = stmt.executeQuery(queryString);\n\t\treturn result;\n\t}", "public void read(DBTableField pdxTableField, InputStream inputStream) throws Exception {\n try {\n /*\n * get the data\n */\n final byte[] data = new byte[pdxTableField.getLength()];\n inputStream.read(data);\n /*\n * convert to type\n */\n switch (pdxTableField.getFieldType()) {\n case A:\n value = StringUtil.readString(data);\n break;\n case D:\n final long d = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN).getShort();\n value = Long.toString(d);\n break;\n case S:\n final long s = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN).getShort();\n value = Long.toString(s);\n break;\n case I:\n data[0] = (byte) (data[0] & 0x7f); // handle unsigned integers\n final long i = ByteBuffer.wrap(data).order(ByteOrder.BIG_ENDIAN).getInt();\n value = Long.toString(i);\n break;\n case $:\n final double dollars = ByteBuffer.wrap(data).order(ByteOrder.BIG_ENDIAN).getDouble();\n value = Double.toString(dollars);\n break;\n case M:\n value = StringUtil.ByteArrayToString(data);\n case N:\n final long n = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN).getLong();\n value = Double.toString(n);\n break;\n case B:\n value = StringUtil.ByteArrayToString(data);\n break;\n case TS:\n // milliseconds since Jan 1, 1 AD, convert to UTC time\n data[0] = (byte) (data[0] & 0x7f); // handle unsigned number\n double dt = ByteBuffer.wrap(data).order(ByteOrder.BIG_ENDIAN).getDouble();\n long dateTime = (long) dt;\n if (dateTime == 0) {\n value = null;\n } else {\n dateTime -= 86400000; // millis in 1 day\n dateTime -= 62135607600000l; // millis from 01.01.1970\n value = Long.toString(dateTime);\n }\n break;\n case Auto:\n final short auto = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN).getShort();\n value = Short.toString(auto);\n }\n } catch (final Exception e) {\n throw new Exception(\"Exception in read\", e);\n }\n }", "public ResultRow getRow(int rowIdx) {\r\n return rows.get(rowIdx);\r\n }", "public abstract T getTuple(Record record);", "@Override\n\t\t\t\t\t\tpublic EmrContactDetais mapRow(ResultSet rs,\n\t\t\t\t\t\t\t\tint arg1) throws SQLException {\n\t\t\t\t\t\t\tEmrContactDetais details = new EmrContactDetais();\n\n\t\t\t\t\t\t\tdetails.setName((rs\n\t\t\t\t\t\t\t\t\t.getString(\"contact_name\") != null) ? rs\n\t\t\t\t\t\t\t\t\t.getString(\"contact_name\") : \"\");\n\t\t\t\t\t\t\tdetails.setMobileNumber((rs\n\t\t\t\t\t\t\t\t\t.getString(\"contact_number\") != null) ? rs\n\t\t\t\t\t\t\t\t\t.getString(\"contact_number\") : \"\");\n\t\t\t\t\t\t\tdetails.setRelation((rs.getString(\"relation\") != null) ? rs\n\t\t\t\t\t\t\t\t\t.getString(\"relation\") : \"\");\n\t\t\t\t\t\t\tdetails.setSeq((rs.getString(\"seq\") != null) ? rs\n\t\t\t\t\t\t\t\t\t.getString(\"seq\") : \"\");\n\t\t\t\t\t\t\tdetails.setEmergencyContactId((rs.getString(\"contact_id\") != null) ? rs\n\t\t\t\t\t\t\t\t\t.getString(\"contact_id\") : \"\");\n\t\t\t\t\t\t\tdetails.setCountryCode((rs.getString(\"country_code\") != null) ? rs\n\t\t\t\t\t\t\t\t\t.getString(\"country_code\") : \"\");\n\t\t\t\t\t\t\tdetails.setAltrMobileNumber((rs.getString(\"altr_contact_number\") != null) ? rs\n\t\t\t\t\t\t\t\t\t.getString(\"altr_contact_number\") : \"\");\n\t\t\t\t\t\t\tdetails.setAltrCountryCode((rs.getString(\"altr_country_code\") != null) ? rs\n\t\t\t\t\t\t\t\t\t.getString(\"altr_country_code\") : \"\");\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\treturn details;\n\t\t\t\t\t\t}", "@Nullable\n\tprotected abstract T readCursor(ResultSet rs, int currentRow) throws SQLException;", "public OpenERPRecord get() {\r\n\t\tif (records == null)\r\n\t\t\treturn null;\r\n\t\tif (records.size() == 0)\r\n\t\t\treturn null;\r\n\t\treturn records.elementAt(0);\r\n\t}", "public Record getRecord(long id) {\n SQLiteDatabase db = this.getReadableDatabase();\n\n Cursor cursor = db.query(Record.TABLE_NAME,\n new String[]{Record.COLUMN_ID,\n Record.COLUMN_TITLE,\n Record.COLUMN_AUTHOR,\n Record.COLUMN_DESCRIPTION,\n Record.COLUMN_URL,\n Record.COLUMN_IMAGE,\n Record.COLUMN_CONTENT,\n Record.COLUMN_TIMESTAMP},\n Record.COLUMN_ID + \"=?\",\n new String[]{String.valueOf(id)}, null, null, null, null);\n\n if (cursor != null)\n cursor.moveToFirst();\n\n // prepare record object\n Record record = new Record(\n cursor.getInt(cursor.getColumnIndex(Record.COLUMN_ID)),\n cursor.getString(cursor.getColumnIndex(Record.COLUMN_TITLE)),\n cursor.getString(cursor.getColumnIndex(Record.COLUMN_AUTHOR)),\n cursor.getString(cursor.getColumnIndex(Record.COLUMN_DESCRIPTION)),\n cursor.getString(cursor.getColumnIndex(Record.COLUMN_URL)),\n cursor.getString(cursor.getColumnIndex(Record.COLUMN_IMAGE)),\n cursor.getString(cursor.getColumnIndex(Record.COLUMN_CONTENT)),\n cursor.getString(cursor.getColumnIndex(Record.COLUMN_TIMESTAMP)));\n\n // close the db connection\n cursor.close();\n\n return record;\n }", "@Override\n public Object mapRow(ResultSet rs, int rowNum) throws SQLException {\n \treturn rs.getString(\"mid\");\n }", "private ResultSet queryDatabaseForDataRow(Connection m_dbconn, String col) \n\t{\n\t\tResultSet rs = null;\n\t\tString selectStmt = \"SELECT * FROM RELATE_W_CH WHERE Ch_Name=\\\"\" + col + \"\\\"\";\n\n\t\ttry\n\t\t{\n\t\t\tStatement stmt = m_dbconn.createStatement();\n\n\t\t\trs = stmt.executeQuery(selectStmt);\n\t\t\trs.next();\n\t\t} catch (SQLException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn rs;\n\t}", "public Row getRow (int line) {\n return rowCache.get(line);\n }", "@Override\n\tpublic Map<String, Object> read(String nombrec) {\n\t\tsimpleJdbcCall = new SimpleJdbcCall(jdbcTemplate)\n\t\t\t\t.withProcedureName(\"pa_mat_produnidadmed_GetNomc\").withCatalogName(\"PKG_ALM_CRUD_PRODUNIDADMED\")\n\t\t\t\t.declareParameters(new SqlOutParameter(\"uni\",OracleTypes.CURSOR,new ColumnMapRowMapper()), new SqlParameter(\"p_nombrecorto\", Types.VARCHAR));\n\t\tSqlParameterSource in = new MapSqlParameterSource().addValue(\"p_nombrecorto\", nombrec);\n\t\treturn simpleJdbcCall.execute(in);\n\t}", "private String getStringValueFromSelectedTableTableByFieldCode(String tableName, String value, String fieldCode, String indexColumn) throws CantCheckAssetReceptionProgressException, UnexpectedResultReturnedFromDatabaseException {\n try {\n this.database=openDatabase();\n DatabaseTable databaseTable = getDatabaseTable(tableName);\n databaseTable.setStringFilter(indexColumn, value, DatabaseFilterType.EQUAL);\n databaseTable.loadToMemory();\n DatabaseTableRecord databaseTableRecord;\n List<DatabaseTableRecord> databaseTableRecords=databaseTable.getRecords();\n if (databaseTableRecords.size() > 1){\n this.database.closeDatabase();\n throw new UnexpectedResultReturnedFromDatabaseException(\"Unexpected result. More than value returned.\", indexColumn+\":\" + value);\n } else {\n databaseTableRecord = databaseTableRecords.get(0);\n }\n this.database.closeDatabase();\n String stringToReturn=databaseTableRecord.getStringValue(fieldCode);\n return stringToReturn;\n } catch (CantExecuteDatabaseOperationException exception) {\n this.database.closeDatabase();\n throw new CantCheckAssetReceptionProgressException(exception, \"Trying to get \"+fieldCode,\"Cannot find or open the database\");\n } catch (CantLoadTableToMemoryException exception) {\n this.database.closeDatabase();\n throw new CantCheckAssetReceptionProgressException(exception, \"Trying to get \"+fieldCode,\"Cannot load the database into memory\");\n }\n }", "public io.dstore.engine.procedures.MiCheckPerformanceAd.Response.Row getRow(int index) {\n if (rowBuilder_ == null) {\n return row_.get(index);\n } else {\n return rowBuilder_.getMessage(index);\n }\n }", "@Override\r\n public Object getValueAt(int rowIndex, int columnIndex) {\n Hashtable rowData = fixHashtables[rowIndex];\r\n return rowData.get(getColumnName(columnIndex));\r\n }", "public Table<Integer, Integer, String> getData();", "public static String[][] read(String table, String where){\n String[][] records = null;\n try{\n SQLite.stmt = conn.createStatement();\n\n //Count total rows\n ResultSet rs = stmt.executeQuery(\"SELECT count(*) FROM \" + table + \" WHERE \" + where);\n int totalRows = rs.getInt(1);\n\n //Count total columns\n rs = stmt.executeQuery(\"SELECT * FROM \" + table + \" WHERE \" + where);\n ResultSetMetaData rsmd = rs.getMetaData();\n int totalColumns = rsmd.getColumnCount();\n\n //Initialize 2D Array \"records\" with totalRows by totalColumns\n records = new String[totalRows][totalColumns];\n\n //Retrieve the record and store it to 2D Array \"records\"\n int row=0;\n while(rs.next()){ \n for(int col=0,index=1;col<totalColumns;col++,index++){\n records[row][col] = rs.getObject(index).toString();\n }\n row++;\n } \n }\n catch(Exception e){\n System.out.println(\"Read Error: \" + e.getMessage());\n }\n return records;\n }", "public GoogleMobilityData getRecordByKey(Long pk) throws SQLException {\n\n String select = \"SELECT * FROM GoogleMobilityData WHERE Synthetic_Mobility_PK=?\";\n Connection connection = null;\n PreparedStatement selectStmt = null;\n ResultSet results = null;\n try {\n connection = connectionManager.getConnection();\n selectStmt = connection.prepareStatement(select);\n selectStmt.setLong(1, pk);\n results = selectStmt.executeQuery();\n if (results.next()) {\n Date date = results.getDate(\"Date\");\n String country = results.getString(\"Country\");\n Long rec = results.getLong(\"Rec\");\n Long grocery = results.getLong(\"Grocery\");\n Long parks = results.getLong(\"Parks\");\n Long transit = results.getLong(\"Transit_Station\");\n Long work = results.getLong(\"Work\");\n Long residential = results.getLong(\"Residential\");\n String fips = results.getString(\"JHCountyStat_FipsCode\");\n\n GoogleMobilityData record = new GoogleMobilityData(date, country, rec, grocery, parks, transit, work, residential, fips);\n return record;\n }\n } catch (SQLException e) {\n e.printStackTrace();\n throw e;\n } finally {\n if (connection != null) {\n connection.close();\n }\n if (selectStmt != null) {\n selectStmt.close();\n }\n if (results != null) {\n results.close();\n }\n }\n return null;\n }", "public Clientedim getRowData(String rowKey) {\n \r\n List<Clientedim> clienti = (List<Clientedim>) getWrappedData();\r\n \r\n for(Clientedim cli : clienti) {\r\n if(cli.getGestore().getCod_gestore().equals(rowKey))\r\n return cli;\r\n }\r\n \r\n return null;\r\n }", "public native ListGridRecord getCellRecord(int rowNum, int colNum) /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n var ret = self.getCellRecord(rowNum, colNum);\r\n if(ret == null || ret === undefined) return null;\r\n var retVal = @com.smartgwt.client.core.RefDataClass::getRef(Lcom/google/gwt/core/client/JavaScriptObject;)(ret);\r\n if(retVal == null) {\r\n retVal = @com.smartgwt.client.widgets.grid.ListGridRecord::new(Lcom/google/gwt/core/client/JavaScriptObject;)(ret);\r\n }\r\n return retVal;\r\n }-*/;", "public ResultSet returnRecord(String id) throws SQLException{\n Statement stmt = getConnection().createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,\n ResultSet.CONCUR_UPDATABLE);\n String sqlGet = \"SELECT * FROM myStudents WHERE STUD_ID ='\" + id + \"'\";\n stmt.executeQuery(sqlGet);\n ResultSet rs = stmt.getResultSet();\n return rs;\n }", "public Object get(ResultSet rs, String name) throws HibernateException, SQLException {\n Reader charReader = rs.getCharacterStream(name);\n\n // if the corresponding SQL value is NULL, the reader we got is NULL as well\n if (charReader == null || rs.wasNull()) return null;\n\n // Fetch Reader content up to the end - and put characters in a StringBuffer\n StringBuffer sbuf = new StringBuffer();\n try {\n char[] cbuf = new char[1024];\n for (int amountRead; (amountRead = charReader.read(cbuf)) != -1;) {\n sbuf.append(cbuf, 0, amountRead);\n }\n }\n catch (IOException ioe) {\n throw new HibernateException(\"IOException occurred reading text\", ioe);\n }\n finally {\n try {\n charReader.close();\n }\n catch (IOException e) {\n throw new HibernateException(\"IOException occurred closing stream\", e);\n }\n }\n\n // Return StringBuffer content as a large String\n return sbuf.toString();\n }", "protected Object record2object(String tableAlias, ResultSet results, int position)\r\n throws InvocationTargetException, IllegalAccessException {\r\n if (position < 0 || extractionMode == AUTO || extractionMode == NAME) {\r\n try {\r\n String lookupFieldName = getFieldName(tableAlias);\r\n return databaseGetByNameMethod.invoke(results, lookupFieldName);\r\n }\r\n catch(InvocationTargetException itx) {\r\n if (extractionMode == NAME || position < 0)\r\n throw itx;\r\n else\r\n extractionMode = INDEX;\r\n }\r\n }\r\n return databaseGetByIndexMethod.invoke(results, new Object[] {new Integer(position)});\r\n }", "public Object getValueAt(int row, int column) {\n\t\tString[] rowValues = this.records.get(row);\n return rowValues[column];\n\t}", "Storage selectByPrimaryKey(Integer recordId);", "@Override\r\n public Object getValueAt(int rowIndex, int columnIndex) {\n Hashtable rowData = chineseHashtables[rowIndex];\r\n return rowData.get(getColumnName(columnIndex));\r\n }", "String getValue(String column, int row);", "public void selectFromTable(){\n //SQL query\n String query = \"SELECT fNavn, eNavn, konto_Navn, konto_Reg, konto_ID, konto_Saldo FROM person JOIN konti ON Person_ID = fk_Person_ID\";\n\n try {\n //connection\n stmt = con.createStatement();\n //execute query\n rs = stmt.executeQuery(query);\n System.out.println(\"\\nFornavn: \\t\\tEfternavn: \\t\\tKonto: \\t\\tReg.nr: \\t\\tKontonr.: \\t\\tSaldo: \\n____________________________________\");\n\n //get data\n while (rs.next()){\n String fNavn = rs.getString(\"fNavn\"); //returns fornavn\n String eNavn = rs.getString(\"eNavn\"); //returns efternavn\n String kontoNavn = rs.getString(\"konto_Navn\"); //returns kontonavn\n int kontoReg = rs.getInt(\"konto_Reg\"); //returns kontoreg\n double kontoID = rs.getDouble(\"konto_ID\"); //returns kontoID\n double kontoSaldo = rs.getDouble(\"konto_Saldo\"); //returns kontoSaldo\n System.out.println(fNavn + \"\\t\\t\" + eNavn + \"\\t\\t\" + kontoNavn + \"\\t\\t\" + kontoReg + \"\\t\\t\" + kontoID + \"\\t\\t\" + kontoSaldo);\n }\n }\n catch (SQLException ex){\n System.out.println(\"\\n--Query did not execute--\");\n ex.printStackTrace();\n }\n\n\n }", "R getFirstRowOrThrow();", "DataReader reader();", "Basicinfo selectByPrimaryKey(String taxregcode);", "public void getRecord(LVValue value) throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tgetBackground();\n\t\tmyData.record=createRecord(myData.spec,null);\n\t\ttry\n\t\t{\n\t\t\tif (value.isNumeric())\n\t\t\t\tmyData.record.setID(new Long(value.getNumericValue()));\n\t\t\telse\n\t\t\t\tmyData.record.setID(value.getStringValue());\n\t\t\tmyData.record=myData.record.restore(background.getClient());\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "public String getEmployeeInfo() throws SQLException {\n String SQL = String.format(\"SELECT * FROM %s\", DbSchema.table_employees.name);\n Statement statement = con.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);\n ResultSet results = statement.executeQuery(SQL);\n\n //Prepare format stuff\n String tableHeader = String.format(\"%s %s %s %s %s\\n\", table_employees.cols.id, table_employees.cols.first_name, table_employees.cols.last_name, table_employees.cols.age, table_employees.cols.salary);\n StringBuilder output = new StringBuilder(tableHeader);\n DecimalFormat format = new DecimalFormat(\"#,###.00\");\n\n while (results.next()) {\n //Iterate through each row (employee) and add each bit of info to table\n String row = String.format(\"%s %s %s %s %s\\n\",\n results.getInt(table_employees.cols.id),\n results.getString(table_employees.cols.first_name),\n results.getString(table_employees.cols.last_name),\n results.getInt(table_employees.cols.age),\n format.format(results.getDouble(table_employees.cols.salary)));\n output.append(row);\n }\n return output.toString();\n }", "String get_row_id()\n {\n return row_id;\n }", "Object[] getDataRow(final int index);" ]
[ "0.6384653", "0.63005495", "0.6123245", "0.60341644", "0.60284096", "0.6010596", "0.5998787", "0.59647745", "0.5945236", "0.59329414", "0.59299994", "0.59274936", "0.59178895", "0.5915381", "0.5888541", "0.58839357", "0.5880018", "0.5865958", "0.5839633", "0.57865644", "0.5785243", "0.5751404", "0.5744079", "0.5702087", "0.5673295", "0.5667477", "0.5655074", "0.5647503", "0.5612268", "0.56122375", "0.5605015", "0.55946136", "0.5592812", "0.5585721", "0.5583769", "0.55782133", "0.5575239", "0.55721515", "0.5556722", "0.55564743", "0.5551219", "0.5548971", "0.5546993", "0.55429983", "0.55405825", "0.55316424", "0.55249226", "0.55239505", "0.5523021", "0.5522126", "0.5522126", "0.5522126", "0.5522126", "0.5522126", "0.5521069", "0.5513921", "0.550109", "0.54901", "0.5478773", "0.547314", "0.5472953", "0.54620486", "0.54608655", "0.54588985", "0.5457875", "0.5456651", "0.5454844", "0.5454193", "0.54450554", "0.5440653", "0.5439103", "0.54381496", "0.5433893", "0.542762", "0.5425591", "0.54232574", "0.5416399", "0.54117244", "0.5411276", "0.54095984", "0.540919", "0.54073006", "0.54056513", "0.5400257", "0.53949296", "0.53919154", "0.5386215", "0.53854585", "0.53845286", "0.53833276", "0.5381959", "0.5381644", "0.5377772", "0.537388", "0.53726894", "0.53666836", "0.5366396", "0.536178", "0.5355175", "0.5352659", "0.53496224" ]
0.0
-1
This method updates an existing record (row) in a database table.
void update(User user, Connection connection) throws DAOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateRow() throws SQLException\n {\n m_rs.updateRow();\n }", "public void updateRow() throws SQLException {\n\n try {\n debugCodeCall(\"updateRow\");\n checkClosed();\n if (insertRow != null) { throw Message.getSQLException(ErrorCode.NOT_ON_UPDATABLE_ROW); }\n checkOnValidRow();\n if (updateRow != null) {\n UpdatableRow row = getUpdatableRow();\n Value[] current = new Value[columnCount];\n for (int i = 0; i < updateRow.length; i++) {\n current[i] = get(i + 1);\n }\n row.updateRow(current, updateRow);\n for (int i = 0; i < updateRow.length; i++) {\n if (updateRow[i] == null) {\n updateRow[i] = current[i];\n }\n }\n Value[] patch = row.readRow(updateRow);\n patchCurrentRow(patch);\n updateRow = null;\n }\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "int updateByPrimaryKey(Assist_table record);", "int updateByPrimaryKey(RecordLike record);", "int updateByPrimaryKey(Table2 record);", "int updateByPrimaryKey(Yqbd record);", "int updateByPrimaryKey(Access record);", "int updateByPrimaryKey(Body record);", "int updateByPrimaryKey(BnesBrowsingHis record) throws SQLException;", "int updateByPrimaryKey(Basicinfo record);", "int updateByPrimaryKey(SysId record);", "int updateByPrimaryKey(Forumpost record);", "int updateByPrimaryKey(PrhFree record);", "int updateByPrimaryKey(Abum record);", "int updateByPrimaryKey(Enfermedad record);", "int updateByPrimaryKey(Engine record);", "int updateByPrimaryKey(Disease record);", "int updateByPrimaryKey(UserInfo record);", "int updateByPrimaryKey(JzAct record);", "int updateByPrimaryKey(Massage record);", "int updateByPrimaryKey(Tourst record);", "int updateByPrimaryKey(Commet record);", "int updateByPrimaryKey(Prueba record);", "int updateByPrimaryKey(Position record);", "int updateByPrimaryKey(TABLE41 record);", "int updateByPrimaryKey(Dormitory record);", "int updateByPrimaryKey(AccuseInfo record);", "int updateByPrimaryKey(BaseReturn record);", "int updateByPrimaryKey(Ad record);", "int updateByPrimaryKey(Model record);", "int updateByPrimaryKey(Resource record);", "int updateByPrimaryKey(TempletLink record);", "int updateByPrimaryKey(Employee record);", "int updateByPrimaryKey(ClinicalData record);", "int updateByPrimaryKey(SysCode record);", "int updateByPrimaryKey(Ltsprojectpo record);", "int updateByPrimaryKey(Notice record);", "int updateByPrimaryKey(Product record);", "int updateByPrimaryKey(TCar record);", "int updateByPrimaryKey(Clazz record);", "int updateByPrimaryKey(T record);", "int updateByPrimaryKey(Cargo record);", "int updateByPrimaryKey(GirlInfo record);", "int updateByPrimaryKey(LitemallUserFormid record);", "int updateByPrimaryKey(Kaiwa record);", "int updateByPrimaryKey(AccessModelEntity record);", "int updateByPrimaryKey(StudentInfo record);", "int updateByPrimaryKey(SupplyNeed record);", "int updateByPrimaryKey(Student record);", "int updateByPrimaryKey(Student record);", "int updateByPrimaryKey(Student record);", "int updateByPrimaryKey(Admin record);", "int updateByPrimaryKey(Admin record);", "int updateByPrimaryKey(Dress record);", "int updateByPrimaryKey(Userinfo record);", "int updateByPrimaryKey(BaseCountract record);", "int updateByPrimaryKey(Transaction record);", "int updateByPrimaryKey(Sequipment record);", "int updateByPrimaryKey(IceApp record);", "int updateByPrimaryKey(RepStuLearning record);", "int updateByPrimaryKey(Account record);", "int updateByPrimaryKey(Account record);", "int updateByPrimaryKey(Goods record);", "int updateByPrimaryKey(Goods record);", "int updateByPrimaryKey(SwipersDO record);", "int updateByPrimaryKey(AutoAssessDetail record);", "int updateByPrimaryKey(Caiwu record);", "int updateByPrimaryKey(SPerms record);", "int updateByPrimaryKey(Question record);", "int updateByPrimaryKey(Question record);", "int updateByPrimaryKey(Question record);", "int updateByPrimaryKey(Question record);", "int updateByPrimaryKey(Question record);", "int updateByPrimaryKey(ResPartnerBankEntity record);", "int updateByPrimaryKey(R_order record);", "int updateByPrimaryKey(QuestionOne record);", "int updateByPrimaryKey(DataSync record);", "int updateByPrimaryKey(BookInfo record);", "int updateByPrimaryKey(CaseLinkman record);", "int updateByPrimaryKey(Location record);", "int updateByPrimaryKey(ParkCurrent record);", "int updateByPrimaryKey(Shareholder record);", "int updateByPrimaryKey(TCpySpouse record);", "int updateByPrimaryKey(TLinkman record);", "int updateByPrimaryKey(AdminTab record);", "int updateByPrimaryKey(Appraise record);", "@Override\r\n\tpublic void update() throws SQLException {\n\r\n\t}", "int updateByPrimaryKey(ProEmployee record);", "int updateByPrimaryKey(Course record);", "int updateByPrimaryKey(Course record);", "int updateByPrimaryKey(CTipoComprobante record) throws SQLException;", "int updateByPrimaryKey(Book record);", "int updateByPrimaryKey(Book record);", "int updateByPrimaryKey(TBBearPer record);", "int updateByPrimaryKey(Storage record);", "int updateByPrimaryKey(Storage record);", "int updateByPrimaryKey(Disproduct record);", "int updateByPrimaryKey(ClOrderInfo record);", "int updateByPrimaryKey(BookDO record);", "int updateByPrimaryKey(ReEducation record);", "int updateByPrimaryKey(Online record);" ]
[ "0.80567974", "0.7380608", "0.73580265", "0.7312607", "0.7295434", "0.72566676", "0.72139704", "0.71741563", "0.7151746", "0.7148322", "0.71237636", "0.71217287", "0.7103917", "0.71036345", "0.7094453", "0.7070572", "0.7066765", "0.70605594", "0.7043296", "0.7037991", "0.7034631", "0.7025107", "0.7020809", "0.7012967", "0.701107", "0.7010764", "0.7007941", "0.6999627", "0.6989913", "0.6977313", "0.69754845", "0.69747955", "0.6971218", "0.6970747", "0.69700426", "0.6969079", "0.69643074", "0.69565076", "0.6956181", "0.6953296", "0.69491935", "0.69455713", "0.6945545", "0.6933881", "0.6930064", "0.69287777", "0.69272304", "0.69205815", "0.69065166", "0.69065166", "0.69065166", "0.6905986", "0.6905986", "0.69032913", "0.69026184", "0.69016314", "0.6892912", "0.6881282", "0.68787587", "0.6863072", "0.68614405", "0.68614405", "0.6854878", "0.6854878", "0.68541986", "0.68531746", "0.68503463", "0.6842765", "0.6842559", "0.6842559", "0.6842559", "0.6842559", "0.6842559", "0.68423706", "0.6840365", "0.6839878", "0.6836183", "0.68349344", "0.68334025", "0.68301255", "0.68286455", "0.6828631", "0.6828043", "0.6827914", "0.6824717", "0.6822409", "0.681859", "0.6817266", "0.68159276", "0.68159276", "0.68112344", "0.6810545", "0.6810545", "0.6807882", "0.6806721", "0.6806721", "0.68021715", "0.67962074", "0.67943877", "0.6793704", "0.6791208" ]
0.0
-1
This method creates entity of User class from data received from ResultSet.
User createUser(ResultSet resultSet, User user) throws SQLException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private User createUserFromResults(ResultSet results) throws SQLException {\n User user = new User();\n user.setLastName(results.getString(\"last_name\"));\n user.setFirstName(results.getString(\"first_name\"));\n user.setUserid(results.getString(\"id\"));\n user.setDateOfBirth(results.getDate(\"date_of_birth\"));\n // TODO map the remaining fields\n return user;\n }", "private User convert(ResultSet rs) throws SQLException, NoSuchAlgorithmException {\n User user = new User(\n rs.getLong(1),\n rs.getString(2),\n new HashedString(rs.getString(3), true),\n new Email(rs.getString(4)));\n return user;\n }", "protected UserRow fetchUser(ResultSet rs) throws SQLException {\n UserRow u = new UserRow();\n \n u.id = rs.getInt(1);\n u.specificId = rs.getString(2);\n u.domainId = rs.getInt(3);\n u.login = rs.getString(4);\n u.firstName = rs.getString(5);\n u.lastName = rs.getString(6);\n u.loginMail = rs.getString(7);\n u.eMail = rs.getString(8);\n u.accessLevel = rs.getString(9);\n u.loginQuestion = rs.getString(10);\n u.loginAnswer = rs.getString(11);\n \n return u;\n }", "private static User resultSetToUser( ResultSet resultSet ){\r\n\t\t\r\n\t\tString userID, userName, password, email;\r\n\t\tDate lastLoginDate, registeredDate;\r\n\t\tfloat height, weight, userRating;\r\n\t\tchar gender, publicEventNotify;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tuserID = resultSet.getString(\"userID\");\r\n\t\t\tuserName = resultSet.getString(\"userName\");\r\n\t\t\tpassword = resultSet.getString(\"password\");\r\n\t\t\temail = resultSet.getString(\"email\");\r\n\t\t\t\r\n\t\t\theight = resultSet.getFloat(\"height\");\r\n\t\t\tweight = resultSet.getFloat(\"weight\");\r\n\t\t\tgender = resultSet.getString(\"gender\").charAt(0);\r\n\t\t\tuserRating = resultSet.getFloat(\"userRating\");\r\n\t\t\tpublicEventNotify = resultSet.getString(\"publicEventNotify\").charAt(0);\r\n\r\n\t\t\tlastLoginDate = resultSet.getDate(\"lastLoginDate\");\r\n\t\t\tregisteredDate = resultSet.getDate(\"registeredDate\");\r\n\t\t\t\r\n\t\t\treturn new User( userID, userName, password, email, height, weight, gender,\r\n\t\t\t\t\t\t\t publicEventNotify, userRating, lastLoginDate, registeredDate);\r\n\t\t\t\t\r\n\t\t} \r\n\t\tcatch (SQLException e) {\r\n\t\t\tSystem.out.println(\"DBFunctionUtil.resultSetToUser() : Error getting user\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "@Override\n\tpublic User map(ResultSet resultSet) throws SQLException {\n\t\tif(resultSet==null)return new User();\n\t\tLong id=resultSet.getLong(\"id\");\n\t\tString account=resultSet.getString(\"account\");\n\t\tString userName=resultSet.getString(\"user_name\");\n\t\tString passwordMD5=resultSet.getString(\"password_md5\");\n\t\tbyte status=resultSet.getByte(\"status\");\n\t\tLong concernedTime=resultSet.getLong(\"concerned_time\");\n\t\tUser usr=new User(id,userName, account, passwordMD5,concernedTime);\n\t\tfor(Type.UserStatus each:Type.UserStatus.values()){\n\t\t\tif(each.getValue()==status){\n\t\t\t\tusr.setStatus(each);\n\t\t\t}\n\t\t}\n\t\treturn usr;\n\t}", "@Override\n\tpublic User mapRow(ResultSet res, int rowNo) throws SQLException {\n\t\tUser user=new User();\n\t\tuser.setFirstname(res.getString(\"firstname\"));\n\t\tuser.setLastname(res.getString(\"lastnamr\"));\n\t\tuser.setStatus(res.getInt(\"status\"));\n\t\tuser.setPassword(res.getString(\"password\"));\n\t\tuser.setEmailType(res.getInt(\"email_type\"));\n\t\tuser.setEmail(res.getString(\"e_mail\"));\n\t\t\n\t\treturn user;\n\t\n\t}", "private Usuario instantiateUsuario(ResultSet rs) throws SQLException {\r\n Usuario dep = new Usuario(rs.getInt(\"id_usuario\"), rs.getInt(\"papel\"), rs.getString(\"nome\"), rs.getString(\"email\"), rs.getString(\"senha\"), rs.getString(\"cpf\"), rs.getString(\"cadastro_aprovado\"));\r\n return dep;\r\n }", "@Override\r\n\t\tpublic Object mapRow(ResultSet rs) throws SQLException {\n\t\t\tVIPUser vu = new VIPUser(\r\n\t\t\t\t\trs.getString(\"id\"),\r\n\t\t\t\t\trs.getString(\"name\"));\r\n\t\t\treturn vu;\r\n\t\t}", "@Override\n\tpublic List<User> extractData(ResultSet rs) throws SQLException, DataAccessException {\n\t\tList<User> list = new ArrayList<User>();\n\t\twhile (rs.next()) {\n\t\t\tUser user = new User();\n\t\t\tuser.setUserId(rs.getInt(\"user_id\"));\n\t\t\tuser.setUserName(rs.getString(\"user_name\"));\n\t\t\tlist.add(user);\n\n\t\t}\n\t\treturn list;\n\t}", "protected abstract T createEntityFromResult (final ResultSet result) throws SQLException;", "T createEntity(ResultSet resultSet)\n throws CreatorException;", "public GMUserData mapRow(ResultSet rs, int rowNum) throws SQLException {\n\n\t\tGMUserData pd = new GMUserData();\n\t\tpd.setId(rs.getLong(\"id\"));\n\t\tpd.setUname(rs.getString(\"uname\"));\n\t\tpd.setPw(rs.getString(\"pw\"));\n\t\tpd.setPower(rs.getInt(\"power\"));\n\t\t\n\t\treturn pd;\n\t}", "private Organization extractOrganizationFromResult(ResultSet resultSet) throws SQLException {\n\t\tOrganization organization = new Organization();\n\t\t\n\t\t// process the extractions - there will only be one user\n\t\t//\n\t\twhile (resultSet.next()) {\n\t\t\t// extract the data\n\t\t\tlong id = resultSet.getLong(\"id\");\n String name = resultSet.getString(\"name\");\n String description = resultSet.getString(\"description\");\n \n // populate the User entity\n organization.setName(name);\n organization.setId(id);\n organization.setDescription(description);\n }\n\t\t\n\t\treturn organization;\n\t}", "public UserInfoEntity toUserInfoEntity(){\n UserInfoEntity userInfoEntity = new UserInfoEntity();\n userInfoEntity.setUserId(IdGen.getNewUserID());\n userInfoEntity.setCreateBy(name);\n userInfoEntity.setCreateOn(DateUtils.getDate());\n return toUserInfoEntity(userInfoEntity);\n }", "private Card mapRowToCardWithUser(SqlRowSet rs) {\n Card card = new Card();\n card.setCardID(rs.getInt(\"card_id\"));\n card.setUserID(rs.getInt(\"user_id\"));\n card.setDeckID(rs.getInt(\"deck_id\"));\n card.setQuestion(rs.getString(\"question\"));\n card.setAnswer(rs.getString(\"answer\"));\n card.setCorrect(rs.getBoolean(\"correct\"));\n card.setRank(rs.getInt(\"rank\"));\n return card;\n }", "@Override\r\n\tprotected final void objectDataMapping() throws BillingSystemException{\r\n\t\tString[][] data=getDataAsArray(USER_DATA_FILE);\r\n\t\tif(validateData(data,\"Authorised User\",COL_LENGTH)){\r\n\t\tList<User> listUser=new ArrayList<User>();\r\n\t\t\r\n\t\tfor(int i=0;i<data.length;i++){\r\n\t \t\r\n\t \tUser usr=new User();\r\n\t \t\t\r\n\t \tusr.setUsername(data[i][0]);\r\n\t \tusr.setPassword(data[i][1]);\r\n\t \tusr.setRole(getRoleByCode(data[i][2]));\r\n\t \t\r\n\t \tlistUser.add(usr);\t\r\n\t }\r\n\r\n\t\t\r\n\t\tthis.listUser=listUser;\r\n\t\t}\r\n\t}", "@Override\n public User getUser(String given_username) \n {\n User tempUser = null;\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 = \"SELECT * FROM users where username = '\" + given_username + \"'\";\n ResultSet rs = stmt.executeQuery(sql);\n \n while(rs.next())\n {\n int id = rs.getInt(\"user_id\");\n String firstname = rs.getString(\"firstname\");\n String lastname = rs.getString(\"lastname\");\n String username = rs.getString(\"username\");\n String password = rs.getString(\"password\");\n String city = rs.getString(\"city\");\n String number = rs.getString(\"number\");\n\n tempUser = new User(id,firstname,lastname,username,password,city,number);\n System.out.println(\"Here-1\");\n }\n rs.close();\n stmt.close();\n conn.close();\n System.out.println(\"Here\");\n if(tempUser == null) System.out.println(\"true\");\n } \n catch (SQLException ex) {ex.printStackTrace(); return null;} \n catch (ClassNotFoundException ex) {ex.printStackTrace(); return null; }\n return tempUser;\n }", "public static User toUser(UserModel model) {\n User user = new User();\n user.setId(model.getInteger(\"id\"));\n user.setFirstname(model.getString(\"firstname\"));\n user.setLastname(model.getString(\"lastname\"));\n user.setEmail(model.getString(\"email\"));\n user.setLogin(model.getString(\"login\"));\n return user;\n }", "protected Object fetchRow(ResultSet rs) throws SQLException {\n return fetchUser(rs);\n }", "@Override\n\tpublic List<UserRole> extractData(ResultSet rs) throws ClassNotFoundException, SQLException {\n\t\tList<UserRole> userRoleList = new ArrayList<>();\n\t\twhile (rs.next()) {\n\t\t\tUserRole userRole = new UserRole();\n\t\t\tuserRole.setId(rs.getInt(\"id\"));\n\t\t\tuserRole.setName(rs.getString(\"name\"));\n\t\t\tuserRoleList.add(userRole);\n\t\t}\n\n\t\treturn userRoleList;\n\t}", "public IUser CreateUser() {\n\t\tIUser iUser = null;\n\t\tswitch (db) {\n\t\tcase \"Mysql\":\n\t\t\tiUser = new MysqlUserImpl();\n\t\t\tbreak;\n\t\tcase \"Access\":\n\t\t\tiUser = new AccessUserImpl();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn iUser;\n\t}", "public static User getUserModel(UserEntity entity){\r\n\t\t\r\n\t\t//build and return model\r\n\t\treturn User.getBuilder()\r\n\t\t\t\t.withId(entity.getId())\r\n\t\t\t\t.withFirstName(entity.getFirstName())\r\n\t\t\t\t.withLastName(entity.getLastName())\r\n\t\t\t\t.withDob(getReadableDate(entity.getDob()))\r\n\t\t\t\t.build();\r\n\t\t\r\n\t}", "private Customer buildCustomer (ResultSet resultSet) throws SQLException{\r\n long id = resultSet.getLong(1);\r\n String firstName =resultSet.getString(2);\r\n String lastName = resultSet.getString(3);\r\n String email = resultSet.getString(4);\r\n String password = resultSet.getString(5);\r\n return new Customer(id,firstName,lastName,email,password);\r\n }", "@Override\r\n\tpublic Object createUser() throws DataAccessException, SQLException {\n\t\treturn null;\r\n\t}", "public TUser toTUser() {\n TUser tUser = new TUser();\n\n if (username != null) {\n tUser.setUsername(username);\n }\n\n if (password != null) {\n tUser.setPassword(password);\n }\n\n if (enabled != null) {\n tUser.setEnabled(enabled);\n }\n\n if (roles != null) {\n tUser.setRoles(getRoles().stream().map(UserRole::toTUserRole).collect(Collectors.toSet()));\n }\n\n if (robots != null) {\n tUser.setRobots(getRobots().stream().map(Robot::toTRobot).collect(Collectors.toSet()));\n }\n\n return tUser;\n }", "public Users_crud() throws SQLException {\n users = new Users();\n configuration = new Configuration().configure();\n sessionFactory = configuration.buildSessionFactory();\n }", "public void extractObjectDB() {\n\n\t\ttry {\n\t\t\t\n\t\t\tstatement = c.createStatement();\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM User WHERE id NOT IN (SELECT id FROM OrderManager)\");\n\t\t\tResultSet results = statement.executeQuery(\"select FirstName , LastName, Password,Phonenumber,AFM,User.id, Company,Regular,Season from User INNER JOIN OrderManager on User.id=OrderManager.Id\"); \n\t\t \n\n\t\t\twhile (rs.next()) {\n\t\t\t\n\t\t\t\tUser us = new User();\n\t\t\t\tus.setFirstName(rs.getString(\"FirstName\"));\n\t\t\t\tus.setSurName(rs.getString(\"LastName\"));\n\t\t\t\tus.setPassword(rs.getString(\"Password\"));\n\t\t\t\tus.setTelephone(rs.getString(\"Phonenumber\"));\n\t\t\t\tus.setAFM(rs.getString(\"AFM\"));\n\t\t\t\tus.setId(rs.getString(\"id\"));\n\t\t\t\tus.setCompany(rs.getString(\"Company\"));\n\t\t\t\tusers.add(us);\n\t\t\t\t\n\t\t\t}\n\t\t\tfor(User u: users)\n\t\t\t{\n\t\t\t\tint index = users.indexOf(u);\n\t\t\t\tif (u instanceof Stockkeeper) {\n\t\t\t\t\tStockkeeper st = (Stockkeeper) u;\n\t\t\t\t\tusers.set(index,st);\n\t\t\t\t}\n\t\t\t\telse if(u instanceof Seller){\n\t\t\t\t\tSeller se = (Seller) u;\n\t\t\t\t\tusers.set(index, se);\n\t\t\t}\n\t\t\t}\n\t\t\twhile (results.next()) {\n\t\t\t\t\n\t\t\t\tOrderManager om = new OrderManager(\"\",\"\",\"\",\"\",\"\",\"\",true,\"\");\n\t\t\t\tom.setFirstName(results.getString(\"FirstName\"));\n\t\t\t\tom.setSurName(results.getString(\"LastName\"));\n\t\t\t\tom.setPassword(results.getString(\"Password\"));\n\t\t\t\tom.setTelephone(results.getString(\"Phonenumber\"));\n\t\t\t\tom.setAFM(results.getString(\"AFM\"));\n\t\t\t\tom.setId(results.getString(\"id\"));\n\t\t\t\tom.setCompany(results.getString(\"Company\"));\n\t\t\t\tif (results.getInt(\"Regular\")== 0) \n\t\t\t\t\tom.setRegular(true);\n\t\t\t\telse \n\t\t\t\t\tom.setRegular(false);\n\t\t\t\tom.setSeason(results.getString(\"Season\"));\n\t\t\t\tusers.add(om);\n\t\t\t\t\n\t\t\t}\n\t\t\tc.close();\n\t\t}catch(SQLException | ClassNotFoundException e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\t\n\t\t\n\t}", "@Test\n @SuppressWarnings(\"unchecked\")\n public void testToUser() throws Exception {\n UserRequestBean testBean = new UserRequestBean();\n testBean.setAge(20);\n testBean.setUsername(\"TestUsername\");\n\n // set up oracle values\n User oracleUser = new User();\n oracleUser.setUsername(\"TestUsername\");\n oracleUser.setAge(20);\n oracleUser.setStatus(UserStatus.OFFLINE);\n String oracleToken = \"067e6162-3b6f-4ae2-a171-2470b63dff00\";\n\n // test call\n User result = userMapperService.toUser(testBean);\n\n // assertions\n Assert.assertEquals(result.getAge(), oracleUser.getAge());\n Assert.assertEquals(result.getUsername(), oracleUser.getUsername());\n Assert.assertEquals(result.getStatus(), oracleUser.getStatus());\n Assert.assertEquals(result.getToken().length(), oracleToken.length());\n }", "User createUser();", "T buidEntity(ResultSet rs) throws SQLException;", "@Override\n public User createFromParcel(Parcel in) {\n return new User(in);\n }", "public static Userextra createEntity(EntityManager em) {\n Userextra userextra = new Userextra().accountype(DEFAULT_ACCOUNTYPE);\n // Add required entity\n User user = UserResourceIT.createEntity(em);\n em.persist(user);\n em.flush();\n userextra.setUser(user);\n return userextra;\n }", "@Override\r\n\t\tpublic Registration mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\tRegistration registration = new Registration();\r\n\t\t\tregistration.setId(rs.getLong(\"id\"));\r\n\t\t\tregistration.setName(rs.getString(\"name\"));\r\n\t\t\tregistration.setAddress(rs.getString(\"address\"));\r\n\t\t\r\n\t\t\treturn registration;\r\n\t\t}", "public TripUserTO rsToTripUser(ResultSet rs) {\n\t\tTripUserTO trip_userTO = null;\n\t\ttry {\n\t\t\ttrip_userTO = new TripUserTO();\n\t\t\ttrip_userTO.setId(rs.getInt(\"id\"));\n\t\t\ttrip_userTO.setUserId(rs.getInt(\"user_id\"));\n\t\t\tAppUserTO userTO = new AppUserTO();\n\t\t\tuserTO.setId(trip_userTO.getUserId());\n\t\t\tuserTO = appUserDAO.getAppUser(userTO);\n\t\t\ttrip_userTO.setUserTO(userTO);\n\t\t\ttrip_userTO.setTripId(rs.getInt(\"trip_id\"));\n\t\t\ttrip_userTO.setStFromLat(rs.getString(\"st_from_lat\"));\n\t\t\ttrip_userTO.setStFromLong(rs.getString(\"st_from_long\"));\n\t\t\ttrip_userTO.setEndToLat(rs.getString(\"end_from_lat\"));\n\t\t\ttrip_userTO.setEndToLong(rs.getString(\"end_from_long\"));\n\t\t\ttrip_userTO.setKmTravel(rs.getString(\"km_travel\"));\n\t\t\ttrip_userTO.setCarbonSaving(rs.getString(\"carbon_saving\"));\n\t\t\ttrip_userTO.setPayForRide(rs.getInt(\"pay_for_ride\"));\n\t\t\ttrip_userTO.setLastUpdatedDate(Utils.dbToUI(rs.getString(\"last_updated_date\")));\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"Error in TripDAO: rsToTrip\", e);\n\t\t}\n\t\treturn trip_userTO;\n\t}", "public static ArrayList<User> findAllUsers() {\n\n User targetUser = new User();\n IdentityMap<User> userIdentityMap = IdentityMap.getInstance(targetUser);\n\n String findAllUsers = \"SELECT * FROM public.member where type = 0\";\n PreparedStatement stmt = DBConnection.prepare(findAllUsers);\n ArrayList<User> userList = new ArrayList<User>();\n\n try {\n ResultSet rs = stmt.executeQuery();\n\n while(rs.next()) {\n User user = load(rs);\n\n targetUser = userIdentityMap.get(user.getId());\n if (targetUser == null) {\n userList.add(user);\n userIdentityMap.put(user.getId(), user);\n } else {\n userList.add(targetUser);\n }\n }\n DBConnection.close(stmt);\n rs.close();\n\n } catch (SQLException e) {\n System.out.println(\"Exception!\");\n e.printStackTrace();\n }\n return userList;\n }", "private Appuser newUser() {\n //TODO: get logged user from security context\n String createdBy = \"REST\";\n Appuser au = new Appuser();\n Userdetails ud = new Userdetails();\n boolean idOK = false;\n Long id = 0L;\n while (!idOK) {\n id = EntityIdGenerator.random();\n idOK = !userRepository.exists(id);\n }\n //notNull\n ud.setNotes(\"none\");\n au.setPasswdHash(\"*\");\n au.setCreatedBy(createdBy);\n au.setUserId(id);\n ud.setUserId(id);\n au.setUserdetails(ud);\n return au;\n }", "UserDTO fetchUser(String userId) throws UserException;", "public static CompanyUser createEntity(EntityManager em) {\n CompanyUser companyUser = new CompanyUser();\n return companyUser;\n }", "@Override\n\tpublic Contact toEntity(ResultSet rs) throws Exception {\n\t\tContact contact = new Contact();\n\t\tEntityUtils.fillEntity(rs, contact);\n\t\treturn contact;\n\t}", "public void setUserMap() {\n ResultSet rs = Business.getInstance().getData().getAllUsers();\n try {\n while (rs.next()) {\n userMap.put(rs.getString(\"username\"), new User(rs.getInt(\"id\"),\n rs.getString(\"name\"),\n rs.getString(\"username\"),\n rs.getString(\"password\"),\n rs.getBoolean(\"log\"),\n rs.getBoolean(\"medicine\"),\n rs.getBoolean(\"appointment\"),\n rs.getBoolean(\"caseAccess\")));\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public final synchronized User makeUser(String xmlString) throws Exception {\r\n Unmarshaller unmarshaller = this.jaxbContext.createUnmarshaller();\r\n return (User)unmarshaller.unmarshal(new StringReader(xmlString));\r\n }", "public User toUser(CreateUserVO createUserVO) {\n User user = new User();\n user.setFirstName(createUserVO.getFirstName());\n user.setLastName(createUserVO.getLastName());\n user.setUsername(createUserVO.getUsername());\n return user;\n }", "protected void populateDto(Utente dto, ResultSet rs) throws SQLException\n\t{\n\t\tdto.setUteId( rs.getLong( COLUMN_UTE_ID ) );\n\t\tdto.setUteCognome( rs.getString( COLUMN_UTE_COGNOME ) );\n\t\tdto.setUteNome( rs.getString( COLUMN_UTE_NOME ) );\n\t\tdto.setUteEmail( rs.getString( COLUMN_UTE_EMAIL ) );\n\t\tdto.setUtePassword( rs.getString( COLUMN_UTE_PASSWORD ) );\n\t\tdto.setUteLastLogin( rs.getDate(COLUMN_UTE_LAST_LOGIN ) );\n\t\tdto.setUteCellulare( rs.getString( COLUMN_UTE_CELLULARE ) );\n\t\tdto.setUteSesso( rs.getString( COLUMN_UTE_SESSO ) );\n\t\tdto.setUteDataNascita( rs.getDate(COLUMN_UTE_DATA_NASCITA ) );\n\t\tdto.setUteTitolo( rs.getLong( COLUMN_UTE_TITOLO ) );\n\t\tdto.setFkPaesi( rs.getLong( COLUMN_FK_PAESI ) );\n\t\tdto.setUteCartaNumero( rs.getString( COLUMN_UTE_CARTA_NUMERO ) );\n\t\tdto.setUteCartaTitolare( rs.getString( COLUMN_UTE_CARTA_TITOLARE ) );\n\t\tdto.setUteCartaScadMese( rs.getString( COLUMN_UTE_CARTA_SCAD_MESE ) );\n\t\tdto.setUteCartaScadAnno( rs.getString( COLUMN_UTE_CARTA_SCAD_ANNO ) );\n\t\tdto.setUteCartaUsaPerLav( rs.getString( COLUMN_UTE_CARTA_USA_PER_LAV ) );\n\t\tdto.setUteCartaUsaPerPremio( rs.getString( COLUMN_UTE_CARTA_USA_PER_PREMIO ) );\n\t\tdto.setUteTipologia( rs.getLong( COLUMN_UTE_TIPOLOGIA ) );\n\t\tif (rs.wasNull()) {\n\t\t\tdto.setUteTipologiaNull( true );\n\t\t}\n\t\t\n\t\tdto.setUteIndirizzo( rs.getString( COLUMN_UTE_INDIRIZZO ) );\n\t\tdto.setFkComune( rs.getLong( COLUMN_FK_COMUNE ) );\n\t\tif (rs.wasNull()) {\n\t\t\tdto.setFkComuneNull( true );\n\t\t}\n\t\t\n\t\tdto.setUteAzienda( rs.getString( COLUMN_UTE_AZIENDA ) );\n\t\tdto.setFkComuneAzienda( rs.getLong( COLUMN_FK_COMUNE_AZIENDA ) );\n\t\tif (rs.wasNull()) {\n\t\t\tdto.setFkComuneAziendaNull( true );\n\t\t}\n\t\t\n\t\tdto.setUteTelefonoAzienda( rs.getString( COLUMN_UTE_TELEFONO_AZIENDA ) );\n\t\tdto.setUtePivaAzienda( rs.getString( COLUMN_UTE_PIVA_AZIENDA ) );\n\t\tdto.setUteFotoProfiloPath( rs.getString( COLUMN_UTE_FOTO_PROFILO_PATH ) );\n\t\tdto.setUtePagamentiOnline( rs.getString( COLUMN_UTE_PAGAMENTI_ONLINE ) );\n\t\tdto.setUteQuandoPagare( rs.getString( COLUMN_UTE_QUANDO_PAGARE ) );\n\t\tdto.setUteFumatore( rs.getString( COLUMN_UTE_FUMATORE ) );\n\t\tdto.setUtenteStelle( rs.getString( COLUMN_UTENTE_STELLE ) );\n\t\tdto.setUteCamereOspitiDisabili( rs.getString( COLUMN_UTE_CAMERE_OSPITI_DISABILI ) );\n\t\tdto.setUteRistorante( rs.getString( COLUMN_UTE_RISTORANTE ) );\n\t\tdto.setUteConnessioneInternet( rs.getString( COLUMN_UTE_CONNESSIONE_INTERNET ) );\n\t\tdto.setUteCameraNonfumatori( rs.getString( COLUMN_UTE_CAMERA_NONFUMATORI ) );\n\t\tdto.setUtePalestra( rs.getString( COLUMN_UTE_PALESTRA ) );\n\t\tdto.setUteCamereFamiliari( rs.getString( COLUMN_UTE_CAMERE_FAMILIARI ) );\n\t\tdto.setUteAnimali( rs.getString( COLUMN_UTE_ANIMALI ) );\n\t\tdto.setUteParcheggio( rs.getString( COLUMN_UTE_PARCHEGGIO ) );\n\t\tdto.setUteSpaBenessere( rs.getString( COLUMN_UTE_SPA_BENESSERE ) );\n\t\tdto.setUteWifi( rs.getString( COLUMN_UTE_WIFI ) );\n\t\tdto.setUtePiscinaCoperta( rs.getString( COLUMN_UTE_PISCINA_COPERTA ) );\n\t\tdto.setUteNavettaAeroportuale( rs.getString( COLUMN_UTE_NAVETTA_AEROPORTUALE ) );\n\t\tdto.setUteConnessioneWifiGratuita( rs.getString( COLUMN_UTE_CONNESSIONE_WIFI_GRATUITA ) );\n\t\tdto.setUteBar( rs.getString( COLUMN_UTE_BAR ) );\n\t\tdto.setUteDepositoBagagli( rs.getString( COLUMN_UTE_DEPOSITO_BAGAGLI ) );\n\t\tdto.setUteReception24ore( rs.getString( COLUMN_UTE_RECEPTION24ORE ) );\n\t\tdto.setUtePerChiPrenoti( rs.getString( COLUMN_UTE_PER_CHI_PRENOTI ) );\n\t\tdto.setFkPreferenzaValuta( rs.getLong( COLUMN_FK_PREFERENZA_VALUTA ) );\n\t\tif (rs.wasNull()) {\n\t\t\tdto.setFkPreferenzaValutaNull( true );\n\t\t}\n\t\t\n\t\tdto.setUteCartaTipo( rs.getInt( COLUMN_UTE_CARTA_TIPO ) );\n\t\tif (rs.wasNull()) {\n\t\t\tdto.setUteCartaTipoNull( true );\n\t\t}\n\t\t\n\t\tdto.setUteCap( rs.getString( COLUMN_UTE_CAP ) );\n\t\tdto.setUteCapAzienda( rs.getString( COLUMN_UTE_CAP_AZIENDA ) );\n\t}", "private void createUsers() {\n\n\t\tList<User> UserList = Arrays.asList(new User(\"Kiran\", \"kumar\", \"[email protected]\", 20),\n\t\t\t\tnew User(\"Ram\", \"kumar\", \"[email protected]\", 22), new User(\"RamKiran\", \"LaxmiKiran\", \"[email protected]\", 30),\n\t\t\t\tnew User(\"Lakshamn\", \"Seth\", \"[email protected]\", 50), new User(\"Sita\", \"Kumar\", \"[email protected]\", 50),\n\t\t\t\tnew User(\"Ganesh\", \"Kumar\", \"[email protected]\", 50),\n\t\t\t\tnew User(\"KiranKiran\", \"kumar\", \"[email protected]\", 20),\n\t\t\t\tnew User(\"RamRam\", \"kumar\", \"[email protected]\", 22),\n\t\t\t\tnew User(\"RamKiranRamKiran\", \"LaxmiKiran\", \"[email protected]\", 30),\n\t\t\t\tnew User(\"RamKiranRamKiran\", \"Seth\", \"[email protected]\", 50),\n\t\t\t\tnew User(\"SitaSita\", \"Kumar\", \"[email protected]\", 50),\n\t\t\t\tnew User(\"GaneshSita\", \"Kumar\", \"[email protected]\", 50));\n\n\t\tIterable<User> list = userService.saveAllUsers(UserList);\n\t\tfor (User User : list) {\n\t\t\tSystem.out.println(\"User Object\" + User.toString());\n\n\t\t}\n\n\t}", "public User selectUser(String sql, String fieldname) {\n\t\tUser UserData = new User();\n\t\ttry {\n\t\t\tPreparedStatement prpstmt = null;\n\t\t\tResultSet rset;\n//\t\t\tUser UserData;\n\t\t\tprpstmt = conn.prepareStatement(sql);\n\t\t\tif (fieldname != \"\") {\n\t\t\t\tprpstmt.setString(1, fieldname);\n\t\t\t\trset = prpstmt.executeQuery();\n\n\t\t\t\tif (rset.first()) {\n\n\t\t\t\t\t// there's stuff to do\n\t\t\t\t\trset.beforeFirst();\n\t\t\t\t\t// counting row\n\t\t\t\t\tif (rset.last()) {\n\t\t\t\t\t\trset.beforeFirst(); // not rs.first() because the rs.next() below will move on, missing the\n\t\t\t\t\t\t\t\t\t\t\t// first\n\t\t\t\t\t\t\t\t\t\t\t// element\n\t\t\t\t\t}\n\t\t\t\t\twhile (rset.next()) {\n\n\t\t\t\t\t\tUserData.setId(rset.getString(1));\n\t\t\t\t\t\tUserData.setPword(rset.getString(2));\n\t\t\t\t\t\tUserData.setUname(rset.getString(3));\n\t\t\t\t\t\tUserData.setKana(rset.getString(4));\n\t\t\t\t\t\tUserData.setBirth(rset.getString(5));\n\t\t\t\t\t\tUserData.setClub(rset.getString(6));\n\t\t\t\t\t}\n\n\t\t\t\t\trset.close();\n\t\t\t\t\tprpstmt.close();\n\n\t\t\t\t\treturn UserData;\n\t\t\t\t} else {\n\t\t\t\t\t// rs was empty\n//\t\t\t\tString[][] rows = new String[0][0];\n\t\t\t\t\treturn UserData;\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"選択処理時に例外が発生しました。/Exception occured when processing select.\" + e);\n\t\t}\n\t\t// User UserDataNull;\n\t\treturn UserData;\n\n\t}", "public UsuarioDTO conocerUsuario(String usuario) {\n UsuarioDTO u = null;\n Conexion c = new Conexion();\n ResultSet rs = null;\n PreparedStatement ps = null;\n String sql = \"SELECT * FROM usuario WHERE usuario.usuario = ?\";\n try {\n ps = c.getConexion().prepareStatement(sql);\n u = new UsuarioDTO();\n ps.setString(1, usuario);\n rs = ps.executeQuery();\n while (rs.next()) {\n u.setID(rs.getInt(1));\n u.setNombre(rs.getString(2));\n u.setApellido(rs.getString(3));\n u.setDescripcion(rs.getString(4));\n u.setTelefono(rs.getString(5));\n u.setDireccion(rs.getString(6));\n u.setUsuario(rs.getString(7));\n u.setEmail(rs.getString(8));\n u.setPassword(rs.getString(9));\n u.setFecha_Nacimiento(rs.getString(10));\n u.setFecha_Creacion(rs.getString(11));\n u.setSexo(rs.getString(12));\n u.setImagen(rs.getAsciiStream(13));\n }\n\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n } finally {\n try {\n ps.close();\n rs.close();\n c.cerrarConexion();\n } catch (Exception ex) {\n }\n }\n return u;\n }", "@Select({\n \"select\",\n \"uid, username, password, sex, phonenumber, id_card, bank_card, bank_location, \",\n \"type, salt, is_able, create_time, parent_id, name\",\n \"from xxd_user\",\n \"where uid = #{uid,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"uid\", property=\"uid\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"username\", property=\"username\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"password\", property=\"password\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"sex\", property=\"sex\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"phonenumber\", property=\"phonenumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_card\", property=\"idCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_card\", property=\"bankCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_location\", property=\"bankLocation\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"type\", property=\"type\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"salt\", property=\"salt\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_able\", property=\"is_able\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"create_time\", property=\"create_time\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"parent_id\", property=\"parent_id\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR)\n })\n XxdUser selectByPrimaryKey(Integer uid);", "public static User selectById(int id) {\n User user = new User();\n\n try (PreparedStatement ps = DBConnection.getConnection().prepareStatement(GET_BY_ID)){\n ps.setInt(1, id);\n ResultSet rs = ps.executeQuery();\n\n while (rs.next()) {\n user.setUserId(rs.getInt(\"User_ID\"));\n user.setUserName(rs.getString(\"User_Name\"));\n user.setPassword(rs.getString(\"Password\"));\n user.setDateCreated(rs.getObject(\"Create_Date\", LocalDateTime.class));\n user.setCreatedBy(rs.getString(\"Created_By\"));\n user.setLastUpdate(rs.getTimestamp(\"Last_Update\"));\n user.setLastUpdatedBy(rs.getString(\"Last_Updated_By\"));\n //\n }\n } catch (SQLException err) {\n err.printStackTrace();\n }\n\n return user;\n }", "private ArrayList selectUsersFromDB(String query) {\n ArrayList aUserCollection = new ArrayList();\n Connection DBConn = null;\n try {\n DBHelper.loadDriver(\"org.apache.derby.jdbc.ClientDriver\");\n String myDB = \"jdbc:derby://localhost:1527/SilentAuction\";\n DBConn = DBHelper.connect2DB(myDB, \"itkstu\", \"student\");\n\n Statement stmt = DBConn.createStatement();\n ResultSet rs = stmt.executeQuery(query);\n String first_name, last_name, username,\n password, email, question, answer,\n street, city, state, zip,\n homePhone, cellPhone, permission;\n UserBean silentAuctionBean;\n while (rs.next()) {\n first_name = rs.getString(\"First_Name\");\n last_name = rs.getString(\"Last_Name\");\n username = rs.getString(\"Username\");\n password = rs.getString(\"Password\");\n email = rs.getString(\"Email\");\n street = rs.getString(\"Street\");\n city = rs.getString(\"City\");\n state = rs.getString(\"State\");\n zip = rs.getString(\"Zip\");\n homePhone = rs.getString(\"Home_Phone\");\n cellPhone = rs.getString(\"Cell_Phone\");\n question = rs.getString(\"Question\");\n answer = rs.getString(\"Answer\");\n permission = rs.getString(\"Permission_Level\");\n\n silentAuctionBean = new UserBean(first_name, last_name, username, street, city, state, zip,\n homePhone, cellPhone, email, password, question, answer, permission);\n \n // add the newly created object to the collection\n aUserCollection.add(silentAuctionBean);\n }\n rs.close();\n stmt.close();\n } catch (Exception e) {\n System.err.println(\"ERROR: Problems with SQL select\");\n e.printStackTrace();\n }\n try {\n DBConn.close();\n } catch (SQLException e) {\n System.err.println(e.getMessage());\n }\n return aUserCollection;\n }", "public userBean getUserById(int userId){\r\n\t\t\t//On cr�e une instance pour lui affecter apr�s les informations \r\n\t\t\t// r�cup�r�es par la recherche \r\n\t\t\tuserBean utilisateur = new userBean();\r\n\t\t\ttry {\r\n\t\t\t\tString sql = \"SELECT * FROM utilisateur WHERE id=?\";\r\n\t\t\t\tPreparedStatement ps = conn.prepareStatement(sql);\r\n\t\t\t\tps.setInt(1, userId);\r\n\t\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\t\t\tif(rs.next()){\r\n\t\t\t\t\t\tutilisateur.setID(rs.getInt(\"id\"));\r\n\t\t\t\t\t\tutilisateur.setNom(rs.getString(\"nom\"));\r\n\t\t\t\t\t\tutilisateur.setPrenom(rs.getString(\"prenom\"));\r\n\t\t\t\t\t}\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\treturn utilisateur;\r\n\t\t}", "public static ArrayList<User> selectUsers() {\n \n ArrayList<User> users = new ArrayList<>();\n ConnectionPool pool = ConnectionPool.getInstance();\n Connection connection = pool.getConnection();\n PreparedStatement ps = null;\n ResultSet rs = null;\n\n String query = \"SELECT * FROM users \";\n \n try {\n ps = connection.prepareStatement(query);\n rs = ps.executeQuery();\n ResultSetMetaData mD = rs.getMetaData();\n int colCount = mD.getColumnCount();\n User user = null;\n \n for (int i = 0; i < colCount; i++) {\n if (rs.next()) {\n user = new User();\n user.setUserID(rs.getInt(\"userID\"));\n user.setFirstName(rs.getString(\"firstName\"));\n user.setLastName(rs.getString(\"lastName\"));\n user.setEmail(rs.getString(\"email\"));\n user.setAddr1(rs.getString(\"addr1\"));\n user.setAddr2(rs.getString(\"addr2\"));\n user.setCity(rs.getString(\"city\"));\n user.setStateRegion(rs.getString(\"state\"));\n user.setZipcode(rs.getInt(\"zip\"));\n user.setCountry(rs.getString(\"country\"));\n user.setRoleName(rs.getString(\"roleName\"));\n System.out.println(user.getFirstName());\n users.add(user);\n }\n }\n return users;\n } catch (SQLException e) {\n System.out.println(e);\n return null;\n } finally {\n DBUtil.closeResultSet(rs);\n DBUtil.closePreparedStatement(ps);\n pool.freeConnection(connection);\n }\n }", "@Override\n public Users getUsers() throws UserException {\n Users users = new Users();\n log.debug(\"getUsers\");\n User user = null;\n ResultSet result;\n Connection conn = null;\n PreparedStatement stm = null;\n try {\n conn = provider.getConnection();\n\n stm = conn.prepareStatement(GET_ALL_USERS);\n result = stm.executeQuery();\n\n while (result.next()) {\n user = buildUserFromResult(result);\n log.debug(\"User found {}\", user);\n users.add((DataUser) user);\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n throw new UserException(e.getMessage());\n\n } finally {\n try {\n stm.close();\n conn.close();\n } catch (Exception e) {\n\n e.printStackTrace();\n }\n }\n return users;\n }", "protected static Question convertToInstance(ResultSet resultSet) throws ApplicationException {\n Question entity = null;\n\n try {\n if (resultSet.next()) {\n entity = new Question();\n entity.setId(resultSet.getInt(COL_QUESTION_ID));\n entity.setQuestionText(resultSet.getString(COL_QUESTION_TEXT));\n entity.setTimestamp(resultSet.getTimestamp(COL_QUESTION_TIMESTAMP));\n entity.setSkipped(resultSet.getInt(COL_SKIPPED));\n entity.setDifficultyRating(resultSet.getFloat(COL_DIFFICULTY_RATING));\n entity.setReported(resultSet.getInt(COL_REPORTED));\n entity.setUserId(resultSet.getInt(COL_USER_ID));\n entity.setHas_follow_up_question(resultSet.getBoolean(COL_HAS_FOLLOW_UP));\n entity.setPrevious_question_id(resultSet.getInt(COL_PREVIOUS_ID));\n entity.setRatingCounter(resultSet.getInt(COL_RATING_COUNTER));\n return entity;\n }\n } catch (SQLException e) {\n throw new ApplicationException(\"Failed to convert resultSet to entity.\", e);\n }\n\n return entity;\n }", "public User(String un, String pw) throws ClassNotFoundException, SQLException, ParseException, Exception{\n Class.forName(\"com.mysql.cj.jdbc.Driver\");\n Connection conn = DriverManager.getConnection(\"jdbc:mysql://localhost/baitaplon\", \"root\", \"123456789\");\n Statement stm = conn.createStatement();\n ResultSet rs = stm.executeQuery(\"SELECT * FROM user\");\n while(rs.next()){\n if(un.toUpperCase().equals(rs.getString(\"username\").toUpperCase())\n && pw.toUpperCase().equals(rs.getString(\"password\").toUpperCase())){\n SimpleDateFormat f = new SimpleDateFormat(\"yyyy-MM-dd\");\n String dob = rs.getString(\"dateofbirth\");\n String dos = rs.getString(\"dateofstart\");\n this.username = rs.getString(\"username\");\n this.password = rs.getString(\"password\");\n this.fullName = rs.getString(\"fullname\");\n this.country = rs.getString(\"country\");\n this.gender = rs.getString(\"gender\");\n this.dob = f.parse(dob);\n this.accessDate = f.parse(dos);\n break;\n }\n }\n if(this.username == null)\n throw new Exception(\"Incorrect username or password.\");\n \n stm.close();\n conn.close();\n }", "private UserBean buildUserBean(HttpServletRequest request) {\n\t\tAccount account = UserManager.getCurrentUser(request.getSession());\n \t\n \tUserBean userBean = new UserBean();\n \tuserBean.setFirstName(account.getGivenName());\n \tuserBean.setLastName(account.getSurname());\n \tString phoneNumber = \"\";\n \tif (account.getCustomData().get(\"phoneNumber\") != null) {\n \t\tphoneNumber = account.getCustomData().get(\"phoneNumber\").toString();\n \t}\n \tuserBean.setPhoneNumber(phoneNumber);\n \tString phoneCarrier = \"\";\n \tif (account.getCustomData().get(\"phoneCarrier\") != null) {\n \t\tphoneCarrier = account.getCustomData().get(\"phoneCarrier\").toString();\n \t}\n \tuserBean.setPhoneCarrier(phoneCarrier);\n \tString uniqueId = \"\";\n \tif (account.getCustomData().get(\"uniqueId\") != null) {\n \t\tuniqueId = account.getCustomData().get(\"uniqueId\").toString();\n \t}\n \tuserBean.setUniqueId(uniqueId);\n \t\n \treturn userBean;\n\t}", "public UserRecord(Integer idUser, String name, String surname, String title, LocalDateTime dateBirth, LocalDateTime dateCreate, LocalDateTime dateUpdate, LocalDateTime dateDelete, String govId, String username, String password, String email, String gender, String status) {\n super(User.USER);\n\n set(0, idUser);\n set(1, name);\n set(2, surname);\n set(3, title);\n set(4, dateBirth);\n set(5, dateCreate);\n set(6, dateUpdate);\n set(7, dateDelete);\n set(8, govId);\n set(9, username);\n set(10, password);\n set(11, email);\n set(12, gender);\n set(13, status);\n }", "public User createUser() {\n printer.println(\"Welcome! Enter you name and surname:\");\n printer.println(\"Name:\");\n String name = input.nextString();\n printer.println(\"Surname:\");\n String surname = input.nextString();\n return new User(name, surname);\n }", "private User buildUserFromResource(Resource resource) {\n\t\treturn new User(\n\t\t\t\tresource.getProperty(this.id).getString(),\n\t\t\t\tresource.getProperty(this.foaf_name).getString(),\n\t\t\t\tresource.getProperty(this.screenName).getString(),\n\t\t\t\tresource.getProperty(this.locationName).getString(),\n\t\t\t\tresource.getProperty(this.description).getString(),\n\t\t\t\tresource.getProperty(this.depiction).getString()\n );\t\n\t}", "private void toUser() {\n this.dispose();\n new User(username);\n }", "public static ExUser createEntity(EntityManager em) {\n ExUser exUser = new ExUser()\n .userKey(DEFAULT_USER_KEY);\n return exUser;\n }", "@Override\n protected ShowbaseUserBean createUserBean(Member userEntity) {\n return new ShowbaseUserBean(userEntity);\n }", "@Override\n\tpublic Class getEntityClass() {\n\t\treturn User.class;\n\t}", "public UserData(String firstName, String lastName, String patronymic, String email, String phone, int userId) {\n this.firstName = firstName;\n this.lastName = lastName;\n this.patronymic = patronymic;\n this.email = email;\n this.phone = phone;\n this.userId = userId;\n }", "public void makeUser(String user){\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(new StringBuilder().append(\"SELECT id, password, weight, height, weight_goal, step_goal FROM \" + TABLE_USERS + \" WHERE username = '\").append(user).append(\"'\").toString(), null);\n\n cursor.moveToFirst();\n\n User.setUsername(user);\n User.setUserID(cursor.getInt(0));\n User.setUserPassword(cursor.getString(1));\n User.setUserWeight(cursor.getString(2));\n User.setUserHeight(cursor.getString(3));\n User.setUserWeightGoal(cursor.getString(4));\n User.setUserStepGoal(cursor.getString(5));\n\n cursor.close();\n\n }", "@Override\n\t\t\t\t\t\tpublic Employee mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\t\t\tEmployee emp = new Employee();\n\t\t\t\t\t\t\temp.setEmployeeId(rs.getInt(\"empid\"));\n\t\t\t\t\t\t\temp.setFirstName(rs.getString(\"fname\"));\n\t\t\t\t\t\t\temp.setLastName(rs.getString(\"lname\"));\n\t\t\t\t\t\t\temp.setEmail(rs.getString(\"email\"));\n\t\t\t\t\t\t\temp.setDesignation(rs.getString(\"desig\"));\n\t\t\t\t\t\t\temp.setLocation(rs.getString(\"location\"));\n\t\t\t\t\t\t\temp.setSalary(rs.getInt(\"salary\"));\n\t\t\t\t\t\t\treturn emp;\n\t\t\t\t\t\t}", "@Override\n\tpublic List<User> getallUserDetail() {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\t\t// select all from table user\n\t\tString sql = \"SELECT * FROM user\";\n\t\tList<User> listuser = jdbcTemplate.query(sql, new RowMapper<User>() {\n\n\t\t\t@Override\n\t\t\tpublic User mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\tUser user = new User();\n\t\t\t\t// set parameters\n\t\t\t\tuser.setUserid(rs.getLong(\"user_id\"));\n\t\t\t\tuser.setEmailid(rs.getString(\"emailid\"));\n\t\t\t\tuser.setAppversion(rs.getString(\"appversion\"));\n\t\t\t\tuser.setGcmregistartionkey(rs.getString(\"gcmregistartionkey\"));\n\t\t\t\tuser.setMobileno(rs.getString(\"mobileno\"));\n\t\t\t\tuser.setUuid(rs.getString(\"uuid\"));\n\t\t\t\tuser.setUsername(rs.getString(\"username\"));\n\t\t\t\tuser.setCreateddate(rs.getDate(\"createddate\"));\n\t\t\t\treturn user;\n\t\t\t}\n\n\t\t});\n\n\t\treturn listuser;\n\n\t}", "public static User createUser(Integer userId, String firstName, String lastName,\r\n\t\t\tString email, String userName, String companyName) {\r\n\t\tUser user = new User();\r\n\t\tif (userId != null) {\r\n\t\t\tuser.setUserId(userId);\r\n\t\t}\r\n\t\tuser.setFirstName(firstName);\r\n\t\tuser.setLastName(lastName);\r\n\t\tuser.setEmail(email);\r\n\t\tuser.setUserName(userName);\r\n\t\tuser.setCompanyName(companyName); \r\n\t\treturn user;\r\n\t}", "public User getUserByID(long id)throws SQLException, ClassNotFoundException ;", "public List<User> getAllUsers() throws ClassNotFoundException, SQLException {\n\t\tConnection con = DBConnection.getConnection();\r\n\t\tList<User> userList = new ArrayList<>();\r\n\t\tList list = new ArrayList<>();\r\n\t\tUser user = null;\r\n\t\tCourse course =new Course(); \r\n\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = con.prepareStatement(\"SELECT user_table.user_id,user_table.name,user_table.age,user_table.gender,user_table.contact_number,user_course.course_code,course.name FROM user_table JOIN user_course ON user_table.user_id=user_course.user_id join course on user_course.vendor_id=course.user_id\");\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\t \r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tuser = new User();\r\n user.setId(rs.getInt(1));\r\n\t\t\t\tuser.setName(rs.getString(2));\r\n\t\t\t\tuser.setAge(rs.getInt(3));\r\n\t\t\t\tuser.setGender(rs.getString(4));\r\n\t\t\t\tuser.setContactNumber(rs.getInt(5));\r\n\t\t\t\tuser.setCid(rs.getInt(6));\r\n\t\t\t user.setCname( rs.getString(7));\r\n\t\t\t\tuserList.add(user);\r\n\t\t\t\t \r\n\t\t\t\t \r\n\t\t\t\t \r\n\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n \r\n\t\treturn userList;\r\n\r\n\t}", "public IndividualUser getUser(String userId) {\n try {\n PreparedStatement s = sql.prepareStatement(\"SELECT id, userName, firstName, lastName, friends FROM Users WHERE userName=?;\");\n s.setString(1,userId);\n\n s.execute();\n\n\n ResultSet results = s.getResultSet();\n if (!results.isBeforeFirst()) {\n results.close();\n s.close();\n return null;\n } else {\n results.next();\n IndividualUser u = new IndividualUser(results.getInt(1), results.getString(2), results.getString(3), results.getString(4), results.getString(5), getEvents(userId));\n results.close();\n s.close();\n return u;\n }\n\n } catch (SQLException e) {\n sqlException(e);\n return null;\n }\n }", "public Validation mapRow(ResultSet rs, int row) throws SQLException {\n\t\t\t\tValidation v=new Validation();\r\n\t\t\t\tv.setUsername(rs.getString(\"user_name\"));\r\n\t\t\t\tv.setPassword(rs.getString(\"password\"));\r\n\t\t\t\treturn v;\r\n\t\t\t}", "@Override\n public User selectUserByUsername(String username) {\n\n User ersUser = new User();\n\n try (Connection connection = DriverManager.getConnection(URL, USERNAME, PASSWORD)) {\n\n //String sql = \"SELECT ers_username FROM ers_users WHERE ers_username = ?\";\n String sql = \"SELECT * FROM user_join WHERE username = ?\";\n\n PreparedStatement ps = connection.prepareStatement(sql);\n\n ps.setString(1, username);\n\n ResultSet rs = ps.executeQuery();\n\n if (rs.next()) {\n\n ersUser.setUserId(rs.getInt(1));\n ersUser.setUsername(rs.getString(2));\n ersUser.setPassword(rs.getString(3));\n ersUser.setFirstName(rs.getString(4));\n ersUser.setLastName(rs.getString(5));\n ersUser.setEmail(rs.getString(6));\n ersUser.setRoleType(rs.getString(7));\n }\n }\n\n catch (SQLException e) {\n\n e.printStackTrace();\n }\n\n return ersUser;\n }", "@Override\n\tpublic IUser creatUser() {\n\t\treturn new SqlServerUser();\n\t}", "private User createUser(int index, boolean deleted) {\n User entity = new User();\n\n entity.setDeleted(deleted);\n entity.setUsername(\"username\" + index);\n entity.setDefaultTab(ActionTab.ADMIN);\n entity.setNetworkId(\"networkId\" + index);\n\n Role role = new Role();\n role.setName(\"role\" + index);\n entity.setRole(role);\n create(entity.getRole());\n\n entity.setFirstName(\"firstName\" + index);\n entity.setLastName(\"lastName\" + index);\n entity.setEmail(\"email\" + index);\n entity.setTelephone(\"telephone\" + index);\n\n UserStatus userStatus = new UserStatus();\n userStatus.setName(\"userStatus\" + index);\n entity.setStatus(userStatus);\n create(entity.getStatus());\n\n create(entity);\n\n return entity;\n }", "public User getUser(String id){\n \t\t// execute query\n \t\tString query = \"SELECT * FROM users WHERE id = '\" + id + \"'\";\n \t\tResultSet rs = getResult(query);\n \t\t\n \t\t// check if result is empty\n \t\ttry {\n \t\t\tif(rs.next() == false) return null;\n \t\t} catch (SQLException e) {e.printStackTrace();}\n \t\t\n \t\t// otherwise create user with query result\n \t\tString hash = null;\n \t\tboolean isAdmin = false;\n \t\ttry {\n \t\t\thash = rs.getString(\"hash\");\n \t\t} catch (SQLException e) {e.printStackTrace();}\n \t\t\n \t\ttry {\n \t\t\tisAdmin = rs.getBoolean(\"isAdmin\");\n \t\t} catch (SQLException e) {e.printStackTrace();}\n \t\t\n \t\tString image = \"\";\n \t\ttry {\n \t\t\timage = rs.getString(\"image_url\");\n \t\t} catch (SQLException e) {e.printStackTrace();}\n \t\t\n \t\treturn new User(id, hash, isAdmin, this, image);\t\t\n \t}", "User loadUser(int id) throws DataAccessException;", "@Override\r\n\tpublic User getUserByUsername(String userName) throws ClassNotFoundException, IOException, SQLException\r\n\t{\r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement stmt = null;\r\n\t\tResultSet rs = null;\r\n\t\tOracleConnection orcl = new OracleConnection();\r\n\t\r\n\t\t//Create List Object to return, and User Object to to store in list from database.\r\n\t\tList<User> userList = null;\r\n\t\tUser user = null;\r\n\t\r\n\t\tString fetchString = \"SELECT * FROM users WHERE user_name = ?\";//Since username is unique, only one user can be generated\r\n\t\ttry\r\n\t\t{\r\n\t\t\tconn = orcl.getConnection();\r\n\t\t\tstmt = conn.prepareStatement(fetchString);\r\n\t\t\tstmt.setString(1, userName);\r\n\t\t\trs = stmt.executeQuery();\r\n\t\t\tuserList = new ArrayList<User>();\r\n\t\t\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tuser = new User(rs.getString(2), rs.getString(3), rs.getString(4));\r\n\t\t\t\tuser.setUserId(rs.getInt(1));\r\n\t\t\t\tuserList.add(user);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(SQLException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Error: \" + e.getMessage());\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t\tif (rs != null) \r\n\t\t\t{\r\n\t\t\t\trs.close();\r\n\t\t\t}\r\n\t\t\tif (stmt != null) \r\n\t\t\t{\r\n\t\t\t\tstmt.close();\r\n\t\t\t}\r\n\t\t\tif (conn != null) \r\n\t\t\t{\r\n\t\t\t\tconn.close();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn user;\r\n\t}", "public UserEntity() {\n\t\tsuper();\n\t}", "private User getUserDto(String userName, String role){\n User user = new User();\n user.setRole(role);\n user.setUserName(userName);\n return user;\n }", "public void instantiateEmployees(ResultSet resultSet) throws SQLException {\n\n\t\t\n\t\twhile (resultSet.next()) {\n\t\t\t// Instantiate\n\t\t\tEmployee employee = new Employee(\n\t\t\t\t\tresultSet.getString(EmployeeColumns.Email.colNr()),\n\t\t\t\t\tresultSet.getString(EmployeeColumns.Name.colNr()),\n\t\t\t\t\tresultSet.getInt(EmployeeColumns.Telephone.colNr())\n\t\t\t\t);\n\t\t\t\n\t\t\t// Add to model\n\t\t\tmodel.addEmployee(employee);\n\t\t}\n\t}", "public ArrayList<SimUser> generateUsers(){\n simUserFact = new SimUserFactory();\r\n simUserStateFact = new SimUserStateFactory();\r\n \r\n ArrayList<SimUser> su = new ArrayList<SimUser>();\r\n\r\n // Generate a set amount of each type of user with their state set to shopping\r\n for(int x =0; x < COMPANYUSERS; x++)\r\n su.add(simUserFact.createUser(\"Company\", simUserStateFact.getUserState(\"Shopping\"), simUserStateFact));\r\n \r\n for(int x = 0; x < INDIVIDUALUSERS; x++)\r\n su.add(simUserFact.createUser(\"Person\", simUserStateFact.getUserState(\"Shopping\"), simUserStateFact));\r\n \r\n return su;\r\n }", "private List<User> createUserList() {\n for (int i = 1; i<=5; i++) {\n User u = new User();\n u.setId(i);\n u.setEmail(\"user\"+i+\"@mail.com\");\n u.setPassword(\"pwd\"+i);\n userList.add(u);\n }\n return userList;\n }", "public static User getRecordById(int id){ \n User u=null; \n try{ \n //membuka koneksi\n Connection con=Koneksi.openConnection(); \n //melakukan query database untuk menampilkan data berdasarkan id atau primary key\n PreparedStatement ps=con.prepareStatement(\"select * from t_user where id=?\"); \n ps.setInt(1,id); \n ResultSet rs=ps.executeQuery(); \n while(rs.next()){ \n u=new User(); \n u.setId(rs.getInt(\"id\")); \n u.setUserName(rs.getString(\"user_name\")); \n u.setNamaLengkap(rs.getString(\"nama_lengkap\")); \n u.setPassword(rs.getString(\"password\")); \n u.setHakAkses(rs.getString(\"hak_akses\"));\n } \n }catch(Exception e){System.out.println(e);} \n return u; \n }", "@Override\n\tpublic User getUserInfo(String username) throws BusinessException, UserException {\n\t\tUser user = new User();\n\t\tuser = (User) userDao.getUserByUsername(username);\n\t\treturn user;\n\t}", "public User getUser(String nombre) {\n User u = new User();\n try {\n PreparedStatement pstm = null;\n ResultSet rs = null;\n String query = \"SELECT *FROM user WHERE name= ?\";\n pstm = con.prepareStatement(query);\n pstm.setString(1, nombre);\n rs = pstm.executeQuery();\n while (rs.next()) {\n u.setName(rs.getString(\"name\"));\n u.setEmail(rs.getString(\"email\"));\n u.setPicture(rs.getString(\"imagen_user\"));\n u.setPassword(rs.getString(\"password\"));\n u.setId_role(rs.getInt(\"ID_Rol\"));\n }\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n return u;\n }", "public User(){\r\n this.id = 0;\r\n this.firstName = null;\r\n this.lastName = null;\r\n }", "public User getUserData(String uEmail){\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor res = db.rawQuery(\"SELECT * FROM \" + TABLE_NAME + \" WHERE userEmail=\" + uEmail , null);\n User user = new User(res.getString(0), res.getString(1), res.getInt(2));\n res.close();\n return user;\n }", "List<T> createEntityList(ResultSet resultSet)\n throws CreatorException;", "public Users getUniqueUser(String q)\n\t{\n\t\tUsers user = null;\n\n\t\tQuery query = QueryFactory.create( getPrefix() + q );\n\n\t\tQueryExecution qexec = QueryExecutionFactory.create( query, ontModel );\n\n\t\ttry \n\t\t{\n ResultSet results = qexec.execSelect();\n\n\t\t\tif(results.hasNext())\n\t\t\t{\n\t\t\t\tQuerySolution soln = results.nextSolution();\n\n\t\t\t\tString email = getLiteral(soln, \"email\");\n\t\t\t\tString password = getLiteral(soln, \"password\");\n\t\t\t\tString name = getLiteral(soln, \"name\");\n\t\t\t\tString firstName = getLiteral(soln, \"firstName\");\n\t\t\t\tString adresse = getLiteral(soln, \"adresse\");\n\t\t\t\tString tel = getLiteral(soln, \"tel\");\n\t\t\t\tString country = getLiteral(soln, \"country\");\n\t\t\t\tString title = getLiteral(soln, \"title\");\n\t\t\t\tString sexe = getLiteral(soln, \"sexe\");\n\n\t\n\t\t\t\tuser = new Users(name, firstName, email, password,\n\t\t\t\t\ttitle, sexe, adresse, tel, country);\t\n\t\t\t}\n }\n finally {\n qexec.close();\n }\n\n\t\treturn user;\n\n\t}", "public Validation mapRow(ResultSet rs, int row) throws SQLException {\n\t\t\t\tValidation v=new Validation();\r\n\t\t\t\tv.setUsername(rs.getString(\"username\"));\r\n\t\t\t\tv.setPassword(rs.getString(\"password\"));\r\n\t\t\t\treturn v;\r\n\t\t\t}", "protected Utente fetchSingleResult(ResultSet rs) throws SQLException\n\t{\n\t\tif (rs.next()) {\n\t\t\tUtente dto = new Utente();\n\t\t\tpopulateDto( dto, rs);\n\t\t\treturn dto;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t}", "public User queryUser(String userName) {\n \tUser userResult = null;\n String sql = \"SELECT * FROM users WHERE user_name = ?\";\n\ttry {\n this.statement = connection.prepareStatement(sql);\n this.statement.setString(1, userName);\n this.resultSet = this.statement.executeQuery();\n\n if(this.resultSet.next()){\n userResult = new User(); \n\t\tuserResult.setUserName(this.resultSet.getString(\"user_name\"));\n userResult.setHashedPassword(this.resultSet.getString(\"hashed_password\"));\n\t\tuserResult.setEmail(this.resultSet.getString(\"email\"));\n userResult.setHashedAnswer(this.resultSet.getString(\"hashed_answer\"));\n userResult.setIsActivated(this.resultSet.getInt(\"is_activated\"));\n userResult.setPublicKey(this.resultSet.getString(\"pubkey\"));\n }\n statement.close();\n }\n catch(SQLException ex) {\n Logger.getLogger(UserDBManager.class.getName()).log(Level.SEVERE, null, ex);\n }\n\treturn userResult;\n }", "public UserDTO(int id, String fName, String lName, String email, String username, Date birthdate, Date created){\n this.id = id;\n this.firstName = fName;\n this.lastName = lName;\n this.email = email;\n this.username = username;\n this.birthdate = birthdate;\n this.created = created;\n }", "@Override\r\n\t\t\tpublic Employee mapRow(ResultSet rs, int row) throws SQLException {\n\t\t\t\tEmployee emp = new Employee();\r\n\t\t\t\temp.setNo(rs.getInt(\"EMP_NO\"));\r\n\t\t\t\temp.setName(rs.getString(\"EMP_NAME\"));\r\n\t\t\t\temp.setPhone(rs.getString(\"EMP_PHONE\"));\r\n\t\t\t\temp.setPosition(rs.getString(\"EMP_POSITION\"));\r\n\t\t\t\temp.setEmail(rs.getString(\"EMP_EMAIL\"));\r\n\t\t\t\treturn emp;\r\n\t\t\t}", "public User getUser(String email, String password) {\n User user = new User();\n // array of columns to fetch\n String[] columns = {\n COLUMN_USER_ID,\n COLUMN_USER_NAME,\n COLUMN_USER_EMAIL,\n COLUMN_USER_IMAGE,\n COLUMN_USER_CURRMONTH_ID\n };\n // selection criteria\n String selection = COLUMN_USER_EMAIL + \" = ?\" + \" AND \" + COLUMN_USER_PASSWORD + \" = ?\";\n \n // selection arguments\n String[] selectionArgs = {email, password};\n \n // query user table with conditions\n /**\n * Here query function is used to fetch records from user table this function works like we use sql query.\n * SQL query equivalent to this query function is\n * SELECT user_id FROM user WHERE user_email = '[email protected]' AND user_password = 'qwerty';\n */\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.query(\n TABLE_USER, //Table to query\n columns, //columns to return\n selection, //columns for the WHERE clause\n selectionArgs, //The values for the WHERE clause\n null, //group the rows\n null, //filter by row groups\n null); //The sort order\n int cursorCount = cursor.getCount();\n\n if (cursorCount == 1 && cursor.moveToFirst()) {\n user.setId(Integer.parseInt(cursor.getString(cursor.getColumnIndex(COLUMN_USER_ID))));\n user.setName(cursor.getString(cursor.getColumnIndex(COLUMN_USER_NAME)));\n user.setEmail(cursor.getString(cursor.getColumnIndex(COLUMN_USER_EMAIL)));\n byte[] imgByte = cursor.getBlob(3);\n user.setImage(BitmapFactory.decodeByteArray(imgByte, 0, imgByte.length));\n user.setCurrMonth(Integer.parseInt(cursor.getString(cursor.getColumnIndex(COLUMN_USER_CURRMONTH_ID))));\n }\n cursor.close();\n db.close();\n\n return user;\n }", "private List<Organization> extractOrganizationsFromResult(ResultSet resultSet) throws SQLException {\n\t\tList<Organization> result = new ArrayList<Organization>();\n\t\n\t\t// process the extractions - there will only be one user\n\t\t//\n\t\twhile (resultSet.next()) {\n\t\t\tOrganization organization = new Organization();\n\t\t\t\n\t\t\t// extract the data\n\t\t\tlong id = resultSet.getLong(\"id\");\n String name = resultSet.getString(\"name\");\n String description = resultSet.getString(\"description\");\n \n // populate the User entity\n organization.setName(name);\n organization.setId(id);\n organization.setDescription(description);\n \n // add the user to the list\n result.add(organization);\n }\n\t\treturn result;\n\t}", "public User getUserByUid(String uid) throws Exception {\n\t\tUser user = new User();\r\n\t\tString sql = \"select * from user where uid = ? limit 1\";\r\n\t\tObject[] params = { uid };\r\n\t\tdb.doPstm(sql, params);\r\n\t\tResultSet rs = db.getRs();\r\n\t\trs.next();\r\n\t\tuser.setCode(rs.getString(\"code\"));\r\n\t\tuser.setBirthday(rs.getString(\"birthday\"));\r\n\t\tuser.setEmail(rs.getString(\"email\"));\r\n\t\tuser.setName(rs.getString(\"name\"));\r\n\t\tuser.setPassword(rs.getString(\"password\"));\r\n\t\tuser.setSex(rs.getString(\"sex\"));\r\n\t\tuser.setState(rs.getInt(\"state\"));\r\n\t\tuser.setTelephone(rs.getString(\"telephone\"));\r\n\t\tuser.setUsername(rs.getString(\"username\"));\r\n\t\tdb.closed();\r\n\t\treturn user;\r\n\t}", "public void populateUserDetails() {\n\n this.enterprise = system.getOpRegionDirectory().getOperationalRegionList()\n .stream().filter(op -> op.getRegionId() == user.getNetworkId())\n .findFirst()\n .get()\n .getBuDir()\n .getBusinessUnitList()\n .stream()\n .filter(bu -> bu.getUnitType() == BusinessUnitType.CHEMICAL)\n .map(unit -> (ChemicalManufacturingBusiness) unit)\n .filter(chemBusiness -> chemBusiness.getEnterpriseId() == user.getEnterpriseId())\n .findFirst()\n .get();\n\n this.organization = (ChemicalManufacturer) enterprise\n .getOrganizationList().stream()\n .filter(o -> o.getOrgId() == user.getOrganizationId())\n .findFirst()\n .get();\n\n }", "public UserData prepareUserData() throws IOException {\n\n String userName = dataGenerator.prepareUserName();\n String firstName = dataGenerator.prepareFirstName();\n String lastName = dataGenerator.prepareLastName() ;\n String email = dataGenerator.prepareEmail();\n String password = dataGenerator.preparePassword();\n\n return new UserData(userName,firstName,lastName,email,password);\n }", "@Override\r\n public UserModel queryUserModel(String userName) {\n System.out.println(\"query sys user build user model.\");\r\n return new UserModel(\"111\", \"sys\", \"123456\");\r\n }" ]
[ "0.78583235", "0.7425982", "0.7152445", "0.70088905", "0.6879028", "0.6752572", "0.67412484", "0.6690627", "0.6666585", "0.6624024", "0.64798254", "0.63965285", "0.6343691", "0.6274314", "0.6260147", "0.6168227", "0.61184275", "0.60784245", "0.6062312", "0.6022414", "0.5956769", "0.59306204", "0.59305674", "0.5923307", "0.5912476", "0.589537", "0.58893925", "0.5873778", "0.5861418", "0.5851263", "0.58437485", "0.58293355", "0.58243996", "0.58240217", "0.5811749", "0.581106", "0.58046645", "0.57996833", "0.5795991", "0.57855374", "0.57811993", "0.5769272", "0.5768333", "0.57621956", "0.57558954", "0.5747253", "0.57418257", "0.572772", "0.57243925", "0.57200104", "0.57189536", "0.571651", "0.5707284", "0.56985575", "0.56914663", "0.56634015", "0.5662012", "0.5650705", "0.56396425", "0.5634262", "0.56335247", "0.56321096", "0.5625687", "0.56244755", "0.5616355", "0.5614882", "0.5614676", "0.5608648", "0.56052744", "0.5603454", "0.5602513", "0.55944586", "0.55932474", "0.55916107", "0.5586084", "0.55839765", "0.55826175", "0.55825037", "0.5581696", "0.5581133", "0.5579787", "0.5577657", "0.55744064", "0.5568412", "0.5555898", "0.5549832", "0.5543569", "0.5534564", "0.55306894", "0.5526612", "0.5525312", "0.55241567", "0.5516592", "0.5515684", "0.5514931", "0.5514696", "0.55056", "0.55050087", "0.5502177", "0.55000836" ]
0.73460495
2
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_project_list, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.68621665", "0.68621665", "0.68621665", "0.68515885", "0.68467957", "0.68194443", "0.6817494", "0.6813087", "0.6813087", "0.6812847", "0.6805774", "0.6801204", "0.6797914", "0.6791314", "0.6789091", "0.67883503", "0.6783642", "0.6759701", "0.6757412", "0.67478645", "0.6744127", "0.6744127", "0.67411774", "0.6740183", "0.6726017", "0.6723245", "0.67226785", "0.67226785", "0.67208904", "0.67113477", "0.67079866", "0.6704564", "0.6699229", "0.66989094", "0.6696622", "0.66952467", "0.66865396", "0.6683476", "0.6683476", "0.6682188", "0.6681209", "0.6678941", "0.66772443", "0.6667702", "0.66673946", "0.666246", "0.6657578", "0.6657578", "0.6657578", "0.6656586", "0.66544783", "0.66544783", "0.66544783", "0.66524047", "0.6651954", "0.6650132", "0.66487855", "0.6647077", "0.66467404", "0.6646615", "0.66464466", "0.66449624", "0.6644209", "0.6643461", "0.6643005", "0.66421187", "0.6638628", "0.6634786", "0.6633529", "0.6632049", "0.6632049", "0.6632049", "0.66315657", "0.6628954", "0.66281766", "0.6627182", "0.6626297", "0.6624309", "0.6619582", "0.6618876", "0.6618876" ]
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_add_project) { Intent intent = new Intent(this, AddProjectActivity.class); startActivity(intent); return true; } if (id == R.id.action_join_project) { Intent intent = new Intent(this, ProjectActivity.class); startActivity(intent); return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }" ]
[ "0.7904231", "0.78061396", "0.7767007", "0.77273244", "0.76318634", "0.7621818", "0.7585249", "0.7531511", "0.7488678", "0.74574006", "0.74574006", "0.7439257", "0.7421747", "0.7403457", "0.73920685", "0.7387285", "0.7379893", "0.73710734", "0.7363068", "0.73565257", "0.7346117", "0.73421544", "0.73308754", "0.7328614", "0.7326444", "0.73191214", "0.7316894", "0.73141056", "0.7304816", "0.7304816", "0.73023325", "0.7298775", "0.7294159", "0.72872293", "0.7283658", "0.72814363", "0.72793216", "0.72604835", "0.72604835", "0.72604835", "0.72604495", "0.7260065", "0.72506464", "0.7223512", "0.7220288", "0.721808", "0.7204778", "0.72007537", "0.7199708", "0.7193875", "0.7185878", "0.7178243", "0.7169468", "0.7168278", "0.71544755", "0.7154114", "0.71363086", "0.7135266", "0.7135266", "0.7129425", "0.71291506", "0.712514", "0.71239674", "0.7123848", "0.71223545", "0.7118021", "0.7117761", "0.7117381", "0.7117381", "0.7117381", "0.7117381", "0.7117378", "0.71157014", "0.7112743", "0.71105623", "0.710936", "0.7106081", "0.7100549", "0.7099009", "0.70957214", "0.7094029", "0.7094029", "0.7086948", "0.70828027", "0.70810676", "0.7080609", "0.707419", "0.70687926", "0.7062512", "0.70614976", "0.70604354", "0.7051683", "0.7037832", "0.7037832", "0.7036669", "0.70357877", "0.70357877", "0.7033191", "0.7030764", "0.70303047", "0.70192975" ]
0.0
-1
Service for working with json. It allows to parse json to an object, a map or a collection and vice versa. Note: It has moved from the old JSONParseUtil class.
public interface JSONParserService extends Service { /** * Parses from json to map * * @param json data * @return Map<String, Object> or null, if json equals null */ Map<String, Object> parseToMap(String json); /** * Parses from map to json * * @param data map with data * @return json or null, if map equals null */ String parseMapToJson(Map<String, Object> data); /** * Parses from object to json * * @param obj object that will be parsed to json * @return json or null if invalid data */ String parseObjectToJson(Object obj); /** * Parses from json to object of T class * * @param json string of json with data object * @param classObject type object * * @return T object or null, if transferred incorrect data */ <T> T parseToObject(Object json, Class<T> classObject); /** * Parses from json to collection of object's T class * * @param json string of json with data objects * @param typeClass type of objects collection * * @return collection of object's T class or null, if transferred incorrect data */ <T> Collection<T> parseToCollectionObjects(Object json, Type typeClass); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public native Object parse( Object json );", "Map<String, Object> parseToMap(String json);", "public interface JsonParser {\n\n /**\n * convert string to POJO\n *\n * @param jsonString - string to convert to POJO\n * @param classType - POJO Type / Class Type to use for the deserialization\n * @param <T> the returned desirialized POJO\n * @return desiarilized POJO\n */\n <T> T toJsonPOJO(String jsonString, Class<T> classType);\n\n /**\n * convert from POJO to json string\n * @param data POJO to convert to json String\n * @return json string\n */\n String toJSONString(Object data);\n}", "public interface PojoParser {\n\n\n /**\n * Method which converts the Pojo to JSON Object\n * @return return the framed {@link JSONObject} instance\n */\n public abstract JSONObject toJson();\n\n /**\n * Method which convert JSON to POJO.\n * @param jsonObject Josn object which need to be parsed.\n */\n public abstract void fromJson(JSONObject jsonObject);\n}", "<T> T parseToObject(Object json, Class<T> classObject);", "public interface JSONDeserializer<T> {\n\t\n\t/**\n\t * Deserialize a json string\n\t * @param json object to deserialize\n\t * @return JSON representation as {@link JsonObject}\n\t */\n\tJsonObject deserialise(String json);\n\t\n\t/**\n\t * Unmarshall 'meta' section of the response\n\t * @param meta section represented as {@link JsonObject}\n\t * @return object of generic type T\n\t */\n\tT unmarshallMeta(JsonObject meta);\n\t\n\t/**\n\t * Unmarshall 'response' section of the response\n\t * @param response section represented as {@link JsonObject}\n\t * @return list of objects of generic type T\n\t */\n\tCollection<T> unmarshallResponse(JsonObject response);\n\n}", "public interface JsonPaser<C> {\n public JsonPaser me();\n\n public C toJson(String json);\n\n public String toJsonString(Object object);\n\n public <T> T toObject(String json, Class<T> type);\n\n public <T> T[] toObjectArray(String json, Class<T> type);\n\n public <T> Collection<T> toObjectList(String json, Class<T> type);\n\n public <T> T toObject(String name, C c, Class<T> type);\n\n public <T> T[] toObjectArray(String name, C c, Class<T> type);\n\n public <T> Collection<T> toObjectList(String name, C c, Class<T> type);\n\n}", "public abstract void fromJson(JSONObject jsonObject);", "public interface JsonConverter {\n /** Deserializes a JSON string into a Java object.\n * @param source JSON string.\n * @param type Class type.\n * @param <T> type of class to return.\n * @return A Java object representing the same information as found in the JSON string.\n */\n <T> T fromJson(String source, Class<T> type);\n\n /** Deserializes a JSON string into a Java object.\n * @param source JSON string.\n * @param type JavaType class type.\n * @param <T> type of class to return.\n * @return A Java object representing the same information as found in the JSON string.\n */\n <T> T fromJson(String source, JavaType type);\n\n /** Serializes a Java object into a JSON string.\n * @param source A Java object.\n * @param <T> type of class of the source.\n * @return A JSON string representing the data represented in the Java object.\n */\n <T> String toJson(T source);\n}", "TorrentJsonParser getJsonParser();", "T fromJson(Object source);", "public interface JsonConverter {\n\n String toJson(Object o) throws IOException;\n\n String toJsonIgnoreException(Object o);\n\n <T> T fromJson(String json, Class<T> type) throws IOException;\n\n <T> T fromJson(String json, TypeData<T> typeData) throws IOException;\n\n <T> T convert(Object o, TypeData<T> typeData) throws IOException;\n}", "<T> Collection<T> parseToCollectionObjects(Object json, Type typeClass);", "public interface ApiObject {\n\n String toJson();\n\n Object fromJson(JsonObject json);\n}", "public interface JSONAdapter {\n public JSONObject toJSONObject();\n}", "public interface JsonDeserializer {\n\n /**\n * Parses and deserializes a Gist object from the provided JSON text. This\n * Gist object does not contain all comments on said Gist, as obtaining a\n * given Gist's comments requires a completely separate Github API call.\n *\n * @param json JSON text to parse\n * @return Gist object with related attributes and objects\n */\n Gist deserializeGistFromJson(String json);\n\n /**\n * Parses and deserializes a List of Gist objects from the provided JSON\n * text. If there is an error with parsing the JSON, null is returned.\n *\n * @param json JSON text to parse\n * @return List of Gist objects\n */\n List<Gist> deserializeGistsFromJson(String json);\n\n /**\n * Parses and deserializes a GistComment object from the provided JSON text.\n *\n * @param json JSON text to parse\n * @return GistComment corresponding to some Gist\n */\n GistComment deserializeCommentFromJson(String json);\n\n /**\n * Parses and deserializes a List of GistComment objects from the provided\n * JSON text. If there is an error with parsing the JSON, null is returned.\n *\n * @param json JSON text to parse\n * @return List of GistComment objects\n */\n List<GistComment> deserializeCommentsFromJson(String json);\n\n /**\n * Parses and deserializes an expanded GistUser object from the provided\n * JSON text. This user contains all fields contained in the \"user\" objects\n * found in standard Gist JSON responses, in addition to more fields found\n * in User JSON responses. If certain fields are present, namely\n * \"private_gists\" and \"total_private_repos\", then this must be the\n * currently authenticated user.\n *\n * @param json JSON text to parse\n * @return GistUser corresponding to some Github user\n */\n GistUser deserializeUserFromJson(String json);\n\n}", "private void parseJSON(Map<String,Object> map, String baseName, JSONArray toParse) {\n\t\tObject jObj;\n\t\t\n\t\tfor(int objI=0; objI < toParse.length(); objI++) \n\t\t{\n\t\t\tjObj = parseJSONVal(toParse.get(objI));\n\t\t\t\n\t\t\tif(jObj instanceof JSONObject)\n\t\t\t\tparseJSON(map, baseName+objI+StringParser.DELIMITER, (JSONObject) jObj);\n\t\t\telse if(jObj instanceof JSONArray)\n\t\t\t\tparseJSON(map, baseName+objI+StringParser.DELIMITER, (JSONArray) jObj);\n\t\t\telse\n\t\t\t\tmap.put(baseName+objI, jObj);\n\t\t}\n\t}", "private void parseJSON(Map<String,Object> map, String baseName, JSONObject toParse) {\n\t\ttoParse.keys().forEachRemaining(key -> {\n\t\t\tObject value = parseJSONVal(toParse.get(key));\n\t\t\t\n\t\t\tif(value instanceof JSONObject)\n\t\t\t\tparseJSON(map, baseName+key+StringParser.DELIMITER, (JSONObject) value);\n\t\t\telse if(value instanceof JSONArray) \n\t\t\t\tparseJSON(map, baseName+key+StringParser.DELIMITER, (JSONArray) value);\n\t\t\telse\n\t\t\t\tmap.put(baseName+key, value);\n\t\t});\n\t}", "public interface JsonUtil {\n /**\n * Encode {@link org.schemarepo.Subject}s into a {@link String} for use by\n * {@link #subjectNamesFromJson(String)}\n *\n * The format is an array of objects containing a name field, for example:\n *\n * [{\"name\": \"subject1\"}, {\"name\": \"subject2\"}]\n *\n * @param subjects the Subject objects to encode\n * @return The {@link org.schemarepo.Subject} objects encoded as a String\n */\n String subjectsToJson(Iterable<Subject> subjects);\n\n /**\n * Decode a string created by {@link #subjectsToJson(Iterable)}\n *\n * @param str The String to decode\n * @return an {@link java.lang.Iterable} of {@link Subject}\n */\n Iterable<String> subjectNamesFromJson(String str);\n\n /**\n * Encode {@link org.schemarepo.SchemaEntry} objects into a {@link String} for use by\n * {@link #schemasFromJson(String)}\n *\n * The format is an array of objects containing id and schema fields, for example:\n *\n * [{\"id\": \"0\", \"schema\": \"schema1\"}, {\"id\": \"2\", \"schema\": \"schema2\"}]\n *\n * @param allEntries the SchemaEntry objects to encode\n * @return The {@link org.schemarepo.SchemaEntry} objects encoded as a String\n */\n String schemasToJson(Iterable<SchemaEntry> allEntries);\n\n /**\n * Decode a string created by {@link #schemasToJson(Iterable)}\n *\n * @param str The String to decode\n * @return An {@link java.lang.Iterable} of {@link SchemaEntry}\n */\n Iterable<SchemaEntry> schemasFromJson(String str);\n}", "<T> T fromJson(String json, Class<T> type);", "@Override\n\tpublic JSON parse(String in) throws IOException {\n\t\tMyJSON js = new MyJSON();\n\t\t//count brackets make sure they match\n\t\tif(!syntaxOkay(in)){\n\t\t\tthrow new IllegalStateException(\"Mismatched brackets error\");\n\t\t}\n\t\t//get rid of spaces to make things easier\n\t\tString withoutSpaces = remove(in, ' ');\n\t\t//handles edge case of an empty object\n\t\tString withoutBraces = remove(withoutSpaces, '{');\n\t\twithoutBraces = remove(withoutBraces, '}');\n\t\tif(withoutBraces.length() == 0){\n\t\t\treturn js;\n\t\t}\n\t\tint colonIndex = in.indexOf(\":\");\n\t\tString key = in.substring(0, colonIndex);\n\t\tString value = in.substring(colonIndex + 1);\n\n\t\tif(value.contains(\":\")){\n\t\t\t//this means the value is an object so we figure out how many strings to add to the object\n\t\t\tString[] values = value.split(\",\");\n\t\t\t//creates a temp for the new object\n\t\t\tMyJSON temp = new MyJSON();\n\t\t\tfillObject(values, temp);\n\t\t\tkey = removeOutsides(key);\n\t\t\tjs.setObject(key, temp);\n\t\t}else{\n\t\t\t//the base case that actually puts things as a JSON object\n\t\t\tkey = removeOutsides(key);\n\t\t\tvalue = removeOutsides(value);\n\t\t\tjs.setString(key, value);\n\t\t}\n\n\t\treturn js;\n\t}", "public interface JsonBean {\n String toJson();\n void fromJson(String json) throws Exception;\n}", "public void parseJSONData(Object JSONdata){\n\n\t}", "private JsonUtils() {}", "public interface JsonFormatter {\n JSONArray parseJasonString(String inputString) throws ParseException;\n List<LocationPOJO> formatJsonArray(JSONArray jsonArray);\n}", "public static <T> T mapJsonToObject(String json, Class<T> classType) {\n\t\tT obj = null;\n\t\tif (StringUtils.isBlank(json)) {\n\t\t\treturn null;\n\t\t}\n\t\ttry {\n\t\t\tobj = jsonMapper.readValue(json, classType);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"error mapJsonToObject: \" + e.getMessage());\n\t\t}\n\t\treturn obj;\n\t}", "@Override\n protected JsonUtil getJsonUtil() {\n return super.getJsonUtil();\n }", "public static <T> T parseJSON(final String jsonString, Class<T> type) {\r\n\t\tT retObject = null;\r\n\t\ttry {\r\n\t\t\tretObject = PARSER.parse(jsonString, type);\r\n\t\t} catch (ParseException ex) {\r\n\t\t\tLOGGER.log(Level.WARNING, \"JSON_UTIL:Error in de-serializing to object\", ex);\r\n\t\t\tretObject = null;\r\n\t\t}\r\n\t\treturn retObject;\r\n\t}", "private static <T> T getObjectFromJson(JsonNode dataJson) {\n Object object=null;\n if(!dataJson.has(CLASS_FIELD)) {\n return null;\n }\n /** Determine class of object and return with cast*/\n String classField=dataJson.get(CLASS_FIELD).asText();\n\n /** Lists -> All lists are converted into ArrayLists*/\n if(classField.startsWith(LIST_CLASS)) {\n try {\n String[] listType=classField.split(SEPERATOR);\n if(listType.length<2) {\n return (T) new ArrayList<>();\n }\n Class type=Class.forName(listType[1]);\n String json=dataJson.get(DATA_FIELD).toString();\n List<Object> list=new ArrayList<>();\n ArrayNode array=(ArrayNode) mapper.readTree(json);\n for(JsonNode item : array) {\n Object o=mapper.readValue(item.toString(), type);\n list.add(o);\n }\n return (T) list;\n }\n catch(JsonProcessingException | ClassNotFoundException e) {\n e.printStackTrace();\n }\n }\n /** Single objects*/\n else {\n Class type=null;\n try {\n type=Class.forName(classField);\n /** Read primitive types (String,Integer,...)*/\n if(dataJson.has(PRIMITIVE_FIELD)) {\n object=mapper.readValue(dataJson.get(PRIMITIVE_FIELD).toString(), type);\n }\n else {\n object=mapper.readValue(dataJson.toString(), type);\n }\n return (T) object;\n }\n catch(ClassNotFoundException | JsonProcessingException e) {\n e.printStackTrace();\n }\n }\n return null;\n }", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic ListInfo deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context)\n\t\t\tthrows JsonParseException {\n\t\tListInfo listInfo = new ListInfo();\n\n\t\tJsonObject topMap = json.getAsJsonObject();\n\t\tlistInfo.setLastUpdate(topMap.get(LAST_UPDATE).getAsLong());\n\t\tlistInfo.setName(topMap.get(NAME).getAsString());\n\t\tlistInfo.setStatus(TimeStampedNode.Status.valueOf(topMap.get(STATUS).getAsString()));\n\t\tif (topMap.has(UNIQUE_ID)){\n\t\t\tlistInfo.setUniqueId(topMap.get(UNIQUE_ID).getAsString());\n\t\t}\n\n\t\tif (topMap.has(ITEMS)) {\n\t\t\tJsonArray itemsJson = topMap.get(ITEMS).getAsJsonArray();\n\t\t\tfor (JsonElement itemJsonElement : itemsJson) {\n\t\t\t\tItemInfo item = context.deserialize(itemJsonElement, ItemInfo.class);\n\n\t\t\t\t//Add it to the map. Note, order is lost, but since it's always alphabetical order it's ok\n\t\t\t\tlistInfo.getItems().put(item.getUniqueId(), item);\n\t\t\t}//for itemsJson\n\t\t}//if has items\n\n\t\tif (topMap.has(CATEGORIES)) {\n\t\t\tJsonArray categoriesJson = topMap.get(CATEGORIES).getAsJsonArray();\n\t\t\t//Hack needed to make it deserialize to an ArrayList correctly.\n\t\t\t//http://stackoverflow.com/questions/5554217/google-gson-deserialize-listclass-object-generic-type\n\t\t\tType listType = new TypeToken<TreeSet<CategoryInfo>>() {\n }.getType();\n\t\t\tlistInfo.setCategories((TreeSet<CategoryInfo>)context.deserialize(categoriesJson, listType));\n\t\t\t//We never want to say it's changed when reading it in.\n\t\t\tfor (CategoryInfo cat : listInfo.getCategories()) {\n\t\t\t\tcat.setChangedOnServer(false);\n\t\t\t}\n\t\t}//if has categories\n\t\t\n\t\tif (topMap.has(SELECTED_CATEGORIES)) {\n\t\t\tJsonArray selCatJson = topMap.get(SELECTED_CATEGORIES).getAsJsonArray();\n\t\t\tType listType = new TypeToken<HashSet<String>>() {\n }.getType();\n\t\t\tlistInfo.setSelectedCategories((HashSet<String>) context.deserialize(selCatJson, listType));\n\t\t}//if has selectedCategories\n\t\t\n\t\tif (topMap.has(OTHER_USER_PRIVS)) {\n\t\t\tJsonObject privsJson = topMap.get(OTHER_USER_PRIVS).getAsJsonObject();\n\t\t\tfor ( Map.Entry<String,JsonElement> privEntry : privsJson.entrySet()){\n\t\t\t\tOtherUserPrivOnList privInfo = context.deserialize(privEntry.getValue(), OtherUserPrivOnList.class);\n\t\t\t\tprivInfo.userId = privEntry.getKey();\n\t\t\t\tlistInfo.getOtherUserPrivs().put(privEntry.getKey(), privInfo);\n\t\t\t}//for categoriesJson\n\t\t}//if has selectedCategories\n\n\t\t//Note, always ignore changedOnServer when parsing.\n\t\t\n\t\treturn listInfo;\n\t}", "public Map<String,Object> parseSingleJSON(Object jObj) {\n\t\tMap<String,Object> map = new HashMap<>();\n\t\t\n\t\tif(jObj instanceof JSONObject)\n\t\t\tparseJSON(map, \"\", (JSONObject) jObj);\n\t\telse if(jObj instanceof JSONArray)\n\t\t\tparseJSON(map, \"\", (JSONArray) jObj);\n\t\telse\n\t\t\tmap.put(jObj.toString(), parseJSONVal(jObj));\n\t\t\n\t\treturn map;\n\t}", "private <T> T getObjectFromJsonObject(JSONObject j, Class<T> clazz) throws IOException {\n ObjectMapper mapper = new ObjectMapper();\n T t = null;\n t = mapper.readValue(j.toString(), clazz);\n\n return t;\n }", "T deserialize(JsonObject json, DynamicDeserializerFactory deserializerFactory) throws ClassNotFoundException;", "<T> T fromJson(String source, JavaType type);", "public FilterItems jsonToObject(String json){\n json = json.replace(\"body=\",\"{ \\\"body\\\" : \");\n json = json.replace(\"&oil=\",\", \\\"oil\\\" : \");\n json = json.replace(\"&transmission=\",\", \\\"transmission\\\" :\");\n json = json + \"}\";\n json = json.replace(\"[]\",\"null\");\n ObjectMapper mapper = new ObjectMapper();\n FilterItems itemSearch = null;\n try {\n itemSearch = mapper.readValue(json, FilterItems.class);\n } catch (IOException e) {\n e.printStackTrace();\n }\n return itemSearch;\n }", "private JsonUtil() {\n this.parser = new JSONParser();\n get_text();\n }", "@Test\n public void embedded() throws IOException {\n String obj = \"{\\\"authors\\\":[\\\"Ted\\\", \\\"Mark\\\"],\\\"date\\\": {\\\"year\\\":2013,\\\"month\\\":9}}\";\n JsonLexer l = new JsonLexer(new StringReader(obj));\n JsonParser p = new JsonParser(l);\n Map<String, Object> m = p.parseObject();\n assertEquals(2, m.size());\n\n @SuppressWarnings(\"unchecked\")\n List<String> authors = (List<String>)m.get(\"authors\");\n assertEquals(2, authors.size());\n assertEquals(\"Ted\", authors.get(0));\n assertEquals(\"Mark\", authors.get(1));\n\n @SuppressWarnings(\"unchecked\")\n Map<String, Object> date = (Map<String, Object>)m.get(\"date\");\n assertEquals(2, date.size());\n assertEquals(2013L, date.get(\"year\"));\n assertEquals(9L, date.get(\"month\"));\n }", "public void deserialize(JsonObject src);", "@Override\n \tpublic Object parseJson(JsonNode jsonNode) {\n \t\tif(jsonNode == null || jsonNode.isNull())\n \t\t\treturn null;\n \t\tList<Object> valList = new ArrayList<Object>();\n \t\t\n \t\tfor(int i=0; i< fieldNames.size(); ++i) {\n \t\t\tString key = fieldNames.get( i);\n \t\t\tif( this.convertFromCamelCase) {\n \t\t\t\tkey = FromJsonUDF.ToCamelCase(key);\n \t\t\t}\n \t\t\tJsonNode valNode = jsonNode.get( key);\n \t\t\tInspectorHandle valHandle = handleList.get(i);\n \t\t\t\n \t\t\tObject valObj = valHandle.parseJson(valNode);\n \t\t\tvalList.add( valObj);\n \t\t}\n \t\t\n \t\treturn valList;\n \t}", "private Object readJSON() throws JSONException\n {\n switch(read(3))\n {\n case zipObject:\n return readObject();\n case zipArrayString:\n return readArray(true);\n case zipArrayValue:\n return readArray(false);\n case zipEmptyObject:\n return new JSONObject();\n case zipEmptyArray:\n return new JSONArray();\n case zipTrue:\n return Boolean.TRUE;\n case zipFalse:\n return Boolean.FALSE;\n default:\n return JSONObject.NULL;\n }\n }", "private <T> T convert(String json, Type resultObject) {\n\t\tGson gson = new GsonBuilder().create();\n\t\treturn gson.fromJson(json, resultObject);\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic static<T> T createObjectFromJSON(final JSONObject json) throws JSONException {\n\t\tif(json.has(\"type\")) {\n\t\t\treturn (T) Helper.createItemFromJSON(json);\n\t\t} else if(json.has(\"triple_pattern\")) {\n\t\t\treturn (T) Helper.createTriplePatternFromJSON(json);\n\t\t} else if(json.has(\"histogram\")) {\n\t\t\treturn (T) Helper.createVarBucketFromJSON(json);\n\t\t} else {\n\t\t\tSystem.err.println(\"lupos.distributed.operator.format.Helper.createObjectFromJSON(...): Unknown type stored in JSON object, returning null!\");\n\t\t\treturn null;\n\t\t}\n\t}", "public void loadJson(String json) throws Exception {\r\n\t\tsetJsonToken(SimpleJson.textToHashMap(json));\r\n\t}", "<T> T fromJson(String source, Class<T> type);", "@Override\n public Object convertJsonToObject(String content) {\n try {\n Map<String, EventDataValue> data = reader.readValue(content);\n\n return convertEventDataValuesMapIntoSet(data);\n } catch (IOException e) {\n throw new IllegalArgumentException(e);\n }\n }", "@Override\r\n\tpublic void parseJson(JSONObject json) {\n\t\tif(json == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\ttype = getInt(json,d_type);\r\n\t\t} catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public static Object fromJSON(quark.reflect.Class cls, Object result, io.datawire.quark.runtime.JSONObject json) {\n if (((json)==(null) || ((Object)(json) != null && ((Object) (json)).equals(null))) || ((json).isNull())) {\n return null;\n }\n Integer idx = 0;\n if ((result)==(null) || ((Object)(result) != null && ((Object) (result)).equals(null))) {\n if (((cls).name)==(\"quark.String\") || ((Object)((cls).name) != null && ((Object) ((cls).name)).equals(\"quark.String\"))) {\n String s = (json).getString();\n return s;\n }\n if (((cls).name)==(\"quark.float\") || ((Object)((cls).name) != null && ((Object) ((cls).name)).equals(\"quark.float\"))) {\n Double flt = (json).getNumber();\n return flt;\n }\n if (((cls).name)==(\"quark.int\") || ((Object)((cls).name) != null && ((Object) ((cls).name)).equals(\"quark.int\"))) {\n Integer i = ((int) Math.round((json).getNumber()));\n return i;\n }\n if (((cls).name)==(\"quark.bool\") || ((Object)((cls).name) != null && ((Object) ((cls).name)).equals(\"quark.bool\"))) {\n Boolean b = (json).getBool();\n return b;\n }\n result = (cls).construct(new java.util.ArrayList(java.util.Arrays.asList(new Object[]{})));\n }\n if (((cls).name)==(\"quark.List\") || ((Object)((cls).name) != null && ((Object) ((cls).name)).equals(\"quark.List\"))) {\n java.util.ArrayList<Object> list = (java.util.ArrayList<Object>) (result);\n while ((idx) < ((json).size())) {\n (list).add(Functions.fromJSON(((cls).getParameters()).get(0), null, (json).getListItem(idx)));\n idx = (idx) + (1);\n }\n return list;\n }\n java.util.ArrayList<quark.reflect.Field> fields = (cls).getFields();\n while ((idx) < ((fields).size())) {\n quark.reflect.Field f = (fields).get(idx);\n idx = (idx) + (1);\n if (Boolean.valueOf(((f).name).startsWith(\"_\"))) {\n continue;\n }\n if (!(((json).getObjectItem((f).name)).isNull())) {\n ((io.datawire.quark.runtime.QObject) (result))._setField((f).name, Functions.fromJSON((f).getType(), null, (json).getObjectItem((f).name)));\n }\n }\n return result;\n }", "private Map<String, Object> readMap(String json) {\n if (StringUtils.isBlank(json)) {\n return new HashMap<>();\n }\n try {\n return new ObjectMapper().readValue(json, HashMap.class);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "void mo28373a(JSONObject jSONObject);", "@Test\n public void readSystemObjectClassAppointment() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"Appointment\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Appointment properly\", object.getClass(), actual.getClass());\n }", "public interface JSONPopulator {\n void populate(JSONObject data);\n}", "public interface JSONPopulator {\n void populate(JSONObject data);\n}", "public interface JSONPopulator {\n void populate(JSONObject data);\n}", "interface JSONParser<DataType>\n{\n DataType Parse(JSONObject jsonObject);\n}", "private JsonUtils() { }", "public static <T> Map<String, T> jsonToMap(String json, Class<T> elementType) {\n\t\tif(gson == null) {\n\t\t\tgson = new Gson();\n\t\t}\n\t\t\n\t\tType type = new MyParamType(Map.class, new Class[]{String.class, elementType});\n\t\t\n\t\treturn gson.fromJson(json, type);\n\t}", "protected JsonParser getJsonParser( ) {\r\n\t\treturn jsonParser;\r\n\t}", "public void fromJSON(String json) throws JSONException;", "public interface JsonConverter {\n\n /**\n * Encode the given object in a compatible form for the event bus.\n *\n * @param value the value to encode\n * @return the encoded object\n */\n Object encodeObject(Object value);\n\n /**\n * Decode the given object encoded with the encodeObject method.\n *\n * @param value the value to decode\n * @return the decoded object\n */\n Object decodeObject(Object value);\n}", "public static Object objectForJSON(final Object value) {\n if (value == null) return null;\n\n if (value instanceof Map) {\n JSONObject dest = new JSONObject();\n\n @SuppressWarnings(\"unchecked\")\n final Map<String, Object> map = (Map<String, Object>) value;\n\n for (Map.Entry<String, Object> entry : map.entrySet()) {\n safePut(dest, entry.getKey(), objectForJSON(entry.getValue()));\n }\n return dest;\n } else if (value instanceof Object[]) {\n final JSONArray dest = new JSONArray();\n\n final Object[] array = (Object[]) value;\n for (Object val : array) {\n dest.put(objectForJSON(val));\n }\n return dest;\n } else if (value instanceof List) {\n final JSONArray dest = new JSONArray();\n\n final List list = (List) value;\n for (Object val : list) {\n dest.put(objectForJSON(val));\n }\n return dest;\n } else {\n return value;\n }\n }", "void fromJson(JsonStaxParser parser) throws SyntaxException, IOException;", "public Object readInternal(Class<? extends Object> clazz, HttpInputMessage inputMessage) throws IOException, HttpMessageNotReadableException {\n return JSON.parseObject(inputMessage.getBody(), this.fastJsonConfig.getCharset(), (Type) clazz, this.fastJsonConfig.getFeatures());\n }", "public static <T> T pasarAObjeto(String json, Class<T> tipo) {\r\n try {\r\n ObjectMapper mapper = getBuilder().build();\r\n return mapper.readValue(json, tipo);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n return null;\r\n }", "public static <T> T convertJsonStringToObject(String json,\n\t\t\tClass<T> valueType) {\n\t\ttry {\n\t\t\treturn mapper.readValue(json, valueType);\n\t\t} catch (Exception e) {\n\t\t\tthrow new RuntimeException(\"Error converting Json String [\" + json\n\t\t\t\t\t+ \"] to [\" + valueType.getCanonicalName() + \"]\", e);\n\t\t}\n\t}", "private static Gson gson() {\n return JsonUtils.buildGson(gb -> gb.registerTypeAdapter(Json.class, (JsonSerializer<Json>) (json, type, jsonSerializationContext) ->\n jsonParser.parse(json.value())\n ));\n }", "public interface IExchangeableByJSON {\r\n\r\n\t/**\r\n\t * Function called when we want to convert the object to a JSON string.\r\n\t * \r\n\t * @return\r\n\t * @throws JSONException\r\n\t */\r\n\tpublic String toJSON() throws JSONException;\r\n\r\n\r\n\t/**\r\n\t * Function called when we want to fill the object from its JSON\r\n\t * representation string.\r\n\t * \r\n\t * @param json\r\n\t * @throws JSONException\r\n\t */\r\n\tpublic void fromJSON(String json) throws JSONException;\r\n\r\n}", "public @NotNull T read(@NotNull final JsonObject object) throws JsonException;", "@Test\n public void simpleObject() throws IOException {\n String obj = \"{\\\"name\\\":\\\"value\\\",\\\"int\\\":1302,\\\"float\\\":1.57,\"\n + \"\\\"negint\\\":-5,\\\"negfloat\\\":-1.57,\\\"floatexp\\\":-1.5e7}\";\n JsonLexer l = new JsonLexer(new StringReader(obj));\n JsonParser p = new JsonParser(l);\n Map<String, Object> m = p.parseObject();\n\n assertEquals(6, m.size());\n assertEquals(\"value\", m.get(\"name\"));\n assertEquals(1302L, m.get(\"int\"));\n assertEquals(1.57, m.get(\"float\"));\n assertEquals(-5L, m.get(\"negint\"));\n assertEquals(-1.57, m.get(\"negfloat\"));\n assertEquals(-1.5e7, m.get(\"floatexp\"));\n }", "String parseObjectToJson(Object obj);", "void validateJson();", "private Object decodingJsonArray(JsonArray jsonArray, MapEntity map) {\n\t\tif (jsonArray == null || map == null) {\n\t\t\treturn null;\n\t\t}\n\t\tObject result = null;\n\t\tSimpleList<?> list = null;\n\t\tint len = jsonArray.size() - 1;\n\t\t/* Add all Objects */\n\t\tif (map.isFlag(FLAG_SIMPLEFORMAT)) {\n\t\t\tlist = new SimpleList<Object>();\n\t\t\tresult = list;\n\t\t}\n\n\t\tfor (int i = 0; i <= len; i++) {\n\t\t\tJsonObject kidObject = jsonArray.getJSONObject(i);\n\t\t\tObject tmp = decodingJsonObject(kidObject, map);\n\t\t\tif (map.isFlag(FLAG_SIMPLEFORMAT)) {\n\t\t\t\tlist.add(tmp);\n\t\t\t} else if (kidObject.has(MAINITEM)) {\n\t\t\t\tresult = tmp;\n\t\t\t} else if (i == 0) {\n\t\t\t\tresult = tmp;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public static <T> T fromJson(String json, Class<T> type)\n {\n return g.fromJson(json, type);\n }", "public interface FrequentlyRelatedItemHttpResponseParser {\n public FrequentlyRelatedItemSearchResponse[] parse(String json);\n}", "interface JSONEventSerializationHelper {\n\t/**\n\t * Serialize particular Event to JSONObject.\n\t * \n\t * Method that wants to implement this must know what the exact type of the\n\t * Event parameter. Therefore, the method must first casts the Event to its\n\t * concrete type.\n\t * \n\t * @param event\n\t * Event to serialize.\n\t * @param stuffSerializer\n\t * Stuff serialization service to delegate the job of\n\t * serialization of concrete Stuff to.\n\t * @return JSONObject as representation of Event.\n\t * @throws JSONException\n\t * The exception will be thrown when the serialization process\n\t * failed.\n\t */\n\tJSONObject serialize(Event event, JSONStuffSerialization stuffSerializer)\n\t\t\tthrows JSONException;\n\n\t/**\n\t * De-serialize representation of Event from JSONObject.\n\t * \n\t * @param data\n\t * representation of Event in its JSONObject form.\n\t * @param stuffSerializer\n\t * Stuff serialization service to delegate the job of\n\t * de-serialization of concrete Stuff to.\n\t * @return Concrete Event.\n\t * @throws JSONException\n\t * if de-serialization process failed.\n\t */\n\tEvent deserialize(JSONObject data, JSONStuffSerialization stuffSerializer)\n\t\t\tthrows JSONException;\n}", "GistUser deserializeUserFromJson(String json);", "public interface JsonStructure\n/* */ extends JsonValue\n/* */ {\n/* */ default JsonValue getValue(String jsonPointer) {\n/* 60 */ return Json.createPointer(jsonPointer).getValue(this);\n/* */ }\n/* */ }", "private static FluidIngredient deserializeObject(JsonObject json) {\n if (json.entrySet().isEmpty()) {\n return EMPTY;\n }\n\n // fluid match\n if (json.has(\"name\")) {\n // don't set both, obviously an error\n if (json.has(\"tag\")) {\n throw new JsonSyntaxException(\"An ingredient entry is either a tag or an fluid, not both\");\n }\n\n // parse a fluid\n return FluidMatch.deserialize(json);\n }\n\n // tag match\n if (json.has(\"tag\")) {\n return TagMatch.deserialize(json);\n }\n\n throw new JsonSyntaxException(\"An ingredient entry needs either a tag or an fluid\");\n }", "public <T> T fromJson(String json, Type type) {\n return getGson().fromJson(json, type);\n }", "private Object onParse(final String content) throws IOException{\n if(null == this.mBean)\n return null;\n\n try{\n return JSON.parseObject(content, this.mBean);\n }catch(Exception e){\n throw new IOException(e.getMessage());\n }\n }", "@Override\n\tpublic JSONObject readFrom(Class<JSONObject> arg0, Type arg1, Annotation[] arg2, MediaType arg3,\n\t\t\tMultivaluedMap<String, String> arg4, InputStream arg5) throws IOException, WebApplicationException {\n\t\ttry {\n\t\t\treturn new JSONObject(IOUtils.toString(arg5));\n\t\t} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "public <T> T fromJson(String json, Class<T> clazz) {\n return getGson().fromJson(json, clazz);\n }", "@Test\n public void readSystemObjectClassAppointmentRequest() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"AppointmentRequest\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return AppointmentRequest properly\", object.getClass(), actual.getClass());\n }", "abstract Object read(@NonNull JsonReader reader) throws IOException;", "private FieldDocument _fromJson (String json) {\n try {\n FieldDocument fd = this.mapper.readValue(json, FieldDocument.class);\n return fd;\n }\n catch (IOException e) {\n log.error(\"File json not found or unmappable: {}\",\n e.getLocalizedMessage());\n };\n return (FieldDocument) null;\n }", "public interface ArrayJson {\r\n\t//size for array used,for map, arraySize is map.size*2\r\n\tpublic int arraySize();\r\n\r\n\tpublic int length();// orig length\r\n\r\n\t// getters for getXX By index\r\n\tpublic Object get(int index);\r\n\r\n\tpublic boolean getBoolean(int index);\r\n\r\n\tpublic double getDouble(int index);\r\n\r\n\tpublic <E extends Enum<E>> E getEnum(Class<E> clazz, int index);\r\n\r\n\tpublic BigDecimal getBigDecimal(int index);\r\n\r\n\tpublic BigInteger getBigInteger(int index);\r\n\r\n\tpublic int getInt(int index);\r\n\r\n\tpublic JSONArray getJSONArray(int index);\r\n\r\n\tpublic JSONObject getJSONObject(int index);\r\n\r\n\tpublic long getLong(int index);\r\n\r\n\tpublic String getString(int index);\r\n}", "public static JsonElement stringToJSON2(String json) {\n try {\n JsonElement parser = new JsonPrimitive(json);\n System.out.println(parser.getAsString());\n //JsonObject Jso = new JsonObject();\n //Jso = (JsonObject) parser.p(json);\n return parser;\n } catch (Exception e) {\n return new JsonObject();\n }\n }", "Gist deserializeGistFromJson(String json);", "public abstract Object deserialize(Object object);", "private JSON() {\n\t}", "public native Object parse( Object json, String texturePath );", "@Override\n\tprotected int parse(String json, int startIndex, boolean delayed) throws JsonParseException\n\t{\n\t\t//Verify all required data structures exist\n\t\tsetup();\n\t\t\n\t\t//Verify what is being parsed is indeed an object\n\t\tif(json.charAt(startIndex) != ParserUtil.OBJECT_OPEN)\n\t\t\tthrow new JsonParseException(JsonParseException.Type.INVALID_FORMAT, 0);\n\t\t\n\t\tint index = startIndex+1;\n\t\tboolean seenElement = false;\n\t\tdo\n\t\t{\n\t\t\t//Move to the start of the next key\n\t\t\tindex = ParserUtil.nextNonWhitespace(json, index);\n\t\t\t\n\t\t\t//Get information on the key type\n\t\t\tchar startChar = json.charAt(index);\n\t\t\t\n\t\t\t//Make sure it's an allowable character\n\t\t\t//--Separation point (',')\n\t\t\tif(startChar == ParserUtil.SPLIT)\n\t\t\t{\n\t\t\t\tindex = ParserUtil.nextNonWhitespace(json, index+1);\n\t\t\t\tstartChar = json.charAt(index);\n\t\t\t}\n\t\t\t//--Or end of the object ('}')\n\t\t\telse if(startChar == ParserUtil.OBJECT_CLOSE)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//--Or someone is bad at formatting their JSON!\n\t\t\telse if(seenElement)\n\t\t\t{\n\t\t\t\t//System.out.println(\"ERROR ON: \"+json.substring(startIndex, startIndex+getRawLength()));\n\t\t\t\tthrow new JsonParseException(JsonParseException.Type.INVALID_CHAR, index, startChar);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Get the key\n\t\t\tString key;\n\t\t\t//--String type\n\t\t\tif(ParserUtil.isStringChar(startChar))\n\t\t\t{\n\t\t\t\tkey = ParserUtil.getStringBlock(json, index);\n\t\t\t\tindex += key.length()+2;\n\t\t\t}\n\t\t\t//--Unknown type\n\t\t\telse\n\t\t\t{\n\t\t\t\tkey = ParserUtil.getUnknownBlock(json, index);\n\t\t\t\tindex += key.length();\n\t\t\t}\n\t\t\t\n\t\t\t//Move to the start of the value\n\t\t\tif(json.charAt(index) != ParserUtil.OBJECT_MAP)\n\t\t\t{\n\t\t\t\tindex = ParserUtil.nextNonWhitespace(json, index+1);\n\t\t\t\tif(json.charAt(index) != ParserUtil.OBJECT_MAP)\n\t\t\t\t\tthrow new JsonParseException(JsonParseException.Type.INVALID_FORMAT, index);\n\t\t\t}\n\t\t\tindex = ParserUtil.nextNonWhitespace(json, index+1);\n\t\t\t\n\t\t\t//Get the value and store it\n\t\t\tstartChar = json.charAt(index);\n\t\t\t\n\t\t\t//Parse the value based on type\n\t\t\tValue value = null;\n\t\t\tint len;\n\t\t\tswitch(startChar)\n\t\t\t{\n\t\t\t\t//String\n\t\t\t\tcase ParserUtil.STRING_1: \n\t\t\t\tcase ParserUtil.STRING_2: \n\t\t\t\t\tString str = ParserUtil.getStringBlock(json, index);\n\t\t\t\t\tvalue = ValueUtil.createValue(str);\n\t\t\t\t\tindex += str.length()+2;\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t//Object\n\t\t\t\tcase ParserUtil.OBJECT_OPEN: \n\t\t\t\t\tJsonObject object = new JsonObject(json, index, delayed);\n\t\t\t\t\tvalue = ValueUtil.createValue(object);\n\t\t\t\t\tif((len = object.getRawLength()) < 2)\n\t\t\t\t\t\tthrow new JsonParseException(JsonParseException.Type.INVALID_FORMAT, index);\n\t\t\t\t\tindex += len;\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t//Array\n\t\t\t\tcase ParserUtil.ARRAY_OPEN: \n\t\t\t\t\tJsonArray array = new JsonArray(json, index, delayed);\n\t\t\t\t\tvalue = ValueUtil.createValue(array);\n\t\t\t\t\tif((len = array.getRawLength()) < 2)\n\t\t\t\t\t\tthrow new JsonParseException(JsonParseException.Type.INVALID_FORMAT, index);\n\t\t\t\t\tindex += len;\n\t\t\t\t\tbreak;\n\t\t\t\tcase ParserUtil.ARRAY_CLOSE:\n\t\t\t\t\tthrow new JsonParseException(JsonParseException.Type.INVALID_FORMAT, index);\n\t\t\t\t\n\t\t\t\t//Unknown: boolean, number, or null\n\t\t\t\tdefault: \n\t\t\t\t\tString valueStr = ParserUtil.getUnknownBlock(json, index);\n\t\t\t\t\tvalue = ParserUtil.parseUnknown(valueStr);\n\t\t\t\t\tindex += valueStr.length();\n\t\t\t}\n\t\t\t\n\t\t\t//Add the value\n\t\t\tvalues.put(key, value);\n\t\t\tseenElement = true;\n\t\t\t\n\t\t}while(index < json.length()-1);\n\t\t\n\t\t//Check the very last character to make sure the object was closed\n\t\tif(json.charAt(index) != ParserUtil.OBJECT_CLOSE)\n\t\t\tthrow new JsonParseException(JsonParseException.Type.BAD_END, index);\n\t\t\n\t\treturn index-startIndex+1;\n\t}", "public boolean supportsJsonType() {\n return false;\n }", "protected Object readResolve()\n/* */ {\n/* 353 */ return new JsonFactory(this, this._objectCodec);\n/* */ }", "@Test\n public void readSystemObjectClassMedicine() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"Medicine\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Medicine properly\", object.getClass(), actual.getClass());\n }", "@Override\n public List<T> deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {\n JsonElement postJsonArray = json.getAsJsonArray();\n return new Gson().fromJson(postJsonArray,typeOfT);\n }", "public static void main(String[] args) {\n String jsonString = \"{\\\"name\\\":\\\"Pourush\\\"}\";\n JsonObject jsonObject = new JsonObject(jsonString);\n jsonObject.put(\"location\",\"Utsav\");\n System.out.println(jsonObject);\n Myitem myitem = new Myitem();\n myitem.name = \"falanadhimkana\";\n myitem.description = \"some description\";\n jsonObject.put(\"Myitem\",jsonObject.mapFrom(myitem));\n System.out.println(jsonObject);\n }", "public Object parseJsonToObject(String response, Class<?> modelClass) {\n\n try {\n return gson.fromJson(response, modelClass);\n } catch (Exception ex) {\n ex.printStackTrace();\n return null;\n }\n }", "public static <T> T getJSONObject(final String json, final Class<T> typeReference)\n\t{\n\t\tT obj = null;\n\t\ttry\n\t\t{\n\t\t\tobj = new ObjectMapper().readValue(json, typeReference);\n\t\t}\n\t\tcatch (final Exception exception)\n\t\t{\n\t\t\tLOG.error(\"Exception occured when converting string into object. Exception message: \", exception);\n\t\t}\n\t\treturn obj;\n\t}", "JSONConverter getDefaultConverter();", "public static <T> T loadJson(String content, Class<T> valueType){\n return (T)JsonMapper.fromJsonString(content, valueType);\n }" ]
[ "0.71537447", "0.68495625", "0.6802408", "0.66994953", "0.6689341", "0.66055346", "0.6546156", "0.65228724", "0.649289", "0.6462209", "0.64417565", "0.63209146", "0.6287225", "0.62502635", "0.6161767", "0.6122574", "0.6115073", "0.6108172", "0.6079724", "0.60749716", "0.6072077", "0.606878", "0.59530866", "0.59513587", "0.5936811", "0.5917225", "0.5889306", "0.58558464", "0.5854108", "0.583828", "0.5834678", "0.58321446", "0.58295596", "0.58193326", "0.5794407", "0.578204", "0.5770922", "0.5743836", "0.5720538", "0.5718565", "0.57041526", "0.57005674", "0.5677413", "0.5669755", "0.5652121", "0.56421417", "0.5615764", "0.5586684", "0.5574357", "0.5571471", "0.55620015", "0.55620015", "0.55620015", "0.55603427", "0.555441", "0.55472505", "0.55417234", "0.5531902", "0.55245304", "0.5518274", "0.5503214", "0.54979396", "0.54978514", "0.54950446", "0.54848677", "0.5482141", "0.54795957", "0.5474052", "0.5464855", "0.5457845", "0.545665", "0.54232043", "0.5421784", "0.54202694", "0.5414465", "0.5401517", "0.5401326", "0.538578", "0.5384934", "0.5383721", "0.5381646", "0.537889", "0.53785354", "0.5364683", "0.53636855", "0.53413427", "0.5330988", "0.5328065", "0.5328", "0.53279454", "0.5317795", "0.52914095", "0.52844524", "0.52842534", "0.5277686", "0.5273188", "0.5267065", "0.5262122", "0.52619654", "0.5258436" ]
0.8076046
0
Parses from json to map
Map<String, Object> parseToMap(String json);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Map<String, Object> readMap(String json) {\n if (StringUtils.isBlank(json)) {\n return new HashMap<>();\n }\n try {\n return new ObjectMapper().readValue(json, HashMap.class);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "protected MMap readMap(JSONObject json) throws JSONException, TypeException {\n System.err.println(\"readMap json = \" + json);\n\n\t// Read the size\n\tint mapSize = json.getInt(\"size\");\n\n\t// Read the key type\n String keyTypeStr = json.getString(\"keyType\");\n\tProbeAttributeType keyType = decodeType(keyTypeStr);\n\n\t// Read the value type\n String valueTypeStr = json.getString(\"valueType\");\n\tProbeAttributeType valueType = decodeType(valueTypeStr);\n\n // Allocate a map of the right type\n\tMMap map = new DefaultMMap(keyType, valueType);\n\n JSONArray array = json.getJSONArray(\"map\");\n\n\t// now add all the values to the map\n\tfor (int e=0; e < mapSize; e++) {\n JSONObject mapping = array.getJSONObject(e);\n \n\t // decode a key\n\t Object key = decodeValue(keyType, mapping.get(\"key\"));\n\t // decode a value, \n\t Object value = decodeValue(valueType, mapping.get(\"value\"));\n\n map.put(key, value);\n\t}\n\n\treturn map;\n\n\n\n }", "public static <T> Map<String, Object> json2map(String jsonStr)\n throws Exception {\n return objectMapper.readValue(jsonStr, Map.class);\n }", "public static Map<String, String> convertJsonToMap(String jsonStr) throws Exception {\n ObjectMapper mapper = new ObjectMapper();\n return mapper.readValue(jsonStr, Map.class);\n }", "public static Map fromJson(String source) {\n\t\ttry {\n\t\t\treturn (Map) JSONDeserializer.read(source);\n\t\t} catch (Exception e) {\n\t\t\tthrow new RuntimeException(\"Exception deserializing \" + source, e);\n\t\t}\n\t}", "public static Map<String,Object> processJSON(String jsontoMap)\n\t{\n\t\tString[] splitkeyval=null;\n\t\tMap<String,Object> mapConvert=new HashMap();\n\t\tString[] splitjson=jsontoMap.replace(\"\\\"\",\"\").split(\",\");\n\t\tfor(int i=0;i<splitjson.length;i++)\n\t\t{\n\t\t\tif(splitjson[i].contains(\"iss\"))\n\t\t\t{\n\t\t\t\tint col=splitjson[i].indexOf(\":\");\n\t\t\t\tsplitjson[i] = splitjson[i].substring(0,col) +\"=\"\n\t\t\t + splitjson[i].substring(col + 1);\n\t\t\t\tsplitkeyval=splitjson[i].split(\"=\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t splitkeyval=splitjson[i].split(\":\");\n\t\t\t}\n\t\t\tmapConvert.put(splitkeyval[0], splitkeyval[1]);\n\t\t}\n\t\treturn mapConvert;\n\t}", "public static <T> Map<String, T> json2map(String jsonStr, Class<T> clazz)\n throws Exception {\n Map<String, Map<String, Object>> map = objectMapper.readValue(jsonStr,\n new TypeReference<Map<String, T>>() {\n });\n Map<String, T> result = new HashMap<String, T>();\n for (Map.Entry<String, Map<String, Object>> entry : map.entrySet()) {\n result.put(entry.getKey(), map2pojo(entry.getValue(), clazz));\n }\n return result;\n }", "String parseMapToJson(Map<String, Object> data);", "@Override\n public Map<? extends String, ? extends Pair<EntityPrimitiveTypes, Stats>> parse(String parse) {\n JsonElement root = JsonParser.parseString(parse);\n HashMap<String, Pair<EntityPrimitiveTypes, Stats>> entityTypes = new HashMap<>();\n if (root.isJsonNull()) return entityTypes;\n for (Map.Entry<String, JsonElement> entry : root.getAsJsonObject().entrySet()) {\n entityTypes.put(entry.getKey(), deserializeEntityType(entry.getValue().getAsJsonObject()));\n }\n return entityTypes;\n }", "protected Map<String, String> deserialize(String data)\n {\n Map<String, String> map = new HashMap<String, String>();\n if (!StringUtils.isEmpty(data)) {\n JavaScriptObject jsObject = JavaScriptObject.fromJson(data);\n JsArrayString keys = jsObject.getKeys();\n for (int i = 0; i < keys.length(); i++) {\n String key = keys.get(i);\n Object value = jsObject.get(key);\n if (value != null) {\n map.put(key, String.valueOf(value));\n }\n }\n }\n return map;\n }", "public native Object parse( Object json );", "private void parseJSON(Map<String,Object> map, String baseName, JSONObject toParse) {\n\t\ttoParse.keys().forEachRemaining(key -> {\n\t\t\tObject value = parseJSONVal(toParse.get(key));\n\t\t\t\n\t\t\tif(value instanceof JSONObject)\n\t\t\t\tparseJSON(map, baseName+key+StringParser.DELIMITER, (JSONObject) value);\n\t\t\telse if(value instanceof JSONArray) \n\t\t\t\tparseJSON(map, baseName+key+StringParser.DELIMITER, (JSONArray) value);\n\t\t\telse\n\t\t\t\tmap.put(baseName+key, value);\n\t\t});\n\t}", "List<Gist> deserializeGistsFromJson(String json);", "public static <T> Map<String, T> jsonToMap(String json, Class<T> elementType) {\n\t\tif(gson == null) {\n\t\t\tgson = new Gson();\n\t\t}\n\t\t\n\t\tType type = new MyParamType(Map.class, new Class[]{String.class, elementType});\n\t\t\n\t\treturn gson.fromJson(json, type);\n\t}", "public Map<String,Object> parseSingleJSON(Object jObj) {\n\t\tMap<String,Object> map = new HashMap<>();\n\t\t\n\t\tif(jObj instanceof JSONObject)\n\t\t\tparseJSON(map, \"\", (JSONObject) jObj);\n\t\telse if(jObj instanceof JSONArray)\n\t\t\tparseJSON(map, \"\", (JSONArray) jObj);\n\t\telse\n\t\t\tmap.put(jObj.toString(), parseJSONVal(jObj));\n\t\t\n\t\treturn map;\n\t}", "public void loadJson(String json) throws Exception {\r\n\t\tsetJsonToken(SimpleJson.textToHashMap(json));\r\n\t}", "Gist deserializeGistFromJson(String json);", "private void parseJSON(Map<String,Object> map, String baseName, JSONArray toParse) {\n\t\tObject jObj;\n\t\t\n\t\tfor(int objI=0; objI < toParse.length(); objI++) \n\t\t{\n\t\t\tjObj = parseJSONVal(toParse.get(objI));\n\t\t\t\n\t\t\tif(jObj instanceof JSONObject)\n\t\t\t\tparseJSON(map, baseName+objI+StringParser.DELIMITER, (JSONObject) jObj);\n\t\t\telse if(jObj instanceof JSONArray)\n\t\t\t\tparseJSON(map, baseName+objI+StringParser.DELIMITER, (JSONArray) jObj);\n\t\t\telse\n\t\t\t\tmap.put(baseName+objI, jObj);\n\t\t}\n\t}", "public static HashMap<String,String> splitJson(String s) {\n ObjectMapper mapper1 = new ObjectMapper();\n HashMap<String,String> rtn = new HashMap<String,String>();\n HashMap<String,String> jobj = null;\n try {\n jobj = mapper1.readValue(s, HashMap.class);\n for (Map.Entry<String, String> entrySet : jobj.entrySet()) {\n String key = entrySet.getKey();\n Object value = entrySet.getValue();\n rtn.put(key, mapper1.writeValueAsString(value));\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n return rtn;\n }", "@Test\n public void embedded() throws IOException {\n String obj = \"{\\\"authors\\\":[\\\"Ted\\\", \\\"Mark\\\"],\\\"date\\\": {\\\"year\\\":2013,\\\"month\\\":9}}\";\n JsonLexer l = new JsonLexer(new StringReader(obj));\n JsonParser p = new JsonParser(l);\n Map<String, Object> m = p.parseObject();\n assertEquals(2, m.size());\n\n @SuppressWarnings(\"unchecked\")\n List<String> authors = (List<String>)m.get(\"authors\");\n assertEquals(2, authors.size());\n assertEquals(\"Ted\", authors.get(0));\n assertEquals(\"Mark\", authors.get(1));\n\n @SuppressWarnings(\"unchecked\")\n Map<String, Object> date = (Map<String, Object>)m.get(\"date\");\n assertEquals(2, date.size());\n assertEquals(2013L, date.get(\"year\"));\n assertEquals(9L, date.get(\"month\"));\n }", "public List<HashMap<String, String>> parse(JSONObject jObject) {\n\n JSONArray jPlaces = null;\n try {\n /** Retrieves all the elements in the 'places' array */\n jPlaces = jObject.getJSONArray(\"predictions\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n /** Invoking getPlaces with the array of json object\n * where each json object represent a place\n */\n return getPlaces(jPlaces);\n }", "public static void objParse(JSONObject j) {\n // Current coordinates\n double lon = Double.parseDouble((String)j.get(Constants.LONG_KEY));\n double lat = Double.parseDouble((String)j.get(Constants.LAT_KEY));\n if (inRange(lon, lat)) { // If in range\n int id = Integer.parseInt(String.valueOf(j.get(Constants.ID_KEY)));\n String name = (String)j.get(Constants.NAME_KEY);\n valid.put(id, name); // Inserts into map\n }\n }", "@Override\n public void parse(String json) {\n JSONObject object = new JSONObject(json);\n id = object.getInt(\"dataset id\");\n name = object.getString(\"dataset name\");\n maxNumOfLabels = object.getInt(\"maximum number of labels per instance\");\n\n JSONArray labelsJSON = object.getJSONArray(\"class labels\");\n labels = new ArrayList<>();\n for (int i = 0; i < labelsJSON.length(); i++) {\n labels.add(new Label(labelsJSON.getJSONObject(i).toString()));\n }\n\n JSONArray instancesJSON = object.getJSONArray(\"instances\");\n instances = new ArrayList<>();\n for (int i = 0; i < instancesJSON.length(); i++) {\n instances.add(new Instance(instancesJSON.getJSONObject(i).toString()));\n }\n }", "@Override\n public Object convertJsonToObject(String content) {\n try {\n Map<String, EventDataValue> data = reader.readValue(content);\n\n return convertEventDataValuesMapIntoSet(data);\n } catch (IOException e) {\n throw new IllegalArgumentException(e);\n }\n }", "@Test\n public void simpleObject() throws IOException {\n String obj = \"{\\\"name\\\":\\\"value\\\",\\\"int\\\":1302,\\\"float\\\":1.57,\"\n + \"\\\"negint\\\":-5,\\\"negfloat\\\":-1.57,\\\"floatexp\\\":-1.5e7}\";\n JsonLexer l = new JsonLexer(new StringReader(obj));\n JsonParser p = new JsonParser(l);\n Map<String, Object> m = p.parseObject();\n\n assertEquals(6, m.size());\n assertEquals(\"value\", m.get(\"name\"));\n assertEquals(1302L, m.get(\"int\"));\n assertEquals(1.57, m.get(\"float\"));\n assertEquals(-5L, m.get(\"negint\"));\n assertEquals(-1.57, m.get(\"negfloat\"));\n assertEquals(-1.5e7, m.get(\"floatexp\"));\n }", "@Test\n public void testMappedValues() throws JSONException {\n JSONObject jo = new JSONObject(\"{\\\"valueData\\\":{\\\"data\\\":\\\"Value Name\\\"}}\");\n JsonableTestClassWithMapping jtc = Jsonable.loadFromJson(jo, JsonableTestClassWithMapping.class);\n assertEquals(\"Value Name\", jtc.valueData.data);\n jo = new JSONObject(\"{\\\"value\\\":\\\"Value Name\\\"}\");\n jtc = Jsonable.loadFromJson(jo, JsonableTestClassWithMapping.class);\n assertEquals(\"Value Name\", jtc.valueData.data);\n }", "public static HashMap<String,String> read_json_file(String filepath){\n HashMap<String,String> map = new HashMap<String,String>();\n try{\n BufferedReader bufferedReader = new BufferedReader(new FileReader(filepath));\n Gson gson = new Gson();\n Object json = gson.fromJson(bufferedReader, Object.class);\n map = new Gson().fromJson(\n json.toString(), new TypeToken<HashMap<String, String>>() {}.getType()\n );\n } catch (FileNotFoundException e ) {\n e.printStackTrace();\n }\n return map;\n }", "private HashMap parseMap(String localData){\n int localPointer = 0;\n HashMap temp = new HashMap();\n char c = localData.charAt(localPointer++);\n while (c != '}'){\n String entry = \"\";\n entry_loop :\n while (c != '}'){\n switch (c){\n case ',' :\n c = localData.charAt(localPointer++);\n break entry_loop;\n case '{' :\n String tempEntry = this.getFull(localData.substring(localPointer),0);\n entry += tempEntry;\n localPointer += tempEntry.length();\n break ;\n case '[' :\n String tempEntry2 = this.getFull(localData.substring(localPointer),1);\n entry += tempEntry2;\n localPointer += tempEntry2.length();\n break ;\n default :\n entry += c;\n break ;\n }\n c = localData.charAt(localPointer++);\n }\n entry = entry.trim();\n String[] entryArray = entry.split(\":\",2);\n String key = entryArray[0].trim();\n String value = entryArray[1].trim();\n Object keyObj = null;\n Object valueObj = null;\n\n switch (this.getDataType(key.trim())){\n case String:\n keyObj = key.trim().replace(\"\\\"\",\"\");\n break ;\n case Integer:\n keyObj = Long.parseLong(key.trim());\n break ;\n case Float:\n keyObj = Float.parseFloat(key.trim());\n break ;\n case Boolean:\n keyObj = Boolean.parseBoolean(key.trim());\n break ;\n case Map:\n keyObj = this.parseMap(key.trim());\n break ;\n case List:\n keyObj = this.parseList(key.trim());\n }\n\n switch (this.getDataType(value.trim())){\n case String:\n valueObj = value.trim().replace(\"\\\"\",\"\");\n break ;\n case Integer:\n valueObj = Long.parseLong(value.trim());\n break ;\n case Float:\n valueObj = Float.parseFloat(value.trim());\n break ;\n case Boolean:\n valueObj = Boolean.parseBoolean(value.trim());\n break ;\n case Map:\n valueObj = this.parseMap(value.trim());\n break ;\n case List:\n valueObj = this.parseList(value.trim());\n }\n temp.put(keyObj,valueObj);\n }\n return temp;\n }", "public static<K, V> Map<K, V> createMapFromJSON(final JSONObject mapJson) throws JSONException {\n\t\tfinal Map<K, V> result = new HashMap<K, V>();\n\n\t\tfinal JSONArray entriesJson = (JSONArray) mapJson.get(\"map\");\n\t\tfor(int i=0; i < entriesJson.length(); i++){\n\t\t\tfinal JSONObject entryJson = entriesJson.getJSONObject(i);\n\t\t\tfinal K key = Helper.createObjectFromJSON(entryJson.getJSONObject(\"key\"));\n\t\t\tfinal V value = Helper.createObjectFromJSON(entryJson.getJSONObject(\"value\"));\n\t\t\tresult.put(key, value);\n\t\t}\n\n\t\treturn result;\n\t}", "public static Map<String, Serializable> propertiesFromValue(String value) {\n Map<String, Serializable> map = new HashMap<>();\n JSONObject json = new JSONObject(value);\n // build map from json\n for (String key : json.keySet()) {\n JSONArray arr = json.optJSONArray(key);\n if (arr != null) {\n // value is array of String\n String[] ss = new String[arr.length()];\n for (int i = 0; i < arr.length(); i++) {\n String s = arr.optString(i);\n ss[i] = s;\n }\n\n map.put(key, ss);\n } else {\n // get as String\n String s = json.optString(key);\n map.put(key, s);\n }\n }\n\n return map;\n }", "public void deserialize(JsonObject src);", "public Map<String, String> getMap(JSONObject jsonObject, String key) {\n\t\treturn parseKeyAndValueToMap(getString(jsonObject, key, null));\n\t}", "List<GistComment> deserializeCommentsFromJson(String json);", "public abstract void fromJson(JSONObject jsonObject);", "@Test\n public void testMapping() throws JsonParseException, JsonMappingException, IOException {\n InputStream is = CoinfloorTickerTest.class.getResourceAsStream(\"/marketdata/example-ticker-response.json\");\n\n // Use Jackson to parse it\n ObjectMapper mapper = new ObjectMapper();\n CoinfloorTicker testObject = mapper.readValue(is, CoinfloorTicker.class);\n\n // Verify that the example data was mapped correctly\n Assert.assertEquals(0, testObject.getErrorCode());\n Assert.assertEquals(202, testObject.getTag());\n Assert.assertEquals(BigDecimal.valueOf(32000, 2), testObject.getLast());\n Assert.assertEquals(BigDecimal.valueOf(0, 2), testObject.getHigh());\n Assert.assertEquals(BigDecimal.valueOf(0, 2), testObject.getLow());\n Assert.assertEquals(BigDecimal.valueOf(33000, 2), testObject.getAsk());\n Assert.assertEquals(BigDecimal.valueOf(32000, 2), testObject.getBid());\n }", "GistUser deserializeUserFromJson(String json);", "@Test\n public void testMapOfJsonables() {\n JsonableTestClassWithMaps jtc = Jsonable.loadFromFile(\"testFiles/mapTest.json\", JsonableTestClassWithMaps.class);\n assertEquals(3, jtc.JsonableMap.size());\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"value1\\\":{\\\"detail\\\":\\\"\\\",\\\"data\\\":\\\"Value Name\\\"}\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"value2\\\":{\\\"detail\\\":\\\"Detail Name\\\",\\\"data\\\":\\\"\\\"}\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"value3\\\":{\\\"detail\\\":\\\"Detail Name\\\",\\\"data\\\":\\\"Value Name\\\"}\"));\n }", "public native Object parse( Object json, String texturePath );", "protected abstract T parseMap(Map<String, Object> values);", "private void parseJSON(String response)\n {\n try\n {\n // Using orj.json, get the file string and convert it to an object\n JSONObject object = (JSONObject) new JSONTokener(response).nextValue();\n\n // The Winnipeg Transit JSON results usually have nested values\n // We can identify the request by the first key of the first level\n\n // The method names() will retrieve an JSONArray with the key names\n JSONArray objectNames = object.names();\n\n // Retrieve the first key of the first level\n String firstKey = objectNames.getString(0);\n\n if (firstKey.equals(\"status\"))\n {\n parseStatus(object.getJSONObject(firstKey));\n }\n else if (firstKey.equals(\"stop-schedule\"))\n {\n parseStopSchedule(object.getJSONObject(firstKey));\n }\n }\n catch (JSONException e)\n {\n e.printStackTrace();\n }\n }", "public interface JSONParserService extends Service {\r\n\r\n /**\r\n * Parses from json to map\r\n *\r\n * @param json data\r\n * @return Map<String, Object> or null, if json equals null\r\n */\r\n Map<String, Object> parseToMap(String json);\r\n\r\n /**\r\n * Parses from map to json\r\n *\r\n * @param data map with data\r\n * @return json or null, if map equals null\r\n */\r\n String parseMapToJson(Map<String, Object> data);\r\n\r\n /**\r\n * Parses from object to json\r\n *\r\n * @param obj object that will be parsed to json\r\n * @return json or null if invalid data\r\n */\r\n String parseObjectToJson(Object obj);\r\n\r\n /**\r\n * Parses from json to object of T class\r\n *\r\n * @param json string of json with data object\r\n * @param classObject type object\r\n *\r\n * @return T object or null, if transferred incorrect data\r\n */\r\n <T> T parseToObject(Object json, Class<T> classObject);\r\n\r\n /**\r\n * Parses from json to collection of object's T class\r\n *\r\n * @param json string of json with data objects\r\n * @param typeClass type of objects collection\r\n *\r\n * @return collection of object's T class or null, if transferred incorrect data\r\n */\r\n <T> Collection<T> parseToCollectionObjects(Object json, Type typeClass);\r\n\r\n\r\n}", "@SuppressWarnings(\"unchecked\")\n\tpublic static Map<String, Object> getData(Map<String, Object> mapJson) {\n\t\treturn (Map<String, Object>) mapJson.get(\"data\");\n\t}", "public HashMap toHashMap() throws JSONException {\n return this.getHashMap(this.jsonString);\n }", "public void fromJSON(String json) throws JSONException;", "void extractDataFromJson(String commentData);", "@SuppressWarnings(\"unchecked\")\r\n\tprivate void readMapFromFile() {\r\n\t\ttry {\r\n\t\t\tType type = new TypeToken<HashMap<String, Country>>() {}.getType();\r\n\t\t\tthis.daoMap = (HashMap<String, Country>) gson.fromJson(new FileReader(path), type);\r\n\t\t} catch (JsonSyntaxException | JsonIOException | FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t\r\n\t\t}\r\n\r\n\t}", "public Iterable<Map<String,String>> get() {\n\t\tList<Map<String,String>> mapList = new ArrayList<Map<String,String>>();\n\t\tJsonParser parser = new JsonParser(); \n\t\tJsonObject json ;\n\t\tfor(String jsonString:jsonArr) {\n\t\t\tMap<String,String> sourceMap = new HashMap<String,String>();\n\t\t\tjson = (JsonObject) parser.parse(jsonString);\n\t\t\tsourceMap.put(\"SENSORID\", json.get(\"taxi_identifier\").toString());\n\t\t\tsourceMap.put(\"trip_time_in_secs\", json.get(\"trip_time_in_secs\").toString());\n\t\t\tsourceMap.put(\"trip_distance\", json.get(\"trip_distance\").toString());\n\t\t\tsourceMap.put(\"fare_amount\", json.get(\"fare_amount\").toString());\n\t\t\tsourceMap.put(\"tip_amount\", json.get(\"tip_amount\").toString());\n\t\t\tsourceMap.put(\"surcharge\", json.get(\"surcharge\").toString());\n\t\t\tmapList.add(sourceMap);\n\t\t}\n\t\t\n\t\t\n\t\treturn mapList;\n\t}", "@Test\n\tpublic void test1() {\n\t\tMap<Long, String> map = new HashMap<Long, String>();\n\t\tmap.put(1L, \"1111111,1111111\");\n\t\tmap.put(2L, \"2222,2222\");\n\t\tString str = JSONObject.toJSONString(map);\n\t\tSystem.out.println(str);\n\t\tMap<Long,String> result = JSONObject.parseObject(str, new TypeReference<Map<Long,String>>(){});\n\t\tSystem.out.println(result);\n\t\tSystem.out.println(result.get(1L));\n\t}", "public void parseJSONData(Object JSONdata){\n\n\t}", "private Tuple<String, PlaceholderArgs> parseJSON(String json, Map<String, PlaceholderArgs> existing) {\n\n HashArgs args = new HashArgs();\n // recursively sanitize\n json = sanitize(json, existing, args);\n\n JsonParser parser = new JsonParser();\n JsonElement el = parser.parse(json); // use actual json parsers cause only schmucks write their own\n // except google isnt a schmuck. its google.\n if (!el.isJsonObject()) {\n return null;\n }\n JsonObject obj = el.getAsJsonObject();\n if (!obj.has(\"id\")) { // invalid json, we don't care just leave it in the text.\n return null;\n }\n String id = obj.get(\"id\").getAsString();\n Tuple<String, Placeholder<?>> plx = tryGetPlaceholder(id, existing);\n if (plx == null) {\n return null; // didnt find a valid placeholder -> leave it\n }\n // get placeholder to parse for\n Placeholder<?> pl = plx.getSecond();\n id = plx.getFirst();\n for (Map.Entry<String, JsonElement> e : obj.entrySet()) { // parse json to put into args\n parseJsonValue(e.getKey(), e.getValue(), pl, args, existing);\n }\n return Tuple.of(id, args);\n }", "void fromJson(JsonStaxParser parser) throws SyntaxException, IOException;", "private Map<String, String> getValueMap(JsonNode node) {\n if (!isEtcdDirectory(node)) {\n try {\n String json = node.get(\"value\").asText();\n ObjectMapper mapper = new ObjectMapper();\n Map<String, String> map =\n mapper.readValue(json, new TypeReference<Map<String, String>>() {});\n return map;\n } catch (Exception e) {\n m_LogService.log(LogService.LOG_ERROR, e.getMessage(), e);\n }\n }\n return null;\n }", "public Map<String, String> getMap(String jsonData, String key) {\n\n\t\tif (jsonData == null) {\n\t\t\treturn null;\n\t\t}\n\t\tif (jsonData.length() == 0) {\n\t\t\treturn new HashMap<String, String>();\n\t\t}\n\n\t\ttry {\n\t\t\tJSONObject jsonObject = new JSONObject(jsonData);\n\t\t\treturn getMap(jsonObject, key);\n\t\t} catch (JSONException e) {\n\t\t\tif (isPrintException) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t}", "@Test\n public void testMapping2() throws JsonParseException, JsonMappingException, IOException {\n InputStream is = CoinfloorTickerTest.class.getResourceAsStream(\"/marketdata/example-ticker-update.json\");\n\n // Use Jackson to parse it\n ObjectMapper mapper = new ObjectMapper();\n CoinfloorTicker testObject = mapper.readValue(is, CoinfloorTicker.class);\n\n // Verify that the example data was mapped correctly\n Assert.assertEquals(0, testObject.getErrorCode());\n Assert.assertEquals(BigDecimal.valueOf(0, 2), testObject.getLast());\n Assert.assertEquals(BigDecimal.valueOf(0, 2), testObject.getHigh());\n Assert.assertEquals(BigDecimal.valueOf(0, 2), testObject.getLow());\n Assert.assertEquals(BigDecimal.valueOf(31899, 2), testObject.getAsk());\n Assert.assertEquals(BigDecimal.valueOf(0, 2), testObject.getBid());\n }", "public Map<String, String> parseFrom(Map map) {\n Map<String, String> data = new HashMap<>();\n for (Object key : map.keySet()) {\n Object value = map.get(key);\n if (value instanceof Map) {\n data.putAll(parseFrom((Map) value)); //Recursion FTW\n } else if (value != null) {\n data.put((String) key, value.toString());\n }\n }\n\n return data;\n }", "public Map<String, JsonElementType> getJsonResponseStructure();", "private static FluidIngredient deserializeObject(JsonObject json) {\n if (json.entrySet().isEmpty()) {\n return EMPTY;\n }\n\n // fluid match\n if (json.has(\"name\")) {\n // don't set both, obviously an error\n if (json.has(\"tag\")) {\n throw new JsonSyntaxException(\"An ingredient entry is either a tag or an fluid, not both\");\n }\n\n // parse a fluid\n return FluidMatch.deserialize(json);\n }\n\n // tag match\n if (json.has(\"tag\")) {\n return TagMatch.deserialize(json);\n }\n\n throw new JsonSyntaxException(\"An ingredient entry needs either a tag or an fluid\");\n }", "private void parse(){\n\t\tfor (Object res : book_results){\n\t\t\tString author = JsonPath.read(res,\"$.name\").toString();\n\t\t\tRole role = new Role(author, \"Author\");\n\t\t\tList<String> books = JsonPath.read(res,\"$./book/author/works_written[*].a:name\");\n\t\t\tmql_map.put(role, books);\n\t\t}\n\t\t\n\t\tfor (Object res : organization_results){\n\t\t\tString businessperson = JsonPath.read(res,\"$.name\").toString();\n\t\t\tRole role = new Role(businessperson, \"Businessperson\");\n\t\t\tList<String> organizations = JsonPath.read(res,\"$./organization/organization_founder/organizations_founded[*].a:name\");\n\t\t\tmql_map.put(role, organizations);\n\t\t}\n\t}", "public static <T> Map<String, T> jsonToMap(Reader reader, Class<T> elementType) {\n\t\tif(gson == null) {\n\t\t\tgson = new Gson();\n\t\t}\n\t\t\n\t\tType type = new MyParamType(Map.class, new Class[]{String.class, elementType});\n\t\t\n\t\treturn gson.fromJson(reader, type);\n\t}", "public static Map<String, JsonElement> toMap(JsonObject obj) {\n\t\t\n\t\tMap<String, JsonElement> ret = new LinkedHashMap<String, JsonElement>();\n\t\tfor (Entry<String, JsonElement> entry : obj.entrySet())\n\t\t\tret.put(entry.getKey(), entry.getValue());\n\t\t\n\t\treturn ret;\n\t\t\n\t}", "@Override\r\n\tpublic void parseJson(JSONObject json) {\n\t\tif(json == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\ttype = getInt(json,d_type);\r\n\t\t} catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "protected Map<String, String> parseSimpleJavaScriptObjectProperties(String data) {\n\t\tMap<String, String> result = new LinkedHashMap<String, String>(10);\n\t\t\n\t\tMatcher m = SIMPLE_JSON_PATTERN.matcher(data);\n\t\twhile ( m.find() ) {\n\t\t\tString attrName = m.group(1);\n\t\t\tString attrValue = m.group(2);\n\t\t\tresult.put(attrName, attrValue);\n\t\t}\n\t\t\n\t\tlog.trace(\"Parsed {} attributes from data [{}]: {}\",\n\t\t\t\tnew Object[] {result.size(), data, result});\n\t\t\n\t\treturn result;\n\t}", "public static SofortInfo fromJson(String jsonString) throws JsonProcessingException {\n return JSON.getMapper().readValue(jsonString, SofortInfo.class);\n }", "GistComment deserializeCommentFromJson(String json);", "@Test\n public void testMapOfMapsOfJsonables() {\n JsonableTestClassWithMaps jtc = Jsonable.loadFromFile(\"testFiles/mapTest.json\", JsonableTestClassWithMaps.class);\n assertEquals(3, jtc.JsonableMapMap.size());\n String[] numberStrings = new String[] { \"one\", \"two\", \"three\" };\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i],\n jtc.JsonableMapMap.get(\"value\" + (i + 1)).get(\"value\" + (j + 1)).data);\n assertEquals(numberStrings[j],\n jtc.JsonableMapMap.get(\"value\" + (i + 1)).get(\"value\" + (j + 1)).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(\n jsonString,\n Matchers\n .containsString(\"\\\"JsonableMapMap\\\":{\\\"value3\\\":{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"}},\\\"value1\\\":{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"}},\\\"value2\\\":{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"}}}\"));\n }", "private Object decodingJsonArray(JsonArray jsonArray, MapEntity map) {\n\t\tif (jsonArray == null || map == null) {\n\t\t\treturn null;\n\t\t}\n\t\tObject result = null;\n\t\tSimpleList<?> list = null;\n\t\tint len = jsonArray.size() - 1;\n\t\t/* Add all Objects */\n\t\tif (map.isFlag(FLAG_SIMPLEFORMAT)) {\n\t\t\tlist = new SimpleList<Object>();\n\t\t\tresult = list;\n\t\t}\n\n\t\tfor (int i = 0; i <= len; i++) {\n\t\t\tJsonObject kidObject = jsonArray.getJSONObject(i);\n\t\t\tObject tmp = decodingJsonObject(kidObject, map);\n\t\t\tif (map.isFlag(FLAG_SIMPLEFORMAT)) {\n\t\t\t\tlist.add(tmp);\n\t\t\t} else if (kidObject.has(MAINITEM)) {\n\t\t\t\tresult = tmp;\n\t\t\t} else if (i == 0) {\n\t\t\t\tresult = tmp;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public static SMClass deserialize(JsonObject json) {\r\n\t\tSMClass table = new SMClass(\"sm\");\r\n\t\tif(json == null) return table;\r\n\t\t\r\n\t\tJsonMap map = json.toMap().getJsonMap(\"content\");\r\n\t\tfor(String key : map.keySet()) {\r\n\t\t\tSMClass clazz = table.createClass(key);\r\n\t\t\tloadClassFromJson(clazz, map.getJsonMap(key));\r\n\t\t}\r\n\t\t\r\n\t\treturn table;\r\n\t}", "private static void m4071a(JsonReader jsonReader, Map<String, C0983c> map) {\n jsonReader.beginObject();\n while (jsonReader.hasNext()) {\n String nextName = jsonReader.nextName();\n Object obj = -1;\n if (nextName.hashCode() == 3322014) {\n if (nextName.equals(\"list\")) {\n obj = null;\n }\n }\n if (obj != null) {\n jsonReader.skipValue();\n } else {\n jsonReader.beginArray();\n while (jsonReader.hasNext()) {\n C0983c a = C0936k.m4047a(jsonReader);\n map.put(a.m4241b(), a);\n }\n jsonReader.endArray();\n }\n }\n jsonReader.endObject();\n }", "<T> T parseToObject(Object json, Class<T> classObject);", "public static Object convertJsonObjectToHashMap(final JsonObject jsonObject) {\n return new Gson().fromJson(jsonObject, new TypeToken<Map<String, Object>>() {\n // Map conversion\n }.getType());\n }", "public static ArticleInfo fromJson(String jsonString) throws IOException {\n return JSON.getGson().fromJson(jsonString, ArticleInfo.class);\n }", "ProcessOperation<Map<String, Object>> map();", "private void readFromJSON(String filename) {\n JSONParser parser = new JSONParser();\n\n try\n {\n Object obj = parser.parse(new FileReader(filename));\n JSONObject jsonObject = (JSONObject) obj;\n Menu drinks = getMenu(jsonObject, \"Drink\");\n Menu types = getMenu(jsonObject, \"Type\");\n Menu toppings = getMenu(jsonObject, \"Toppings\");\n Menu sizes = getMenu(jsonObject, \"Size\");\n menuMap.put(\"Drink\", drinks);\n menuMap.put(\"Size\", sizes);\n menuMap.put(\"Toppings\", toppings);\n menuMap.put(\"Type\", types);\n\n } catch (FileNotFoundException e) {\n System.out.println(\"Not found menu.json, exit now.\");\n System.exit(1);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n }", "public static ListSynonymMapsResult fromJson(JsonReader jsonReader) throws IOException {\n return jsonReader.readObject(\n reader -> {\n boolean synonymMapsFound = false;\n List<SynonymMap> synonymMaps = null;\n while (reader.nextToken() != JsonToken.END_OBJECT) {\n String fieldName = reader.getFieldName();\n reader.nextToken();\n\n if (\"value\".equals(fieldName)) {\n synonymMaps = reader.readArray(reader1 -> SynonymMap.fromJson(reader1));\n synonymMapsFound = true;\n } else {\n reader.skipChildren();\n }\n }\n if (synonymMapsFound) {\n ListSynonymMapsResult deserializedListSynonymMapsResult =\n new ListSynonymMapsResult(synonymMaps);\n\n return deserializedListSynonymMapsResult;\n }\n List<String> missingProperties = new ArrayList<>();\n if (!synonymMapsFound) {\n missingProperties.add(\"value\");\n }\n\n throw new IllegalStateException(\n \"Missing required property/properties: \" + String.join(\", \", missingProperties));\n });\n }", "T deserialize(JsonObject json, DynamicDeserializerFactory deserializerFactory) throws ClassNotFoundException;", "private static TagMatch deserialize(JsonObject json) {\n TagKey<Fluid> tag = TagKey.create(Registry.FLUID_REGISTRY, JsonHelper.getResourceLocation(json, \"tag\"));\n int amount = GsonHelper.getAsInt(json, \"amount\");\n return new TagMatch(tag, amount);\n }", "public static void main(String[] args) {\n String jsonString = \"{\\\"name\\\":\\\"Pourush\\\"}\";\n JsonObject jsonObject = new JsonObject(jsonString);\n jsonObject.put(\"location\",\"Utsav\");\n System.out.println(jsonObject);\n Myitem myitem = new Myitem();\n myitem.name = \"falanadhimkana\";\n myitem.description = \"some description\";\n jsonObject.put(\"Myitem\",jsonObject.mapFrom(myitem));\n System.out.println(jsonObject);\n }", "public Producto[] parseResponse(String jsonAsString){\r\n\r\n //manually parsing to productos\r\n JsonParser parser = new JsonParser();\r\n JsonObject rootObject = parser.parse(jsonAsString).getAsJsonObject();\r\n JsonElement projectElement = rootObject.get(\"productos\");\r\n\r\n Producto [] productos = null;\r\n\r\n if(projectElement != null){\r\n\r\n QuantityDictionay.debugLog(\"LOS PRODUCTOS--->\"+projectElement.toString());\r\n\r\n //Use Gson to map response\r\n Gson gson = new Gson();\r\n //set type of response\r\n Type collectionType = new TypeToken<Producto[]>(){}.getType();\r\n //get java objects from json string\r\n productos = gson.fromJson(projectElement.toString(),collectionType);\r\n\r\n QuantityDictionay.debugLog(\"PARSING SIZE---->\"+productos.length);\r\n\r\n }\r\n\r\n\r\n return productos;\r\n\r\n }", "private static void initCityMapping() {\n try {\n log.info(\"initCityMapping start.....\");\n try {\n File dicFile = new File(\"/config/gj_city.json\");\n if (dicFile.exists()) {\n String dic = FileCopyUtils.copyToString(new InputStreamReader(\n new FileInputStream(dicFile),\n StandardCharsets.UTF_8));\n cityInfos = JSONObject.parseObject(dic, Map.class);\n }\n } catch (Exception e) {\n log.error(\"加载城市信息失败,{}\", e.getMessage(), e);\n e.printStackTrace();\n }\n log.info(\"initCityMapping end.....\");\n } catch (Exception e) {\n log.info(\"初始化城市字典数据失败!\", e);\n }\n }", "@Override\n public void parseJson(JsonObject jsonObject) throws JsonException {\n publicKeyInfo = getStringIfSet(jsonObject,\"publicKeyInfo\");\n nodeAddress = getStringIfSet(jsonObject,\"nodeAddress\");\n nodePort = getIntIfSet(jsonObject,\"nodePort\");\n mainNet = getBooleanIfSet(jsonObject,\"mainNet\");\n }", "<T> T fromJson(String json, Class<T> type);", "public Map<String, Object> toMap(Object data) {\n\n try {\n String dataF = null;\n if (!(data instanceof String)) {\n dataF = toString(data);\n }\n// else {\n// dataF = objectMapper.writeValueAsString(data);\n// }\n return objectMapper.readValue(dataF, new TypeReference<Map<String, Object>>() {\n });\n } catch (IOException e) {\n logger.error(e.getMessage(), e);\n }\n return null;\n }", "public List<List<HashMap<String,String>>> parse(JSONObject jObject){\n // Khoi tao cac mang\n List<List<HashMap<String, String>>> routes = new ArrayList<List<HashMap<String,String>>>() ;\n JSONArray jRoutes = null;\n JSONArray jLegs = null;\n JSONArray jSteps = null;\n try {\n // Truy cap vao phan tu chua danh sach tuyen duong\n jRoutes = jObject.getJSONArray(\"routes\");\n for(int i = 0; i < jRoutes.length(); i++){\n jLegs = ((JSONObject)jRoutes.get(i)).getJSONArray(\"legs\");\n List path = new ArrayList<HashMap<String, String>>();\n // Phan tich cac buoc\n for(int j = 0; j < jLegs.length(); j++){\n jSteps = ( (JSONObject)jLegs.get(j)).getJSONArray(\"steps\");\n // Phan tich cac diem\n for(int k = 0; k < jSteps.length(); k++){\n // Danh sach cac duong thang\n String polyline = \"\";\n polyline = (String)((JSONObject)((JSONObject)jSteps.get(k)).get(\"polyline\")).get(\"points\");\n // Giai ma cac duong thang duoc ve tren ban do\n List list = decodePoly(polyline);\n // Gan danh sach cac diem\n for(int l=0;l <list.size();l++){\n HashMap<String, String> hm = new HashMap<String, String>();\n hm.put(\"lat\", Double.toString(((LatLng)list.get(l)).latitude) );\n hm.put(\"lng\", Double.toString(((LatLng)list.get(l)).longitude) );\n path.add(hm);\n }\n }\n routes.add(path);\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }catch (Exception e){\n }\n return routes;\n }", "public void loadMap(FlxState gameState, String jsonMapPath){\n\t\tHashMap<String, String> layers = new HashMap<String, String>();\n\t\tHashMap<String, Array<JsonValue>> objectsJson = new HashMap<String, Array<JsonValue>>();\n\n\t\t// Cargo las layers y objectsJson. También seteo la FlxG.camera para que tenga los bounds del mapa.\n\t\tparseMap(jsonMapPath, RmbsTiledManager.objectsLayerName, layers, objectsJson);\n\n\t\t// Delego el parseo de layers a algún RmbsLayerParser\n\t\tthis.layerParser.parseLayers(gameState, layers, objectsJson);\n\t}", "public void parseProductFromJson(String jsonData) { \r\n\t\t \r\n Type typeList = new TypeToken<ArrayList<Product>>(){}.getType(); \r\n Gson gson = new Gson(); \r\n ArrayList<Product> products = gson.fromJson(jsonData, typeList); \r\n for(Product product:products) { \r\n System.out.println(\"name---------->\" + product.getpName()); \r\n System.out.println(\"price---------->\" + product.getpPrice()); \r\n } \r\n }", "T fromJson(Object source);", "static Map<ColumnIdentifier, Term> parseJson(String jsonString, Collection<ColumnMetadata> expectedReceivers)\n {\n try\n {\n Map<String, Object> valueMap = JsonUtils.JSON_OBJECT_MAPPER.readValue(jsonString, Map.class);\n\n if (valueMap == null)\n throw new InvalidRequestException(\"Got null for INSERT JSON values\");\n\n JsonUtils.handleCaseSensitivity(valueMap);\n\n Map<ColumnIdentifier, Term> columnMap = new HashMap<>(expectedReceivers.size());\n for (ColumnSpecification spec : expectedReceivers)\n {\n // We explicitely test containsKey() because the value itself can be null, and we want to distinguish an\n // explicit null value from no value\n if (!valueMap.containsKey(spec.name.toString()))\n continue;\n\n Object parsedJsonObject = valueMap.remove(spec.name.toString());\n if (parsedJsonObject == null)\n {\n // This is an explicit user null\n columnMap.put(spec.name, Constants.NULL_VALUE);\n }\n else\n {\n try\n {\n columnMap.put(spec.name, spec.type.fromJSONObject(parsedJsonObject));\n }\n catch (MarshalException exc)\n {\n throw new InvalidRequestException(format(\"Error decoding JSON value for %s: %s\", spec.name, exc.getMessage()));\n }\n }\n }\n\n if (!valueMap.isEmpty())\n {\n throw new InvalidRequestException(format(\"JSON values map contains unrecognized column: %s\",\n valueMap.keySet().iterator().next()));\n }\n\n return columnMap;\n }\n catch (IOException exc)\n {\n throw new InvalidRequestException(format(\"Could not decode JSON string as a map: %s. (String was: %s)\", exc.toString(), jsonString));\n }\n catch (MarshalException exc)\n {\n throw new InvalidRequestException(exc.getMessage());\n }\n }", "private static void loadJson(JsonObject object, ConfigImpl config, String key) {\n for (Entry<String, JsonElement> entry : object.entrySet()) {\n String newKey = addToKey(key, entry.getKey());\n loadJson(entry.getValue(), config, newKey);\n }\n }", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic ListInfo deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context)\n\t\t\tthrows JsonParseException {\n\t\tListInfo listInfo = new ListInfo();\n\n\t\tJsonObject topMap = json.getAsJsonObject();\n\t\tlistInfo.setLastUpdate(topMap.get(LAST_UPDATE).getAsLong());\n\t\tlistInfo.setName(topMap.get(NAME).getAsString());\n\t\tlistInfo.setStatus(TimeStampedNode.Status.valueOf(topMap.get(STATUS).getAsString()));\n\t\tif (topMap.has(UNIQUE_ID)){\n\t\t\tlistInfo.setUniqueId(topMap.get(UNIQUE_ID).getAsString());\n\t\t}\n\n\t\tif (topMap.has(ITEMS)) {\n\t\t\tJsonArray itemsJson = topMap.get(ITEMS).getAsJsonArray();\n\t\t\tfor (JsonElement itemJsonElement : itemsJson) {\n\t\t\t\tItemInfo item = context.deserialize(itemJsonElement, ItemInfo.class);\n\n\t\t\t\t//Add it to the map. Note, order is lost, but since it's always alphabetical order it's ok\n\t\t\t\tlistInfo.getItems().put(item.getUniqueId(), item);\n\t\t\t}//for itemsJson\n\t\t}//if has items\n\n\t\tif (topMap.has(CATEGORIES)) {\n\t\t\tJsonArray categoriesJson = topMap.get(CATEGORIES).getAsJsonArray();\n\t\t\t//Hack needed to make it deserialize to an ArrayList correctly.\n\t\t\t//http://stackoverflow.com/questions/5554217/google-gson-deserialize-listclass-object-generic-type\n\t\t\tType listType = new TypeToken<TreeSet<CategoryInfo>>() {\n }.getType();\n\t\t\tlistInfo.setCategories((TreeSet<CategoryInfo>)context.deserialize(categoriesJson, listType));\n\t\t\t//We never want to say it's changed when reading it in.\n\t\t\tfor (CategoryInfo cat : listInfo.getCategories()) {\n\t\t\t\tcat.setChangedOnServer(false);\n\t\t\t}\n\t\t}//if has categories\n\t\t\n\t\tif (topMap.has(SELECTED_CATEGORIES)) {\n\t\t\tJsonArray selCatJson = topMap.get(SELECTED_CATEGORIES).getAsJsonArray();\n\t\t\tType listType = new TypeToken<HashSet<String>>() {\n }.getType();\n\t\t\tlistInfo.setSelectedCategories((HashSet<String>) context.deserialize(selCatJson, listType));\n\t\t}//if has selectedCategories\n\t\t\n\t\tif (topMap.has(OTHER_USER_PRIVS)) {\n\t\t\tJsonObject privsJson = topMap.get(OTHER_USER_PRIVS).getAsJsonObject();\n\t\t\tfor ( Map.Entry<String,JsonElement> privEntry : privsJson.entrySet()){\n\t\t\t\tOtherUserPrivOnList privInfo = context.deserialize(privEntry.getValue(), OtherUserPrivOnList.class);\n\t\t\t\tprivInfo.userId = privEntry.getKey();\n\t\t\t\tlistInfo.getOtherUserPrivs().put(privEntry.getKey(), privInfo);\n\t\t\t}//for categoriesJson\n\t\t}//if has selectedCategories\n\n\t\t//Note, always ignore changedOnServer when parsing.\n\t\t\n\t\treturn listInfo;\n\t}", "public static List<ExtractorLayerRequest> parseJson (String jsonData) throws JSONException,\n NoSuchAuthorityCodeException, FactoryException, MalformedURLException {\n JSONObject jsonObject = parseStringToJSon(jsonData);\n JSONArray emails = jsonObject.getJSONArray (EMAILS_KEY);\n JSONArray jsonLayers = jsonObject.getJSONArray (LAYERS_KEY);\n JSONObject globalProps = jsonObject.getJSONObject (GLOBAL_PROPS_KEY);\n\n ArrayList<ExtractorLayerRequest> layers = new ArrayList<ExtractorLayerRequest> ();\n for (int i = 0; i < jsonLayers.length (); i++) {\n ExtractorLayerRequest layer = new ExtractorLayerRequest (jsonLayers.getJSONObject (i), globalProps, emails);\n layers.add (layer);\n }\n return layers;\n }", "private static void m4070a(JsonReader jsonReader, C0955d c0955d, Map<String, List<Layer>> map, Map<String, C0967g> map2) {\n jsonReader.beginArray();\n while (jsonReader.hasNext()) {\n List arrayList = new ArrayList();\n C0420f c0420f = new C0420f();\n jsonReader.beginObject();\n String str = null;\n String str2 = str;\n String str3 = str2;\n int i = 0;\n int i2 = 0;\n while (jsonReader.hasNext()) {\n Object obj;\n Layer a;\n String nextName = jsonReader.nextName();\n int hashCode = nextName.hashCode();\n if (hashCode == -1109732030) {\n if (nextName.equals(\"layers\")) {\n obj = 1;\n switch (obj) {\n case null:\n str = jsonReader.nextString();\n break;\n case 1:\n jsonReader.beginArray();\n while (jsonReader.hasNext()) {\n a = C0943s.m4065a(jsonReader, c0955d);\n c0420f.m1545b(a.m4287e(), a);\n arrayList.add(a);\n }\n jsonReader.endArray();\n break;\n case 2:\n i = jsonReader.nextInt();\n break;\n case 3:\n i2 = jsonReader.nextInt();\n break;\n case 4:\n str2 = jsonReader.nextString();\n break;\n case 5:\n str3 = jsonReader.nextString();\n break;\n default:\n jsonReader.skipValue();\n break;\n }\n }\n } else if (hashCode == 104) {\n if (nextName.equals(\"h\")) {\n obj = 3;\n switch (obj) {\n case null:\n str = jsonReader.nextString();\n break;\n case 1:\n jsonReader.beginArray();\n while (jsonReader.hasNext()) {\n a = C0943s.m4065a(jsonReader, c0955d);\n c0420f.m1545b(a.m4287e(), a);\n arrayList.add(a);\n }\n jsonReader.endArray();\n break;\n case 2:\n i = jsonReader.nextInt();\n break;\n case 3:\n i2 = jsonReader.nextInt();\n break;\n case 4:\n str2 = jsonReader.nextString();\n break;\n case 5:\n str3 = jsonReader.nextString();\n break;\n default:\n jsonReader.skipValue();\n break;\n }\n }\n } else if (hashCode == 112) {\n if (nextName.equals(\"p\")) {\n obj = 4;\n switch (obj) {\n case null:\n str = jsonReader.nextString();\n break;\n case 1:\n jsonReader.beginArray();\n while (jsonReader.hasNext()) {\n a = C0943s.m4065a(jsonReader, c0955d);\n c0420f.m1545b(a.m4287e(), a);\n arrayList.add(a);\n }\n jsonReader.endArray();\n break;\n case 2:\n i = jsonReader.nextInt();\n break;\n case 3:\n i2 = jsonReader.nextInt();\n break;\n case 4:\n str2 = jsonReader.nextString();\n break;\n case 5:\n str3 = jsonReader.nextString();\n break;\n default:\n jsonReader.skipValue();\n break;\n }\n }\n } else if (hashCode == 117) {\n if (nextName.equals(\"u\")) {\n obj = 5;\n switch (obj) {\n case null:\n str = jsonReader.nextString();\n break;\n case 1:\n jsonReader.beginArray();\n while (jsonReader.hasNext()) {\n a = C0943s.m4065a(jsonReader, c0955d);\n c0420f.m1545b(a.m4287e(), a);\n arrayList.add(a);\n }\n jsonReader.endArray();\n break;\n case 2:\n i = jsonReader.nextInt();\n break;\n case 3:\n i2 = jsonReader.nextInt();\n break;\n case 4:\n str2 = jsonReader.nextString();\n break;\n case 5:\n str3 = jsonReader.nextString();\n break;\n default:\n jsonReader.skipValue();\n break;\n }\n }\n } else if (hashCode == 119) {\n if (nextName.equals(\"w\")) {\n obj = 2;\n switch (obj) {\n case null:\n str = jsonReader.nextString();\n break;\n case 1:\n jsonReader.beginArray();\n while (jsonReader.hasNext()) {\n a = C0943s.m4065a(jsonReader, c0955d);\n c0420f.m1545b(a.m4287e(), a);\n arrayList.add(a);\n }\n jsonReader.endArray();\n break;\n case 2:\n i = jsonReader.nextInt();\n break;\n case 3:\n i2 = jsonReader.nextInt();\n break;\n case 4:\n str2 = jsonReader.nextString();\n break;\n case 5:\n str3 = jsonReader.nextString();\n break;\n default:\n jsonReader.skipValue();\n break;\n }\n }\n } else if (hashCode == 3355) {\n if (nextName.equals(FacebookAdapter.KEY_ID)) {\n obj = null;\n switch (obj) {\n case null:\n str = jsonReader.nextString();\n break;\n case 1:\n jsonReader.beginArray();\n while (jsonReader.hasNext()) {\n a = C0943s.m4065a(jsonReader, c0955d);\n c0420f.m1545b(a.m4287e(), a);\n arrayList.add(a);\n }\n jsonReader.endArray();\n break;\n case 2:\n i = jsonReader.nextInt();\n break;\n case 3:\n i2 = jsonReader.nextInt();\n break;\n case 4:\n str2 = jsonReader.nextString();\n break;\n case 5:\n str3 = jsonReader.nextString();\n break;\n default:\n jsonReader.skipValue();\n break;\n }\n }\n }\n obj = -1;\n switch (obj) {\n case null:\n str = jsonReader.nextString();\n break;\n case 1:\n jsonReader.beginArray();\n while (jsonReader.hasNext()) {\n a = C0943s.m4065a(jsonReader, c0955d);\n c0420f.m1545b(a.m4287e(), a);\n arrayList.add(a);\n }\n jsonReader.endArray();\n break;\n case 2:\n i = jsonReader.nextInt();\n break;\n case 3:\n i2 = jsonReader.nextInt();\n break;\n case 4:\n str2 = jsonReader.nextString();\n break;\n case 5:\n str3 = jsonReader.nextString();\n break;\n default:\n jsonReader.skipValue();\n break;\n }\n }\n jsonReader.endObject();\n if (str2 != null) {\n C0967g c0967g = new C0967g(i, i2, str, str2, str3);\n map2.put(c0967g.m4205a(), c0967g);\n } else {\n map.put(str, arrayList);\n }\n }\n jsonReader.endArray();\n }", "public FilterItems jsonToObject(String json){\n json = json.replace(\"body=\",\"{ \\\"body\\\" : \");\n json = json.replace(\"&oil=\",\", \\\"oil\\\" : \");\n json = json.replace(\"&transmission=\",\", \\\"transmission\\\" :\");\n json = json + \"}\";\n json = json.replace(\"[]\",\"null\");\n ObjectMapper mapper = new ObjectMapper();\n FilterItems itemSearch = null;\n try {\n itemSearch = mapper.readValue(json, FilterItems.class);\n } catch (IOException e) {\n e.printStackTrace();\n }\n return itemSearch;\n }", "public static HashMap <String, JsonValue> importPointsConversion(Reader fileReader) throws IOException{\n\t\tHashMap<String, JsonValue> pointsConversion = new HashMap <String, JsonValue> ();\n\t\tJsonObject jsonPointsConversion = Json.parse(fileReader).asObject();\n\t\tjsonPointsConversion.forEach(member -> pointsConversion.put(member.getName(), member.getValue()));\n\t\treturn pointsConversion;\n\t}", "@Override\n\tpublic JSON parse(String in) throws IOException {\n\t\tMyJSON js = new MyJSON();\n\t\t//count brackets make sure they match\n\t\tif(!syntaxOkay(in)){\n\t\t\tthrow new IllegalStateException(\"Mismatched brackets error\");\n\t\t}\n\t\t//get rid of spaces to make things easier\n\t\tString withoutSpaces = remove(in, ' ');\n\t\t//handles edge case of an empty object\n\t\tString withoutBraces = remove(withoutSpaces, '{');\n\t\twithoutBraces = remove(withoutBraces, '}');\n\t\tif(withoutBraces.length() == 0){\n\t\t\treturn js;\n\t\t}\n\t\tint colonIndex = in.indexOf(\":\");\n\t\tString key = in.substring(0, colonIndex);\n\t\tString value = in.substring(colonIndex + 1);\n\n\t\tif(value.contains(\":\")){\n\t\t\t//this means the value is an object so we figure out how many strings to add to the object\n\t\t\tString[] values = value.split(\",\");\n\t\t\t//creates a temp for the new object\n\t\t\tMyJSON temp = new MyJSON();\n\t\t\tfillObject(values, temp);\n\t\t\tkey = removeOutsides(key);\n\t\t\tjs.setObject(key, temp);\n\t\t}else{\n\t\t\t//the base case that actually puts things as a JSON object\n\t\t\tkey = removeOutsides(key);\n\t\t\tvalue = removeOutsides(value);\n\t\t\tjs.setString(key, value);\n\t\t}\n\n\t\treturn js;\n\t}", "private Earthquake parseJSON(JSONObject o){\n String country, place, id;\r\n double magnitude, lat, lng, depth;\r\n long time_long, updated_long;\r\n id = o.optString(\"id\");\r\n JSONObject prop = o.getJSONObject(\"properties\");\r\n place = prop.optString(\"place\");\r\n country = place.substring(place.lastIndexOf(\",\"), (place.length()-1)); \r\n magnitude = prop.optDouble(\"mag\");\r\n time_long=o.optLong(\"time\");\r\n updated_long=o.optLong(\"updated\");\r\n \r\n \r\n JSONObject geometry = o.getJSONObject(\"geometry\");\r\n JSONArray coor = geometry.getJSONArray(\"coordinates\");\r\n lng=coor.optDouble(0);\r\n lat=coor.optDouble(0);\r\n depth=coor.optDouble(0);\r\n \r\n //storing the earthquake data to the ontology\r\n return new Earthquake(id, place, magnitude, lng, lat, depth);\r\n }", "private void parseJson(JSONObject json) {\n try {\n nameRes = new String[json.getJSONArray(\"data\").length()];\n idRes = new String[json.getJSONArray(\"data\").length()];\n photoRes = new String[json.getJSONArray(\"data\").length()];\n bi_id = new BigInteger[json.getJSONArray(\"data\").length()];\n\n for(int i = 0; i < json.getJSONArray(\"data\").length();i++){\n JSONObject record = json.getJSONArray(\"data\").getJSONObject(i);\n nameRes[i] = record.getString(\"name\");\n photoRes[i] = record.getJSONObject(\"picture\").getJSONObject(\"data\").getString(\"url\");\n idRes[i] = record.getString(\"id\");\n String temp_id = record.getString(\"id\");\n BigInteger final_id = new BigInteger(temp_id);\n bi_id[i] = final_id;\n //System.out.println(photoRes[i]);\n //System.out.println(\"main____\"+nameRes[0]);\n }\n\n// listems = new ArrayList<Map<String, Object>>();\n// for (int i = 0; i < nameRes.length; i++) {\n// listem = new HashMap<String, Object>();\n// listem.put(\"photo\", photoRes[i]);\n// listem.put(\"name\", nameRes[i]);\n// listem.put(\"id\", idRes[i]);\n// listem.put(\"bi_id\", bi_id[i]);\n// listems.add(listem);\n// }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n/*\n List<Map<String, Object>> listems = new ArrayList<Map<String, Object>>();\n for (int i = 0; i < nameRes.length; i++) {\n Map<String, Object> listem = new HashMap<String, Object>();\n listem.put(\"photo\", photoRes[i]);\n listem.put(\"name\", nameRes[i]);\n\n listems.add(listem);\n }*/\n }", "public Integer loadJSONFile()\n {\n JSONParser parser = new JSONParser();\n try{\n\n Object obj = parser.parse(new FileReader(\"/Users/rnuka/Desktop/sample.json\"));\n JSONObject jsonObj = (JSONObject)obj;\n\n Long age = (Long)jsonObj.get(\"age\");\n System.out.println(\"age:\"+age);\n\n String name = (String)jsonObj.get(\"name\");\n System.out.println(\"name:\" + name);\n\n JSONArray address = (JSONArray)jsonObj.get(\"address\");\n\n for(Object str : address){\n System.out.println(str);\n }\n\n\n\n }catch(Exception e){\n e.printStackTrace();\n }\n return 1;\n }", "TorrentJsonParser getJsonParser();", "public static WeatherInfo extractWeather(String response) {\n JsonParser parser = new JsonParser();\n JsonElement jsonElement = parser.parse(response);\n JsonObject rootObject = jsonElement.getAsJsonObject();\n JsonObject location = rootObject.getAsJsonObject(\"location\");\n String city = location.get(\"name\").getAsString();\n String country = location.get(\"country\").getAsString();\n JsonObject current = rootObject.getAsJsonObject(\"current\");\n Double temp = current.get(\"temp_c\").getAsDouble();\n JsonObject condition = current.getAsJsonObject(\"condition\");\n String conditionText = condition.get(\"text\").getAsString();\n return new WeatherInfo(city, country, conditionText, temp);\n}", "private static JSONObject mapFromBytes(ByteBuffer bytes) throws JSONException{\n\t\tJSONObject json = new JSONObject();\n\t\t//System.out.println(\"From map!\");\n\t\tint length = bytes.getInt();\n\t\t//System.out.println(\"Length \" + Integer.toString(length));\n\t\tfor (int i = 0; i < length; i++){\n\t\t\t//String key =(String) valueFromBytes(bytes);\n\t\t\t\n\t\t\t//Get Key\n\t\t\tbyte type = bytes.get();\n\t\t\t//assert(type == STRING_INDICATOR);\n\t\t\tint lengthKey = bytes.getInt();\n\t\t\tbyte[] stringBytes = new byte[lengthKey];\n\t\t\tbytes.get(stringBytes, 0, lengthKey);\n\t\t\tString key = new String(stringBytes);\n\t\t\t//System.out.println(\"From map: \" + new Integer(type).toString());\n\t\t\t//Get value\n\t\t\ttype = bytes.get();\n\t\t\tswitch(type){\n\t\t\tcase MAP_INDICATOR:\n\t\t\t\tjson.put(key, mapFromBytes(bytes));\n\t\t\t\tbreak;\n\t\t\tcase ARRAY_INDICATOR:\n\t\t\t\tjson.put(key, arrayFromBytes(bytes));\n\t\t\t\tbreak;\n\t\t\tcase STRING_INDICATOR:\n\t\t\t\tint lengthString = bytes.getInt();\n\t\t\t\tstringBytes = new byte[lengthString];\n\t\t\t\tbytes.get(stringBytes, 0, lengthString);\n\t\t\t\tjson.put(key,new String(stringBytes));\n\t\t\t\tbreak;\n\t\t\tcase INTEGER_INDICATOR:\n\t\t\t\tjson.put(key,bytes.getInt());\n\t\t\t\tbreak;\n\t\t\tcase LONG_INDICATOR:\n\t\t\t\tjson.put(key,bytes.getLong());\n\t\t\t\tbreak;\n\t\t\tcase DOUBLE_INDICATOR:\n\t\t\t\tjson.put(key,bytes.getDouble());\n\t\t\t\tbreak;\n\t\t\tcase FLOAT_INDICATOR:\n\t\t\t\tjson.put(key,bytes.getFloat());\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new JSONException(\"Tried to decode unknown type from byte array!\");\n\t\t\t}\n\t\t}\n\t\treturn json;\n\t}" ]
[ "0.73160857", "0.66073877", "0.64284396", "0.6335312", "0.63136876", "0.6225055", "0.6136397", "0.6122866", "0.60832644", "0.60580975", "0.60354173", "0.59651285", "0.5917018", "0.5881459", "0.58578557", "0.5832204", "0.5816659", "0.579116", "0.5753014", "0.57128483", "0.5636167", "0.5630361", "0.5626745", "0.56156427", "0.56145614", "0.55863065", "0.55612963", "0.5554003", "0.5552015", "0.5521951", "0.55126804", "0.5480003", "0.54714125", "0.5468181", "0.5374779", "0.53745645", "0.53731036", "0.53662556", "0.53634554", "0.53598964", "0.5347326", "0.53209907", "0.53126466", "0.53060967", "0.5301312", "0.52917814", "0.5289019", "0.5286877", "0.52488977", "0.52439505", "0.52255875", "0.5222746", "0.5203098", "0.5172611", "0.5167208", "0.51670164", "0.5163359", "0.5144593", "0.5144147", "0.5141215", "0.51370656", "0.51370376", "0.51326615", "0.5124006", "0.5114238", "0.5110321", "0.51030946", "0.51013213", "0.5088444", "0.50717586", "0.5071488", "0.5061355", "0.505393", "0.50330424", "0.5014057", "0.5013646", "0.500587", "0.5004896", "0.50006175", "0.5000351", "0.49995148", "0.49994725", "0.4990644", "0.49646083", "0.49631962", "0.49600595", "0.49562818", "0.4954307", "0.49520695", "0.4949915", "0.49481678", "0.4941094", "0.49402675", "0.49382168", "0.4930343", "0.49241507", "0.4917498", "0.49171668", "0.4909544", "0.4909374" ]
0.8551131
0
Parses from map to json
String parseMapToJson(Map<String, Object> data);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private JsonObject convertMapToJson(Map<String,String> entry){\r\n\t\tJsonObject jsonObj = new JsonObject();\r\n\t\tSet<String> keySet = entry.keySet();\r\n\t\t\r\n\t\tfor(String key : keySet){\r\n\t\t\tjsonObj.addProperty(key, entry.get(key));\r\n\t\t}\r\n\t\treturn jsonObj;\r\n\t}", "private void parseJSON(Map<String,Object> map, String baseName, JSONObject toParse) {\n\t\ttoParse.keys().forEachRemaining(key -> {\n\t\t\tObject value = parseJSONVal(toParse.get(key));\n\t\t\t\n\t\t\tif(value instanceof JSONObject)\n\t\t\t\tparseJSON(map, baseName+key+StringParser.DELIMITER, (JSONObject) value);\n\t\t\telse if(value instanceof JSONArray) \n\t\t\t\tparseJSON(map, baseName+key+StringParser.DELIMITER, (JSONArray) value);\n\t\t\telse\n\t\t\t\tmap.put(baseName+key, value);\n\t\t});\n\t}", "public Map<String, String> parseFrom(Map map) {\n Map<String, String> data = new HashMap<>();\n for (Object key : map.keySet()) {\n Object value = map.get(key);\n if (value instanceof Map) {\n data.putAll(parseFrom((Map) value)); //Recursion FTW\n } else if (value != null) {\n data.put((String) key, value.toString());\n }\n }\n\n return data;\n }", "private void parseJSON(Map<String,Object> map, String baseName, JSONArray toParse) {\n\t\tObject jObj;\n\t\t\n\t\tfor(int objI=0; objI < toParse.length(); objI++) \n\t\t{\n\t\t\tjObj = parseJSONVal(toParse.get(objI));\n\t\t\t\n\t\t\tif(jObj instanceof JSONObject)\n\t\t\t\tparseJSON(map, baseName+objI+StringParser.DELIMITER, (JSONObject) jObj);\n\t\t\telse if(jObj instanceof JSONArray)\n\t\t\t\tparseJSON(map, baseName+objI+StringParser.DELIMITER, (JSONArray) jObj);\n\t\t\telse\n\t\t\t\tmap.put(baseName+objI, jObj);\n\t\t}\n\t}", "private String mapToJSON(Map<String, Map<String,Integer>> map) {\n\t\tString json = \"{\";\n\t\tfor (String key : map.keySet()) {\n\t\t\tString category = \"\\\"\" + key + \"\\\":[\";\n\t\t\tjson += category;\n\t\t\tMap<String,Integer> names = map.get(key);\n\t\t\tfor (String val : names.keySet()) {\n\t\t\t\tString entry = \"{\\\"count\\\":\" + names.get(val) + \", \\\"name\\\":\\\"\" + val.replace(\"\\\"\",\"\").replace(\",\",\"\") + \"\\\"},\";\n\t\t\t\tjson += entry;\n\t\t\t}\n\t\t\tjson += \"],\";\n\t\t}\n\t\tjson += \"}\";\n\t\tjson = json.replace(\",]\",\"]\").replace(\",}\",\"}\");\n\t\treturn json;\n\t}", "Map<String, Object> parseToMap(String json);", "public static JsonObject toJsonObject(Map<String, JsonElement> map) {\n\t\t\n\t\tJsonObject ret = new JsonObject();\n\t\tfor (Entry<String, JsonElement> entry : map.entrySet())\n\t\t\tret.add(entry.getKey(), entry.getValue());\n\t\t\n\t\treturn ret;\n\t\t\n\t}", "private static void writeJSONString(Map<?, ?> map, Appendable out) throws IOException {\n @Var boolean first = true;\n\n out.append('{');\n for (Map.Entry<?, ?> entry : map.entrySet()) {\n if (first) {\n first = false;\n } else {\n out.append(',');\n }\n out.append('\\\"');\n escape(String.valueOf(entry.getKey()), out);\n out.append('\\\"');\n out.append(':');\n writeJSONString(entry.getValue(), out);\n }\n out.append('}');\n }", "public static JSONObject jsonFromMap(Map<String, Serializable> map) {\n JSONObject json = new JSONObject();\n for (String key : map.keySet()) {\n Serializable value = map.get(key);\n // support only String or String[]\n if (value instanceof String) {\n json.put(key, value);\n } else if (value instanceof String[]) {\n JSONArray arr = new JSONArray();\n for (String s : (String[]) value) {\n arr.put(s);\n }\n\n json.put(key, arr);\n }\n }\n\n return json;\n }", "public static Map<String,Object> processJSON(String jsontoMap)\n\t{\n\t\tString[] splitkeyval=null;\n\t\tMap<String,Object> mapConvert=new HashMap();\n\t\tString[] splitjson=jsontoMap.replace(\"\\\"\",\"\").split(\",\");\n\t\tfor(int i=0;i<splitjson.length;i++)\n\t\t{\n\t\t\tif(splitjson[i].contains(\"iss\"))\n\t\t\t{\n\t\t\t\tint col=splitjson[i].indexOf(\":\");\n\t\t\t\tsplitjson[i] = splitjson[i].substring(0,col) +\"=\"\n\t\t\t + splitjson[i].substring(col + 1);\n\t\t\t\tsplitkeyval=splitjson[i].split(\"=\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t splitkeyval=splitjson[i].split(\":\");\n\t\t\t}\n\t\t\tmapConvert.put(splitkeyval[0], splitkeyval[1]);\n\t\t}\n\t\treturn mapConvert;\n\t}", "@Test\n public void testMapOfJsonables() {\n JsonableTestClassWithMaps jtc = Jsonable.loadFromFile(\"testFiles/mapTest.json\", JsonableTestClassWithMaps.class);\n assertEquals(3, jtc.JsonableMap.size());\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"value1\\\":{\\\"detail\\\":\\\"\\\",\\\"data\\\":\\\"Value Name\\\"}\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"value2\\\":{\\\"detail\\\":\\\"Detail Name\\\",\\\"data\\\":\\\"\\\"}\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"value3\\\":{\\\"detail\\\":\\\"Detail Name\\\",\\\"data\\\":\\\"Value Name\\\"}\"));\n }", "public static String mapToJson(Map<String, String> map) {\n Gson gson = new Gson();\n String json = gson.toJson(map);\n return json;\n }", "protected abstract T parseMap(Map<String, Object> values);", "public abstract Map<String, Serializable> toMap();", "@Test\n\tpublic void test1() {\n\t\tMap<Long, String> map = new HashMap<Long, String>();\n\t\tmap.put(1L, \"1111111,1111111\");\n\t\tmap.put(2L, \"2222,2222\");\n\t\tString str = JSONObject.toJSONString(map);\n\t\tSystem.out.println(str);\n\t\tMap<Long,String> result = JSONObject.parseObject(str, new TypeReference<Map<Long,String>>(){});\n\t\tSystem.out.println(result);\n\t\tSystem.out.println(result.get(1L));\n\t}", "@Override\n\tpublic void convertitMap(Map<String, Object> map) {\n\t\t\n\t}", "public JSONArray map_to_json(TreeMap<Integer,ArrayList<Integer>> map) throws JSONException {\n JSONArray res = new JSONArray();\n JSONObject object;\n ArrayList<Integer> tmp;\n for (int i=0; i<8; i++) {\n if (map.get(i) != null) {\n object=new JSONObject();\n tmp=map.get(i);\n System.out.print(\"tmp : \" + tmp + \" --------------------- \\n\");\n object.put(\"weight\",Integer.toString(i));\n object.put(\"list\",remove_duplicates(tmp));\n res.put(object);\n }\n }\n return res;\n }", "private Map<String, Object> readMap(String json) {\n if (StringUtils.isBlank(json)) {\n return new HashMap<>();\n }\n try {\n return new ObjectMapper().readValue(json, HashMap.class);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "@Test\n public void testMapOfStrings() {\n JsonableTestClassWithMaps jtc = Jsonable.loadFromFile(\"testFiles/mapTest.json\", JsonableTestClassWithMaps.class);\n assertEquals(4, jtc.stringMap.size());\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"value1\\\":\\\"abc\\\"\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"value2\\\":\\\"123\\\"\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"value3\\\":\\\"def\\\"\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"value4\\\":\\\"456\\\"\"));\n }", "@Test\n public void testMapOfMapsOfJsonables() {\n JsonableTestClassWithMaps jtc = Jsonable.loadFromFile(\"testFiles/mapTest.json\", JsonableTestClassWithMaps.class);\n assertEquals(3, jtc.JsonableMapMap.size());\n String[] numberStrings = new String[] { \"one\", \"two\", \"three\" };\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i],\n jtc.JsonableMapMap.get(\"value\" + (i + 1)).get(\"value\" + (j + 1)).data);\n assertEquals(numberStrings[j],\n jtc.JsonableMapMap.get(\"value\" + (i + 1)).get(\"value\" + (j + 1)).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(\n jsonString,\n Matchers\n .containsString(\"\\\"JsonableMapMap\\\":{\\\"value3\\\":{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"}},\\\"value1\\\":{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"}},\\\"value2\\\":{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"}}}\"));\n }", "ProcessOperation<Map<String, Object>> map();", "protected MMap readMap(JSONObject json) throws JSONException, TypeException {\n System.err.println(\"readMap json = \" + json);\n\n\t// Read the size\n\tint mapSize = json.getInt(\"size\");\n\n\t// Read the key type\n String keyTypeStr = json.getString(\"keyType\");\n\tProbeAttributeType keyType = decodeType(keyTypeStr);\n\n\t// Read the value type\n String valueTypeStr = json.getString(\"valueType\");\n\tProbeAttributeType valueType = decodeType(valueTypeStr);\n\n // Allocate a map of the right type\n\tMMap map = new DefaultMMap(keyType, valueType);\n\n JSONArray array = json.getJSONArray(\"map\");\n\n\t// now add all the values to the map\n\tfor (int e=0; e < mapSize; e++) {\n JSONObject mapping = array.getJSONObject(e);\n \n\t // decode a key\n\t Object key = decodeValue(keyType, mapping.get(\"key\"));\n\t // decode a value, \n\t Object value = decodeValue(valueType, mapping.get(\"value\"));\n\n map.put(key, value);\n\t}\n\n\treturn map;\n\n\n\n }", "public static String mapToJson(Map map, int depth) {\r\n\t\tif (map == null)\r\n\t\t\treturn \"null\";\r\n\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tboolean first = true;\r\n\t\tIterator iter = map.entrySet().iterator();\r\n\t\tsb.append('[');\r\n\t\twhile (iter.hasNext()) {\r\n\t\t\tif (first) \r\n\t\t\t\tfirst = false;\r\n\t\t\telse\r\n\t\t\t\tsb.append(',');\r\n\t\t\tMap.Entry entry = (Map.Entry) iter.next();\r\n\t\t\ttoKeyValue(String.valueOf(entry.getKey()), entry.getValue(), sb,depth);\r\n\t\t}\r\n\t\tsb.append(']');\r\n\t\treturn sb.toString();\r\n\t}", "public static<K, V> JSONObject createMapJSONObject(final Map<K, V> map) throws JSONException {\n\t\tfinal JSONObject json = new JSONObject();\n\n\t\tfinal Collection<JSONObject> entriesJson = new LinkedList<JSONObject>();\n\t\tif(map!=null){\n\t\t\tfor(final Entry<K, V> entry: map.entrySet()){\n\t\t\t\tfinal JSONObject entryJson = new JSONObject();\n\t\t\t\tentryJson.put(\"key\", Helper.createJSONObject(entry.getKey()));\n\t\t\t\tentryJson.put(\"value\", Helper.createJSONObject(entry.getValue()));\n\t\t\t\tentriesJson.add(entryJson);\n\t\t\t}\n\t\t}\n\n\t\tjson.put(\"map\", entriesJson);\n\n\t\treturn json;\n\t}", "protected String serialize(Map<String, String> map)\n {\n StringBuffer output = new StringBuffer(\"{\");\n String separator = \"\";\n for (Map.Entry<String, String> entry : map.entrySet()) {\n output.append(separator);\n output.append(new JSONString(entry.getKey()));\n output.append(':');\n output.append(new JSONString(entry.getValue()));\n separator = \",\";\n }\n output.append(\"}\");\n return output.toString();\n }", "public Map toMap(Map<String, Object> map) {\n return super.toMap(map);\n }", "private void serializeMap(final Map<?, ?> map, final StringBuffer buffer)\n {\n Iterator<?> iterator;\n Object key;\n\n this.history.add(map);\n buffer.append(\"a:\");\n buffer.append(map.size());\n buffer.append(\":{\");\n iterator = map.keySet().iterator();\n while (iterator.hasNext())\n {\n key = iterator.next();\n serializeObject(key, buffer, false);\n this.history.remove(this.history.size() - 1);\n serializeObject(map.get(key), buffer);\n }\n buffer.append('}');\n }", "@Nullable\n private JSONObject readableMapToJson(ReadableMap readableMap) {\n JSONObject jsonObject = new JSONObject();\n\n if (readableMap == null) {\n return null;\n }\n\n ReadableMapKeySetIterator iterator = readableMap.keySetIterator();\n if (!iterator.hasNextKey()) {\n return null;\n }\n\n while (iterator.hasNextKey()) {\n String key = iterator.nextKey();\n ReadableType readableType = readableMap.getType(key);\n\n try {\n switch (readableType) {\n case Null:\n jsonObject.put(key, null);\n break;\n case Boolean:\n jsonObject.put(key, readableMap.getBoolean(key));\n break;\n case Number:\n // Can be int or double.\n jsonObject.put(key, readableMap.getDouble(key));\n break;\n case String:\n jsonObject.put(key, readableMap.getString(key));\n break;\n case Map:\n jsonObject.put(key, this.readableMapToJson(readableMap.getMap(key)));\n break;\n case Array:\n jsonObject.put(key, readableMap.getArray(key));\n default:\n // Do nothing and fail silently\n }\n } catch (JSONException ex) {\n // Do nothing and fail silently\n }\n }\n\n return jsonObject;\n }", "@SuppressWarnings(\"unchecked\")\r\n\tprivate void readMapFromFile() {\r\n\t\ttry {\r\n\t\t\tType type = new TypeToken<HashMap<String, Country>>() {}.getType();\r\n\t\t\tthis.daoMap = (HashMap<String, Country>) gson.fromJson(new FileReader(path), type);\r\n\t\t} catch (JsonSyntaxException | JsonIOException | FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t\r\n\t\t}\r\n\r\n\t}", "public void write(C6720b bVar, Map<K, V> map) throws IOException {\n boolean z;\n if (map == null) {\n bVar.mo16115f();\n } else if (!MapTypeAdapterFactory.this.f18993a) {\n bVar.mo16113d();\n for (Entry entry : map.entrySet()) {\n bVar.mo16107a(String.valueOf(entry.getKey()));\n this.f18997c.write(bVar, entry.getValue());\n }\n bVar.mo16114e();\n } else {\n ArrayList arrayList = new ArrayList(map.size());\n ArrayList arrayList2 = new ArrayList(map.size());\n int i = 0;\n boolean z2 = false;\n for (Entry entry2 : map.entrySet()) {\n C6709k jsonTree = this.f18996b.toJsonTree(entry2.getKey());\n arrayList.add(jsonTree);\n arrayList2.add(entry2.getValue());\n if (jsonTree.mo16132i() || jsonTree.mo16133j()) {\n z = true;\n } else {\n z = false;\n }\n z2 |= z;\n }\n if (z2) {\n bVar.mo16109b();\n int size = arrayList.size();\n while (i < size) {\n bVar.mo16109b();\n C6700i.m20727a((C6709k) arrayList.get(i), bVar);\n this.f18997c.write(bVar, arrayList2.get(i));\n bVar.mo16111c();\n i++;\n }\n bVar.mo16111c();\n return;\n }\n bVar.mo16113d();\n int size2 = arrayList.size();\n while (i < size2) {\n bVar.mo16107a(m20561a((C6709k) arrayList.get(i)));\n this.f18997c.write(bVar, arrayList2.get(i));\n i++;\n }\n bVar.mo16114e();\n }\n }", "private static void m4071a(JsonReader jsonReader, Map<String, C0983c> map) {\n jsonReader.beginObject();\n while (jsonReader.hasNext()) {\n String nextName = jsonReader.nextName();\n Object obj = -1;\n if (nextName.hashCode() == 3322014) {\n if (nextName.equals(\"list\")) {\n obj = null;\n }\n }\n if (obj != null) {\n jsonReader.skipValue();\n } else {\n jsonReader.beginArray();\n while (jsonReader.hasNext()) {\n C0983c a = C0936k.m4047a(jsonReader);\n map.put(a.m4241b(), a);\n }\n jsonReader.endArray();\n }\n }\n jsonReader.endObject();\n }", "protected Map<String, String> deserialize(String data)\n {\n Map<String, String> map = new HashMap<String, String>();\n if (!StringUtils.isEmpty(data)) {\n JavaScriptObject jsObject = JavaScriptObject.fromJson(data);\n JsArrayString keys = jsObject.getKeys();\n for (int i = 0; i < keys.length(); i++) {\n String key = keys.get(i);\n Object value = jsObject.get(key);\n if (value != null) {\n map.put(key, String.valueOf(value));\n }\n }\n }\n return map;\n }", "private HashMap parseMap(String localData){\n int localPointer = 0;\n HashMap temp = new HashMap();\n char c = localData.charAt(localPointer++);\n while (c != '}'){\n String entry = \"\";\n entry_loop :\n while (c != '}'){\n switch (c){\n case ',' :\n c = localData.charAt(localPointer++);\n break entry_loop;\n case '{' :\n String tempEntry = this.getFull(localData.substring(localPointer),0);\n entry += tempEntry;\n localPointer += tempEntry.length();\n break ;\n case '[' :\n String tempEntry2 = this.getFull(localData.substring(localPointer),1);\n entry += tempEntry2;\n localPointer += tempEntry2.length();\n break ;\n default :\n entry += c;\n break ;\n }\n c = localData.charAt(localPointer++);\n }\n entry = entry.trim();\n String[] entryArray = entry.split(\":\",2);\n String key = entryArray[0].trim();\n String value = entryArray[1].trim();\n Object keyObj = null;\n Object valueObj = null;\n\n switch (this.getDataType(key.trim())){\n case String:\n keyObj = key.trim().replace(\"\\\"\",\"\");\n break ;\n case Integer:\n keyObj = Long.parseLong(key.trim());\n break ;\n case Float:\n keyObj = Float.parseFloat(key.trim());\n break ;\n case Boolean:\n keyObj = Boolean.parseBoolean(key.trim());\n break ;\n case Map:\n keyObj = this.parseMap(key.trim());\n break ;\n case List:\n keyObj = this.parseList(key.trim());\n }\n\n switch (this.getDataType(value.trim())){\n case String:\n valueObj = value.trim().replace(\"\\\"\",\"\");\n break ;\n case Integer:\n valueObj = Long.parseLong(value.trim());\n break ;\n case Float:\n valueObj = Float.parseFloat(value.trim());\n break ;\n case Boolean:\n valueObj = Boolean.parseBoolean(value.trim());\n break ;\n case Map:\n valueObj = this.parseMap(value.trim());\n break ;\n case List:\n valueObj = this.parseList(value.trim());\n }\n temp.put(keyObj,valueObj);\n }\n return temp;\n }", "public static void writeMapAsJSONToFile(File file, Map<String, String> map) throws IOException {\n writeToFile(file, new JSONObject(map).toJSONString());\n }", "Map<String, String> asMap();", "private Object deserializeMap(Object datum, Schema fileSchema, Schema mapSchema, MapTypeInfo columnType)\n throws AvroSerdeException {\n Map<String, Object> map = new HashMap<String, Object>();\n Map<CharSequence, Object> mapDatum = (Map)datum;\n Schema valueSchema = mapSchema.getValueType();\n TypeInfo valueTypeInfo = columnType.getMapValueTypeInfo();\n for (CharSequence key : mapDatum.keySet()) {\n Object value = mapDatum.get(key);\n map.put(key.toString(), worker(value, fileSchema == null ? null : fileSchema.getValueType(),\n valueSchema, valueTypeInfo));\n }\n\n return map;\n }", "private void readMap( Map<String, String> map ) {\n\t\t\n\t\tSet<Map.Entry<String, String>> set = map.entrySet();\n\t\t\n\t\tfor( Map.Entry<String, String> entry : set ) {\n\t\t\tSystem.out.printf( \"'%1$-10s' '%2$20s' %n\", entry.getKey(), entry.getValue() );\n\t\t}\n\t\t\n\t}", "public static void main(final String[] args) throws IOException {\n\n Map<String, Object> map = new HashMap<>();\n Map<String, String> smsGateway = new HashMap<>();\n smsGateway.put(\"username\", \"foo\");\n smsGateway.put(\"password\", \"bar\");\n map.put(\"smsGateway\", smsGateway);\n map.put(\"key2\", \"value2\");\n\n ObjectMapper objectMapper = new ObjectMapper();\n StringWriter stringWriter = new StringWriter();\n\n objectMapper.writeValue(stringWriter, map);\n\n System.out.println(stringWriter.toString()); //CSOFF\n\n Map<String, Object> mapFromString =\n objectMapper.readValue(\n \"{\\\"smsGateway\\\":{\\\"type\\\":\\\"sms.sluzba.cz\\\",\\\"username\\\":\\\"foo\\\",\\\"password\\\":\\\"bar\\\"}}\",\n new TypeReference<HashMap<String, Object>>() { });\n\n System.out.println(mapFromString); //CSOFF\n }", "@Test\n public void testMapOfListsOfJsonables() {\n JsonableTestClassWithMaps jtc = Jsonable.loadFromFile(\"testFiles/mapTest.json\", JsonableTestClassWithMaps.class);\n assertEquals(3, jtc.JsonableMapGrid.size());\n String[] numberStrings = new String[] { \"one\", \"two\", \"three\" };\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).data);\n assertEquals(numberStrings[j],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(\n jsonString,\n Matchers\n .containsString(\"\\\"JsonableMapGrid\\\":{\\\"value3\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}],\\\"value1\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],\\\"value2\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}]}\"));\n }", "private static void m4070a(JsonReader jsonReader, C0955d c0955d, Map<String, List<Layer>> map, Map<String, C0967g> map2) {\n jsonReader.beginArray();\n while (jsonReader.hasNext()) {\n List arrayList = new ArrayList();\n C0420f c0420f = new C0420f();\n jsonReader.beginObject();\n String str = null;\n String str2 = str;\n String str3 = str2;\n int i = 0;\n int i2 = 0;\n while (jsonReader.hasNext()) {\n Object obj;\n Layer a;\n String nextName = jsonReader.nextName();\n int hashCode = nextName.hashCode();\n if (hashCode == -1109732030) {\n if (nextName.equals(\"layers\")) {\n obj = 1;\n switch (obj) {\n case null:\n str = jsonReader.nextString();\n break;\n case 1:\n jsonReader.beginArray();\n while (jsonReader.hasNext()) {\n a = C0943s.m4065a(jsonReader, c0955d);\n c0420f.m1545b(a.m4287e(), a);\n arrayList.add(a);\n }\n jsonReader.endArray();\n break;\n case 2:\n i = jsonReader.nextInt();\n break;\n case 3:\n i2 = jsonReader.nextInt();\n break;\n case 4:\n str2 = jsonReader.nextString();\n break;\n case 5:\n str3 = jsonReader.nextString();\n break;\n default:\n jsonReader.skipValue();\n break;\n }\n }\n } else if (hashCode == 104) {\n if (nextName.equals(\"h\")) {\n obj = 3;\n switch (obj) {\n case null:\n str = jsonReader.nextString();\n break;\n case 1:\n jsonReader.beginArray();\n while (jsonReader.hasNext()) {\n a = C0943s.m4065a(jsonReader, c0955d);\n c0420f.m1545b(a.m4287e(), a);\n arrayList.add(a);\n }\n jsonReader.endArray();\n break;\n case 2:\n i = jsonReader.nextInt();\n break;\n case 3:\n i2 = jsonReader.nextInt();\n break;\n case 4:\n str2 = jsonReader.nextString();\n break;\n case 5:\n str3 = jsonReader.nextString();\n break;\n default:\n jsonReader.skipValue();\n break;\n }\n }\n } else if (hashCode == 112) {\n if (nextName.equals(\"p\")) {\n obj = 4;\n switch (obj) {\n case null:\n str = jsonReader.nextString();\n break;\n case 1:\n jsonReader.beginArray();\n while (jsonReader.hasNext()) {\n a = C0943s.m4065a(jsonReader, c0955d);\n c0420f.m1545b(a.m4287e(), a);\n arrayList.add(a);\n }\n jsonReader.endArray();\n break;\n case 2:\n i = jsonReader.nextInt();\n break;\n case 3:\n i2 = jsonReader.nextInt();\n break;\n case 4:\n str2 = jsonReader.nextString();\n break;\n case 5:\n str3 = jsonReader.nextString();\n break;\n default:\n jsonReader.skipValue();\n break;\n }\n }\n } else if (hashCode == 117) {\n if (nextName.equals(\"u\")) {\n obj = 5;\n switch (obj) {\n case null:\n str = jsonReader.nextString();\n break;\n case 1:\n jsonReader.beginArray();\n while (jsonReader.hasNext()) {\n a = C0943s.m4065a(jsonReader, c0955d);\n c0420f.m1545b(a.m4287e(), a);\n arrayList.add(a);\n }\n jsonReader.endArray();\n break;\n case 2:\n i = jsonReader.nextInt();\n break;\n case 3:\n i2 = jsonReader.nextInt();\n break;\n case 4:\n str2 = jsonReader.nextString();\n break;\n case 5:\n str3 = jsonReader.nextString();\n break;\n default:\n jsonReader.skipValue();\n break;\n }\n }\n } else if (hashCode == 119) {\n if (nextName.equals(\"w\")) {\n obj = 2;\n switch (obj) {\n case null:\n str = jsonReader.nextString();\n break;\n case 1:\n jsonReader.beginArray();\n while (jsonReader.hasNext()) {\n a = C0943s.m4065a(jsonReader, c0955d);\n c0420f.m1545b(a.m4287e(), a);\n arrayList.add(a);\n }\n jsonReader.endArray();\n break;\n case 2:\n i = jsonReader.nextInt();\n break;\n case 3:\n i2 = jsonReader.nextInt();\n break;\n case 4:\n str2 = jsonReader.nextString();\n break;\n case 5:\n str3 = jsonReader.nextString();\n break;\n default:\n jsonReader.skipValue();\n break;\n }\n }\n } else if (hashCode == 3355) {\n if (nextName.equals(FacebookAdapter.KEY_ID)) {\n obj = null;\n switch (obj) {\n case null:\n str = jsonReader.nextString();\n break;\n case 1:\n jsonReader.beginArray();\n while (jsonReader.hasNext()) {\n a = C0943s.m4065a(jsonReader, c0955d);\n c0420f.m1545b(a.m4287e(), a);\n arrayList.add(a);\n }\n jsonReader.endArray();\n break;\n case 2:\n i = jsonReader.nextInt();\n break;\n case 3:\n i2 = jsonReader.nextInt();\n break;\n case 4:\n str2 = jsonReader.nextString();\n break;\n case 5:\n str3 = jsonReader.nextString();\n break;\n default:\n jsonReader.skipValue();\n break;\n }\n }\n }\n obj = -1;\n switch (obj) {\n case null:\n str = jsonReader.nextString();\n break;\n case 1:\n jsonReader.beginArray();\n while (jsonReader.hasNext()) {\n a = C0943s.m4065a(jsonReader, c0955d);\n c0420f.m1545b(a.m4287e(), a);\n arrayList.add(a);\n }\n jsonReader.endArray();\n break;\n case 2:\n i = jsonReader.nextInt();\n break;\n case 3:\n i2 = jsonReader.nextInt();\n break;\n case 4:\n str2 = jsonReader.nextString();\n break;\n case 5:\n str3 = jsonReader.nextString();\n break;\n default:\n jsonReader.skipValue();\n break;\n }\n }\n jsonReader.endObject();\n if (str2 != null) {\n C0967g c0967g = new C0967g(i, i2, str, str2, str3);\n map2.put(c0967g.m4205a(), c0967g);\n } else {\n map.put(str, arrayList);\n }\n }\n jsonReader.endArray();\n }", "public static HashMap<String,String> splitJson(String s) {\n ObjectMapper mapper1 = new ObjectMapper();\n HashMap<String,String> rtn = new HashMap<String,String>();\n HashMap<String,String> jobj = null;\n try {\n jobj = mapper1.readValue(s, HashMap.class);\n for (Map.Entry<String, String> entrySet : jobj.entrySet()) {\n String key = entrySet.getKey();\n Object value = entrySet.getValue();\n rtn.put(key, mapper1.writeValueAsString(value));\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n return rtn;\n }", "@Override\n public Map<? extends String, ? extends Pair<EntityPrimitiveTypes, Stats>> parse(String parse) {\n JsonElement root = JsonParser.parseString(parse);\n HashMap<String, Pair<EntityPrimitiveTypes, Stats>> entityTypes = new HashMap<>();\n if (root.isJsonNull()) return entityTypes;\n for (Map.Entry<String, JsonElement> entry : root.getAsJsonObject().entrySet()) {\n entityTypes.put(entry.getKey(), deserializeEntityType(entry.getValue().getAsJsonObject()));\n }\n return entityTypes;\n }", "public static Object fromMap(Class clazz, Map map) {\n try {\n \tObject bean = JSONDeserializer.read(clazz, map);\n \treturn bean;\n } catch (Exception e) {\n throw new RuntimeException(\"Unable to populate \" + clazz.getName() + \" from \" + map, e);\n }\n\t\t\n\t}", "private static JSONObject mapFromBytes(ByteBuffer bytes) throws JSONException{\n\t\tJSONObject json = new JSONObject();\n\t\t//System.out.println(\"From map!\");\n\t\tint length = bytes.getInt();\n\t\t//System.out.println(\"Length \" + Integer.toString(length));\n\t\tfor (int i = 0; i < length; i++){\n\t\t\t//String key =(String) valueFromBytes(bytes);\n\t\t\t\n\t\t\t//Get Key\n\t\t\tbyte type = bytes.get();\n\t\t\t//assert(type == STRING_INDICATOR);\n\t\t\tint lengthKey = bytes.getInt();\n\t\t\tbyte[] stringBytes = new byte[lengthKey];\n\t\t\tbytes.get(stringBytes, 0, lengthKey);\n\t\t\tString key = new String(stringBytes);\n\t\t\t//System.out.println(\"From map: \" + new Integer(type).toString());\n\t\t\t//Get value\n\t\t\ttype = bytes.get();\n\t\t\tswitch(type){\n\t\t\tcase MAP_INDICATOR:\n\t\t\t\tjson.put(key, mapFromBytes(bytes));\n\t\t\t\tbreak;\n\t\t\tcase ARRAY_INDICATOR:\n\t\t\t\tjson.put(key, arrayFromBytes(bytes));\n\t\t\t\tbreak;\n\t\t\tcase STRING_INDICATOR:\n\t\t\t\tint lengthString = bytes.getInt();\n\t\t\t\tstringBytes = new byte[lengthString];\n\t\t\t\tbytes.get(stringBytes, 0, lengthString);\n\t\t\t\tjson.put(key,new String(stringBytes));\n\t\t\t\tbreak;\n\t\t\tcase INTEGER_INDICATOR:\n\t\t\t\tjson.put(key,bytes.getInt());\n\t\t\t\tbreak;\n\t\t\tcase LONG_INDICATOR:\n\t\t\t\tjson.put(key,bytes.getLong());\n\t\t\t\tbreak;\n\t\t\tcase DOUBLE_INDICATOR:\n\t\t\t\tjson.put(key,bytes.getDouble());\n\t\t\t\tbreak;\n\t\t\tcase FLOAT_INDICATOR:\n\t\t\t\tjson.put(key,bytes.getFloat());\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new JSONException(\"Tried to decode unknown type from byte array!\");\n\t\t\t}\n\t\t}\n\t\treturn json;\n\t}", "public static String getResultFromMap(Map<String, Object> result) {\n\t\tString userJsonStr=\"\";\n\t\ttry {\n\t\t\tuserJsonStr = JSON.toJSONString(result);\n\t\t\treturn userJsonStr;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "public static HashMap<String,String> read_json_file(String filepath){\n HashMap<String,String> map = new HashMap<String,String>();\n try{\n BufferedReader bufferedReader = new BufferedReader(new FileReader(filepath));\n Gson gson = new Gson();\n Object json = gson.fromJson(bufferedReader, Object.class);\n map = new Gson().fromJson(\n json.toString(), new TypeToken<HashMap<String, String>>() {}.getType()\n );\n } catch (FileNotFoundException e ) {\n e.printStackTrace();\n }\n return map;\n }", "public String _getJsonresponseFromMap(HashMap<String, String> response) {\n \treturn null;\n }", "void writeObject(Map<Object, Object> map);", "public static <T> Map<String, T> jsonToMap(Reader reader, Class<T> elementType) {\n\t\tif(gson == null) {\n\t\t\tgson = new Gson();\n\t\t}\n\t\t\n\t\tType type = new MyParamType(Map.class, new Class[]{String.class, elementType});\n\t\t\n\t\treturn gson.fromJson(reader, type);\n\t}", "private Object decodingJsonArray(JsonArray jsonArray, MapEntity map) {\n\t\tif (jsonArray == null || map == null) {\n\t\t\treturn null;\n\t\t}\n\t\tObject result = null;\n\t\tSimpleList<?> list = null;\n\t\tint len = jsonArray.size() - 1;\n\t\t/* Add all Objects */\n\t\tif (map.isFlag(FLAG_SIMPLEFORMAT)) {\n\t\t\tlist = new SimpleList<Object>();\n\t\t\tresult = list;\n\t\t}\n\n\t\tfor (int i = 0; i <= len; i++) {\n\t\t\tJsonObject kidObject = jsonArray.getJSONObject(i);\n\t\t\tObject tmp = decodingJsonObject(kidObject, map);\n\t\t\tif (map.isFlag(FLAG_SIMPLEFORMAT)) {\n\t\t\t\tlist.add(tmp);\n\t\t\t} else if (kidObject.has(MAINITEM)) {\n\t\t\t\tresult = tmp;\n\t\t\t} else if (i == 0) {\n\t\t\t\tresult = tmp;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "@Test\n public void testMappedValues() throws JSONException {\n JSONObject jo = new JSONObject(\"{\\\"valueData\\\":{\\\"data\\\":\\\"Value Name\\\"}}\");\n JsonableTestClassWithMapping jtc = Jsonable.loadFromJson(jo, JsonableTestClassWithMapping.class);\n assertEquals(\"Value Name\", jtc.valueData.data);\n jo = new JSONObject(\"{\\\"value\\\":\\\"Value Name\\\"}\");\n jtc = Jsonable.loadFromJson(jo, JsonableTestClassWithMapping.class);\n assertEquals(\"Value Name\", jtc.valueData.data);\n }", "@Test\n public void testReadAndWriteJson() {\n final String path = \"/jsonTest\";\n\n // Define input map\n final Map<String, Object> jsonMap = new HashMap<>();\n jsonMap.put(\"key1\", \"value1\");\n jsonMap.put(\"key2\", 2L);\n jsonMap.put(\"key3\", true);\n\n try (final CuratorFramework curator = createCurator()) {\n // Write\n final CuratorHelper curatorHelper = new CuratorHelper(curator, new HashMap<>());\n curatorHelper.writeJson(path, jsonMap);\n\n // Read\n @SuppressWarnings(\"unchecked\")\n final Map<String, Object> resultMap = curatorHelper.readJson(path, HashMap.class);\n\n // Validate\n assertNotNull(resultMap, \"Not null result\");\n assertEquals(3, resultMap.size(), \"Has 3 keys\");\n assertEquals(\"value1\", resultMap.get(\"key1\"), \"Has key 1\");\n // Note, we put in a Long and got a Double so if we want Long we need to do some casting on maps\n assertEquals(2.0, resultMap.get(\"key2\"), \"Has key 2\");\n assertEquals(true, resultMap.get(\"key3\"), \"Has key 3\");\n }\n }", "private static void convertPayload(Map<String, String> source, Map<String, Object> target) {\n for (Entry<String, String> ent : source.entrySet()) {\n try {\n target.put(ent.getKey(), coder.decode(ent.getValue(), Object.class));\n\n } catch (CoderException e) {\n logger.warn(\"cannot decode JSON value {}: {}\", ent.getKey(), ent.getValue(), e);\n }\n }\n }", "private Map<String, String> getValueMap(JsonNode node) {\n if (!isEtcdDirectory(node)) {\n try {\n String json = node.get(\"value\").asText();\n ObjectMapper mapper = new ObjectMapper();\n Map<String, String> map =\n mapper.readValue(json, new TypeReference<Map<String, String>>() {});\n return map;\n } catch (Exception e) {\n m_LogService.log(LogService.LOG_ERROR, e.getMessage(), e);\n }\n }\n return null;\n }", "public JSONArray hashMap2JSONArray(HashMap hmap) {\n JSONArray nodesArray = null;\r\n try {\r\n nodesArray = new JSONArray();\r\n Set keyset = hmap.keySet();\r\n Object[] objs = keyset.toArray();\r\n String code = (String) objs[0];\r\n\r\n\r\n TreeItem ti = (TreeItem) hmap.get(code);\r\n for (String association : ti._assocToChildMap.keySet()) {\r\n\r\n List<TreeItem> children = ti._assocToChildMap.get(association);\r\n // Collections.sort(children);\r\n for (TreeItem childItem : children) {\r\n // printTree(childItem, focusCode, depth + 1);\r\n JSONObject nodeObject = new JSONObject();\r\n\r\n nodeObject.put(ONTOLOGY_NODE_ID, childItem._code);\r\n nodeObject.put(ONTOLOGY_NODE_NAME, childItem._text);\r\n int knt = 0;\r\n if (childItem._expandable) {\r\n knt = 1;\r\n }\r\n nodeObject.put(ONTOLOGY_NODE_CHILD_COUNT, knt);\r\n nodesArray.put(nodeObject);\r\n }\r\n }\r\n } catch (Exception e) {\r\ne.printStackTrace();\r\nSystem.out.println(\"Exception thrown by hashMap2JSONArray???\");\r\n }\r\n return nodesArray;\r\n }", "public Map<String, Object> toMap(Object data) {\n\n try {\n String dataF = null;\n if (!(data instanceof String)) {\n dataF = toString(data);\n }\n// else {\n// dataF = objectMapper.writeValueAsString(data);\n// }\n return objectMapper.readValue(dataF, new TypeReference<Map<String, Object>>() {\n });\n } catch (IOException e) {\n logger.error(e.getMessage(), e);\n }\n return null;\n }", "private XmlElement toXmlDict(Map<String, Object> map)\n {\n XmlElement dict = new XmlElement(\"dict\");\n for (Map.Entry<String, Object> entry : map.entrySet())\n {\n dict.add(new XmlElement(\"key\", entry.getKey()));\n dict.add(objectToXml(entry.getValue()));\n }\n return dict;\n }", "@Override\n\tpublic JSONObject getAll(Map<String, Object> map) {\n\t\tList<Pinz> list = pinzDao.getAll(map);\n\t\tMap<String,Object> jsonMap = new HashMap<String,Object>();\n\t\tObject[][] objs = new Object[list.size()][];\n\t\tfor(int i=0;i<list.size();i++){\n\t\t\tPinz pinz = list.get(i);\n\t\t\tobjs[i] = new Object[]{pinz.getId(),pinz.getXuh(),pinz.getBianm(),pinz.getMingc(),pinz.getPiny(),\n\t\t\t\t\tpinz.getZhuangt()==1?\"使用\":\"停用\",pinz.getPinzms(),pinz.getLeib()};\n\t\t}\n\t\tjsonMap.put(\"data\", objs);\n\t\tJSONObject result = JSONObject.fromObject(jsonMap);\n\t\treturn result;\n\t}", "private Map<String, Object> flatten(Map<String, Object> map) {\n\t\tMap<String, Object> result = new LinkedHashMap<>();\n\t\tflatten(null, result, map);\n\t\treturn result;\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic static Map<String, Object> getData(Map<String, Object> mapJson) {\n\t\treturn (Map<String, Object>) mapJson.get(\"data\");\n\t}", "@SuppressWarnings(\"unchecked\")\n\t/**\n\t * Read data and store\n\t * @param data\n\t * \t\t\t\tThe map to store data read from ser file\n\t * @return Map<String, T>\n\t * \t\t\ta map of data that has all the ser file data\n\t * @throws ClassNotFoundException\n\t * @throws IOException\n\t */\n\tprotected Map<String, T> readFromFile(Map<String, T> data) throws ClassNotFoundException, IOException {\n\t\t\n\t\tInputStream file = new FileInputStream(filePath);\n\t\tInputStream buffer = new BufferedInputStream(file);\n\t\tObjectInput input = new ObjectInputStream(buffer);\n\n\t\t//deserialize the Map\n\t\tdata = (HashMap<String, T>) input.readObject();\n\t\tinput.close();\n\t\treturn data;\n\t}", "@Override\n public void record2Map(final Map<String, Integer> map) {\n }", "public <K> Map<K, JAVATYPE> convertMap(Map<K, JAVATYPE> oldMap, final METATYPE meta);", "public static void main(String[] args) {\n String jsonString = \"{\\\"name\\\":\\\"Pourush\\\"}\";\n JsonObject jsonObject = new JsonObject(jsonString);\n jsonObject.put(\"location\",\"Utsav\");\n System.out.println(jsonObject);\n Myitem myitem = new Myitem();\n myitem.name = \"falanadhimkana\";\n myitem.description = \"some description\";\n jsonObject.put(\"Myitem\",jsonObject.mapFrom(myitem));\n System.out.println(jsonObject);\n }", "private Map getAsMap(BuildStatus bs) {\n String lines[] = bs.toExternalForm().split(\"\\n\");\n Map m = new HashMap();\n for (int i = 0; i < lines.length; i++) {\n String line = lines[i];\n String parts[] = line.split(\"=\");\n String name = parts[0];\n String value = parts[1];\n m.put(name + \"=\", value);\n }\n return m;\n }", "public static <T> Map<String, T> json2map(String jsonStr, Class<T> clazz)\n throws Exception {\n Map<String, Map<String, Object>> map = objectMapper.readValue(jsonStr,\n new TypeReference<Map<String, T>>() {\n });\n Map<String, T> result = new HashMap<String, T>();\n for (Map.Entry<String, Map<String, Object>> entry : map.entrySet()) {\n result.put(entry.getKey(), map2pojo(entry.getValue(), clazz));\n }\n return result;\n }", "public static <T> Map<String, T> jsonToMap(String json, Class<T> elementType) {\n\t\tif(gson == null) {\n\t\t\tgson = new Gson();\n\t\t}\n\t\t\n\t\tType type = new MyParamType(Map.class, new Class[]{String.class, elementType});\n\t\t\n\t\treturn gson.fromJson(json, type);\n\t}", "private static void fillupmap(Map<String, Object> m) {\n\t\tRectangle r =new Rectangle(\"A\",2,3);\r\n\t\tm.put(r.getRname(), r);\r\n\t\tr =new Rectangle(\"B\",4,1);\r\n\t\tm.put(r.getRname(), r);\r\n\t\tCircle c =new Circle(\"C\",3);\r\n\t\tm.put(c.getCname(),c);\r\n\t\tc =new Circle(\"D\",4);\r\n\t\tm.put(c.getCname(),c);\r\n\t\t\r\n\t}", "@SuppressWarnings(\"unchecked\")\n public static String toJSONContainingNullValues(Map<String, Object> map) {\n if (map == null || map.isEmpty()) {\n return \"{}\";\n }\n StringBuilder sb = new StringBuilder();\n\n sb.append(\"{\\n\");\n Iterator<String> it = map.keySet().iterator();\n while (it.hasNext()) {\n String key = it.next();\n sb.append(\"\\\"\");\n sb.append(key);\n sb.append(\"\\\" : \");\n Object value = map.get(key);\n if (value == null) {\n sb.append(\"null\");\n } else {\n if (value instanceof Number) {\n sb.append(value);\n } else if (value instanceof Map) {\n sb.append(toJSONContainingNullValues((Map<String, Object>) value));\n } else if (value instanceof List) {\n sb.append(toJSONContainingAnything((List<Object>) value));\n } else if (value instanceof Boolean) {\n boolean bool = (Boolean) value;\n sb.append(bool);\n } else {\n appendObject(sb, value);\n }\n }\n if (it.hasNext()) {\n sb.append(\",\");\n }\n sb.append(\"\\n\");\n }\n sb.append(\"}\");\n\n return sb.toString();\n }", "private Map toMap(Scriptable scriptable) {\n \t\tif (scriptable instanceof MapWrapper)\n \t\t\treturn (Map) ((MapWrapper) scriptable).unwrap();\n \t\treturn new MapAdapter(scriptable);\n \t}", "public static Map readMap(String filename)\n throws IOException, ClassNotFoundException\n {\n ObjectInputStream in = null;\n try\n {\n //open the file\n in = new ObjectInputStream(new FileInputStream(filename));\n //read and return the object\n return (Map)in.readObject();\t\n }\n finally\n {\n //close the file\n if(in != null)\n in.close();\n } \n }", "public static HashMap <String, JsonValue> importPointsConversion(Reader fileReader) throws IOException{\n\t\tHashMap<String, JsonValue> pointsConversion = new HashMap <String, JsonValue> ();\n\t\tJsonObject jsonPointsConversion = Json.parse(fileReader).asObject();\n\t\tjsonPointsConversion.forEach(member -> pointsConversion.put(member.getName(), member.getValue()));\n\t\treturn pointsConversion;\n\t}", "Map<String, Object> getPropertiesAsMap();", "public MultiValueMap<String, String> getMap() {\r\n\t\tMultiValueMap<String, String> map = new LinkedMultiValueMap<String, String>();\r\n\t\t\r\n\t\tif(this.country != null) \t\tmap.add(\"country\", this.getCountry().getValue());\r\n\t\tif(this.operation != null) \t\tmap.add(\"operation\", this.getOperation().getValue());\r\n\t\tif(this.propertyType != null) \tmap.add(\"propertyType\", this.getPropertyType().getValue());\r\n\t\tif(this.center != null) \t\tmap.add(\"center\", this.getCenter().getCoordinates());\r\n\t\tif(this.locale != null) \t\tmap.add(\"locale\", this.getLocale().getValue());\r\n\t\tif(this.distance != null) \t\tmap.add(\"distance\", this.getDistance().toString());\r\n\t\tif(this.locationId != null) \tmap.add(\"locationId\", this.getLocationId().getValue());\r\n\t\tif(this.maxItems != null) \t\tmap.add(\"maxItems\", this.getMaxItems().toString());\r\n\t\tif(this.numPage != null) \t\tmap.add(\"numPage\", this.getNumPage().toString());\r\n\t\tif(this.maxPrice != null) \t\tmap.add(\"maxPrice\", this.getMaxPrice().toString());\r\n\t\tif(this.sinceDate != null) \t\tmap.add(\"sinceDate\", this.getSinceDate().getValue());\r\n\t\tif(this.order != null) \t\t\tmap.add(\"order\", this.getOrder().getValue());\r\n\t\tif(this.sort != null) \t\t\tmap.add(\"sort\", this.getSort().getValue());\r\n\t\tif(this.adIds != null) {\r\n\t\t\tfor(Integer id: adIds) {\r\n\t\t\t\tmap.add(\"adIds\", id.toString());\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(this.hasMultimedia != null) \tmap.add(\"hasMultimedia\", this.getHasMultimedia().toString());\r\n\t\t\r\n\t\treturn map;\r\n\t}", "@Test\n public void embedded() throws IOException {\n String obj = \"{\\\"authors\\\":[\\\"Ted\\\", \\\"Mark\\\"],\\\"date\\\": {\\\"year\\\":2013,\\\"month\\\":9}}\";\n JsonLexer l = new JsonLexer(new StringReader(obj));\n JsonParser p = new JsonParser(l);\n Map<String, Object> m = p.parseObject();\n assertEquals(2, m.size());\n\n @SuppressWarnings(\"unchecked\")\n List<String> authors = (List<String>)m.get(\"authors\");\n assertEquals(2, authors.size());\n assertEquals(\"Ted\", authors.get(0));\n assertEquals(\"Mark\", authors.get(1));\n\n @SuppressWarnings(\"unchecked\")\n Map<String, Object> date = (Map<String, Object>)m.get(\"date\");\n assertEquals(2, date.size());\n assertEquals(2013L, date.get(\"year\"));\n assertEquals(9L, date.get(\"month\"));\n }", "public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamSimple(map, prefix + \"Business\", this.Business);\n this.setParamSimple(map, prefix + \"Id\", this.Id);\n this.setParamSimple(map, prefix + \"MetricName\", this.MetricName);\n this.setParamSimple(map, prefix + \"Period\", this.Period);\n this.setParamSimple(map, prefix + \"StartTime\", this.StartTime);\n this.setParamSimple(map, prefix + \"EndTime\", this.EndTime);\n this.setParamArraySimple(map, prefix + \"IpList.\", this.IpList);\n\n }", "@Override\n public void handle(Map<String, Object> map) {\n String param = map.get(CoreType.param.toString()).toString();\n\n\n String sessionId = map.get(CoreType.sessionId.toString()).toString();\n AVLTree<Integer, Integer> avl = UtilTREE.getAVL(sessionId);\n\n avl.eachLeft();\n map.put(CoreType.result.toString(), JSON.toJSON(avl).toString());\n }", "public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamSimple(map, prefix + \"Definition\", this.Definition);\n this.setParamArrayObj(map, prefix + \"WatermarkSet.\", this.WatermarkSet);\n\n }", "public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamSimple(map, prefix + \"Id\", this.Id);\n this.setParamSimple(map, prefix + \"Cluster\", this.Cluster);\n this.setParamSimple(map, prefix + \"Name\", this.Name);\n this.setParamSimple(map, prefix + \"Runtime\", this.Runtime);\n this.setParamSimple(map, prefix + \"ModelUri\", this.ModelUri);\n this.setParamSimple(map, prefix + \"Cpu\", this.Cpu);\n this.setParamSimple(map, prefix + \"Memory\", this.Memory);\n this.setParamSimple(map, prefix + \"Gpu\", this.Gpu);\n this.setParamSimple(map, prefix + \"GpuMemory\", this.GpuMemory);\n this.setParamSimple(map, prefix + \"CreateTime\", this.CreateTime);\n this.setParamSimple(map, prefix + \"UpdateTime\", this.UpdateTime);\n this.setParamSimple(map, prefix + \"ScaleMode\", this.ScaleMode);\n this.setParamObj(map, prefix + \"Scaler.\", this.Scaler);\n this.setParamObj(map, prefix + \"Status.\", this.Status);\n this.setParamSimple(map, prefix + \"AccessToken\", this.AccessToken);\n this.setParamSimple(map, prefix + \"ConfigId\", this.ConfigId);\n this.setParamSimple(map, prefix + \"ConfigName\", this.ConfigName);\n this.setParamSimple(map, prefix + \"ServeSeconds\", this.ServeSeconds);\n this.setParamSimple(map, prefix + \"ConfigVersion\", this.ConfigVersion);\n this.setParamSimple(map, prefix + \"ResourceGroupId\", this.ResourceGroupId);\n this.setParamArrayObj(map, prefix + \"Exposes.\", this.Exposes);\n this.setParamSimple(map, prefix + \"Region\", this.Region);\n this.setParamSimple(map, prefix + \"ResourceGroupName\", this.ResourceGroupName);\n this.setParamSimple(map, prefix + \"Description\", this.Description);\n this.setParamSimple(map, prefix + \"GpuType\", this.GpuType);\n this.setParamSimple(map, prefix + \"LogTopicId\", this.LogTopicId);\n\n }", "private void convert(Map map) {\n if (map == null)\n return;\n\n for (Object key : valueTypes.keySet()) {\n MessagePackObject mpo = (MessagePackObject) map.get(key);\n if (mpo != null)\n map.put(key, mpo.convert(Templates.tNullable(\n TemplateRegistry.lookup(valueTypes.get(key)))));\n }\n\n }", "public static Map<String, Serializable> propertiesFromValue(String value) {\n Map<String, Serializable> map = new HashMap<>();\n JSONObject json = new JSONObject(value);\n // build map from json\n for (String key : json.keySet()) {\n JSONArray arr = json.optJSONArray(key);\n if (arr != null) {\n // value is array of String\n String[] ss = new String[arr.length()];\n for (int i = 0; i < arr.length(); i++) {\n String s = arr.optString(i);\n ss[i] = s;\n }\n\n map.put(key, ss);\n } else {\n // get as String\n String s = json.optString(key);\n map.put(key, s);\n }\n }\n\n return map;\n }", "public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamArrayObj(map, prefix + \"InBound.\", this.InBound);\n this.setParamArrayObj(map, prefix + \"OutBound.\", this.OutBound);\n this.setParamSimple(map, prefix + \"SgId\", this.SgId);\n this.setParamSimple(map, prefix + \"SgName\", this.SgName);\n this.setParamSimple(map, prefix + \"SgRemark\", this.SgRemark);\n this.setParamSimple(map, prefix + \"CreateTime\", this.CreateTime);\n this.setParamSimple(map, prefix + \"Version\", this.Version);\n\n }", "public MapBuilder() {\r\n map = new Map();\r\n json = new Gson();\r\n }", "public abstract Map<String, Object> toMap(T object);", "public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamArrayObj(map, prefix + \"Conditions.\", this.Conditions);\n this.setParamArrayObj(map, prefix + \"EventConditions.\", this.EventConditions);\n this.setParamArrayObj(map, prefix + \"PolicyGroups.\", this.PolicyGroups);\n this.setParamSimple(map, prefix + \"GroupID\", this.GroupID);\n this.setParamSimple(map, prefix + \"GroupName\", this.GroupName);\n this.setParamSimple(map, prefix + \"InsertTime\", this.InsertTime);\n this.setParamSimple(map, prefix + \"LastEditUin\", this.LastEditUin);\n this.setParamSimple(map, prefix + \"Remark\", this.Remark);\n this.setParamSimple(map, prefix + \"UpdateTime\", this.UpdateTime);\n this.setParamSimple(map, prefix + \"ViewName\", this.ViewName);\n this.setParamSimple(map, prefix + \"IsUnionRule\", this.IsUnionRule);\n\n }", "public void loadMap(FlxState gameState, String jsonMapPath){\n\t\tHashMap<String, String> layers = new HashMap<String, String>();\n\t\tHashMap<String, Array<JsonValue>> objectsJson = new HashMap<String, Array<JsonValue>>();\n\n\t\t// Cargo las layers y objectsJson. También seteo la FlxG.camera para que tenga los bounds del mapa.\n\t\tparseMap(jsonMapPath, RmbsTiledManager.objectsLayerName, layers, objectsJson);\n\n\t\t// Delego el parseo de layers a algún RmbsLayerParser\n\t\tthis.layerParser.parseLayers(gameState, layers, objectsJson);\n\t}", "@Test\n\tpublic void test() throws JsonProcessingException {\n\t\tJSONMap map = new JSONMap(testJSONObject);\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\t//If this call completes without throwing an exception, then our code\n\t\t//has performed as expected.\n\t\tmapper.writeValueAsString(map);\n\t}", "public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamSimple(map, prefix + \"Order\", this.Order);\n this.setParamSimple(map, prefix + \"Orderby\", this.Orderby);\n this.setParamSimple(map, prefix + \"Offset\", this.Offset);\n this.setParamSimple(map, prefix + \"Limit\", this.Limit);\n this.setParamSimple(map, prefix + \"SearchKey\", this.SearchKey);\n this.setParamSimple(map, prefix + \"Namespace\", this.Namespace);\n this.setParamSimple(map, prefix + \"Description\", this.Description);\n this.setParamArrayObj(map, prefix + \"Filters.\", this.Filters);\n\n }", "public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamSimple(map, prefix + \"Name\", this.Name);\n this.setParamSimple(map, prefix + \"Describe\", this.Describe);\n this.setParamArrayObj(map, prefix + \"ServiceMonitors.\", this.ServiceMonitors);\n this.setParamArrayObj(map, prefix + \"PodMonitors.\", this.PodMonitors);\n this.setParamArrayObj(map, prefix + \"RawJobs.\", this.RawJobs);\n this.setParamArrayObj(map, prefix + \"RecordRules.\", this.RecordRules);\n this.setParamArrayObj(map, prefix + \"AlertDetailRules.\", this.AlertDetailRules);\n\n }", "public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamSimple(map, prefix + \"GroupKey\", this.GroupKey);\n this.setParamSimple(map, prefix + \"GroupValue\", this.GroupValue);\n this.setParamSimple(map, prefix + \"TotalCost\", this.TotalCost);\n this.setParamSimple(map, prefix + \"RealTotalCost\", this.RealTotalCost);\n this.setParamSimple(map, prefix + \"CashPayAmount\", this.CashPayAmount);\n this.setParamSimple(map, prefix + \"IncentivePayAmount\", this.IncentivePayAmount);\n this.setParamSimple(map, prefix + \"VoucherPayAmount\", this.VoucherPayAmount);\n this.setParamSimple(map, prefix + \"TransferPayAmount\", this.TransferPayAmount);\n this.setParamArrayObj(map, prefix + \"Business.\", this.Business);\n\n }", "public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamSimple(map, prefix + \"Name\", this.Name);\n this.setParamSimple(map, prefix + \"Size\", this.Size);\n this.setParamSimple(map, prefix + \"Percent\", this.Percent);\n this.setParamSimple(map, prefix + \"Type\", this.Type);\n this.setParamSimple(map, prefix + \"Path\", this.Path);\n this.setParamSimple(map, prefix + \"Used\", this.Used);\n\n }", "public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamSimple(map, prefix + \"ProjectId\", this.ProjectId);\n this.setParamSimple(map, prefix + \"TaskId\", this.TaskId);\n this.setParamSimple(map, prefix + \"ScriptContent\", this.ScriptContent);\n this.setParamArrayObj(map, prefix + \"IntegrationNodeDetails.\", this.IntegrationNodeDetails);\n\n }", "public static Map<String, Object> toMap() {\n return toMap(null);\n }", "public static <T> Map<String, Object> json2map(String jsonStr)\n throws Exception {\n return objectMapper.readValue(jsonStr, Map.class);\n }", "private void writeMapToFile() {\r\n\t\ttry {\r\n\t\t\tString dm = gson.toJson(daoMap);// gson.toJson(entity);\r\n\t\t\tFileWriter fileWriter = new FileWriter(path);\r\n\t\t\t\r\n\t\t\tfileWriter.write(dm);\r\n\t\t\tfileWriter.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "void constructMap(JsonArray array)\n {\n JsonObject obj = array.get(0).getAsJsonObject();\n\n // Loop on them\n for(Map.Entry<String, JsonElement> entry : obj.entrySet())\n {\n String key = entry.getKey(); // ID:TYPE\n if(!(key.matches(\"(\\\\d+):([A-Z_]+)\")))\n continue;\n\n String[] split = key.split(\":\");\n long id = Long.parseLong(split[0]);\n CodeType type = remapLegacyCodeType(split[1]);\n\n Map<CodeType, Map<String, String>> userMap = map.getOrDefault(id, new HashMap<>());\n Map<String, String> codesForTypeMap = userMap.getOrDefault(type, new HashMap<>());\n\n for(Map.Entry<String, JsonElement> code : entry.getValue().getAsJsonObject().entrySet())\n codesForTypeMap.put(code.getKey(), code.getValue().getAsString());\n\n userMap.put(type, codesForTypeMap);\n map.put(id, userMap);\n }\n\n array.remove(obj); // Remove the codes object\n }", "public static void writeMap(String filename, Map map)\n throws IOException, ClassNotFoundException\n {\n ObjectOutputStream out = null;\n try\n {\n //open the file\n out = new ObjectOutputStream(new FileOutputStream(filename));\n //write to the file\n out.writeObject(map);\t\n }\n finally\n {\n //close the stream\n if(out != null)\n out.close();\n }\n }", "@Override\n public Object convertJsonToObject(String content) {\n try {\n Map<String, EventDataValue> data = reader.readValue(content);\n\n return convertEventDataValuesMapIntoSet(data);\n } catch (IOException e) {\n throw new IllegalArgumentException(e);\n }\n }", "public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamSimple(map, prefix + \"Service\", this.Service);\n this.setParamSimple(map, prefix + \"Method\", this.Method);\n this.setParamSimple(map, prefix + \"Count\", this.Count);\n this.setParamSimple(map, prefix + \"Average\", this.Average);\n this.setParamSimple(map, prefix + \"P90\", this.P90);\n this.setParamSimple(map, prefix + \"P95\", this.P95);\n this.setParamSimple(map, prefix + \"Min\", this.Min);\n this.setParamSimple(map, prefix + \"Max\", this.Max);\n this.setParamSimple(map, prefix + \"ErrorPercentage\", this.ErrorPercentage);\n this.setParamSimple(map, prefix + \"P99\", this.P99);\n this.setParamSimple(map, prefix + \"Status\", this.Status);\n this.setParamSimple(map, prefix + \"Result\", this.Result);\n\n }", "public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamSimple(map, prefix + \"Name\", this.Name);\n this.setParamSimple(map, prefix + \"Protocol\", this.Protocol);\n this.setParamSimple(map, prefix + \"Namespace\", this.Namespace);\n this.setParamArrayObj(map, prefix + \"Qualifiers.\", this.Qualifiers);\n this.setParamSimple(map, prefix + \"Subpath\", this.Subpath);\n this.setParamSimple(map, prefix + \"Version\", this.Version);\n\n }" ]
[ "0.6800367", "0.6723735", "0.6680291", "0.66631484", "0.6589862", "0.6517727", "0.64564323", "0.63353175", "0.6286511", "0.62186724", "0.620848", "0.6162343", "0.60769624", "0.6068498", "0.60373014", "0.60132617", "0.5942199", "0.5887731", "0.58810395", "0.5875596", "0.58344257", "0.5809859", "0.57876724", "0.5785541", "0.574858", "0.57412523", "0.5680983", "0.56692994", "0.56687707", "0.56627935", "0.560818", "0.5597995", "0.55440295", "0.55146754", "0.5513991", "0.5467208", "0.54127115", "0.5367709", "0.5360479", "0.5337979", "0.5309816", "0.53054047", "0.52629405", "0.5258171", "0.52470404", "0.52416325", "0.5232019", "0.5227295", "0.52061737", "0.51886606", "0.5182089", "0.51747805", "0.51745087", "0.5173257", "0.5172179", "0.5145258", "0.51426935", "0.51317483", "0.5129562", "0.51033425", "0.5087299", "0.5087019", "0.50797826", "0.5065318", "0.5045775", "0.5023013", "0.5012587", "0.5011404", "0.50091106", "0.49932876", "0.49914056", "0.49906972", "0.49841988", "0.4977812", "0.49771336", "0.49753523", "0.4970735", "0.4967601", "0.4964667", "0.49629405", "0.49626693", "0.49596637", "0.49580148", "0.49564034", "0.49550122", "0.49537882", "0.4951412", "0.49500418", "0.49452353", "0.49439067", "0.49437907", "0.49435553", "0.49420828", "0.49419022", "0.49385586", "0.49364525", "0.49355933", "0.49294126", "0.49280438", "0.4927516" ]
0.8076991
0
Parses from object to json
String parseObjectToJson(Object obj);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Object toJson();", "ParseObject toParseObject();", "public String parseObjectToJson(Object object) {\n\n return gson.toJson(object);\n }", "JSONObject toJson();", "JSONObject toJson();", "public JsonObject toJson();", "@Override\n\tpublic JSON parse(String in) throws IOException {\n\t\tMyJSON js = new MyJSON();\n\t\t//count brackets make sure they match\n\t\tif(!syntaxOkay(in)){\n\t\t\tthrow new IllegalStateException(\"Mismatched brackets error\");\n\t\t}\n\t\t//get rid of spaces to make things easier\n\t\tString withoutSpaces = remove(in, ' ');\n\t\t//handles edge case of an empty object\n\t\tString withoutBraces = remove(withoutSpaces, '{');\n\t\twithoutBraces = remove(withoutBraces, '}');\n\t\tif(withoutBraces.length() == 0){\n\t\t\treturn js;\n\t\t}\n\t\tint colonIndex = in.indexOf(\":\");\n\t\tString key = in.substring(0, colonIndex);\n\t\tString value = in.substring(colonIndex + 1);\n\n\t\tif(value.contains(\":\")){\n\t\t\t//this means the value is an object so we figure out how many strings to add to the object\n\t\t\tString[] values = value.split(\",\");\n\t\t\t//creates a temp for the new object\n\t\t\tMyJSON temp = new MyJSON();\n\t\t\tfillObject(values, temp);\n\t\t\tkey = removeOutsides(key);\n\t\t\tjs.setObject(key, temp);\n\t\t}else{\n\t\t\t//the base case that actually puts things as a JSON object\n\t\t\tkey = removeOutsides(key);\n\t\t\tvalue = removeOutsides(value);\n\t\t\tjs.setString(key, value);\n\t\t}\n\n\t\treturn js;\n\t}", "public abstract Object deserialize(Object object);", "public String toJsonfrmObject(Object object) {\n try {\n ObjectMapper mapper = new ObjectMapper();\n mapper.setDateFormat(simpleDateFormat);\n return mapper.writeValueAsString(object);\n } catch (IOException e) {\n logger.error(\"Invalid JSON!\", e);\n }\n return \"\";\n }", "String toJSON();", "public native Object parse( Object json );", "@Test\n public void simpleObject() throws IOException {\n String obj = \"{\\\"name\\\":\\\"value\\\",\\\"int\\\":1302,\\\"float\\\":1.57,\"\n + \"\\\"negint\\\":-5,\\\"negfloat\\\":-1.57,\\\"floatexp\\\":-1.5e7}\";\n JsonLexer l = new JsonLexer(new StringReader(obj));\n JsonParser p = new JsonParser(l);\n Map<String, Object> m = p.parseObject();\n\n assertEquals(6, m.size());\n assertEquals(\"value\", m.get(\"name\"));\n assertEquals(1302L, m.get(\"int\"));\n assertEquals(1.57, m.get(\"float\"));\n assertEquals(-5L, m.get(\"negint\"));\n assertEquals(-1.57, m.get(\"negfloat\"));\n assertEquals(-1.5e7, m.get(\"floatexp\"));\n }", "public interface PojoParser {\n\n\n /**\n * Method which converts the Pojo to JSON Object\n * @return return the framed {@link JSONObject} instance\n */\n public abstract JSONObject toJson();\n\n /**\n * Method which convert JSON to POJO.\n * @param jsonObject Josn object which need to be parsed.\n */\n public abstract void fromJson(JSONObject jsonObject);\n}", "private <T> JSONObject getJSONFromObject(T request) throws IOException, JSONException {\n ObjectMapper mapper = new ObjectMapper();\n mapper.configure(SerializationConfig.Feature.FAIL_ON_EMPTY_BEANS, false);\n String temp = null;\n temp = mapper.writeValueAsString(request);\n JSONObject j = new JSONObject(temp);\n\n return j;\n }", "public abstract String toJson();", "public String toJson(final String object) {\n if (object != null && (object.startsWith(\"[\") || object.startsWith(\"{\")\n || (object.startsWith(\"\\\"[\") || object.startsWith(\"\\\"{\")))) {\n return object;\n } else\n return \"{\\\"\" + \"{\\\"success\\\" : 1}\" + \"\\\":\\\"\" + object + \"\\\"}\";\n }", "public void deserialize(JsonObject src);", "void generateJSON(JSONObject object, String name);", "T fromJson(Object source);", "<T> T parseToObject(Object json, Class<T> classObject);", "String toJSONString(Object data);", "@Override\r\n\tpublic JSONObject toJSON() {\n\t\treturn null;\r\n\t}", "byte[] toJson(Object object) throws Exception {\r\n return this.mapper.writeValueAsString(object).getBytes();\r\n }", "void mo28373a(JSONObject jSONObject);", "public JSONObject toJson() {\n }", "public abstract void fromJson(JSONObject jsonObject);", "public String toJSON() throws JSONException;", "private Object onParse(final String content) throws IOException{\n if(null == this.mBean)\n return null;\n\n try{\n return JSON.parseObject(content, this.mBean);\n }catch(Exception e){\n throw new IOException(e.getMessage());\n }\n }", "JsonObject raw();", "public JsonObject covertToJson() {\n JsonObject transObj = new JsonObject(); //kasutaja portf. positsiooni tehing\n transObj.addProperty(\"symbol\", symbol);\n transObj.addProperty(\"type\", type);\n transObj.addProperty(\"price\", price);\n transObj.addProperty(\"volume\", volume);\n transObj.addProperty(\"date\", date);\n transObj.addProperty(\"time\", time);\n transObj.addProperty(\"profitFromSell\", profitFromSell);\n transObj.addProperty(\"averagePurchasePrice\", averagePurchasePrice);\n return transObj;\n }", "String toJson() throws IOException;", "public void parseJSONData(Object JSONdata){\n\n\t}", "private <T> T formatObject(String objectName, JSONObject object, Class objectClass){\n Gson gson = new Gson();\n String stringObject = object.getJSONObject(objectName).toString();\n T formattedObject = (T) gson.fromJson(stringObject,objectClass);\n return formattedObject;\n }", "public abstract JsonElement serialize();", "private static void printJsonObject(Object object) throws IOException {\n Logger logger = Logger.getLogger(PortfolioManagerApplication.class.getCanonicalName());\n ObjectMapper mapper = new ObjectMapper();\n logger.info(mapper.writeValueAsString(object));\n }", "private Earthquake parseJSON(JSONObject o){\n String country, place, id;\r\n double magnitude, lat, lng, depth;\r\n long time_long, updated_long;\r\n id = o.optString(\"id\");\r\n JSONObject prop = o.getJSONObject(\"properties\");\r\n place = prop.optString(\"place\");\r\n country = place.substring(place.lastIndexOf(\",\"), (place.length()-1)); \r\n magnitude = prop.optDouble(\"mag\");\r\n time_long=o.optLong(\"time\");\r\n updated_long=o.optLong(\"updated\");\r\n \r\n \r\n JSONObject geometry = o.getJSONObject(\"geometry\");\r\n JSONArray coor = geometry.getJSONArray(\"coordinates\");\r\n lng=coor.optDouble(0);\r\n lat=coor.optDouble(0);\r\n depth=coor.optDouble(0);\r\n \r\n //storing the earthquake data to the ontology\r\n return new Earthquake(id, place, magnitude, lng, lat, depth);\r\n }", "public abstract String toJsonString();", "TorrentJsonParser getJsonParser();", "public void parseObject(JSONObject o) {\n\n System.out.println(o);\n\n if (o.containsKey(\"dog\")) {\n //Get employee object within list\n JSONObject dogObject = (JSONObject) o.get(\"dog\");\n\n //Get employee username\n String name = (String) dogObject.get(\"name\");\n System.out.println(name);\n\n String race = (String) dogObject.get(\"race\");\n System.out.println(race);\n\n String size = (String) dogObject.get(\"size\");\n System.out.println(size);\n\n String color = (String) dogObject.get(\"color\");\n System.out.println(color);\n\n Boolean domestic = (Boolean) dogObject.get(\"domestic\");\n\n int age = Integer.parseInt(dogObject.get(\"age\").toString());\n System.out.println(age);\n\n String gender = (String) dogObject.get(\"gender\");\n System.out.println(gender);\n\n dogList.add((JSONObject) o);\n\n //Dog dog = new Dog(name, race, color, domestic, age, gender, size);\n //this.dList.add(dog);\n\n //System.out.println(dogList);\n } else if (o.containsKey(\"costumer\")) {\n System.out.println(o);\n\n //Get employee object within list\n JSONObject costumerObject = (JSONObject) o.get(\"costumer\");\n\n //Get employee username\n String name = (String) costumerObject.get(\"name\");\n System.out.println(name);\n\n String surname = (String) costumerObject.get(\"surname\");\n System.out.println(surname);\n\n String cityOfBirth = (String) costumerObject.get(\"cityOfBirth\");\n System.out.println(cityOfBirth);\n\n String cityOfResidence = (String) costumerObject.get(\"cityOfResidence\");\n System.out.println(cityOfResidence);\n\n String telephone = (String) costumerObject.get(\"telephone\");\n System.out.println(telephone);\n\n String address = (String) costumerObject.get(\"address\");\n System.out.println(address);\n\n String province = (String) costumerObject.get(\"province\");\n System.out.println(province);\n\n String fiscalcode = (String) costumerObject.get(\"fiscalCode\");\n System.out.println(fiscalcode);\n\n//getting the document JsonObject \n JSONObject doc = (JSONObject) costumerObject.get(\"document\");\n String type = (String) doc.get(\"type\");\n System.out.println(type);\n\n String nDocument = (String) doc.get(\"nDocument\");\n System.out.println(nDocument);\n\n String ExpiryDate = (String) doc.get(\"ExpiryDate\");\n System.out.println(ExpiryDate);\n\n IdDocument document = new IdDocument(type, nDocument, ExpiryDate);\n\n Costumer c = new Costumer(name, surname, cityOfBirth, cityOfBirth, cityOfResidence, address, telephone, fiscalcode, province, document);\n\n costumerList.add((JSONObject) o);\n\n this.cList.add(c);\n\n } else if (o.containsKey(\"employee\")) {\n //Get employee object within list\n JSONObject employeeObject = (JSONObject) o.get(\"employee\");\n System.out.println(employeeObject.size());\n\n //Get employee username\n String username = (String) employeeObject.get(\"username\");\n System.out.println(username);\n\n String password = (String) employeeObject.get(\"password\");\n System.out.println(password);\n\n String typeemployee = (String) employeeObject.get(\"typeemployee\");\n System.out.println(typeemployee);\n\n Employee emp = new Employee(username, password, typeemployee);\n\n this.eList.add(emp);\n\n }\n\n }", "public void parseJson(JSONObject jsobject){\n\t\ttry{\n\t\t\tidCompany=(jsobject.has(\"idCompany\"))?jsobject.getInt(\"idCompany\"):0;\n\t\t\tname=(jsobject.has(\"name\"))?jsobject.getString(\"name\"):\"\";\n\t\t\taddress=(jsobject.has(\"address\"))?jsobject.getString(\"address\"):\"\";\n\t\t\tphone=(jsobject.has(\"address\"))?jsobject.getString(\"address\"):\"\";\n\t\t\tstate=(jsobject.has(\"state\"))?jsobject.getString(\"state\"):\"\";\n\t\t\tcountry=(jsobject.has(\"country\"))?jsobject.getString(\"country\"):\"\";\n\t\t\tlogotype=(jsobject.has(\"logotype\"))?jsobject.getString(\"logotype\"):\"\";\n\t\t\tfloorPlan=(jsobject.has(\"floorPlan\"))?jsobject.getString(\"floorPlan\"):\"\";\n\t\t}catch(JSONException e){\n\t\t\tLog.e(User.class.toString(), \"Failed to parse\"+e.toString());\n\t\t}\n\t}", "public abstract T zzb(JSONObject jSONObject);", "private String convertToJSON(Object o) throws JsonProcessingException {\n return new ObjectMapper().writeValueAsString(o);\n }", "public String getJson();", "public Object getParsedObject() {\n\t\treturn parsedObject;\n\t}", "public native Object parse( Object json, String texturePath );", "public void parser(JSONObject jo) {\n\n\t\n\t\tcontractId = JsonUtil.getJsonString(jo, \"contractId\");\n\t\tdate1 = JsonUtil.getJsonString(jo, \"date1\");\n\t\tstartDate = JsonUtil.getJsonString(jo, \"startDate\");\n\t\tendDate = JsonUtil.getJsonString(jo,\"endDate\");\n\t\tsupplierName = JsonUtil.getJsonString(jo,\"supplierName\");\n\t\ttxt7 = JsonUtil.getJsonString(jo,\"txt7\");\n\t\t\n\t\t\n\t\n\t}", "public JSONObject toJSONObject(){\r\n\r\n JSONObject obj = new JSONObject();\r\n try {\r\n obj.put(\"lon\", this.lon);\r\n obj.put(\"addressTitle\", this.addressTitle);\r\n obj.put(\"addressStreet\", this.addressStreet);\r\n obj.put(\"category\", this.category);\r\n obj.put(\"description\", this.description);\r\n obj.put(\"name\", this.name);\r\n obj.put(\"lat\", this.lat);\r\n obj.put(\"ele\", this.ele);\r\n } catch(Exception e){\r\n // Do nothing :((\r\n }\r\n return obj;\r\n }", "private String converttoJson(Object medicine) throws JsonProcessingException {\r\n ObjectMapper objectMapper = new ObjectMapper();\r\n return objectMapper.writeValueAsString(medicine);\r\n }", "void decodeObject();", "public static String object2Json(Object object) {\n\t\treturn JSON.toJSONString(object, features);\n\t}", "private void readObject() {}", "private void readObject() {}", "private void readObject() {}", "@Override\n\tprotected String toJSON()\n\t{\n\t\treturn getJSON(null);\n\t}", "public String toJson(Object obj){\n return new Gson().toJson(obj);\n }", "protected abstract Object buildJsonObject(R response);", "private ObjectNode ProcessObject(RDFNode node){\n if(node.isLiteral()){\n //handle literal\n return TransformUtils.GenerateLiteralJsonObject(mapper, node.asLiteral(), null);\n }\n else {\n //else handle resource\n return ProcessResource(node.asResource());\n }\n }", "Answerable(JSONObject object) throws JSONFormatException {\n JSONSpec.testObject(jsonSpec, object);\n\n JSONObject definition = (JSONObject) object.get(\"definition\");\n this.name = (String) definition.get(\"name\");\n\n JSONArray questions = (JSONArray) definition.get(\"questions\");\n JSONArray completed = (JSONArray) object.get(\"completed\");\n questions.forEach(question -> addQuestionFromJSON((JSONObject) question));\n completed.forEach(responses -> addCompletedFromJSON((JSONArray) responses));\n }", "public interface JsonParser {\n\n /**\n * convert string to POJO\n *\n * @param jsonString - string to convert to POJO\n * @param classType - POJO Type / Class Type to use for the deserialization\n * @param <T> the returned desirialized POJO\n * @return desiarilized POJO\n */\n <T> T toJsonPOJO(String jsonString, Class<T> classType);\n\n /**\n * convert from POJO to json string\n * @param data POJO to convert to json String\n * @return json string\n */\n String toJSONString(Object data);\n}", "protected void lateParse(JsonObject object, Class<T> resultClass) {\n JsonArray array = object.getAsJsonArray(\"result\");\n for (int i = 0; i < array.size(); i++)\n result.add(constructInstanceFromJson(resultClass, array.get(i).getAsJsonObject()));\n }", "Object3dContainer getParsedObject();", "public void load(JSONObject obj);", "@Override\n public Object convertJsonToObject(String content) {\n try {\n Map<String, EventDataValue> data = reader.readValue(content);\n\n return convertEventDataValuesMapIntoSet(data);\n } catch (IOException e) {\n throw new IllegalArgumentException(e);\n }\n }", "private static void parseBookObject(JSONObject book){\r\n BookManager.books.add(new Book(Integer.parseInt((String) book.get(\"id\")),(String) book.get(\"name\"),(String) book.get(\"author\")));\r\n }", "protected abstract String getJSON(B bean);", "public void deserialize() {\n\t\t\n\t}", "public interface ApiObject {\n\n String toJson();\n\n Object fromJson(JsonObject json);\n}", "private static JsonBairro toBasicJson(Bairro bairro) {\r\n\t\tJsonBairro jsonBairro = new JsonBairro();\r\n\t\tapplyBasicJsonValues(jsonBairro, bairro);\r\n\t\treturn jsonBairro;\r\n\t}", "@Override\n public String toJson(Object object) {\n if (null == object) {\n return null;\n }\n return JSON.toJSONString(object, SerializerFeature.DisableCircularReferenceDetect);\n }", "void toJson(JsonStaxPrinter printer) throws PrintingException, IOException;", "public String objectToJson(Object o){\n Gson gson = new Gson();\n String json = gson.toJson(o);\n return json;\n }", "public @NotNull T read(@NotNull final JsonObject object) throws JsonException;", "private static JsonAluno toBasicJson(Aluno aluno) {\r\n\t\tJsonAluno jsonAluno = new JsonAluno();\r\n\t\tapplyBasicJsonValues(jsonAluno, aluno);\r\n\t\treturn jsonAluno;\r\n\t}", "public void parse(T obj) {\n }", "private <T> T convert(String json, Type resultObject) {\n\t\tGson gson = new GsonBuilder().create();\n\t\treturn gson.fromJson(json, resultObject);\n\t}", "@Override\r\n public JSONObject toJSON() {\r\n return this.studente.toJSON();\r\n }", "private static JSONObject getDataObject(JSONObject obj)\n\t{\n\t\tJSONObject objData = new JSONObject();\n\t\tobjData.put(\"data\", obj);\n\t\treturn objData;\n\t}", "private void readObject() {\n }", "public interface JSONAdapter {\n public JSONObject toJSONObject();\n}", "public JsonObject toJson(){\n JsonObject json = new JsonObject();\n if(username != null){\n json.addProperty(\"username\" , username);\n }\n json.addProperty(\"title\", title);\n json.addProperty(\"description\", description);\n json.addProperty(\"date\", date);\n json.addProperty(\"alarm\", alarm);\n json.addProperty(\"alert_before\", alert_before);\n json.addProperty(\"location\", location);\n\n return json;\n }", "@Test\n public void readSystemObjectClassAppointment() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"Appointment\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Appointment properly\", object.getClass(), actual.getClass());\n }", "@Override\n public void parseJSON(JSONObject jsonObject) {\n if (jsonObject.has(\"business\"))\n try {\n JSONObject businessJsonObject = jsonObject.getJSONObject(\"business\");\n this.businessId = businessJsonObject.getString(\"_id\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n if (jsonObject.has(\"_id\"))\n try {\n this.foodlogiqId = jsonObject.getString(\"_id\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n if (jsonObject.has(\"name\"))\n try {\n this.name = jsonObject.getString(\"name\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n if (jsonObject.has(\"associateWith\"))\n try {\n this.associateWith = jsonObject.getString(\"associateWith\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n if (jsonObject.has(\"attributes\"))\n try {\n this.attributes = new ArrayList<>();\n JSONArray attributesJson = jsonObject.getJSONArray(\"attributes\");\n for (int i = 0; i < attributesJson.length(); i++) {\n JSONObject attributeJson = attributesJson.getJSONObject(i);\n CustomAttribute attribute = new CustomAttribute();\n attribute.parseJSON(attributeJson);\n this.attributes.add(attribute);\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "String getJson();", "String getJson();", "String getJson();", "@Override\n\tpublic JSONObject toJson() {\n\t\treturn null;\n\t}", "public JsonObject getObject() {\n return obj;\n }", "@Test\n public void readSystemObjectClassAppointmentRequest() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"AppointmentRequest\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return AppointmentRequest properly\", object.getClass(), actual.getClass());\n }", "static JsonObject toJsonObject(TodoItem item) {\n return Json.createObjectBuilder()\n .add(\"id\", item.getId())\n .add(\"description\", item.getDescription()==null?\"\":item.getDescription())\n .add(\"createdAt\", item.getCreatedAt().toString())\n .add(\"done\", item.isDone())\n .build();\n\n }", "@Override\n\tpublic JSONObject toJson() throws JSONException {\n\t\tJSONObject result = super.toJson();\n\t\treturn result;\n\t}", "private JSON() {\n\t}", "private JsonObject OnGoingRideObject()\n {\n OnGoingRideRequestModel requestModel = new OnGoingRideRequestModel();\n requestModel.setUserId(UserId);\n return new Gson().toJsonTree(requestModel).getAsJsonObject();\n }", "@Override\n\tprotected void handleResult(JSONObject obj) {\n\t\t\n\t}", "protected Object readResolve()\n/* */ {\n/* 353 */ return new JsonFactory(this, this._objectCodec);\n/* */ }", "public static <T> JsonObject convertObjectToJsonObject(final T object) {\n return new Gson().toJsonTree(object).getAsJsonObject();\n }", "@SuppressWarnings(\"unchecked\")\n @Override\n protected String convertObjectToJson(Object object) {\n try {\n Set<EventDataValue> eventDataValues =\n object == null ? Collections.emptySet() : (Set<EventDataValue>) object;\n\n Map<String, EventDataValue> tempMap = new HashMap<>();\n\n for (EventDataValue eventDataValue : eventDataValues) {\n tempMap.put(eventDataValue.getDataElement(), eventDataValue);\n }\n\n return writer.writeValueAsString(tempMap);\n } catch (IOException e) {\n throw new IllegalArgumentException(e);\n }\n }", "void mo59932a(String str, JSONObject jSONObject);", "private static JsonQuestao toBasicJson(Questao questao) {\r\n\t\tJsonQuestao jsonQuestao = new JsonQuestao();\r\n\t\tapplyBasicJsonValues(jsonQuestao, questao);\r\n\t\treturn jsonQuestao;\r\n\t}", "public void mo15090a(JSONObject jSONObject) {\n }", "private static JSONArray objectToArray(JSONObject obj){\r\n return (JSONArray) obj.get(\"books\");\r\n }" ]
[ "0.6663543", "0.66533285", "0.65310824", "0.6487122", "0.6487122", "0.64732885", "0.64362264", "0.6431957", "0.63048863", "0.62803656", "0.62628925", "0.6160342", "0.60413045", "0.6040311", "0.6025645", "0.5986272", "0.59125495", "0.58842665", "0.58763593", "0.58716065", "0.58183485", "0.5814033", "0.5774195", "0.5769664", "0.5767828", "0.5763959", "0.574817", "0.57434005", "0.5722704", "0.5707717", "0.56963885", "0.56900996", "0.5685779", "0.5677027", "0.5670673", "0.5659729", "0.56579924", "0.56453454", "0.5640282", "0.5635952", "0.5633323", "0.5631064", "0.56274176", "0.5623158", "0.5620215", "0.5592372", "0.558817", "0.5586136", "0.5572201", "0.55693954", "0.5563384", "0.5563384", "0.5563384", "0.5548662", "0.5540273", "0.5520564", "0.55159146", "0.5509341", "0.5507306", "0.5494745", "0.54865855", "0.5484463", "0.54797363", "0.54785925", "0.5475305", "0.5467637", "0.54575926", "0.5441754", "0.5439957", "0.54325116", "0.5421967", "0.54157907", "0.54019755", "0.54012156", "0.53964204", "0.5394333", "0.5390604", "0.53810495", "0.5371571", "0.5371131", "0.5361707", "0.53597784", "0.5352026", "0.5352026", "0.5352026", "0.5346785", "0.5345772", "0.53418416", "0.53385097", "0.5336636", "0.53352106", "0.53309184", "0.5323499", "0.5322558", "0.5319478", "0.5313497", "0.53117603", "0.5310309", "0.5309259", "0.53081053" ]
0.745359
0
Parses from json to object of T class
<T> T parseToObject(Object json, Class<T> classObject);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "T fromJson(Object source);", "<T> T fromJson(String json, Class<T> type);", "<T> T fromJson(String source, Class<T> type);", "<T> T fromJson(String source, JavaType type);", "public native Object parse( Object json );", "private <T> T getObjectFromJsonObject(JSONObject j, Class<T> clazz) throws IOException {\n ObjectMapper mapper = new ObjectMapper();\n T t = null;\n t = mapper.readValue(j.toString(), clazz);\n\n return t;\n }", "public abstract void fromJson(JSONObject jsonObject);", "public <T> T fromJson(String json, Class<T> clazz) {\n return getGson().fromJson(json, clazz);\n }", "public static <T> T pasarAObjeto(String json, Class<T> tipo) {\r\n try {\r\n ObjectMapper mapper = getBuilder().build();\r\n return mapper.readValue(json, tipo);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n return null;\r\n }", "public static <T> T fromJson(String json, Class<T> type)\n {\n return g.fromJson(json, type);\n }", "private static <T> T getObjectFromJson(JsonNode dataJson) {\n Object object=null;\n if(!dataJson.has(CLASS_FIELD)) {\n return null;\n }\n /** Determine class of object and return with cast*/\n String classField=dataJson.get(CLASS_FIELD).asText();\n\n /** Lists -> All lists are converted into ArrayLists*/\n if(classField.startsWith(LIST_CLASS)) {\n try {\n String[] listType=classField.split(SEPERATOR);\n if(listType.length<2) {\n return (T) new ArrayList<>();\n }\n Class type=Class.forName(listType[1]);\n String json=dataJson.get(DATA_FIELD).toString();\n List<Object> list=new ArrayList<>();\n ArrayNode array=(ArrayNode) mapper.readTree(json);\n for(JsonNode item : array) {\n Object o=mapper.readValue(item.toString(), type);\n list.add(o);\n }\n return (T) list;\n }\n catch(JsonProcessingException | ClassNotFoundException e) {\n e.printStackTrace();\n }\n }\n /** Single objects*/\n else {\n Class type=null;\n try {\n type=Class.forName(classField);\n /** Read primitive types (String,Integer,...)*/\n if(dataJson.has(PRIMITIVE_FIELD)) {\n object=mapper.readValue(dataJson.get(PRIMITIVE_FIELD).toString(), type);\n }\n else {\n object=mapper.readValue(dataJson.toString(), type);\n }\n return (T) object;\n }\n catch(ClassNotFoundException | JsonProcessingException e) {\n e.printStackTrace();\n }\n }\n return null;\n }", "T deserialize(JsonObject json, DynamicDeserializerFactory deserializerFactory) throws ClassNotFoundException;", "public static <T> T parseJSON(final String jsonString, Class<T> type) {\r\n\t\tT retObject = null;\r\n\t\ttry {\r\n\t\t\tretObject = PARSER.parse(jsonString, type);\r\n\t\t} catch (ParseException ex) {\r\n\t\t\tLOGGER.log(Level.WARNING, \"JSON_UTIL:Error in de-serializing to object\", ex);\r\n\t\t\tretObject = null;\r\n\t\t}\r\n\t\treturn retObject;\r\n\t}", "static <T extends JSONSerializable> T deserialize(String json, Class<T> type) throws Exception {\n T result = type.newInstance();\n result.jsonDeserialize(json);\n return result;\n }", "protected <T> Object fromJson(String jsonString, Class<T> classInstance) {\n\n\t\tSystem.out.println(\"jsonString = \" + jsonString);\n\t\treturn gson.fromJson(jsonString, classInstance);\n\n\t}", "public static <T> T mapJsonToObject(String json, Class<T> classType) {\n\t\tT obj = null;\n\t\tif (StringUtils.isBlank(json)) {\n\t\t\treturn null;\n\t\t}\n\t\ttry {\n\t\t\tobj = jsonMapper.readValue(json, classType);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"error mapJsonToObject: \" + e.getMessage());\n\t\t}\n\t\treturn obj;\n\t}", "public <T> T fromJson(String json, Type type) {\n return getGson().fromJson(json, type);\n }", "public static <T> T fromJSON(final String json, final Class<T> clazz) {\n return gson.fromJson(json, clazz);\n }", "private <T> T convert(String json, Type resultObject) {\n\t\tGson gson = new GsonBuilder().create();\n\t\treturn gson.fromJson(json, resultObject);\n\t}", "TorrentJsonParser getJsonParser();", "public interface JsonParser {\n\n /**\n * convert string to POJO\n *\n * @param jsonString - string to convert to POJO\n * @param classType - POJO Type / Class Type to use for the deserialization\n * @param <T> the returned desirialized POJO\n * @return desiarilized POJO\n */\n <T> T toJsonPOJO(String jsonString, Class<T> classType);\n\n /**\n * convert from POJO to json string\n * @param data POJO to convert to json String\n * @return json string\n */\n String toJSONString(Object data);\n}", "public interface JSONDeserializer<T> {\n\t\n\t/**\n\t * Deserialize a json string\n\t * @param json object to deserialize\n\t * @return JSON representation as {@link JsonObject}\n\t */\n\tJsonObject deserialise(String json);\n\t\n\t/**\n\t * Unmarshall 'meta' section of the response\n\t * @param meta section represented as {@link JsonObject}\n\t * @return object of generic type T\n\t */\n\tT unmarshallMeta(JsonObject meta);\n\t\n\t/**\n\t * Unmarshall 'response' section of the response\n\t * @param response section represented as {@link JsonObject}\n\t * @return list of objects of generic type T\n\t */\n\tCollection<T> unmarshallResponse(JsonObject response);\n\n}", "public static <T> T loadJson(String content, Class<T> valueType){\n return (T)JsonMapper.fromJsonString(content, valueType);\n }", "public Object parseJsonToObject(String response, Class<?> modelClass) {\n\n try {\n return gson.fromJson(response, modelClass);\n } catch (Exception ex) {\n ex.printStackTrace();\n return null;\n }\n }", "public static <T> T loadJson(String input, Class<T> classOfT) {\n Gson gson = new GsonBuilder().create();\n return gson.fromJson(input, classOfT);\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic static<T> T createObjectFromJSON(final JSONObject json) throws JSONException {\n\t\tif(json.has(\"type\")) {\n\t\t\treturn (T) Helper.createItemFromJSON(json);\n\t\t} else if(json.has(\"triple_pattern\")) {\n\t\t\treturn (T) Helper.createTriplePatternFromJSON(json);\n\t\t} else if(json.has(\"histogram\")) {\n\t\t\treturn (T) Helper.createVarBucketFromJSON(json);\n\t\t} else {\n\t\t\tSystem.err.println(\"lupos.distributed.operator.format.Helper.createObjectFromJSON(...): Unknown type stored in JSON object, returning null!\");\n\t\t\treturn null;\n\t\t}\n\t}", "public @Nullable <T> T fromJson(@Nullable String jsonString, @NonNull Class<T> clazz) {\n return gson.fromJson(jsonString, clazz);\n }", "public static <T> T json2pojo(String jsonStr, Class<T> clazz)\n throws Exception {\n return objectMapper.readValue(jsonStr, clazz);\n }", "public abstract Object deserialize(Object object);", "public interface JSONParserService extends Service {\r\n\r\n /**\r\n * Parses from json to map\r\n *\r\n * @param json data\r\n * @return Map<String, Object> or null, if json equals null\r\n */\r\n Map<String, Object> parseToMap(String json);\r\n\r\n /**\r\n * Parses from map to json\r\n *\r\n * @param data map with data\r\n * @return json or null, if map equals null\r\n */\r\n String parseMapToJson(Map<String, Object> data);\r\n\r\n /**\r\n * Parses from object to json\r\n *\r\n * @param obj object that will be parsed to json\r\n * @return json or null if invalid data\r\n */\r\n String parseObjectToJson(Object obj);\r\n\r\n /**\r\n * Parses from json to object of T class\r\n *\r\n * @param json string of json with data object\r\n * @param classObject type object\r\n *\r\n * @return T object or null, if transferred incorrect data\r\n */\r\n <T> T parseToObject(Object json, Class<T> classObject);\r\n\r\n /**\r\n * Parses from json to collection of object's T class\r\n *\r\n * @param json string of json with data objects\r\n * @param typeClass type of objects collection\r\n *\r\n * @return collection of object's T class or null, if transferred incorrect data\r\n */\r\n <T> Collection<T> parseToCollectionObjects(Object json, Type typeClass);\r\n\r\n\r\n}", "public static <T> T getTestObject(String rs, Class<T> clazz) throws Exception {\n return JSON.parseObject(readSourceFile(rs), clazz);\n }", "<T> T toJsonPOJO(String jsonString, Class<T> classType);", "public static <T> T string2Object(String source, Class<T> type){\n\t\treturn JSON.parseObject(source, type);\n\t}", "public void deserialize(JsonObject src);", "public static <T> T fromJson(final String jsonString, final Class<T> clazz) {\n\t\treturn gson.fromJson(jsonString, clazz);\n\t}", "public void parse(T obj) {\n }", "<T> T readJson(FsPath path, Class<T> clazz);", "public static Object fromJSON(quark.reflect.Class cls, Object result, io.datawire.quark.runtime.JSONObject json) {\n if (((json)==(null) || ((Object)(json) != null && ((Object) (json)).equals(null))) || ((json).isNull())) {\n return null;\n }\n Integer idx = 0;\n if ((result)==(null) || ((Object)(result) != null && ((Object) (result)).equals(null))) {\n if (((cls).name)==(\"quark.String\") || ((Object)((cls).name) != null && ((Object) ((cls).name)).equals(\"quark.String\"))) {\n String s = (json).getString();\n return s;\n }\n if (((cls).name)==(\"quark.float\") || ((Object)((cls).name) != null && ((Object) ((cls).name)).equals(\"quark.float\"))) {\n Double flt = (json).getNumber();\n return flt;\n }\n if (((cls).name)==(\"quark.int\") || ((Object)((cls).name) != null && ((Object) ((cls).name)).equals(\"quark.int\"))) {\n Integer i = ((int) Math.round((json).getNumber()));\n return i;\n }\n if (((cls).name)==(\"quark.bool\") || ((Object)((cls).name) != null && ((Object) ((cls).name)).equals(\"quark.bool\"))) {\n Boolean b = (json).getBool();\n return b;\n }\n result = (cls).construct(new java.util.ArrayList(java.util.Arrays.asList(new Object[]{})));\n }\n if (((cls).name)==(\"quark.List\") || ((Object)((cls).name) != null && ((Object) ((cls).name)).equals(\"quark.List\"))) {\n java.util.ArrayList<Object> list = (java.util.ArrayList<Object>) (result);\n while ((idx) < ((json).size())) {\n (list).add(Functions.fromJSON(((cls).getParameters()).get(0), null, (json).getListItem(idx)));\n idx = (idx) + (1);\n }\n return list;\n }\n java.util.ArrayList<quark.reflect.Field> fields = (cls).getFields();\n while ((idx) < ((fields).size())) {\n quark.reflect.Field f = (fields).get(idx);\n idx = (idx) + (1);\n if (Boolean.valueOf(((f).name).startsWith(\"_\"))) {\n continue;\n }\n if (!(((json).getObjectItem((f).name)).isNull())) {\n ((io.datawire.quark.runtime.QObject) (result))._setField((f).name, Functions.fromJSON((f).getType(), null, (json).getObjectItem((f).name)));\n }\n }\n return result;\n }", "@Override\n public void parse(String json) {\n JSONObject object = new JSONObject(json);\n id = object.getInt(\"dataset id\");\n name = object.getString(\"dataset name\");\n maxNumOfLabels = object.getInt(\"maximum number of labels per instance\");\n\n JSONArray labelsJSON = object.getJSONArray(\"class labels\");\n labels = new ArrayList<>();\n for (int i = 0; i < labelsJSON.length(); i++) {\n labels.add(new Label(labelsJSON.getJSONObject(i).toString()));\n }\n\n JSONArray instancesJSON = object.getJSONArray(\"instances\");\n instances = new ArrayList<>();\n for (int i = 0; i < instancesJSON.length(); i++) {\n instances.add(new Instance(instancesJSON.getJSONObject(i).toString()));\n }\n }", "GistUser deserializeUserFromJson(String json);", "public native Object parse( Object json, String texturePath );", "public static Object converFromJson(String src, Class cls) {\n\n String[] lines = src\n .replaceAll(\",\", \"\")\n .replaceAll(\"\\\"\", \"\")\n .split(\"\\n\");\n\n Map<String, String> keyValues = new HashMap<>();\n\n for (int i = 1; i < lines.length - 1; i++) {\n String[] keyAndValue = lines[i].trim().split(\":\");\n keyValues.put(keyAndValue[0], keyAndValue[1]);\n }\n\n try {\n Object obj = cls.newInstance();\n\n for (Field field : cls.getDeclaredFields()) {\n if (field.isAnnotationPresent(MyField.class)) {\n Type type = field.getType();\n if (type == double.class) {\n field.set(obj, Double.parseDouble(keyValues.get((field.getName()))));\n } else if (type == int.class) {\n field.set(obj, Integer.parseInt(keyValues.get((field.getName()))));\n } else if (type == boolean.class) {\n field.set(obj, Boolean.valueOf(keyValues.get((field.getName()))));\n } else {\n field.set(obj, keyValues.get((field.getName())));\n }\n }\n }\n\n return obj;\n } catch (InstantiationException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n\n return null;\n }", "public static <T> T loadObject(@NonNull String path, Charset encoding, Class<T> clazz) throws IOException {\n JsonElement json = ReaderUtils.loadJson(path, encoding);\n if(json == null){ return null; }\n Gson gson = GsonBuilder.gsonDefault();\n return gson.fromJson(json, clazz);\n }", "Gist deserializeGistFromJson(String json);", "public abstract T parse(Object valueToParse, Type type);", "public static final <V> V toObject(String json, Type type) {\n return gson.fromJson(json, type);\n }", "@Override\n public List<T> deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {\n JsonElement postJsonArray = json.getAsJsonArray();\n return new Gson().fromJson(postJsonArray,typeOfT);\n }", "@Override\n\tpublic Dog deserialize(JsonElement json, Type typeOfT,\n\t\t\tJsonDeserializationContext context) throws JsonParseException {\n\t\tJsonObject obj = json.getAsJsonObject();\n\t\tJsonPrimitive name = (JsonPrimitive) obj.get(\"name\");\n\t\tJsonPrimitive ferocity = (JsonPrimitive) obj.get(\"ferocity\");\n\t\treturn Dog.create(name.getAsString(), ferocity.getAsInt());\n\t}", "public @Nullable <T> T fromJson(@NonNull Reader reader, @NonNull Class<T> clazz) {\n return gson.fromJson(reader, clazz);\n }", "public @NotNull T read(@NotNull final JsonObject object) throws JsonException;", "public <T> T deserialize(String jsonString, Class<T> valueType) {\n\t\tlong time = System.currentTimeMillis();\n\t\ttry {\n\t\t\tlogger.debug(\"Deserializer Json Instance: \" + this);\n\t\t\treturn mapper.readValue(jsonString, valueType);\n\t\t} catch (IOException ex) {\n\t\t\tlogger.error(\"Error deserializing the given json: \", ex);\n\t\t} finally {\n\t\t\tlogger.info(\"Deserialize in \" + (System.currentTimeMillis() - time) + \" ms.\");\n\t\t}\n\t\treturn null;\n\t}", "Map<String, Object> parseToMap(String json);", "<T> Collection<T> parseToCollectionObjects(Object json, Type typeClass);", "public static <T> T convertJsonStringToObject(String json,\n\t\t\tClass<T> valueType) {\n\t\ttry {\n\t\t\treturn mapper.readValue(json, valueType);\n\t\t} catch (Exception e) {\n\t\t\tthrow new RuntimeException(\"Error converting Json String [\" + json\n\t\t\t\t\t+ \"] to [\" + valueType.getCanonicalName() + \"]\", e);\n\t\t}\n\t}", "public static <T> T toBean(String json, Class<T> clazz) {\n if (!StringUtils.isEmpty(json)) {\n ObjectMapper mapper = getObjectMapper();\n try {\n return mapper.readValue(json, clazz);\n } catch (Exception e) {\n logger.error(\"JSONString : \" + json, e);\n }\n }\n return null;\n }", "@Override\n public BitfinexModel deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException\n {\n JsonElement bitfinexModel = json.getAsJsonObject();\n\n /**\n * Deserialize the JsonElement as GSON\n */\n return new Gson().fromJson(bitfinexModel, BitfinexModel.class);\n }", "public interface PojoParser {\n\n\n /**\n * Method which converts the Pojo to JSON Object\n * @return return the framed {@link JSONObject} instance\n */\n public abstract JSONObject toJson();\n\n /**\n * Method which convert JSON to POJO.\n * @param jsonObject Josn object which need to be parsed.\n */\n public abstract void fromJson(JSONObject jsonObject);\n}", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic ListInfo deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context)\n\t\t\tthrows JsonParseException {\n\t\tListInfo listInfo = new ListInfo();\n\n\t\tJsonObject topMap = json.getAsJsonObject();\n\t\tlistInfo.setLastUpdate(topMap.get(LAST_UPDATE).getAsLong());\n\t\tlistInfo.setName(topMap.get(NAME).getAsString());\n\t\tlistInfo.setStatus(TimeStampedNode.Status.valueOf(topMap.get(STATUS).getAsString()));\n\t\tif (topMap.has(UNIQUE_ID)){\n\t\t\tlistInfo.setUniqueId(topMap.get(UNIQUE_ID).getAsString());\n\t\t}\n\n\t\tif (topMap.has(ITEMS)) {\n\t\t\tJsonArray itemsJson = topMap.get(ITEMS).getAsJsonArray();\n\t\t\tfor (JsonElement itemJsonElement : itemsJson) {\n\t\t\t\tItemInfo item = context.deserialize(itemJsonElement, ItemInfo.class);\n\n\t\t\t\t//Add it to the map. Note, order is lost, but since it's always alphabetical order it's ok\n\t\t\t\tlistInfo.getItems().put(item.getUniqueId(), item);\n\t\t\t}//for itemsJson\n\t\t}//if has items\n\n\t\tif (topMap.has(CATEGORIES)) {\n\t\t\tJsonArray categoriesJson = topMap.get(CATEGORIES).getAsJsonArray();\n\t\t\t//Hack needed to make it deserialize to an ArrayList correctly.\n\t\t\t//http://stackoverflow.com/questions/5554217/google-gson-deserialize-listclass-object-generic-type\n\t\t\tType listType = new TypeToken<TreeSet<CategoryInfo>>() {\n }.getType();\n\t\t\tlistInfo.setCategories((TreeSet<CategoryInfo>)context.deserialize(categoriesJson, listType));\n\t\t\t//We never want to say it's changed when reading it in.\n\t\t\tfor (CategoryInfo cat : listInfo.getCategories()) {\n\t\t\t\tcat.setChangedOnServer(false);\n\t\t\t}\n\t\t}//if has categories\n\t\t\n\t\tif (topMap.has(SELECTED_CATEGORIES)) {\n\t\t\tJsonArray selCatJson = topMap.get(SELECTED_CATEGORIES).getAsJsonArray();\n\t\t\tType listType = new TypeToken<HashSet<String>>() {\n }.getType();\n\t\t\tlistInfo.setSelectedCategories((HashSet<String>) context.deserialize(selCatJson, listType));\n\t\t}//if has selectedCategories\n\t\t\n\t\tif (topMap.has(OTHER_USER_PRIVS)) {\n\t\t\tJsonObject privsJson = topMap.get(OTHER_USER_PRIVS).getAsJsonObject();\n\t\t\tfor ( Map.Entry<String,JsonElement> privEntry : privsJson.entrySet()){\n\t\t\t\tOtherUserPrivOnList privInfo = context.deserialize(privEntry.getValue(), OtherUserPrivOnList.class);\n\t\t\t\tprivInfo.userId = privEntry.getKey();\n\t\t\t\tlistInfo.getOtherUserPrivs().put(privEntry.getKey(), privInfo);\n\t\t\t}//for categoriesJson\n\t\t}//if has selectedCategories\n\n\t\t//Note, always ignore changedOnServer when parsing.\n\t\t\n\t\treturn listInfo;\n\t}", "void fromJson(JsonStaxParser parser) throws SyntaxException, IOException;", "public static <T> T jsonToBean(String json, Class<T> clazz, boolean isSnakeCase) {\n ObjectMapper mapper = new ObjectMapper();\n // mapper的configure方法可以设置多种配置(例如:多字段 少字段的处理)\n //mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);\n\n if (isSnakeCase) {\n mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE);\n }\n\n try {\n return mapper.readValue(json, clazz);\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "protected <T> T deserialize(final String value, final Class<T> type) throws JsonDeserializationException {\n return json.deserialize(value, type);\n }", "private static FluidIngredient deserializeObject(JsonObject json) {\n if (json.entrySet().isEmpty()) {\n return EMPTY;\n }\n\n // fluid match\n if (json.has(\"name\")) {\n // don't set both, obviously an error\n if (json.has(\"tag\")) {\n throw new JsonSyntaxException(\"An ingredient entry is either a tag or an fluid, not both\");\n }\n\n // parse a fluid\n return FluidMatch.deserialize(json);\n }\n\n // tag match\n if (json.has(\"tag\")) {\n return TagMatch.deserialize(json);\n }\n\n throw new JsonSyntaxException(\"An ingredient entry needs either a tag or an fluid\");\n }", "@Test\n public void readUserClassPatient() throws UnsupportedEncodingException, IOException {\n testJson = gson.toJson(Factory.createUser(\"Patient\"));\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n IUser actual = DataHandler.readUserClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Patient properly\", Factory.createUser(\"Patient\").getClass(), actual.getClass());\n }", "public void fromJSON(String json) throws JSONException;", "protected void lateParse(JsonObject object, Class<T> resultClass) {\n JsonArray array = object.getAsJsonArray(\"result\");\n for (int i = 0; i < array.size(); i++)\n result.add(constructInstanceFromJson(resultClass, array.get(i).getAsJsonObject()));\n }", "public abstract T deserialize(String serial);", "@Override\n public ModelSchema deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {\n\n ModelSchema result = new ModelSchema();\n JsonObject root = json.getAsJsonObject();\n\n String name = root.get(\"name\").getAsString();\n result.setName(name);\n\n String version = root.get(\"version\").getAsString();\n result.setVersion(version);\n\n JsonArray resources = root.get(\"resources\").getAsJsonArray();\n ResourceSchema[] resourceSchemas = new ResourceSchema[resources.size()];\n for(int i = 0; i < resources.size(); i++)\n {\n JsonElement resource = resources.get(i);\n resourceSchemas[i] = context.deserialize(resource, ResourceSchema.class);\n }\n result.setResources(resourceSchemas);\n\n JsonArray selectors = root.get(\"selectors\").getAsJsonArray();\n SelectorSchema[] selectorSchemas = new SelectorSchema[selectors.size()];\n for(int i = 0; i < selectors.size(); i++)\n {\n JsonElement selector = selectors.get(i);\n selectorSchemas[i] = context.deserialize(selector, SelectorSchema.class);\n }\n result.setSelectors(selectorSchemas);\n\n JsonArray links = root.get(\"links\").getAsJsonArray();\n LinkSchema[] linkSchemas = new LinkSchema[links.size()];\n for(int i = 0; i < links.size(); i++)\n {\n JsonElement link = links.get(i);\n linkSchemas[i] = context.deserialize(link, LinkSchema.class);\n }\n result.setLinks(linkSchemas);\n\n return result;\n }", "interface JSONParser<DataType>\n{\n DataType Parse(JSONObject jsonObject);\n}", "public static <T> T fromJson(Reader readerFile, Class<T> valueType) {\n\t\tif(gson == null) {\n\t\t\tgson = new Gson();\n\t\t}\n\t\treturn gson.fromJson(readerFile, valueType);\n\t}", "static <T extends SyntheticOptions> T optionsFromString(String json, Class<T> type)\n throws IOException {\n ObjectMapper mapper = new ObjectMapper();\n T result = mapper.readValue(json, type);\n result.validate();\n return result;\n }", "@Override\n @SuppressWarnings(\"PMD.LawOfDemeter\")\n public O apply(final String json) {\n return JsonPath\n .parse(json)\n .read(expression, clazz);\n }", "public interface RandomDeserializer<T> {\n\n /**\n * This is where all the magic happens, given a json part (only the useful part of the json for the specific deserializer) the deserializer is able to create the required object.\n *\n * @author andreahuang\n *\n */\n T deserialize(JsonObject json, DynamicDeserializerFactory deserializerFactory) throws ClassNotFoundException;\n}", "@Override\n public Geometry deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context)\n throws JsonParseException {\n JsonObject jsonObject = (JsonObject) json;\n String geometryType = jsonObject.get(\"type\").getAsString();\n if (geometryType.equals(\"Point\")) {\n JsonArray coordinates = jsonObject.getAsJsonArray(\"coordinates\");\n return Point.fromCoordinates(Position.fromCoordinates(\n coordinates.get(0).getAsDouble(),\n coordinates.get(1).getAsDouble()));\n } else {\n throw new JsonParseException(\"Unexpected geometry found: \" + geometryType);\n }\n }", "private void parseObjectSubclass(JSONObject x) {\n //Get BalanceOperation Id\n int balanceId = Integer.parseInt((String) x.get(\"balanceId\"));\n //Get description\n String description = (String) x.get(\"description\");\n //Get money\n double money = Double.parseDouble((String) x.get(\"money\"));\n //Get date\n LocalDate date = LocalDate.parse((String) x.get(\"date\"));\n\n /*//based on the \"sub\" field, present only in JSON version of the object, instantiates different subclasses\n String sub = (String) x.get(\"sub\");*/\n if(description.equals(\"Order\")){\n\n String productCode = (String) x.get(\"productCode\");\n double pricePerUnit = Double.parseDouble((String) x.get(\"pricePerUnit\"));\n int quantity = Integer.parseInt((String) x.get(\"quantity\"));\n String status = (String) x.get(\"status\");\n\n //building order with the full constructor\n OrderImpl order = new OrderImpl(balanceId, description, money, date, productCode, quantity, pricePerUnit, status);\n //adding the loaded order back into the operationsMap checking for duplicates\n if(!this.operationsMap.containsKey(balanceId)){\n this.operationsMap.put(balanceId, order);\n if( status.equals(\"PAYED\") || status.equals(\"COMPLETED\")){this.changeBalance(money);}\n }\n }\n else if(description.equals(\"SaleTransaction\")){\n\n double discountRate = Double.parseDouble((String) x.get(\"discountRate\"));\n String status = (String) x.get(\"status\");\n //JSON array to iterate over TicketEntries \"entries\"\n JSONArray jEntries = (JSONArray) x.get(\"entries\");\n //loading TicketEntries list of the sale transaction\n List<TicketEntry> entries = new ArrayList<>();\n jEntries.forEach(e -> addEntry(entries, (JSONObject) e));\n\n //JSON array to iterate over RFIDS of sold products \"rfids\"\n JSONArray jRfids = (JSONArray) x.get(\"rfids\");\n if(jRfids==null){\n jRfids = new JSONArray();\n jRfids.clear();\n }\n //loading RIFDS list of the sale transaction\n ArrayList<ProductRfid> rfids = new ArrayList<>();\n jRfids.forEach(e -> addRfid(rfids, (JSONObject) e));\n\n //building saleTransaction with the full constructor\n SaleTransactionImplementation sale = new SaleTransactionImplementation(balanceId,description,money,date,discountRate,status,entries,rfids);\n //adding the sale transaction back into the operationsMap checking for duplicates\n if(!this.operationsMap.containsKey(balanceId)){\n this.operationsMap.put(balanceId, sale);\n if( status.equals(\"PAYED\") ){this.changeBalance(money);}\n }\n }\n else if(description.equals(\"ReturnTransaction\")){\n String status = (String) x.get(\"status\");\n Integer saleId = Integer.parseInt((String) x.get(\"saleId\"));\n //JSON array to iterate over TicketEntries \"entries\"\n double saleDiscount = Double.parseDouble((String) x.get(\"saleDiscount\"));\n JSONArray jEntries = (JSONArray) x.get(\"entries\");\n //loading TicketEntries list of the sale transaction\n List<TicketEntry> entries = new ArrayList<>();\n jEntries.forEach(e -> addEntry(entries, (JSONObject) e));\n\n //JSON array to iterate over RFIDS of sold products \"rfids\"\n JSONArray jRfids = (JSONArray) x.get(\"rfids\");\n if(jRfids==null){\n jRfids = new JSONArray();\n jRfids.clear();\n }\n //loading RIFDS list of the sale transaction\n ArrayList<ProductRfid> rfids = new ArrayList<>();\n jRfids.forEach(e -> addRfid(rfids, (JSONObject) e));\n\n //building returnTransaction with the full constructor\n ReturnTransaction retTrans = new ReturnTransaction(balanceId,description,money,date,saleId,status,entries,saleDiscount,rfids);\n //adding the Return Transaction back into the operationsMap checking for duplicates\n if(!this.operationsMap.containsKey(balanceId)){\n this.operationsMap.put(balanceId,retTrans);\n }\n }\n else if(description.equals(\"Credit\") || description.equals(\"Debit\")){\n //Simple Balance Update Operation (credit or debit)\n BalanceOperation operation = new BalanceOperationImpl(balanceId,description,money,date);\n //adding the operation (credit or debit) back into the operationsMap checking for duplicates\n if(!this.operationsMap.containsKey(balanceId)){\n this.operationsMap.put(balanceId, operation);\n this.changeBalance(money);\n }\n }\n\n\n }", "public interface JsonDeserializer {\n\n /**\n * Parses and deserializes a Gist object from the provided JSON text. This\n * Gist object does not contain all comments on said Gist, as obtaining a\n * given Gist's comments requires a completely separate Github API call.\n *\n * @param json JSON text to parse\n * @return Gist object with related attributes and objects\n */\n Gist deserializeGistFromJson(String json);\n\n /**\n * Parses and deserializes a List of Gist objects from the provided JSON\n * text. If there is an error with parsing the JSON, null is returned.\n *\n * @param json JSON text to parse\n * @return List of Gist objects\n */\n List<Gist> deserializeGistsFromJson(String json);\n\n /**\n * Parses and deserializes a GistComment object from the provided JSON text.\n *\n * @param json JSON text to parse\n * @return GistComment corresponding to some Gist\n */\n GistComment deserializeCommentFromJson(String json);\n\n /**\n * Parses and deserializes a List of GistComment objects from the provided\n * JSON text. If there is an error with parsing the JSON, null is returned.\n *\n * @param json JSON text to parse\n * @return List of GistComment objects\n */\n List<GistComment> deserializeCommentsFromJson(String json);\n\n /**\n * Parses and deserializes an expanded GistUser object from the provided\n * JSON text. This user contains all fields contained in the \"user\" objects\n * found in standard Gist JSON responses, in addition to more fields found\n * in User JSON responses. If certain fields are present, namely\n * \"private_gists\" and \"total_private_repos\", then this must be the\n * currently authenticated user.\n *\n * @param json JSON text to parse\n * @return GistUser corresponding to some Github user\n */\n GistUser deserializeUserFromJson(String json);\n\n}", "@Test\n public void readSystemObjectClassAppointment() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"Appointment\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Appointment properly\", object.getClass(), actual.getClass());\n }", "private FieldDocument _fromJson (String json) {\n try {\n FieldDocument fd = this.mapper.readValue(json, FieldDocument.class);\n return fd;\n }\n catch (IOException e) {\n log.error(\"File json not found or unmappable: {}\",\n e.getLocalizedMessage());\n };\n return (FieldDocument) null;\n }", "@Test\n public void readUserClassDoctor() throws UnsupportedEncodingException, IOException {\n testJson = gson.toJson(Factory.createUser(\"Doctor\"));\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n IUser actual = DataHandler.readUserClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Doctor properly\", Factory.createUser(\"Doctor\").getClass(), actual.getClass());\n }", "public Object readInternal(Class<? extends Object> clazz, HttpInputMessage inputMessage) throws IOException, HttpMessageNotReadableException {\n return JSON.parseObject(inputMessage.getBody(), this.fastJsonConfig.getCharset(), (Type) clazz, this.fastJsonConfig.getFeatures());\n }", "static TodoItem fromJsonObject(JsonObject json) {\n TodoItem item = new TodoItem();\n item.setId(json.get(\"id\") == null ? -1 : json.getInt(\"id\"));\n item.setDescription(json.get(\"description\") == null ? null : json.getString(\"description\"));\n item.setCreatedAt(json.get(\"createdAt\") == null ? null : OffsetDateTime.parse(json.getString(\"createdAt\")));\n item.setDone(json.get(\"done\") == null ? false : json.getBoolean(\"done\"));\n LOGGER.fine(()->\"fromJsonObject returns:\"+item);\n return item;\n }", "public static <T> T jsonToEntity(String jsonTxt, Class<T> resultClass, ObjectMapper objectMapper)\n\t\t\tthrows IOException {\n\t\tT resultObject = objectMapper.readValue(jsonTxt, resultClass);\n\t\tif (resultObject == null) {\n\t\t\tthrow new IllegalArgumentException(\"null resultObject after JSON to Object conversion\");\n\t\t}\n\t\treturn resultObject;\n\t}", "protected final <T> T openGsonObject(Class<T> objectType, ResourceType type, String path) {\n InputStream inputStream = this.openFileStream(type, path);\n if (inputStream == null) {\n return null;\n }\n try {\n try {\n Reader reader = new InputStreamReader(inputStream, \"UTF-8\");\n if (this.gson == null) {\n GsonBuilder gsonBuilder = new GsonBuilder();\n gsonBuilder.registerTypeAdapter(Vector3.class, new Vector3Deserializer());\n gsonBuilder.registerTypeAdapter(BlockFace.class, new BlockFaceDeserializer());\n gsonBuilder.registerTypeAdapter(BlockModelState.VariantList.class, new VariantListDeserializer());\n gsonBuilder.registerTypeAdapter(BlockModelState.Condition.class, new ConditionalDeserializer());\n this.gson = gsonBuilder.create();\n }\n T result = this.gson.fromJson(reader, objectType);\n if (result == null) {\n throw new IOException(\"Failed to parse JSON for \" + objectType.getSimpleName() + \" at \" + path);\n }\n return result;\n } finally {\n inputStream.close();\n }\n } catch (JsonSyntaxException ex) {\n System.out.println(\"Failed to parse GSON for \" + objectType.getSimpleName() + \" at \" + path + \": \" + ex.getMessage());\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n return null;\n }", "abstract Object read(@NonNull JsonReader reader) throws IOException;", "public interface JsonPaser<C> {\n public JsonPaser me();\n\n public C toJson(String json);\n\n public String toJsonString(Object object);\n\n public <T> T toObject(String json, Class<T> type);\n\n public <T> T[] toObjectArray(String json, Class<T> type);\n\n public <T> Collection<T> toObjectList(String json, Class<T> type);\n\n public <T> T toObject(String name, C c, Class<T> type);\n\n public <T> T[] toObjectArray(String name, C c, Class<T> type);\n\n public <T> Collection<T> toObjectList(String name, C c, Class<T> type);\n\n}", "@Test\n public void readSystemObjectClassAppointmentRequest() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"AppointmentRequest\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return AppointmentRequest properly\", object.getClass(), actual.getClass());\n }", "public static SMClass deserialize(JsonObject json) {\r\n\t\tSMClass table = new SMClass(\"sm\");\r\n\t\tif(json == null) return table;\r\n\t\t\r\n\t\tJsonMap map = json.toMap().getJsonMap(\"content\");\r\n\t\tfor(String key : map.keySet()) {\r\n\t\t\tSMClass clazz = table.createClass(key);\r\n\t\t\tloadClassFromJson(clazz, map.getJsonMap(key));\r\n\t\t}\r\n\t\t\r\n\t\treturn table;\r\n\t}", "@Override\r\n public Object fromBinaryJava(byte[] bytes, Class<?> clazz) {\r\n return JSON.parseObject(bytes, clazz);\r\n }", "@Override\r\n\tpublic void parseJson(JSONObject json) {\n\t\tif(json == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\ttype = getInt(json,d_type);\r\n\t\t} catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public <T> T toObject(Class<T> c) {\n if (JsonSerializable.class.isAssignableFrom(c) || String.class.isAssignableFrom(c)\n || Number.class.isAssignableFrom(c) || Boolean.class.isAssignableFrom(c)) {\n throw new IllegalArgumentException(\"c can only be a POJO class or JSONObject\");\n }\n if (JSONObject.class.isAssignableFrom(c)) {\n // JSONObject\n if (JSONObject.class != c) {\n throw new IllegalArgumentException(\"We support JSONObject but not its sub-classes.\");\n }\n return c.cast(this.propertyBag);\n } else {\n // POJO\n JsonSerializable.checkForValidPOJO(c);\n try {\n return this.getMapper().readValue(this.toJson(), c);\n } catch (IOException e) {\n throw new IllegalStateException(\"Failed to get POJO.\", e);\n }\n }\n }", "public void parseJSONData(Object JSONdata){\n\n\t}", "List<Gist> deserializeGistsFromJson(String json);", "@Test\n public void readSystemObjectClassPrescription() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"Prescription\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Prescription properly\", object.getClass(), actual.getClass());\n }", "public TestRunJsonParser(){\n }", "public JSONLoader() {}", "@Override\n public Object loadFromJson(Context context) {\n Gson gson = new Gson();\n String json = FileManager.getInstance().loadFromFile(getFileName(), context);\n if(json.equals(\"\")) {\n return null;\n }\n\n return gson.fromJson(json, MatchStorage.class);\n\n }", "public <ENTITY extends IDomainResource> ENTITY parse(final String jsonString, final Class<ENTITY> targetClass)\n throws WebApplicationException\n {\n ENTITY entity = parseWithoutValidation(jsonString, targetClass);\n validate(entity);\n\n return entity;\n }", "public static <T> T getJSONObject(final String json, final Class<T> typeReference)\n\t{\n\t\tT obj = null;\n\t\ttry\n\t\t{\n\t\t\tobj = new ObjectMapper().readValue(json, typeReference);\n\t\t}\n\t\tcatch (final Exception exception)\n\t\t{\n\t\t\tLOG.error(\"Exception occured when converting string into object. Exception message: \", exception);\n\t\t}\n\t\treturn obj;\n\t}", "@Test\n public void readUserClassSecretary() throws UnsupportedEncodingException, IOException {\n testJson = gson.toJson(Factory.createUser(\"Secretary\"));\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n IUser actual = DataHandler.readUserClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Secretary properly\", Factory.createUser(\"Secretary\").getClass(), actual.getClass());\n }", "public interface JsonConverter {\n /** Deserializes a JSON string into a Java object.\n * @param source JSON string.\n * @param type Class type.\n * @param <T> type of class to return.\n * @return A Java object representing the same information as found in the JSON string.\n */\n <T> T fromJson(String source, Class<T> type);\n\n /** Deserializes a JSON string into a Java object.\n * @param source JSON string.\n * @param type JavaType class type.\n * @param <T> type of class to return.\n * @return A Java object representing the same information as found in the JSON string.\n */\n <T> T fromJson(String source, JavaType type);\n\n /** Serializes a Java object into a JSON string.\n * @param source A Java object.\n * @param <T> type of class of the source.\n * @return A JSON string representing the data represented in the Java object.\n */\n <T> String toJson(T source);\n}", "public static <T extends IJsonObject> JsonResultObject<T> getJsonAsObjectOf(\r\n final String url,\r\n final Class<T> newClass)\r\n {\r\n JsonResultObject<T> json = new JsonResultObject<T>();\r\n json = getJson(url, json);\r\n\r\n T newObject = null;\r\n\r\n if (json.getJsonObject() != null && json.getJsonObject().length() > 0)\r\n {\r\n try\r\n {\r\n newObject = newClass.newInstance();\r\n }\r\n catch (final Exception e)\r\n {\r\n e.printStackTrace();\r\n }\r\n\r\n if (newObject != null)\r\n {\r\n newObject.initialize(json.getJsonObject());\r\n }\r\n }\r\n\r\n json.setObject(newObject);\r\n\r\n return json;\r\n }" ]
[ "0.77678186", "0.77142465", "0.7490449", "0.72541416", "0.71976453", "0.70749795", "0.70297396", "0.70113707", "0.69937456", "0.6992912", "0.69017535", "0.6884868", "0.68015945", "0.67734885", "0.6733208", "0.6725437", "0.67114794", "0.6687084", "0.65775347", "0.65659314", "0.6556849", "0.6553653", "0.6544419", "0.6510683", "0.6508793", "0.6499475", "0.6466865", "0.6466061", "0.64574087", "0.64386773", "0.6419614", "0.6415774", "0.6407737", "0.6406452", "0.6401896", "0.6390952", "0.63840497", "0.6337823", "0.6335528", "0.627066", "0.62648964", "0.6217823", "0.619675", "0.6188333", "0.61873376", "0.6181374", "0.6177712", "0.6175425", "0.6160106", "0.61591613", "0.6138481", "0.61369467", "0.6106874", "0.60834086", "0.60750246", "0.6056566", "0.60371196", "0.6034", "0.6024833", "0.60212404", "0.6018983", "0.60042745", "0.5993423", "0.59822977", "0.59689534", "0.5951402", "0.5939508", "0.59370995", "0.5895781", "0.58947235", "0.5884271", "0.58678585", "0.5862005", "0.5856311", "0.58515793", "0.58487105", "0.58287597", "0.58141774", "0.5814056", "0.5800549", "0.5788733", "0.5778418", "0.5768132", "0.5766777", "0.5765298", "0.57631946", "0.5757141", "0.57553923", "0.5738281", "0.573414", "0.5718723", "0.5717555", "0.5715638", "0.5708285", "0.5703988", "0.5698883", "0.5698223", "0.5696338", "0.5692792", "0.56925887" ]
0.82465637
0
Parses from json to collection of object's T class
<T> Collection<T> parseToCollectionObjects(Object json, Type typeClass);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "<T> T parseToObject(Object json, Class<T> classObject);", "@Override\n public List<T> deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {\n JsonElement postJsonArray = json.getAsJsonArray();\n return new Gson().fromJson(postJsonArray,typeOfT);\n }", "<T> T fromJson(String json, Class<T> type);", "private static <T> T getObjectFromJson(JsonNode dataJson) {\n Object object=null;\n if(!dataJson.has(CLASS_FIELD)) {\n return null;\n }\n /** Determine class of object and return with cast*/\n String classField=dataJson.get(CLASS_FIELD).asText();\n\n /** Lists -> All lists are converted into ArrayLists*/\n if(classField.startsWith(LIST_CLASS)) {\n try {\n String[] listType=classField.split(SEPERATOR);\n if(listType.length<2) {\n return (T) new ArrayList<>();\n }\n Class type=Class.forName(listType[1]);\n String json=dataJson.get(DATA_FIELD).toString();\n List<Object> list=new ArrayList<>();\n ArrayNode array=(ArrayNode) mapper.readTree(json);\n for(JsonNode item : array) {\n Object o=mapper.readValue(item.toString(), type);\n list.add(o);\n }\n return (T) list;\n }\n catch(JsonProcessingException | ClassNotFoundException e) {\n e.printStackTrace();\n }\n }\n /** Single objects*/\n else {\n Class type=null;\n try {\n type=Class.forName(classField);\n /** Read primitive types (String,Integer,...)*/\n if(dataJson.has(PRIMITIVE_FIELD)) {\n object=mapper.readValue(dataJson.get(PRIMITIVE_FIELD).toString(), type);\n }\n else {\n object=mapper.readValue(dataJson.toString(), type);\n }\n return (T) object;\n }\n catch(ClassNotFoundException | JsonProcessingException e) {\n e.printStackTrace();\n }\n }\n return null;\n }", "T fromJson(Object source);", "<T> T fromJson(String source, Class<T> type);", "public interface JSONParserService extends Service {\r\n\r\n /**\r\n * Parses from json to map\r\n *\r\n * @param json data\r\n * @return Map<String, Object> or null, if json equals null\r\n */\r\n Map<String, Object> parseToMap(String json);\r\n\r\n /**\r\n * Parses from map to json\r\n *\r\n * @param data map with data\r\n * @return json or null, if map equals null\r\n */\r\n String parseMapToJson(Map<String, Object> data);\r\n\r\n /**\r\n * Parses from object to json\r\n *\r\n * @param obj object that will be parsed to json\r\n * @return json or null if invalid data\r\n */\r\n String parseObjectToJson(Object obj);\r\n\r\n /**\r\n * Parses from json to object of T class\r\n *\r\n * @param json string of json with data object\r\n * @param classObject type object\r\n *\r\n * @return T object or null, if transferred incorrect data\r\n */\r\n <T> T parseToObject(Object json, Class<T> classObject);\r\n\r\n /**\r\n * Parses from json to collection of object's T class\r\n *\r\n * @param json string of json with data objects\r\n * @param typeClass type of objects collection\r\n *\r\n * @return collection of object's T class or null, if transferred incorrect data\r\n */\r\n <T> Collection<T> parseToCollectionObjects(Object json, Type typeClass);\r\n\r\n\r\n}", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic ListInfo deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context)\n\t\t\tthrows JsonParseException {\n\t\tListInfo listInfo = new ListInfo();\n\n\t\tJsonObject topMap = json.getAsJsonObject();\n\t\tlistInfo.setLastUpdate(topMap.get(LAST_UPDATE).getAsLong());\n\t\tlistInfo.setName(topMap.get(NAME).getAsString());\n\t\tlistInfo.setStatus(TimeStampedNode.Status.valueOf(topMap.get(STATUS).getAsString()));\n\t\tif (topMap.has(UNIQUE_ID)){\n\t\t\tlistInfo.setUniqueId(topMap.get(UNIQUE_ID).getAsString());\n\t\t}\n\n\t\tif (topMap.has(ITEMS)) {\n\t\t\tJsonArray itemsJson = topMap.get(ITEMS).getAsJsonArray();\n\t\t\tfor (JsonElement itemJsonElement : itemsJson) {\n\t\t\t\tItemInfo item = context.deserialize(itemJsonElement, ItemInfo.class);\n\n\t\t\t\t//Add it to the map. Note, order is lost, but since it's always alphabetical order it's ok\n\t\t\t\tlistInfo.getItems().put(item.getUniqueId(), item);\n\t\t\t}//for itemsJson\n\t\t}//if has items\n\n\t\tif (topMap.has(CATEGORIES)) {\n\t\t\tJsonArray categoriesJson = topMap.get(CATEGORIES).getAsJsonArray();\n\t\t\t//Hack needed to make it deserialize to an ArrayList correctly.\n\t\t\t//http://stackoverflow.com/questions/5554217/google-gson-deserialize-listclass-object-generic-type\n\t\t\tType listType = new TypeToken<TreeSet<CategoryInfo>>() {\n }.getType();\n\t\t\tlistInfo.setCategories((TreeSet<CategoryInfo>)context.deserialize(categoriesJson, listType));\n\t\t\t//We never want to say it's changed when reading it in.\n\t\t\tfor (CategoryInfo cat : listInfo.getCategories()) {\n\t\t\t\tcat.setChangedOnServer(false);\n\t\t\t}\n\t\t}//if has categories\n\t\t\n\t\tif (topMap.has(SELECTED_CATEGORIES)) {\n\t\t\tJsonArray selCatJson = topMap.get(SELECTED_CATEGORIES).getAsJsonArray();\n\t\t\tType listType = new TypeToken<HashSet<String>>() {\n }.getType();\n\t\t\tlistInfo.setSelectedCategories((HashSet<String>) context.deserialize(selCatJson, listType));\n\t\t}//if has selectedCategories\n\t\t\n\t\tif (topMap.has(OTHER_USER_PRIVS)) {\n\t\t\tJsonObject privsJson = topMap.get(OTHER_USER_PRIVS).getAsJsonObject();\n\t\t\tfor ( Map.Entry<String,JsonElement> privEntry : privsJson.entrySet()){\n\t\t\t\tOtherUserPrivOnList privInfo = context.deserialize(privEntry.getValue(), OtherUserPrivOnList.class);\n\t\t\t\tprivInfo.userId = privEntry.getKey();\n\t\t\t\tlistInfo.getOtherUserPrivs().put(privEntry.getKey(), privInfo);\n\t\t\t}//for categoriesJson\n\t\t}//if has selectedCategories\n\n\t\t//Note, always ignore changedOnServer when parsing.\n\t\t\n\t\treturn listInfo;\n\t}", "List<Gist> deserializeGistsFromJson(String json);", "public interface JSONDeserializer<T> {\n\t\n\t/**\n\t * Deserialize a json string\n\t * @param json object to deserialize\n\t * @return JSON representation as {@link JsonObject}\n\t */\n\tJsonObject deserialise(String json);\n\t\n\t/**\n\t * Unmarshall 'meta' section of the response\n\t * @param meta section represented as {@link JsonObject}\n\t * @return object of generic type T\n\t */\n\tT unmarshallMeta(JsonObject meta);\n\t\n\t/**\n\t * Unmarshall 'response' section of the response\n\t * @param response section represented as {@link JsonObject}\n\t * @return list of objects of generic type T\n\t */\n\tCollection<T> unmarshallResponse(JsonObject response);\n\n}", "static <T extends JSONSerializable> ArrayList<T> arrayListDeserialize(String json, Class<T> type) throws Exception {\n JSONArray serializableArrayList = new JSONArray(json);\n ArrayList<T> resultArrayList = new ArrayList<>();\n\n for(int idx = 0; idx < serializableArrayList.length(); idx++) {\n T result = type.newInstance();\n result.jsonDeserialize(serializableArrayList.getString(idx));\n resultArrayList.add(result);\n }\n\n return resultArrayList;\n }", "public native Object parse( Object json );", "public static Object fromJSON(quark.reflect.Class cls, Object result, io.datawire.quark.runtime.JSONObject json) {\n if (((json)==(null) || ((Object)(json) != null && ((Object) (json)).equals(null))) || ((json).isNull())) {\n return null;\n }\n Integer idx = 0;\n if ((result)==(null) || ((Object)(result) != null && ((Object) (result)).equals(null))) {\n if (((cls).name)==(\"quark.String\") || ((Object)((cls).name) != null && ((Object) ((cls).name)).equals(\"quark.String\"))) {\n String s = (json).getString();\n return s;\n }\n if (((cls).name)==(\"quark.float\") || ((Object)((cls).name) != null && ((Object) ((cls).name)).equals(\"quark.float\"))) {\n Double flt = (json).getNumber();\n return flt;\n }\n if (((cls).name)==(\"quark.int\") || ((Object)((cls).name) != null && ((Object) ((cls).name)).equals(\"quark.int\"))) {\n Integer i = ((int) Math.round((json).getNumber()));\n return i;\n }\n if (((cls).name)==(\"quark.bool\") || ((Object)((cls).name) != null && ((Object) ((cls).name)).equals(\"quark.bool\"))) {\n Boolean b = (json).getBool();\n return b;\n }\n result = (cls).construct(new java.util.ArrayList(java.util.Arrays.asList(new Object[]{})));\n }\n if (((cls).name)==(\"quark.List\") || ((Object)((cls).name) != null && ((Object) ((cls).name)).equals(\"quark.List\"))) {\n java.util.ArrayList<Object> list = (java.util.ArrayList<Object>) (result);\n while ((idx) < ((json).size())) {\n (list).add(Functions.fromJSON(((cls).getParameters()).get(0), null, (json).getListItem(idx)));\n idx = (idx) + (1);\n }\n return list;\n }\n java.util.ArrayList<quark.reflect.Field> fields = (cls).getFields();\n while ((idx) < ((fields).size())) {\n quark.reflect.Field f = (fields).get(idx);\n idx = (idx) + (1);\n if (Boolean.valueOf(((f).name).startsWith(\"_\"))) {\n continue;\n }\n if (!(((json).getObjectItem((f).name)).isNull())) {\n ((io.datawire.quark.runtime.QObject) (result))._setField((f).name, Functions.fromJSON((f).getType(), null, (json).getObjectItem((f).name)));\n }\n }\n return result;\n }", "public static <T> T pasarAObjeto(String json, Class<T> tipo) {\r\n try {\r\n ObjectMapper mapper = getBuilder().build();\r\n return mapper.readValue(json, tipo);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n return null;\r\n }", "public static <T> List<T> convertJsonStringToCollection(final String strJson, final Class<T> klass) {\n final JsonArray array = JsonParser.parseString(strJson).getAsJsonArray();\n final Gson g = new Gson();\n final List<T> lst = new ArrayList<>();\n for (final JsonElement json : array) {\n final T entity = g.fromJson(json, klass);\n lst.add(entity);\n }\n return lst;\n }", "<T> T fromJson(String source, JavaType type);", "T deserialize(JsonObject json, DynamicDeserializerFactory deserializerFactory) throws ClassNotFoundException;", "@Override\n public void parse(String json) {\n JSONObject object = new JSONObject(json);\n id = object.getInt(\"dataset id\");\n name = object.getString(\"dataset name\");\n maxNumOfLabels = object.getInt(\"maximum number of labels per instance\");\n\n JSONArray labelsJSON = object.getJSONArray(\"class labels\");\n labels = new ArrayList<>();\n for (int i = 0; i < labelsJSON.length(); i++) {\n labels.add(new Label(labelsJSON.getJSONObject(i).toString()));\n }\n\n JSONArray instancesJSON = object.getJSONArray(\"instances\");\n instances = new ArrayList<>();\n for (int i = 0; i < instancesJSON.length(); i++) {\n instances.add(new Instance(instancesJSON.getJSONObject(i).toString()));\n }\n }", "public static <T> T fromJson(String json, Class<T> type)\n {\n return g.fromJson(json, type);\n }", "public <T> T fromJson(String json, Class<T> clazz) {\n return getGson().fromJson(json, clazz);\n }", "private <T> T getObjectFromJsonObject(JSONObject j, Class<T> clazz) throws IOException {\n ObjectMapper mapper = new ObjectMapper();\n T t = null;\n t = mapper.readValue(j.toString(), clazz);\n\n return t;\n }", "List<GistComment> deserializeCommentsFromJson(String json);", "public static <T> T parseJSON(final String jsonString, Class<T> type) {\r\n\t\tT retObject = null;\r\n\t\ttry {\r\n\t\t\tretObject = PARSER.parse(jsonString, type);\r\n\t\t} catch (ParseException ex) {\r\n\t\t\tLOGGER.log(Level.WARNING, \"JSON_UTIL:Error in de-serializing to object\", ex);\r\n\t\t\tretObject = null;\r\n\t\t}\r\n\t\treturn retObject;\r\n\t}", "public static <T> T loadJson(String content, Class<T> valueType){\n return (T)JsonMapper.fromJsonString(content, valueType);\n }", "protected void lateParse(JsonObject object, Class<T> resultClass) {\n JsonArray array = object.getAsJsonArray(\"result\");\n for (int i = 0; i < array.size(); i++)\n result.add(constructInstanceFromJson(resultClass, array.get(i).getAsJsonObject()));\n }", "public <T> Collection<T> getCollection(String propertyName, Class<T> c) {\n if (this.propertyBag.has(propertyName) && !this.propertyBag.isNull(propertyName)) {\n JSONArray jsonArray = this.propertyBag.getJSONArray(propertyName);\n Collection<T> result = new ArrayList<T>();\n boolean isBaseClass = false;\n boolean isEnumClass = false;\n boolean isJsonSerializable = false;\n\n // Check once.\n if (Number.class.isAssignableFrom(c) || String.class.isAssignableFrom(c)\n || Boolean.class.isAssignableFrom(c) || Object.class == c) {\n isBaseClass = true;\n } else if (Enum.class.isAssignableFrom(c)) {\n isEnumClass = true;\n } else if (JsonSerializable.class.isAssignableFrom(c)) {\n isJsonSerializable = true;\n } else {\n JsonSerializable.checkForValidPOJO(c);\n }\n\n for (int i = 0; i < jsonArray.length(); i++) {\n if (isBaseClass) {\n // Number, String, Boolean \n result.add(c.cast(jsonArray.get(i)));\n } else if (isEnumClass) {\n try {\n result.add(c.cast(c.getMethod(\"valueOf\", String.class).invoke(null,\n String.class.cast(jsonArray.get(i)))));\n } catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException\n | NoSuchMethodException | SecurityException | JSONException e) {\n throw new IllegalStateException(\"Failed to create enum.\", e);\n }\n } else if (isJsonSerializable) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n // JsonSerializable\n try {\n result.add(c.getConstructor(String.class).newInstance(jsonObject.toString()));\n } catch (InstantiationException | IllegalAccessException | IllegalArgumentException\n | InvocationTargetException | NoSuchMethodException | SecurityException e) {\n throw new IllegalStateException(\"Failed to instantiate class object.\", e);\n }\n } else {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n // POJO\n try {\n result.add(this.getMapper().readValue(jsonObject.toString(), c));\n } catch (IOException e) {\n throw new IllegalStateException(\"Failed to get POJO.\", e);\n }\n }\n }\n\n return result;\n }\n\n return null;\n }", "Gist deserializeGistFromJson(String json);", "static <T extends JSONSerializable> T deserialize(String json, Class<T> type) throws Exception {\n T result = type.newInstance();\n result.jsonDeserialize(json);\n return result;\n }", "public static <T> T fromJSON(final String json, final Class<T> clazz) {\n return gson.fromJson(json, clazz);\n }", "<T> T readJson(FsPath path, Class<T> clazz);", "private <T> T convert(String json, Type resultObject) {\n\t\tGson gson = new GsonBuilder().create();\n\t\treturn gson.fromJson(json, resultObject);\n\t}", "public static <T> List<T> convertToList(final String jsonString, final Class<T> clazz) {\n if (Strings.isNullOrEmpty(jsonString)) {\n return new ArrayList<>();\n }\n try {\n return OBJ_MAPPER.readValue(jsonString, OBJ_MAPPER.getTypeFactory().constructType(List.class, clazz));\n } catch (IOException e) {\n throw new RuntimeException(\"parse to object error\", e);\n }\n }", "private <T> List<T> getListFromJsonArray(Class<T> clazz, JSONArray response, CustomRepoListListener<T> listener) throws JSONException, IOException {\n List<T> t = new ArrayList<T>();\n int c = 0;\n\n while (c < response.length()) {\n\n t.add(getObjectFromJsonObject(response.getJSONObject(c), clazz));\n\n c++;\n }\n return t;\n }", "public static <T> T loadJson(String input, Class<T> classOfT) {\n Gson gson = new GsonBuilder().create();\n return gson.fromJson(input, classOfT);\n }", "public abstract void fromJson(JSONObject jsonObject);", "public static <T> List<T> getTestList(String rs, Class<T> clazz) throws Exception {\n return JSON.parseArray(readSourceFile(rs), clazz);\n }", "public abstract Object deserialize(Object object);", "public static <T> T mapJsonToObject(String json, Class<T> classType) {\n\t\tT obj = null;\n\t\tif (StringUtils.isBlank(json)) {\n\t\t\treturn null;\n\t\t}\n\t\ttry {\n\t\t\tobj = jsonMapper.readValue(json, classType);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"error mapJsonToObject: \" + e.getMessage());\n\t\t}\n\t\treturn obj;\n\t}", "public static <T> T getTestObject(String rs, Class<T> clazz) throws Exception {\n return JSON.parseObject(readSourceFile(rs), clazz);\n }", "public static <T> List<T> json2list(String jsonArrayStr, Class<T> clazz)\n throws Exception {\n List<Map<String, Object>> list = objectMapper.readValue(jsonArrayStr,\n new TypeReference<List<T>>() {\n });\n List<T> result = new ArrayList<T>();\n for (Map<String, Object> map : list) {\n result.add(map2pojo(map, clazz));\n }\n return result;\n }", "public static <T> List<T> jsonToList(String json, Class<T> elementType) {\n\t\tif(gson == null) {\n\t\t\tgson = new Gson();\n\t\t}\n\t\t\n\t\tType type = new MyParamType(List.class, new Class[]{elementType});\n\t\t\n\t\treturn gson.fromJson(json, type);\n\t}", "Map<String, Object> parseToMap(String json);", "protected <T> Object fromJson(String jsonString, Class<T> classInstance) {\n\n\t\tSystem.out.println(\"jsonString = \" + jsonString);\n\t\treturn gson.fromJson(jsonString, classInstance);\n\n\t}", "public <T> T fromJson(String json, Type type) {\n return getGson().fromJson(json, type);\n }", "public interface JsonParser {\n\n /**\n * convert string to POJO\n *\n * @param jsonString - string to convert to POJO\n * @param classType - POJO Type / Class Type to use for the deserialization\n * @param <T> the returned desirialized POJO\n * @return desiarilized POJO\n */\n <T> T toJsonPOJO(String jsonString, Class<T> classType);\n\n /**\n * convert from POJO to json string\n * @param data POJO to convert to json String\n * @return json string\n */\n String toJSONString(Object data);\n}", "private void parseObjectSubclass(JSONObject x) {\n //Get BalanceOperation Id\n int balanceId = Integer.parseInt((String) x.get(\"balanceId\"));\n //Get description\n String description = (String) x.get(\"description\");\n //Get money\n double money = Double.parseDouble((String) x.get(\"money\"));\n //Get date\n LocalDate date = LocalDate.parse((String) x.get(\"date\"));\n\n /*//based on the \"sub\" field, present only in JSON version of the object, instantiates different subclasses\n String sub = (String) x.get(\"sub\");*/\n if(description.equals(\"Order\")){\n\n String productCode = (String) x.get(\"productCode\");\n double pricePerUnit = Double.parseDouble((String) x.get(\"pricePerUnit\"));\n int quantity = Integer.parseInt((String) x.get(\"quantity\"));\n String status = (String) x.get(\"status\");\n\n //building order with the full constructor\n OrderImpl order = new OrderImpl(balanceId, description, money, date, productCode, quantity, pricePerUnit, status);\n //adding the loaded order back into the operationsMap checking for duplicates\n if(!this.operationsMap.containsKey(balanceId)){\n this.operationsMap.put(balanceId, order);\n if( status.equals(\"PAYED\") || status.equals(\"COMPLETED\")){this.changeBalance(money);}\n }\n }\n else if(description.equals(\"SaleTransaction\")){\n\n double discountRate = Double.parseDouble((String) x.get(\"discountRate\"));\n String status = (String) x.get(\"status\");\n //JSON array to iterate over TicketEntries \"entries\"\n JSONArray jEntries = (JSONArray) x.get(\"entries\");\n //loading TicketEntries list of the sale transaction\n List<TicketEntry> entries = new ArrayList<>();\n jEntries.forEach(e -> addEntry(entries, (JSONObject) e));\n\n //JSON array to iterate over RFIDS of sold products \"rfids\"\n JSONArray jRfids = (JSONArray) x.get(\"rfids\");\n if(jRfids==null){\n jRfids = new JSONArray();\n jRfids.clear();\n }\n //loading RIFDS list of the sale transaction\n ArrayList<ProductRfid> rfids = new ArrayList<>();\n jRfids.forEach(e -> addRfid(rfids, (JSONObject) e));\n\n //building saleTransaction with the full constructor\n SaleTransactionImplementation sale = new SaleTransactionImplementation(balanceId,description,money,date,discountRate,status,entries,rfids);\n //adding the sale transaction back into the operationsMap checking for duplicates\n if(!this.operationsMap.containsKey(balanceId)){\n this.operationsMap.put(balanceId, sale);\n if( status.equals(\"PAYED\") ){this.changeBalance(money);}\n }\n }\n else if(description.equals(\"ReturnTransaction\")){\n String status = (String) x.get(\"status\");\n Integer saleId = Integer.parseInt((String) x.get(\"saleId\"));\n //JSON array to iterate over TicketEntries \"entries\"\n double saleDiscount = Double.parseDouble((String) x.get(\"saleDiscount\"));\n JSONArray jEntries = (JSONArray) x.get(\"entries\");\n //loading TicketEntries list of the sale transaction\n List<TicketEntry> entries = new ArrayList<>();\n jEntries.forEach(e -> addEntry(entries, (JSONObject) e));\n\n //JSON array to iterate over RFIDS of sold products \"rfids\"\n JSONArray jRfids = (JSONArray) x.get(\"rfids\");\n if(jRfids==null){\n jRfids = new JSONArray();\n jRfids.clear();\n }\n //loading RIFDS list of the sale transaction\n ArrayList<ProductRfid> rfids = new ArrayList<>();\n jRfids.forEach(e -> addRfid(rfids, (JSONObject) e));\n\n //building returnTransaction with the full constructor\n ReturnTransaction retTrans = new ReturnTransaction(balanceId,description,money,date,saleId,status,entries,saleDiscount,rfids);\n //adding the Return Transaction back into the operationsMap checking for duplicates\n if(!this.operationsMap.containsKey(balanceId)){\n this.operationsMap.put(balanceId,retTrans);\n }\n }\n else if(description.equals(\"Credit\") || description.equals(\"Debit\")){\n //Simple Balance Update Operation (credit or debit)\n BalanceOperation operation = new BalanceOperationImpl(balanceId,description,money,date);\n //adding the operation (credit or debit) back into the operationsMap checking for duplicates\n if(!this.operationsMap.containsKey(balanceId)){\n this.operationsMap.put(balanceId, operation);\n this.changeBalance(money);\n }\n }\n\n\n }", "public interface JsonPaser<C> {\n public JsonPaser me();\n\n public C toJson(String json);\n\n public String toJsonString(Object object);\n\n public <T> T toObject(String json, Class<T> type);\n\n public <T> T[] toObjectArray(String json, Class<T> type);\n\n public <T> Collection<T> toObjectList(String json, Class<T> type);\n\n public <T> T toObject(String name, C c, Class<T> type);\n\n public <T> T[] toObjectArray(String name, C c, Class<T> type);\n\n public <T> Collection<T> toObjectList(String name, C c, Class<T> type);\n\n}", "public static SMClass deserialize(JsonObject json) {\r\n\t\tSMClass table = new SMClass(\"sm\");\r\n\t\tif(json == null) return table;\r\n\t\t\r\n\t\tJsonMap map = json.toMap().getJsonMap(\"content\");\r\n\t\tfor(String key : map.keySet()) {\r\n\t\t\tSMClass clazz = table.createClass(key);\r\n\t\t\tloadClassFromJson(clazz, map.getJsonMap(key));\r\n\t\t}\r\n\t\t\r\n\t\treturn table;\r\n\t}", "GistUser deserializeUserFromJson(String json);", "public static <T> T fromJson(final String jsonString, final Class<T> clazz) {\n\t\treturn gson.fromJson(jsonString, clazz);\n\t}", "public static List<EntityRef> readJsonToItems(String json){\r\n\t\tif(json == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\treturn EntityFactory.readFromJSONArrayString(json, EntityRef.class);\r\n\t\t} catch (JSONObjectAdapterException e) {\r\n\t\t\tthrow new IllegalArgumentException(e);\r\n\t\t}\r\n\t}", "@Override\n public ModelSchema deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {\n\n ModelSchema result = new ModelSchema();\n JsonObject root = json.getAsJsonObject();\n\n String name = root.get(\"name\").getAsString();\n result.setName(name);\n\n String version = root.get(\"version\").getAsString();\n result.setVersion(version);\n\n JsonArray resources = root.get(\"resources\").getAsJsonArray();\n ResourceSchema[] resourceSchemas = new ResourceSchema[resources.size()];\n for(int i = 0; i < resources.size(); i++)\n {\n JsonElement resource = resources.get(i);\n resourceSchemas[i] = context.deserialize(resource, ResourceSchema.class);\n }\n result.setResources(resourceSchemas);\n\n JsonArray selectors = root.get(\"selectors\").getAsJsonArray();\n SelectorSchema[] selectorSchemas = new SelectorSchema[selectors.size()];\n for(int i = 0; i < selectors.size(); i++)\n {\n JsonElement selector = selectors.get(i);\n selectorSchemas[i] = context.deserialize(selector, SelectorSchema.class);\n }\n result.setSelectors(selectorSchemas);\n\n JsonArray links = root.get(\"links\").getAsJsonArray();\n LinkSchema[] linkSchemas = new LinkSchema[links.size()];\n for(int i = 0; i < links.size(); i++)\n {\n JsonElement link = links.get(i);\n linkSchemas[i] = context.deserialize(link, LinkSchema.class);\n }\n result.setLinks(linkSchemas);\n\n return result;\n }", "public void deserialize(JsonObject src);", "public interface JsonDeserializer {\n\n /**\n * Parses and deserializes a Gist object from the provided JSON text. This\n * Gist object does not contain all comments on said Gist, as obtaining a\n * given Gist's comments requires a completely separate Github API call.\n *\n * @param json JSON text to parse\n * @return Gist object with related attributes and objects\n */\n Gist deserializeGistFromJson(String json);\n\n /**\n * Parses and deserializes a List of Gist objects from the provided JSON\n * text. If there is an error with parsing the JSON, null is returned.\n *\n * @param json JSON text to parse\n * @return List of Gist objects\n */\n List<Gist> deserializeGistsFromJson(String json);\n\n /**\n * Parses and deserializes a GistComment object from the provided JSON text.\n *\n * @param json JSON text to parse\n * @return GistComment corresponding to some Gist\n */\n GistComment deserializeCommentFromJson(String json);\n\n /**\n * Parses and deserializes a List of GistComment objects from the provided\n * JSON text. If there is an error with parsing the JSON, null is returned.\n *\n * @param json JSON text to parse\n * @return List of GistComment objects\n */\n List<GistComment> deserializeCommentsFromJson(String json);\n\n /**\n * Parses and deserializes an expanded GistUser object from the provided\n * JSON text. This user contains all fields contained in the \"user\" objects\n * found in standard Gist JSON responses, in addition to more fields found\n * in User JSON responses. If certain fields are present, namely\n * \"private_gists\" and \"total_private_repos\", then this must be the\n * currently authenticated user.\n *\n * @param json JSON text to parse\n * @return GistUser corresponding to some Github user\n */\n GistUser deserializeUserFromJson(String json);\n\n}", "<T> T toJsonPOJO(String jsonString, Class<T> classType);", "public Object parseJsonToObject(String response, Class<?> modelClass) {\n\n try {\n return gson.fromJson(response, modelClass);\n } catch (Exception ex) {\n ex.printStackTrace();\n return null;\n }\n }", "public void parse(T obj) {\n }", "@Override\n public Object convertJsonToObject(String content) {\n try {\n Map<String, EventDataValue> data = reader.readValue(content);\n\n return convertEventDataValuesMapIntoSet(data);\n } catch (IOException e) {\n throw new IllegalArgumentException(e);\n }\n }", "public static Question[] parseQuestionsFromJSON(Gson gson, String json) throws ClassCastException {\n Map<String, Object> document = (Map<String, Object>) gson.fromJson(json, Map.class);\n if (!document.containsKey(\"questions\")) {\n throw new ClassCastException(\"Invalid template\");\n }\n ArrayList<Map<String, Object>> questions = (ArrayList<Map<String, Object>>) document.get(\"questions\");\n ArrayList<Question> questionObjs = new ArrayList<>();\n if (questions.size() == 0) {\n throw new ClassCastException(\"Invalid template\");\n }\n boolean valid = true;\n for (Map<String, Object> question : questions) {\n Document d = new Document(question); // Convert it to a Document so we can cast automatically (and throw\n // ClassCastException on failure)\n if (!d.containsKey(\"type\") || !d.containsKey(\"title\") || !(d.get(\"type\") instanceof String)\n || !(d.get(\"title\") instanceof String)) {\n valid = false;\n break;\n }\n // All questions must have a type and a title\n String type = d.getString(\"type\");\n String title = d.getString(\"title\");\n switch (type) {\n case \"open\":\n questionObjs.add(new OpenQuestion(title, new QuestionResponse[0], new Trend[0], 0));\n break;\n case \"numeric\":\n if (!d.containsKey(\"min\") || !d.containsKey(\"max\")) {\n valid = false;\n break;\n }\n int min = d.getDouble(\"min\").intValue(); // Numbers are always detected as doubles\n int max = d.getDouble(\"max\").intValue();\n questionObjs\n .add(new NumericQuestion(title, new Stats(0, 0, 0, 0), min, max, 0, 0, 0, new Point[0]));\n break;\n case \"choice\":\n if (!d.containsKey(\"choices\") || !d.containsKey(\"allowMultiple\")) {\n valid = false;\n break;\n }\n ArrayList<String> choices = (ArrayList<String>) d.getList(\"choices\", String.class);\n if (choices.size() == 0) {\n valid = false;\n break;\n }\n ArrayList<Option> choiceObjs = new ArrayList<Option>();\n ArrayList<String> choicesUsed = new ArrayList<String>(); // Don't allow multiple occurences of the\n // same choice.\n for (int i = 0; i < choices.size(); i++) {\n String c = choices.get(i);\n if (choicesUsed.contains(c)) {\n valid = false;\n break;\n }\n if (c != null && c.length() >= 1) {\n choiceObjs.add(new Option(c, i));\n choicesUsed.add(c);\n }\n }\n if (!valid)\n break;\n boolean multiple = d.getBoolean(\"allowMultiple\");\n questionObjs.add(new ChoiceQuestion(title, choiceObjs.toArray(new Option[0]), multiple));\n break;\n default:\n valid = false;\n break;\n }\n if (!valid)\n break;\n }\n if (!valid) {\n throw new ClassCastException(\"Invalid template\");\n }\n return questionObjs.toArray(new Question[0]);\n }", "public <T> T deserialize(String jsonString, Class<T> valueType) {\n\t\tlong time = System.currentTimeMillis();\n\t\ttry {\n\t\t\tlogger.debug(\"Deserializer Json Instance: \" + this);\n\t\t\treturn mapper.readValue(jsonString, valueType);\n\t\t} catch (IOException ex) {\n\t\t\tlogger.error(\"Error deserializing the given json: \", ex);\n\t\t} finally {\n\t\t\tlogger.info(\"Deserialize in \" + (System.currentTimeMillis() - time) + \" ms.\");\n\t\t}\n\t\treturn null;\n\t}", "private static FluidIngredient deserializeObject(JsonObject json) {\n if (json.entrySet().isEmpty()) {\n return EMPTY;\n }\n\n // fluid match\n if (json.has(\"name\")) {\n // don't set both, obviously an error\n if (json.has(\"tag\")) {\n throw new JsonSyntaxException(\"An ingredient entry is either a tag or an fluid, not both\");\n }\n\n // parse a fluid\n return FluidMatch.deserialize(json);\n }\n\n // tag match\n if (json.has(\"tag\")) {\n return TagMatch.deserialize(json);\n }\n\n throw new JsonSyntaxException(\"An ingredient entry needs either a tag or an fluid\");\n }", "public static <T> T jsonToBean(String json, Class<T> clazz, boolean isSnakeCase) {\n ObjectMapper mapper = new ObjectMapper();\n // mapper的configure方法可以设置多种配置(例如:多字段 少字段的处理)\n //mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);\n\n if (isSnakeCase) {\n mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE);\n }\n\n try {\n return mapper.readValue(json, clazz);\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "public void deserialize() {\n\t\t\n\t}", "protected MList readList(JSONObject json) throws JSONException, TypeException {\n System.err.println(\"readList json = \" + json);\n\n\t// Read the size\n\tint listSize = json.getInt(\"size\");\n\n\t// Read the type\n String typeStr = json.getString(\"type\");\n ProbeAttributeType type = decodeType(typeStr);\n\n\t// Allocate a list of the right type\n\tMList list = new DefaultMList(type);\n\n JSONArray array = json.getJSONArray(\"list\");\n\n\t// now add all the values to the list\n\tfor (int e=0; e < listSize; e++) {\n\t // decode a value, \n\t Object value = decodeValue(type, array.get(e));\n\n\t list.add(value);\n\t}\n\n\treturn list;\n }", "TorrentJsonParser getJsonParser();", "public @Nullable <T> T fromJson(@Nullable String jsonString, @NonNull Class<T> clazz) {\n return gson.fromJson(jsonString, clazz);\n }", "public interface RandomDeserializer<T> {\n\n /**\n * This is where all the magic happens, given a json part (only the useful part of the json for the specific deserializer) the deserializer is able to create the required object.\n *\n * @author andreahuang\n *\n */\n T deserialize(JsonObject json, DynamicDeserializerFactory deserializerFactory) throws ClassNotFoundException;\n}", "@Override\n\t\tpublic abstract List<T> parse(Object valueToParse, Type elementType);", "private static ArrayList<Classification> getClassifications(HttpResponse<String> response){\n\t\tArrayList<Classification> classifications;\n\t\ttry {\n\t\t\tclassifications = new ObjectMapper().readValue(response.body(), new TypeReference<ArrayList<Classification>>(){});\n\t\t\treturn classifications;\n\t\t} catch (JsonMappingException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (JsonProcessingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//return null;\n\t\treturn new ArrayList<Classification>();\n\t}", "public abstract T parse(Object valueToParse, Type type);", "@Override\n \tpublic Object parseJson(JsonNode jsonNode) {\n \t\tif(jsonNode == null || jsonNode.isNull())\n \t\t\treturn null;\n \t\tList<Object> valList = new ArrayList<Object>();\n \t\t\n \t\tfor(int i=0; i< fieldNames.size(); ++i) {\n \t\t\tString key = fieldNames.get( i);\n \t\t\tif( this.convertFromCamelCase) {\n \t\t\t\tkey = FromJsonUDF.ToCamelCase(key);\n \t\t\t}\n \t\t\tJsonNode valNode = jsonNode.get( key);\n \t\t\tInspectorHandle valHandle = handleList.get(i);\n \t\t\t\n \t\t\tObject valObj = valHandle.parseJson(valNode);\n \t\t\tvalList.add( valObj);\n \t\t}\n \t\t\n \t\treturn valList;\n \t}", "public interface FrequentlyRelatedItemHttpResponseParser {\n public FrequentlyRelatedItemSearchResponse[] parse(String json);\n}", "public interface Parsable {\n\n <T, E> List<E> parseObjects(Class<? extends T> entityClass);\n\n}", "private static ArrayList<ParsedRestaurant> parseResults(StringBuilder jsonResults){\r\n\t\tboolean validObject = true;\r\n\t\tArrayList<ParsedRestaurant> resultsList = null;\r\n\t\ttry{ \r\n\t\t\tJSONObject jsonObj = new JSONObject(jsonResults.toString());\r\n\r\n\t\t\t//CREATES results from array with tag \"results\" \r\n\t\t\tJSONArray prediJsonArr = jsonObj.getJSONArray(\"results\");\r\n\r\n\t\t\tif(prediJsonArr!=null){\r\n\t\t\t\tresultsList = new ArrayList<ParsedRestaurant>();\r\n\t\t\t\tfor(int i=0; i<prediJsonArr.length(); i++){\r\n\t\t\t\t\tJSONObject objInArr = prediJsonArr.getJSONObject(i);\r\n\r\n\t\t\t\t\t// Create Restaurant instance\r\n\t\t\t\t\tParsedRestaurant newRest = new ParsedRestaurant();\r\n\t\t\t\t\tnewRest.setName(objInArr.getString(\"name\"));\r\n\t\t\t\t\tnewRest.setId(objInArr.getString(\"place_id\"));\r\n\t\t\t\t\tif(objInArr.has(\"rating\"))\r\n\t\t\t\t\t\tnewRest.setRating(objInArr.getDouble(\"rating\"));\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tnewRest.setRating(-1);\r\n\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * Here we can check for types and remove those who\r\n\t\t\t\t\t * are not of interest, that we have saved in UNWANTED_TYPES list.\r\n\t\t\t\t\t * else we set the id to 0\r\n\t\t\t\t\t */\r\n\t\t\t\t\tJSONArray taggedTypes = objInArr.getJSONArray(\"types\");\r\n\t\t\t\t\tfor(int j=0; j<taggedTypes.length(); j++){\r\n\t\t\t\t\t\tif(!UNWANTED_TYPES.contains(taggedTypes.getString(j)))\r\n\t\t\t\t\t\t\tnewRest.addTypes(taggedTypes.getString(j));\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\tvalidObject = false;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * if the place id is not 0, the object is valid to add\r\n\t\t\t\t\t * else we don't add it.\r\n\t\t\t\t\t */\r\n\t\t\t\t\tif(validObject){\r\n\t\t\t\t\t\t//Create location instance\r\n\t\t\t\t\t\tParsedLocation loc = new ParsedLocation();\r\n\t\t\t\t\t\tloc.setLattitude(objInArr.getJSONObject(\"geometry\").getJSONObject(\"location\").getDouble(\"lat\"));\r\n\t\t\t\t\t\tloc.setLongitude(objInArr.getJSONObject(\"geometry\").getJSONObject(\"location\").getDouble(\"lng\"));\r\n\t\t\t\t\t\tif(objInArr.has(\"vicinity\"))\r\n\t\t\t\t\t\t\tloc.setAddress(objInArr.getString(\"vicinity\")); //VICINITY OR FORMATTED ADDRESS\r\n\t\t\t\t\t\telse if (objInArr.has(\"formatted_address\"))\r\n\t\t\t\t\t\t\tloc.setAddress(objInArr.getString(\"formatted_address\"));\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tloc.setAddress(\"not avaliable..\");\r\n\t\t\t\t\t\tnewRest.setLocation(loc);\r\n\t\t\t\t\t\tresultsList.add(newRest);\r\n\t\t\t\t\t\tLogger.debug(\"Pared restaurant: \"+ newRest.getId() +\" \"+ newRest.getName());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tvalidObject = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t/*\r\n\t\t\t * the time from the JSON results is delivered to when the next page is\r\n\t\t\t * created is slightly delayed, this allows the method to sleep for 1 second\r\n\t\t\t * and then runs search for the nextPage \r\n\t\t\t * \r\n\t\t\t * UNCOMMENT TO ALLOW +20 PLACES TO BE FETCHED\r\n\t\t\t */\r\n\t\t\ttry {\r\n\t\t\t\tTimeUnit.MILLISECONDS.sleep(2000);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\tSystem.out.println(\"TIMEUNIT REST ERROR \"+ e);\r\n\t\t\t}\r\n\r\n\t\t\tString nextPageToken = null;\r\n\r\n\t\t\tif (jsonObj.has(NEXT_PAGE_TOKEN)) {\r\n\t\t\t\tnextPageToken = jsonObj.getString(\"next_page_token\");\r\n\t\t\t\tresultsList.addAll(parseResults(searchNextPage(nextPageToken)));\r\n\t\t\t}\r\n\t\t}catch(JSONException e){\r\n\t\t\tSystem.out.println(\"JSON ERROR \"+ e);\r\n\t\t}\r\n\t\treturn resultsList;\r\n\t}", "public void parseJSONData(Object JSONdata){\n\n\t}", "public static <T> T json2pojo(String jsonStr, Class<T> clazz)\n throws Exception {\n return objectMapper.readValue(jsonStr, clazz);\n }", "interface JSONParser<DataType>\n{\n DataType Parse(JSONObject jsonObject);\n}", "public void parseProductFromJson(String jsonData) { \r\n\t\t \r\n Type typeList = new TypeToken<ArrayList<Product>>(){}.getType(); \r\n Gson gson = new Gson(); \r\n ArrayList<Product> products = gson.fromJson(jsonData, typeList); \r\n for(Product product:products) { \r\n System.out.println(\"name---------->\" + product.getpName()); \r\n System.out.println(\"price---------->\" + product.getpPrice()); \r\n } \r\n }", "public static ArrayList<Nutritionix> parse(String json) throws JSONException {\n ArrayList<Nutritionix> nutritionixs = new ArrayList<>();\n\n //JSONArray children = new JSONObject(json).getJSONObject(\"data\").getJSONArray(\"children\");\n //JSONArray children = new JSONObject(json).getJSONObject(\"data\").getJSONArray(\"children\");\n JSONArray hits = new JSONObject(json).getJSONArray(\"hits\");\n\n\n for (int i = 0; i < hits.length(); i++) {\n JSONObject childObject = hits.getJSONObject(i);\n JSONObject childData = childObject.getJSONObject(\"fields\");\n\n //String url = childData.getString(\"item_name\");\n //String title = childData.getString(\"title\");\n String productname = childData.getString(\"item_name\");\n String calories = childData.getString(\"nf_calories\");\n String fats = childData.getString(\"nf_total_fat\");\n\n nutritionixs.add(new Nutritionix(productname,calories,fats));\n }\n return nutritionixs;\n }", "@Override\n public BitfinexModel deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException\n {\n JsonElement bitfinexModel = json.getAsJsonObject();\n\n /**\n * Deserialize the JsonElement as GSON\n */\n return new Gson().fromJson(bitfinexModel, BitfinexModel.class);\n }", "ArrayList<Tour> parsearResultado(String JSONstr) throws JSONException {\n ArrayList<Tour> tours = new ArrayList<>();\n JSONArray jsonTours = new JSONArray(JSONstr);\n if (jsonTours.length()!=0) {\n for (int i = 0; i < jsonTours.length(); i++) {\n JSONObject jsonResultado = jsonTours.getJSONObject(i);\n int jsonId = jsonResultado.getInt(\"Id\");\n String jsonNombre = jsonResultado.getString(\"Nombre\");\n String jsonUbicacion = jsonResultado.getString(\"Ubicacion\");\n String jsonFoto = jsonResultado.getString(\"FotoURL\");\n String jsonLikes = jsonResultado.getString(\"Likes\");\n String jsonDescripcion = jsonResultado.getString(\"Descripcion\");\n\n JSONObject jsonResultadoUsuario = jsonResultado.getJSONObject(\"Usuario\");\n int idUsuario = jsonResultadoUsuario.getInt(\"Id\");\n String nomUsuario = jsonResultadoUsuario.getString(\"Nombre\");\n String fotoUsuario = jsonResultadoUsuario.getString(\"FotoURL\");\n\n Usuario usu = new Usuario(nomUsuario, fotoUsuario, idUsuario, \"\", null, null);\n\n gustosparc = new ArrayList<>();\n JSONArray jsongustos = jsonResultado.getJSONArray(\"Gustos\");\n for (int j = 0; j < jsongustos.length(); j++) {\n JSONObject jsonresultadoGustos = jsongustos.getJSONObject(j);\n int jsonIdGusto = jsonresultadoGustos.getInt(\"Id\");\n String jsonnombregustos = jsonresultadoGustos.getString(\"Nombre\");\n Gusto gus = new Gusto(jsonIdGusto, jsonnombregustos);\n gustosparc.add(gus);\n }\n\n Tour t = new Tour(jsonNombre, jsonDescripcion, jsonFoto, jsonUbicacion, jsonId, jsonLikes, usu, null, gustosparc);\n tours.add(t);\n }\n }\n return tours;\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic static<T> T createObjectFromJSON(final JSONObject json) throws JSONException {\n\t\tif(json.has(\"type\")) {\n\t\t\treturn (T) Helper.createItemFromJSON(json);\n\t\t} else if(json.has(\"triple_pattern\")) {\n\t\t\treturn (T) Helper.createTriplePatternFromJSON(json);\n\t\t} else if(json.has(\"histogram\")) {\n\t\t\treturn (T) Helper.createVarBucketFromJSON(json);\n\t\t} else {\n\t\t\tSystem.err.println(\"lupos.distributed.operator.format.Helper.createObjectFromJSON(...): Unknown type stored in JSON object, returning null!\");\n\t\t\treturn null;\n\t\t}\n\t}", "private ArrayList<ServiceModel> getServiceModelJSON(JSONObject obj) {\n ArrayList<ServiceModel> servicesModel = new ArrayList<>();\n\n try {\n JSONArray servicesArray = obj.getJSONArray(\"services\");\n int limit = servicesArray.length();\n\n for (int i = 0; i < limit; i++) {\n JSONObject service = servicesArray.getJSONObject(i);\n\n ServiceModel serviceModel = new ServiceModel();\n\n serviceModel.setId(service.getInt(\"ID_SERVICE\"));\n serviceModel.setName(Conexion.decode(service.getString(\"NAME_SERVICE\")));\n serviceModel.setReserved(service.getInt(\"RESERVED_SERVICE\"));\n serviceModel.setDescription(Conexion.decode(service.getString(\"DESCRIPTION_SERVICE\")));\n serviceModel.setImage(service.getString(\"IMAGE_SERVICE\"));\n serviceModel.setIdType(service.getInt(\"ID_TYPE_SERVICE\"));\n serviceModel.setNameType(Conexion.decode(service.getString(\"NAME_TYPE_SERVICE\")));\n serviceModel.setValueType(service.getInt(\"VALUE_TYPE_SERVICE\"));\n\n serviceModel.setServicePrice(serviceServicePrice.getServicePriceModelJSON(service, serviceModel.getId(), false));\n servicesModel.add(serviceModel);\n }\n\n } catch (JSONException e) {\n System.out.println(\"Error: Objeto no convertible, \" + e.toString());\n e.printStackTrace();\n }\n return servicesModel;\n }", "public static void main(String[] args) {\n Gson json = new Gson();\n RestPregunta client = new RestPregunta();\n ArrayList value = client.getPreguntasCuestionario(ArrayList.class, \"68\");\n for(Object ob: value){ \n System.out.println(ob);\n Pregunta pregunta = json.fromJson(ob.toString(), Pregunta.class);\n System.out.println(pregunta.getPregunta());\n }\n client.close();\n //Gson json = new Gson();\n RestPregunta restPregunta = new RestPregunta();\n ArrayList<Pregunta> lista = new ArrayList();\n ArrayList values = restPregunta.getPreguntasCuestionario(ArrayList.class,\"68\");\n for(Object pro: values){\n Pregunta pregunta = json.fromJson(pro.toString(), Pregunta.class);\n lista.add(new Pregunta(pregunta.getIdPregunta(), pregunta.getIdCuestionario(), pregunta.getPuntoAsignado(), pregunta.getPuntoObtenido(), pregunta.getPregunta())); \n }\n// Pregunta pregunta = client.getPregunta(Pregunta.class, \"1\");\n// System.out.println(pregunta);\n// System.out.println(pregunta.toString());\n \n// ArrayList value = client.getPreguntas(ArrayList.class);\n // ArrayList<Pregunta> list = new ArrayList();\n// System.out.println(value);\n \n //list.add(pregunta);\n \n //System.out.println(pregunta.getArchivoimg2());\n \n// Pregunta p = new Pregunta(1,14,400,300,\"5000?\",\"C:\\\\Users\\\\Matias\\\\Pictures\\\\Pictures\\\\Sample Pictures\\\\Desert.jpg\", inputStream,\" \");\n //Object ob = p;\n// client.addPregunta(p, Pregunta.class);\n// System.out.println(list);\n \n }", "public static Object converFromJson(String src, Class cls) {\n\n String[] lines = src\n .replaceAll(\",\", \"\")\n .replaceAll(\"\\\"\", \"\")\n .split(\"\\n\");\n\n Map<String, String> keyValues = new HashMap<>();\n\n for (int i = 1; i < lines.length - 1; i++) {\n String[] keyAndValue = lines[i].trim().split(\":\");\n keyValues.put(keyAndValue[0], keyAndValue[1]);\n }\n\n try {\n Object obj = cls.newInstance();\n\n for (Field field : cls.getDeclaredFields()) {\n if (field.isAnnotationPresent(MyField.class)) {\n Type type = field.getType();\n if (type == double.class) {\n field.set(obj, Double.parseDouble(keyValues.get((field.getName()))));\n } else if (type == int.class) {\n field.set(obj, Integer.parseInt(keyValues.get((field.getName()))));\n } else if (type == boolean.class) {\n field.set(obj, Boolean.valueOf(keyValues.get((field.getName()))));\n } else {\n field.set(obj, keyValues.get((field.getName())));\n }\n }\n }\n\n return obj;\n } catch (InstantiationException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n\n return null;\n }", "public native Object parse( Object json, String texturePath );", "public static <T> T toBean(String json, Class<T> clazz) {\n if (!StringUtils.isEmpty(json)) {\n ObjectMapper mapper = getObjectMapper();\n try {\n return mapper.readValue(json, clazz);\n } catch (Exception e) {\n logger.error(\"JSONString : \" + json, e);\n }\n }\n return null;\n }", "public static <T> T string2Object(String source, Class<T> type){\n\t\treturn JSON.parseObject(source, type);\n\t}", "public static ArrayList<Feiertag> produceFromJSON(JSONObject json) {\n\t\tArrayList<Feiertag> ret = new ArrayList<Feiertag>();\n\t\tfor (Object key : json.keySet()) {\n\t\t\tString keyStr = (String) key;\n\t\t\tJSONObject keyvalue = json.getJSONObject(keyStr);\n\t\t\tif (keyvalue instanceof JSONObject) {\n\t\t\t\tret.add(new Feiertag(keyvalue.getString(\"datum\"), keyStr));\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "@Override\n\tpublic Dog deserialize(JsonElement json, Type typeOfT,\n\t\t\tJsonDeserializationContext context) throws JsonParseException {\n\t\tJsonObject obj = json.getAsJsonObject();\n\t\tJsonPrimitive name = (JsonPrimitive) obj.get(\"name\");\n\t\tJsonPrimitive ferocity = (JsonPrimitive) obj.get(\"ferocity\");\n\t\treturn Dog.create(name.getAsString(), ferocity.getAsInt());\n\t}", "@Override\n public Geometry deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context)\n throws JsonParseException {\n JsonObject jsonObject = (JsonObject) json;\n String geometryType = jsonObject.get(\"type\").getAsString();\n if (geometryType.equals(\"Point\")) {\n JsonArray coordinates = jsonObject.getAsJsonArray(\"coordinates\");\n return Point.fromCoordinates(Position.fromCoordinates(\n coordinates.get(0).getAsDouble(),\n coordinates.get(1).getAsDouble()));\n } else {\n throw new JsonParseException(\"Unexpected geometry found: \" + geometryType);\n }\n }", "protected <T> T deserialize(final String value, final Class<T> type) throws JsonDeserializationException {\n return json.deserialize(value, type);\n }", "private void extractIDsfromJson(String s) {\n\n ArrayList<MovieAPI> movieAPIArrayList = new ArrayList<>();\n\n try {\n JSONObject jsonObject = new JSONObject(s);\n\n JSONArray jsonArray = jsonObject.getJSONArray(\"results\");\n\n\n for (int i = 0; i < jsonArray.length(); i++) {\n\n\n String m_id = jsonArray.getJSONObject(i).getString(\"id\");\n String mtitle = jsonArray.getJSONObject(i).getString(\"title\");\n String m_img = jsonArray.getJSONObject(i).getString(\"image\");\n\n MovieAPI movieAPI = new MovieAPI(m_id, mtitle, m_img);\n\n movieAPIArrayList.add(movieAPI);\n\n }\n\n updateListView(movieAPIArrayList);\n\n\n\n } catch (Exception e) {\n\n // update the UI to show failed results.\n //updateUI(\"JSON Retrieval Failed\");\n\n e.printStackTrace();\n\n }\n }", "@Override\r\n\tpublic void parseJson(JSONObject json) {\n\t\tif(json == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\ttype = getInt(json,d_type);\r\n\t\t} catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public abstract List<T> readObj(String path);", "public FilterItems jsonToObject(String json){\n json = json.replace(\"body=\",\"{ \\\"body\\\" : \");\n json = json.replace(\"&oil=\",\", \\\"oil\\\" : \");\n json = json.replace(\"&transmission=\",\", \\\"transmission\\\" :\");\n json = json + \"}\";\n json = json.replace(\"[]\",\"null\");\n ObjectMapper mapper = new ObjectMapper();\n FilterItems itemSearch = null;\n try {\n itemSearch = mapper.readValue(json, FilterItems.class);\n } catch (IOException e) {\n e.printStackTrace();\n }\n return itemSearch;\n }", "public static FeedWrapper convertToObjects(String json) {\n // TODO: GSON is created during each conversion - reusing possibilities need to be analyzed\n return new Gson().fromJson(json, FeedWrapper.class); // json -> pojos\n }", "@Test\n public void readSystemObjectClassAppointment() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"Appointment\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Appointment properly\", object.getClass(), actual.getClass());\n }", "@Override\n public Map<? extends String, ? extends Pair<EntityPrimitiveTypes, Stats>> parse(String parse) {\n JsonElement root = JsonParser.parseString(parse);\n HashMap<String, Pair<EntityPrimitiveTypes, Stats>> entityTypes = new HashMap<>();\n if (root.isJsonNull()) return entityTypes;\n for (Map.Entry<String, JsonElement> entry : root.getAsJsonObject().entrySet()) {\n entityTypes.put(entry.getKey(), deserializeEntityType(entry.getValue().getAsJsonObject()));\n }\n return entityTypes;\n }", "@Override\n public ObtainableResourceSet deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {\n JsonObject jsonObtainedResourceSet = json.getAsJsonObject();\n\n /* ----------------------------------------------------------------------------\n * Step 1: deserialize \"static\" resources, the ones that don't get multiplied\n * They are represented as a HashMap<ObtainableResource, Integer>\n * ----------------------------------------------------------------------------\n */\n\n /*\n * Create an intermediate object that\n * can be deserialized automatically as a HashMap<ObtainableResource, Integer>\n */\n JsonObject jsonStaticResourcesObject = new JsonObject();\n\n /*\n * Cycle on the types of static resources\n */\n for (ObtainableResource obtainableResource : ObtainableResource.values()) {\n // Get the number of resources of the current type\n JsonElement jsonObtainedResource = jsonObtainedResourceSet.get(obtainableResource.name());\n if (jsonObtainedResource != null) {\n int nObtained = jsonObtainedResource.getAsInt();\n jsonStaticResourcesObject.addProperty(obtainableResource.name(), nObtained);\n }\n }\n\n Type staticResourcesType = new TypeToken<HashMap<ObtainableResource, Integer>>() {\n }.getType();\n HashMap<ObtainableResource, Integer> staticResources = context.deserialize(jsonStaticResourcesObject, staticResourcesType);\n\n /* ----------------------------------------------------------------------------\n * Step 2: deserialize resources with multipliers\n * They are represented as a HashMap<RequiredResourceSet, Tuple<ObtainableResourceSet, Integer>>,\n * meaning the player gets Integer ObtainedResourceSets for each RequiredResourceSet he/she has\n * ----------------------------------------------------------------------------\n */\n HashMap<RequiredResourceSet, ObtainableResourceSet> multiplierResources = new HashMap<>();\n JsonArray jsonMultiplierResourcesArray = jsonObtainedResourceSet.getAsJsonArray(\"multipliers\");\n if (jsonMultiplierResourcesArray != null) {\n for (JsonElement jsonMultiplier : jsonMultiplierResourcesArray) {\n JsonObject jsonRequirements = jsonMultiplier.getAsJsonObject().getAsJsonObject(\"requirements\");\n JsonObject jsonResources = jsonMultiplier.getAsJsonObject().getAsJsonObject(\"resources\");\n\n RequiredResourceSet requirements = context.deserialize(jsonRequirements, RequiredResourceSet.class);\n ObtainableResourceSet resources = context.deserialize(jsonResources, ObtainableResourceSet.class);\n\n multiplierResources.put(requirements, resources);\n }\n }\n\n return new ObtainableResourceSet(staticResources, multiplierResources);\n }" ]
[ "0.7451818", "0.6820278", "0.66654056", "0.6486696", "0.64772123", "0.64356285", "0.63733876", "0.634238", "0.6315861", "0.62980914", "0.6282372", "0.6216912", "0.6198564", "0.6180847", "0.61469483", "0.61419463", "0.6119283", "0.61081916", "0.6054985", "0.6022148", "0.60129696", "0.5991159", "0.5914595", "0.59034055", "0.58703583", "0.58662313", "0.58027834", "0.57927895", "0.57875323", "0.57726663", "0.5771891", "0.5761731", "0.57592064", "0.57400453", "0.574003", "0.57270586", "0.56984776", "0.5680852", "0.56550723", "0.56427836", "0.5632497", "0.5622301", "0.56010735", "0.5584733", "0.5579461", "0.5574011", "0.5572745", "0.5570523", "0.5562581", "0.5546705", "0.55461216", "0.5531315", "0.55120975", "0.5510396", "0.55044603", "0.5502534", "0.5498941", "0.5485144", "0.54603565", "0.54561704", "0.54480016", "0.54418945", "0.5441233", "0.54407686", "0.5428448", "0.54261965", "0.5422439", "0.5414312", "0.5406038", "0.5398061", "0.5380822", "0.53755254", "0.53552705", "0.5353387", "0.53495187", "0.5344971", "0.5327752", "0.53156793", "0.5302482", "0.5300574", "0.52997077", "0.5298983", "0.5298848", "0.52942353", "0.52878803", "0.5281591", "0.5276559", "0.52718186", "0.52650255", "0.5246701", "0.52449536", "0.5235085", "0.5229468", "0.52274984", "0.52244115", "0.52068937", "0.5204859", "0.52035594", "0.51973236", "0.5195141" ]
0.7997814
0
Se inicializa la ventana
@Override public void initialize(URL url, ResourceBundle rb) { //Se instancian las utilerías que se van a ocupar animar = new Animaciones(); alerta = new Alertas(); //Se anima la ventana al inicializarse animar.animarDesvanecer(anchorPaneLogin, 1.5f); //Se instancia el DAO usDAO = new usuarioDAOImpl(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tprotected void initVentajas() {\n\r\n\t}", "public void inicializar();", "public VPacientes() {\n initComponents();\n inicializar();\n }", "public Vencimientos() {\n initComponents();\n \n \n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@PostConstruct\r\n public void inicializar() {\r\n try {\r\n anioDeclaracion = 0;\r\n existeDedPatente = false;\r\n deducciones = false;\r\n detaleExoDedMul = new ArrayList<String>();\r\n activaBaseImponible = 0;\r\n verBuscaPatente = 0;\r\n inicializarValCalcula();\r\n datoGlobalActual = new DatoGlobal();\r\n patenteActual = new Patente();\r\n patenteValoracionActal = new PatenteValoracion();\r\n verPanelDetalleImp = 0;\r\n habilitaEdicion = false;\r\n numPatente = \"\";\r\n buscNumPat = \"\";\r\n buscAnioPat = \"\";\r\n catDetAnio = new CatalogoDetalle();\r\n verguarda = 0;\r\n verActualiza = 0;\r\n verDetDeducciones = 0;\r\n verBotDetDeducciones = 0;\r\n listarAnios();\r\n } catch (Exception ex) {\r\n LOGGER.log(Level.SEVERE, null, ex);\r\n }\r\n }", "public Visita() {\n initialize();\n }", "public AfiliadoVista() {\r\n }", "@PostConstruct\n\tprivate void init() {\n\t\tEntrada entr = new Entrada(\n\t\t\t\tnew Persona(\"Manuel\",\"Jimenex\",\"52422\",\"100000\",\"Cra 340\"),\n\t\t\t\t(new PreFactura(1l,new Date())), itemsService.lista());\n\t\t\n\t\tlistaEntrada.add(entr);\n\t}", "public Caso_de_uso () {\n }", "public void initialize() {\n\n fechaDeLaVisita.set(LocalDate.now());\n\n if (medico.get() != null) {\n medico.get().clear();\n } else {\n medico.set(new Medico());\n }\n\n turnoVisita.set(\"\");\n visitaAcompanadaSN.set(false);\n lugarVisita.set(\"\");\n if (causa.get() != null) {\n causa.get().clear();\n } else {\n causa.set(new Causa());\n }\n\n if (promocion.get() != null) {\n promocion.get().clear();\n } else {\n promocion.set(new Promocion());\n }\n\n observacion.set(\"\");\n persistida.set(false);\n persistidoGraf.set(MaterialDesignIcon.SYNC_PROBLEM.graphic());\n\n fechaCreacion.set(LocalDateTime.now());\n\n }", "public void inizializza() {\n Navigatore nav;\n Portale portale;\n\n super.inizializza();\n\n try { // prova ad eseguire il codice\n\n Modulo modulo = getModuloRisultati();\n modulo.inizializza();\n// Campo campo = modulo.getCampoChiave();\n// campo.setVisibileVistaDefault(false);\n// campo.setPresenteScheda(false);\n// Vista vista = modulo.getVistaDefault();\n// vista.getElement\n// Campo campo = vista.getCampo(modulo.getCampoChiave());\n\n\n\n /* aggiunge il Portale Navigatore al pannello placeholder */\n nav = this.getNavigatore();\n portale = nav.getPortaleNavigatore();\n this.getPanNavigatore().add(portale);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public AntrianPasien() {\r\n\r\n }", "protected Asignatura()\r\n\t{}", "public void inicia() { \r\n\t\tventana=new VentanaMuestraServicios(this);\r\n\t\tventana.abre();\r\n\t}", "public Pasien() {\r\n }", "Petunia() {\r\n\t\t}", "public Alojamiento() {\r\n\t}", "public void inizializza() {\n\n /* invoca il metodo sovrascritto della superclasse */\n super.inizializza();\n\n }", "public Venda() {\n }", "@PostConstruct\r\n\tpublic void init() {\n\t\ttexto=\"Nombre : \";\r\n\t\topcion = 1;\r\n\t\tverPn = true;\r\n\t\ttipoPer = 1;\r\n\t\tsTipPer = \"N\";\r\n\t\tverGuar = true;\r\n\t\tvalBus = \"\";\r\n\t\tverCampo = true;\r\n\t\tread = false;\r\n\t\tgrabar = 0;\r\n\t\tcodCli = 0;\r\n\t\tcargarLista();\r\n\t}", "public void inicializar() {\n\t\tarestas.forEach(aresta -> {\n\t\t\taresta.getOrigin().atribuirPesoInicial();\n\t\t\taresta.getTarget().atribuirPesoInicial();\n\t\t});\n\t}", "public Saida() {\n initComponents();\n defaults();\n preencherTabela();\n \n }", "private UsineJoueur() {}", "public void inicializar() {\n\t\t// TODO Auto-generated method stub\n\t\tIDISFICHA=\"\";\n\t\tNOTAS=\"\";\n\t\tANOTACIONES=\"\";\n\t\tNOTAS_EJERCICIOS=\"\";\n\t}", "public CrearQuedadaVista() {\n }", "public void init() {\r\n\t\tlog.info(\"init()\");\r\n\t\tobjIncidencia = new IncidenciaSie();\r\n\t\tobjObsIncidencia = new ObservacionIncidenciaSie();\r\n\t\tobjCliente = new ClienteSie();\r\n\t\tobjTelefono = new TelefonoPersonaSie();\r\n\t}", "private void inizializzazione()\n {\n //Costruzione della Istanza display\n display = new Display(titolo,larghezza,altezza);\n \n /*Viene aggiunto il nostro gestore degli input da tastiera\n * alla nostra cornice.*/\n display.getCornice().addKeyListener(gestoreTasti);\n display.getCornice().addMouseListener(gestoreMouse);\n display.getCornice().addMouseMotionListener(gestoreMouse);\n display.getTelaGrafica().addMouseListener(gestoreMouse);\n display.getTelaGrafica().addMouseMotionListener(gestoreMouse);\n \n //Codice temporaneo per caricare la nostra immagine nel nostro programma\n /*testImmagine = CaricatoreImmagini.caricaImmagini(\"/Textures/Runner Stickman.png\");*/\n \n //Inizializzazione dell'attributo \"foglio\". Gli viene passato come parametro \n //\"testImmagine\" contenente l'immagine del nostro sprite sheet.\n /*foglio = new FoglioSprite(testImmagine);*/\n \n /*Inizializzazione della classe Risorse.*/\n Risorse.inizializzazione();\n \n maneggiatore = new Maneggiatore(this);\n /*Inizializzazione Camera di Gioco*/\n camera = new Camera(maneggiatore,0,0);\n \n /*Inizializzazione degli stati di gioco.*/\n statoMenu = new StatoMenù(maneggiatore);\n Stato.setStato(statoMenu);\n }", "public void inicializarInterfaz() {\n\t\tvista.setVisible(true);\n\t\tvista.bienvenida.setVisible(true);\n\t\tvista.sel_billete.setVisible(false);\n\t\tvista.sel_fecha.setVisible(false);\n\t\tvista.detalles_compra.setVisible(false);\n\t\tvista.login.setVisible(false);\n\t\tvista.registro.setVisible(false);\n\t\tvista.pago.setVisible(false);\n\t\tvista.fin_pago.setVisible(false);\n\t\tvista.agur.setVisible(false);\n\t\t\n\t}", "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}", "@PostConstruct\n\tpublic void init() {\n\t\tvisitaSelecionada = new AgendamentoVisitas();\n\n\t}", "public vistaAlojamientos() {\n initComponents();\n \n try {\n miConn = new Conexion(\"jdbc:mysql://localhost/turismo\", \"root\", \"\");\n ad = new alojamientoData(miConn);\n \n } catch (ClassNotFoundException ex) {\n Logger.getLogger(vistaAlojamientos.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n }", "public VotacaoSegundoDia() {\n\n\t}", "public static void init()\n\t{\n\t\t\n\t\tu.creerGalaxie(\"VoieLactee\", \"spirale\", 0);\n\t\tu.creerEtoile(\"Soleil\", 0, 'F', u.getGalaxie(\"VoieLactee\")); //1\n\t\tu.creerObjetFroid(\"Terre\", 150000 , 13000 , 365 , u.getObjet(1)); //2\n\n\t\tu.creerObjetFroid(\"Lune\", 200 , 5000 , 30 , u.getObjet(2)); //3\n\n\t\tu.creerObjetFroid(\"Mars\", 200000 , 11000 , 750 , u.getObjet(1)); //4\n\n\t\tu.creerObjetFroid(\"Phobos\", 150 , 500 , 40 , u.getObjet(4)); //5\n\n\t\tu.creerObjetFroid(\"Pluton\", 1200000 , 4000 , 900 , u.getObjet(1)); //6\n\n\t\tu.creerEtoile(\"Sirius\", 2, 'B', u.getGalaxie(\"VoieLactee\")); //7\n\n\t\tu.creerObjetFroid(\"BIG-1\", 1000 , 50000 , 333 , u.getObjet(7)); //8\n\n\t\tu.creerGalaxie(\"M31\", \"lenticulaire\", 900000);\n\t\tu.creerEtoile(\"XS67\", 8, 'F', u.getGalaxie(\"M31\")); //9\n\t\tu.creerObjetFroid(\"XP88\", 160000 , 40000 , 400 , u.getObjet(9)); //10\n\t}", "protected void inicializar(){\n kr = new CreadorHojas(wp);\n jPanel1.add(wp,0); // inserta el workspace en el panel principal\n wp.insertarHoja(\"Hoja 1\");\n //wp.insertarHoja(\"Hoja 2\");\n //wp.insertarHoja(\"Hoja 3\");\n }", "private void initialize() {\n\t\tdisenioVentana();\n\n\t\tdisenioMenu();\n\n\t\tdisenio_Cuerpo();\n\n\t}", "private void initVistas() {\n // La actividad responderá al pulsar el botón.\n Button btnSolicitar = (Button) this.findViewById(R.id.btnSolicitar);\n btnSolicitar.setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(View v) {\n solicitarDatos();\n }\n });\n lblDatos = (TextView) this.findViewById(R.id.lblDatos);\n }", "@Override\r\n\tprotected void init() {\r\n\t\tList<Configuracao> configs = servico.listarTodos();\r\n\t\tif (!configs.isEmpty()) {\r\n\t\t\tentidade = configs.get(0);\t// deve haver apenas um registro\r\n\t\t} else {\r\n\t\t\tcreateConfiguracao();\r\n\t\t}\r\n\t\t\r\n carregarTemas();\r\n\t}", "public void inicializar() {\n\t\t// TODO Auto-generated method stub\n\t\tISHORARIO_IDISHORARIO=\"\";\n\t\tISAULA_IDISAULA=\"\";\n\t\tISCURSO_IDISCURSO=\"\";\n\t\t\n\t}", "public void init(){\n \n }", "@PostConstruct\n\tpublic void inicializar() {\n\t}", "public Curso() {\r\n }", "private void initBefore() {\n // Crear Modelo\n model = new Model();\n\n // Crear Controlador\n control = new Controller(model, this);\n\n // Cargar Propiedades Vista\n prpView = UtilesApp.cargarPropiedades(FICHERO);\n\n // Restaurar Estado\n control.restaurarEstadoVista(this, prpView);\n\n // Otras inicializaciones\n }", "public Sobre() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public Kullanici() {}", "public Oveja() {\r\n this.nombreOveja = \"Oveja\";\r\n }", "public void init() {\n \n }", "public void inicializar() {\r\n\t\tthis.bloqueado = false;\r\n\t}", "public LecturaPorEvento() \r\n {\r\n }", "public Vehiculo() {\r\n }", "@Before\n\tpublic void init() {\n\t\t\n\n\t\tCalendar cal = Calendar.getInstance();\n\t\t\n\t cal.add(Calendar.DATE, -2); \n\t \n\t fechaOperacion = LocalDate.of(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), cal.get(Calendar.DAY_OF_MONTH));\n\t \n\n\t\t\n\t\tCiudad buenos_aires = new Ciudad(new Provincia(\"Argentina\", \"Buenos Aires\"), \"Capital Federal\");\n\t \t\n \tProvincia prov_buenos_aires = new Provincia(\"Ciudad Autonoma de Buenos Aires\",\"Capital Federal\");\n \t\n \tDireccionPostal direccionPostal = new DireccionPostal( \"lacarra 180\", buenos_aires, prov_buenos_aires, \"argentina\", new Moneda(\"$\",\"Peso argentino\" ));\n\t\n\t\t\n\t\t entidad1 = new EntidadJuridica(\"chacho bros\", \"grupo chacho\", \"202210\", direccionPostal, new Categoria(\"ONG\"),TipoEmpresa.EMPRESA);\n\n\t\t\n\t\t\n\t}", "public SlanjePoruke() {\n }", "@Override\r\n\tpublic void iniciarSesion() {\n\t\tthis.contextoOrdenMenosUno = new Contexto();\r\n\t\t//Obtengo el orden del xml de configuración\r\n\t\tthis.orden = Constantes.ORDER_MAX_PPMC;\r\n\t\t//Creo tantos Ordenes como dice el XML\r\n\t\tthis.listaOrdenes = new ArrayList<Orden>(this.orden+1);\r\n\t\tthis.inicializarListas();\r\n\t\tthis.compresorAritmetico = new LogicaAritmetica();\r\n\t\tthis.initSession = true;\r\n\t\tthis.tiraBits = \"\";\r\n\t\tthis.bitsBuffer = new StringBuffer();\r\n\t\tthis.finalizada = false;\r\n\t\tthis.contextoPrevio = false;\r\n\t\tthis.contextoActual = new String();\r\n\t}", "private void Initialize()\n {\n \tEcran = new Rectangle(Framework.gauche, Framework.haut, Framework.frameWidth\n\t\t\t\t- Framework.droite - Framework.gauche, Framework.frameHeight - Framework.bas\n\t\t\t\t- Framework.haut);\n\t\tCentreEcranX = (int)(Ecran.getWidth()/2);\n\t\tCentreEcranY = (int)(Ecran.getHeight()/2);\n\t\twidth = Ecran.getWidth();\n\t\theight = Ecran.getHeight();\t\t\n\t\tpH=height/768;\t\t\n\t\tpW=width/1366;\n\t\tObjets = new ArrayList<Objet>(); // Créer la liste chainée en mémoire\n\t\tMissiles = new ArrayList<Missile>(); // Créer la liste chainée en mémoire\n\t\tStations = new ArrayList<Station>(); // Créer la liste chainée en mémoire\n\t\tJoueurs = new ArrayList<Joueur>();\n\t\tlastTrajectoires = new ArrayList<Trajectoire>();\n\n\t\tDisposeAstres(Framework.niveauChoisi);\n\t\tstationCourante = Stations.get(0);\n\n\t\tetat = ETAT.PREPARATION;\n\t\tmouseClicked = mousePressed = mouseReleased = false;\n\t}", "private void init() {\n\n\n\n }", "@PostConstruct\r\n\tpublic void init(){\r\n\t\tconta = new Conta();\r\n\t\tservice = new ContaService();\r\n\t\tconta.setDataAbertura(Calendar.getInstance());\r\n\t}", "public Sesiones() {\n\t\tentradasVendidas = 0;\n\t}", "private void init(){\n \tgl = new GeradorLog(getTAG_LOG(),getTIPO_LOG());\n // cria os devidos parametros da tela\n campoResposta = (EditText) findViewById(R.id.campoResposta);\n msg_usr = (TextView) findViewById(R.id.resposta);\n }", "public void init() {\r\n\r\n\t}", "public Corso() {\n\n }", "public Veiculo() {\r\n\r\n }", "public prueba()\r\n {\r\n }", "private void inicializarFicha(){\n \tTypeface tfBubleGum = Util.fontBubblegum_Regular(this);\n \tTypeface tfBenton = Util.fontBenton_Boo(this);\n \tTypeface tfBentonBold = Util.fontBenton_Bold(this);\n\t\tthis.txtNombre.setTypeface(tfBubleGum);\n\t\tthis.txtDescripcion.setTypeface(tfBenton);\n\t\tthis.lblTitulo.setTypeface(tfBentonBold);\n \tpanelCargando.setVisibility(View.GONE);\n \t\n \t//cargar los datos de las informaciones\n \tif(DataConection.hayConexion(this)){\n \t\tpanelCargando.setVisibility(View.VISIBLE);\n \t\tInfo.infosInterface = this;\n \t\tInfo.cargarInfo(this.app, this.paramIdItem);\n \t}else{\n \t\tUtil.mostrarMensaje(\n\t\t\t\t\tthis, \n\t\t\t\t\tgetResources().getString(R.string.mod_global__sin_conexion_a_internet), \n\t\t\t\t\tgetResources().getString(R.string.mod_global__no_dispones_de_conexion_a_internet) );\n \t}\n }", "public MPaciente() {\r\n\t}", "private ControleurAcceuil(){ }", "public void GameInit() {\n ufot = new ArrayList();\n kuti = new Kuti();\n pelaaja = new Pelaaja();\n ufokuti = new UfoKuti();\n ufokuti.setVisible(false);\n kuti.setVisible(false);\n grafiikka = new Grafiikka(this);\n grafiikka.asetaKuvaRajahdykselle();\n grafiikka.asetaKuvaPelaajalle(grafiikka.pelaajaIcon(pelaaja), pelaaja);\n asetaUfotRiveihin();\n ufokutiInit();\n }", "private void setUpFrom(){\n\t\tEPVentanaTemporal ven = new EPVentanaTemporal();\n\t\tEPPropiedad pro = new EPPropiedad();\n\t\t//setemamos la ventana.\n\t\tven.setNombre(\"time_batch\");\n\t\tven.setValor(\"10\");\n\t\tven.setUnidadTemporal(\"seconds\");\n\t\tven.setPseudonombre(\"a1\");\n\t\tpro.setNombre(\"p4\");\n\t\tpro.setPseudonombre(\"\");\n\t\tpro.setVentana(ven);\n\t\texpresionesFrom.add(pro);\n\t}", "public Inicio()\n { \n super(600, 400, 1);\n prepararInicio();\n\n }", "public Controlador() {\n\t\t// m\n\t\tdatosPrueba1 = new ListaEnlazada();\n\t\t// m\n\t\tdatosPrueba2 = new ListaEnlazada();\n\t\t// add\n\t\tdatosPrueba3 = new ListaEnlazada();\n\t\tdatosPrueba4 = new ListaEnlazada();\n\t\tprueba1 = new Estadisticas(datosPrueba1);\n\t\tprueba2 = new Estadisticas(datosPrueba2);\n\t\tprueba3 = new Estadisticas(datosPrueba3);\n\t\tprueba4 = new Estadisticas(datosPrueba4);\n\t\t// finAdd\n\t}", "public void inicializa_controles() {\n bloquea_campos();\n bloquea_botones();\n carga_fecha();\n ocultar_labeles();\n }", "private void crearVista() {\n\t\tVista vista = Vista.getInstancia();\n\t\tvista.addObservador(this);\n\n\t}", "public Casa() { \n \n /* Cuando se crea la casa, tambien se debe crear la puerta */\n \n laPuerta = new Puerta();\n \n /* se pone la letra F por que son de tipo float */\n laPuerta.setAncho(2.3F);\n laPuerta.setAlto(1.5F);\n \n }", "public TelaRegistroVendas() {\n initComponents();\n }", "private void init() {\n\n\t}", "public void init(){\n\t\t\n\t\t// Definition general de la fenetre\n\t\tthis.setLayout(new BorderLayout());\n\t\t\n\t\t/*********** PARTIE HAUTE *************/\n\t\t\n\t\t// JPanel qui va contenir l'interface de controle\n\t\tJPanel panH=new JPanel();\n\t\t\n\t\t// Ajout de la zone de saisie du mot binaire\n\t\tpanH.add(new JLabel(\"Mot binaire:\"));\n\t\tentree=new JTextField(\"1100110101\",10);\n\t\tpanH.add(entree);\n\t\t\n\t\t// Ajout de la liste de selection du codage\n\t\tcodage=new JComboBox();\n\t\tcodage.addItem(\"NRZ\");\n\t\tcodage.addItem(\"NRZI\");\n\t\tcodage.addItem(\"Manchester\");\n\t\tcodage.addItem(\"Manchester differentiel\");\n\t\tcodage.addItem(\"Miller\");\n\t\t\n\t\tpanH.add(codage);\n\t\t\n\t\t\n\t\t// Ajout du bouton d'execution du codage\n\t\tconvertir=new JButton(\"Convertir\");\n\t\tconvertir.addActionListener(new EcouteurBouton());\n\t\tpanH.add(convertir);\n\t\t\n\t\t\n\t\tadd(panH,BorderLayout.NORTH);\n\t\t\n\t\t\n\t\t/*********** PARTIE CENTRALE *************/\n\t\t\n\t\t// Ajout de la zone d'affichage de la solution\n\t\tzoneGraph=new Dessin();\n\t\tadd(zoneGraph);\n\t}", "public void iniciar() {\n\t\tcrearElementos();\n\t\tcrearVista();\n\n\t}", "public EtatInitialisation(Controleur controleur) {\n super(controleur);\n super.rendControleur().lancerEcranDemarrage();\n }", "private DittaAutonoleggio(){\n \n }", "public void init() {\n\n\t}", "public void init() {\n\n\t}", "public void init() {\n\n\t}", "public ventAdmon() {\r\n try {\r\n jbInit();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "public TelaEscolhaAssento() {\n initComponents();\n }", "public TelaContaUnica() {\n initComponents();\n }", "public vistaEjemplo() {\n initComponents();\n con=new Conexion();\n data = new Datas(con);\n usuario = new Usuario();\n jTApellido.setEnabled(false);\n jTMail.setEnabled(false);\n jTNombre.setEnabled(false);\n jTPassword.setEnabled(false);\n JdcFechaDeEntrada.setEnabled(false);\n jBPdf.setEnabled(false);\n }", "public TelaInicial() {\n initComponents();\n }", "public TelaInicial() {\n initComponents();\n }", "public Calculadora() {\n initComponents();\n }", "public Punto_venta() {\n initComponents();\n }", "private void inicializarcomponentes() {\n Comunes.cargarJList(jListBecas, becasFacade.getTodasBecasVigentes());\n \n }", "public TelaAgendamento() {\n initComponents();\n }", "public TebakNusantara()\n {\n }", "public void initControles(){\n\n }", "public AgenteEstAleatorio() {\r\n }", "@Override\r\n\tpublic void inicializar() {\n\t\tproveedorDatamanager.setProveedorSearch(new Tcxpproveedor());\r\n\t\tproveedorDatamanager.getProveedorSearch().setTsyspersona(new Tsyspersona());\r\n\t\tproveedorDatamanager.setTipoIdColl(bunsysService.buscarObtenerCatalogos(proveedorDatamanager.getLoginDatamanager().getLogin().getPk().getCodigocompania(), ContenidoMessages.getInteger(\"cod_catalogo_tipoid_persona\")));\r\n\t\tproveedorDatamanager.setGrupoProvColl(bunsysService.buscarObtenerCatalogos(proveedorDatamanager.getLoginDatamanager().getLogin().getPk().getCodigocompania(), ContenidoMessages.getInteger(\"cod_catalogo_grupo_prov\")));\r\n\t\tproveedorDatamanager.setEstadoProvColl(bunsysService.buscarObtenerCatalogos(proveedorDatamanager.getLoginDatamanager().getLogin().getPk().getCodigocompania(), ContenidoMessages.getInteger(\"cod_catalogo_estado_persona\")));\r\n\t\tproveedorDatamanager.setProveedorComponente(new ProveedorComponent(proveedorDatamanager.getLoginDatamanager().getLogin().getPk().getCodigocompania()));\r\n\t}", "void inicializaComponentes(){\r\n\t\t\r\n\t\t//Botão com status\r\n\t\ttgbGeral = (ToggleButton) findViewById(R.id.tgbGeral);\r\n\t\ttgbGeral.setOnClickListener(this);\r\n\t\ttgbMovimento = (ToggleButton) findViewById(R.id.tgbMovimento);\r\n\t\ttgbMovimento.setOnClickListener(this);\r\n\t\ttgbfogo = (ToggleButton) findViewById(R.id.tgbFogo);\r\n\t\ttgbfogo.setOnClickListener(this);\r\n\r\n\t\t//botão\r\n\t\tbtnTemperatura = (Button) findViewById(R.id.btnTemperatura);\r\n\t\tbtnTemperatura.setOnClickListener(this);\r\n\t\t\r\n\t\t//label\r\n\t\ttxtLegenda = (TextView) findViewById(R.id.txtSensorLegenda);\r\n\t}", "public void init() {\n\t\t}", "public InventarioControlador() {\n }", "public NhanVien()\n {\n }", "public Livro() {\n\n\t}", "public Test(){\n calcula = new Calculadora();\n estaBien = \"ERROR\";\n funciona = \"SI\";\n lista = new ArrayList<String>();\n }" ]
[ "0.7936092", "0.76235133", "0.7454104", "0.73819435", "0.7374879", "0.7340872", "0.73205656", "0.7320127", "0.72746575", "0.72529256", "0.72509146", "0.7245325", "0.7234079", "0.72314554", "0.7210682", "0.7189557", "0.7170013", "0.7127188", "0.7108853", "0.7105643", "0.70682454", "0.706557", "0.7063636", "0.69945264", "0.6988836", "0.69827324", "0.6962813", "0.6953976", "0.69496685", "0.6948777", "0.6946333", "0.6942647", "0.6942499", "0.69394326", "0.6937915", "0.69297147", "0.6928514", "0.6907746", "0.69008064", "0.68954515", "0.68951297", "0.6887558", "0.6884383", "0.6877663", "0.6874869", "0.6869325", "0.68684065", "0.68578196", "0.683569", "0.68255174", "0.6814967", "0.6809882", "0.6809217", "0.680111", "0.6794801", "0.6785554", "0.67833513", "0.6782665", "0.67825145", "0.67782754", "0.67749065", "0.67728204", "0.677164", "0.6769655", "0.6755913", "0.67527986", "0.67401785", "0.6739438", "0.6732201", "0.6731314", "0.6721245", "0.67189616", "0.67160934", "0.6716088", "0.671477", "0.6702043", "0.669734", "0.66957116", "0.6691872", "0.6691872", "0.6691872", "0.66840315", "0.66768646", "0.66759324", "0.66716784", "0.6670446", "0.6670446", "0.6667357", "0.66668177", "0.6661445", "0.6657632", "0.66538", "0.66497165", "0.66482097", "0.66444075", "0.6638407", "0.66382015", "0.6627596", "0.6626821", "0.6622884", "0.6620857" ]
0.0
-1
/HW.turnController.setAngle( MathUtils.atan(HW.sonarFrontLeft.getRangeInches() HW.sonarFrontRight.getRangeInches() / 21.625)); HW.turnController.setSetpoint(180.0);
public static void sonarPositionClose() { double x = HW.sonarControllerLeft.getSpeed(); double y = HW.sonarControllerFrontRight.getSpeed(); //+ HW.sonarControllerFrontRight.getSpeed()) /// 2; HW.drive.HolonomicDrive(x, y, HW.turnController.getRotation()); //DiscoUtils.debugPrintln("X: " + x); //DiscoUtils.debugPrintln("Y: " + y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void adjustShooterAngleManual() {\n\n // If the driver pushes the Square Button on the PS4 Controller,\n // set the worm drive motors to go backwards (lower it).\n if (PS4.getRawButton(PS4_X_BUTTON) == true) {\n\n wormDriveMotors.set(-0.2);\n\n // If the driver pushes the Triangle Button on the PS4 Controller,\n // set the worm drive motors to go forwards (raise it up).\n } else if (PS4.getRawButton(PS4_SQUARE_BUTTON) == true) {\n\n wormDriveMotors.set(0.4);\n }\n\n // If the driver is an idiot and is pressing BOTH the Square Button AND the\n // Triangle Button at the same time, OR (||) if the driver is pushing neither\n // button, set the motor speed to 0.\n else if (((PS4.getRawButton(PS4_X_BUTTON) == true) && (PS4.getRawButton(PS4_SQUARE_BUTTON) == true))\n || ((PS4.getRawButton(PS4_X_BUTTON) == false) && (PS4.getRawButton(PS4_SQUARE_BUTTON) == false))) {\n\n wormDriveMotors.set(0);\n }\n\n }", "@Override\n protected void execute() {\n headingPID.setSetpoint(-angle); //should be -angle \n Robot.driveBase.DriveAutonomous();\n }", "@Override\n public void initialize() {\n setPoint = (((targetAngle + driveSubsystem.getHeading() + 180) % 360) - 180);\n }", "@Override\npublic void teleopPeriodic() {\nm_robotDrive.arcadeDrive(m_stick.getRawAxis(5)* (-0.5), m_stick.getRawAxis(4)*0.5);\n}", "public void updateAngle(){\n\t\tif (turnUp && (angle < 180) ){\n\t\t\tangle+=1;\n\t\t}\n\t\tif (turnDown && (angle > 0)){\n\t\t\tangle-=1;\n\t\t}\n\t}", "public void changeAngle (int horizontalSpeed)\n\t{\n\t\t//The following makes the PaperAirplane face as far right as it can\n\t\t//(but it still faces downward slightly).\n\t\tif (horizontalSpeed >= 5)\n\t\t{\n\t\t\txDimension1 = getX_Pos () - 23;\n\t\t\txDimension2 = getX_Pos () - 18;\n\t\t\txDimension3 = getX_Pos () + 22;\n\t\t\t\n\t\t\tyDimension1 = getY_Pos () - 2;\n\t\t\tyDimension2 = getY_Pos () - 17;\n\t\t\tyDimension3 = getY_Pos () + 5;\n\t\t}\n\t\t//When the horizontal speed progresses from 5 to 0, the plane faces\n\t\t//further downward, which is shown by the if statements below. Likewise,\n\t\t//as the horizontal speed progresses from 0 to 5, the plane faces\n\t\t//further right.\n\t\telse if (horizontalSpeed == 4)\n\t\t{\n\t\t\txDimension1 = getX_Pos () - 20;\n\t\t\txDimension2 = getX_Pos () - 12;\n\t\t\txDimension3 = getX_Pos () + 20;\n\t\t\t\n\t\t\tyDimension1 = getY_Pos () - 7;\n\t\t\tyDimension2 = getY_Pos () - 19;\n\t\t\tyDimension3 = getY_Pos () + 11;\n\t\t}\n\t\telse if (horizontalSpeed == 3)\n\t\t{\n\t\t\txDimension1 = getX_Pos () - 15;\n\t\t\txDimension2 = getX_Pos () - 5;\n\t\t\txDimension3 = getX_Pos () + 14;\n\t\t\t\n\t\t\tyDimension1 = getY_Pos () - 12;\n\t\t\tyDimension2 = getY_Pos () - 22;\n\t\t\tyDimension3 = getY_Pos () + 13;\n\t\t}\n\t\telse if (horizontalSpeed == 2)\n\t\t{\n\t\t\txDimension1 = getX_Pos () - 10;\n\t\t\txDimension2 = getX_Pos () + 2;\n\t\t\txDimension3 = getX_Pos () + 12;\n\t\t\t\n\t\t\tyDimension1 = getY_Pos () - 17;\n\t\t\tyDimension2 = getY_Pos () - 22;\n\t\t\tyDimension3 = getY_Pos () + 18;\n\t\t}\n\t\telse if (horizontalSpeed == 1)\n\t\t{\n\t\t\txDimension1 = getX_Pos () - 10;\n\t\t\txDimension2 = getX_Pos () + 4;\n\t\t\txDimension3 = getX_Pos () + 6;\n\t\t\t\n\t\t\tyDimension1 = getY_Pos () - 18;\n\t\t\tyDimension2 = getY_Pos () - 20;\n\t\t\tyDimension3 = getY_Pos () + 20;\n\t\t}\n\t\t//The following makes the plane face straight down.\n\t\telse if (horizontalSpeed == 0)\n\t\t{\n\t\t\txDimension1 = getX_Pos () - 7;\n\t\t\txDimension2 = getX_Pos ();\n\t\t\txDimension3 = getX_Pos () + 7;\n\t\t\t\n\t\t\tyDimension1 = getY_Pos () - 20;\n\t\t\tyDimension2 = getY_Pos () + 24;\n\t\t\tyDimension3 = getY_Pos () - 20;\n\t\t}\n\t\t//When the horizontal speed progresses from -5 to 0, the plane faces\n\t\t//further downward, which is shown by the if statements below. Likewise,\n\t\t//as the horizontal speed progresses from 0 to -5, the plane faces\n\t\t//further left.\n\t\telse if (horizontalSpeed == -1)\n\t\t{\n\t\t\txDimension1 = getX_Pos () + 10;\n\t\t\txDimension2 = getX_Pos () - 4;\n\t\t\txDimension3 = getX_Pos () - 6;\n\t\t\t\n\t\t\tyDimension1 = getY_Pos () - 18;\n\t\t\tyDimension2 = getY_Pos () - 20;\n\t\t\tyDimension3 = getY_Pos () + 20;\n\t\t}\n\t\telse if (horizontalSpeed == -2)\n\t\t{\n\t\t\txDimension1 = getX_Pos () + 10;\n\t\t\txDimension2 = getX_Pos () - 2;\n\t\t\txDimension3 = getX_Pos () - 12;\n\t\t\t\n\t\t\tyDimension1 = getY_Pos () - 17;\n\t\t\tyDimension2 = getY_Pos () - 22;\n\t\t\tyDimension3 = getY_Pos () + 18;\n\t\t}\n\t\telse if (horizontalSpeed == -3)\n\t\t{\n\t\t\txDimension1 = getX_Pos () + 15;\n\t\t\txDimension2 = getX_Pos () + 5;\n\t\t\txDimension3 = getX_Pos () - 14;\n\t\t\t\n\t\t\tyDimension1 = getY_Pos () - 12;\n\t\t\tyDimension2 = getY_Pos () - 22;\n\t\t\tyDimension3 = getY_Pos () + 13;\n\t\t}\n\t\telse if (horizontalSpeed == -4)\n\t\t{\n\t\t\txDimension1 = getX_Pos () + 20;\n\t\t\txDimension2 = getX_Pos () + 12;\n\t\t\txDimension3 = getX_Pos () - 20;\n\t\t\t\n\t\t\tyDimension1 = getY_Pos () - 7;\n\t\t\tyDimension2 = getY_Pos () - 19;\n\t\t\tyDimension3 = getY_Pos () + 11;\n\t\t}\n\t\t//The following makes the PaperAirplane face as far left as it can\n\t\t//(but it still faces downward slightly).\n\t\telse if (horizontalSpeed <= -5)\n\t\t{\n\t\t\txDimension1 = getX_Pos () + 23;\n\t\t\txDimension2 = getX_Pos () + 18;\n\t\t\txDimension3 = getX_Pos () - 22;\n\t\t\t\n\t\t\tyDimension1 = getY_Pos () - 2;\n\t\t\tyDimension2 = getY_Pos () - 17;\n\t\t\tyDimension3 = getY_Pos () + 5;\n\t\t}\n\t}", "@Override\n public void reAngle() {\n }", "void setAngle(double angle);", "public void setAngle( double a ) { angle = a; }", "void turn(double angle) {\n double absoluteAngle = angle * 0.05;\n\n drive(TURN_SPEED, angle, -angle, 0);\n\n }", "public TurnToDefaultAngle() {\n super(0, RobotContainer.m_robotDrive);\n }", "public AccelerometerTurn(double angle) {\n\tthis(angle, 0.7);\n }", "public void goToAngle(){\n currentAngle = getAverageVoltage2(); \r\n if (Math.abs(elevationTarget - currentAngle) <= .1){//TODO: check angle\r\n off();\r\n // System.out.println(\"off\");\r\n } else if (elevationTarget > currentAngle && elevationTarget < maxLimit){\r\n raise();\r\n //System.out.println(\"raise\");\r\n } else if (elevationTarget < currentAngle && elevationTarget > minLimit){\r\n //System.out.println(\"lower\");\r\n } \r\n \r\n }", "private int getAttackAngle() {\n\t\treturn (160 - (level * 10));\n\t}", "public void applyStrategy(){\n\t\tfloat dx, dy;\n\t\t\n\t\tdx = targetCar.getX() - myCar.getX();\n\t\tdy = targetCar.getY() - myCar.getY();\n\t\t\n\t\t// awesome, atan2 handles all the hard parts of arctan calculations\n\t\tint angle = (int)Math.toDegrees( Math.atan2(dx, dy) );\n\t\tmyCar.setHeading( angle );\n\t}", "public void updateAngle() {\n\t\tfloat ak = 0;\n\t\tfloat gk = 0;\n\t\tak = (float) (pathBoardRectangles.get(curTargetPathCellIndex).getCenterX() - x);\n\t\tgk = (float) (pathBoardRectangles.get(curTargetPathCellIndex).getCenterY() - y);\n\t\tangleDesired = (float) Math.toDegrees(Math.atan2(ak*-1, gk));\n\t\t// if the angle and the angleDesired are opposites the Vector point into the opposite direction\n\t\t// this means the angle will be the angle of the longer vector which is always angle\n\t\t// so if that happens the angleDesired is offset so this won't happen\n\t\tangle = Commons.calculateAngleAfterRotation(angle, angleDesired, rotationDelay);\n\t}", "@SuppressWarnings(\"unused\")\n\tpublic void execute(){\n\t\tdouble mtrFrontRight;\n\t\tdouble mtrFrontLeft;\n\t\tdouble mtrBackRight;\n\t\tdouble mtrBackLeft;\n\t\t\n\t\tdouble speed = 3.0; //The variable we are assigning\n\t\tdouble yawHeading = 0; //Obtained from Robot class\n\t\t\n\t\tdouble getCurrentSetPoint = 0.0; //This Will be obtained via a variable set in the turn to heading class as it is obtained. (possible issues)\n\t\tdouble actualEncoderSetpoint; //Represents the value the encoder is actually at.\n\t\t\n\t\tdouble zeroHeading; //This is a weird one. it is there because of the odd difference calculations issue of say being 5 off of zero and heading being 355;\n\t\t\n\t\t\n\t\t//Switch structure stuff\n\t\tint forward = 0;\n\t\tint left = 1;\n\t\tint right = 2;\n\t\tint state = forward;\n\t\t\n\t\t\n\t\tif(getCurrentSetPoint == 0) {\n\t\t\tstate = forward;\n\t\t} else if(getCurrentSetPoint == 90) {\n\t\t\tstate = right;\n\t\t} else if(getCurrentSetPoint == 270) {\n\t\t\tstate = left;\n\t\t}\n\t\t\n\t\t//where the weirdness of zero heading comes into play.\n\t\tif(yawHeading > 180){\n\t\t\tzeroHeading = 360 - yawHeading;\n\t\t\tzeroHeading = -(zeroHeading);\n\t\t} else {\n\t\t\tzeroHeading = yawHeading;\n\t\t}\n\t\t\n\t\t//Here comes the fun math.\n\t\t// oh yeah and brackets are fun just saying.\n\t\t//try not to get cancer.\n\t\t\n\t\tswitch (state) {\n\t\t\t\n\t\t\tcase 0 :\n\t\t\t\tif(zeroHeading < -5) {\n\t\t\t\t\tmtrFrontRight = -(speed - ((-zeroHeading * Math.pow(10, -1)) * .3) );\n\t\t\t\t\tmtrBackRight = -(speed - ((-zeroHeading * Math.pow(10, -1)) * .3) );\n\t\t\t\t} else {\n\t\t\t\t\tmtrFrontRight = -speed;\n\t\t\t\t\tmtrBackRight = -speed;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(zeroHeading > 5) {\n\t\t\t\t\tmtrFrontLeft = speed - ((zeroHeading * Math.pow(10, -1)) * .3);\n\t\t\t\t\tmtrBackLeft = speed - ((zeroHeading * Math.pow(10, -1)) * .3);\n\t\t\t\t} else {\n\t\t\t\t\tmtrFrontLeft = speed;\n\t\t\t\t\tmtrBackLeft = speed;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\tcase 1 :\n\t\t\t\tif(zeroHeading > 5) {\n\t\t\t\t\t\tmtrBackRight = -(speed - ((zeroHeading * Math.pow(10, -1)) * .3) );\n\t\t\t\t\t\tmtrBackLeft = speed - ((zeroHeading * Math.pow(10, -1)) * .3);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmtrBackRight = -speed;\n\t\t\t\t\t\tmtrBackLeft = speed;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(zeroHeading < -5) {\n\t\t\t\t\t\tmtrFrontRight = -(speed - ((-zeroHeading * Math.pow(10, -1)) * .3) );\n\t\t\t\t\t\tmtrFrontLeft = speed - ((-zeroHeading * Math.pow(10, -1)) * .3);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmtrFrontRight = -speed;\n\t\t\t\t\t\tmtrFrontLeft = speed;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\tcase 2 : \n\t\t\t\tif(zeroHeading < -5) {\n\t\t\t\t\tmtrBackRight = -(speed - ((-zeroHeading * Math.pow(10, -1)) * .3) );\n\t\t\t\t\tmtrBackLeft = speed - ((-zeroHeading * Math.pow(10, -1)) * .3);\n\t\t\t\t} else {\n\t\t\t\t\tmtrBackRight = -speed;\n\t\t\t\t\tmtrBackLeft = speed;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(zeroHeading > 5) {\n\t\t\t\t\tmtrFrontRight = -(speed - ((zeroHeading * Math.pow(10, -1)) * .3) );\n\t\t\t\t\tmtrFrontLeft = speed - ((zeroHeading * Math.pow(10, -1)) * .3);\n\t\t\t\t} else {\n\t\t\t\t\tmtrFrontRight = -speed;\n\t\t\t\t\tmtrFrontLeft = speed;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t}\n\t}", "public double turn (double degrees) {\n setHeading(getHeading() + degrees);\n return Math.abs(degrees);\n }", "public void turn()\n {\n turn(90);\n }", "AngleResource inclination();", "@Override\npublic void setAngles(Entity entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch){\n}", "public void liftArm(){armLifty.set(-drivePad.getThrottle());}", "public void driveCorrection(double presetAngle, double throttle){\n\t\tif (RobotMap.ahrs.getAngle()-presetAngle > 1){\n\t\t\tRobotMap.talonLeft.set(throttle*.60);\n\t\t\tRobotMap.talonRight.set(throttle);\n\t\t}else if(RobotMap.ahrs.getAngle()-presetAngle<-1){\n\t\t\tRobotMap.talonLeft.set(throttle);\n\t\t\tRobotMap.talonRight.set(throttle*.60);\n\t\t}else{\n\t\t\tRobotMap.talonLeft.set(throttle);\n\t\t\tRobotMap.talonRight.set(throttle);\n\t\t}\n\t}", "public void setAngle(float angle){\n\n\t}", "void resetAngle();", "@Override\n protected void initialize() {\n\n /* System clock starts */\n baseTime = System.currentTimeMillis();\n /* Determines time that robot has to timeout after */\n thresholdTime = baseTime + duration;\n\n /* Convert the starting angle */\n if (Robot.drivetrain.getGyroYaw() < 0.0f) {\n /* Negative turn to 180-360 */\n startingAngle = Robot.drivetrain.getGyroYaw() + 360.0f;\n } else {\n /* Positives stay 0-180 */\n startingAngle = Robot.drivetrain.getGyroYaw();\n }\n\n /* The total angle needed to turn */\n totalAngleTurn = startingAngle + inputAngle;\n\n /* Declare the turning direction of special cases when the angle passes over 0 or 360 */\n if (totalAngleTurn < 0.0f) { \n /* If the angle is negative, convert it */\n totalAngleTurn += 360.0f;\n /* Trigger special case */\n specialCase = true;\n /* Trigger counterclockwise */\n clockwise = false;\n }\n if (totalAngleTurn > 360.0f) {\n /* If the angle is above 360, subtract 360 */\n totalAngleTurn -= 360.0f;\n /* Trigger special case */\n specialCase = true;\n /* Trigger clockwise */\n clockwise = true;\n }\n /* Only run if the special cases do not already declare a turning direction */\n if (!specialCase) {\n /* If the input angle is bigger, turn clockwise */\n if (totalAngleTurn > startingAngle) {\n clockwise = true;\n }\n /* If the input angle is smaller, turn counterclockwise */\n if (totalAngleTurn < startingAngle) {\n clockwise = false;\n }\n }\n }", "protected void initialize() {\n \t starttime = Timer.getFPGATimestamp();\n \tthis.startAngle = RobotMap.navx.getAngle();\n \tangleorientation.setSetPoint(RobotMap.navx.getAngle());\n \t\n \tRobotMap.motorLeftTwo.enableControl();\n \tRobotMap.motorRightTwo.enableControl();\n \tRobotMap.motorLeftTwo.enableControl();\n \tRobotMap.motorRightTwo.enableControl();\n \n //settting talon control mode\n \tRobotMap.motorLeftTwo.changeControlMode(TalonControlMode.MotionMagic);\t\t\n\t\tRobotMap.motorLeftOne.changeControlMode(TalonControlMode.Follower);\t\n\t\tRobotMap.motorRightTwo.changeControlMode(TalonControlMode.MotionMagic);\t\n\t\tRobotMap.motorRightOne.changeControlMode(TalonControlMode.Follower);\n\t\t//setting peak and nominal output voltage for the motors\n\t\tRobotMap.motorLeftTwo.configPeakOutputVoltage(+12.0f, -12.0f);\n\t\tRobotMap.motorLeftTwo.configNominalOutputVoltage(0.00f, 0.0f);\n\t\tRobotMap.motorRightTwo.configPeakOutputVoltage(+12.0f, -12.0f);\n\t\tRobotMap.motorRightTwo.configNominalOutputVoltage(0.0f, 0.0f);\n\t\t//setting who is following whom\n\t\tRobotMap.motorLeftOne.set(4);\n\t\tRobotMap.motorRightOne.set(3);\n\t\t//setting pid value for both sides\n\t//\tRobotMap.motorLeftTwo.setCloseLoopRampRate(1);\n\t\tRobotMap.motorLeftTwo.setProfile(0);\n\t RobotMap.motorLeftTwo.setP(0.000014f);\n \tRobotMap.motorLeftTwo.setI(0.00000001);\n\t\tRobotMap.motorLeftTwo.setIZone(0);//325);\n\t\tRobotMap.motorLeftTwo.setD(1.0f);\n\t\tRobotMap.motorLeftTwo.setF(this.fGainLeft+0.014);//0.3625884);\n\t\tRobotMap.motorLeftTwo.setAllowableClosedLoopErr(0);//300);\n\t\t\n\t RobotMap.motorRightTwo.setCloseLoopRampRate(1);\n\t RobotMap.motorRightTwo.setProfile(0);\n\t\tRobotMap.motorRightTwo.setP(0.000014f);\n\t\tRobotMap.motorRightTwo.setI(0.00000001);\n\t\tRobotMap.motorRightTwo.setIZone(0);//325);\n\t\tRobotMap.motorRightTwo.setD(1.0f);\n\t\tRobotMap.motorRightTwo.setF(this.fGainRight);// 0.3373206);\n\t\tRobotMap.motorRightTwo.setAllowableClosedLoopErr(0);//300);\n\t\t\n\t\t//setting Acceleration and velocity for the left\n\t\tRobotMap.motorLeftTwo.setMotionMagicAcceleration(125);\n\t\tRobotMap.motorLeftTwo.setMotionMagicCruiseVelocity(250);\n\t\t//setting Acceleration and velocity for the right\n\t\tRobotMap.motorRightTwo.setMotionMagicAcceleration(125);\n\t\tRobotMap.motorRightTwo.setMotionMagicCruiseVelocity(250);\n\t\t//resets encoder position to 0\t\t\n\t\tRobotMap.motorLeftTwo.setEncPosition(0);\n\t\tRobotMap.motorRightTwo.setEncPosition(0);\n\t //Set Allowable error for the loop\n\t\tRobotMap.motorLeftTwo.setAllowableClosedLoopErr(300);\n\t\tRobotMap.motorRightTwo.setAllowableClosedLoopErr(300);\n\t\t\n\t\t//sets desired endpoint for the motors\n RobotMap.motorLeftTwo.set(motionMagicEndPoint);\n RobotMap.motorRightTwo.set(-motionMagicEndPoint );\n \t\n }", "protected void execute() {\n \n \n \torientation.updatePID(RobotMap.navx.getAngle());\n \tRobotMap.motorLeftOne.set(com.ctre.phoenix.motorcontrol.ControlMode.PercentOutput, 0.5*(orientation.getResult() - speed));\n \tRobotMap.motorLeftTwo.set(com.ctre.phoenix.motorcontrol.ControlMode.PercentOutput, 0.5*(orientation.getResult() - speed));\n \t\n \tRobotMap.motorRightOne.set(com.ctre.phoenix.motorcontrol.ControlMode.PercentOutput, 0.5*(orientation.getResult() + speed));\n \tRobotMap.motorRightTwo.set(com.ctre.phoenix.motorcontrol.ControlMode.PercentOutput, 0.5*(orientation.getResult() + speed));\n \tSystem.out.println(RobotMap.navx.getAngle()-desiredAngle);\n }", "protected void execute() {\n \tif(degrees > 0)\n \t{\n \t\tRobot.driveBase.set(ControlMode.PercentOutput, -speed, speed);\n \t}\n \telse if(degrees < 0)\n \t{\n \t\tRobot.driveBase.set(ControlMode.PercentOutput, speed, -speed);\n \t}\n \t\n }", "public void outputToDashboard() {\n\n double theta = Math.toRadians(getAngleToTarget()); // we rename these for sake of sanity with the math\n double phi = Math.toRadians(getHeightAngleToTarget());\n double depthToTarget = getDistanceToTarget() * Math.cos(phi) * Math.cos(theta);\n double lengthToTarget = getDistanceToTarget() * Math.cos(phi) * Math.sin(theta);\n double heightToTarget = getDistanceToTarget() * Math.sin(phi);\n\n //from here we can add value to depth height and length easily because we are relative to the back hole in its basis.\n double depthToThreePointGoal = depthToTarget + Config.fieldVisionDepthOfThreePointHoleFromVisionTarget;\n double lengthToThreePointGoal = lengthToTarget;\n double heightToThreePointGoal = heightToTarget + Config.fieldVisionHeightOfThreePointHoleFromVisionTarget;\n\n double threePointHoleDistance = Math.sqrt(depthToThreePointGoal * depthToThreePointGoal + lengthToThreePointGoal * lengthToThreePointGoal + heightToThreePointGoal * heightToThreePointGoal);\n //WE'LL NEED THESE LATER HOLD ON TO THE FORMULAE FOR NOW\n double threePointHoleTx = Math.toDegrees(Math.asin(heightToThreePointGoal / threePointHoleDistance)); //aka adjusted phi, aka the angle we need to rotate by to be facing the 3 point goal\n double threePointHoleTy = Math.toDegrees(Math.atan2(lengthToThreePointGoal, depthToThreePointGoal)); //this and distance become the arm angle and power.\n\n SmartDashboard.putNumber(\"Three Point Hole Distance\", threePointHoleDistance);\n SmartDashboard.putNumber(\"Tx (Adjusted)\", threePointHoleTx);\n SmartDashboard.putNumber(\"Ty (Adjusted)\", threePointHoleTy);\n SmartDashboard.putNumber(\"Vision Distance\", getDistanceToTarget());\n SmartDashboard.putNumber(\"Distance to Alliance Wall (Depth)\", depthToTarget);\n }", "@Override\n public void teleopPeriodic() {\n\n double l = left.calculate((int)rightEnc.get());\n double r = right.calculate((int)rightEnc.get());\n\n double gyro_heading = gyro.getYaw(); // Assuming the gyro is giving a value in degrees\n double desired_heading = Pathfinder.r2d(left.getHeading()); // Should also be in degrees\n\n double angleDifference = Pathfinder.boundHalfDegrees(desired_heading - gyro_heading);\n double turn = 0.8 * (-1.0/80.0) * angleDifference;\n\n //left1.set(l + turn);\n //right1.set(r - turn);\n left1.set(0);\n right1.set(0);\n System.out.println(\"Get: \" + rightEnc.get() + \" Raw: \" + rightEnc.getRaw());\n\n }", "@Override\n\tprotected void execute() {\n\t\tdouble speed = Robot.oi.getSpeed();\n\t\tdouble turn = Robot.oi.getTurn();\n\t\tdouble leftSpeed;\n\t\tdouble rightSpeed;\n\n\t\tif (Robot.oi.getGyroReset()) {\n\t\t\tRobot.chassisSubsystem.resetGyroHeading();\n\t\t}\n\n\t\tif (Robot.oi.getGyroCalibrate()) {\n\t\t\tRobot.chassisSubsystem.calibrateGyro();\n\t\t}\n\n\t\t/**\n\t\t * If the chassisSubsystem says that we should be in high gear, switch\n\t\t * to high gear, otherwise, switch to low gear.\n\t\t */\n\t\tif (Robot.oi.getGearShiftButton() >= 0.5) {\n\t\t\tRobot.chassisSubsystem.setGear(Gear.HIGH);\n\t\t} else {\n\t\t\tRobot.chassisSubsystem.setGear(Gear.LOW);\n\t\t}\n\n\t\t\n\n\t\t/**\n\t\t * If the user is not turning, then follow the gyro using the GoStraight\n\t\t * command.\n\t\t */\n\t\t/*\n\t\t * if (Math.abs(turn) < 0.03) { Scheduler.getInstance().add(new\n\t\t * GoStraightCommand(Robot.chassisSubsystem.getCurrentAngle())); return;\n\t\t * }\n\t\t */\n\n\t\t/*\n\t\t * double defaultValue = 0; Robot.chassisSubsystem.resetGyroHeading();\n\t\t * double angle = Robot.oi.table.getNumber(\"angle\", defaultValue);\n\t\t * System.out.println(angle);\n\t\t * \n\t\t * if(Robot.oi.getAlignShotButton()) { Scheduler.getInstance().add(new\n\t\t * PivotToAngleCommand(angle)); return; }\n\t\t */\n\n\n\t\tdouble targetCenterX = 0;\n\t\tif (Robot.oi.getAutoAlignShotButton() && targetCenterX != RobotMap.NO_VISION_TARGET) {\n\t\t\tScheduler.getInstance().add(new AlignAndShootHighShotCommand(MatchPeriod.TELEOP));\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (Robot.oi.getManualAlignShotButton()) {\n\t\t\tScheduler.getInstance().add(new AlignAndShootHighShotCommand(MatchPeriod.TELEOP));\n\t\t\treturn;\n\t\t}\n\n\t\t// Use the driver input to set the speed and direction.\n\t\tif (Math.abs(speed) < 0.03) {\n\t\t\tleftSpeed = turn / 2.0;\n\t\t\trightSpeed = -turn / 2.0;\n\t\t} else {\n\t\t\tleftSpeed = (turn < 0.0) ? speed * (1.0 + turn) : speed;\n\t\t\trightSpeed = (turn < 0.0) ? speed : speed * (1.0 - turn);\n\t\t}\n\n\t\tRobot.chassisSubsystem.setSpeed(leftSpeed, rightSpeed);\n\t}", "private void updateAngles(){\n double xCompassVal, yCompassVal, radCompassVal, compassHeading;\n xCompassVal = compass.getValues()[0];\n yCompassVal = compass.getValues()[2];\n radCompassVal = Math.atan2(yCompassVal, xCompassVal);\n compassHeading = (radCompassVal - 1.5708);\n\n if(compassHeading < 0.0){\n compassHeading = compassHeading + (2 * Math.PI);\n }\n this.currentHeading = compassHeading;\n\n\n //Update difference to position\n double dx = 0.0;\n double dy = 0.0;\n double bearing = 0;\n if(this.currentNode != null && this.nextNode != null ){\n System.out.println(\"Nodes Not Null\");\n dx = this.nextNode.getX() - this.currentNode.getX();\n dy = this.nextNode.getY() - this.currentNode.getY();\n\n }\n\n if (dx > 0 ){\n System.out.println(\"RADD CHECK \" + Math.atan(dy/dx));\n bearing = (Math.PI/2) - Math.atan(dy/dx);\n\n }\n\n if (dx > 0 ){\n System.out.println(\"RADD \" + Math.atan(dy/dx));\n bearing = (0.75 * Math.PI) - Math.atan(dy/dx);\n\n }\n\n if (dx == 0){\n System.out.println(\"dx == 0; Avoiding divide by 0...\");\n\n if (dy > 0) bearing = 0;\n if (dy < 0) bearing = Math.PI;\n if (dy == 0) bearing = 0;\n }\n\n this.bearingAngle = bearing;\n\n }", "float getWindingConnectionAngle();", "void turnTo(double theta){\n\t\tdouble currT = odometer.getTheta();\n\t\tdouble deltaT = theta-currT;\n\t\t//makes sure smallest angle\n\t\tif(deltaT>180){\n\t\t\tdeltaT=deltaT-360;\n\t\t}\n\t\telse if(deltaT <-180){\n\t\t\tdeltaT= deltaT+360;\n\t\t}\n\t\t// set motors here \n\t\tleftMotor.setSpeed(LocalizationLab.ROTATE_SPEED);\n\t\trightMotor.setSpeed(LocalizationLab.ROTATE_SPEED);\n\t\tleftMotor.rotate(convertAngle(LocalizationLab.WHEEL_RADIUS, LocalizationLab.TRACK, deltaT), true);\n\t\trightMotor.rotate(-convertAngle(LocalizationLab.WHEEL_RADIUS, LocalizationLab.TRACK, deltaT), false);\n\n\t}", "public AutoRotateCommand(double angle){\r\n\t\tAHRS ahrs = new AHRS(Port.kMXP);\r\n\t\trequires(Robot.driveSys);\r\n\t\tdouble gangle = ahrs.getAngle();\t\r\n\t\tif(gangle < angle)\r\n\t\t\tspeed = -DEFAULT_SPEED;\r\n\t\telse\r\n\t\t\tspeed = DEFAULT_SPEED;\r\n\t}", "public void angleTurn(float angle, int timeout){\n\t\tcalculateAngles();\n\n\t\t// Get the current program time and starting encoder position before we start our drive loop\n\t\tfloat StartTime = data.time.currentTime();\n\t\tfloat StartPosition = data.drive.leftDrive.getCurrentPosition();\n\n\t\t// Reset our Integral and Derivative data.\n\t\tdata.PID.integralData.clear();\n\t\tdata.PID.derivativeData.clear();\n\n\n\t\t// Manually calculate our first target\n\t\tdata.PID.target = (calculateAngles() + (data.PID.IMURotations * 360)) + angle;\n\n\t\t// We need to keep track of how much time passes between a loop.\n\t\tfloat LoopTime = data.time.currentTime();\n\n\t\t// This is the main loop of our straight drive.\n\t\t// We use encoders to form a loop that corrects rotation until we reach our target.\n\t\twhile(StartTime + timeout > data.time.currentTime()){\n\n\t\t\t// Record the time since the previous loop.\n\t\t\tLoopTime = data.time.timeFrom(LoopTime);\n\t\t\t// Calculate our angles. This method may modify the input Rotations.\n\t\t\t//IMURotations =\n\t\t\tcalculateAngles();\n\t\t\t// Calculate our PID\n\t\t\tcalculatePID(LoopTime);\n\n\t\t\t// Calculate the Direction to travel to correct any rotational errors.\n\t\t\tfloat Direction = ((data.PID.I * data.PID.ITuning) / 2000) + ((data.PID.P * data.PID.PTuning) / 2000) + ((data.PID.D * data.PID.DTuning) / 2000);;\n\n\t\t\tif(Math.abs(Direction) <= 0.03f) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tdata.drive.rightDrive.setPower(data.drive.POWER_CONSTANT - (Direction));\n\t\t\tdata.drive.leftDrive.setPower(data.drive.POWER_CONSTANT + (Direction));\n\t\t}\n\t\t// Our drive loop has completed! Stop the motors.\n\t\tdata.drive.rightDrive.setPower(0);\n\t\tdata.drive.leftDrive.setPower(0);\n\t}", "double getCompass(double magnetic);", "public void turnLeft()\r\n\t{\r\n\t\t\r\n\t\theading -= 2; //JW\r\n\t\t//Following the camera:\r\n\t\t\t//heading -= Math.sin(Math.toRadians(15))*distance; \r\n\t\t\t//heading -= Math.cos(Math.toRadians(15))*distance;\r\n\t}", "private float calculateAngle() {\r\n\r\n\t\tdouble angleTemp = Math.atan2(Target.getY() - y, Target.getX() - x);\r\n\t\t// I needed to use wikipedia to get this i\r\n\t\t// did not learn this in math and needed\r\n\t\t// to use a couplle youtube tutorials to\r\n\t\t// find out how to do the math in java\r\n\t\t// aswell thank fully one had the exact\r\n\t\t// way of doing this\r\n\t\treturn (float) Math.toDegrees(angleTemp) + 90;\r\n\t}", "public void turnTo(double angle){\n updateUndoBuffers(new LinkedList<>());\n myAngle = angle+STARTING_ANGLE;\n }", "public abstract void steer(double angle);", "@Override\n public void execute() {\n double output = controller.calculate(driveSubsystem.getHeading(), setPoint);\n driveSubsystem.driveCartesan(0.0, 0.0, output / 180);\n }", "public void rotateToAngle(double angle) {\n controlState = ControlState.POSITION;\n outputPosition = -angle * TurretConstants.TICKS_PER_DEGREE;\n }", "public double getAngleToTarget(){\n return 0d;\n }", "public void execute() {\n RobotContainer.drive.turnToAngle(this.angle, turnSpeed);\n }", "public void setAngle(float angle) {\n this.angle = angle;\n float cos = (float) Math.cos(angle);\n float sin = (float) Math.sin(angle);\n m00 = cos;\n m01 = sin;\n m10 = -sin;\n m11 = cos;\n }", "@Override\n public void execute() {\n //double sliderValue = -1.0 * m_xbox.getRawAxis(3);\n //sliderValue = (sliderValue /2) + 0.5;\n double joyForward = m_xbox.getRawAxis(Constants.OI.yAxis);\n double joyTurn = m_xbox.getRawAxis(Constants.OI.xAxis);\n // System.out.println(\"Y axis: \" + joyForward);\n // System.out.println(\"X axis: \" + joyTurn);\n if(Math.abs(joyForward) < 0.1 ) {\n joyForward = 0.0;\n }\n if(Math.abs(joyTurn) < 0.1) {\n joyTurn = 0.0;\n }\n m_drivetrain.setArcadeDrive(0.7*joyForward, 0.6 * joyTurn);\n // if(Math.abs(joyForward) < 0.1) {\n // m_drivetrain.setArcadeDrive(sliderValue * joyForward, joyTurn, true);\n // } else {\n // m_drivetrain.setArcadeDrive(sliderValue * joyForward, 0.8 * joyTurn, false);\n // }\n \n // 14 feet, 7 inches\n }", "public void init() {\n//\t\tint anglesToEncTicks = (int) ((90 - currentAngle) * encoderTicksPerRev);\n//\t\tarmMotor.setEncPosition(anglesToEncTicks);\n\t\twhile (armMotor.isFwdLimitSwitchClosed() != true) {\n\t\t\tarmMotor.set(.2);\n\t\t}\n\t\tSystem.out.println(\"Calibrated!\");\n\t\tarmMotor.setEncPosition(0);\n\t}", "public void initialize() {\n // RobotContainer.drive.zeroAngle();\n this.angle = this.angle + RobotContainer.drive.getAngle();\n }", "@org.junit.Test\n public void testTicksForDesiredAngle90From0() {\n int resultsTicks = SwerveDriveMath.ticksForDesiredAngle(testConfig,0, 90);\n assertEquals(90, resultsTicks);\n }", "public void setAngle(double angle) {\n if (!isReset) {\n System.out.println(\"ARM NOT RESETTED. ROBOT WILL NOT MOVE ARM AS PID WILL DESTROY IT.\");\n armMotor.set(ControlMode.PercentOutput, 0);\n return;\n }\n double targetPositionRotations = angle * Const.kArmDeg2Talon4096Unit * Const.kArmGearRatioArm2Encoder;\n System.out.println(\"setting PID setpoint \" + targetPositionRotations);\n armMotor.set(ControlMode.Position, targetPositionRotations);\n }", "protected void execute() {\n \tRobot.m_oi.messageDriverStation(\"COMMAND AutoTurnRight reported angle is = \" + Robot.driveBase.getGyroAngle());\n \tdouble angle = Robot.driveBase.getGyroAngle();\n \tdouble increment = (requiredAngle - angle) * kP * -0.08;\n \tRobot.driveBase.autoDrive(0.1,0.5);\n }", "private void lookAt(Bot bot) {\n\t\t// http://www.gamefromscratch.com/post/2012/11/18/GameDev-math-recipes-Rotating-to-face-a-point.aspx\n\t\tdesiredDirection = Math.atan2(bot.getY() - sens.getYPos(), bot.getX() - sens.getXPos()) * (180 / Math.PI);\n\t\tfixDirections();\n\t}", "private void calculateLocation()\r\n\t{\r\n\t\tdouble leftAngleSpeed \t= this.angleMeasurementLeft.getAngleSum() / ((double)this.angleMeasurementLeft.getDeltaT()/1000); //degree/seconds\r\n\t\tdouble rightAngleSpeed \t= this.angleMeasurementRight.getAngleSum() / ((double)this.angleMeasurementRight.getDeltaT()/1000); //degree/seconds\r\n\r\n\t\tdouble vLeft\t= (leftAngleSpeed * Math.PI * LEFT_WHEEL_RADIUS ) / 180 ; //velocity of left wheel in m/s\r\n\t\tdouble vRight\t= (rightAngleSpeed * Math.PI * RIGHT_WHEEL_RADIUS) / 180 ; //velocity of right wheel in m/s\t\t\r\n\t\tdouble w \t\t= (vRight - vLeft) / WHEEL_DISTANCE; //angular velocity of robot in rad/s\r\n\t\t\r\n\t\tDouble R \t= new Double(( WHEEL_DISTANCE / 2 ) * ( (vLeft + vRight) / (vRight - vLeft) ));\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\tdouble ICCx = 0;\r\n\t\tdouble ICCy = 0;\r\n\r\n\t\tdouble W_xResult \t\t= 0;\r\n\t\tdouble W_yResult \t\t= 0;\r\n\t\tdouble W_angleResult \t= 0;\r\n\t\t\r\n\t\tdouble E_xResult \t\t= 0;\r\n\t\tdouble E_yResult \t\t= 0;\r\n\t\tdouble E_angleResult \t= 0;\r\n\t\t\r\n\t\t//short axe = 0;\r\n\t\t\r\n\t\tdouble deltaT = ((double)this.angleMeasurementLeft.getDeltaT())/1000;\r\n\t\t\r\n\t\t// Odometry calculations\r\n\t\tif (R.isNaN()) \t\t\t\t//robot don't move\r\n\t\t{\r\n\t\t\tW_xResult\t\t= this.pose.getX();\r\n\t\t\tW_yResult\t\t= this.pose.getY();\r\n\t\t\tW_angleResult \t= this.pose.getHeading();\r\n\t\t} \r\n\t\telse if (R.isInfinite()) \t//robot moves straight forward/backward, vLeft==vRight\r\n\t\t{ \r\n\t\t\tW_xResult\t\t= this.pose.getX() + vLeft * Math.cos(this.pose.getHeading()) * deltaT;\r\n\t\t\tW_yResult\t\t= this.pose.getY() + vLeft * Math.sin(this.pose.getHeading()) * deltaT;\r\n\t\t\tW_angleResult \t= this.pose.getHeading();\r\n\t\t} \r\n\t\telse \r\n\t\t{\t\t\t\r\n\t\t\tICCx = this.pose.getX() - R.doubleValue() * Math.sin(this.pose.getHeading());\r\n\t\t\tICCy = this.pose.getY() + R.doubleValue() * Math.cos(this.pose.getHeading());\r\n\t\t\r\n\t\t\tW_xResult \t\t= Math.cos(w * deltaT) * (this.pose.getX()-ICCx) - Math.sin(w * deltaT) * (this.pose.getY() - ICCy) + ICCx;\r\n\t\t\tW_yResult \t\t= Math.sin(w * deltaT) * (this.pose.getX()-ICCx) + Math.cos(w * deltaT) * (this.pose.getY() - ICCy) + ICCy;\r\n\t\t\tW_angleResult \t= this.pose.getHeading() + w * deltaT;\r\n\t\t}\r\n\t\t\r\n\t\tthis.pose.setLocation((float)W_xResult, (float)W_yResult);\r\n\t\tthis.pose.setHeading((float)W_angleResult);\r\n\t\t\r\n\t\t// Conversion to grads\r\n\t\tW_angleResult = W_angleResult/Math.PI*180;\r\n\t\t\r\n\t\t// Get the heading axe\r\n\t\t//axe = getHeadingAxe();\r\n\t\tgetHeadingAxe();\r\n\t\t\r\n\t\t// Verify the coordinates and the heading angle\r\n\t\tif (Po_Corn == 1)\r\n\t\t{\r\n\t\t\tswitch (Po_CORNER_ID)\r\n\t\t\t{\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\tE_xResult = 0;\r\n\t\t\t\t\tE_yResult = 0;\r\n\t\t\t\t\tPo_ExpAng = 0;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\tE_xResult = 1.8;\r\n\t\t\t\t\tE_yResult = 0.11;\r\n\t\t\t\t\tPo_ExpAng = 90;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tE_xResult = 1.6;\r\n\t\t\t\t\tE_yResult = 0.6;\r\n\t\t\t\t\tPo_ExpAng = 180;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 3:\r\n\t\t\t\t\tE_xResult = 1.5;\r\n\t\t\t\t\tE_yResult = 0.45;\r\n\t\t\t\t\tPo_ExpAng = 270;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 4:\r\n\t\t\t\t\tE_xResult = 1.5;\r\n\t\t\t\t\tE_yResult = 0.3;\r\n\t\t\t\t\tPo_ExpAng = 180;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 5:\r\n\t\t\t\t\tE_xResult = 0.3;\r\n\t\t\t\t\tE_yResult = 0.3;\r\n\t\t\t\t\tPo_ExpAng = 90;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 6:\r\n\t\t\t\t\tE_xResult = 0.3;\r\n\t\t\t\t\tE_yResult = 0.6;\r\n\t\t\t\t\tPo_ExpAng = 180;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 7:\r\n\t\t\t\t\tE_xResult = 0;\r\n\t\t\t\t\tE_yResult = 0.6;\r\n\t\t\t\t\tPo_ExpAng = 270;\r\n\t\t\t\t\tbreak;\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tE_angleResult = W_angleResult;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tint block = 0;\r\n\t\t\t// white = 0, black = 2, grey = 1\r\n\t\t\tif ((lineSensorLeft == 0) && (lineSensorRight == 0) && (block == 0)) \t// Robot moves on the black line\r\n\t\t\t{\r\n\t\t\t\tswitch (Po_CORNER_ID)\t\t\t\t\t\t\t\t// Even numbers - x, Odd numbers - y\r\n\t\t\t\t{\r\n\t\t\t\tcase 0: \r\n\t\t\t\t\tif (this.pose.getX() < 1.6)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = Po_ExpAng;\r\n\t\t\t\t\t\tE_yResult = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = W_angleResult;\r\n\t\t\t\t\t\tE_yResult = W_yResult;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tE_xResult = W_xResult;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase 1: \r\n\t\t\t\t\tif (this.pose.getY() < 0.4)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = Po_ExpAng;\r\n\t\t\t\t\t\tE_xResult = 1.8;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = W_angleResult; \r\n\t\t\t\t\t\tE_xResult = W_xResult;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tE_yResult = W_yResult;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tif (this.pose.getX() > 1.65)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = Po_ExpAng;\r\n\t\t\t\t\t\tE_yResult = 0.6;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = W_angleResult;\r\n\t\t\t\t\t\tE_yResult = W_yResult;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tE_xResult = W_xResult;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase 3:\r\n\t\t\t\t\tif (this.pose.getY() > 0.4)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = Po_ExpAng;\r\n\t\t\t\t\t\tE_xResult = 1.5; \r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = W_angleResult; \r\n\t\t\t\t\t\tE_xResult = W_xResult;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tE_yResult = W_yResult;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase 4: \r\n\t\t\t\t\tif (this.pose.getX() > 0.4)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = Po_ExpAng;\r\n\t\t\t\t\t\tE_yResult = 0.3;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = W_angleResult;\r\n\t\t\t\t\t\tE_yResult = W_yResult;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tE_xResult = W_xResult;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase 5:\r\n\t\t\t\t\tif (this.pose.getY() < 0.5)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = Po_ExpAng;\r\n\t\t\t\t\t\tE_xResult = 0.3;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = W_angleResult; \r\n\t\t\t\t\t\tE_xResult = W_xResult;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tE_yResult = W_yResult;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase 6: \r\n\t\t\t\t\tif (this.pose.getX() > 0.1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = Po_ExpAng;\r\n\t\t\t\t\t\tE_yResult = 0.6;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = W_angleResult;\r\n\t\t\t\t\t\tE_yResult = W_yResult;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tE_xResult = W_xResult;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase 7:\r\n\t\t\t\t\tif (this.pose.getY() > 0.1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = Po_ExpAng;\r\n\t\t\t\t\t\tE_xResult = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = W_angleResult; \r\n\t\t\t\t\t\tE_xResult = W_xResult;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tE_yResult = W_yResult;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tdefault: \r\n\t\t\t\t\tE_angleResult = W_angleResult;\r\n\t\t\t\t\tE_yResult = W_yResult;\r\n\t\t\t\t\tE_xResult = W_xResult;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if(((lineSensorLeft == 0) && (lineSensorRight == 2)) || ((lineSensorLeft == 2) && (lineSensorRight == 0)))\r\n\t\t\t{\r\n\t\t\t\tE_xResult = W_xResult;\r\n\t\t\t\tE_yResult = W_yResult;\r\n\t\t\t\t\r\n\t \tif (W_angleResult >= TRSH_W)\r\n\t \t{\r\n\t \t\tE_angleResult = TRSH_W;\r\n\t \t}\r\n\t \telse if (W_angleResult >= (360 - TRSH_W))\r\n\t \t{\r\n\t \t\tE_angleResult = 360 - TRSH_W;\r\n\t \t}\r\n\t \telse\r\n\t \t{\r\n\t \t\tE_angleResult = W_angleResult;\r\n\t \t}\r\n\t \t\r\n\t \t// test\r\n\t \tE_angleResult = W_angleResult;\r\n\t\t\t}\r\n\t\t\telse if(((lineSensorLeft == 0) && (lineSensorRight == 1)) || ((lineSensorLeft == 1) && (lineSensorRight == 0)))\r\n\t\t\t{\r\n\t\t\t\tE_xResult = W_xResult;\r\n\t\t\t\tE_yResult = W_yResult;\r\n\t\t\t\t\r\n\t \tif (W_angleResult >= TRSH_G)\r\n\t \t{\r\n\t \t\tE_angleResult = TRSH_G;\r\n\t \t}\r\n\t \telse if (W_angleResult >= (360 - TRSH_G))\r\n\t \t{\r\n\t \t\tE_angleResult = 360 - TRSH_G;\r\n\t \t}\r\n\t \telse\r\n\t \t{\r\n\t \t\tE_angleResult = W_angleResult;\r\n\t \t}\r\n\t \t\r\n\t \t// test\r\n\t \tE_angleResult = W_angleResult;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tE_xResult = W_xResult;\r\n\t\t\t\tE_yResult = W_yResult;\r\n\t\t\t\tE_angleResult = W_angleResult;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tLCD.drawString(\"AngRs: \" + (E_angleResult), 0, 7);\r\n\t\t\r\n\t\t// Conversion to rads\r\n\t\tW_angleResult = W_angleResult*Math.PI/180;\r\n\t\tE_angleResult = E_angleResult*Math.PI/180;\r\n\t\t\r\n\t\tif ((Po_CORNER_ID == 3) && (100*this.pose.getY() < 45))\r\n\t\t{\r\n\t\t\tE_angleResult = 3*Math.PI/180;;\r\n\t\t}\r\n\t\t\r\n\t\tthis.pose.setLocation((float)E_xResult, (float)E_yResult);\r\n\t\tthis.pose.setHeading((float)E_angleResult);\r\n\t\t\r\n\t\t/*\r\n\t\t// Integration deviation correction\r\n\t\tthis.pose.setLocation((float)(W_xResult), (float)(W_yResult + (0.01*22.4)/175));\r\n\t\tthis.pose.setHeading((float)((W_angleResult + 14/175)*Math.PI/180));\r\n\t\t*/\r\n\t}", "@Override\n\tpublic void setAngle(float sweepAngle) {\n\t\tMessage msg = handler.obtainMessage();\n\t\tmsg.arg1 = (int) (sweepAngle/360*100);\n\t\tmsg.what = 1;\n\t\thandler.sendMessage(msg);\n\t}", "private void driveForwardEnc()\r\n\t{\r\n\t\t//drive.setPos(0, 0, Config.Auto.encDriveForwardDistance, Config.Auto.encDriveForwardDistance);\r\n\t}", "private void turnBearing(int bearing) {\n int heading = gyro.getHeadingBasic();\n int cw = (bearing - heading + FULL_CIRCLE) % FULL_CIRCLE;\n int ccw = (heading - bearing + FULL_CIRCLE) % FULL_CIRCLE;\n\n // Turn the short way\n if (Math.abs(cw) <= Math.abs(ccw)) {\n turnAngle(cw);\n } else {\n turnAngle(-ccw);\n }\n }", "public void mecanumDrive(double forward, double turn, double strafe, double multiplier) {\n double vd = Math.hypot(forward, strafe);\n double theta = Math.atan2(forward, strafe) - (Math.PI / 4);\n turnPower = turn;\n\n// if(forward == 0 && strafe == 0 && turn == 0) {\n// Time.reset();\n// }\n//\n// double accLim = (Time.time()/1.07)*((0.62*Math.pow(Time.time(), 2))+0.45);\n//\n// if(forward < 0 || turn < 0 || strafe < 0) {\n//\n// }\n//\n// if(turn == 0) {\n// targetAngle = getImuAngle();\n// turnPower = pid.run(0.001, 0, 0, 10, targetAngle);\n// } else {\n// targetAngle = getImuAngle();\n// }\n\n double[] v = {\n vd * Math.sin(theta) - turnPower,\n vd * Math.cos(theta) + turnPower,\n vd * Math.cos(theta) - turnPower,\n vd * Math.sin(theta) + turnPower\n };\n\n double[] motorOut = {\n multiplier * (v[0] / 1.07) * ((0.62 * Math.pow(v[0], 2)) + 0.45),\n multiplier * (v[1] / 1.07) * ((0.62 * Math.pow(v[1], 2)) + 0.45),\n multiplier * (v[2] / 1.07) * ((0.62 * Math.pow(v[2], 2)) + 0.45),\n multiplier * (v[3] / 1.07) * ((0.62 * Math.pow(v[3], 2)) + 0.45)\n };\n\n fr.setPower(motorOut[0]);\n fl.setPower(motorOut[1]);\n br.setPower(motorOut[2]);\n bl.setPower(motorOut[3]);\n }", "private int DirectionCalculation(int angle)\r\n\t{\t\r\n\t\treturn (int) ((angle/14.28)+1); //Angle divided by (100/(parts-1)) = 1-8\r\n\t}", "private void updateLinearDrive() {\n// double rotations = (getLeftRotations() + getRightRotations()) / 2;\n// linearDriveDistance = Conversion.rotationsToInches(rotations, Constants.driveWheelDiameter);\n// double angleController = turnControl.getOutput(linearDriveMultiplier * (navX.getAngle() - linearDriveTargetAngle));\n// double driveController = driveControl.getOutput(linearDriveTargetDistance - linearDriveDistance);\n// setOutput(driveController + angleController, driveController - angleController);\n }", "@Override\n public void setSetpoint(double setpoint) {\n if (getController() != null) {\n getController().setSetpoint(Utilities.clip(setpoint, Constants.Hood.MIN_ANGLE, Constants.Hood.MAX_ANGLE));\n }\n super.setSetpoint(Utilities.clip(setpoint, Constants.Hood.MIN_ANGLE, Constants.Hood.MAX_ANGLE));\n }", "private void Turn(double degrees) {\n\n // Update the target angle\n TargetAngle = NormalizeAngle(TargetAngle + degrees);\n\n // Loops until the robot has reached the target\n while (opModeIsActive()) {\n\n // Calculate how many degrees the robot still has to turn\n double DegreesRemaining = NormalizeAngle(TargetAngle - GetRobotAngle());\n\n // Calculate the turn speed\n double TurnSpeed;\n if (DegreesRemaining < 180)\n TurnSpeed = -MinTurnSpeed + -((MaxTurnSpeed - MinTurnSpeed) * Math.min(DegreesRemaining / AccelAngle, 1));\n else\n TurnSpeed = MinTurnSpeed + ((MaxTurnSpeed - MinTurnSpeed) * Math.min((360 - DegreesRemaining) / AccelAngle, 1));\n\n // Apply the new motor speeds\n backleft.setPower(TurnSpeed);\n backright.setPower(TurnSpeed);\n frontleft.setPower(TurnSpeed);\n frontright.setPower(TurnSpeed);\n\n if(Math.abs(DegreesRemaining) < 1)\n break;\n }\n\n // Stop the motors\n frontright.setPower(0);\n frontleft.setPower(0);\n backright.setPower(0);\n backleft.setPower(0);\n }", "double adjust_angle_rotation(double angle) {\n double temp;\n temp=angle;\n if(temp>90) {\n temp=180-temp;\n }\n return temp;\n }", "public float getXAngle(){\n Point project=new Point(0,accel.y,accel.z);\n\n float angl=(float)Math.asin(project.y / project.module())* PreferenceHelper.sensetivity;\n //float angl=(float)Math.acos(accel.z/accel.module())*100f;\n if(Float.isNaN(angl)) angl=0.5f;\n return (float)(Math.rint( toFlowX(angl)/1.0) * 1.0);\n }", "public void setRngBearing(double range, double bearing);", "protected void execute() {\n \tdouble a = 0.5;\n \tdouble x = Robot.oi.getPilotAxis(Robot.oi.LOGITECH_F510_AXIS_RIGHT_STICK_X);\n \tdouble y = Robot.oi.getPilotAxis(Robot.oi.LOGITECH_F510_AXIS_LEFT_STICK_Y);\n \tx = 0.5*((a * Math.pow(x, 3)) + ((1-a) * x));\n \ty = a * Math.pow(y, 3) + (1-a) * y;\n \tdouble left = y + x;\n\t\tdouble right = y - x;\n\t\t\n\t\t// Apply values to motors\n\t\tRobot.chassis.setLeft(left);\n\t\tRobot.chassis.setRight(right);\n }", "@Override\n protected void execute() {\n /*\n * Keep the angle read from the gyro constantly converted as long as currentAngle is \n * referenced compared to always reading raw values from the getGyroYaw.\n */\n if (Robot.drivetrain.getGyroYaw() < 0.0f) {\n currentAngle = Robot.drivetrain.getGyroYaw() + 360.0f;\n } else {\n currentAngle = Robot.drivetrain.getGyroYaw();\n\n }\n if (!clockwise) {\n /* Counterclockwise turning */\n Robot.drivetrain.arcadeDrive(speedY, -speedZ);\n } else if (clockwise) {\n /* Clockwise turning */\n Robot.drivetrain.arcadeDrive(speedY, speedZ);\n }\n }", "private int getBearing() {\n\t\treturn 0;\r\n\t}", "protected void execute() {\n \tSystem.out.println(\"Gyro: \" + Drivetrain.gyro.getAngle());\n\t\tif (degrees > 0) {\n\t\t\twhile (Drivetrain.gyro.getAngle() < degrees) {\n\t\t\t\tDrivetrain.frontRight.set(ControlMode.PercentOutput, 0.25);\n\t\t\t\tDrivetrain.rearRight.set(ControlMode.PercentOutput, 0.25);\n\t\t\t\tDrivetrain.frontLeft.set(ControlMode.PercentOutput, 0.25);\n\t\t\t\tDrivetrain.rearLeft.set(ControlMode.PercentOutput, 0.25);\n\t\t\t}\n\t\t} \n\t\telse {\n\t\t\twhile (Drivetrain.gyro.getAngle() > degrees) {\n\t\t\t\tDrivetrain.frontRight.set(ControlMode.PercentOutput, -0.25);\n\t\t\t\tDrivetrain.rearRight.set(ControlMode.PercentOutput, -0.25);\n\t\t\t\tDrivetrain.frontLeft.set(ControlMode.PercentOutput, -0.25);\n\t\t\t\tDrivetrain.rearLeft.set(ControlMode.PercentOutput, -0.25);\n\t\t\t}\n\t\t}\n }", "double getAngle();", "double getAngle();", "void base_case() {\n down_angle=Math.abs(down_angle);\n up_angle=Math.abs(up_angle);\n distance_from_object = human_length / Math.tan(Math.toRadians(down_angle));\n length_of_object = human_length + Math.tan(Math.toRadians(up_angle)) * distance_from_object;\n if(length_of_object/100>0) {\n ORI.setText(\"length_of_object :\\n\" + String.valueOf(String.format(\"%.2f\", (length_of_object / 100)) + \" M\" +\n \"\\n\" + \"distance_from_object :\\n\" + String.valueOf(String.format(\"%.2f\", (distance_from_object / 100))) + \" M\"));\n ORI.setVisibility(View.VISIBLE);\n }\n else {\n Toast.makeText(Online.this, \"Move Forward\", Toast.LENGTH_LONG).show();\n down_angle = 0;\n up_angle = 0;\n touch_ground_switch.setVisibility(View.VISIBLE);\n }\n\n\n }", "public void turnRight()\r\n\t{\r\n\t\theading += 2; //JW\r\n\t\t//Following the camera\r\n\t\t//heading += Math.sin(Math.toRadians(15)); \r\n\t\t//heading += Math.cos(Math.toRadians(15));\r\n\t}", "@Override\n public void execute() {\n mShooter.setAngle(mServoAngle);\n }", "void doScanner() {\r\n\t\tsetTurnRadarLeftRadians(2 * PI);\r\n\t}", "public void arcDrive (double inches, float degreesToTurn, double basePower, boolean clockwise, double p_coeff) throws InterruptedException {\n\n int target = (int) (inches * ticksPerInch);\n double correction;\n double leftPower = basePower;\n double rightPower = basePower;\n double max;\n int lastEncoder;\n int currentEncoder = 0;\n int deltaEncoder;\n double proportionEncoder;\n float lastHeading;\n float currentHeading = zRotation;\n float deltaHeading;\n double proportionHeading;\n double proportionArc;\n long loops = 0;\n\n if(basePower<0){\n clockwise = !clockwise;\n degreesToTurn *= -1;\n }\n\n double P_ARC_COEFF = p_coeff;\n\n setEncoderBase();\n\n frontRight.setPower(basePower);\n backRight.setPower(basePower);\n frontLeft.setPower(basePower);\n backLeft.setPower(basePower);\n\n Thread.sleep(10);\n\n while (((LinearOpMode) callingOpMode).opModeIsActive()) {\n\n lastEncoder = currentEncoder;\n currentEncoder = getCurrentAveragePosition();\n\n deltaEncoder = currentEncoder - lastEncoder;\n\n lastHeading = currentHeading;\n currentHeading = zRotation;\n\n deltaHeading = currentHeading - lastHeading;\n deltaHeading = normalize360two(deltaHeading);\n\n proportionEncoder = (double) deltaEncoder / target;\n proportionHeading = (double) deltaHeading / degreesToTurn;\n\n proportionArc = proportionEncoder - proportionHeading;\n\n correction = proportionArc * P_ARC_COEFF;\n\n if(clockwise) {\n leftPower += correction;\n rightPower -= correction;\n } else {\n leftPower -= correction;\n rightPower += correction;\n }\n\n max = Math.max(Math.abs(leftPower), Math.abs(rightPower));\n if (max > 1.0) {\n leftPower /= max;\n rightPower /= max;\n }\n frontRight.setPower(rightPower);\n backRight.setPower(rightPower);\n frontLeft.setPower(leftPower);\n backLeft.setPower(leftPower);\n\n if (((loops + 10) % 10) == 0) {\n callingOpMode.telemetry.addData(\"TARGET\", target);\n callingOpMode.telemetry.addData(\"gyro\", zRotation);\n callingOpMode.telemetry.addData(\"encoder\", currentEncoder);\n callingOpMode.telemetry.addData(\"heading\", currentHeading);\n callingOpMode.telemetry.addData(\"dEncoder\", deltaEncoder);\n callingOpMode.telemetry.addData(\"dHeading\", deltaHeading);\n callingOpMode.telemetry.addData(\"pEncoder\", proportionEncoder);\n callingOpMode.telemetry.addData(\"pHeading\", proportionHeading);\n callingOpMode.telemetry.addData(\"arc\", proportionArc);\n callingOpMode.telemetry.addData(\"correction\", correction);\n callingOpMode.telemetry.addData(\"leftPower\", leftPower);\n callingOpMode.telemetry.addData(\"rightPower\", rightPower);\n callingOpMode.telemetry.addData(\"loops\", loops);\n callingOpMode.telemetry.update();\n }\n\n loops++;\n\n updateGlobalPosition();\n\n Thread.sleep(10);\n\n if(Math.abs(target) <= Math.abs(getCurrentAveragePosition())) {\n callingOpMode.telemetry.addData(\"TARGET\", target);\n callingOpMode.telemetry.addData(\"gyro\", zRotation);\n callingOpMode.telemetry.addData(\"encoder\", currentEncoder);\n callingOpMode.telemetry.addData(\"heading\", currentHeading);\n callingOpMode.telemetry.addData(\"dEncoder\", deltaEncoder);\n callingOpMode.telemetry.addData(\"dHeading\", deltaHeading);\n callingOpMode.telemetry.addData(\"pEncoder\", proportionEncoder);\n callingOpMode.telemetry.addData(\"pHeading\", proportionHeading);\n callingOpMode.telemetry.addData(\"arc\", proportionArc);\n callingOpMode.telemetry.addData(\"correction\", correction);\n callingOpMode.telemetry.addData(\"leftPower\", leftPower);\n callingOpMode.telemetry.addData(\"rightPower\", rightPower);\n callingOpMode.telemetry.addData(\"loops\", loops);\n callingOpMode.telemetry.update();\n break;\n }\n }\n }", "private void turnClockwise(){\n\t\tswitch(this.facingDirection){\n\t\tcase NORTH:\n\t\t\tfacingDirection = Direction.EAST;\n\t\t\tbreak;\n\t\tcase SOUTH:\n\t\t\tfacingDirection = Direction.WEST;\n\t\t\tbreak;\n\t\tcase WEST:\n\t\t\tfacingDirection = Direction.NORTH;\n\t\t\tbreak;\n\t\tcase EAST:\n\t\t\tfacingDirection = Direction.SOUTH;\n\t\t}\n\t}", "public double getStartAngle();", "void frontAngle(float degrees) {\n float newFront = radians(degrees);\n \n // movement done from this direction from now on\n _rotVector.rotate(newFront - _front);\n \n _front = newFront;\n }", "@Override\n public void execute() {\n swerve.drive(0, 0, \n turnPID.calculate(swerve.getHeadingDouble(), angleSetpoint) * Constants.Swerve.kMaxAngularSpeed\n , false);\n }", "private void calculateMotorOutputs(int angle, int strength) {\n Point cart_point = polarToCart(angle,strength);\n\n final double max_motor_speed = 1024.0;\n final double min_motor_speed = 600.0;\n\n final double max_joy_val = 100;\n\n final double fPivYLimit = 24.0; // 32.0 was originally recommended\n\n // TEMP VARIABLES\n double nMotPremixL; // Motor (left) premixed output (-100..+99)\n double nMotPremixR; // Motor (right) premixed output (-100..+99)\n int nPivSpeed; // Pivot Speed (-100..+99)\n double fPivScale; // Balance scale b/w drive and pivot ( 0..1 )\n\n\n // Calculate Drive Turn output due to Joystick X input\n if (cart_point.y >= 0) {\n // Forward\n nMotPremixL = (cart_point.x>=0)? max_joy_val : (max_joy_val + cart_point.x);\n nMotPremixR = (cart_point.x>=0)? (max_joy_val - cart_point.x) : max_joy_val;\n } else {\n // Reverse\n nMotPremixL = (cart_point.x>=0)? (max_joy_val - cart_point.x) : max_joy_val;\n nMotPremixR = (cart_point.x>=0)? max_joy_val : (max_joy_val + cart_point.x);\n }\n\n // Scale Drive output due to Joystick Y input (throttle)\n nMotPremixL = nMotPremixL * cart_point.y/max_joy_val;\n nMotPremixR = nMotPremixR * cart_point.y/max_joy_val;\n\n // Now calculate pivot amount\n // - Strength of pivot (nPivSpeed) based on Joystick X input\n // - Blending of pivot vs drive (fPivScale) based on Joystick Y input\n nPivSpeed = cart_point.x;\n fPivScale = (Math.abs(cart_point.y)>fPivYLimit)? 0.0 : (1.0 - Math.abs(cart_point.y)/fPivYLimit);\n\n // Calculate final mix of Drive and Pivot, produces normalised values between -1 and 1\n double motor_a_prescale = ( (1.0-fPivScale)*nMotPremixL + fPivScale*( nPivSpeed) ) /100;\n double motor_b_prescale = ( (1.0-fPivScale)*nMotPremixR + fPivScale*(-nPivSpeed) ) /100;\n\n // convert normalised values to usable motor range\n motor_a = (int)( motor_a_prescale * (max_motor_speed - min_motor_speed) + (Math.signum(motor_a_prescale)*min_motor_speed) );\n motor_b = (int)( motor_b_prescale * (max_motor_speed - min_motor_speed) + (Math.signum(motor_b_prescale)*min_motor_speed) );\n\n }", "@Test\r\n\tpublic void testTurn()\r\n\t{\r\n\t\tIDirectionController directionController = new RadianDirectionControlAdapter(new RadianDirectionControl());\r\n\t\tdirectionController.turn(90.0);\r\n\t\tassertEquals(90.0, directionController.getCurrentDirection(), 0.0);\r\n\t\tdirectionController.turn(-450.0);\r\n\t\tassertEquals(0.0, directionController.getCurrentDirection(), 0.0);\r\n\t}", "public TurnDegrees(double speed, double degrees, Drivetrain drive) {\n super(new PIDController(0.0085, 0, 0), \n drive::getGyroAngleZ, \n degrees, \n output -> {\n double clampedOutput = MathUtil.clamp(output, -1, 1);\n if(Math.abs(clampedOutput) < 0.325 && Math.abs(clampedOutput) > 0) {\n double tempClampedOutput = clampedOutput;\n clampedOutput = Math.copySign(0.325, tempClampedOutput);\n }\n System.out.println(clampedOutput);\n drive.arcadeDrive(0, clampedOutput);\n }, \n drive);\n\n m_degrees = degrees;\n m_speed = speed;\n m_drive = drive;\n }", "public void setRotation(){\n\t\t\tfb5.accStop();\n\t\t\twt.turning = true;\n\t\t\tif(state == BotMove.RIGHT_15){\n\t\t\t\tfb5.turnRightBy(6);\n\t\t\t\tangle = (angle+360-20)%360;\n\t\t\t}\n\t\t\telse if(state == BotMove.RIGHT_10){\n\t\t\t\tfb5.turnRightBy(3);\n\t\t\t\tangle = (angle+360-10)%360;\n\t\t\t}\n\t\t\telse if(state == BotMove.LEFT_5){\n\t\t\t\tfb5.turnLeftBy(2);\n\t\t\t\tangle = (angle+360+5)%360;\n\t\t\t}\n\t\t}", "@org.junit.Test\n public void testTicksForDesiredAngle90From540() {\n int resultsTicks = SwerveDriveMath.ticksForDesiredAngle(testConfig,540, 90);\n\n // Shortest path is to go left 90 (360 + 90 = 460)\n assertEquals(450, resultsTicks);\n }", "public void turn(double angle){\n updateUndoBuffers(new LinkedList<>());\n myAngle += angle;\n }", "protected void execute() {\n \n \t\n \t \n \t\n \n System.out.println((Timer.getFPGATimestamp()- starttime ) + \",\" + (RobotMap.motorLeftTwo.getEncPosition()) + \",\"\n + (RobotMap.motorLeftTwo.getEncVelocity()*600)/-4096 + \",\" + RobotMap.motorRightTwo.getEncPosition() + \",\" + (RobotMap.motorRightTwo.getEncVelocity()*600)/4096);\n \n /*if(endpoint > 0){\n cruiseVelocityLeft = (float) (this.initCruiseVelocityLeft+ angleorientation.getResult());\n cruiseVelocityRight = (float) (this.initCruiseVelocityRight - angleorientation.getResult());\n }\n if(endpoint <= 0){\n cruiseVelocityLeft = (float) (this.initCruiseVelocityLeft- angleorientation.getResult());\n cruiseVelocityRight = (float) (this.initCruiseVelocityRight + angleorientation.getResult());\n }*/\n System.out.println(this.motionMagicEndPoint*4096 + RobotMap.motorLeftTwo.getEncPosition() + \"l\");\n System.out.println(this.motionMagicEndPoint*4096 - RobotMap.motorRightTwo.getEncPosition() + \"r\");\n \n \n \t if(RobotMap.motorLeftTwo.getEncVelocity()!= velocityLeft)\n velocityLeft = RobotMap.motorLeftTwo.getEncVelocity(); \n velocityRight = RobotMap.motorRightTwo.getEncVelocity();\n SmartDashboard.putNumber(\"LeftWheelError\", (this.motionMagicEndPoint*4096 + RobotMap.motorLeftTwo.getEncPosition()));\n SmartDashboard.putNumber(\"RightWheelError\",(this.motionMagicEndPoint*4096 - RobotMap.motorRightTwo.getEncPosition()));\n SmartDashboard.putNumber(\"LeftWheelVelocity\", (RobotMap.motorLeftTwo.getEncVelocity())*600/4096);\n SmartDashboard.putNumber(\"RightWheelVelocity\",(RobotMap.motorRightTwo.getEncVelocity()*600)/4096);\n \n \n count++;\n \tangleorientation.updatePID(RobotMap.navx.getAngle());\n }", "public float MoveForward(){\n motorLeft1Power = normalSpeed;\n motorLeft2Power = normalSpeed;\n motorRight1Power = normalSpeed;\n motorRight2Power = normalSpeed;\n\n startOrientation = imu.getAngularOrientation().toAxesReference(AxesReference.INTRINSIC).toAxesOrder(AxesOrder.ZYX).firstAngle;\n motorPID = new PIDController(startOrientation);\n return startOrientation;\n }", "private void rotateDrive(double throttle, double error) {\n double output = visionDrive.getOutput(error);\n left.set(ControlMode.PercentOutput, throttle - output);\n right.set(ControlMode.PercentOutput, throttle + output);\n }", "@Override\n\tpublic void run() {\n\t\t// what angle you're at right now\n\t\tmCurrentAngle = mNavigation.getHeadingInDegrees(); \t\t\n\t\tdouble turn;\n\t\t\n\t\tif (!onTarget()) { //if just angle is not on target\n\t\t\tturn = super.calculate(mCurrentAngle - mGoalAngle);\n\t\t\tmDrive.setSpeedTurn(mSpeed, turn);\n\t\t} else // else just drive straight\n\t\t\tmDrive.setSpeedTurn(mSpeed, 0.0);\t\n\t}", "public void armDrive(double pivValue, double fwdValue){\n if (pivValue!=0) {\n pivValue = pivValue / 6;\n left_drive.setPower(pivValue);\n right_drive.setPower(-pivValue);\n }else {\n fwdValue = fwdValue / 6;\n left_drive.setPower(fwdValue);\n right_drive.setPower(fwdValue);\n }\n\n }", "public void right90 () {\n saveHeading = 0; //modernRoboticsI2cGyro.getHeading();\n gyroTurn(TURN_SPEED, saveHeading - 90);\n gyroHold(HOLD_SPEED, saveHeading - 90, 0.5);\n }", "public void rotateTo(double angle) {\n\t\t\n\t\tangleCache = angle;\n\t\tupdateGyro();\n\t\t\n\t\t//int goTo = angleCache; //lazy programming at its finest lmao //okay yeah no I'm fixing this\n\t\t//clockwise degrees to goTo angle\n\t\tdouble ccw = (angleCache - angleToForward < 0) ? (angleCache - angleToForward + 360) : (angleCache - angleToForward);\n\t\t\n\t\t//counter-clockwise degrees to goTo angle\n\t\tdouble cw = (angleToForward - angleCache < 0) ? (angleToForward - angleCache + 360) : (angleToForward - angleCache);\n\t\t\n\t\t//rotates the fastest way until within +- 5 of goTo angle\n\t\t\n\t\tif (angleCache >= angleToForward + 5 || angleCache <= angleToForward - 5) { //TODO Breaks when any button is pressed (continues spinning indefinitely)\n\t\t\tupdateGyro();\n\t\t\tif (cw <= ccw) {\n\t\t\t\tupdateGyro();\n\t\t\t\tmotorRB.set(-0.25);\n\t\t\t\tmotorRF.set(-0.25);\n\t\t\t\tmotorLB.set(-0.25);\n\t\t\t\tmotorLF.set(-0.25);\n\t\t\t} else {\n\t\t\t\tupdateGyro();\n\t\t\t\tmotorRB.set(0.25);\n\t\t\t\tmotorRF.set(0.25);\n\t\t\t\tmotorLB.set(0.25);\n\t\t\t\tmotorLF.set(0.25);\n\t\t\t}\n\t\t\tupdateGyro();\n\t\t}\n\t\t\n\t}", "public void arcadeDrive() {\n\t\tif (fastBool) {\n\t\t\tmotorRB.set((joystickLYAxis + joystickLXAxis/2));\n\t\t\tmotorRF.set((joystickLYAxis + joystickLXAxis/2));\n\t\t\tmotorLB.set(-(joystickLYAxis - joystickLXAxis/2));\n\t\t\tmotorLF.set(-(joystickLYAxis - joystickLXAxis/2));\n\t\t} else {\n\t\t\tmotorRB.set((joystickLYAxis + joystickLXAxis/2)/2);\n\t\t\tmotorRF.set((joystickLYAxis + joystickLXAxis/2)/2);\n\t\t\tmotorLB.set(-(joystickLYAxis - joystickLXAxis/2)/2);\n\t\t\tmotorLF.set(-(joystickLYAxis - joystickLXAxis/2)/2);\n\t\t}\n\t}", "private short getHeadingAxe()\r\n\t{\r\n\t\t// Condition based on the angle change\r\n\t\tdouble difA = 0;\r\n\t\tshort movDir = 0;\r\n\r\n\t\t// Difference between the real and ideal angle\r\n\t\tdifA = Math.abs((this.pose.getHeading()/Math.PI*180) - Po_ExpAng);\r\n\t\t\r\n\t\t// Axe detection\r\n\t\tif ((Po_CORNER_ID % 2) == 0)\r\n\t\t{\r\n\t\t\t// Movement in x\r\n\t\t\tif (((Po_CORNER_ID == 0) && ((difA > 70) && (100*this.pose.getX() > 165))) || ((Po_CORNER_ID == 2) && ((difA > 70) && (100*this.pose.getX() < 160))) || ((Po_CORNER_ID == 4) && ((difA > 70) && (100*this.pose.getX() < 35))) || ((Po_CORNER_ID == 6) && ((difA > 70) && (100*this.pose.getX() < 5))))\r\n\t\t\t//if (difA > 70)\r\n\t\t\t{\r\n\t\t\t\tmovDir = 1;\t\t\t// y direction\r\n\t\t\t\tSound.beepSequenceUp();\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tmovDir = 0;\t\t\t// x direction\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t// Movement in y\r\n\t\t\tif (((Po_CORNER_ID == 1) && ((difA > 30) && (100*this.pose.getY() > 55))) || ((Po_CORNER_ID == 3) && ((difA > 70) && (100*this.pose.getY() < 45))) || ((Po_CORNER_ID == 5) && ((difA > 70) && (100*this.pose.getY() > 55))) || ((Po_CORNER_ID == 7) && (difA > 70) && (100*this.pose.getY() < 5)))\r\n\t\t\t//if (difA > 70)\r\n\t\t\t{\r\n\t\t\t\tmovDir = 0;\t\t\t// x direction\r\n\t\t\t\tSound.beepSequence();\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tmovDir = 1;\t\t\t// y direction\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (((Po_AxeP == 0) && (movDir == 1)) || ((Po_AxeP == 1) && (movDir == 0)))\r\n\t\t{\r\n\t\t\tif (Po_CORNER_ID < 7)\r\n\t\t\t{\r\n\t\t\t\tPo_CORNER_ID = Po_CORNER_ID + 1;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tPo_CORNER_ID = 0;\r\n\t\t\t\t\r\n\t\t\t\tif (this.parkingSlotDetectionIsOn)\r\n\t\t\t\t{\r\n\t\t\t\t\tPo_RoundF = 1;\t\t// Round finished, don't add any new parking slots\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tPo_Corn = 1;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tPo_Corn = 0;\r\n\t\t}\r\n\t\t\r\n\t\tPo_AxeP = movDir;\r\n\t\t\r\n\t\tLCD.drawString(\"Corn_ID: \" + (Po_CORNER_ID), 0, 6);\r\n\t\t\r\n\t\treturn movDir;\r\n\t}", "double motor_y () { return strut.span + DRIVING_FORCE_HEIGHT; }", "protected void execute() {\n\n \n\n\n\n if (Robot.drive.gyroGetAngle() > m_autorotateangle) { // turn left\n if ( Math.abs(m_autorotateangle - Robot.drive.gyroGetAngle()) < rampthreshold ) {\n Robot.drive.setLeftSide(m_minspeed);\n Robot.drive.setRightSide(m_minspeed);\n } else {\n Robot.drive.setLeftSide(m_leftpower);\n Robot.drive.setRightSide(m_leftpower);\n }\n } else { // turn right\n if ( Math.abs(m_autorotateangle - Robot.drive.gyroGetAngle()) < rampthreshold ) {\n Robot.drive.setLeftSide(-m_minspeed);\n Robot.drive.setRightSide(-m_minspeed);\n } else {\n Robot.drive.setLeftSide(-m_leftpower);\n Robot.drive.setRightSide(-m_leftpower);\n }\n\n }\n\n \n\n \t//SmartDashboard.putNumber(\"NavX getYaw\", Robot.navX.getYaw());\n }", "public double getAngle();", "public double passAlign() {\n \tdouble angle;\n \tif (MasterController.ourSide == TeamSide.LEFT) {\n \t\tangle = angleToX();\n \t} else {\n \t\tangle = angleToNegX();\n \t}\n \tdouble amount = -0.7 * angle;\n\t\tDebug.log(\"Angle: %f, Rotating: %f\", angle, amount);\n\t\trotate(amount); // TODO: Test if works as expected\n\t\treturn amount;\n\t}", "@Test\r\n public void testCalculateAngle1() {\r\n System.out.println(\"calculateAngle1\");\r\n DialDraw instance = new TachometerDraw();\r\n instance.setValue(36);\r\n double expResult = Math.toRadians(115.2);\r\n double result = instance.calculateAngle();\r\n assertEquals(result, expResult, 0.0001);\r\n }" ]
[ "0.70246524", "0.68986565", "0.6551332", "0.6506237", "0.64945406", "0.6422453", "0.64217955", "0.6380231", "0.635488", "0.6283832", "0.6279048", "0.62746215", "0.6244954", "0.6227545", "0.622134", "0.6215958", "0.6211126", "0.6191234", "0.61796075", "0.6172999", "0.6167999", "0.61628246", "0.6161291", "0.61511946", "0.6132157", "0.611459", "0.61005306", "0.6099831", "0.6090996", "0.60783577", "0.6075328", "0.60683197", "0.60669947", "0.6054029", "0.60169184", "0.6014353", "0.60119873", "0.6009931", "0.60008407", "0.60007983", "0.5993242", "0.59901345", "0.5988394", "0.59822357", "0.5977129", "0.5975587", "0.5974503", "0.5968411", "0.5961043", "0.5959168", "0.59563994", "0.59559494", "0.5947476", "0.59463453", "0.59436744", "0.5930947", "0.5921066", "0.5920666", "0.59206223", "0.59098816", "0.59042937", "0.5889459", "0.58843917", "0.5881739", "0.5879977", "0.5863565", "0.58495927", "0.5849138", "0.5843365", "0.5838812", "0.58371025", "0.58371025", "0.5836519", "0.5835092", "0.58321404", "0.5822849", "0.581394", "0.58138555", "0.58032507", "0.58026356", "0.5795759", "0.5793404", "0.57914686", "0.57912564", "0.5787684", "0.5778379", "0.5766944", "0.5765234", "0.5757843", "0.57568926", "0.5750495", "0.5744953", "0.5737715", "0.5737257", "0.5733781", "0.57208073", "0.57126373", "0.5712553", "0.5710602", "0.5705804", "0.57056147" ]
0.0
-1
public static final abstract methods
public void calculateSalary() ;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void mo30696a();", "public abstract void mo27386d();", "public abstract void mo102899a();", "public abstract void mo56925d();", "public abstract void mo70713b();", "public abstract void mo27464a();", "public abstract void mo35054b();", "public abstract void mo27385c();", "private abstract void privateabstract();", "public abstract void mo42329d();", "public abstract void m15813a();", "abstract void method();", "public abstract void mo42331g();", "public abstract void mo42330e();", "public abstract void mo957b();", "public abstract void mo4359a();", "public abstract String mo41079d();", "public abstract void mo3994a();", "public abstract String mo13682d();", "public abstract void mo6549b();", "public abstract Object mo26777y();", "public abstract String mo118046b();", "public abstract void mo45765b();", "public abstract String mo24850a();", "abstract int pregnancy();", "public abstract Object mo1771a();", "public abstract String mo9239aw();", "public abstract String a();", "public abstract void afvuren();", "public abstract String mo8770a();", "public abstract void abstractone();", "public abstract int mo123246e();", "@Override\n\tvoid methodAbstractAndSubclassIsAbstract() {\n\t\t\n\t}", "public interface AbstractC1953c50 {\n}", "public abstract void mo2624j();", "public abstract String mo10149a();", "public abstract String mo9752q();", "public abstract void mo20899UO();", "public abstract int mo41077c();", "@Override\n\tvoid methodabstract() {\n\t\t\n\t}", "public abstract String mo11611b();", "public abstract int mo9754s();", "public abstract int mo123248g();", "public abstract int mo4375b();", "public abstract String mo41086i();", "public abstract void mo2150a();", "public abstract String mo9091a();", "public abstract void mh();", "public abstract void mo20900UP();", "public abstract void MussBeDefined();", "public interface AbstractC01264e {\n void ABn(AnonymousClass4X v, @Nullable AnonymousClass4A v2, AnonymousClass4A v3);\n\n void ABp(AnonymousClass4X v, @NonNull AnonymousClass4A v2, @Nullable AnonymousClass4A v3);\n\n void ABr(AnonymousClass4X v, @NonNull AnonymousClass4A v2, @NonNull AnonymousClass4A v3);\n\n void ADd(AnonymousClass4X v);\n}", "public abstract String mo9238av();", "public boolean isAbstract()\n/* */ {\n/* 146 */ return false;\n/* */ }", "public interface AbstractC0537ba {\n public static final AbstractC0537ba A00 = new C1195uw();\n\n List A3h(C0544bh bhVar);\n}", "public abstract int mo9742g();", "public abstract int a();", "public abstract Object mo1185b();", "public abstract int mo9747l();", "public abstract int mo9745j();", "public abstract C mo29734a();", "public abstract int mo9797a();", "public abstract int mo13680b();", "public abstract T a();", "public abstract void t3();", "public interface AbstractC0273Ek {\n void e();\n}", "public abstract void Do();", "public abstract String mo9751p();", "@Override\n public void matiz() {\n System.out.println(\"New not Abstract method\");\n }", "public interface AbstractC7729o0ooOoo {\n void OooO00o();\n}", "public abstract int b();", "public abstract int mo9753r();", "public abstract int mo9741f();", "public interface AbstractC0386gl {\n}", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public abstract int mo123247f();", "abstract void sub();", "public abstract void operation();", "public abstract void abstractMethodToImplement();", "public interface AbstractC14990nD {\n void ACi(View view);\n\n void ACk(View view);\n\n void ACo(View view);\n}", "public abstract int mo8526p();", "public interface AbstractC00591m {\n void A9X(C0495Jm jm);\n\n void AAI(List<RG> list);\n}", "public abstract int mo9732a();", "public abstract void mo2162i();", "protected abstract void work();", "public abstract void alimentarse();", "abstract void m1();", "public interface AbstractC7617o0oOO {\n void OooO00o(View view);\n\n void OooO0O0(View view);\n\n void OooO0OO(View view);\n}", "private CommonMethods() {\n }", "public abstract void mo1184a(Object obj);", "@Override\r\n\tprotected void abstractMethod() {\n\t\tSystem.out.println(\"I'm from the abstract method\");\r\n\t}", "abstract void sayHello();", "protected abstract T self();", "protected abstract T self();", "protected abstract T self();", "public abstract boolean mo9230aE();", "public abstract void test();", "public abstract void test();", "public interface AbstractC2726a {\n /* renamed from: a */\n void mo36480a(int i, int i2, ImageView imageView, Uri uri);\n\n /* renamed from: a */\n void mo36481a(int i, ImageView imageView, Uri uri);\n\n /* renamed from: a */\n void mo36482a(ImageView imageView, Uri uri);\n\n /* renamed from: b */\n void mo36483b(int i, ImageView imageView, Uri uri);\n}", "public abstract int mo9749n();", "public abstract void t1();" ]
[ "0.7535329", "0.7505773", "0.7503688", "0.7462574", "0.74449766", "0.7375202", "0.7303934", "0.7284837", "0.72438437", "0.72422266", "0.7241396", "0.71766657", "0.71573573", "0.7153502", "0.7132958", "0.7097655", "0.7097645", "0.7086948", "0.7034874", "0.7033479", "0.7019395", "0.7017546", "0.6962652", "0.68970436", "0.68581665", "0.6844801", "0.6838199", "0.6813551", "0.679571", "0.67854553", "0.6747815", "0.674693", "0.67150474", "0.6693655", "0.6682894", "0.6678585", "0.66563565", "0.6653862", "0.66463965", "0.6635538", "0.66208035", "0.66200304", "0.6606114", "0.6605279", "0.6604304", "0.6597241", "0.65923077", "0.6558563", "0.65473753", "0.65412766", "0.65394443", "0.6494237", "0.6482643", "0.6445763", "0.6444553", "0.64410543", "0.6438863", "0.64303315", "0.6411991", "0.6404443", "0.63955647", "0.63765377", "0.63617635", "0.6327831", "0.6324054", "0.63203716", "0.6299033", "0.6291913", "0.6287521", "0.62798446", "0.6277301", "0.6269026", "0.6256432", "0.62559956", "0.62559956", "0.6255799", "0.62479556", "0.624657", "0.6243957", "0.6240363", "0.6221919", "0.6218112", "0.62132275", "0.6208444", "0.62024724", "0.6191837", "0.6187583", "0.61864245", "0.6186424", "0.61810696", "0.6174551", "0.61729556", "0.61654025", "0.61654025", "0.61654025", "0.61578727", "0.6154903", "0.6154903", "0.6151367", "0.61511624", "0.61433786" ]
0.0
-1
Employee emp = new Employee();
public static void main(String[] args) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Employee() {}", "public Employee(){\r\n }", "public Employee(){\n\t\t\n\t}", "public Employee(){\n\t\t\n\t}", "public Employee() {\n }", "public Employee() {\n }", "public Employee() {\n }", "Employee() {\n\t}", "public Employee() {\n\t\t\n\t}", "public Employee() {\n \n }", "public Employee() {\t}", "public Employee() {\n\n\t}", "public Employee() {\n\t\tsuper();\n\t}", "public EmployeeRecord(){}", "public Employee(String Name) {\r\n this.Name = Name;\r\n }", "public Employee() {\n\t\tSystem.out.println(\"Employee Contructor Called...\");\n\t}", "public static void main(String[] args) {\n\n// Creating a object\n// Employee e = new Employee();\n// e.data=34; //public int is from the Employee.java\n\n Employee e1 = new Employee();\n e1.data=44;\n\n Employee e = new Employee();\n e.doSomething();\n\n// System.out.println(e.data);\n// System.out.println(e1.data);\n \n\n\n }", "public static void main(String[] args) {\nnew Employee();// Calling the Constructor.\r\n\t}", "public Employee(String name){\r\n\t\tthis.employeeName = name;\r\n\t\tthis.salary = 0;\r\n\t}", "public Employee(){\n this.employeeName = new String();\n this.employeeSalary = null;\n this.employeeProjectList = new ArrayList<String>();\n this.employeeDepartmentLead = new String();\n }", "public Employee() {\n this.isActivated = false;\n this.salt = CryptographicHelper.getInstance().generateRandomString(32);\n\n this.address = new Address();\n this.reports = new ArrayList<>();\n }", "public EmployeesImpl() {\r\n }", "public Employee () {\r\n lName = \"NO LAST NAME\";\r\n fName = \"NO FIRST NAME\";\r\n empID = \"NO EMPLOYEE ID\";\r\n salary = -1;\r\n }", "Employee(int id, String name, String birthDate, int eage, double esalary){\r\n ID=id; \r\n NAME=name; \r\n BIRTHDATE=birthDate; \r\n age=eage; \r\n salary=esalary; \r\n }", "public Employee(String proffesion) {\n\n this.name = rnd.randomCharName(8);\n this.surname = rnd.randomCharName(7);\n this.hourSalary = rnd.randomNumber(75,100);\n this.profession = proffesion;\n this.workingHour = WORKING_HOURS;\n this.moneyEarned = 0;\n this.moneyEarned = 0;\n this.isAbleTowork = true; \n }", "public static void main(String[] args) {\n\r\n\r\n Employee e1=new Employee();\r\n\r\n e1.name=\"avinash\";\r\n e1.city=\"ongole\";\r\n e1.age=58;\r\n\r\n e1.display();\r\n }", "public Employee(String id) {\n super(id);\n }", "Employee(String name, String password, String username, String email) {\n this.name = name;\n this.username = username;\n this.email = email;\n this.password = password;\n\n }", "public void addEmployee(Employee emp) {\n\t\t\r\n\t}", "public static void main(String[] args) {\nEmployee emp = new Employee();\r\nemp.setId(101);\r\n\t\temp.setName(\"Mrunal\");\r\n\t\tSystem.out.println(\"Id:\"+emp.getId()+\"EmpName:\"+emp.getName());;\r\n\t\t\r\n\t\t\r\n\t}", "public void xxx() {\n System.out.println(\"Salary: \" + salary);\n printInfo();\n\n Employee e = new Employee(\"Andy\", \"123\", 26);\n// System.out.println(\"Name: \" + e.name + \"; Age: \" + e.age + \";ID: \" + e.id);\n\n Manager m = new Manager(\"Andylee\", \"124\", 27);\n// System.out.println(\"Name: \" + m.name + \"; Age: \" + m.age + \";ID: \" + m.id);\n\n }", "Employees() { \r\n\t\t this(100,\"Hari\",\"TestLeaf\");\r\n\t\t System.out.println(\"default Constructor\"); \r\n\t }", "public Employee() {\n employeeID = genID.incrementAndGet();\n }", "public Employee(){\r\n this(\"\", \"\", \"\", 0, \"\", 0.0);\r\n }", "public Employee(String n, double s)\n {\n name = n;\n salary = s;\n }", "public Employee getEmployee() {\n return employee;\n }", "public Employee(String nama, int usia) {\r\n // Constructor digunakan untuk inisialisasi value, yang di inisiate saat melakukan instantiation\r\n this.nama = nama;\r\n this.usia = usia;\r\n }", "public Employee(String name, double salary){\r\n\t\tthis.employeeName = name;\r\n\t\tthis.salary = salary;\r\n\t}", "@Override\n\tpublic Employee createEmployee() {\n\t\treturn new Manager(name, age);\n\t}", "@Override\n\tpublic void createEmployee(Employee e) {\n\t\t\n\t}", "public Empleado() { }", "public static void main(String[] args) {\n\t\tEmployee e1=new Employee();\n\t\tSystem.out.println(e1);\n\t\tEmployee e2=new Employee(2,\"XYZ\",33333,new date(16,2,2014));\n\t\tSystem.out.println(e2);\n\t}", "public void saveEmployee(Employee emp){\n System.out.println(\"saved\" + emp);\n\n }", "public int createEmployee(Employee emp) {\n\tStudentDAO studentDAO=new StudentDAO();\n\treturn studentDAO. createEmployee(emp);\n}", "public Manager() {\n\t\tsuper();\n\t\temployees = new Employee[10];\n\t}", "public Employee(String employeeId, String name) {\n this.employeeId = employeeId;\n this.name = name; // TODO fill in code here\n }", "public Employee(String name, int salary)\n\n\t{\n\t\tthis.name = name;\n\t\tthis.salary = salary;\n\t}", "emp m1(){\n\t\tint salary = 5000;\r\n\t\tSystem.out.println(\"method m1\" +\" \"+salary);\r\n\t\t//emp e = new emp();\r\n\t\t//return e;\r\n\t\treturn new emp(); // most recommended way.\r\n\t}", "public SalesEmployee(){\n\t\tfirstName = \"unassigned\";\n\t\tlastName = \"unassigned\";\n\t\tppsNumber = \"unassigned\";\n\t\tbikeEmployeeNumber++;\n\t}", "public Employee() {\r\n\t\t// super should be 1st line \r\n\t\tsuper();\r\n\t\tSystem.out.println(\"Hi i'm from constructor \");\r\n\t}", "public Employee(String fName, String lName, String gender, double salary) {\n this.fName = fName;\n this.lName = lName;\n this.gender = gender;\n this.salary = salary; \n }", "public static void main(String[] args) {\n\t\t\r\n\t\tEmployee_Demo ans= new Employee_Demo();\r\n\t\t\r\n\t\tans.setAge(25);\r\n\t\tans.setEmployeeName(\"sankar suresh\");\r\n\t\tans.setCity(\"pondicherry\");\r\n\t\tans.setemployeID(785303);\r\n\t\tans.setSalary(30000);\r\n\t\tans.setSex(\"male\");\r\n\t\tSystem.out.println(\"age of the emp :\"+ans.getAge());\r\n\t\tSystem.out.println(\"City of the emp :\"+ans.getCity());\r\n\t\tSystem.out.println(\" salary of the emp :\"+ans.getSalary());\r\n\t\tSystem.out.println(ans.getEmployeID());\r\n\t\tSystem.out.println(ans.getSex());\r\n\r\n\t\t\r\n\r\n\t}", "public Employee(String name, int id) {\n super(name, id);\n position = \"None\";\n salary = 0.0;\n }", "Employee(String id, Kitchen kitchen) {\r\n this.id = id;\r\n this.kitchen = kitchen;\r\n this.attendance = \"Present\";\r\n this.password = \"password\";\r\n }", "public Employee(String inName, double inSalary)\n\t{\n\t\tname = inName;\n\t\tsalary = inSalary;\n\t}", "public Employee(String name,String pos,int sal, int Vbal, int AnBon){\n Random rnd = new Random();\n this.idnum = 100000 + rnd.nextInt(900000);\n this.name = name;\n this.position = pos;\n this.salary = sal;\n this.vacationBal = Vbal;\n this.annualBonus = AnBon;\n this.password = \"AJDLIAFYI\";\n salaryHist[0] = salary;\n }", "public EmployeeRecords(String n, int s){ // defined a parameterized constructor\r\n this.name = n; // assigning a local variable value to a global variable\r\n this.salary = s; // assigning a local variable value to a global variable\r\n }", "public static void main(String[] args) {\n\t\t\n\t\tEmployee theEmployee = new Employee();\n\t\t\n//\t\twhat does it mean below setter? by this section we assign value to variables.\n\t\ttheEmployee.setId(1000);\n\t\ttheEmployee.setName(\"Ramesh\");\n\t\ttheEmployee.setPosition(\"Mangaer\");\n\t\ttheEmployee.setSalary(10000.88);\n//\t\tby thes getters we print the data.\n\t\tSystem.out.println(theEmployee.getId());\n\t\tSystem.out.println(theEmployee.getName());\n\t\tSystem.out.println(theEmployee.getPosition());\n\t\tSystem.out.println(theEmployee.getSalary());\n\t\tSystem.out.println(theEmployee.getClass());\n\t\n\t\tSystem.out.println(\"====================================\");\n\t\t\n\t\tEmployee theEmployee1 = new Employee();\n\t\t\n\t\ttheEmployee1.setId(2);\n\t\ttheEmployee1.setName(\"Rahim\");\n\t\ttheEmployee1.setPosition(\"Team leader\");\n\t\ttheEmployee1.setSalary(22.88);\n\t\t\n\t\tSystem.out.println(theEmployee1.getId());\n\t\tSystem.out.println(theEmployee1.getName());\n\t\tSystem.out.println(theEmployee1.getPosition());\n\t\tSystem.out.println(theEmployee1.getSalary());\n\t\tSystem.out.println(theEmployee1.getClass());\n\t\t\n\t\t\n\tSystem.out.println(\"============================\");\n\t\n\tEmployee theEmployee2 = new Employee();\n\t\n\ttheEmployee2.setId(9);\n\ttheEmployee2.setName(\"Ramin\");\n\ttheEmployee2.setPosition(\"Superwiser\");\n\ttheEmployee2.setSalary(15000.00);\n\t\n\tSystem.out.println(theEmployee2.getId());\n\tSystem.out.println(theEmployee2.getName());\n\tSystem.out.println(theEmployee2.getPosition());\n\tSystem.out.println(theEmployee2.getSalary());\n\tSystem.out.println(theEmployee2.getClass());\n\t\n\t\t\n\t}", "public Employee(String name, int id, String position, double salary) { \n super(name, id);\n this.position = position;\n this.salary = salary;\n }", "Employee(String employeeName, double employeeSalary, int employeeAge) {\n\t\tthis.employeeName = employeeName;\n\t\tthis.employeeSalary = employeeSalary;\n\t\tthis.employeeAge = employeeAge;\n\t}", "public Employee createNewEmployee(String name) {\n Employee newEmployee = new Employee(DumbDB.employeeCounter++, name, NO_DEPARTMENT_ID);\n getAllEmployees().add(newEmployee);\n return newEmployee;\n }", "public EmployeeSet()\n\t{\n\t\tnumOfEmployees = 0;\n\t\temployeeData = new Employee[10];\n\t}", "public static void main (String[] args) //self testing main method\r\n {\n Employee emp = new Employee (\"John\", \"Smith\", \"P0444444\");\r\n System.out.println(emp.toString());\r\n System.out.println(emp.getFirstName());\r\n System.out.println(emp.getLastName());\r\n System.out.println(emp.getID());\r\n // change employee information\r\n emp.setFirstName(\"Joanne\");\r\n emp.setLastName(\"Johnson\");\r\n emp.setID(\"P0123456\");\r\n // display again\r\n System.out.println(emp.toString());\r\n }", "public EmployeeNotFoundException() {\n super();\n }", "public Employee(String firstName, String lastName, int age, double salary) {\r\n //envoke the super class's constructor\r\n super(firstName, lastName, age);\r\n \r\n //set the instance variables specific to this class. \r\n this.salary = salary;\r\n employeeNumber = nextEmployeeNumber;\r\n nextEmployeeNumber++;\r\n }", "private Employee(String name, String city, String id,int salary) {\n\t\tthis.name = name;\n\t\tthis.city = city;\n\t\tthis.id = id;\n\t\tthis.salary = salary;\n\t}", "public Employee(String firstName, String lastName, String SSN){\r\n this.firstName=firstName;\r\n this.lastName=lastName;\r\n this.SSN=SSN;\r\n }", "public Employee(String fName, String lName, int ID) {\n this.FName = fName;\n this.LName = lName;\n this.ID = ID;\n }", "public Employee(int id, String name, double salary, Date dateOfBirth,\n String emailId, String mobileNumber) {\n this.id = id;\n this.name = name;\n this.salary = salary;\n this.dateOfBirth = dateOfBirth;\n this.emailId = emailId;\n this.mobileNumber = mobileNumber;\n }", "@Override\n\tpublic Employee create(Employee emp) {\n\t\tlog.debug(\"Welcome to logging\");\n\t\tSystem.out.println(\"Server logs \");\n\t\temployeeDAO.create(emp);\n\t\treturn null;\n\t}", "public static void main(String[] args) {\n\t\tPerson person = new Person();\r\n\t\tperson.setName(\"Jon Snow\");\r\n\t\tperson.setAddress(\"Castle Black, 82\");\r\n\t\tperson.setEmail(\"[email protected]\");\r\n\t\tperson.setPhone(061666666);\r\n\t\tSystem.out.println(person);\r\n\r\n\t\t// creating a instance of Staff\r\n\t\tStaff staff = new Staff();\r\n\t\tSystem.out.println();\r\n\t\tstaff.setName(\"Ned Stark\");\r\n\t\tstaff.setTitle(\"King of North\");\r\n\t\tSystem.out.println(staff);\r\n\r\n\t\t// creating a instance of Faculty\r\n\t\tFaculty faculty = new Faculty();\r\n\t\tSystem.out.println();\r\n\t\tfaculty.setName(\"Zdravko\");\r\n\t\tfaculty.setOfficeHours(40);\r\n\t\tfaculty.setRank(\"Profesor\");\r\n\t\tSystem.out.println(faculty);\r\n\r\n\t\t// creating a instance og Employee\r\n\t\tEmployee employee = new Employee();\r\n\t\tSystem.out.println();\r\n\t\temployee.setName(\"Nedim\");\r\n\t\temployee.setOffice(\"Post Office\");\r\n\t\temployee.setSalary(2000);\r\n\t\tSystem.out.println(employee);\r\n\r\n\t\t// creating a instance of Student\r\n\t\tStudent student = new Student();\r\n\t\tSystem.out.println();\r\n\t\tstudent.setName(\"Ljubisa\");\r\n\t\tstudent.setStatus(2);\r\n\t\tSystem.out.println(student);\r\n\t}", "public void saveEmployee(Employe employee) {\n\t\t\n\t}", "public Manager(Employee[] employees) {\n\t\tsuper();\n\t\tthis.employees = employees;\n\t}", "public Manager getEmployee() {\n\t\treturn new Manager();\n\t}", "public EmployeeMain() {\n employeeSalary_2015 = new ArrayList<Employee>();\n employeeSalary_2014 = new ArrayList<Employee>();\n }", "private Employee addEmployee(int id, String name, String address) {\r\n\t\treturn new Employee(id, name, address);\r\n\t}", "Employee(String name, String profile, int id, String regime) {\n super(name, profile, id);\n this.regime = regime;\n }", "public static void main(String[] args) {\n Employee employee = new GovernmentEmployee();\n\n GovernmentEmployee employee2 = (GovernmentEmployee) employee;\n employee.commonMethod();\n \n GovernmentEmployee governmentEmployee = new GovernmentEmployee();\n Employee governmentEmployee1 = governmentEmployee;\n\n\n }", "public User() {\r\n\t\temployee=new HashMap<Integer, Employee>();\r\n\t\tperformance=new HashMap<Employee,String>();\r\n\t}", "public EmployeeTransition(Employee employee) {\n this.id = employee.getId();\n this.f_name = employee.getFname();\n this.l_name = employee.getLname();\n this.employeeid = employee.getEmployeeid();\n this.active = employee.getActive();\n this.role = employee.getRole();\n this.manager = employee.getManager();\n this.password = employee.getPassword();\n this.createdOn = employee.getCreatedOn();\n }", "public static void main(String[] args) {\n\t\temployee employee =new employee (\"hilal\",5000,20,2021);\n\t System.out.println(employee.toString());\n \n\t}", "@Test\r\n\tpublic void addEmployeeTestCase3() {\n\t\tEmployee employee3 = new Employee();\r\n\t\temployee3.name = \"Lingtan\";\r\n\t\temployee3.role = \"Ui designer\";\r\n\t\temployee3.email = \"[email protected]\";\r\n\t\temployee3.employeeID = \"Ling2655\";\r\n\t\temployee3.dob = LocalDate.of(2000, 12, 12);\r\n\t\temployee3.gender = \"Male\";\r\n\t\temployee3.mobileNumber =Long.parseLong(\"9249324982\");\r\n\t\temployee3.joiningData = LocalDate.of(2000, 12, 12);\r\n\t\t\r\n\t\tEmployeeOperations.addEmployee(employee3);\t\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tEmp emp = new Emp(1001,\"ram\");\n\t\tSystem.out.println(emp);\n\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tEmployee emp1 = new Employee();\r\n\t\tEmployee emp2 = new Employee();\r\n\t\t\r\n\t\temp1.empName = \"Rob\";\r\n\t\temp1.empid = 200;\r\n\t\temp1.empsalary = 12345;\r\n\t\t\r\n\t\temp1.displayEmployeebonus();\r\n\t\t\r\n\t\temp2.empName = \"Rob\";\r\n\t\temp2.empid = 300;\r\n\t\temp2.empsalary = 98765;\r\n\t\t\r\n\t\temp2.displayEmployeebonus();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t}", "public void setUp()\n {\n empl = new SalariedEmployee(\"romeo\", 25.0);\n }", "public static void main(String[] args) {\n\t\tDate d=new Date(2,5,2019);\r\n\t\tEmployee e=new Employee(100,\"ram\",10000,d);\r\n\t\tSystem.out.println(e);\r\n\r\n\t}", "private static void LessonInheritance() {\n Employee employee1 = new Employee();\n\n //Set Id , firstName and lastName of Employee from Person Class and BaseBO\n employee1.setId(13);\n employee1.setFirstName(\"Jordan(e)\");\n employee1.setLastName(\"Walker(e)\");\n\n //Print info out\n System.out.println(\"Id#\" + employee1.getId() + \" \" + employee1.getFirstName() + \" \" + employee1.getLastName());\n\n //create a Person object and inherit from BaseBO class Id\n Person person3 = new Person();\n person3.setId(7);\n person3.setFirstName(\"Jordan(p)\");\n person3.setLastName(\"Walker(p)\");\n\n System.out.println(\"Id#\" + person3.getId() + \" \" + person3.getFirstName() + \" \" + person3.getLastName());\n }", "@Override\n public Employee addNewEmployee(Employee employee) {\n return null;\n }", "public Employee(int employeeId, String employeeName, String employeeAddress) {\r\n\t\r\n\t\tthis.employeeId = employeeId;\r\n\t\tthis.employeeName = employeeName;\r\n\t\tthis.employeeAddress = employeeAddress;\r\n\t}", "public static void main(String[] args) {\n Emp e=new Emp(\"tinku\",\"u\",\"hyd\",50000,(float)0.5);\n Emp m=new Emp(\"venu\",\"G\",\"hyd\",50000,(float)0.25);\n Emp k=new Emp(\"Srikanth\",\"v\",\"hyd\",75000,(float)0.15);\n Emp t=new Emp(\"sahith\",\"G\",\"hyd\",85000,(float)0.2);\n System.out.println(e);\n System.out.println(e.claculateNetSalary());\n System.out.println(m.claculateNetSalary());\n System.out.println(k.claculateNetSalary());\n System.out.println(t.claculateNetSalary());\n \t}", "public static void main(String[] args) {\nEmployee emp1 =new Employee();\n\nemp1.name=\"MarufJon\";\nemp1.jobTitle=\"Teacher\";\nemp1.gender='m';\nemp1.age=22;\n\n\n\nEmployee emp2= new Employee() ;\nemp2.name=\"kiki\";\nemp2.jobTitle=\"HR\";\nemp2.age=26;\nemp2.gender='f';\n\n\nemp1.work();\nemp2.work();\n\t\n\nemp1.eat(\"chicken kesadia\");\nemp2.eat(\"salad\");\nemp1.walk();\nemp1.sleep(5);\nemp2.sleep(8);\n\t}", "public Large_Employee(\n String txtMobile,\n String txtEmail,\n String emailPassword,\n String corpPhoneType,\n String corpPhoneNumber,\n int employeeID){\n this.txtMobile = txtMobile;\n this.txtEmail = txtEmail;\n this.emailPassword = emailPassword;\n this.corpPhoneType = corpPhoneType;\n this.corpPhoneNumber = corpPhoneNumber;\n this.employeeID = employeeID;\n }", "public Person() {}", "@Override\n public Class<Employee> getType() {\n return Employee.class;\n }", "public Program3 (String empName) {\r\n\t\tname = empName;\r\n\t}", "public Employee(String firstName, String lastName, Date birthDate, \n Date hireDate, Address Address) {\n this.firstName = firstName;\n this.lastName = lastName;\n this.birthDate = birthDate;\n this.hireDate = hireDate;\n this.Address = Address;\n }", "public static void main(String[] args) {\nmanager xx=new manager(\"sarath\",34,\"9895639874\",\"eloor\",30000,\"BPO\");\r\nemployee xx1=new employee(\"jomon\",24,\"9899999999\",\"eloor\",50000,\"testing\");\r\n\r\n\t}", "public void insertEmp(Emp emp) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tDept dept= new Dept(1212, \"IT\", \"Bangalore\");\n\t\tEmp emp = new Emp(1234, \"Tarun\", 9999999999L, dept);\n\t\tSystem.out.println(emp);\n\t\tEmp e1=null;\n\t\ttry {\n\t\t\te1 = (Emp) emp.clone();\n\t\t\t\n\t\t} catch (CloneNotSupportedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tdept.setLocation(\"Chennai\");\n\t\tSystem.out.println(e1);\n\t\t\n\t}", "Person createPerson();", "private EmployeeRepository(){\n\t\t\n\t}" ]
[ "0.82301766", "0.8188918", "0.8174845", "0.8174845", "0.8172443", "0.8172443", "0.8172443", "0.79939437", "0.7909211", "0.78968525", "0.78962404", "0.77880913", "0.7592675", "0.7435114", "0.7412471", "0.7358307", "0.73565286", "0.73298144", "0.72526157", "0.7249148", "0.7206316", "0.7077088", "0.70456576", "0.702859", "0.69346374", "0.6926544", "0.69247377", "0.6918455", "0.69112915", "0.6866415", "0.6846789", "0.6832745", "0.6774651", "0.67733264", "0.6709943", "0.67050135", "0.6669659", "0.6651234", "0.66432023", "0.6618809", "0.65877604", "0.6585099", "0.6584947", "0.6561866", "0.6560834", "0.6552352", "0.65496635", "0.65437984", "0.6540255", "0.6523337", "0.65008485", "0.64959615", "0.64947164", "0.64758635", "0.64750516", "0.64301556", "0.6427988", "0.6419819", "0.6393817", "0.6364179", "0.6350634", "0.63447917", "0.63441926", "0.63222545", "0.6320814", "0.6313988", "0.62932116", "0.6284062", "0.6282124", "0.62786704", "0.6248644", "0.6246799", "0.62247217", "0.62190956", "0.6214897", "0.62078714", "0.6197144", "0.6191621", "0.61873776", "0.6170131", "0.6164745", "0.61540455", "0.6150314", "0.61432964", "0.6133875", "0.6132031", "0.61275166", "0.6110075", "0.61093307", "0.610821", "0.6107825", "0.61050797", "0.6099653", "0.6099311", "0.6096505", "0.6095156", "0.6086674", "0.60795236", "0.6063578", "0.6058908", "0.6057254" ]
0.0
-1
Returns the absolute path for the all the elements within this module. Note that it does not create/check file/directory with such a path.
public String getModulePath() { return mModulePath; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toLocalPath() {\n\n String parentPath = parent.toLocalPath();\n return StringUtils.isBlank(parentPath)\n ? element.getElement()\n : new StringBuilder()\n .append(parentPath)\n .append('.')\n .append(element.getElement())\n .toString();\n }", "public String getAbsolutePath() {\n\t\treturn Util.getAbsolutePath();\n\t}", "protected String path() {\n return path(getName());\n }", "public String getAbsPath();", "private ArrayList<String> getFullDir() {\r\n\t\tArrayList<String> fullDir = new ArrayList<String>();\r\n\r\n\t\t// We go through all the modules in the model and connect the selDir and full\r\n\t\t// top module together.\r\n\t\tfor (int i = 0; i < helperInstMod.model.size(); i++) {\r\n\t\t\tPanelInstMod panel = helperInstMod.model.getElementAt(i);\r\n\r\n\t\t\tif (i == 0) {\r\n\t\t\t\t// We add one more as a buffer for the top module when configuring the modules\r\n\t\t\t\t// (DialogWire).\r\n\t\t\t\tfullDir.add(panel.getSelDir() + \"\\\\\" + panel.getFullTopMod());\r\n\t\t\t}\r\n\t\t\tfullDir.add(panel.getSelDir() + \"\\\\\" + panel.getFullTopMod());\r\n\t\t}\r\n\t\treturn fullDir;\r\n\t}", "public List<File> getClasspathElements() {\n\t\tthis.parseSystemClasspath();\n\t return classpathElements;\n\t}", "public String getAbsolutePath() {\n String path = null;\n if (parent != null) {\n path = parent.getAbsolutePath();\n path = String.format(\"%s/%s\", path, name);\n } else {\n path = String.format(\"/%s\", name);\n }\n return path;\n }", "public String getPath();", "public String getPath();", "public String getPath();", "public String getAttributeFileLibPath();", "public String getPath() {\n String result = \"\";\n Directory curDir = this;\n // Keep looping while the current directories parent exists\n while (curDir.parent != null) {\n // Create the full path string based on the name\n result = curDir.getName() + \"/\" + result;\n curDir = (Directory) curDir.getParent();\n }\n // Return the full string\n result = \"/#/\" + result;\n return result;\n }", "String getPath();", "String getPath();", "String getPath();", "String getPath();", "String getPath();", "public abstract String getPath();", "public abstract String getPath();", "@Override\n public String getAbsolutePathImpl() {\n return file.getAbsolutePath();\n }", "public String getPath() {\n\t\treturn pfDir.getPath();\n\t}", "public String getFullPath()\n {\n return( fullPath );\n }", "public static Path getPath() {\n\t\tPath path = Paths.get(getManagerDir(), NAME);\n\t\treturn path;\n\t}", "public List<ClasspathRelativePath> getRawClasspathElements() {\n return rawClasspathElements;\n }", "@Override\n\tpublic String toString() {\n\t\treturn getFullPath();\n\t}", "public String getPath() { \n\t\treturn getPathElement().getValue();\n\t}", "public abstract List<String> path();", "Path getPath();", "private String getAbsoluteFilesPath() {\n\n //sdcard/Android/data/cucumber.cukeulator\n //File directory = getTargetContext().getExternalFilesDir(null);\n //return new File(directory,\"reports\").getAbsolutePath();\n return null;\n }", "public String getPath()\n {\n StringBuilder buff = new StringBuilder();\n Resource r = this;\n while(r != null)\n {\n if(r.getId() != 1)\n {\n buff.insert(0, r.getName());\n }\n r = r.getParent();\n if(r != null || this.getId() == 1)\n {\n buff.insert(0, '/');\n }\n }\n return buff.toString();\n }", "private String getDesignPath() {\n Class<?> clazz = getClass();\n String designFilePath = null;\n if (clazz.getAnnotation(DeclarativeUI.class).absolutePath()) {\n designFilePath = \"\";\n } else {\n // This is rather nasty.. but it works well enough for now.\n String userDir = System.getProperty(\"user.dir\");\n designFilePath = userDir + \"/uitest/src/\"\n + clazz.getPackage().getName().replace('.', '/') + \"/\";\n }\n\n String designFileName = clazz.getAnnotation(DeclarativeUI.class)\n .value();\n\n return designFilePath + designFileName;\n }", "public String getPath() {\n\t\treturn this.baseDir.getAbsolutePath();\n\t}", "public final String getPath() {\n\t\treturn this.path.toString();\n\t}", "public EphemeralFsPath getPath() {\n return getPaths(fs, steps);\n\n }", "public String getPath(){\r\n\t\treturn path;\r\n\t}", "IPath getPath();", "protected String getPath ()\n\t{\n\t\treturn path;\n\t}", "java.lang.String getXpath();", "public String getRelPath () throws java.io.IOException, com.linar.jintegra.AutomationException;", "public final String getPath()\n {\n return path;\n }", "public String getPath(){\n\t\t\treturn this.path;\n\t\t}", "public void createModuleGeneratedXMLPath() {\n\t\tString[] onlyFolderNames = new String[] {\n\t\t\tmInstance.getModuleGeneratedXMLPath(),\n\t\t\tmModuleName\n\t\t};\n\t\t\n\t\tmModuleGeneratedXMLPath = StringUtils.makeFilePath (onlyFolderNames, false);\n\t}", "ModulePath getModulePath();", "public String getPath()\n {\n return path;\n }", "public String getPath()\n {\n return path;\n }", "public String getPath()\n {\n\n return _path;\n }", "public String getResourcePath();", "public abstract String getFullPath();", "public final String path() {\n return string(preparePath(concat(path, SLASH, name)));\n }", "public String getPath() {\r\n return path;\r\n }", "public String getPath() {\r\n return path;\r\n }", "protected abstract String childFolderPath();", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getRelativeFolderPath() {\r\n return relativeFolderPath;\r\n }", "String getPath() {\r\n\t\treturn path;\r\n\t}", "private char[] getPath() {\n\t\treturn null;\n\t}", "String getPath() {\n return path;\n }", "abstract public String getRingResourcesDir();", "public String path() {\n return filesystem().pathString(path);\n }", "public ArrayList<String> getPath() {\n return list;\n }", "public String getLocationPath();", "@NotNull\n public List<String> extractPotentialPaths(@NotNull PsiElement element) {\n List<String> qualifiedNames = new ArrayList<>();\n\n String path = extractPathName(element, OclTypes.INSTANCE);\n if (!path.isEmpty()) {\n PsiQualifiedNamedElement moduleAlias = PsiFinder.getInstance().findModuleAlias(element.getProject(), path);\n String modulePath = moduleAlias == null ? path : moduleAlias.getQualifiedName();\n qualifiedNames.add(modulePath);\n qualifiedNames.add(((FileBase) element.getContainingFile()).asModuleName() + \".\" + modulePath);\n }\n\n // Walk backward until top of the file is reached, trying to find local opens and opens/includes\n PsiElement item = element;\n while (item != null) {\n if (100 < qualifiedNames.size()) {\n break; // There must be a problem with the parser\n }\n\n if (item instanceof FileBase) {\n qualifiedNames.add(((FileBase) item).asModuleName());\n break;\n } else if (item instanceof PsiOpen || item instanceof PsiInclude) {\n String openName = ((PsiNamedElement) item).getName();\n // Add open value to all previous elements\n List<String> withOpenQualifier = qualifiedNames.stream().map(name -> openName + \".\" + name).collect(Collectors.toList());\n qualifiedNames.addAll(withOpenQualifier);\n\n qualifiedNames.add(openName);\n } else if (item instanceof PsiModule) {\n PsiModule module = (PsiModule) item;\n String moduleName = module.getName();\n String moduleAlias = findModuleAlias(element.getProject(), module.getAlias());\n\n if (moduleAlias != null && !moduleAlias.equals(moduleName)) {\n // Replace module name in resolved paths with the module alias\n qualifiedNames = qualifiedNames.stream().map(name -> {\n if (name.equals(moduleName)) {\n return moduleAlias;\n } else if (name.startsWith(moduleName + \".\")) {\n int length = moduleAlias.length();\n if (length <= moduleName.length()) {\n return moduleAlias + \".\" + moduleName.substring(length);\n }\n } else if (name.endsWith(\".\" + moduleName)) {\n return name.replace(\".\" + moduleName, \".\" + moduleAlias);\n }\n return name;\n }).collect(Collectors.toList());\n }\n }\n\n PsiElement prevItem = item.getPrevSibling();\n if (prevItem == null) {\n PsiElement parent = item.getParent();\n if (parent instanceof PsiLocalOpen) {\n String localOpenName = ((PsiLocalOpen) parent).getName();\n String localOpenAlias = findModuleAlias(element.getProject(), localOpenName);\n qualifiedNames.add(localOpenAlias == null || localOpenAlias.equals(localOpenName) ? localOpenName : localOpenAlias);\n }\n item = parent;\n } else {\n item = prevItem;\n }\n }\n\n qualifiedNames.add(\"Pervasives\");\n return qualifiedNames;\n }", "public String getPath() {\n\t\treturn getString(\"path\");\n\t}", "public File[] elements() {\n File plik = new File(katalog);\n katalog = plik.getAbsolutePath();\n if (katalog.endsWith(\".\")) {\n katalog = katalog.substring(0, katalog.length() - 1);\n }\n return plik.listFiles();\n }", "public String getModuleGeneratedXMLPath() {\n\t\treturn mModuleGeneratedXMLPath;\n\t}", "public java.lang.String getPath() {\n\t\t return path;\n\t }", "public String getPath() {\r\n\t\t\treturn path;\r\n\t\t}", "public static String getBasepath() {\n\t\treturn basepath;\n\t}", "public static String getBasepath() {\n\t\treturn basepath;\n\t}", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\r\n\t\treturn path;\r\n\t}", "public String getPath() {\r\n\t\treturn path;\r\n\t}", "public String getPath() {\r\n\t\treturn path;\r\n\t}", "public Path getPath();" ]
[ "0.63711685", "0.6305153", "0.62357485", "0.62265027", "0.62147015", "0.6141384", "0.6098778", "0.59770703", "0.59770703", "0.59770703", "0.5971509", "0.5963881", "0.5932096", "0.5932096", "0.5932096", "0.5932096", "0.5932096", "0.5926723", "0.5926723", "0.58769566", "0.5856744", "0.5851511", "0.5846057", "0.58334243", "0.5824568", "0.58035326", "0.5796026", "0.57943875", "0.5790324", "0.57797146", "0.57707", "0.57500017", "0.571748", "0.5714982", "0.57115984", "0.5705178", "0.57049537", "0.56864256", "0.5684627", "0.5664071", "0.5657026", "0.56555206", "0.56500536", "0.56327784", "0.56327784", "0.5631918", "0.5629339", "0.56175154", "0.5614654", "0.56143755", "0.56143755", "0.5598118", "0.559714", "0.559714", "0.559714", "0.559714", "0.559714", "0.559714", "0.559714", "0.559714", "0.559714", "0.559714", "0.559714", "0.559714", "0.559714", "0.559714", "0.559714", "0.5589735", "0.5588917", "0.55772257", "0.5574613", "0.5571401", "0.5569479", "0.55679566", "0.5567247", "0.5555062", "0.55533063", "0.55404556", "0.55396855", "0.5538046", "0.5536331", "0.5531871", "0.5531871", "0.5529961", "0.5529205", "0.5529205", "0.5529205", "0.5529205", "0.5529205", "0.5529205", "0.5529205", "0.5529205", "0.5529205", "0.5529205", "0.5529205", "0.5529205", "0.5529205", "0.55163294", "0.55163294", "0.55163294", "0.55128515" ]
0.0
-1
Returns the absolute path for storing all the generated xml of this module. Note that it does not create/check file/directory with such a path.
public void createModuleGeneratedXMLPath() { String[] onlyFolderNames = new String[] { mInstance.getModuleGeneratedXMLPath(), mModuleName }; mModuleGeneratedXMLPath = StringUtils.makeFilePath (onlyFolderNames, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getModuleGeneratedXMLPath() {\n\t\treturn mModuleGeneratedXMLPath;\n\t}", "private String getAbsoluteFilesPath() {\n\n //sdcard/Android/data/cucumber.cukeulator\n //File directory = getTargetContext().getExternalFilesDir(null);\n //return new File(directory,\"reports\").getAbsolutePath();\n return null;\n }", "private String getDesignPath() {\n Class<?> clazz = getClass();\n String designFilePath = null;\n if (clazz.getAnnotation(DeclarativeUI.class).absolutePath()) {\n designFilePath = \"\";\n } else {\n // This is rather nasty.. but it works well enough for now.\n String userDir = System.getProperty(\"user.dir\");\n designFilePath = userDir + \"/uitest/src/\"\n + clazz.getPackage().getName().replace('.', '/') + \"/\";\n }\n\n String designFileName = clazz.getAnnotation(DeclarativeUI.class)\n .value();\n\n return designFilePath + designFileName;\n }", "@Nullable\n @Override\n public IFile getOutputRoot() {\n return myTempModuleLocation.findChild(\"src_gen\");\n }", "abstract public String getDataResourcesDir();", "protected String path() {\n return path(getName());\n }", "public String getAbsolutePath() {\n\t\treturn Util.getAbsolutePath();\n\t}", "Path getBaseInputDir();", "public Path getOutputPath() {\n\t\t\n\t\tString name = getSimulationName();\t\t\n\t\tint l = name.length();\n\t\tString sim_name = name.substring(0, l-11); // \"_SIM_FOLDER\" contains 11 character\n\t\t\n\t\tPath path = Paths.get(outpath + \"\\\\\"+ sim_name);\n\t\tif(!Files.exists(path)) {\n\t\t try {\n\t\t Files.createDirectories(path);\n\t\t } catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t }\n\t\t}\n\t\treturn path;\n\t}", "private String getTmpPath() {\n return getExternalFilesDir(null).getAbsoluteFile() + \"/tmp/\";\n }", "public String getXsdFileName();", "public Path getSimulationLocation() {\n return FileManager.getSimulationDirectory(name);\n }", "public static String getConfigurationFilePath() {\n\n return getCloudTestRootPath() + File.separator + \"Config\"\n + File.separator + \"PluginConfig.xml\";\n }", "abstract public String getRingResourcesDir();", "public static String getDatabaseExportDirectory() {\n\t\tif (xml == null) return \"\";\n\t\treturn databaseExportDir;\n\t}", "URL getWuicXmlPath() {\n return wuicXmlPath;\n }", "public File generateFile()\r\n {\r\n return generateFile(null);\r\n }", "@Override\n public String getAbsolutePathImpl() {\n return file.getAbsolutePath();\n }", "public String setXMLFile(){\n\t\tif(game.getDifficulty() == 0)\n\t\t\treturn \"EasyQuestions.xml\";\n\t\tif(game.getDifficulty() == 1)\n\t\t\treturn \"MediumQuestions.xml\";\n\t\tif(game.getDifficulty() == 2)\n\t\t\treturn \"HardQuestions.xml\";\n\t\telse\n\t\t\treturn \"ExpertQuestions.xml\";\n\t}", "public static Path getOutputPath(Configuration conf) {\n return new Path(getOutputDir(conf));\n }", "public static File getRegistrationDirectory() {\n\t\t\n\t\tFile home = ApplicationRuntime.getInstance().getApplicationHomeDir();\n\n\t\tFile registrationDirectory = new File(home,REGISTRATION_DIRECTORY_NAME);\n\t\tif (!registrationDirectory.exists()) {\n\t\t\tregistrationDirectory.mkdir();\n\t\t}\n\t\treturn registrationDirectory;\n\t}", "public static Path getPath() {\n\t\tPath path = Paths.get(getManagerDir(), NAME);\n\t\treturn path;\n\t}", "abstract File getResourceDirectory();", "public String genLogFilePath() {\n\n\t\tString logFileName = generateFileName();\n\t\tString logFilePath = FileIoUtils.getLogFilePathPrefix(logFileName)\n\t\t\t\t+ \"/\" + logFileName;\n\t\treturn logFilePath;\n\n\t}", "@Override\n public FileObject getPersistenceXml()\n {\n FileObject location = locationProvider.getLocation();\n if (location == null)\n {\n return null;\n }\n return location.getFileObject(\"persistence.xml\"); // NOI18N\n \n }", "private String getPath() {\n\t\treturn context.getRealPath(\"WEB-INF/ConnectionData\");\n\t}", "private String getPath() {\n\t\treturn context.getRealPath(\"WEB-INF/ConnectionData\");\n\t}", "private String getPath() {\n\t\treturn context.getRealPath(\"WEB-INF/ConnectionData\");\n\t}", "private String getPath() {\n\t\treturn context.getRealPath(\"WEB-INF/ConnectionData\");\n\t}", "public Path outputDir() {\n return dir;\n }", "public static File getDatabaseExportDirectoryFile() {\n\t\tif (xml == null) return null;\n\t\treturn new File(basepath + databaseExportDir);\n\t}", "java.io.File getBaseDir();", "private String getPath() {\r\n\t\t\treturn context.getRealPath(\"WEB-INF/ConnectionData\");\r\n\t\t}", "public static String getBasepath() {\n\t\treturn basepath;\n\t}", "public static String getBasepath() {\n\t\treturn basepath;\n\t}", "public String getAbsPath();", "static Path getOutputPath(Configuration conf, String name) {\n String root = conf.get(WORKING_DIR, \"tmp/reasoning\");\n return new Path(root + \"/\" + name);\n }", "private File getDataDir(){\n\t\tFile file = new File(this.configManager.getConfigDirectory() +\n\t\t\t\tFile.separator + \n\t\t\t\tDATA_DIR);\n\t\t\n\t\tif(!file.exists()){\n\t\t\tfile.mkdirs();\n\t\t}\n\t\t\n\t\treturn file;\n\t}", "public String getOutputPath()\n {\n return __m_OutputPath;\n }", "public static String rootDir()\n {\n read_if_needed_();\n \n return _root;\n }", "public static String createDownloadDirectory() {\n \tvar downloadDirectory = Configuration.toString(\"downloadDirectory\");\n \tif (downloadDirectory == null) {\n \t\tdownloadDirectory = \"../../Downloads\";\n \t}\n return downloadDirectory;\n }", "protected String getRootPath() {\n\t\treturn \"/WEB-INF\";\n\t}", "public String getAssetDirectory() {\n return String.format(\"plugin-webapp/%s\", getId());\n }", "public File getModelDir() {\n\t\treturn new File(DataStore.getInstance().getValue(CodegenConstants.DATASTORE_MODEL_DIR));\n\t}", "protected File getCacheDirectory() {\n \t\treturn Activator.getDefault().getStateLocation().append(\"cache\").toFile(); //$NON-NLS-1$\n \t}", "public String getAbsolutePath() {\n String path = null;\n if (parent != null) {\n path = parent.getAbsolutePath();\n path = String.format(\"%s/%s\", path, name);\n } else {\n path = String.format(\"/%s\", name);\n }\n return path;\n }", "public static File getConfigDirectory() {\n return getDirectoryStoragePath(\"/NWD/config\", false);\n }", "public File getOutput(){\n return outputDir;\n }", "static File getRootFile() {\n File root = new File(Constant.CONFIG_DIRECTORY_NAME);\n boolean directoryCreated = true;\n if (!root.exists()) {\n directoryCreated = root.mkdirs();\n }\n if (directoryCreated) {\n return root;\n } else {\n return null;\n }\n }", "@Override\n public String getConfigPath() {\n String fs = String.valueOf(File.separatorChar);\n StringBuilder sb = new StringBuilder();\n\n sb.append(\"scan\").append(fs);\n sb.append(\"config\").append(fs);\n sb.append(\"mesoTableConfig\").append(fs);\n\n return sb.toString();\n }", "public String getOutputPath() {\n\t\treturn outputPath;\n\t}", "public String outputFileDir() {\n return outputFileDir;\n }", "public Path getDataDirectory();", "String getContextPath();", "String getContextPath();", "String getContextPath();", "public String getXslFile() {\n return directory_path2;\n }", "public String getOutputPath () \n\t{\n\t\treturn outputPathTextField.getText();\n\t}", "public String getPath();", "public String getPath();", "public String getPath();", "public String getLocationPath();", "@Override\r\n\tpublic String getRootDir() {\t\t\r\n\t\treturn Global.USERROOTDIR;\r\n\t}", "public File getStoreDir();", "Path getModBookFilePath();", "public String getLocalBasePath() {\n\t\treturn DataManager.getLocalBasePath();\n\t}", "public static String getGeneratorOutputFolder() {\n\t\treturn getOutputFolderName() + \"/\" + PropertiesFile.getInstance().getProperty(\"output_qualifier\");\n\t}", "public String getPath() {\n\t\treturn this.baseDir.getAbsolutePath();\n\t}", "public String getWalletFileDirectoryFull() {\r\n return dataDirectory + walletFileDirectory;\r\n }", "public String getReportPath();", "public Path getOutputBase() {\n return outputBase;\n }", "public String getSavingLocation()\n {\n return Environment.getExternalStorageDirectory() + File.separator + getResources().getString(R.string.app_name);\n }", "FsPath baseDir();", "public String getPathToDefinitionFiles() {\n\treturn msPathToDefinitionFiles;\n }", "abstract public String getImageResourcesDir();", "private String generateSavePath(HttpSession session) {\n try {\n\t\t\tint adminId = ((Admin) session.getAttribute(\"emm.admin\")).getAdminID();\n\t\t\tRandom random = new Random();\n\t\t\tint randomNum = random.nextInt();\n\t\t\tString savePath = AgnUtils.getTempDir() + File.separator +\n\t\t\t \"tmp_csv_file_\" + adminId + \"_\" + randomNum + \".csv\";\n\t\t\treturn savePath;\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Cannot create temp file path for upload file storage\", e);\n\t\t\treturn null;\n\t\t}\n }", "String getInstallRoot();", "public abstract String getPath();", "public abstract String getPath();", "public static String getOutputDir() {\n outputDir = getProperty(\"outputDir\");\n if (outputDir == null) outputDir = \"./\";\n return outputDir;\n }", "String getPath();", "String getPath();", "String getPath();", "String getPath();", "String getPath();", "public String getDir();", "public String getAttributeFileLibPath();", "static File getDistributionInstallationFolder() {\n return ProcessRunnerImpl.getDistRootPath();\n }", "private static String getDirectoryPath() {\n // Replace the path here with your own\n File file = new File(Environment.getExternalStorageDirectory(),\n \"/GenericAndroidSoundboard/Audio/\");\n // Create the directory if it doesn't exist\n if (!file.exists()) {\n file.mkdirs();\n }\n\n // Get the path to the newly created directory\n return Environment.getExternalStorageDirectory()\n .getAbsolutePath() + \"/GenericAndroidSoundboard/Audio/\";\n }", "public String toLocalPath() {\n\n String parentPath = parent.toLocalPath();\n return StringUtils.isBlank(parentPath)\n ? element.getElement()\n : new StringBuilder()\n .append(parentPath)\n .append('.')\n .append(element.getElement())\n .toString();\n }", "protected File getRootDir() {\r\n\t\tif (rootDir == null) {\r\n\t\t\trootDir = new File(getProperties().getString(\"rootDir\"));\r\n\t\t\tif (! rootDir.exists())\r\n\t\t\t\tif (! rootDir.mkdirs())\r\n\t\t\t\t\tthrow new RuntimeException(\"Could not create root dir\");\r\n\t\t}\r\n\t\treturn rootDir;\r\n\t}", "public String getTemplatePath() {\n this.defaultPath = defaultPath.endsWith(File.separator) ? defaultPath : defaultPath + File.separator;\n\n if (Paths.get(defaultPath).toFile().mkdirs()) {\n //Throw exception, couldn't create directories\n }\n\n return defaultPath + (defaultName != null ? defaultName + \".\" + extensionPattern : \"\");\n }", "public void saveConfigXml() {\n // Save the xml object to disk\n IPathManager pm = PathManagerFactory.getPathManager();\n LocalizationContext lc = pm.getContext(LocalizationType.COMMON_STATIC,\n LocalizationLevel.SITE);\n\n LocalizationFile newXmlFile = pm.getLocalizationFile(lc,\n CONFIG_FILE_NAME);\n\n if (newXmlFile.getFile().getParentFile().exists() == false) {\n // System.out.println(\"Creating new directory\");\n\n if (newXmlFile.getFile().getParentFile().mkdirs() == false) {\n // System.out.println(\"Could not create new directory...\");\n }\n }\n\n try {\n // System.out.println(\"Saving -- \"\n // + newXmlFile.getFile().getAbsolutePath());\n jaxb.marshalToXmlFile(configXml, newXmlFile.getFile()\n .getAbsolutePath());\n newXmlFile.save();\n\n lf = newXmlFile;\n } catch (Exception e) {\n statusHandler.handle(Priority.ERROR, \"Couldn't save config file.\",\n e);\n }\n }", "public static File fBuildDir() \r\n\t{\r\n\t\treturn new File(sBasePath() + File.separator + \"build\");\r\n\t}", "private static URL getDeployableXmlUrl(Class<?> clazz)\n {\n // Initialize\n StringBuffer urlString = new StringBuffer();\n\n // Assemble filename in form \"fullyQualifiedClassName\"\n urlString.append(clazz.getName());\n\n // Make a String\n String flatten = urlString.toString();\n\n // Adjust for filename structure instead of package structure\n flatten = flatten.replace('.', '/');\n\n // Append Suffix\n flatten = flatten + DEFAULT_SUFFIX_DEPLOYABLE_XML;\n\n // Get URL\n URL url = Thread.currentThread().getContextClassLoader().getResource(flatten);\n assert url != null : \"URL was not found for \" + flatten;\n \n // Return\n return url;\n }", "private String getFullPath()\n\t{\n\t\tif (libraryName.equals(\"\"))\n\t\t{\n\t\t\treturn fileName;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn libraryName + \"/\" + fileName;\n\t\t}\n\t}", "public String pathToSave() {\n String path;\n File folder;\n do {\n System.out.print(\"Introduce la ruta en la que quieres guardar el fichero(separando directorios por guiones: directorio1-directorio2-directorio3): \");\n path = Utils.getString();\n path = String.valueOf(System.getProperty(\"user.dir\")).substring(0, 2) + \"\\\\\" + path.replace('-', '\\\\');\n folder = new File(path);\n if (!folder.exists()) {\n System.out.println(\"El directorio introducido no existe intentalo de nuevo...\");\n } else {\n if (!folder.isDirectory()) {\n System.out.println(\"Eso no es un directorio intentalo de nuevo...\");\n }\n }\n } while (!folder.exists() && !folder.isDirectory());\n return path;\n }", "public String getTargetGenDir() {\n\t\treturn targetGenDir;\n\t}", "public String getDefDir() {\n\n\t\t// String newDefDir = defDir.replaceAll(\"\\\\\\\\\", \"\\\\\\\\\\\\\\\\\");\n\n\t\treturn defDir;\n\n\t}", "public File getLocalAnnotationDir() throws IOException {\n\t\t\treturn new File(System.getProperty(\"user.home\") + \"/.chipster/annotations\");\n\t\t}" ]
[ "0.70347136", "0.62039566", "0.6189333", "0.60655177", "0.5840153", "0.58352727", "0.5815137", "0.5805048", "0.5778954", "0.5765346", "0.57413155", "0.57359785", "0.5733017", "0.5696486", "0.56921506", "0.5661229", "0.56525123", "0.5649728", "0.56306934", "0.56112427", "0.5609518", "0.5607603", "0.559806", "0.55717206", "0.55706406", "0.55666363", "0.55666363", "0.55666363", "0.55666363", "0.5560168", "0.5547453", "0.5542874", "0.55423343", "0.5541811", "0.5541811", "0.553445", "0.5523351", "0.5520367", "0.5515664", "0.55078036", "0.5498308", "0.5491914", "0.548905", "0.5488416", "0.54877526", "0.5482531", "0.54736745", "0.5472325", "0.54705447", "0.5470311", "0.54658526", "0.5448021", "0.54411453", "0.544008", "0.544008", "0.544008", "0.5439161", "0.54358155", "0.54329485", "0.54329485", "0.54329485", "0.5428822", "0.5425698", "0.5417918", "0.5411683", "0.54113156", "0.53943366", "0.53838146", "0.53811055", "0.53794175", "0.53699255", "0.53698015", "0.53642637", "0.53612566", "0.53567123", "0.53466415", "0.5345046", "0.5342459", "0.5342459", "0.5341506", "0.53323025", "0.53323025", "0.53323025", "0.53323025", "0.53323025", "0.5331794", "0.53188676", "0.53166294", "0.53154075", "0.5309114", "0.5308681", "0.53041923", "0.5294741", "0.5292097", "0.52894825", "0.52856255", "0.5273908", "0.5273781", "0.5272186", "0.52712005" ]
0.7836349
0
Returns the absolute path for the all the generated xml within this module. Note that it does not create/check file/directory with such a path.
public String getModuleGeneratedXMLPath() { return mModuleGeneratedXMLPath; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createModuleGeneratedXMLPath() {\n\t\tString[] onlyFolderNames = new String[] {\n\t\t\tmInstance.getModuleGeneratedXMLPath(),\n\t\t\tmModuleName\n\t\t};\n\t\t\n\t\tmModuleGeneratedXMLPath = StringUtils.makeFilePath (onlyFolderNames, false);\n\t}", "@Nullable\n @Override\n public IFile getOutputRoot() {\n return myTempModuleLocation.findChild(\"src_gen\");\n }", "private String getDesignPath() {\n Class<?> clazz = getClass();\n String designFilePath = null;\n if (clazz.getAnnotation(DeclarativeUI.class).absolutePath()) {\n designFilePath = \"\";\n } else {\n // This is rather nasty.. but it works well enough for now.\n String userDir = System.getProperty(\"user.dir\");\n designFilePath = userDir + \"/uitest/src/\"\n + clazz.getPackage().getName().replace('.', '/') + \"/\";\n }\n\n String designFileName = clazz.getAnnotation(DeclarativeUI.class)\n .value();\n\n return designFilePath + designFileName;\n }", "private String getAbsoluteFilesPath() {\n\n //sdcard/Android/data/cucumber.cukeulator\n //File directory = getTargetContext().getExternalFilesDir(null);\n //return new File(directory,\"reports\").getAbsolutePath();\n return null;\n }", "URL getWuicXmlPath() {\n return wuicXmlPath;\n }", "public String getXsdFileName();", "public String getAbsolutePath() {\n\t\treturn Util.getAbsolutePath();\n\t}", "public String getXslFile() {\n return directory_path2;\n }", "abstract public String getRingResourcesDir();", "protected String path() {\n return path(getName());\n }", "public String getAbsPath();", "abstract public String getDataResourcesDir();", "@Override\n public String getAbsolutePathImpl() {\n return file.getAbsolutePath();\n }", "abstract File getResourceDirectory();", "public static Path getOutputPath(Configuration conf) {\n return new Path(getOutputDir(conf));\n }", "public String getPathToDefinitionFiles() {\n\treturn msPathToDefinitionFiles;\n }", "public String setXMLFile(){\n\t\tif(game.getDifficulty() == 0)\n\t\t\treturn \"EasyQuestions.xml\";\n\t\tif(game.getDifficulty() == 1)\n\t\t\treturn \"MediumQuestions.xml\";\n\t\tif(game.getDifficulty() == 2)\n\t\t\treturn \"HardQuestions.xml\";\n\t\telse\n\t\t\treturn \"ExpertQuestions.xml\";\n\t}", "public XML xml() {\n return new XMLDocument(new Xembler(this.dirs).domQuietly());\n }", "public String getAbsolutePath() {\n String path = null;\n if (parent != null) {\n path = parent.getAbsolutePath();\n path = String.format(\"%s/%s\", path, name);\n } else {\n path = String.format(\"/%s\", name);\n }\n return path;\n }", "public static Path getPath() {\n\t\tPath path = Paths.get(getManagerDir(), NAME);\n\t\treturn path;\n\t}", "public void printXmlPath(StackTraceElement l) throws IOException {\n\t\t String packageNameOnly = l.getClassName().substring(0, l.getClassName().lastIndexOf(\".\"));\n\t\t String classNameOnly = l.getClassName().substring(1 + l.getClassName().lastIndexOf(\".\"), l.getClassName().length());\n\t\t String xml = \"<class name=\\\"\" + packageNameOnly + \".\" + classNameOnly + \"\\\"><methods><include name=\\\"\" + l.getMethodName() + \"\\\"/></methods></class>\";\n\t\t\t fileWriterPrinter(\" XML Path: \" + xml);\n\t\t\t// Renew XML record:\n\t\t\t fileCleaner(\"xml.path\");\n\t\t\t fileWriter( \"xml.path\", xml);\n\t\t\t// Renew Stack Trace Element record:\n\t\t\t fileCleaner(\"stack.trace\");\n\t\t\t fileWriter( \"stack.trace\", l);\n\t\t\t// Append a New Log record:\n\t\t\t if (fileExist(\"run.log\", false)) { fileWriter(\"run.log\", \" XML Path: \" + xml); } \n\t\t}", "static Path getOutputPath(Configuration conf, String name) {\n String root = conf.get(WORKING_DIR, \"tmp/reasoning\");\n return new Path(root + \"/\" + name);\n }", "public static String getConfigurationFilePath() {\n\n return getCloudTestRootPath() + File.separator + \"Config\"\n + File.separator + \"PluginConfig.xml\";\n }", "public static String getBasepath() {\n\t\treturn basepath;\n\t}", "public static String getBasepath() {\n\t\treturn basepath;\n\t}", "private static URL getDeployableXmlUrl(Class<?> clazz)\n {\n // Initialize\n StringBuffer urlString = new StringBuffer();\n\n // Assemble filename in form \"fullyQualifiedClassName\"\n urlString.append(clazz.getName());\n\n // Make a String\n String flatten = urlString.toString();\n\n // Adjust for filename structure instead of package structure\n flatten = flatten.replace('.', '/');\n\n // Append Suffix\n flatten = flatten + DEFAULT_SUFFIX_DEPLOYABLE_XML;\n\n // Get URL\n URL url = Thread.currentThread().getContextClassLoader().getResource(flatten);\n assert url != null : \"URL was not found for \" + flatten;\n \n // Return\n return url;\n }", "abstract public String getTopResourcesDir();", "public File generateFile()\r\n {\r\n return generateFile(null);\r\n }", "Path getBaseInputDir();", "public final int[] xmlPath ()\r\n {\r\n return _value.path();\r\n }", "public Path getSimulationLocation() {\n return FileManager.getSimulationDirectory(name);\n }", "String getContextPath();", "String getContextPath();", "String getContextPath();", "public Path getOutputPath() {\n\t\t\n\t\tString name = getSimulationName();\t\t\n\t\tint l = name.length();\n\t\tString sim_name = name.substring(0, l-11); // \"_SIM_FOLDER\" contains 11 character\n\t\t\n\t\tPath path = Paths.get(outpath + \"\\\\\"+ sim_name);\n\t\tif(!Files.exists(path)) {\n\t\t try {\n\t\t Files.createDirectories(path);\n\t\t } catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t }\n\t\t}\n\t\treturn path;\n\t}", "@Override\n public FileObject getPersistenceXml()\n {\n FileObject location = locationProvider.getLocation();\n if (location == null)\n {\n return null;\n }\n return location.getFileObject(\"persistence.xml\"); // NOI18N\n \n }", "public String genLogFilePath() {\n\n\t\tString logFileName = generateFileName();\n\t\tString logFilePath = FileIoUtils.getLogFilePathPrefix(logFileName)\n\t\t\t\t+ \"/\" + logFileName;\n\t\treturn logFilePath;\n\n\t}", "public String generatedXmlFile(Document doc){\n\t\tStringWriter sw = new StringWriter();\r\n\t\t\t\ttry {\r\n\t\t\t\t\t\r\n\t\t\t\t\tTransformerFactory tf = TransformerFactory.newInstance();\r\n\t\t\t\t\tTransformer transformer = tf.newTransformer();\r\n\t\t\t\t\ttransformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"no\");\r\n\t\t\t\t\ttransformer.setOutputProperty(OutputKeys.METHOD, \"xml\");\r\n\t\t\t\t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\r\n\t\t\t\t\ttransformer.setOutputProperty(OutputKeys.ENCODING, \"UTF-8\");\r\n\r\n\t\t\t\t\ttransformer.transform(new DOMSource(doc), new StreamResult(sw));\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (Exception ex) {\r\n\t\t\t\t\tthrow new RuntimeException(\"Error converting to String\", ex);\r\n\t\t\t\t}\r\n\t\t\t\treturn sw.toString();\r\n\t}", "public String getOutputPath()\n {\n return __m_OutputPath;\n }", "public Path getOutputBase() {\n return outputBase;\n }", "public URI getBaseURI() {\n Map<String, String> map = new LinkedHashMap<>();\n map.put(\"xml\", XML_NAMESPACE);\n return getLink(\"/*/@xml:base\", map);\n }", "public static String getGeneratorOutputFolder() {\n\t\treturn getOutputFolderName() + \"/\" + PropertiesFile.getInstance().getProperty(\"output_qualifier\");\n\t}", "public File getOutput(){\n return outputDir;\n }", "public String getAttributeFileLibPath();", "java.lang.String getXpath();", "abstract public String getImageResourcesDir();", "protected String getRootPath() {\n\t\treturn \"/WEB-INF\";\n\t}", "public String getOutputPath() {\n\t\treturn outputPath;\n\t}", "public Path outputDir() {\n return dir;\n }", "@Override\n public String getConfigPath() {\n String fs = String.valueOf(File.separatorChar);\n StringBuilder sb = new StringBuilder();\n\n sb.append(\"scan\").append(fs);\n sb.append(\"config\").append(fs);\n sb.append(\"mesoTableConfig\").append(fs);\n\n return sb.toString();\n }", "public String getReportPath();", "public String getLocationPath();", "public File getLocalAnnotationDir() throws IOException {\n\t\t\treturn new File(System.getProperty(\"user.home\") + \"/.chipster/annotations\");\n\t\t}", "public String getTargetGenDir() {\n\t\treturn targetGenDir;\n\t}", "public String getOutputPath () \n\t{\n\t\treturn outputPathTextField.getText();\n\t}", "private String getOutputFileName(JCas pJCas) {\n String returnValue = null;\n \n String name = getSourceName(pJCas);\n \n if ((this.outputProjectDirectorySaved.startsWith(\"/\")) || (this.outputProjectDirectorySaved.startsWith(\"\\\\\"))\n || (this.outputProjectDirectorySaved.indexOf(\":\") == 1))\n returnValue = this.outputProjectDirectorySaved + \"/\" + name + \".txt.knowtator.xml\";\n else\n returnValue = this.homeDir + \"/\" + this.eHostWorkSpaceName + \"/\" + this.projectName + \"/saved/\" + name\n + \".txt.knowtator.xml\";\n \n return returnValue;\n }", "protected abstract String getResourcePath();", "public String toLocalPath() {\n\n String parentPath = parent.toLocalPath();\n return StringUtils.isBlank(parentPath)\n ? element.getElement()\n : new StringBuilder()\n .append(parentPath)\n .append('.')\n .append(element.getElement())\n .toString();\n }", "private static String getResourcePath(String resPath) {\n URL resource = XmlReaderUtils.class.getClassLoader().getResource(resPath);\n Assert.assertNotNull(\"Could not open the resource \" + resPath, resource);\n return resource.getFile();\n }", "static Path getSchemaPath(Configuration conf) {\n int iteration = lastSchemaUpdate(conf);\n return getOutputPath(conf, SCHEMA_BASE + iteration);\n }", "java.io.File getBaseDir();", "protected String getBaseDir(Element root) {\n\t\tString basedir = root.getAttribute(\"basedir\");\n\n\t\tif (basedir.length() == 0) {\n\t\t\t// No base dir defined\n\t\t\treturn null;\n\t\t}\n\n\t\tif (new File(basedir).isAbsolute()) {\n\t\t\t// An absolute base dir defined\n\t\t\treturn basedir;\n\t\t} else {\n\t\t\t// Append the current working directory to the relative base dir\n\t\t\treturn new File(System.getProperty(\"user.dir\"), basedir)\n\t\t\t\t\t.getAbsolutePath();\n\t\t}\n\t}", "public File getConfigRoot()\r\n\t{\n\t\treturn file.getParentFile();\r\n\t}", "public String getPath() {\n\t\treturn this.baseDir.getAbsolutePath();\n\t}", "public String getResourcePath();", "public static String getDatabaseExportDirectory() {\n\t\tif (xml == null) return \"\";\n\t\treturn databaseExportDir;\n\t}", "Path getModBookFilePath();", "FileCollection getGeneratedSourcesDirs();", "String getApplicationContextPhyPath()\n {\n return configfile.application_context_phy_path;\n }", "abstract protected String getOtherXml();", "private String getPath() {\n\t\treturn context.getRealPath(\"WEB-INF/ConnectionData\");\n\t}", "private String getPath() {\n\t\treturn context.getRealPath(\"WEB-INF/ConnectionData\");\n\t}", "private String getPath() {\n\t\treturn context.getRealPath(\"WEB-INF/ConnectionData\");\n\t}", "private String getPath() {\n\t\treturn context.getRealPath(\"WEB-INF/ConnectionData\");\n\t}", "FsPath baseDir();", "public java.lang.String getXml();", "protected String retrieveRbFile() {\r\n\t\tString className = this.getClass().getName();\r\n\t\tString packageName = this.getClass().getPackage().getName() + \".\";\r\n\t\treturn className.replaceFirst(packageName, \"\");\r\n\t}", "private String getPath() {\r\n\t\t\treturn context.getRealPath(\"WEB-INF/ConnectionData\");\r\n\t\t}", "public String getAssetDirectory() {\n return String.format(\"plugin-webapp/%s\", getId());\n }", "String getAnnotationFile() {\n File imgFile = photos[fileIndex];\n String parentDir = imgFile.getParent();\n String fileName = imgFile.getName();\n String annotationName = fileName.replace(fileName.substring(fileName.lastIndexOf('.') + 1), \"xml\");\n File annotationDir = new File(parentDir.replace(\"images\", \"annotations\"));\n if (!annotationDir.exists()) {\n annotationDir.mkdirs();//create dir if none\n }\n return annotationDir.getAbsolutePath() + File.separator + annotationName;\n }", "private static String toAbsPathStr(String relPath, FileSystem fs) {\n String retPath = \"\";\n Directory tmpDir = (Directory) fs.checkPath(relPath, \"directory\");\n while (!tmpDir.equals(fs.getRoot())) {\n retPath = \"/\" + tmpDir.getName() + retPath;\n tmpDir = tmpDir.getParentDirectory();\n }\n return retPath;\n }", "String getApplicationContextPath();", "private String getFullPath()\n\t{\n\t\tif (libraryName.equals(\"\"))\n\t\t{\n\t\t\treturn fileName;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn libraryName + \"/\" + fileName;\n\t\t}\n\t}", "public String getRelPath () throws java.io.IOException, com.linar.jintegra.AutomationException;", "org.apache.xmlbeans.XmlString xgetSystem();", "private String getTmpPath() {\n return getExternalFilesDir(null).getAbsoluteFile() + \"/tmp/\";\n }", "public abstract String getPath();", "public abstract String getPath();", "public String getPath();", "public String getPath();", "public String getPath();", "String getInstallRoot();", "public static String rootDir()\n {\n read_if_needed_();\n \n return _root;\n }", "String rootPath();", "static File getDistributionInstallationFolder() {\n return ProcessRunnerImpl.getDistRootPath();\n }", "public String outputFileDir() {\n return outputFileDir;\n }", "@Override\n public void fileGenerated(@NotNull String outputRoot, @NotNull String relativePath) {\n IntelliJEvent e = new IntelliJEvent(System.currentTimeMillis(), TYPE, \"file_generated\");\n e.addExtraData(\"root\", StringUtil.md5Encode(outputRoot));\n e.addExtraData(\"path\", StringUtil.md5Encode(relativePath));\n Persistence.getInstance().add(e);\n }", "public String getPath() {\n String result = \"\";\n Directory curDir = this;\n // Keep looping while the current directories parent exists\n while (curDir.parent != null) {\n // Create the full path string based on the name\n result = curDir.getName() + \"/\" + result;\n curDir = (Directory) curDir.getParent();\n }\n // Return the full string\n result = \"/#/\" + result;\n return result;\n }", "public String getLocalBasePath() {\n\t\treturn DataManager.getLocalBasePath();\n\t}", "@Override\n public String getServicesXMLPath()\n {\n return servicesXMLPath;\n }" ]
[ "0.7994181", "0.63843864", "0.61003006", "0.6076043", "0.5845679", "0.5806133", "0.5761331", "0.56920034", "0.56247485", "0.559834", "0.55726105", "0.5564445", "0.5521619", "0.548041", "0.5478209", "0.54771435", "0.54707026", "0.5466329", "0.545756", "0.5438681", "0.54349476", "0.54100174", "0.54038024", "0.5396095", "0.5396095", "0.53953063", "0.5388623", "0.53820926", "0.53760505", "0.5373518", "0.5368933", "0.5351873", "0.5351873", "0.5351873", "0.53483063", "0.53282344", "0.53259146", "0.53201836", "0.5319305", "0.5316226", "0.5313192", "0.53103614", "0.5309978", "0.5305434", "0.528631", "0.52767575", "0.52720094", "0.52602166", "0.5248791", "0.52437276", "0.5237089", "0.52338827", "0.5221821", "0.5218877", "0.52187496", "0.5188541", "0.518123", "0.5173649", "0.51690656", "0.5167814", "0.5164622", "0.51641005", "0.5156773", "0.5153361", "0.5147693", "0.51432675", "0.514091", "0.51334673", "0.51264906", "0.5122918", "0.5116039", "0.5116039", "0.5116039", "0.5116039", "0.5115464", "0.51078427", "0.5096303", "0.50953805", "0.509355", "0.50931877", "0.50905067", "0.5089223", "0.5086069", "0.5080474", "0.5074488", "0.5073869", "0.50737405", "0.50737405", "0.5070161", "0.5070161", "0.5070161", "0.50670546", "0.5062327", "0.50619996", "0.50609946", "0.50604063", "0.5056094", "0.50555646", "0.5045477", "0.5031064" ]
0.7326886
1
Creates the path to this application's javawebstart directory.
private void createJavaWebStartPath() { String[] onlyFolderNames = new String[] { mInstance.getJavaWebStartPath(), mModuleName }; mJavaWebStartPath = StringUtils.makeFilePath (onlyFolderNames, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createDirectory() {\r\n\t\tpath = env.getProperty(\"resources\") + \"/\" + Year.now().getValue() + \"/\";\r\n\t\tFile file = new File(path);\r\n\t\tif (!file.exists())\r\n\t\t\tfile.mkdirs();\r\n\t}", "public static String createDownloadDirectory() {\n \tvar downloadDirectory = Configuration.toString(\"downloadDirectory\");\n \tif (downloadDirectory == null) {\n \t\tdownloadDirectory = \"../../Downloads\";\n \t}\n return downloadDirectory;\n }", "public String getJavaWebStartPath() {\n return mJavaWebStartPath;\n }", "public void createModuleJSPPath() {\n\t\tString[] onlyFolderNames = new String[] {\n\t\t\tmInstance.getWebModuleCompileJspPath(),\n\t\t\tmModuleName\n\t\t};\n\t\t\n\t\tmModuleJSPPath = StringUtils.makeFilePath (onlyFolderNames, false);\n\t}", "public File getHomeDir() {\n\t\tFile f = new File(System.getProperty(\"user.home\"),MuViChatConstants.muviHomeDir);\t\t\n if (!f.isDirectory()) {\n\t f.mkdir();\t \n\t }\n return f;\n\t}", "private void createDir(){\n\t\tPath path = Path.of(this.dir);\n\t\ttry {\n\t\t\tFiles.createDirectories(path);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public Path createBootclasspath() {\r\n return getCommandLine().createBootclasspath(getProject()).createPath();\r\n }", "private File confirmWebappDirectory(Properties props) {\r\n\t\tString filename = getRequiredProperty(props, PROP_WEBAPP_DIRECTORY);\r\n\t\tFile webappDirectory = new File(filename);\r\n\t\tif (!webappDirectory.exists()) {\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid value for '\"\r\n\t\t\t\t\t+ PROP_WEBAPP_DIRECTORY + \"': directory '\" + filename\r\n\t\t\t\t\t+ \"' does not exist.\");\r\n\t\t}\r\n\t\tif (!webappDirectory.isDirectory()) {\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid value for '\"\r\n\t\t\t\t\t+ PROP_WEBAPP_DIRECTORY + \"': '\" + filename\r\n\t\t\t\t\t+ \"' is not a directory.\");\r\n\t\t}\r\n\t\tif (!webappDirectory.canWrite()) {\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid value for '\"\r\n\t\t\t\t\t+ PROP_WEBAPP_DIRECTORY + \"': directory '\" + filename\r\n\t\t\t\t\t+ \"' is not writeable.\");\r\n\t\t}\r\n\t\treturn webappDirectory;\r\n\t}", "@Override\n protected void createRootDir() {\n }", "private static void makeDirPath(String targetAddr) {\n\t\tString parentPath = PathUtil.getImgBasePath() + targetAddr;\r\n\t\tFile dirPath = new File(parentPath);\r\n\t\tif (!dirPath.exists()) {\r\n\t\t\tdirPath.mkdirs();\r\n\t\t}\r\n\t}", "protected static void createDirectory(MasterProcedureEnv env, NamespaceDescriptor nsDescriptor)\n throws IOException {\n createDirectory(env.getMasterServices().getMasterFileSystem(), nsDescriptor);\n }", "private static void doCreateDir() {\n String newDir = \"new_dir\";\n boolean success = (new File(newDir)).mkdir();\n\n if (success) {\n System.out.println(\"Successfully created directory: \" + newDir);\n } else {\n System.out.println(\"Failed to create directory: \" + newDir);\n }\n\n // Create a directory; all non-existent ancestor directories are\n // automatically created.\n newDir = \"c:/export/home/jeffreyh/new_dir1/new_dir2/new_dir3\";\n success = (new File(newDir)).mkdirs();\n\n if (success) {\n System.out.println(\"Successfully created directory: \" + newDir);\n } else {\n System.out.println(\"Failed to create directory: \" + newDir);\n }\n\n }", "public String createWebsite(String websiteName){\n directory = path + websiteName;\n File newFolder = new File(directory);\n\n newFolder.mkdirs();\n return directory;\n }", "public static String setupJMeterHome() {\n if (JMeterUtils.getJMeterProperties() == null) {\n String file = \"jmeter.properties\";\n File f = new File(file);\n if (!f.canRead()) {\n System.out.println(\"Can't find \" + file + \" - trying bin/ and ../bin\");\n if (!new File(\"bin/\" + file).canRead()) {\n // When running tests inside IntelliJ\n filePrefix = \"../bin/\"; // JMeterUtils assumes Unix-style separators\n } else {\n filePrefix = \"bin/\"; // JMeterUtils assumes Unix-style separators\n }\n file = filePrefix + file;\n } else {\n filePrefix = \"\";\n }\n // Used to be done in initializeProperties\n String home=new File(System.getProperty(\"user.dir\"),filePrefix).getParent();\n System.out.println(\"Setting JMeterHome: \"+home);\n JMeterUtils.setJMeterHome(home);\n }\n return filePrefix;\n }", "public IStatus prepareRuntimeDirectory(IPath baseDir);", "public static void createOutputDirectoryPath(String path){\n \n new File(path).mkdirs();\n \n }", "private File createWorkingDir( final String path )\n {\n File workDir = new File( path );\n workDir.mkdirs();\n return workDir;\n }", "protected String getRootPath() {\n\t\treturn \"/WEB-INF\";\n\t}", "@Override\n public String getApplicationDirectory() {\n return Comm.getAppHost().getAppLogDirPath();\n }", "private void makeDirectory() {\n String userHome = System.getProperty(\"user.home\");\n wnwData = new File(userHome + \"/.wnwdata\");\n wnwData.mkdirs();\n\n makeCampaignChallengesFile();\n makeCustomChallengesFile();\n makeProgressFile();\n makeSettingsFile();\n }", "public static String getOutputDir() {\n outputDir = getProperty(\"outputDir\");\n if (outputDir == null) outputDir = \"./\";\n return outputDir;\n }", "private File getHomeDirectory() {\n String brunelDir = System.getProperty(\"brunel.home\");\n File home = brunelDir != null ? new File(brunelDir) :\n new File(System.getProperty(\"user.home\"), \"brunel\");\n return ensureWritable(home);\n }", "public Path createClasspath() {\r\n return getCommandLine().createClasspath(getProject()).createPath();\r\n }", "public void createTestDir() {\n\t\tworkDir = new File(System.getProperty(\"test.dir\", \"target\"));\n\t}", "private void createScratchDirectory(Path rootpath) {\n\t\tprintMsg(\"running createScratchDirectory() in \\\"\" + this.getClass().getName() + \"\\\" class.\");\n\t\t\n\t\tif (Files.isDirectory(rootpath)) {\n\t\t\tprintMsg(\"The \" + theRootPath + \" exists...\");\n\t\t} else {\n\t\t\tprintMsg(\"Creating \" + theRootPath);\n\t\t\ttry {\n\t\t\t\tFiles.createDirectories(rootpath);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "private static String createAppSpecificLocalDir(String baseDir, String applicationIdString,\n String user, int dagIdentifier) {\n return baseDir + File.separator + \"usercache\" + File.separator + user + File.separator +\n \"appcache\" + File.separator + applicationIdString + File.separator + dagIdentifier;\n }", "private void createServiceDirectory(String serviceID){\n \n String changedServiceID = serviceID.replaceAll(\"\\\\.\",\"&\");\n changedServiceID = changedServiceID.replaceAll(\":\",\"&\");\n \n //Create directory to store output files of service\n File dir = new File(sessionDirectory.getPath()+\"/\"+changedServiceID);\n dir.mkdir();\n \n //Add created directory to map \"servicesDirectories\"\n servicesDirectories.put(serviceID,dir);\n \n }", "private String getWebTmpDir()\n\t\t\tthrows Exception\n\t{\n\t\t\treturn Contexto.getPropiedad(\"TMP.UPLOAD2\");\n }", "public static File getRegistrationDirectory() {\n\t\t\n\t\tFile home = ApplicationRuntime.getInstance().getApplicationHomeDir();\n\n\t\tFile registrationDirectory = new File(home,REGISTRATION_DIRECTORY_NAME);\n\t\tif (!registrationDirectory.exists()) {\n\t\t\tregistrationDirectory.mkdir();\n\t\t}\n\t\treturn registrationDirectory;\n\t}", "public void createModuleBackupPath() {\n\t\tString[] onlyFolderNames = new String[] {\n\t\t\tmInstance.getModuleBackupRepositoryPath(),\n\t\t\tmModuleName\n\t\t};\n\t\t\n\t\tmModuleBackupPath = StringUtils.makeFilePath (onlyFolderNames, false);\n\t}", "public static String getBasePath() {\n String basePath;\n if (new File(\"../../MacOS/JavaApplicationStub\").canExecute()) {\n basePath = \"../../../..\";\n } else {\n basePath = \".\";\n }\n return basePath;\n }", "private FileObject getJavaPlatformRoot() throws IOException {\n FileObject retVal;\n String javaHome = instance.getJavaHome();\n if (null == javaHome || javaHome.trim().length() < 1) {\n File dir = new File(getJdkHome());\n retVal = FileUtil.createFolder(FileUtil.normalizeFile(dir));\n } else {\n File f = new File(javaHome);\n if (f.exists()) {\n retVal = FileUtil.createFolder(FileUtil.normalizeFile(f));\n } else {\n throw new FileNotFoundException(\n NbBundle.getMessage(StartTask.class,\n \"MSG_INVALID_JAVA\", instanceName, javaHome));\n }\n }\n return retVal;\n }", "void setAppRootDirectory(String rootDir);", "private String downloadFolder(){\n\t\tFile home = new File(System.getProperty(\"user.home\"));\n\t\tFile folder = new File (home,\"Downloads/PaluDownloads\");\n\t\tif (!folder.exists()){\n\t\t\tfolder.mkdir();\n\t\t}\n\t\treturn folder.getAbsolutePath();\n\t}", "protected File getFlexHomeDirectory()\n\t{\n\t\tif (!m_initializedFlexHomeDirectory)\n\t\t{\n\t\t\tm_initializedFlexHomeDirectory = true;\n\t\t\tm_flexHomeDirectory = new File(\".\"); // default in case the following logic fails //$NON-NLS-1$\n\t\t\tString flexHome = System.getProperty(\"application.home\"); //$NON-NLS-1$\n\t\t\tif (flexHome != null && flexHome.length() > 0)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tm_flexHomeDirectory = new File(flexHome).getCanonicalFile();\n\t\t\t\t}\n\t\t\t\tcatch (IOException e)\n\t\t\t\t{\n\t\t\t\t\t// ignore\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn m_flexHomeDirectory;\n\t}", "private String getInitialDirectory() {\n String lastSavedPath = controller.getLastSavePath();\n\n if (lastSavedPath == null) {\n return System.getProperty(Constants.JAVA_USER_HOME);\n }\n\n File lastSavedFile = new File(lastSavedPath);\n\n return lastSavedFile.getAbsoluteFile().getParent();\n }", "private void createClassPath() {\n classPath = classFactory.createClassPath();\n }", "public IPath getRuntimeBaseDirectory(TomcatServer server);", "@Override\r\n\tpublic String getRootDir() {\t\t\r\n\t\treturn Global.USERROOTDIR;\r\n\t}", "public OutputResponse mkdirs(String path){\n String command = \"mkdir -p \" + path;\n return jobTarget.runCommand( command);\n }", "public static String getWorkingDirectory(Context context) {\n String res;\n if (isSDCardMounted()) {\n String directory = \"For Happy\";\n res = Environment.getExternalStorageDirectory().getAbsolutePath() + \"/\" + directory;\n } else {\n res = context.getFilesDir().getAbsolutePath() + \"/\";\n }\n if (!res.endsWith(\"/\")) {\n res += \"/\";\n }\n File f = new File(res);\n if (!f.exists()) {\n boolean success = f.mkdirs();\n if (!success) {\n LogUtil.e(\"FileUtils create file failed\");\n }\n }\n return res;\n }", "public String getWebappPathPrefix() {\n return webSiteProps.getWebappPathPrefix();\n }", "private static String getRioHomeDirectory() {\n String rioHome = RioHome.get();\n if(!rioHome.endsWith(File.separator))\n rioHome = rioHome+File.separator;\n return rioHome;\n }", "Path createPath();", "private String buildDeployFileName(final String originalFileName) {\n String tempDir = System.getProperty(\"java.io.tmpdir\");\n StringBuilder builder = new StringBuilder();\n builder.append(tempDir);\n builder.append(\"/\");\n builder.append(originalFileName);\n return builder.toString();\n }", "public static void createCSSJava(Website websiteInfo){\n if(websiteInfo.javFol)\n {\n File newFolder = new File(websiteInfo.currentPath + \"/js\");\n boolean folderTest = newFolder.mkdir();\n\n if (folderTest) {\n System.out.println(websiteInfo.successMessage + websiteInfo.name + \"/js\");\n } else {\n System.out.println(\"Could not create folder\");\n }\n }\n if(websiteInfo.cssFol)\n {\n File newFolder = new File(websiteInfo.currentPath + \"/CSS\");\n boolean folderTest = newFolder.mkdir();\n\n if (folderTest) {\n System.out.println(\"Created ./website/\" + websiteInfo.name + \"/CSS\");\n } else {\n System.out.println(\"Could not create folder\");\n }\n }\n }", "public String createCSSFolder(String websiteName){\n directory = path + websiteName + \"/css\";\n return directory;\n }", "private void createDirectories()\r\n\t{\r\n\t\t// TODO: Do some checks here\r\n\t\tFile toCreate = new File(Lunar.OUT_DIR + Lunar.PIXEL_DIR\r\n\t\t\t\t\t\t\t\t\t+ Lunar.PROCESSED_DIR);\r\n\t\ttoCreate.mkdirs();\r\n\t\ttoCreate = null;\r\n\t\ttoCreate = new File(Lunar.OUT_DIR + Lunar.ROW_DIR + Lunar.PROCESSED_DIR);\r\n\t\ttoCreate.mkdirs();\r\n\t\ttoCreate = null;\r\n\t}", "protected File getRootDir() {\r\n\t\tif (rootDir == null) {\r\n\t\t\trootDir = new File(getProperties().getString(\"rootDir\"));\r\n\t\t\tif (! rootDir.exists())\r\n\t\t\t\tif (! rootDir.mkdirs())\r\n\t\t\t\t\tthrow new RuntimeException(\"Could not create root dir\");\r\n\t\t}\r\n\t\treturn rootDir;\r\n\t}", "public String getAssetDirectory() {\n return String.format(\"plugin-webapp/%s\", getId());\n }", "static public void createClusterProfileDir() {\n if (new File(getClusterProfileDir()).exists() == true) {\n return;\n }\n\n String dir = IJ.getDirectory(\"home\") + File.separator + \".MosaicToolSuite\";\n try {\n ShellCommand.exeCmd(\"mkdir \" + dir);\n }\n catch (final IOException e) {\n e.printStackTrace();\n }\n catch (final InterruptedException e) {\n e.printStackTrace();\n }\n\n dir += File.separator + \"clusterProfile\";\n\n try {\n ShellCommand.exeCmd(\"mkdir \" + dir);\n }\n catch (final IOException e) {\n e.printStackTrace();\n }\n catch (final InterruptedException e) {\n e.printStackTrace();\n }\n }", "public static File getScriptDirectory() {\n \t\treturn new File(getScriptlerHomeDirectory(), \"scripts\");\n \t}", "public File getJavaHome()\n {\n return javaHomeDir;\n }", "private String getDirectoryForBackup() {\n\t\tString backupPath = configurationService.getValue(BACKUP_FOLDER_CONFIG);\n\t\tif (backupPath == null) {\n\t\t\t// if backup path null throw error, backup folder must be set\n\t\t\tthrow new ResultCodeException(CoreResultCode.BACKUP_FOLDER_NOT_FOUND,\n\t\t\t\t\tImmutableMap.of(\"property\", BACKUP_FOLDER_CONFIG));\n\t\t}\n\t\t// apend script default backup folder\n\t\tbackupPath = backupPath + \"/\" + SCRIPT_DEFAULT_BACKUP_FOLDER;\n\t\t// add date folder\n\t\tZonedDateTime date = ZonedDateTime.now();\n\t\tDecimalFormat decimalFormat = new DecimalFormat(\"00\");\n\t\treturn backupPath + date.getYear() + decimalFormat.format(date.getMonthValue())\n\t\t\t\t+ decimalFormat.format(date.getDayOfMonth()) + \"/\";\n\t}", "public static File getPlatformDir () {\n return new File (System.getProperty (\"netbeans.home\")); // NOI18N\n }", "private void createFolders() {\n File f = new File(System.getProperty(\"user.dir\") + \"/chatimages/\");\n if (!f.exists()){\n f.mkdir();\n }\n }", "String getDirectoryPath();", "public static File fBuildDir() \r\n\t{\r\n\t\treturn new File(sBasePath() + File.separator + \"build\");\r\n\t}", "File getTargetDirectory();", "protected File getAsinstalldir() throws ClassNotFoundException {\n\t\tif (asinstalldir == null) {\n\t\t\tString home = getProject().getProperty(\"asinstall.dir\");\n\t\t\tif (home != null) {\n asinstalldir = new File(home);\n\t\t\t}\n else {\n home = getProject().getProperty(\"sunone.home\");\n if (home != null)\n {\n final String msg = lsm.getString(\"DeprecatedProperty\", new Object[] {\"sunone.home\", \"asinstall.dir\"});\n log(msg, Project.MSG_WARN);\n asinstalldir = new File(home);\n }\n \n }\n\t\t}\n if (asinstalldir!=null) verifyAsinstalldir(asinstalldir);\n\t\treturn asinstalldir;\n\t}", "public static void main(String[] args) {\n doCreateDir();\n }", "public void createSubDirCameraTaken() {\n\t\tFile f = new File(getPFCameraTakenPath());\n\t\tf.mkdirs();\n\t}", "private static File setYdfDirectory()\r\n/* 27: */ throws IOException\r\n/* 28: */ {\r\n/* 29: 32 */ log.finest(\"OSHandler.setYdfDirectory\");\r\n/* 30: 33 */ ydfDirectory = new File(USER_HOME + \"/\" + \".yourdigitalfile\");\r\n/* 31: 34 */ ydfDirectory.mkdir();\r\n/* 32: 35 */ return ydfDirectory;\r\n/* 33: */ }", "private File getThemeDeployDir() throws MojoExecutionException {\n File themeDeployDir = null;\n if (serverDeployDir == null) {\n String webappsDirProp = project.getProperties().getProperty(WEBAPPS_PROP);\n if (webappsDirProp == null) {\n throw new MojoExecutionException(\"Property '\"+WEBAPPS_PROP+\"' is not defined, parameter serverDeployDir neither\");\n }\n File webappsDir = new File(webappsDirProp);\n if (!webappsDir.isDirectory()) {\n throw new MojoExecutionException(\"Property '\"+WEBAPPS_PROP+\"' is not correct\");\n }\n themeDeployDir = new File(webappsDir.getAbsolutePath()\n +File.separator\n +project.getArtifactId());\n } else {\n themeDeployDir = new File(serverDeployDir\n +File.separator\n +project.getArtifactId());\n }\n if (!themeDeployDir.isDirectory()) {\n throw new MojoExecutionException(\"Theme is not deployed at '\"+themeDeployDir.getAbsolutePath()+\"'\");\n }\n return themeDeployDir;\n }", "@Override\n public void afterServletStart() {\n System.setProperty(\"opennms.home\", m_onmsHome);\n ConfigurationTestUtils.setRelativeHomeDirectory(m_onmsHome);\n }", "static Path createBackupDirectory(Path savegame) {\r\n\t\tPath backupDirectory = Paths.get(savegame.getParent() + \"\\\\Backups\");\r\n\t\tif (!Files.isDirectory(backupDirectory)) {\r\n\t\t\ttry {\r\n\t\t\t\tFiles.createDirectory(backupDirectory);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tSystem.out.println(\"Error: couldn't create Backup directory\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tif (Files.isDirectory(backupDirectory)) {\r\n\t\t\tSystem.out.println(\"Created Backup Directory..\");\r\n\t\t}\r\n\t\treturn backupDirectory;\r\n\t}", "@TaskAction\n public void create() {\n dir.mkdirs();\n getChmod().chmod(dir, dirMode);\n }", "public String getFileDirectory() {\n String storedDirectory = settings.get(\"fileDirectory\");\n \n // Default to the program files\n if (storedDirectory == null) {\n storedDirectory = System.getenv(\"ProgramFiles\");\n }\n \n return storedDirectory;\n }", "public File getHomeDir() {\n return physicalHomeDir;\n }", "public File getDefaultOutputDir() {\n File out = _mkdir(XPreferencesFactory.kDefaultReportsOutputDir.getDir(false));\r\n String dn = NamingConventions.createNiceEnglishDate_for_dirs();\r\n return _mkdir(new File(out, dn));\r\n }", "public int mkdirs(String callingPkg, String path) throws RemoteException;", "public static void creator(Website websiteInfo){\n //creates folder using info on current directory\n File newFolder = new File(websiteInfo.currentPath);\n boolean websiteTest = newFolder.mkdir();\n\n if(websiteTest){\n System.out.println(\"Created ./website/\"+ websiteInfo.name);\n htmlFile(websiteInfo);\n createCSSJava(websiteInfo);\n }else{\n System.out.println(\"Could not create website\");\n }\n }", "@Override\n\tpublic void generateDirectories() {\n\t\tFile file = new File(\"Data/My Contacts/\");\n\n\t\tif (!file.exists()) {\n\t\t\tfile.mkdirs();\n\t\t}\n\t}", "public String getProgramHomeDirName() {\n return pathsProvider.getProgramDirName();\n }", "public void createModuleGeneratedXMLPath() {\n\t\tString[] onlyFolderNames = new String[] {\n\t\t\tmInstance.getModuleGeneratedXMLPath(),\n\t\t\tmModuleName\n\t\t};\n\t\t\n\t\tmModuleGeneratedXMLPath = StringUtils.makeFilePath (onlyFolderNames, false);\n\t}", "public void setAndCreateDirPath(String dirname) {\r\n\t File newPath = new File(dirname); \r\n\t \r\n\t if(!newPath.isDirectory()) {\r\n\t\t newPath.mkdirs();\r\n\t }\r\n\t \r\n\t directory = newPath;\r\n }", "public ClasspathDirectory() {\r\n this(System.getProperty(\"java.class.path\"));\r\n }", "private static File createTempDir() {\n\t\tFile baseDir = new File(\"/opt/tomcat7/temp\");\r\n\t\tString baseName = \"omicseq-TempStorage\" + \"-\";\r\n\r\n\t\tfor (int counter = 0; counter < 10000; counter++) {\r\n\t\t\tFile tempDir = new File(baseDir, baseName + counter);\r\n\t\t\tif (!tempDir.exists()) {\r\n\t\t\t\tif (tempDir.mkdir())\r\n\t\t\t\t\treturn tempDir;\r\n\t\t\t} else\r\n\t\t\t\treturn tempDir;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "private void createEssentialDirs() throws TNotFoundEx{\n\t\tFileUtil fT = new FileUtil();\n\t\tfT.createDirOnDevice(TicklerVars.sdCardPath);\n\t\tif (!fT.isExistOnDevice(TicklerVars.sdCardPath))\n\t\t\tthrow new TNotFoundEx(\"Cannot create Tickler directory \"+TicklerVars.sdCardPath+\". Check your configurations in Tickler.conf file\");\n\t\tfT.createDirOnHost(TicklerVars.appTickDir);\n\t\tif (!fT.isExist(TicklerVars.appTickDir))\n\t\t\tthrow new TNotFoundEx(\"Cannot create Tickler directory \"+TicklerVars.appTickDir+\". Check your configurations in Tickler.conf file\");\n\t\t\n\t}", "public IStatus prepareDeployDirectory(IPath deployPath);", "public static File systemInstallDir() {\n String systemInstallDir = System.getProperty(INSTALL_DIR_SYSTEM_PROP, \"../config\").trim();\n return new File(systemInstallDir);\n }", "File getLauncherDir() {\n return launcherDir;\n }", "public String genLogFilePath() {\n\n\t\tString logFileName = generateFileName();\n\t\tString logFilePath = FileIoUtils.getLogFilePathPrefix(logFileName)\n\t\t\t\t+ \"/\" + logFileName;\n\t\treturn logFilePath;\n\n\t}", "public static String downloadDir() {\n\n String downloads = stringValue(\"treefs.downloads\");\n if(isNullOrEmpty(downloads)) {\n // default home location\n downloads = home() + File.separator + \"downloads\";\n } else {\n downloads = home() + File.separator + downloads;\n }\n\n System.out.println(\"downloadDir=\" + downloads);\n return downloads;\n }", "public static File getWorkspaceDir(BundleContext context)\n {\n return new File(getTargetDir(context), \"../../\");\n }", "private static String systemInstallDir() {\n String systemInstallDir = System.getProperty(ESSEM_INSTALL_DIR_SYSPROP, \"\").trim();\n if(systemInstallDir.length() > 0 && !systemInstallDir.endsWith(\"/\")) {\n systemInstallDir = systemInstallDir + \"/\";\n }\n return systemInstallDir;\n }", "static File getAppDir(String app) {\n return Minecraft.a(app);\n }", "public File getInstHomeDir() {\n \treturn this.getHomeDir(\"octHome\");\n }", "public static void createDirectory(String srcDir, String nameDir) {\n try {\n Path path = Paths.get(srcDir + \"/\" + nameDir);\n\n Files.createDirectories(path);\n System.out.println(\"Directory is created\");\n } catch (IOException e) {\n System.err.println(\"ERROR CREATION! \" + e.getMessage());\n }\n\n }", "private void setWorkDiretory() {\n\t\tthis.workDiretory = System.getProperty(\"user.dir\");\n\t}", "public static void createDir(String path) {\n File dir = new File(new File(path).getParentFile().getAbsolutePath());\n dir.mkdirs();\n }", "public static String getWorkingDirectory() {\r\n try {\r\n // get working directory as File\r\n String path = DBLIS.class.getProtectionDomain().getCodeSource()\r\n .getLocation().toURI().getPath();\r\n File folder = new File(path);\r\n folder = folder.getParentFile().getParentFile(); // 2x .getParentFile() for debug, 1x for normal\r\n\r\n // directory as String\r\n return folder.getPath() + \"/\"; // /dist/ for debug, / for normal\r\n } catch (URISyntaxException ex) {\r\n return \"./\";\r\n }\r\n }", "public String getApplicationPath()\n {\n return getApplicationPath(false);\n }", "public String pathToSave() {\n String path;\n File folder;\n do {\n System.out.print(\"Introduce la ruta en la que quieres guardar el fichero(separando directorios por guiones: directorio1-directorio2-directorio3): \");\n path = Utils.getString();\n path = String.valueOf(System.getProperty(\"user.dir\")).substring(0, 2) + \"\\\\\" + path.replace('-', '\\\\');\n folder = new File(path);\n if (!folder.exists()) {\n System.out.println(\"El directorio introducido no existe intentalo de nuevo...\");\n } else {\n if (!folder.isDirectory()) {\n System.out.println(\"Eso no es un directorio intentalo de nuevo...\");\n }\n }\n } while (!folder.exists() && !folder.isDirectory());\n return path;\n }", "public String getDir();", "Directory createAsDirectory() {\n return getParentAsExistingDirectory().findOrCreateChildDirectory(name);\n }", "@Override\n protected Path calculateAppPath(Path image) throws Exception {\n return image.resolve(\"usr\").resolve(\"lib\").resolve(\"APPDIR\");\n }", "public static String getUserFolder() {\n\n String sPath;\n String sConfDir;\n\n \n // default is to use system's home folder setting\n sPath = System.getProperty(\"user.home\") + File.separator + \"sextante\"; \n \n // check if SEXTANTE.confDir has been set\n sConfDir = System.getProperty(\"SEXTANTE.confDir\"); \t\n if ( sConfDir != null ) {\n \t sConfDir = sConfDir.trim();\n \t \tif ( sConfDir.length() > 0 ) {\n \t \t\t// check if we have to append a separator char\n \t \t\tif ( sConfDir.endsWith(File.separator) ) {\n \t \t\t\tsPath = sConfDir;\n \t \t\t} else {\n \t \t\t\tsPath = sConfDir + File.separator;\n\t\t\t\t}\n\t\t\t}\n }\n\n final File sextanteFolder = new File(sPath);\n if (!sextanteFolder.exists()) {\n \t sextanteFolder.mkdir();\n }\n return sPath;\n\n }", "@Override\n public File getServletTempDirectory(String moduleContextPath) {\n ApplicationDescriptor desc = getApplicationDescriptor(moduleContextPath);\n if (desc == null) {\n return null;\n }\n String domainDir = deploymentManager.getInstanceProperties().getProperty(WLPluginProperties.DOMAIN_ROOT_ATTR);\n assert domainDir != null;\n\n // FIXME can we get this via JMX ?\n File tmpPath = new File(new File(domainDir), \"servers\" + File.separator + desc.getServerName() + File.separator + \"tmp\" // NOI18N\n + File.separator + \"_WL_user\" + File.separator + desc.getName()); // NOI18N\n if (tmpPath.exists() && tmpPath.isDirectory()) {\n File[] subDirs = tmpPath.listFiles();\n if (subDirs != null) {\n for (File subdir : subDirs) {\n // FIXME multiple subdirs - what does that mean\n File servletDir = new File(subdir, \"jsp_servlet\"); // NOI18N\n if (servletDir.exists() && servletDir.isDirectory()) {\n // FIXME make simpler\n return servletDir.getParentFile();\n }\n }\n }\n }\n return null;\n }", "private void makeDir(String targetDir){\n\t\tchar letter = 'A';\n\t\tnew File(targetDir + \"\\\\Sorted Music\").mkdir();\n\t\t\n\t\tfor (int i = 0; i < 26; i++){\n\t\t\tnew File(targetDir + \"\\\\Sorted Music\\\\\" + letter).mkdir();\n\t\t\tletter++;\n\t\t}\n\t}" ]
[ "0.6820545", "0.6153287", "0.5978852", "0.58564377", "0.5589524", "0.5563108", "0.5537172", "0.5532965", "0.5426109", "0.5333776", "0.53263974", "0.5318339", "0.5309373", "0.52719265", "0.5270855", "0.5268652", "0.5263411", "0.52483857", "0.52448916", "0.5225534", "0.52242607", "0.5218969", "0.52149826", "0.5188652", "0.5186713", "0.51797867", "0.5159853", "0.51403004", "0.51365674", "0.5122663", "0.5111135", "0.510685", "0.5098965", "0.50904524", "0.50708383", "0.5044941", "0.50412345", "0.5040398", "0.5033894", "0.5027727", "0.5018772", "0.50165576", "0.50028795", "0.49994957", "0.49913904", "0.49817768", "0.4973174", "0.49703598", "0.49608943", "0.4940459", "0.49396184", "0.49382088", "0.49312732", "0.49307567", "0.49293476", "0.49288568", "0.4923911", "0.49216592", "0.49207085", "0.4920035", "0.49130046", "0.48880005", "0.48879611", "0.48867962", "0.4886433", "0.48857957", "0.48847666", "0.48734325", "0.48665684", "0.48544657", "0.48507926", "0.48444083", "0.48410472", "0.48404527", "0.4836528", "0.48346883", "0.48325902", "0.48163614", "0.48146835", "0.48053026", "0.48043266", "0.47971773", "0.47933397", "0.47842816", "0.4779461", "0.4773439", "0.477319", "0.47653043", "0.47589698", "0.4755391", "0.4754091", "0.47468126", "0.47457683", "0.4742211", "0.47417632", "0.47377983", "0.47359675", "0.4731597", "0.47199196", "0.47109705" ]
0.81804365
0
Returns the absolute path to the Java Web Start directory for this application. Note that it does not create/check file/directory with such a path.
public String getJavaWebStartPath() { return mJavaWebStartPath; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public File getApplicationPath()\n {\n return validateFile(ServerSettings.getInstance().getProperty(ServerSettings.APP_EXE));\n }", "public String getApplicationPath()\n {\n return getApplicationPath(false);\n }", "public static String getBasePath() {\n String basePath;\n if (new File(\"../../MacOS/JavaApplicationStub\").canExecute()) {\n basePath = \"../../../..\";\n } else {\n basePath = \".\";\n }\n return basePath;\n }", "public String getAbsoluteApplicationPath()\r\n {\r\n String res = null;\r\n\r\n if (_windows)\r\n {\r\n RegQuery r = new RegQuery();\r\n res = r.getAbsoluteApplicationPath(_execName);\r\n if (res != null)\r\n {\r\n return res;\r\n }\r\n String progFiles = System.getenv(\"ProgramFiles\");\r\n String dirs[] = { \"\\\\Mozilla\\\\ Firefox\\\\\", \"\\\\Mozilla\", \"\\\\Firefox\", \"\\\\SeaMonkey\",\r\n \"\\\\mozilla.org\\\\SeaMonkey\" };\r\n\r\n for (int i = 0; i < dirs.length; i++)\r\n {\r\n File f = new File(progFiles + dirs[i]);\r\n if (f.exists())\r\n {\r\n return progFiles + dirs[i];\r\n }\r\n }\r\n }\r\n\r\n else if (_linux)\r\n {\r\n try\r\n {\r\n File f;\r\n Properties env = new Properties();\r\n env.load(Runtime.getRuntime().exec(\"env\").getInputStream());\r\n String userPath = (String) env.get(\"PATH\");\r\n String[] pathDirs = userPath.split(\":\");\r\n\r\n for (int i = 0; i < pathDirs.length; i++)\r\n {\r\n f = new File(pathDirs[i] + File.separator + _execName);\r\n\r\n if (f.exists())\r\n {\r\n return f.getCanonicalPath().substring(0,\r\n f.getCanonicalPath().length() - _execName.length());\r\n }\r\n }\r\n }\r\n catch (Exception e)\r\n {\r\n return null;\r\n }\r\n }\r\n\r\n return res;\r\n }", "public static String getWorkingDirectory() {\r\n try {\r\n // get working directory as File\r\n String path = DBLIS.class.getProtectionDomain().getCodeSource()\r\n .getLocation().toURI().getPath();\r\n File folder = new File(path);\r\n folder = folder.getParentFile().getParentFile(); // 2x .getParentFile() for debug, 1x for normal\r\n\r\n // directory as String\r\n return folder.getPath() + \"/\"; // /dist/ for debug, / for normal\r\n } catch (URISyntaxException ex) {\r\n return \"./\";\r\n }\r\n }", "public static String sBasePath() \r\n\t{\r\n\t\tif(fromJar) \r\n\t\t{\r\n\t\t\tFile file = new File(System.getProperty(\"java.class.path\"));\r\n\t\t\tif (file.getParent() != null)\r\n\t\t\t{\r\n\t\t\t\treturn file.getParent().toString();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\treturn new java.io.File(\"\").getCanonicalPath();\r\n\t\t} \r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "@Override\n public String getApplicationDirectory() {\n return Comm.getAppHost().getAppLogDirPath();\n }", "public String getProgramHomeDirName() {\n return pathsProvider.getProgramDirName();\n }", "protected File getFlexHomeDirectory()\n\t{\n\t\tif (!m_initializedFlexHomeDirectory)\n\t\t{\n\t\t\tm_initializedFlexHomeDirectory = true;\n\t\t\tm_flexHomeDirectory = new File(\".\"); // default in case the following logic fails //$NON-NLS-1$\n\t\t\tString flexHome = System.getProperty(\"application.home\"); //$NON-NLS-1$\n\t\t\tif (flexHome != null && flexHome.length() > 0)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tm_flexHomeDirectory = new File(flexHome).getCanonicalFile();\n\t\t\t\t}\n\t\t\t\tcatch (IOException e)\n\t\t\t\t{\n\t\t\t\t\t// ignore\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn m_flexHomeDirectory;\n\t}", "public static String getOutputDir() {\n outputDir = getProperty(\"outputDir\");\n if (outputDir == null) outputDir = \"./\";\n return outputDir;\n }", "public static String findCurrentDirectory() {\n\t\tString absolutePath = new File(\"\").getAbsolutePath();\n\t return absolutePath;\n\t}", "private void createJavaWebStartPath() {\n String[] onlyFolderNames = new String[] {\n mInstance.getJavaWebStartPath(),\n mModuleName\n };\n\n mJavaWebStartPath = StringUtils.makeFilePath (onlyFolderNames, false);\n }", "public static String getBaseDir() {\r\n Path currentRelativePath = Paths.get(System.getProperty(\"user.dir\"));\r\n return currentRelativePath.toAbsolutePath().toString();\r\n }", "public String getBundleDir()\n {\n if ( bundleDir != null )\n {\n bundleDir = cleanBundleDir( bundleDir );\n }\n return bundleDir;\n }", "public static File getAppsDirectory() {\n\t\treturn APPS_DIRECTORY;\n\t}", "public String getWebappPathPrefix() {\n return webSiteProps.getWebappPathPrefix();\n }", "public String getFileDirectory() {\n String storedDirectory = settings.get(\"fileDirectory\");\n \n // Default to the program files\n if (storedDirectory == null) {\n storedDirectory = System.getenv(\"ProgramFiles\");\n }\n \n return storedDirectory;\n }", "private String getInitialDirectory() {\n String lastSavedPath = controller.getLastSavePath();\n\n if (lastSavedPath == null) {\n return System.getProperty(Constants.JAVA_USER_HOME);\n }\n\n File lastSavedFile = new File(lastSavedPath);\n\n return lastSavedFile.getAbsoluteFile().getParent();\n }", "public static File systemInstallDir() {\n String systemInstallDir = System.getProperty(INSTALL_DIR_SYSTEM_PROP, \"../config\").trim();\n return new File(systemInstallDir);\n }", "String getApplicationContextPath();", "public static File getAppDir()\n {\n return fAppDir;\n }", "public String getPath() {\n\t\treturn this.baseDir.getAbsolutePath();\n\t}", "public String getConfigurationDirectory() {\n\t\treturn props.getProperty(ARGUMENT_CONFIGURATION_DIRECTORY);\n\t}", "public static String getWorkingDirectory() {\n // Since System.getProperty(\"user.dir\") and user.home etc. can be confusing\n // and I haven't quite figured out if they really are reliable on all systems,\n // I chose a little more complicated approach. This is exactly the same\n // like if a file is created relatively, like new File(\"testfile.txt\"), which\n // would be relative to the working directory.\n\n File f = new File(\".\");\n\n try {\n return addPathSeparator(f.getCanonicalPath());\n } catch (IOException e) {\n return null;\n }\n }", "public String getWorkDirectory(){\n String wd = \"\";\n try {\n wd = new File(\"test.txt\").getCanonicalPath().replace(\"/test.txt\",\"\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n return wd;\n }", "public static File getScriptDirectory() {\n \t\treturn new File(getScriptlerHomeDirectory(), \"scripts\");\n \t}", "public static File getWorkspaceDir(BundleContext context)\n {\n return new File(getTargetDir(context), \"../../\");\n }", "public static String getBaseDir() {\n // 'basedir' is set by Maven Surefire. It always points to the current subproject,\n // even in reactor builds.\n String baseDir = System.getProperty(\"basedir\");\n\n // if 'basedir' is not set, try the current directory\n if (baseDir == null) {\n baseDir = System.getProperty(\"user.dir\");\n }\n return baseDir;\n }", "@Override\n\tpublic String getDirName() {\n\t\treturn StringUtils.substringBeforeLast(getLocation(), \"/\");\n\t}", "private File confirmWebappDirectory(Properties props) {\r\n\t\tString filename = getRequiredProperty(props, PROP_WEBAPP_DIRECTORY);\r\n\t\tFile webappDirectory = new File(filename);\r\n\t\tif (!webappDirectory.exists()) {\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid value for '\"\r\n\t\t\t\t\t+ PROP_WEBAPP_DIRECTORY + \"': directory '\" + filename\r\n\t\t\t\t\t+ \"' does not exist.\");\r\n\t\t}\r\n\t\tif (!webappDirectory.isDirectory()) {\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid value for '\"\r\n\t\t\t\t\t+ PROP_WEBAPP_DIRECTORY + \"': '\" + filename\r\n\t\t\t\t\t+ \"' is not a directory.\");\r\n\t\t}\r\n\t\tif (!webappDirectory.canWrite()) {\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid value for '\"\r\n\t\t\t\t\t+ PROP_WEBAPP_DIRECTORY + \"': directory '\" + filename\r\n\t\t\t\t\t+ \"' is not writeable.\");\r\n\t\t}\r\n\t\treturn webappDirectory;\r\n\t}", "public String getPathToJarFolder(){\n Class cls = ReadWriteFiles.class;\r\n ProtectionDomain domain = cls.getProtectionDomain();\r\n CodeSource source = domain.getCodeSource();\r\n URL url = source.getLocation();\r\n try {\r\n URI uri = url.toURI();\r\n path = uri.getPath();\r\n \r\n // get path without the jar\r\n String[] pathSplitArray = path.split(\"/\");\r\n path = \"\";\r\n for(int i = 0; i < pathSplitArray.length-1;i++){\r\n path += pathSplitArray[i] + \"/\";\r\n }\r\n \r\n return path;\r\n \r\n } catch (URISyntaxException ex) {\r\n LoggingAspect.afterThrown(ex);\r\n return null;\r\n }\r\n }", "public static String getWorkingDirectory() {\n\n return System.getProperty(\"user.dir\");\n }", "public static String getHomeDirectory() {\n\t\treturn System.getProperty(\"user.home\");\n\t}", "public String getWorkspacePath() {\n\t\tString workspacePath = userSettingsService.getUserSettings().getWorkspacePath();\n\t\treturn getAbsoluteSubDirectoryPath(workspacePath);\n\t}", "protected String getRootPath() {\n\t\treturn \"/WEB-INF\";\n\t}", "public static String getConfigFolder() {\n\t\tString progArg = System.getProperty(ConfigConstants.CONFIG_DIR_PROG_ARGUMENT);\n\t\tif (progArg != null) {\n\t\t\treturn progArg;\n\t\t} else {\n\t\t\treturn configFolder;\n\t\t}\n\t}", "private File getHomeDirectory() {\n String brunelDir = System.getProperty(\"brunel.home\");\n File home = brunelDir != null ? new File(brunelDir) :\n new File(System.getProperty(\"user.home\"), \"brunel\");\n return ensureWritable(home);\n }", "public static String getUserDir() {\n return System.getProperty(\"user.dir\");\n }", "public File getHomeDir() {\n\t\tFile f = new File(System.getProperty(\"user.home\"),MuViChatConstants.muviHomeDir);\t\t\n if (!f.isDirectory()) {\n\t f.mkdir();\t \n\t }\n return f;\n\t}", "public File getJRELocation() {\n \t\tif (executableLocation == null)\n \t\t\treturn null;\n \t\treturn new File(executableLocation.getParentFile(), \"jre\"); //$NON-NLS-1$\n \t}", "String getInstallRoot();", "private String getDirectoryForBackup() {\n\t\tString backupPath = configurationService.getValue(BACKUP_FOLDER_CONFIG);\n\t\tif (backupPath == null) {\n\t\t\t// if backup path null throw error, backup folder must be set\n\t\t\tthrow new ResultCodeException(CoreResultCode.BACKUP_FOLDER_NOT_FOUND,\n\t\t\t\t\tImmutableMap.of(\"property\", BACKUP_FOLDER_CONFIG));\n\t\t}\n\t\t// apend script default backup folder\n\t\tbackupPath = backupPath + \"/\" + SCRIPT_DEFAULT_BACKUP_FOLDER;\n\t\t// add date folder\n\t\tZonedDateTime date = ZonedDateTime.now();\n\t\tDecimalFormat decimalFormat = new DecimalFormat(\"00\");\n\t\treturn backupPath + date.getYear() + decimalFormat.format(date.getMonthValue())\n\t\t\t\t+ decimalFormat.format(date.getDayOfMonth()) + \"/\";\n\t}", "protected File getAsinstalldir() throws ClassNotFoundException {\n\t\tif (asinstalldir == null) {\n\t\t\tString home = getProject().getProperty(\"asinstall.dir\");\n\t\t\tif (home != null) {\n asinstalldir = new File(home);\n\t\t\t}\n else {\n home = getProject().getProperty(\"sunone.home\");\n if (home != null)\n {\n final String msg = lsm.getString(\"DeprecatedProperty\", new Object[] {\"sunone.home\", \"asinstall.dir\"});\n log(msg, Project.MSG_WARN);\n asinstalldir = new File(home);\n }\n \n }\n\t\t}\n if (asinstalldir!=null) verifyAsinstalldir(asinstalldir);\n\t\treturn asinstalldir;\n\t}", "public IPath getRuntimeBaseDirectory(TomcatServer server);", "public File getJavaHome()\n {\n return javaHomeDir;\n }", "public static String getPathProgramsFiles(){\r\n\t\treturn System.getenv(\"ProgramFiles\");\r\n\t}", "static File getDistributionInstallationFolder() {\n return ProcessRunnerImpl.getDistRootPath();\n }", "public File getBaseDir() {\n if (baseDir == null) {\n try {\n setBasedir(\".\");\n } catch (BuildException ex) {\n ex.printStackTrace();\n }\n }\n return baseDir;\n }", "public String workingDirectory() {\n\t\treturn workingDir.getAbsolutePath();\n\t}", "public static String testHome()\n {\n if (testHome == null)\n {\n //See if we set it as a property using TestLauncher\n testHome = System.getProperty (\"jacorb.test.home\");\n\n //Try to find it from the run directory\n if (testHome == null)\n {\n URL url = TestUtils.class.getResource(\"/.\");\n\n String result = url.toString();\n if (result.matches(\"file:/.*?\"))\n {\n result = result.substring (5, result.length() - 9);\n }\n String relativePath=\"/classes/\";\n if (!pathExists(result, relativePath))\n {\n throw new RuntimeException (\"cannot find test home\");\n }\n testHome = osDependentPath(result);\n }\n }\n return testHome;\n }", "protected File getRootDir() {\r\n\t\tif (rootDir == null) {\r\n\t\t\trootDir = new File(getProperties().getString(\"rootDir\"));\r\n\t\t\tif (! rootDir.exists())\r\n\t\t\t\tif (! rootDir.mkdirs())\r\n\t\t\t\t\tthrow new RuntimeException(\"Could not create root dir\");\r\n\t\t}\r\n\t\treturn rootDir;\r\n\t}", "private static String getRioHomeDirectory() {\n String rioHome = RioHome.get();\n if(!rioHome.endsWith(File.separator))\n rioHome = rioHome+File.separator;\n return rioHome;\n }", "public static File getPlatformDir () {\n return new File (System.getProperty (\"netbeans.home\")); // NOI18N\n }", "public String getBackupDirectory() {\n\t\treturn props.getProperty(ARGUMENT_BACKUP_DIRECTORY);\n\t}", "public String getResourcePath() {\n return appPathField.getText().trim();\n }", "static File getAppDir(String app) {\n return Minecraft.a(app);\n }", "public String getAssetDirectory() {\n return String.format(\"plugin-webapp/%s\", getId());\n }", "public static File getRegistrationDirectory() {\n\t\t\n\t\tFile home = ApplicationRuntime.getInstance().getApplicationHomeDir();\n\n\t\tFile registrationDirectory = new File(home,REGISTRATION_DIRECTORY_NAME);\n\t\tif (!registrationDirectory.exists()) {\n\t\t\tregistrationDirectory.mkdir();\n\t\t}\n\t\treturn registrationDirectory;\n\t}", "public static File fBuildDir() \r\n\t{\r\n\t\treturn new File(sBasePath() + File.separator + \"build\");\r\n\t}", "public synchronized static String getCurrentDirectory() {\n if (currentDirectory == null)\n currentDirectory = canon(System.getProperty(\"user.home\"));\n return currentDirectory;\n }", "public String getProjectRootDirectory() {\r\n\t\treturn getTextValue(workspaceRootText);\r\n\t}", "public File getHomeDir() {\n return physicalHomeDir;\n }", "private static String systemInstallDir() {\n String systemInstallDir = System.getProperty(ESSEM_INSTALL_DIR_SYSPROP, \"\").trim();\n if(systemInstallDir.length() > 0 && !systemInstallDir.endsWith(\"/\")) {\n systemInstallDir = systemInstallDir + \"/\";\n }\n return systemInstallDir;\n }", "private static String\n\tgetDefaultPrefsDir()\n\t{\n\t\tString homeDir\t= System.getProperty( \"user.home\" );\n\t\tif ( homeDir == null )\n\t\t{\n\t\t\thomeDir\t= \".\";\n\t\t}\n\t\t\n\t\treturn( homeDir );\n\t}", "public static File getRootDirectory() {\n\t\treturn ROOT_DIRECTORY;\n\t}", "public String getAbsolutePath() {\n\t\treturn Util.getAbsolutePath();\n\t}", "public static String rootDir()\n {\n read_if_needed_();\n \n return _root;\n }", "String getDirectoryPath();", "public String getAppPathname();", "public static String getOutputFolder() {\n\n if ((m_sOutputFolder == null) || m_sOutputFolder.trim().equals(\"\")) {\n return System.getProperty(\"user.home\");\n }\n else {\n return m_sOutputFolder;\n }\n\n }", "@Override\r\n\tpublic String getRootDir() {\t\t\r\n\t\treturn Global.USERROOTDIR;\r\n\t}", "public Path jriDirectory() {\n return jriDirectory;\n }", "public String getTargetDir() {\n\t\tif (targetDir != null)\n\t\t\treturn targetDir;\n\t\telse if (parent == null)\n\t\t\treturn \"./\";\n\t\telse\n\t\t\treturn parent.getTargetDir();\n\t}", "private String getConfigurationDirectory() throws UnsupportedEncodingException {\r\n\r\n String folder;\r\n if (ISphereJobLogExplorerPlugin.getDefault() != null) {\r\n // Executed, when started from a plug-in.\r\n folder = ISphereJobLogExplorerPlugin.getDefault().getStateLocation().toFile().getAbsolutePath() + File.separator + REPOSITORY_LOCATION\r\n + File.separator;\r\n FileHelper.ensureDirectory(folder);\r\n } else {\r\n // Executed, when started on a command line.\r\n URL url = getClass().getResource(DEFAULT_CONFIGURATION_FILE);\r\n if (url == null) {\r\n return null;\r\n }\r\n String resource = URLDecoder.decode(url.getFile(), \"utf-8\"); //$NON-NLS-1$\r\n folder = new File(resource).getParent() + File.separator;\r\n }\r\n return folder;\r\n }", "public static String getCurrentPath() {\n File file = new File(\"\");\n return file.getAbsolutePath();\n }", "public String getDirectoryPath() {\n return EXTERNAL_PATH;\n }", "private File getThemeDeployDir() throws MojoExecutionException {\n File themeDeployDir = null;\n if (serverDeployDir == null) {\n String webappsDirProp = project.getProperties().getProperty(WEBAPPS_PROP);\n if (webappsDirProp == null) {\n throw new MojoExecutionException(\"Property '\"+WEBAPPS_PROP+\"' is not defined, parameter serverDeployDir neither\");\n }\n File webappsDir = new File(webappsDirProp);\n if (!webappsDir.isDirectory()) {\n throw new MojoExecutionException(\"Property '\"+WEBAPPS_PROP+\"' is not correct\");\n }\n themeDeployDir = new File(webappsDir.getAbsolutePath()\n +File.separator\n +project.getArtifactId());\n } else {\n themeDeployDir = new File(serverDeployDir\n +File.separator\n +project.getArtifactId());\n }\n if (!themeDeployDir.isDirectory()) {\n throw new MojoExecutionException(\"Theme is not deployed at '\"+themeDeployDir.getAbsolutePath()+\"'\");\n }\n return themeDeployDir;\n }", "public String getLocalBasePath() {\n\t\treturn DataManager.getLocalBasePath();\n\t}", "public static String getJarPath() {\n String classPath = \"/\" + JavaUtils.class.getName();\n classPath = classPath.replace(\".\", \"/\") + \".class\";\n try {\n URL url = JavaUtils.class.getResource(classPath);\n String path = URLDecoder.decode(url.getPath(), \"UTF-8\");\n path = URLDecoder.decode(new URL(path).getPath(), \"UTF-8\");\n int bang = path.indexOf(\"!\");\n if (bang >= 0) {\n path = path.substring(0, bang);\n }\n return path;\n } catch (Exception e) {\n ReportingUtils.logError(e, \"Unable to get path of jar\");\n return \"\";\n }\n }", "private String getDicDir() {\n\t\tString wDir = null;\n\n\t\tif (System.getProperties().containsKey(\"root\")) {\n\t\t\twDir = System.getProperty(\"root\");\n\t\t}\n\n\t\tif ((wDir == null || wDir.isEmpty()) && CPlatform.isMacOs())\n\t\t\twDir = new File(CPlatform.getUserHome(), \"Library/Spelling\")\n\t\t\t\t\t.getAbsolutePath();\n\n\t\tif (wDir == null || wDir.isEmpty())\n\t\t\twDir = \"/home/ff/projects/hunspell\";\n\t\treturn wDir;\n\t}", "public String getArchiveFolderPath()\n {\n String currentWorkingDir = SystemUtil.getWorkingDirPath()+\"/\";\n \n ConfigurationStore configStore = ConfigurationStore.getInstance();\n String archiveFolder = configStore.getProperty(IISATProperty.CATEGORY, IISATProperty.ARCHIVE_FOLDER, null);\n String absArchiveFolderPath = currentWorkingDir + archiveFolder;\n _logger.logMessage(\"getArchiveFolderPath\", null, \"Abs archive folder path is \"+absArchiveFolderPath);\n return absArchiveFolderPath;\n }", "public String getJarLocation();", "File getTargetDirectory();", "public static String createDownloadDirectory() {\n \tvar downloadDirectory = Configuration.toString(\"downloadDirectory\");\n \tif (downloadDirectory == null) {\n \t\tdownloadDirectory = \"../../Downloads\";\n \t}\n return downloadDirectory;\n }", "public String getBasePath(){\r\n\t\t \r\n\t\t String basePath = properties.getProperty(\"getPath\");\r\n\t\t if(basePath != null) return basePath;\r\n\t\t else throw new RuntimeException(\"getPath not specified in the configuration.properties file.\");\r\n\t }", "java.io.File getBaseDir();", "public String getDirectory() {\n return directoryProperty().get();\n }", "public static String setupJMeterHome() {\n if (JMeterUtils.getJMeterProperties() == null) {\n String file = \"jmeter.properties\";\n File f = new File(file);\n if (!f.canRead()) {\n System.out.println(\"Can't find \" + file + \" - trying bin/ and ../bin\");\n if (!new File(\"bin/\" + file).canRead()) {\n // When running tests inside IntelliJ\n filePrefix = \"../bin/\"; // JMeterUtils assumes Unix-style separators\n } else {\n filePrefix = \"bin/\"; // JMeterUtils assumes Unix-style separators\n }\n file = filePrefix + file;\n } else {\n filePrefix = \"\";\n }\n // Used to be done in initializeProperties\n String home=new File(System.getProperty(\"user.dir\"),filePrefix).getParent();\n System.out.println(\"Setting JMeterHome: \"+home);\n JMeterUtils.setJMeterHome(home);\n }\n return filePrefix;\n }", "public static String uploadDir() {\n\n String uploads = stringValue(\"treefs.uploads\");\n if(isNullOrEmpty(uploads)) {\n // default home location\n uploads = home() + File.separator + \"uploads\";\n } else {\n uploads = home() + File.separator + uploads;\n }\n\n System.out.println(\"uploadDir=\" + uploads);\n return uploads;\n }", "public String getTestsuiteDirectory() {\n\t\treturn props.getProperty(ARGUMENT_TESTSUITE_DIRECTORY);\n\t}", "@Override\n\tpublic java.lang.String getBinPath() {\n\t\treturn _scienceApp.getBinPath();\n\t}", "public String getWorkRelativePath() {\n return getWorkRelativePath(testURL);\n }", "public URL getRootDirURL() {\n\t\treturn null;\n\t}", "private String getArcGISHomeDir() throws IOException {\n String arcgisHome = null;\n /* Not found in env, check system property */\n if (System.getProperty(ARCGISHOME_ENV) != null) {\n arcgisHome = System.getProperty(ARCGISHOME_ENV);\n }\n if(arcgisHome == null) {\n /* To make env lookup case insensitive */\n Map<String, String> envs = System.getenv();\n for (String envName : envs.keySet()) {\n if (envName.equalsIgnoreCase(ARCGISHOME_ENV)) {\n arcgisHome = envs.get(envName);\n }\n }\n }\n if(arcgisHome != null && !arcgisHome.endsWith(File.separator)) {\n arcgisHome += File.separator;\n }\n return arcgisHome;\n }", "public String getMappingDirectory() {\n\t\treturn props.getProperty(ARGUMENT_MAPPING_DIRECTORY);\n\t}", "public static File getLogDirectory() {\n\t\treturn LOG_DIRECTORY;\n\t}", "public String getLaunchPath() {\n return this.LaunchPath;\n }", "public static String downloadDir() {\n\n String downloads = stringValue(\"treefs.downloads\");\n if(isNullOrEmpty(downloads)) {\n // default home location\n downloads = home() + File.separator + \"downloads\";\n } else {\n downloads = home() + File.separator + downloads;\n }\n\n System.out.println(\"downloadDir=\" + downloads);\n return downloads;\n }", "public final String getModuleDirectory() {\n return properties.get(MODULE_DIRECTORY_PROPERTY);\n }", "public String getDir();" ]
[ "0.6870959", "0.68183374", "0.6808072", "0.67315245", "0.6608326", "0.6586263", "0.65725505", "0.65389323", "0.64598507", "0.6451849", "0.6388837", "0.63823605", "0.63823134", "0.6350472", "0.6308643", "0.63036436", "0.6286659", "0.6278466", "0.61740154", "0.61672", "0.6166119", "0.6156037", "0.615508", "0.6122303", "0.6119665", "0.6105352", "0.6094044", "0.6084532", "0.6056558", "0.60250044", "0.6006623", "0.59927875", "0.59764", "0.5968494", "0.5954458", "0.5940206", "0.59254926", "0.591688", "0.5896678", "0.5891566", "0.5890078", "0.58844936", "0.5869445", "0.5863247", "0.58558255", "0.5853697", "0.5852688", "0.5837189", "0.5784092", "0.5779111", "0.57783955", "0.5764287", "0.57546586", "0.5754306", "0.57471937", "0.5738344", "0.5736288", "0.57360196", "0.57320595", "0.5723619", "0.57235986", "0.57220083", "0.5716955", "0.5715441", "0.57130307", "0.5708353", "0.5708233", "0.5705139", "0.5689797", "0.5689583", "0.5688716", "0.5681467", "0.5675102", "0.56691444", "0.56574935", "0.5643348", "0.56345344", "0.56274986", "0.5614925", "0.5606354", "0.56063026", "0.55999905", "0.5598211", "0.5594139", "0.55892545", "0.557037", "0.55502826", "0.55475813", "0.5546711", "0.5524987", "0.5517332", "0.55163014", "0.55140036", "0.55139", "0.550655", "0.550372", "0.5493501", "0.54900324", "0.5483352", "0.5479168" ]
0.6552476
7
Returns the absolute path for storing all the stubs of this module. Note that it does not create/check file/directory with such a path.
public void createModuleStubPath() { String[] onlyFolderNames = new String[] { mInstance.getModuleStubPath(), mModuleName }; mModuleStubPath = StringUtils.makeFilePath (onlyFolderNames, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getModuleStubPath() {\n return mModuleStubPath;\n }", "public static String getBasePath() {\n String basePath;\n if (new File(\"../../MacOS/JavaApplicationStub\").canExecute()) {\n basePath = \"../../../..\";\n } else {\n basePath = \".\";\n }\n return basePath;\n }", "public String getLocalBasePath() {\n\t\treturn DataManager.getLocalBasePath();\n\t}", "public static Path getPath() {\n\t\tPath path = Paths.get(getManagerDir(), NAME);\n\t\treturn path;\n\t}", "public static String sBasePath() \r\n\t{\r\n\t\tif(fromJar) \r\n\t\t{\r\n\t\t\tFile file = new File(System.getProperty(\"java.class.path\"));\r\n\t\t\tif (file.getParent() != null)\r\n\t\t\t{\r\n\t\t\t\treturn file.getParent().toString();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\treturn new java.io.File(\"\").getCanonicalPath();\r\n\t\t} \r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "abstract public String getRingResourcesDir();", "public File getScratchDir();", "public void createModuleBackupPath() {\n\t\tString[] onlyFolderNames = new String[] {\n\t\t\tmInstance.getModuleBackupRepositoryPath(),\n\t\t\tmModuleName\n\t\t};\n\t\t\n\t\tmModuleBackupPath = StringUtils.makeFilePath (onlyFolderNames, false);\n\t}", "private String getFullPath()\n\t{\n\t\tif (libraryName.equals(\"\"))\n\t\t{\n\t\t\treturn fileName;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn libraryName + \"/\" + fileName;\n\t\t}\n\t}", "public String getAbsPath();", "Path getModBookFilePath();", "public String getAbsolutePath() {\n\t\treturn Util.getAbsolutePath();\n\t}", "private String getAbsoluteFilesPath() {\n\n //sdcard/Android/data/cucumber.cukeulator\n //File directory = getTargetContext().getExternalFilesDir(null);\n //return new File(directory,\"reports\").getAbsolutePath();\n return null;\n }", "@Override\n public String getAbsolutePathImpl() {\n return file.getAbsolutePath();\n }", "public static String getBasepath() {\n\t\treturn basepath;\n\t}", "public static String getBasepath() {\n\t\treturn basepath;\n\t}", "public Address getFilebase() {\n return new Address(m_module.getConfiguration().getFileBase().toBigInteger());\n }", "public Path getRemoteRepositoryBaseDir();", "protected String path() {\n return path(getName());\n }", "public String getWalletFileDirectoryFull() {\r\n return dataDirectory + walletFileDirectory;\r\n }", "FsPath baseDir();", "public String getPath();", "public String getPath();", "public String getPath();", "java.io.File getBaseDir();", "public Path getSimulationLocation() {\n return FileManager.getSimulationDirectory(name);\n }", "public String getFileSystemPath() {\n return getCacheDir().getAbsolutePath()\n + File.separator\n + getItemPath();\n }", "protected Path getBasePathForUser(User owner) {\n return getDirectories().getDevicesPath().resolve(owner.getName());\n }", "private String getHome()\n {\n return this.bufferHome.getAbsolutePath() + \"/\";\n }", "private static String getRioHomeDirectory() {\n String rioHome = RioHome.get();\n if(!rioHome.endsWith(File.separator))\n rioHome = rioHome+File.separator;\n return rioHome;\n }", "String getPath();", "String getPath();", "String getPath();", "String getPath();", "String getPath();", "protected String getSahiFolder() {\n String packageName = \"/sahi\";\n Path sahHomeFolder = resolveResource(AbstractSakuliTest.class, packageName);\n if (Files.exists(sahHomeFolder)) {\n return sahHomeFolder.normalize().toAbsolutePath().toString();\n }\n throw new SakuliRuntimeException(\"Cannot load SAHI_HOME folder! Should be normally under 'target/classes/\" + packageName + \"'\");\n }", "public String getDefDir() {\n\n\t\t// String newDefDir = defDir.replaceAll(\"\\\\\\\\\", \"\\\\\\\\\\\\\\\\\");\n\n\t\treturn defDir;\n\n\t}", "public void createModuleGeneratedXMLPath() {\n\t\tString[] onlyFolderNames = new String[] {\n\t\t\tmInstance.getModuleGeneratedXMLPath(),\n\t\t\tmModuleName\n\t\t};\n\t\t\n\t\tmModuleGeneratedXMLPath = StringUtils.makeFilePath (onlyFolderNames, false);\n\t}", "public Path getRepositoryBaseDir();", "public String getLocationPath();", "private String getBinaryPath() {\n return System.getProperty(SeLionConstants.WEBDRIVER_GECKO_DRIVER_PROPERTY,\n Config.getConfigProperty(ConfigProperty.SELENIUM_GECKODRIVER_PATH));\n }", "public String getApplicationPath()\n {\n return getApplicationPath(false);\n }", "private InputStream getStubFile() throws MojoExecutionException {\n return getClass().getResourceAsStream(\"Messages.java.stub\");\n }", "String getInstallRoot();", "public String getPath() {\n\t\treturn this.baseDir.getAbsolutePath();\n\t}", "public Path getDataDirectory();", "Path getBaseInputDir();", "public String getFullPath()\n {\n return( fullPath );\n }", "public abstract String getFullPath();", "public static String getPath() { return Objects.requireNonNull(Bukkit.getServer().getPluginManager().getPlugin(\"Catacombs\"))\n .getDataFolder().getAbsolutePath(); }", "public abstract String getPath();", "public abstract String getPath();", "Path getBookingSystemFilePath();", "Path getManageMeFilePath();", "public String getPath () throws java.io.IOException, com.linar.jintegra.AutomationException;", "public Path getInstallBase() {\n return installBase;\n }", "public String getPath() {\n\t\treturn pfDir.getPath();\n\t}", "public File getLocalCacheDirectory() {\n return pathsProvider.getLocalAcmCacheDir();\n }", "private String getTmpPath() {\n return getExternalFilesDir(null).getAbsoluteFile() + \"/tmp/\";\n }", "public abstract String protoPath();", "public URL getCodeBase() {\n/* 169 */ return this.stub.getCodeBase();\n/* */ }", "String getAbsolutePathWithinSlingHome(String relativePath);", "public File getInstHomeDir() {\n \treturn this.getHomeDir(\"octHome\");\n }", "private static void findPath()\r\n {\r\n String temp_path = System.getProperty(\"user.dir\");\r\n char last = temp_path.charAt(temp_path.length() - 1);\r\n if(last == 'g')\r\n {\r\n path = \".\";\r\n }\r\n else\r\n {\r\n path = \"./bag\";\r\n }\r\n \r\n }", "public String getDirectoryPath() {\n return EXTERNAL_PATH;\n }", "public String getPathToDefinitionFiles() {\n\treturn msPathToDefinitionFiles;\n }", "public String resolvePath();", "public static String getNewPath() {\n return homePath + Integer.toString(++elementCounter) + \".ser\";\n }", "public File getPublicServiceDir(String serviceName) {\n return new File(new File(getRootDir(), ToolboxFoldersFileConstants.WSDL), serviceName);\n }", "private String getDataPath()\n {\n Location location = Platform.getInstanceLocation();\n if (location == null) {\n return \"@none\";\n } else {\n return location.getURL().getPath();\n }\n }", "protected File getCacheDirectory() {\n \t\treturn Activator.getDefault().getStateLocation().append(\"cache\").toFile(); //$NON-NLS-1$\n \t}", "public String getClassPath();", "public static String GetvDefaultBilibiliSavePath(Context ctx){\n return GetAppDataPathExternal(ctx);\n }", "public String getClassPath(Object ClassObject) {\n try {\n String temp = null;\n temp = new File(ClassObject.getClass().getProtectionDomain().getCodeSource().getLocation().getPath()).getParent();\n temp = URLDecoder.decode(temp, \"UTF-8\");\n return temp;\n } catch (Exception e) {\n return \"\";\n }\n }", "public File getStoreDir();", "public final String path() {\n return string(preparePath(concat(path, SLASH, name)));\n }", "private String getDesignPath() {\n Class<?> clazz = getClass();\n String designFilePath = null;\n if (clazz.getAnnotation(DeclarativeUI.class).absolutePath()) {\n designFilePath = \"\";\n } else {\n // This is rather nasty.. but it works well enough for now.\n String userDir = System.getProperty(\"user.dir\");\n designFilePath = userDir + \"/uitest/src/\"\n + clazz.getPackage().getName().replace('.', '/') + \"/\";\n }\n\n String designFileName = clazz.getAnnotation(DeclarativeUI.class)\n .value();\n\n return designFilePath + designFileName;\n }", "public String getGitBasePath() {\n\t\tif (StringUtils.isBlank(gitBasePath)) {\n\t\t\tgitBasePath = System.getProperties().getProperty(\"user.home\") + \"/gittest\";\n\t\t}\n\t\treturn gitBasePath;\n\t}", "public File getServiceRoot(String serviceName) {\n return new File(new File(new File(getRootDir(), ToolboxFoldersFileConstants.WEB_INF), ToolboxFoldersFileConstants.SERVICES), serviceName);\n }", "String getFilepath();", "private String getPath() {\n\t\treturn context.getRealPath(\"WEB-INF/ConnectionData\");\n\t}", "private String getPath() {\n\t\treturn context.getRealPath(\"WEB-INF/ConnectionData\");\n\t}", "private String getPath() {\n\t\treturn context.getRealPath(\"WEB-INF/ConnectionData\");\n\t}", "private String getPath() {\n\t\treturn context.getRealPath(\"WEB-INF/ConnectionData\");\n\t}", "@Override\n public String getConfigPath() {\n String fs = String.valueOf(File.separatorChar);\n StringBuilder sb = new StringBuilder();\n\n sb.append(\"scan\").append(fs);\n sb.append(\"config\").append(fs);\n sb.append(\"mesoTableConfig\").append(fs);\n\n return sb.toString();\n }", "@Override\r\n\tpublic String getRootDir() {\t\t\r\n\t\treturn Global.USERROOTDIR;\r\n\t}", "@Override\n\tpublic java.lang.String getBinPath() {\n\t\treturn _scienceApp.getBinPath();\n\t}", "public String getModuleBackupPath() {\n\t\treturn mModuleBackupPath;\n\t}", "public String getWalletFileDirectory() {\r\n return walletFileDirectory;\r\n }", "String getApplicationContextPath();", "public File getApplicationPath()\n {\n return validateFile(ServerSettings.getInstance().getProperty(ServerSettings.APP_EXE));\n }", "ModulePath getModulePath();", "public String getSuggestPath() {\n/* 105 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public String path() {\n return filesystem().pathString(path);\n }", "Path createPath();", "public String getDir();", "String getScratchDirectoryPath(String name);", "public URI getSwapFileDataRoot() {\n return swapFileDataRoot;\n }", "Path getVendorManagerFilePath();", "public File getBasedir()\n {\n return basedir;\n }" ]
[ "0.6611622", "0.6368199", "0.59071803", "0.5876426", "0.5841517", "0.58375376", "0.58339894", "0.5817842", "0.57892907", "0.57843566", "0.5772223", "0.5769862", "0.57637805", "0.56896317", "0.56587154", "0.56587154", "0.5655399", "0.56310225", "0.56009334", "0.55994403", "0.5535419", "0.55154455", "0.55154455", "0.55154455", "0.54856294", "0.5484823", "0.5481931", "0.5477328", "0.547691", "0.5475509", "0.5446809", "0.5446809", "0.5446809", "0.5446809", "0.5446809", "0.5443462", "0.5435583", "0.5432505", "0.54268557", "0.54224306", "0.54161775", "0.54095894", "0.5404193", "0.5404052", "0.5400629", "0.53917074", "0.5364082", "0.53448546", "0.53436685", "0.5336645", "0.5335172", "0.5335172", "0.53253865", "0.5312259", "0.5286598", "0.5285243", "0.52814364", "0.52775955", "0.5264959", "0.5257914", "0.52551955", "0.52444315", "0.5241999", "0.5240376", "0.52389205", "0.523855", "0.5238521", "0.5238004", "0.5226157", "0.52259356", "0.52130854", "0.5208239", "0.52020866", "0.51951647", "0.51782614", "0.5173068", "0.5164444", "0.5153129", "0.5148206", "0.51414007", "0.5137607", "0.5137607", "0.5137607", "0.5137607", "0.5137284", "0.51349676", "0.51339424", "0.5133855", "0.5128847", "0.5121453", "0.5120647", "0.51203626", "0.51196474", "0.51102895", "0.5106558", "0.51056665", "0.510506", "0.5100092", "0.5098654", "0.5098205" ]
0.71733993
0
Returns the absolute path for the all the stubs within this module. Note that it does not create/check file/directory with such a path.
public String getModuleStubPath() { return mModuleStubPath; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createModuleStubPath() {\n String[] onlyFolderNames = new String[] {\n mInstance.getModuleStubPath(),\n mModuleName\n };\n\n mModuleStubPath = StringUtils.makeFilePath (onlyFolderNames, false);\n }", "public static String getBasePath() {\n String basePath;\n if (new File(\"../../MacOS/JavaApplicationStub\").canExecute()) {\n basePath = \"../../../..\";\n } else {\n basePath = \".\";\n }\n return basePath;\n }", "public String getAbsPath();", "public String getAbsolutePath() {\n\t\treturn Util.getAbsolutePath();\n\t}", "public static Path getPath() {\n\t\tPath path = Paths.get(getManagerDir(), NAME);\n\t\treturn path;\n\t}", "public static String sBasePath() \r\n\t{\r\n\t\tif(fromJar) \r\n\t\t{\r\n\t\t\tFile file = new File(System.getProperty(\"java.class.path\"));\r\n\t\t\tif (file.getParent() != null)\r\n\t\t\t{\r\n\t\t\t\treturn file.getParent().toString();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\treturn new java.io.File(\"\").getCanonicalPath();\r\n\t\t} \r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "private String getFullPath()\n\t{\n\t\tif (libraryName.equals(\"\"))\n\t\t{\n\t\t\treturn fileName;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn libraryName + \"/\" + fileName;\n\t\t}\n\t}", "public List<ApexPath> getPaths() {\n TestUtil.Config config = TestUtil.Config.Builder.get(g, sourceCode).build();\n return TestUtil.getApexPaths(config, apexPathExpanderConfig, methodName);\n }", "@Override\n public String getAbsolutePathImpl() {\n return file.getAbsolutePath();\n }", "private InputStream getStubFile() throws MojoExecutionException {\n return getClass().getResourceAsStream(\"Messages.java.stub\");\n }", "abstract public String getRingResourcesDir();", "private String getAbsoluteFilesPath() {\n\n //sdcard/Android/data/cucumber.cukeulator\n //File directory = getTargetContext().getExternalFilesDir(null);\n //return new File(directory,\"reports\").getAbsolutePath();\n return null;\n }", "public static String getBasepath() {\n\t\treturn basepath;\n\t}", "public static String getBasepath() {\n\t\treturn basepath;\n\t}", "public String getLocalBasePath() {\n\t\treturn DataManager.getLocalBasePath();\n\t}", "FsPath baseDir();", "protected Path getBasePathForUser(User owner) {\n return getDirectories().getDevicesPath().resolve(owner.getName());\n }", "public abstract String getFullPath();", "protected String path() {\n return path(getName());\n }", "public String getLocationPath();", "public String resolvePath();", "public String getPath() {\n\t\treturn this.baseDir.getAbsolutePath();\n\t}", "protected String getSahiFolder() {\n String packageName = \"/sahi\";\n Path sahHomeFolder = resolveResource(AbstractSakuliTest.class, packageName);\n if (Files.exists(sahHomeFolder)) {\n return sahHomeFolder.normalize().toAbsolutePath().toString();\n }\n throw new SakuliRuntimeException(\"Cannot load SAHI_HOME folder! Should be normally under 'target/classes/\" + packageName + \"'\");\n }", "String getAbsolutePathWithinSlingHome(String relativePath);", "ModulePath getModulePath();", "public String getFullPath()\n {\n return( fullPath );\n }", "Path getModBookFilePath();", "public Path getRemoteRepositoryBaseDir();", "String getPath();", "String getPath();", "String getPath();", "String getPath();", "String getPath();", "@Override\r\n public String getPath() {\r\n if (VFS.isUriStyle()) {\r\n return absPath + getUriTrailer();\r\n }\r\n return absPath;\r\n }", "public String getPath () throws java.io.IOException, com.linar.jintegra.AutomationException;", "public String getPathToDefinitionFiles() {\n\treturn msPathToDefinitionFiles;\n }", "protected Pose[] getUserDefinedPath() {\n\t\treturn handler.getDesiredPath();\n\t}", "public URL getCodeBase() {\n/* 169 */ return this.stub.getCodeBase();\n/* */ }", "public String getApplicationPath()\n {\n return getApplicationPath(false);\n }", "public Address getFilebase() {\n return new Address(m_module.getConfiguration().getFileBase().toBigInteger());\n }", "public String getPath();", "public String getPath();", "public String getPath();", "public String getSuggestPath() {\n/* 105 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public abstract String protoPath();", "public String getRelPath () throws java.io.IOException, com.linar.jintegra.AutomationException;", "private ArrayList<String> getFullDir() {\r\n\t\tArrayList<String> fullDir = new ArrayList<String>();\r\n\r\n\t\t// We go through all the modules in the model and connect the selDir and full\r\n\t\t// top module together.\r\n\t\tfor (int i = 0; i < helperInstMod.model.size(); i++) {\r\n\t\t\tPanelInstMod panel = helperInstMod.model.getElementAt(i);\r\n\r\n\t\t\tif (i == 0) {\r\n\t\t\t\t// We add one more as a buffer for the top module when configuring the modules\r\n\t\t\t\t// (DialogWire).\r\n\t\t\t\tfullDir.add(panel.getSelDir() + \"\\\\\" + panel.getFullTopMod());\r\n\t\t\t}\r\n\t\t\tfullDir.add(panel.getSelDir() + \"\\\\\" + panel.getFullTopMod());\r\n\t\t}\r\n\t\treturn fullDir;\r\n\t}", "public Path getSimulationLocation() {\n return FileManager.getSimulationDirectory(name);\n }", "public static String getFullMethodPath () \t{\n\t\t\n\t\treturn Thread.currentThread().getStackTrace()[2].toString();\n\t}", "public String getPathForPrefix(String prefix) {\r\n String ns = this.getNamespaceURI(prefix);\r\n if (ns != null) {\r\n for (Import imp : getDefinitions().getImports()) {\r\n if (ns.equals(imp.getNamespace())) {\r\n // TODO: Also check that imp.getType() is BPMN\r\n return imp.getLocation();\r\n }\r\n }\r\n }\r\n return \"\";\r\n }", "public abstract String getPath();", "public abstract String getPath();", "Path getBookingSystemFilePath();", "public String getAbsolutePath() {\n String path = null;\n if (parent != null) {\n path = parent.getAbsolutePath();\n path = String.format(\"%s/%s\", path, name);\n } else {\n path = String.format(\"/%s\", name);\n }\n return path;\n }", "public String getRelativePath();", "public void createModuleGeneratedXMLPath() {\n\t\tString[] onlyFolderNames = new String[] {\n\t\t\tmInstance.getModuleGeneratedXMLPath(),\n\t\t\tmModuleName\n\t\t};\n\t\t\n\t\tmModuleGeneratedXMLPath = StringUtils.makeFilePath (onlyFolderNames, false);\n\t}", "public String getPath() {\n\t\treturn pfDir.getPath();\n\t}", "public Path getRepositoryBaseDir();", "public String getPath() {\n String result = \"\";\n Directory curDir = this;\n // Keep looping while the current directories parent exists\n while (curDir.parent != null) {\n // Create the full path string based on the name\n result = curDir.getName() + \"/\" + result;\n curDir = (Directory) curDir.getParent();\n }\n // Return the full string\n result = \"/#/\" + result;\n return result;\n }", "public String getWorkRelativePath() {\n return getWorkRelativePath(testURL);\n }", "private static String getRioHomeDirectory() {\n String rioHome = RioHome.get();\n if(!rioHome.endsWith(File.separator))\n rioHome = rioHome+File.separator;\n return rioHome;\n }", "String basePath();", "public String getClassPath();", "protected String retrieveRbFile() {\r\n\t\tString className = this.getClass().getName();\r\n\t\tString packageName = this.getClass().getPackage().getName() + \".\";\r\n\t\treturn className.replaceFirst(packageName, \"\");\r\n\t}", "public String getBasePath(){\r\n\t\t \r\n\t\t String basePath = properties.getProperty(\"getPath\");\r\n\t\t if(basePath != null) return basePath;\r\n\t\t else throw new RuntimeException(\"getPath not specified in the configuration.properties file.\");\r\n\t }", "public static String getPath() { return Objects.requireNonNull(Bukkit.getServer().getPluginManager().getPlugin(\"Catacombs\"))\n .getDataFolder().getAbsolutePath(); }", "private static String toAbsPathStr(String relPath, FileSystem fs) {\n String retPath = \"\";\n Directory tmpDir = (Directory) fs.checkPath(relPath, \"directory\");\n while (!tmpDir.equals(fs.getRoot())) {\n retPath = \"/\" + tmpDir.getName() + retPath;\n tmpDir = tmpDir.getParentDirectory();\n }\n return retPath;\n }", "static Path getFlightTestDataRoot() {\n return getTestDataRoot().resolve(\"flight\");\n }", "public String getModulePath() {\n\t\treturn mModulePath;\n\t}", "private String getDesignPath() {\n Class<?> clazz = getClass();\n String designFilePath = null;\n if (clazz.getAnnotation(DeclarativeUI.class).absolutePath()) {\n designFilePath = \"\";\n } else {\n // This is rather nasty.. but it works well enough for now.\n String userDir = System.getProperty(\"user.dir\");\n designFilePath = userDir + \"/uitest/src/\"\n + clazz.getPackage().getName().replace('.', '/') + \"/\";\n }\n\n String designFileName = clazz.getAnnotation(DeclarativeUI.class)\n .value();\n\n return designFilePath + designFileName;\n }", "private static void findPath()\r\n {\r\n String temp_path = System.getProperty(\"user.dir\");\r\n char last = temp_path.charAt(temp_path.length() - 1);\r\n if(last == 'g')\r\n {\r\n path = \".\";\r\n }\r\n else\r\n {\r\n path = \"./bag\";\r\n }\r\n \r\n }", "@Override\n\tpublic String toString() {\n\t\treturn getFullPath();\n\t}", "public String getDefDir() {\n\n\t\t// String newDefDir = defDir.replaceAll(\"\\\\\\\\\", \"\\\\\\\\\\\\\\\\\");\n\n\t\treturn defDir;\n\n\t}", "java.io.File getBaseDir();", "String getInstallRoot();", "public String getRelativeFolderPath() {\r\n return relativeFolderPath;\r\n }", "@Override\r\n\tprotected String getBasePath() {\n\t\treturn \"/module/tstaff/\";\r\n\t}", "public void createModuleBackupPath() {\n\t\tString[] onlyFolderNames = new String[] {\n\t\t\tmInstance.getModuleBackupRepositoryPath(),\n\t\t\tmModuleName\n\t\t};\n\t\t\n\t\tmModuleBackupPath = StringUtils.makeFilePath (onlyFolderNames, false);\n\t}", "Path getPath();", "public String getAttributeFileLibPath();", "private String getHome()\n {\n return this.bufferHome.getAbsolutePath() + \"/\";\n }", "@Override\n public String getConfigPath() {\n String fs = String.valueOf(File.separatorChar);\n StringBuilder sb = new StringBuilder();\n\n sb.append(\"scan\").append(fs);\n sb.append(\"config\").append(fs);\n sb.append(\"mesoTableConfig\").append(fs);\n\n return sb.toString();\n }", "@Override\n public Path getPath() {\n throw new RuntimeException( \"Not yet implemented.\" );\n }", "public String getClassPath(Object ClassObject) {\n try {\n String temp = null;\n temp = new File(ClassObject.getClass().getProtectionDomain().getCodeSource().getLocation().getPath()).getParent();\n temp = URLDecoder.decode(temp, \"UTF-8\");\n return temp;\n } catch (Exception e) {\n return \"\";\n }\n }", "public Path getInstallBase() {\n return installBase;\n }", "public URI getAbsoluteLobFolder();", "String getApplicationContextPath();", "public String getResourcePath() {\n return BARDConstants.API_BASE + \"/biology/\" + serial;\n }", "@Nullable\n @Override\n public IFile getOutputRoot() {\n return myTempModuleLocation.findChild(\"src_gen\");\n }", "protected String getHttpClientPath() {\n return tckPath + \"lib/httpclnt.jar\";\n }", "public URL getDocumentBase() {\n/* 158 */ return this.stub.getDocumentBase();\n/* */ }", "public String getModuleGeneratedXMLPath() {\n\t\treturn mModuleGeneratedXMLPath;\n\t}", "public String getResourcePath();", "public final String path() {\n return string(preparePath(concat(path, SLASH, name)));\n }", "private String getBinaryPath() {\n return System.getProperty(SeLionConstants.WEBDRIVER_GECKO_DRIVER_PROPERTY,\n Config.getConfigProperty(ConfigProperty.SELENIUM_GECKODRIVER_PATH));\n }", "public interface IPathConstant {\n\tString PROPERTY_FILEPATH=\"./src/main/resources/CommonData.properties\";\n\tString EXCELPATH=\"./src/test/resources/testdata.xlsx\";\n\tString JSONFILEPATH=\"\";\n\tString htmlPath=\"./extentReport\"+JavaUtility.getCurrentSystemDate()+\".html\";\n}", "private String defineAbsoluteFilePath() throws IOException {\n\n\t\tString absoluteFilePath = \"\";\n\n\t\tString workingDir = System.getProperty(\"user.dir\");\n\n\t\tString OS = System.getProperty(\"os.name\").toLowerCase();\n\n\t\tif (OS.indexOf(\"win\") >= 0) {\n\t\t\tabsoluteFilePath = workingDir + \"\\\\\" + PATH + \"\\\\\" + FILE_NAME;\n\t\t} else {\n\t\t\tabsoluteFilePath = workingDir + \"/\" + PATH + \"/\" + FILE_NAME;\n\t\t}\n\n\t\tFile file = new File(absoluteFilePath);\n\n\t\tif (file.exists()) {\n\t\t\tSystem.out.println(\"File found!\");\n\t\t\tSystem.out.println(absoluteFilePath);\n\t\t} else {\n\t\t\tSystem.err.println(\"File not found...\");\n\t\t}\n\n\t\treturn absoluteFilePath;\n\n\t}", "public String getGitBasePath() {\n\t\tif (StringUtils.isBlank(gitBasePath)) {\n\t\t\tgitBasePath = System.getProperties().getProperty(\"user.home\") + \"/gittest\";\n\t\t}\n\t\treturn gitBasePath;\n\t}", "private char[] getPath() {\n\t\treturn null;\n\t}", "public IStubProvider getStubProvider();" ]
[ "0.7064029", "0.655904", "0.597209", "0.5921135", "0.58964694", "0.5776091", "0.56487536", "0.5641163", "0.56400347", "0.56390774", "0.56042784", "0.56006056", "0.55833226", "0.55833226", "0.5581751", "0.5474932", "0.545012", "0.54275465", "0.54249936", "0.54029775", "0.5388175", "0.53575855", "0.5354656", "0.53418136", "0.53333193", "0.53036696", "0.530265", "0.5295957", "0.52925134", "0.52925134", "0.52925134", "0.52925134", "0.52925134", "0.52914476", "0.5290549", "0.5289784", "0.5289463", "0.5278449", "0.5274844", "0.52731824", "0.5267238", "0.5267238", "0.5267238", "0.52574384", "0.52363014", "0.5180654", "0.51723766", "0.51720834", "0.51694924", "0.5165406", "0.5154062", "0.5154062", "0.51488155", "0.51473725", "0.514545", "0.51447934", "0.5140914", "0.51302963", "0.5125723", "0.5122056", "0.5115876", "0.510453", "0.5103137", "0.5100529", "0.50998133", "0.5069102", "0.50644773", "0.50566196", "0.5055826", "0.5051238", "0.504547", "0.50437784", "0.5022912", "0.5021991", "0.5019787", "0.5006865", "0.50001913", "0.49985278", "0.49902484", "0.4990157", "0.49877065", "0.49687842", "0.49627864", "0.49600106", "0.49587286", "0.4957917", "0.4957885", "0.49524176", "0.49403772", "0.4929232", "0.49262655", "0.49257368", "0.49199727", "0.49149415", "0.49115357", "0.49092826", "0.49069762", "0.49000797", "0.48919496", "0.48890373" ]
0.689211
1
Creates the absolute path for storing the generated JSPs of this module. Note that it does not create/check file/directory with such a path.
public void createModuleJSPPath() { String[] onlyFolderNames = new String[] { mInstance.getWebModuleCompileJspPath(), mModuleName }; mModuleJSPPath = StringUtils.makeFilePath (onlyFolderNames, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createJavaWebStartPath() {\n String[] onlyFolderNames = new String[] {\n mInstance.getJavaWebStartPath(),\n mModuleName\n };\n\n mJavaWebStartPath = StringUtils.makeFilePath (onlyFolderNames, false);\n }", "public void createModuleGeneratedXMLPath() {\n\t\tString[] onlyFolderNames = new String[] {\n\t\t\tmInstance.getModuleGeneratedXMLPath(),\n\t\t\tmModuleName\n\t\t};\n\t\t\n\t\tmModuleGeneratedXMLPath = StringUtils.makeFilePath (onlyFolderNames, false);\n\t}", "public void createDirectory() {\r\n\t\tpath = env.getProperty(\"resources\") + \"/\" + Year.now().getValue() + \"/\";\r\n\t\tFile file = new File(path);\r\n\t\tif (!file.exists())\r\n\t\t\tfile.mkdirs();\r\n\t}", "public String getTemplatePath() {\n this.defaultPath = defaultPath.endsWith(File.separator) ? defaultPath : defaultPath + File.separator;\n\n if (Paths.get(defaultPath).toFile().mkdirs()) {\n //Throw exception, couldn't create directories\n }\n\n return defaultPath + (defaultName != null ? defaultName + \".\" + extensionPattern : \"\");\n }", "public static String createDownloadDirectory() {\n \tvar downloadDirectory = Configuration.toString(\"downloadDirectory\");\n \tif (downloadDirectory == null) {\n \t\tdownloadDirectory = \"../../Downloads\";\n \t}\n return downloadDirectory;\n }", "private String getWebTmpDir()\n\t\t\tthrows Exception\n\t{\n\t\t\treturn Contexto.getPropiedad(\"TMP.UPLOAD2\");\n }", "private String getTmpPath() {\n return getExternalFilesDir(null).getAbsoluteFile() + \"/tmp/\";\n }", "private static File createTempDir() {\n\t\tFile baseDir = new File(\"/opt/tomcat7/temp\");\r\n\t\tString baseName = \"omicseq-TempStorage\" + \"-\";\r\n\r\n\t\tfor (int counter = 0; counter < 10000; counter++) {\r\n\t\t\tFile tempDir = new File(baseDir, baseName + counter);\r\n\t\t\tif (!tempDir.exists()) {\r\n\t\t\t\tif (tempDir.mkdir())\r\n\t\t\t\t\treturn tempDir;\r\n\t\t\t} else\r\n\t\t\t\treturn tempDir;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "AMPLPath createAMPLPath();", "private String generateSavePath(HttpSession session) {\n try {\n\t\t\tint adminId = ((Admin) session.getAttribute(\"emm.admin\")).getAdminID();\n\t\t\tRandom random = new Random();\n\t\t\tint randomNum = random.nextInt();\n\t\t\tString savePath = AgnUtils.getTempDir() + File.separator +\n\t\t\t \"tmp_csv_file_\" + adminId + \"_\" + randomNum + \".csv\";\n\t\t\treturn savePath;\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Cannot create temp file path for upload file storage\", e);\n\t\t\treturn null;\n\t\t}\n }", "public Path getOutputPath() {\n\t\t\n\t\tString name = getSimulationName();\t\t\n\t\tint l = name.length();\n\t\tString sim_name = name.substring(0, l-11); // \"_SIM_FOLDER\" contains 11 character\n\t\t\n\t\tPath path = Paths.get(outpath + \"\\\\\"+ sim_name);\n\t\tif(!Files.exists(path)) {\n\t\t try {\n\t\t Files.createDirectories(path);\n\t\t } catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t }\n\t\t}\n\t\treturn path;\n\t}", "protected String getRootPath() {\n\t\treturn \"/WEB-INF\";\n\t}", "public String genLogFilePath() {\n\n\t\tString logFileName = generateFileName();\n\t\tString logFilePath = FileIoUtils.getLogFilePathPrefix(logFileName)\n\t\t\t\t+ \"/\" + logFileName;\n\t\treturn logFilePath;\n\n\t}", "Path createPath();", "@Override\n public File getServletTempDirectory(String moduleContextPath) {\n ApplicationDescriptor desc = getApplicationDescriptor(moduleContextPath);\n if (desc == null) {\n return null;\n }\n String domainDir = deploymentManager.getInstanceProperties().getProperty(WLPluginProperties.DOMAIN_ROOT_ATTR);\n assert domainDir != null;\n\n // FIXME can we get this via JMX ?\n File tmpPath = new File(new File(domainDir), \"servers\" + File.separator + desc.getServerName() + File.separator + \"tmp\" // NOI18N\n + File.separator + \"_WL_user\" + File.separator + desc.getName()); // NOI18N\n if (tmpPath.exists() && tmpPath.isDirectory()) {\n File[] subDirs = tmpPath.listFiles();\n if (subDirs != null) {\n for (File subdir : subDirs) {\n // FIXME multiple subdirs - what does that mean\n File servletDir = new File(subdir, \"jsp_servlet\"); // NOI18N\n if (servletDir.exists() && servletDir.isDirectory()) {\n // FIXME make simpler\n return servletDir.getParentFile();\n }\n }\n }\n }\n return null;\n }", "String createUrl() throws JspException {\n\t\tAssert.state(this.value != null, \"No value set\");\n\t\tHttpServletRequest request = (HttpServletRequest) this.pageContext.getRequest();\n\t\tHttpServletResponse response = (HttpServletResponse) this.pageContext.getResponse();\n\n\t\tStringBuilder url = new StringBuilder();\n\t\tif (this.type == UrlType.CONTEXT_RELATIVE) {\n\t\t\t// add application context to url\n\t\t\tif (this.context == null) {\n\t\t\t\turl.append(request.getContextPath());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (this.context.endsWith(\"/\")) {\n\t\t\t\t\turl.append(this.context, 0, this.context.length() - 1);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\turl.append(this.context);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (this.type != UrlType.RELATIVE && this.type != UrlType.ABSOLUTE && !this.value.startsWith(\"/\")) {\n\t\t\turl.append('/');\n\t\t}\n\t\turl.append(replaceUriTemplateParams(this.value, this.params, this.templateParams));\n\t\turl.append(createQueryString(this.params, this.templateParams, (url.indexOf(\"?\") == -1)));\n\n\t\tString urlStr = url.toString();\n\t\tif (this.type != UrlType.ABSOLUTE) {\n\t\t\t// Add the session identifier if needed\n\t\t\t// (Do not embed the session identifier in a remote link!)\n\t\t\turlStr = response.encodeURL(urlStr);\n\t\t}\n\n\t\t// HTML and/or JavaScript escape, if demanded.\n\t\turlStr = htmlEscape(urlStr);\n\t\turlStr = (this.javaScriptEscape ? JavaScriptUtils.javaScriptEscape(urlStr) : urlStr);\n\n\t\treturn urlStr;\n\t}", "public void createModuleBackupPath() {\n\t\tString[] onlyFolderNames = new String[] {\n\t\t\tmInstance.getModuleBackupRepositoryPath(),\n\t\t\tmModuleName\n\t\t};\n\t\t\n\t\tmModuleBackupPath = StringUtils.makeFilePath (onlyFolderNames, false);\n\t}", "public static void createOutputDirectoryPath(String path){\n \n new File(path).mkdirs();\n \n }", "protected void createHMetisInFilePath() {\n\t\tString file = \"\";\n\t\tfile += this.getRuntimeEnv().getOptionValue(PTArgString.OUTPUTDIR);\n\t\tfile += Utils.getFileSeparator();\n\t\tfile += \"TEMP_GRAPH_FILE.hgr\";\n\t\tthis.setHMetisInFile(file);\n\t}", "public String getModuleJSPPath() {\n\t\treturn mModuleJSPPath;\n\t}", "@Override\n\tpublic void generateDirectories() {\n\t\tFile file = new File(\"Data/My Contacts/\");\n\n\t\tif (!file.exists()) {\n\t\t\tfile.mkdirs();\n\t\t}\n\t}", "@Override\n\tpublic String generatePathStr(String component,\n\t\t\tString outputName) throws RemoteException {\n\t\treturn \"/user/\" + userName + \"/tmp/redsqirl_\" + component + \"_\" + outputName\n\t\t\t\t+ \"_\" + RandomString.getRandomName(8)+\".txt\";\n\t}", "private String getPath() {\r\n\t\t\treturn context.getRealPath(\"WEB-INF/ConnectionData\");\r\n\t\t}", "private String getPath() {\n\t\treturn context.getRealPath(\"WEB-INF/ConnectionData\");\n\t}", "private String getPath() {\n\t\treturn context.getRealPath(\"WEB-INF/ConnectionData\");\n\t}", "private String getPath() {\n\t\treturn context.getRealPath(\"WEB-INF/ConnectionData\");\n\t}", "private String getPath() {\n\t\treturn context.getRealPath(\"WEB-INF/ConnectionData\");\n\t}", "private String createScreenshotFilePath() {\n String fileName = new SimpleDateFormat(FILE_NAME_FORMAT).format(new Date());\n String filePath = MainMenu.PUBLIC_EXTERNAL_PICTURES_ORION_PATH + fileName;\n return filePath;\n }", "protected void createHMetisOutFilePath() {\n\t\tString file = \"\";\n\t\tfile += \"TEMP_GRAPH_FILE.hgr.part.\";\n\t\tfile += this.getPartitioner().getPartition().getNumBlock();\n\t\tthis.setHMetisOutFile(file);\t\n\t}", "@Override\n protected void createRootDir() {\n }", "public static String getPath() {\n\t\t// Lấy đường dẫn link\n\t\tAuthentication auth1 = SecurityContextHolder.getContext().getAuthentication();\n\t\tAgentconnection cus = (Agentconnection) auth1.getPrincipal();\n\t\t \n\t\t//String PATH_STRING_REAL = fileStorageProperties.getUploadDir()+cus.getMerchant()+\"/hotel/images/\" + year + \"/\" + month + \"/\" ;\n\t String PATH_STRING_REAL = \"E:/ezcloud/upload/\"+cus.getMerchant()+\"/hotel/images/\" + year + \"/\" + month + \"/\" ;\n\t return PATH_STRING_REAL;\n\t}", "public String getAssetDirectory() {\n return String.format(\"plugin-webapp/%s\", getId());\n }", "public static File getRegistrationDirectory() {\n\t\t\n\t\tFile home = ApplicationRuntime.getInstance().getApplicationHomeDir();\n\n\t\tFile registrationDirectory = new File(home,REGISTRATION_DIRECTORY_NAME);\n\t\tif (!registrationDirectory.exists()) {\n\t\t\tregistrationDirectory.mkdir();\n\t\t}\n\t\treturn registrationDirectory;\n\t}", "private String buildDeployFileName(final String originalFileName) {\n String tempDir = System.getProperty(\"java.io.tmpdir\");\n StringBuilder builder = new StringBuilder();\n builder.append(tempDir);\n builder.append(\"/\");\n builder.append(originalFileName);\n return builder.toString();\n }", "public File getDefaultOutputDir() {\n File out = _mkdir(XPreferencesFactory.kDefaultReportsOutputDir.getDir(false));\r\n String dn = NamingConventions.createNiceEnglishDate_for_dirs();\r\n return _mkdir(new File(out, dn));\r\n }", "public static String getNewPath() {\n return homePath + Integer.toString(++elementCounter) + \".ser\";\n }", "private static void makeDirPath(String targetAddr) {\n\t\tString parentPath = PathUtil.getImgBasePath() + targetAddr;\r\n\t\tFile dirPath = new File(parentPath);\r\n\t\tif (!dirPath.exists()) {\r\n\t\t\tdirPath.mkdirs();\r\n\t\t}\r\n\t}", "public static void createTempMapsetName() {\r\n UUID id;\r\n String tmpPrefix;\r\n String tmpSuffix;\r\n String tmpBase;\r\n String tmpFolder;\r\n\r\n id = UUID.randomUUID();\r\n tmpPrefix = new String(GrassUtils.TEMP_PREFIX);\r\n tmpSuffix = new String(\"_\" + id);\r\n tmpBase = new String(System.getProperty(\"java.io.tmpdir\"));\r\n if (tmpBase.endsWith(File.separator)) {\r\n tmpFolder = new String(tmpBase + tmpPrefix + tmpSuffix.replace('-', '_') + File.separator + \"user\");\r\n }\r\n else {\r\n tmpFolder = new String(tmpBase + File.separator + tmpPrefix + tmpSuffix.replace('-', '_') + File.separator + \"user\");\r\n }\r\n m_sGrassTempMapsetFolder = tmpFolder;\r\n\r\n }", "private void storageTotemp(Workbook workbook,HttpServletRequest req,String username){\n try{\n if(workbook==null||req==null||username==null||username.equals(\"\"))\n return;\n String path=req.getSession().getServletContext().getRealPath(\"\\\\\")+\"\\\\\"+REPOSITORY+\"\\\\\"+username+\"\\\\\"+TEMP;\n File filePath=new File(path);\n File targetFile=new File(filePath,name);\n if(!filePath.exists()){\n filePath.mkdirs();\n }\n if(targetFile.exists()){\n return;\n }\n FileOutputStream out=new FileOutputStream(targetFile);\n workbook.write(out);\n out.close();\n workbook.close();\n }catch (Exception ex){\n ex.printStackTrace();\n }\n }", "protected String getFileTemplate(String sTemplate, String sPath)\n {\n String sFileName = sTemplate;\n\n if (sFileName.length() == 0)\n {\n log(\"Report writer:No output file specified. Report terminated\");\n return null;\n }\n\n try\n {\n sFileName = new File(sPath).getCanonicalPath() + File.separatorChar + sFileName;\n }\n catch (IOException e)\n {\n // leave the problem for caller\n sFileName = sPath + sFileName;\n }\n\n return sFileName;\n }", "private static File generateTemp(Path path) {\n File tempFile = null;\n try {\n InputStream in = Files.newInputStream(path);\n String tDir = System.getProperty(\"user.dir\") + File.separator + ASSETS_FOLDER_TEMP_NAME;\n tempFile = new File(tDir + File.separator + path.getFileName());\n try (FileOutputStream out = new FileOutputStream(tempFile)) {\n IOUtils.copy(in, out);\n }\n album.addToImageList(tempFile.getAbsolutePath());\n } catch (Exception e) {\n e.printStackTrace();\n }\n return tempFile;\n }", "public String pathToSave() {\n String path;\n File folder;\n do {\n System.out.print(\"Introduce la ruta en la que quieres guardar el fichero(separando directorios por guiones: directorio1-directorio2-directorio3): \");\n path = Utils.getString();\n path = String.valueOf(System.getProperty(\"user.dir\")).substring(0, 2) + \"\\\\\" + path.replace('-', '\\\\');\n folder = new File(path);\n if (!folder.exists()) {\n System.out.println(\"El directorio introducido no existe intentalo de nuevo...\");\n } else {\n if (!folder.isDirectory()) {\n System.out.println(\"Eso no es un directorio intentalo de nuevo...\");\n }\n }\n } while (!folder.exists() && !folder.isDirectory());\n return path;\n }", "public String getReportPath();", "boolean isDoNotRegenerateJspFiles();", "private String makeJspUrl(String result) {\n String path = this.jspUrlPattern\n .replaceAll(\"\\\\$\\\\{action\\\\}\", id.getActionName())\n .replaceAll(\"\\\\$\\\\{method\\\\}\", id.getMethodName())\n .replaceAll(\"\\\\$\\\\{result\\\\}\", result);\n logger.debug(\"path for target: '{}', result: '{}' is '{}'\", id, result, path);\n return path;\n }", "private static File prepareTempFolder() {\n File result;\n try {\n result = java.nio.file.Files.createTempDirectory(\n DCOSService.class.getSimpleName()).toFile();\n System.out.println(result.toString());\n\n return result;\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "public String createWebsite(String websiteName){\n directory = path + websiteName;\n File newFolder = new File(directory);\n\n newFolder.mkdirs();\n return directory;\n }", "private String createRedirectPath(RedirectModule module) {\n return module.getViewHelper().getContextPath() + redirectTo.getAppPath()\n + createParameterString();\n }", "private void createresultDir() throws IOException\n\t{\n\t\tString datepattern = \"yyyy-MM-dd\";\n\t\tSimpleDateFormat sdf =new SimpleDateFormat(datepattern);\n\t\t RESULTDIR = Parameters.RESULT_LOCAL_DIR+'/'+sdf.format(new Date());\n\t\t boolean exists = (new File(Parameters.RESULT_LOCAL_DIR)).exists();\n\t\t if (!exists)\n\t\t\t (new File(Parameters.RESULT_LOCAL_DIR)).mkdirs();\n\t\t exists = (new File(RESULTDIR)).exists();\n\t\t if (!exists)\n\t\t\t (new File(RESULTDIR)).mkdirs();\n\t\t boolean append = true;\n\t FileHandler fh = new FileHandler(RESULTDIR+\"/report.log\", append);\n\t fh.setFormatter(new LogFormatter());\n\t logfile.addHandler(fh);\n\t}", "public void createModuleStubPath() {\n String[] onlyFolderNames = new String[] {\n mInstance.getModuleStubPath(),\n mModuleName\n };\n\n mModuleStubPath = StringUtils.makeFilePath (onlyFolderNames, false);\n }", "private void createRequiredDirectory(String outdir, String className) throws IOException\r\n\t{\n\t\tString workingdirectory = System.getProperty(\"user.dir\");\r\n\t\t\r\n\t\t//used to create directory\r\n\t\tscreenshotDir = new File(workingdirectory +\"/custom-test-report\");\r\n\t\tscreenshotDir.mkdir();\r\n\t\t\r\n\t\tscreenshotDir = new File(workingdirectory +\"/custom-test-report/Failure_Screenshot\");\r\n\t\tscreenshotDir.mkdir();\r\n\t\t\r\n\t\tscreenshotDir = new File(workingdirectory + \"/custom-test-report\" + \"/\" + className);\r\n\t\tscreenshotDir.mkdir();\r\n\t}", "private String setFileDestinationPath(){\n String filePathEnvironment = Environment.getExternalStorageDirectory().getAbsolutePath();\n Log.d(TAG, \"Full path edited \" + filePathEnvironment + \"/earwormfix/\" + generatedFilename + EXTENSION_JPG);\n return filePathEnvironment+ \"/earwormfix/\" + generatedFilename + EXTENSION_JPG;\n }", "@Produces\n\tpublic Path produceFile() throws IOException{\n\t\tlogger.info(\"The path (generated by PathProducer) will be injected here - # Path : \"+path);\n\t\tif(Files.notExists(path)){\n\t\t\tFiles.createDirectory(path);\n\t\t\tlogger.info(\" Directory Created :: \" +path);\n\t\t}\n\t\t/*\n\t\t * currentTimeMillis will be injected by NumberPrefixProducer and has a seperate qualifier\n\t\t */\n\t\tPath file = path.resolve(\"myFile_\" + currentTimeMillis + \".txt\");\n\t\tlogger.info(\"FileName : \"+file);\n\t\tif(Files.notExists(file)){\n\t\t\tFiles.createFile(file);\n\t\t}\n\t\tlogger.info(\" File Created :: \" +file);\n\t\treturn file;\n\t}", "private void createServiceDirectory(String serviceID){\n \n String changedServiceID = serviceID.replaceAll(\"\\\\.\",\"&\");\n changedServiceID = changedServiceID.replaceAll(\":\",\"&\");\n \n //Create directory to store output files of service\n File dir = new File(sessionDirectory.getPath()+\"/\"+changedServiceID);\n dir.mkdir();\n \n //Add created directory to map \"servicesDirectories\"\n servicesDirectories.put(serviceID,dir);\n \n }", "abstract File getResourceDirectory();", "public static final String makePath(String resource) {\n return BEAKED_ASSETS_FOLDER + \"/\" + resource;\n }", "private static String createAppSpecificLocalDir(String baseDir, String applicationIdString,\n String user, int dagIdentifier) {\n return baseDir + File.separator + \"usercache\" + File.separator + user + File.separator +\n \"appcache\" + File.separator + applicationIdString + File.separator + dagIdentifier;\n }", "private void createDirectories()\r\n\t{\r\n\t\t// TODO: Do some checks here\r\n\t\tFile toCreate = new File(Lunar.OUT_DIR + Lunar.PIXEL_DIR\r\n\t\t\t\t\t\t\t\t\t+ Lunar.PROCESSED_DIR);\r\n\t\ttoCreate.mkdirs();\r\n\t\ttoCreate = null;\r\n\t\ttoCreate = new File(Lunar.OUT_DIR + Lunar.ROW_DIR + Lunar.PROCESSED_DIR);\r\n\t\ttoCreate.mkdirs();\r\n\t\ttoCreate = null;\r\n\t}", "public void creaRutaImgPerfil(){\n servletContext=(ServletContext) contexto.getExternalContext().getContext();\n String ruta=\"\";\n //Ruta real hasta la carpeta de uploads\n ruta=servletContext.getRealPath(\"/upload/\");\n \n //Concatenamiento de directorios internos\n ruta+=File.separatorChar+\"img\"+File.separatorChar+\"users\"+File.separatorChar;\n \n //Asignacion de la ruta creada\n this.rutaImgPerfil=ruta;\n }", "public File generateFile()\r\n {\r\n return generateFile(null);\r\n }", "private File extractResources() {\r\n\t\tif (org.opensourcephysics.display.OSPRuntime.appletMode)\r\n\t\t\treturn null;\r\n\t\tFile descTempDirectory = new File(getTemporaryDir() + \"DescriptionPages/\");\r\n\t\tif (!descTempDirectory.exists()) {\r\n\t\t\tif (!descTempDirectory.mkdirs()) {\r\n\t\t\t\tSystem.err.println(\r\n\t\t\t\t\t\t\"DescriptionPages : Could not create directory : \" + descTempDirectory.getAbsolutePath());\r\n\t\t\t\tJOptionPane.showMessageDialog(openPageButton, Memory.getResource(\"DescriptionPages.CannotExtractFiles\"),\r\n\t\t\t\t\t\tMemory.getResource(\"Error\"), JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// System.err.println (\"Extracting description pages to folder :\r\n\t\t// \"+descTempDirectory.getAbsolutePath());\r\n\t\tfor (String filename : model._getClassEjsResources()) {\r\n\t\t\tif (extractToDirectory(filename, descTempDirectory, false) == null)\r\n\t\t\t\treturn null;\r\n\t\t}\r\n\t\textractToDirectory(\"/_ejs_library/css/ejss.css\", descTempDirectory, false); // New in %.3Failure to do this does\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// not invalidate the process\r\n\t\treturn descTempDirectory;\r\n\t}", "void saveHtmFile(String htmFileName, String path) throws IOException\r\n \t{\r\n \t\tString filePath = path + \"/\" + htmFileName + \".html\";\r\n \t\tFileWriter out = new FileWriter( filePath );\r\n \t\tout.write(getTemplateContent());\r\n \t\tout.close();\r\n \t}", "private static File createReserveDiskCacheDir(Context context) {\n\t\tFile cacheDir = StorageUtils.getCacheDirectory(context, false);\n\t\tFile individualDir = new File(cacheDir, \"lazy-cache\");\n\t\tif (individualDir.exists() || individualDir.mkdir()) {\n\t\t\tcacheDir = individualDir;\n\t\t}\n\t\treturn cacheDir;\n\t}", "public static String getManageJSPPath(String jspPath, PortletRequest request){\n\t\tString pageAction = \"\";\n\t\tif(request.getAttribute(\"jspPath\") != null){\n\t\t\tjspPath = (String) request.getAttribute(\"jspPath\");\n\t\t}else if(request.getParameter(\"pageAction\") != null){\n\t\t\tpageAction = request.getParameter(\"pageAction\");\n\t\t\tif(pageAction.equals(\"MANAGE_LOCATIONS_VIEW_JSP\")){\n\t\t\t\tjspPath = MANAGE_LOCATIONS_VIEW_JSP;\n\t\t\t}else if(pageAction.equals(\"MANAGE_ROUTE_VIEW_JSP\")){\n\t\t\t\tjspPath = MANAGE_ROUTE_VIEW_JSP;\n\t\t\t}else if(pageAction.equals(\"MANAGE_TIMINGS_VIEW_JSP\")){\n\t\t\t\tjspPath = MANAGE_TIMINGS_VIEW_JSP;\n\t\t\t}else if(pageAction.equals(\"MANAGE_COUPONS_VIEW_JSP\")){\n\t\t\t\tjspPath = MANAGE_COUPONS_VIEW_JSP;\n\t\t\t}else if(pageAction.equals(\"MANAGE_USER_COUPONS_VIEW_JSP\")){\n\t\t\t\tjspPath = MANAGE_USER_COUPONS_VIEW_JSP;\n\t\t\t}\n\t\t}else{\n\t\t\t//jspPath = getManageJspPathBasedOnURL(themeDisplay);\t\n\t\t}\n\t\treturn jspPath;\n\t}", "private String getDesignPath() {\n Class<?> clazz = getClass();\n String designFilePath = null;\n if (clazz.getAnnotation(DeclarativeUI.class).absolutePath()) {\n designFilePath = \"\";\n } else {\n // This is rather nasty.. but it works well enough for now.\n String userDir = System.getProperty(\"user.dir\");\n designFilePath = userDir + \"/uitest/src/\"\n + clazz.getPackage().getName().replace('.', '/') + \"/\";\n }\n\n String designFileName = clazz.getAnnotation(DeclarativeUI.class)\n .value();\n\n return designFilePath + designFileName;\n }", "public static void CreateFile(){\n try{\n new File(\"wipimages\").mkdir();\n logscommissions.createNewFile();\n }catch(Exception e){\n e.printStackTrace();\n System.out.println(\"CreateFile Failed\\n\");\n }\n }", "public void crearRutaImgPublicacion(){\n \n servletContext=(ServletContext) contexto.getExternalContext().getContext();\n String ruta=\"\";\n //Ruta real hasta la carpeta uploads\n ruta=servletContext.getRealPath(\"/upload/\");\n //Obtener el codigo del usuario de la sesion actual\n //este es utilizado para ubicar la carpeta que le eprtenece\n String codUsuario=String.valueOf(new SessionLogica().obtenerUsuarioSession().getCodUsuario());\n //Concatenamiento de directorios internos\n ruta+=File.separatorChar+\"img\"+File.separatorChar+\"post\"+File.separatorChar+codUsuario+File.separatorChar+\"all\"+File.separatorChar;\n //Asignacion de la ruta creada\n this.rutaImgPublicacion=ruta;\n }", "private void createDir(){\n\t\tPath path = Path.of(this.dir);\n\t\ttry {\n\t\t\tFiles.createDirectories(path);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "static Path getOutputPath(Configuration conf, String name) {\n String root = conf.get(WORKING_DIR, \"tmp/reasoning\");\n return new Path(root + \"/\" + name);\n }", "protected String path() {\n return path(getName());\n }", "@Nullable\n private static File generateFile(Context context, @NonNull String fileName) {\n File file = null;\n if (isExternalStorageAvailable()) {\n// String path = Environment.getExternalStorageDirectory().getAbsolutePath()+\"/showlog\";\n\n String path = context.getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS).getAbsolutePath()+\"/showlog\";\n Log.d(\"ZINGLOGSHOW\", path);\n File root = new File(path);\n\n boolean dirExists = true;\n\n if (!root.exists()) {\n dirExists = root.mkdirs();\n }\n\n if (dirExists) {\n file = new File(root, fileName);\n }\n }\n return file;\n }", "private void copyHadoopTmpDir() {\n final String tmpDirProperty =\n PluginMiniHBaseClusterSingleton.INSTANCE.getClusterConfiguration().get(\"hadoop.tmp.dir\");\n final File hadoopTmp = new File(tmpDirProperty);\n final File hadoopTmpCopy = new File(new File(_projectBuildDir), \"hadoop-tmp\");\n getLog().info(\"Copying \" + hadoopTmp.toString() + \" to \" + hadoopTmpCopy.toString());\n try {\n FileUtils.copyDirectory(hadoopTmp, hadoopTmpCopy);\n getLog().info(\"Successfully copied hadoop tmp dir.\");\n }\n catch (final IOException e) {\n getLog().warn(\"The Hadoop tmp dir could not be copied to the project's build directory.\", e);\n }\n }", "private void createScratchDirectory(Path rootpath) {\n\t\tprintMsg(\"running createScratchDirectory() in \\\"\" + this.getClass().getName() + \"\\\" class.\");\n\t\t\n\t\tif (Files.isDirectory(rootpath)) {\n\t\t\tprintMsg(\"The \" + theRootPath + \" exists...\");\n\t\t} else {\n\t\t\tprintMsg(\"Creating \" + theRootPath);\n\t\t\ttry {\n\t\t\t\tFiles.createDirectories(rootpath);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "private void makeDirectory() {\n String userHome = System.getProperty(\"user.home\");\n wnwData = new File(userHome + \"/.wnwdata\");\n wnwData.mkdirs();\n\n makeCampaignChallengesFile();\n makeCustomChallengesFile();\n makeProgressFile();\n makeSettingsFile();\n }", "public interface JspWebdefaults {\r\n\r\n\t/**\r\n\t * Service PID used for configuration.\r\n\t */\r\n\tString PID = \"org.ops4j.pax.web\";\r\n\r\n\t/**\r\n\t * Scratch directory for JSPs\r\n\t */\r\n\tString PROPERTY_JSP_SCRATCH_DIR = PID + \".jsp.scratch.dir\";\r\n\r\n\tString PROPERTY_JSP_CHECK_INTERVAL = PID + \".jsp.check.interval\";\r\n\r\n\tString PROPERTY_JSP_DEBUG_INFO = PID + \".jsp.debug.info\";\r\n\r\n\tString PROPERTY_JSP_DEVELOPMENT = PID + \".jsp.development\";\r\n\r\n\tString PROPERTY_JSP_ENABLE_POOLING = PID + \".jsp.enable.pooling\";\r\n\r\n\tString PROPERTY_JSP_IE_CLASS_ID = PID + \".jsp.ie.classid\";\r\n\r\n\tString PROPERTY_JSP_JAVA_ENCODING = PID + \".jsp.java.encoding\";\r\n\r\n\tString PROPERTY_JSP_KEEP_GENERATED = PID + \".jsp.keep.generated\";\r\n\r\n\tString PROPERTY_JSP_LOG_VERBOSITY_LEVEL = PID + \".jsp.log.verbosity.level\";\r\n\r\n\tString PROPERTY_JSP_MAPPED_FILE = PID + \".jsp.mapped.file\";\r\n\r\n\tString PROPERTY_JSP_TAGPOOL_MAX_SIZE = PID + \".jsp.tagpool.max.size\";\r\n\r\n\tString PROPERTY_JSP_PRECOMPILATION = PID + \".jsp.precompilation\";\r\n}", "private PrintWriter getStorageFile() throws IOException {\n Path path = Paths.get(filePath);\n\n // Create directories if necessary\n if (path.getParent() != null) {\n Files.createDirectories(path.getParent().getFileName());\n }\n\n return new PrintWriter(new BufferedWriter(new FileWriter(filePath)));\n }", "private void createEssentialDirs() throws TNotFoundEx{\n\t\tFileUtil fT = new FileUtil();\n\t\tfT.createDirOnDevice(TicklerVars.sdCardPath);\n\t\tif (!fT.isExistOnDevice(TicklerVars.sdCardPath))\n\t\t\tthrow new TNotFoundEx(\"Cannot create Tickler directory \"+TicklerVars.sdCardPath+\". Check your configurations in Tickler.conf file\");\n\t\tfT.createDirOnHost(TicklerVars.appTickDir);\n\t\tif (!fT.isExist(TicklerVars.appTickDir))\n\t\t\tthrow new TNotFoundEx(\"Cannot create Tickler directory \"+TicklerVars.appTickDir+\". Check your configurations in Tickler.conf file\");\n\t\t\n\t}", "private String initialFileSetup(String file_path, String user_id) {\n\n String[] path_components = file_path.split(\"/\");\n String desired_filename = path_components[path_components.length - 1];\n String absolute_path = new File(\"\").getAbsolutePath();\n absolute_path = absolute_path.concat(\"/Final\");\n new File(absolute_path).mkdirs();\n absolute_path = absolute_path.concat(\"/Pause\");\n new File(absolute_path).mkdirs();\n\n absolute_path = absolute_path.concat(\"/\".concat(user_id));\n new File(absolute_path).mkdirs();\n\n absolute_path = absolute_path.concat(\"/Pause_\".concat(desired_filename));\n\n return absolute_path;\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}", "public void init( ){\n\t filepath = getServletContext().getContextPath();\r\n\tappPath = getServletContext().getRealPath(SAVE_DIR);\r\n\t \r\n\t }", "protected String getStaticFilesLocation(PortletRequest request) {\n // TODO allow overriding on portlet level?\n String staticFileLocation = getPortalProperty(\n Constants.PORTAL_PARAMETER_VAADIN_RESOURCE_PATH,\n request.getPortalContext());\n if (staticFileLocation != null) {\n // remove trailing slash if any\n while (staticFileLocation.endsWith(\".\")) {\n staticFileLocation = staticFileLocation.substring(0,\n staticFileLocation.length() - 1);\n }\n return staticFileLocation;\n } else {\n // default for Liferay\n return \"/html\";\n }\n }", "@Nullable\n VirtualFile getModuleOutputDirectory(@NotNull Module module);", "public static String setupJMeterHome() {\n if (JMeterUtils.getJMeterProperties() == null) {\n String file = \"jmeter.properties\";\n File f = new File(file);\n if (!f.canRead()) {\n System.out.println(\"Can't find \" + file + \" - trying bin/ and ../bin\");\n if (!new File(\"bin/\" + file).canRead()) {\n // When running tests inside IntelliJ\n filePrefix = \"../bin/\"; // JMeterUtils assumes Unix-style separators\n } else {\n filePrefix = \"bin/\"; // JMeterUtils assumes Unix-style separators\n }\n file = filePrefix + file;\n } else {\n filePrefix = \"\";\n }\n // Used to be done in initializeProperties\n String home=new File(System.getProperty(\"user.dir\"),filePrefix).getParent();\n System.out.println(\"Setting JMeterHome: \"+home);\n JMeterUtils.setJMeterHome(home);\n }\n return filePrefix;\n }", "public static String setup(Task task) {\n\t\tString localTemp = task.getTaskType() + \"_\" + task.getTaskId();\n\t\ttry {\n\t\t\tFileUtils.forceMkdir(new File(localTemp));\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"Exception occoured while creating local temporary directory \\n\" + e.getLocalizedMessage());\n\t\t\tstate.setErrCode(state.getTsk() == TaskType.MAP_TASK ? ERR_CODE.EXCEPTION_CREATING_TEMP_DIR_MAP\n\t\t\t : ERR_CODE.EXCEPTION_CREATING_TEMP_DIR_REDUCE);\n\t\t}\n\t\treturn localTemp;\n\t}", "public static void CreateReport() {\n\t\tString fileName = new SimpleDateFormat(\"'Rest_Country_Report_'YYYYMMddHHmm'.html'\").format(new Date());\n\t\tString path = \"Report/\" + fileName;\n\t\treport = new ExtentReports(path);\n\t}", "private static String createDir(String s) {\r\n \tint len = s.length() - 1;\r\n \tString tempBuff;\r\n \tString result;\r\n \tif (s.charAt(len) != '/') {\r\n \t\ttempBuff = String.format(\"%s/\", s);\r\n \t}\r\n \telse {\r\n \t\ttempBuff = s;\r\n \t}\r\n \tresult = tempBuff;\r\n \treturn result;\r\n }", "private File createWorkingDir( final String path )\n {\n File workDir = new File( path );\n workDir.mkdirs();\n return workDir;\n }", "private static String getDirectoryPath() {\n // Replace the path here with your own\n File file = new File(Environment.getExternalStorageDirectory(),\n \"/GenericAndroidSoundboard/Audio/\");\n // Create the directory if it doesn't exist\n if (!file.exists()) {\n file.mkdirs();\n }\n\n // Get the path to the newly created directory\n return Environment.getExternalStorageDirectory()\n .getAbsolutePath() + \"/GenericAndroidSoundboard/Audio/\";\n }", "private void createHTMLFile(Webpage webpage) {\n String filepath = \"resources/tempHTML\" +Thread.currentThread().getName() +\".html\";\n\n try {\n //Create HTML file\n File file = new File(filepath);\n OutputStreamWriter fW = new OutputStreamWriter(new FileOutputStream(file), Charset.forName(\"UTF-8\").newEncoder());\n fW.write(webpage.getHTML());\n fW.flush();\n fW.close();\n\n //Set HTML file size\n webpage.setFileSize(Utils.getFileSize(filepath));\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private File confirmWebappDirectory(Properties props) {\r\n\t\tString filename = getRequiredProperty(props, PROP_WEBAPP_DIRECTORY);\r\n\t\tFile webappDirectory = new File(filename);\r\n\t\tif (!webappDirectory.exists()) {\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid value for '\"\r\n\t\t\t\t\t+ PROP_WEBAPP_DIRECTORY + \"': directory '\" + filename\r\n\t\t\t\t\t+ \"' does not exist.\");\r\n\t\t}\r\n\t\tif (!webappDirectory.isDirectory()) {\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid value for '\"\r\n\t\t\t\t\t+ PROP_WEBAPP_DIRECTORY + \"': '\" + filename\r\n\t\t\t\t\t+ \"' is not a directory.\");\r\n\t\t}\r\n\t\tif (!webappDirectory.canWrite()) {\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid value for '\"\r\n\t\t\t\t\t+ PROP_WEBAPP_DIRECTORY + \"': directory '\" + filename\r\n\t\t\t\t\t+ \"' is not writeable.\");\r\n\t\t}\r\n\t\treturn webappDirectory;\r\n\t}", "private static void initJspContext(WebAppContext webapp) throws IOException {\n File tempDir = new File(System.getProperty(\"java.io.tmpdir\"));\n File scratchDir = new File(tempDir.toString(),\"embedded-jetty-jsp\");\n\n if (!scratchDir.exists()) {\n if (!scratchDir.mkdirs()) {\n throw new IOException(\"Unable to create scratch directory: \" + scratchDir);\n }\n }\n\n webapp.setAttribute(\"javax.servlet.context.tempdir\",scratchDir);\n webapp.setAttribute(InstanceManager.class.getName(), new SimpleInstanceManager());\n \n\n //Ensure the jsp engine is initialized correctly\n JettyJasperInitializer sci = new JettyJasperInitializer();\n ServletContainerInitializersStarter sciStarter = new ServletContainerInitializersStarter(webapp);\n ContainerInitializer initializer = new ContainerInitializer(sci, null);\n List<ContainerInitializer> initializers = new ArrayList<ContainerInitializer>();\n initializers.add(initializer);\n\n webapp.setAttribute(\"org.eclipse.jetty.containerInitializers\", initializers);\n webapp.addBean(sciStarter, true);\n\n // Add JSP Servlet (must be named \"jsp\")\n ServletHolder holderJsp = new ServletHolder(\"jsp\",JspServlet.class);\n holderJsp.setInitOrder(0);\n holderJsp.setInitParameter(\"logVerbosityLevel\",\"DEBUG\");\n holderJsp.setInitParameter(\"fork\",\"false\");\n holderJsp.setInitParameter(\"xpoweredBy\",\"false\");\n holderJsp.setInitParameter(\"compilerTargetVM\",\"1.7\");\n holderJsp.setInitParameter(\"compilerSourceVM\",\"1.7\");\n holderJsp.setInitParameter(\"keepgenerated\",\"true\");\n webapp.addServlet(holderJsp,\"*.jsp\");\n //context.addServlet(holderJsp,\"*.jspf\");\n //context.addServlet(holderJsp,\"*.jspx\");\n\t}", "public OutputResponse mkdirs(String path){\n String command = \"mkdir -p \" + path;\n return jobTarget.runCommand( command);\n }", "public static String getImageResoucesPath() {\n\t\t//return \"d:\\\\PBC\\\\GitHub\\\\Theia\\\\portal\\\\WebContent\\\\images\";\n\t\treturn \"/Users/anaswhb/Documents/Eclipse/Workspace/portal/WebContent/images\";\n\t\t\n\t}", "public static String getDataDir(String path) {\n\t\tFile dir = new File(System.getProperty(\"user.dir\"));\n\t\tif (!(dir.toString().endsWith(\"samples\")))\n\t\t\tdir = dir.getParentFile();\n\t\tdir = new File(dir, \"resources\");\n\t\tdir = new File(dir, path);\n\t\tif (dir.isDirectory() == false)\n\t\t\tdir.mkdir();\n\t\treturn dir.toString();\n\t}", "private static void createHTACCESSFile(String path, Configuration c){\n saveDocument(path,Constants.getHTACCESS(c), c);\n }", "public static void creator(Website websiteInfo){\n //creates folder using info on current directory\n File newFolder = new File(websiteInfo.currentPath);\n boolean websiteTest = newFolder.mkdir();\n\n if(websiteTest){\n System.out.println(\"Created ./website/\"+ websiteInfo.name);\n htmlFile(websiteInfo);\n createCSSJava(websiteInfo);\n }else{\n System.out.println(\"Could not create website\");\n }\n }", "private File createDirectoryIfNotExisting( String dirName ) throws HarvesterIOException\n {\n \tFile path = FileHandler.getFile( dirName );\n \tif ( !path.exists() )\n \t{\n \t log.info( String.format( \"Creating directory: %s\", dirName ) );\n \t // create path:\n \t if ( !path.mkdir() )\n \t {\n \t\tString errMsg = String.format( \"Could not create necessary directory: %s\", dirName );\n \t\tlog.error( errMsg );\n \t\tthrow new HarvesterIOException( errMsg );\n \t }\n \t}\n \t\n \treturn path;\n }", "protected static void createDirectory(MasterProcedureEnv env, NamespaceDescriptor nsDescriptor)\n throws IOException {\n createDirectory(env.getMasterServices().getMasterFileSystem(), nsDescriptor);\n }", "public String formatFilePath(){\n StringBuilder returnResult = new StringBuilder();\n String temp;\n temp = StringUtil.removeHttpPrefix(uri);\n returnResult.append(DEFAULT_DIRECTORY).append(\"\\\\\").append(temp);\n return returnResult.toString();\n }", "public static String uploadDir() {\n\n String uploads = stringValue(\"treefs.uploads\");\n if(isNullOrEmpty(uploads)) {\n // default home location\n uploads = home() + File.separator + \"uploads\";\n } else {\n uploads = home() + File.separator + uploads;\n }\n\n System.out.println(\"uploadDir=\" + uploads);\n return uploads;\n }" ]
[ "0.6614381", "0.6490672", "0.6090965", "0.60163575", "0.5827819", "0.581602", "0.56461394", "0.5591609", "0.55620694", "0.5549932", "0.5543191", "0.5483925", "0.54719293", "0.5462492", "0.5439203", "0.5431449", "0.5406329", "0.53856665", "0.53424", "0.5329351", "0.5317632", "0.5298187", "0.5222894", "0.520837", "0.520837", "0.520837", "0.520837", "0.52000177", "0.5198412", "0.51931715", "0.51774853", "0.5148417", "0.5141379", "0.51409185", "0.5128779", "0.51223624", "0.51110846", "0.51078993", "0.5081462", "0.50797564", "0.50754184", "0.50528526", "0.50431716", "0.5038846", "0.5026953", "0.50220406", "0.5013504", "0.5008638", "0.5001779", "0.4999947", "0.4999118", "0.49818385", "0.49708351", "0.4970049", "0.49629372", "0.49600536", "0.49540558", "0.49377406", "0.49194667", "0.49166617", "0.49102512", "0.49012282", "0.49004504", "0.4894017", "0.48906526", "0.48740894", "0.48663723", "0.48609397", "0.48513517", "0.4847287", "0.48395", "0.48281136", "0.48267663", "0.4821764", "0.48213112", "0.4819264", "0.48116583", "0.48098904", "0.48078096", "0.4803729", "0.48013914", "0.4800661", "0.4798971", "0.4798406", "0.47982717", "0.47891086", "0.47864887", "0.47771966", "0.47716105", "0.47576785", "0.47461143", "0.47391367", "0.47390646", "0.47381234", "0.47327307", "0.47250965", "0.47211614", "0.47172254", "0.4710818", "0.4707956" ]
0.8062951
0
Returns the absolute path for the generated JSPs from this module.
public String getModuleJSPPath() { return mModuleJSPPath; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createModuleJSPPath() {\n\t\tString[] onlyFolderNames = new String[] {\n\t\t\tmInstance.getWebModuleCompileJspPath(),\n\t\t\tmModuleName\n\t\t};\n\t\t\n\t\tmModuleJSPPath = StringUtils.makeFilePath (onlyFolderNames, false);\n\t}", "protected String getRootPath() {\n\t\treturn \"/WEB-INF\";\n\t}", "public String getJspURI()\n {\n return null;\n }", "public static String getManageJSPPath(String jspPath, PortletRequest request){\n\t\tString pageAction = \"\";\n\t\tif(request.getAttribute(\"jspPath\") != null){\n\t\t\tjspPath = (String) request.getAttribute(\"jspPath\");\n\t\t}else if(request.getParameter(\"pageAction\") != null){\n\t\t\tpageAction = request.getParameter(\"pageAction\");\n\t\t\tif(pageAction.equals(\"MANAGE_LOCATIONS_VIEW_JSP\")){\n\t\t\t\tjspPath = MANAGE_LOCATIONS_VIEW_JSP;\n\t\t\t}else if(pageAction.equals(\"MANAGE_ROUTE_VIEW_JSP\")){\n\t\t\t\tjspPath = MANAGE_ROUTE_VIEW_JSP;\n\t\t\t}else if(pageAction.equals(\"MANAGE_TIMINGS_VIEW_JSP\")){\n\t\t\t\tjspPath = MANAGE_TIMINGS_VIEW_JSP;\n\t\t\t}else if(pageAction.equals(\"MANAGE_COUPONS_VIEW_JSP\")){\n\t\t\t\tjspPath = MANAGE_COUPONS_VIEW_JSP;\n\t\t\t}else if(pageAction.equals(\"MANAGE_USER_COUPONS_VIEW_JSP\")){\n\t\t\t\tjspPath = MANAGE_USER_COUPONS_VIEW_JSP;\n\t\t\t}\n\t\t}else{\n\t\t\t//jspPath = getManageJspPathBasedOnURL(themeDisplay);\t\n\t\t}\n\t\treturn jspPath;\n\t}", "public String getJspUrlPattern() {\n return this.jspUrlPattern;\n }", "public String getReportPath();", "protected String path() {\n return path(getName());\n }", "public String getTemplatePath() {\n this.defaultPath = defaultPath.endsWith(File.separator) ? defaultPath : defaultPath + File.separator;\n\n if (Paths.get(defaultPath).toFile().mkdirs()) {\n //Throw exception, couldn't create directories\n }\n\n return defaultPath + (defaultName != null ? defaultName + \".\" + extensionPattern : \"\");\n }", "private void createJavaWebStartPath() {\n String[] onlyFolderNames = new String[] {\n mInstance.getJavaWebStartPath(),\n mModuleName\n };\n\n mJavaWebStartPath = StringUtils.makeFilePath (onlyFolderNames, false);\n }", "@Nullable\n @Override\n public IFile getOutputRoot() {\n return myTempModuleLocation.findChild(\"src_gen\");\n }", "private String getPath() {\n\t\treturn context.getRealPath(\"WEB-INF/ConnectionData\");\n\t}", "private String getPath() {\n\t\treturn context.getRealPath(\"WEB-INF/ConnectionData\");\n\t}", "private String getPath() {\n\t\treturn context.getRealPath(\"WEB-INF/ConnectionData\");\n\t}", "private String getPath() {\n\t\treturn context.getRealPath(\"WEB-INF/ConnectionData\");\n\t}", "java.lang.String getSrcPath();", "public void createModuleGeneratedXMLPath() {\n\t\tString[] onlyFolderNames = new String[] {\n\t\t\tmInstance.getModuleGeneratedXMLPath(),\n\t\t\tmModuleName\n\t\t};\n\t\t\n\t\tmModuleGeneratedXMLPath = StringUtils.makeFilePath (onlyFolderNames, false);\n\t}", "public String getModuleGeneratedXMLPath() {\n\t\treturn mModuleGeneratedXMLPath;\n\t}", "private String getPath() {\r\n\t\t\treturn context.getRealPath(\"WEB-INF/ConnectionData\");\r\n\t\t}", "String createUrl() throws JspException {\n\t\tAssert.state(this.value != null, \"No value set\");\n\t\tHttpServletRequest request = (HttpServletRequest) this.pageContext.getRequest();\n\t\tHttpServletResponse response = (HttpServletResponse) this.pageContext.getResponse();\n\n\t\tStringBuilder url = new StringBuilder();\n\t\tif (this.type == UrlType.CONTEXT_RELATIVE) {\n\t\t\t// add application context to url\n\t\t\tif (this.context == null) {\n\t\t\t\turl.append(request.getContextPath());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (this.context.endsWith(\"/\")) {\n\t\t\t\t\turl.append(this.context, 0, this.context.length() - 1);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\turl.append(this.context);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (this.type != UrlType.RELATIVE && this.type != UrlType.ABSOLUTE && !this.value.startsWith(\"/\")) {\n\t\t\turl.append('/');\n\t\t}\n\t\turl.append(replaceUriTemplateParams(this.value, this.params, this.templateParams));\n\t\turl.append(createQueryString(this.params, this.templateParams, (url.indexOf(\"?\") == -1)));\n\n\t\tString urlStr = url.toString();\n\t\tif (this.type != UrlType.ABSOLUTE) {\n\t\t\t// Add the session identifier if needed\n\t\t\t// (Do not embed the session identifier in a remote link!)\n\t\t\turlStr = response.encodeURL(urlStr);\n\t\t}\n\n\t\t// HTML and/or JavaScript escape, if demanded.\n\t\turlStr = htmlEscape(urlStr);\n\t\turlStr = (this.javaScriptEscape ? JavaScriptUtils.javaScriptEscape(urlStr) : urlStr);\n\n\t\treturn urlStr;\n\t}", "private String makeJspUrl(String result) {\n String path = this.jspUrlPattern\n .replaceAll(\"\\\\$\\\\{action\\\\}\", id.getActionName())\n .replaceAll(\"\\\\$\\\\{method\\\\}\", id.getMethodName())\n .replaceAll(\"\\\\$\\\\{result\\\\}\", result);\n logger.debug(\"path for target: '{}', result: '{}' is '{}'\", id, result, path);\n return path;\n }", "public String artifactsLocationTemplate() {\n String pipeline = get(\"GO_PIPELINE_NAME\");\n String stageName = get(\"GO_STAGE_NAME\");\n String jobName = get(\"GO_JOB_NAME\");\n\n String pipelineCounter = get(\"GO_PIPELINE_COUNTER\");\n String stageCounter = get(\"GO_STAGE_COUNTER\");\n return artifactsLocationTemplate(pipeline, stageName, jobName, pipelineCounter, stageCounter);\n }", "@Override\n public File getServletTempDirectory(String moduleContextPath) {\n ApplicationDescriptor desc = getApplicationDescriptor(moduleContextPath);\n if (desc == null) {\n return null;\n }\n String domainDir = deploymentManager.getInstanceProperties().getProperty(WLPluginProperties.DOMAIN_ROOT_ATTR);\n assert domainDir != null;\n\n // FIXME can we get this via JMX ?\n File tmpPath = new File(new File(domainDir), \"servers\" + File.separator + desc.getServerName() + File.separator + \"tmp\" // NOI18N\n + File.separator + \"_WL_user\" + File.separator + desc.getName()); // NOI18N\n if (tmpPath.exists() && tmpPath.isDirectory()) {\n File[] subDirs = tmpPath.listFiles();\n if (subDirs != null) {\n for (File subdir : subDirs) {\n // FIXME multiple subdirs - what does that mean\n File servletDir = new File(subdir, \"jsp_servlet\"); // NOI18N\n if (servletDir.exists() && servletDir.isDirectory()) {\n // FIXME make simpler\n return servletDir.getParentFile();\n }\n }\n }\n }\n return null;\n }", "protected String getStaticFilesLocation(PortletRequest request) {\n // TODO allow overriding on portlet level?\n String staticFileLocation = getPortalProperty(\n Constants.PORTAL_PARAMETER_VAADIN_RESOURCE_PATH,\n request.getPortalContext());\n if (staticFileLocation != null) {\n // remove trailing slash if any\n while (staticFileLocation.endsWith(\".\")) {\n staticFileLocation = staticFileLocation.substring(0,\n staticFileLocation.length() - 1);\n }\n return staticFileLocation;\n } else {\n // default for Liferay\n return \"/html\";\n }\n }", "public String getAssetDirectory() {\n return String.format(\"plugin-webapp/%s\", getId());\n }", "public String getRelativePath();", "@Override\n\t\tpublic String getServletPath() {\n\t\t\treturn null;\n\t\t}", "public JspConfig getJspConfig();", "public String getContextPath() {\n return FxJsfUtils.getRequest().getContextPath();\n }", "@Override\n\tpublic java.lang.String getSrcPath() {\n\t\treturn _scienceApp.getSrcPath();\n\t}", "private String getDesignPath() {\n Class<?> clazz = getClass();\n String designFilePath = null;\n if (clazz.getAnnotation(DeclarativeUI.class).absolutePath()) {\n designFilePath = \"\";\n } else {\n // This is rather nasty.. but it works well enough for now.\n String userDir = System.getProperty(\"user.dir\");\n designFilePath = userDir + \"/uitest/src/\"\n + clazz.getPackage().getName().replace('.', '/') + \"/\";\n }\n\n String designFileName = clazz.getAnnotation(DeclarativeUI.class)\n .value();\n\n return designFilePath + designFileName;\n }", "public String getWebappPathPrefix() {\n return webSiteProps.getWebappPathPrefix();\n }", "boolean isDoNotRegenerateJspFiles();", "private String getPackagePath(ClassDoc jvdType)\r\n {\r\n JspTagContext context = getContext();\r\n String packagePath = null;\r\n PackageDoc jvdContainingPackage = jvdType.containingPackage();\r\n if (jvdContainingPackage != null)\r\n {\r\n String packageName = jvdContainingPackage.name();\r\n if (context.isItemExternal(packageName))\r\n {\r\n packagePath = context.getExternalLinkPath(packageName);\r\n if (!context.isItemAbsolute(packageName))\r\n {\r\n String currentJspUri = context.getCurrentTagDetail()\r\n .getTagLibUri();\r\n packagePath = buildDocRoot(currentJspUri) + '/' + packagePath;\r\n }\r\n }\r\n }\r\n return packagePath;\r\n }", "String getContextPath();", "String getContextPath();", "String getContextPath();", "@Override \n public String getPathInfo() {\n if (pathInfo != null) {\n return pathInfo;\n }\n \n StringBuilder buffer = new StringBuilder();\n if (getRequestURIWithoutQuery().length() > 0) {\n if (getScriptName().length() > 0 && getRequestURIWithoutQuery().indexOf(getScriptName()) == 0) {\n buffer.append(getRequestURIWithoutQuery().substring(getScriptName().length()));\n } else {\n buffer.append(getRequestURIWithoutQuery());\n }\n } else {\n buffer.append(getServletPath());\n if (super.getPathInfo() != null) {\n buffer.append(super.getPathInfo());\n }\n }\n return pathInfo = buffer.toString();\n }", "@Override\n public String getUrlContextPath() {\n return \"\";\n }", "public abstract String getRequestServletPath();", "private String getResourcePath() {\n\t\tString reqResource = getRequest().getResourceRef().getPath();\n\t\treqResource = actualPath(reqResource, 1);\n\t\tLOGGERS.info(\"reqResourcePath---->\" + reqResource);\n\t\treturn reqResource;\n\t}", "public String toLocalPath() {\n\n String parentPath = parent.toLocalPath();\n return StringUtils.isBlank(parentPath)\n ? element.getElement()\n : new StringBuilder()\n .append(parentPath)\n .append('.')\n .append(element.getElement())\n .toString();\n }", "public String getOutputPath () \n\t{\n\t\treturn outputPathTextField.getText();\n\t}", "private static String getHtmlFilePath(RenderRequest request, String htmlFile) {\r\n\t\tString markup = request.getProperty(\"wps.markup\");\r\n\t\tif( markup == null )\r\n\t\t\tmarkup = getMarkup(request.getResponseContentType());\r\n\t\treturn HTML_FOLDER + markup + \"/\" + htmlFile + \".\" + getHtmlExtension(markup);\r\n\t}", "public static String getPath() {\n\t\t// Lấy đường dẫn link\n\t\tAuthentication auth1 = SecurityContextHolder.getContext().getAuthentication();\n\t\tAgentconnection cus = (Agentconnection) auth1.getPrincipal();\n\t\t \n\t\t//String PATH_STRING_REAL = fileStorageProperties.getUploadDir()+cus.getMerchant()+\"/hotel/images/\" + year + \"/\" + month + \"/\" ;\n\t String PATH_STRING_REAL = \"E:/ezcloud/upload/\"+cus.getMerchant()+\"/hotel/images/\" + year + \"/\" + month + \"/\" ;\n\t return PATH_STRING_REAL;\n\t}", "@Override\n\tpublic String getServletPath() {\n\t\treturn null;\n\t}", "public interface JspWebdefaults {\r\n\r\n\t/**\r\n\t * Service PID used for configuration.\r\n\t */\r\n\tString PID = \"org.ops4j.pax.web\";\r\n\r\n\t/**\r\n\t * Scratch directory for JSPs\r\n\t */\r\n\tString PROPERTY_JSP_SCRATCH_DIR = PID + \".jsp.scratch.dir\";\r\n\r\n\tString PROPERTY_JSP_CHECK_INTERVAL = PID + \".jsp.check.interval\";\r\n\r\n\tString PROPERTY_JSP_DEBUG_INFO = PID + \".jsp.debug.info\";\r\n\r\n\tString PROPERTY_JSP_DEVELOPMENT = PID + \".jsp.development\";\r\n\r\n\tString PROPERTY_JSP_ENABLE_POOLING = PID + \".jsp.enable.pooling\";\r\n\r\n\tString PROPERTY_JSP_IE_CLASS_ID = PID + \".jsp.ie.classid\";\r\n\r\n\tString PROPERTY_JSP_JAVA_ENCODING = PID + \".jsp.java.encoding\";\r\n\r\n\tString PROPERTY_JSP_KEEP_GENERATED = PID + \".jsp.keep.generated\";\r\n\r\n\tString PROPERTY_JSP_LOG_VERBOSITY_LEVEL = PID + \".jsp.log.verbosity.level\";\r\n\r\n\tString PROPERTY_JSP_MAPPED_FILE = PID + \".jsp.mapped.file\";\r\n\r\n\tString PROPERTY_JSP_TAGPOOL_MAX_SIZE = PID + \".jsp.tagpool.max.size\";\r\n\r\n\tString PROPERTY_JSP_PRECOMPILATION = PID + \".jsp.precompilation\";\r\n}", "public String genLogFilePath() {\n\n\t\tString logFileName = generateFileName();\n\t\tString logFilePath = FileIoUtils.getLogFilePathPrefix(logFileName)\n\t\t\t\t+ \"/\" + logFileName;\n\t\treturn logFilePath;\n\n\t}", "public final String path() {\n return string(preparePath(concat(path, SLASH, name)));\n }", "public static String getBasepath() {\n\t\treturn basepath;\n\t}", "public static String getBasepath() {\n\t\treturn basepath;\n\t}", "public String getXslFile() {\n return directory_path2;\n }", "public static String sBasePath() \r\n\t{\r\n\t\tif(fromJar) \r\n\t\t{\r\n\t\t\tFile file = new File(System.getProperty(\"java.class.path\"));\r\n\t\t\tif (file.getParent() != null)\r\n\t\t\t{\r\n\t\t\t\treturn file.getParent().toString();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\treturn new java.io.File(\"\").getCanonicalPath();\r\n\t\t} \r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "private String getWebTmpDir()\n\t\t\tthrows Exception\n\t{\n\t\t\treturn Contexto.getPropiedad(\"TMP.UPLOAD2\");\n }", "public String getPathFileOut() {\r\n\t\treturn pathFileOut;\r\n\t}", "String basePath();", "@Override\n public String getServletInfo() {\n return \"Create Blood Donation Reccord using JSP\";\n }", "public String getServletPath() {\n return servletPath;\n }", "public String download(){\r\n\t\treturn \"template\";\r\n\t}", "public String getScriptName() {\n if (scriptName != null) {\n return scriptName;\n }\n\n String contextPath = getContextPath();\n if (contextPath == null) contextPath = \"\";\n return scriptName = contextPath.equals(\"/\") ? \"\" : contextPath;\n }", "@Override\n public URL getTemplateLocation() {\n try {\n String[] candidates = getDirectoryCandidates();\n for (int i = 0; i < candidates.length; i++) {\n if (Activator.getDefault().getBundle().getEntry(candidates[i]) != null) {\n URL candidate = new URL(getInstallURL(), candidates[i]);\n return candidate;\n }\n }\n } catch (MalformedURLException e) { // do nothing\n }\n return null;\n }", "String getGlobalMboxJSPath(final Page currentPage);", "public static Path getPath() {\n\t\tPath path = Paths.get(getManagerDir(), NAME);\n\t\treturn path;\n\t}", "@Override\r\n\tprotected String getBasePath() {\n\t\treturn \"/module/tstaff/\";\r\n\t}", "public Path getScriptLocation() {\n return getSimulationLocation().resolve(FileManager.SCRIPT_FOLDER_NAME);\n }", "private String getReportName( IReportContext context, IAction action )\n \t{\n \t\tassert context != null;\n \t\tassert action != null;\n \t\tString reportName = action.getReportName( );\n \t\tIReportRunnable runnable = context.getReportRunnable( );\n \n \t\t// if WORKING_FOLDER_ACCESS_ONLY is false, return absolute path.\n \t\t// else, return relative path.\n \t\tif ( runnable != null && !ParameterAccessor.isWorkingFolderAccessOnly( ) )\n \t\t{\n \t\t\tModuleHandle moduleHandle = runnable.getDesignHandle( )\n \t\t\t\t\t.getModuleHandle( );\n \t\t\tURL url = moduleHandle.findResource( reportName, -1 );\n \t\t\tif ( url != null )\n \t\t\t{\n \t\t\t\tif ( \"file\".equals( url.getProtocol( ) ) ) //$NON-NLS-1$\n \t\t\t\t\treportName = url.getFile( );\n \t\t\t\telse\n \t\t\t\t\treportName = url.toExternalForm( );\n \t\t\t}\n \t\t}\n \t\treturn reportName;\n \t}", "public String getResultPath() {\n\t\tString append = (DBCatalog.getCatalog().inputPath.contains(\"/\") ? \"/sortResult\" : \"\\\\sortResult\");\n\t\treturn tempsubdir + append;\n\t}", "private File extractResources() {\r\n\t\tif (org.opensourcephysics.display.OSPRuntime.appletMode)\r\n\t\t\treturn null;\r\n\t\tFile descTempDirectory = new File(getTemporaryDir() + \"DescriptionPages/\");\r\n\t\tif (!descTempDirectory.exists()) {\r\n\t\t\tif (!descTempDirectory.mkdirs()) {\r\n\t\t\t\tSystem.err.println(\r\n\t\t\t\t\t\t\"DescriptionPages : Could not create directory : \" + descTempDirectory.getAbsolutePath());\r\n\t\t\t\tJOptionPane.showMessageDialog(openPageButton, Memory.getResource(\"DescriptionPages.CannotExtractFiles\"),\r\n\t\t\t\t\t\tMemory.getResource(\"Error\"), JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// System.err.println (\"Extracting description pages to folder :\r\n\t\t// \"+descTempDirectory.getAbsolutePath());\r\n\t\tfor (String filename : model._getClassEjsResources()) {\r\n\t\t\tif (extractToDirectory(filename, descTempDirectory, false) == null)\r\n\t\t\t\treturn null;\r\n\t\t}\r\n\t\textractToDirectory(\"/_ejs_library/css/ejss.css\", descTempDirectory, false); // New in %.3Failure to do this does\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// not invalidate the process\r\n\t\treturn descTempDirectory;\r\n\t}", "public String getServletPath() {\n return servletPath;\n }", "@GetMapping(\"/temp/jsp\")\n public String tempJsp(){\n return \"test\";\n }", "public final String getPath() {\n\t\treturn this.path.toString();\n\t}", "public String getPath() {\n\t\treturn pfDir.getPath();\n\t}", "public String getLocationPath();", "public String getSourcePath()\r\n\t{\r\n\t\treturn sourcePath;\r\n\t}", "@Override\n\tpublic String getContextPath() {\n\t\treturn contextPath;\n\t}", "public String getPath() {\n\t\treturn this.baseDir.getAbsolutePath();\n\t}", "public String getPath()\n {\n StringBuilder buff = new StringBuilder();\n Resource r = this;\n while(r != null)\n {\n if(r.getId() != 1)\n {\n buff.insert(0, r.getName());\n }\n r = r.getParent();\n if(r != null || this.getId() == 1)\n {\n buff.insert(0, '/');\n }\n }\n return buff.toString();\n }", "static Path getOutputPath(Configuration conf, String name) {\n String root = conf.get(WORKING_DIR, \"tmp/reasoning\");\n return new Path(root + \"/\" + name);\n }", "private String createRedirectPath(RedirectModule module) {\n return module.getViewHelper().getContextPath() + redirectTo.getAppPath()\n + createParameterString();\n }", "public String getJavaWebStartPath() {\n return mJavaWebStartPath;\n }", "private String getTmpPath() {\n return getExternalFilesDir(null).getAbsoluteFile() + \"/tmp/\";\n }", "public static void main(String[] args) {\n\t\tPath path = Paths.get(\"F:\\\\AccentureMayBatch\\\\JSTLProject\");\r\n\r\n\t\r\n\r\n\t\tSystem.out.format(\"toString: %s%n\", path.toString());\r\n\t\tSystem.out.format(\"getFileName: %s%n\", path.getFileName());\r\n\t\tSystem.out.format(\"getName(0): %s%n\", path.getName(0));\r\n\t\tSystem.out.format(\"getNameCount: %d%n\", path.getNameCount());\r\n\t\tSystem.out.format(\"subpath(0,2): %s%n\", path.subpath(0,2));\r\n\t\tSystem.out.format(\"getParent: %s%n\", path.getParent());\r\n\t\tSystem.out.format(\"getRoot: %s%n\", path.getRoot());\r\n\t\t\r\n\t\ttry {\r\n\t\t\tFiles.list(new File(\".\").toPath())\r\n\t\t\t .forEach(System.out::println);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tFiles.walk(new File(\".\").toPath())\r\n\t\t .filter(p -> !p.getFileName()\r\n\t\t .toString().startsWith(\".\"))\r\n\t\t .forEach(System.out::println);\r\n\t\t\t\r\n\t\t\tFiles.lines(new File(\"./src/com/polaris/utility/PathDemo.java\").toPath())\r\n\t\t .map(s -> s.trim())\r\n\t\t .filter(s -> !s.isEmpty())\r\n\t\t .forEach(System.out::println);\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//finding path and sub path into string\r\n\t\t Path start = Paths.get(\".\");\r\n\t\t int maxDepth = 5;\r\n\t\t try (Stream<Path> stream = Files.find(start, maxDepth, (path2, attr) -> String.valueOf(path2).endsWith(\".java\"))) \r\n\t\t {\r\n\t\t String joined = stream\r\n\t\t .sorted()\r\n\t\t .map(String::valueOf)\r\n\t\t .collect(Collectors.joining(\"; \"));\r\n\t\t System.out.println(\"Found: \" + joined);\r\n\t\t } catch (IOException e1) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n\t\t \r\n\t\t\r\n\t\tPath source = Paths.get(\"./src/com/polaris/utility/PathDemo.java\");\r\n\t\tPath target = Paths.get(\"F:/yatrabakup\");\r\n\t\t\r\n/*\r\n\t\ttry {\r\n\t\t // Files.copy(source, target);\r\n\t\t} catch(FileAlreadyExistsException fae) {\r\n\t\t fae.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t // something else went wrong\r\n\t\t e.printStackTrace();\r\n\t\t}\r\n\t\t*/\r\n\t\ttry (BufferedReader reader = Files.newBufferedReader(Paths.get(\"f:\\\\yatrabakup\\\\EmployeeData.csv\"))) {\r\n\t\t reader.lines().map(String::toLowerCase).forEach(System.out::println);\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}", "String getPath();", "String getPath();", "String getPath();", "String getPath();", "String getPath();", "public String getApplicationPath()\n {\n return getApplicationPath(false);\n }", "public String getPath() {\n\t\treturn getString(\"path\");\n\t}", "public Path getOutputPath() {\n\t\t\n\t\tString name = getSimulationName();\t\t\n\t\tint l = name.length();\n\t\tString sim_name = name.substring(0, l-11); // \"_SIM_FOLDER\" contains 11 character\n\t\t\n\t\tPath path = Paths.get(outpath + \"\\\\\"+ sim_name);\n\t\tif(!Files.exists(path)) {\n\t\t try {\n\t\t Files.createDirectories(path);\n\t\t } catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t }\n\t\t}\n\t\treturn path;\n\t}", "public String getRelativePath() {\n if (repository == null) {\n return name;\n } else {\n StringBuffer b = new StringBuffer();\n repository.getRelativePath(b);\n b.append(name);\n return b.toString();\n }\n }", "public String getAbsolutePath() {\n\t\treturn Util.getAbsolutePath();\n\t}", "public String getDocumentBase() {\n return getServerBase() + getContextPath() + \"/\";\n }", "public String getPath() {\n String result = \"\";\n Directory curDir = this;\n // Keep looping while the current directories parent exists\n while (curDir.parent != null) {\n // Create the full path string based on the name\n result = curDir.getName() + \"/\" + result;\n curDir = (Directory) curDir.getParent();\n }\n // Return the full string\n result = \"/#/\" + result;\n return result;\n }", "public String getOutputPath() {\n\t\treturn outputPath;\n\t}", "private String analyseScanPath() {\n\t\t//1. get main module from init params\n\t\tString mainModule = Mvcs.servletConfig.getInitParameter(\"mainModule\");\n\t\tClass<?> cl = ClassUtil.getClass(mainModule);\n\t\tif(cl.isAnnotationPresent(ScanPackage.class)){\n\t\t\tScanPackage ann = cl.getAnnotation(ScanPackage.class);\n\t\t\t//get annotation path value\n\t\t\treturn ann.path();\n\t\t}\n\t\t//default return null\n\t\treturn null;\n\t}", "public String getPath();", "public String getPath();", "public String getPath();", "@Override\n public String execute(HttpServletRequest request) {\n return ConfigManagerPages.getInstance().getProperty(PathPageConstants.REGISTRATION_PAGE_PATH);\n }", "public static String getErrorPageURL(HttpServletRequest request) {\n\t\treturn request.getContextPath() + \"/GeneralException.jsp\";\n\t}" ]
[ "0.76714885", "0.6028238", "0.5932098", "0.5867701", "0.568667", "0.5660454", "0.562153", "0.5592899", "0.5571797", "0.5566601", "0.55525696", "0.55525696", "0.55525696", "0.55525696", "0.55487186", "0.5542993", "0.55286306", "0.5523121", "0.54958105", "0.5475974", "0.54755694", "0.5437097", "0.54361105", "0.54102945", "0.5405382", "0.5383394", "0.53566796", "0.5352928", "0.5323506", "0.52838093", "0.5276403", "0.52692413", "0.5250104", "0.5248826", "0.5248826", "0.5248826", "0.5242734", "0.5236808", "0.5194316", "0.5169129", "0.5158688", "0.51503384", "0.51462287", "0.5142051", "0.5124963", "0.5121568", "0.5087944", "0.5084231", "0.5083795", "0.5083795", "0.507118", "0.50476503", "0.50281495", "0.50068885", "0.49942955", "0.49910656", "0.49902707", "0.49891075", "0.4988443", "0.49851626", "0.4983918", "0.49820247", "0.49638206", "0.49546814", "0.4947591", "0.49431005", "0.49409324", "0.49345735", "0.49287525", "0.4928546", "0.4921425", "0.49169695", "0.4915509", "0.49144349", "0.49130538", "0.49044746", "0.49015328", "0.4900313", "0.4895244", "0.4888274", "0.48799962", "0.4874906", "0.4874906", "0.4874906", "0.4874906", "0.4874906", "0.48718536", "0.487106", "0.48683172", "0.4865354", "0.48649", "0.48640794", "0.48612696", "0.48552424", "0.48531288", "0.48465532", "0.48465532", "0.48465532", "0.4841968", "0.48360956" ]
0.7311076
1
Returns the absolute path for the backup path for this directorydeployed module Note that it does not create/check file/directory with such a path.
public String getModuleBackupPath() { return mModuleBackupPath; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getDirectoryForBackup() {\n\t\tString backupPath = configurationService.getValue(BACKUP_FOLDER_CONFIG);\n\t\tif (backupPath == null) {\n\t\t\t// if backup path null throw error, backup folder must be set\n\t\t\tthrow new ResultCodeException(CoreResultCode.BACKUP_FOLDER_NOT_FOUND,\n\t\t\t\t\tImmutableMap.of(\"property\", BACKUP_FOLDER_CONFIG));\n\t\t}\n\t\t// apend script default backup folder\n\t\tbackupPath = backupPath + \"/\" + SCRIPT_DEFAULT_BACKUP_FOLDER;\n\t\t// add date folder\n\t\tZonedDateTime date = ZonedDateTime.now();\n\t\tDecimalFormat decimalFormat = new DecimalFormat(\"00\");\n\t\treturn backupPath + date.getYear() + decimalFormat.format(date.getMonthValue())\n\t\t\t\t+ decimalFormat.format(date.getDayOfMonth()) + \"/\";\n\t}", "public String getBackupDirectory() {\n\t\treturn props.getProperty(ARGUMENT_BACKUP_DIRECTORY);\n\t}", "public void createModuleBackupPath() {\n\t\tString[] onlyFolderNames = new String[] {\n\t\t\tmInstance.getModuleBackupRepositoryPath(),\n\t\t\tmModuleName\n\t\t};\n\t\t\n\t\tmModuleBackupPath = StringUtils.makeFilePath (onlyFolderNames, false);\n\t}", "public String getArchiveFolderPath()\n {\n String currentWorkingDir = SystemUtil.getWorkingDirPath()+\"/\";\n \n ConfigurationStore configStore = ConfigurationStore.getInstance();\n String archiveFolder = configStore.getProperty(IISATProperty.CATEGORY, IISATProperty.ARCHIVE_FOLDER, null);\n String absArchiveFolderPath = currentWorkingDir + archiveFolder;\n _logger.logMessage(\"getArchiveFolderPath\", null, \"Abs archive folder path is \"+absArchiveFolderPath);\n return absArchiveFolderPath;\n }", "@OnlyIn(Dist.CLIENT)\n public Path getBackupsFolder() {\n return this.backupsDir;\n }", "public String getBackupServerFolderLocation(){\n\t return backupServerFolderLocation;\n }", "public String getAbsPath();", "public static Path createBackupFilePath(Path file) {\n Path parent = file.getParent();\n String name = file.getFileName().toString(); // Get the file name\n int period = name.indexOf('.'); // Find the extension separator\n if(period == -1) { // If there isn't one\n period = name.length(); // set it to the end of the string\n }\n String nameAdd = \"_backup\"; // String to be appended\n\n // Create a Path object that is a unique\n Path backup = parent.resolve(\n name.substring(0,period) + nameAdd + name.substring(period));\n while(Files.exists(backup)) { // If the path already exists...\n name = backup.getFileName().toString(); // Get the current file name\n backup = parent.resolve(name.substring(0,period) + // add _backup\n nameAdd + name.substring(period));\n period += nameAdd.length(); // Increment separator index\n }\n return backup;\n }", "private File getBackupFolder() {\n File backupFolder = home.getUserHome();\n if (goodEventsFile()) { \n FileSpec fileSpec = recentFiles.get(0);\n String backupFolderStr = fileSpec.getBackupFolder();\n File defaultBackupFolder = new File (fileSpec.getFolder(), \"backups\");\n if (backupFolderStr == null\n || backupFolderStr.length() < 2) {\n backupFolder = defaultBackupFolder;\n } else {\n backupFolder = new File (backupFolderStr);\n if (backupFolder.exists()\n && backupFolder.canWrite()) {\n // leave as-is\n } else {\n backupFolder = defaultBackupFolder;\n }\n }\n }\n return backupFolder;\n }", "public String getAbsolutePath() {\n\t\treturn Util.getAbsolutePath();\n\t}", "public static String getBasepath() {\n\t\treturn basepath;\n\t}", "public static String getBasepath() {\n\t\treturn basepath;\n\t}", "public String getBackupFilename(){\n\t return backupFilename;\n }", "public String getPath() {\n\t\treturn this.baseDir.getAbsolutePath();\n\t}", "public String getAbsolutePath() {\n String path = null;\n if (parent != null) {\n path = parent.getAbsolutePath();\n path = String.format(\"%s/%s\", path, name);\n } else {\n path = String.format(\"/%s\", name);\n }\n return path;\n }", "public String getDstPath() {\n return this.dstPath;\n }", "public static String sBasePath() \r\n\t{\r\n\t\tif(fromJar) \r\n\t\t{\r\n\t\t\tFile file = new File(System.getProperty(\"java.class.path\"));\r\n\t\t\tif (file.getParent() != null)\r\n\t\t\t{\r\n\t\t\t\treturn file.getParent().toString();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\treturn new java.io.File(\"\").getCanonicalPath();\r\n\t\t} \r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "public String getWalletFileDirectoryFull() {\r\n return dataDirectory + walletFileDirectory;\r\n }", "public String referenceDownloadedArchiveFolder() {\n if (tomcatArchive == null) {\n throw new IllegalStateException(\"No Tomcat Archive has been Selected!\");\n }\n return getDestinationFolder().getAbsolutePath() + File.separator + this.tomcatArchive.getName();\n }", "static Path createBackupDirectory(Path savegame) {\r\n\t\tPath backupDirectory = Paths.get(savegame.getParent() + \"\\\\Backups\");\r\n\t\tif (!Files.isDirectory(backupDirectory)) {\r\n\t\t\ttry {\r\n\t\t\t\tFiles.createDirectory(backupDirectory);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tSystem.out.println(\"Error: couldn't create Backup directory\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tif (Files.isDirectory(backupDirectory)) {\r\n\t\t\tSystem.out.println(\"Created Backup Directory..\");\r\n\t\t}\r\n\t\treturn backupDirectory;\r\n\t}", "public String getLocalBasePath() {\n\t\treturn DataManager.getLocalBasePath();\n\t}", "private String getBackupFileName(String directory, IdmScriptDto script) {\n\t\treturn directory + script.getCode() + \"_\" + SpinalCase.format(securityService.getCurrentUsername()) + \"_\"\n\t\t\t\t+ System.currentTimeMillis() + EXPORT_FILE_SUFIX;\n\t}", "public static String getDatabaseExportDirectory() {\n\t\tif (xml == null) return \"\";\n\t\treturn databaseExportDir;\n\t}", "private String getAbsoluteFilesPath() {\n\n //sdcard/Android/data/cucumber.cukeulator\n //File directory = getTargetContext().getExternalFilesDir(null);\n //return new File(directory,\"reports\").getAbsolutePath();\n return null;\n }", "public String backupName() {\n return this.backupName;\n }", "public String getBasePath(){\r\n\t\t \r\n\t\t String basePath = properties.getProperty(\"getPath\");\r\n\t\t if(basePath != null) return basePath;\r\n\t\t else throw new RuntimeException(\"getPath not specified in the configuration.properties file.\");\r\n\t }", "@JsonProperty(\"backupLocation\")\n public String getBackupLocation() {\n return backupLocation;\n }", "java.io.File getBaseDir();", "FsPath baseDir();", "public Path getRemoteRepositoryBaseDir();", "java.lang.String getBackupId();", "java.lang.String getBackupId();", "java.lang.String getBackupId();", "java.lang.String getBackupId();", "public boolean backupWithoutPrompt() {\n boolean modOK = modIfChanged();\n boolean backedUp = false;\n if (modOK) {\n File backupFolder = getBackupFolder();\n if(backupFolder != null) {\n backedUp = backup (backupFolder);\n if (backedUp) {\n FileSpec fileSpec = recentFiles.get(0);\n fileSpec.setBackupFolder(backupFolder);\n }\n } // end if the user selected a backup location\n } // end if modIfChanged had no problems\n \n if (! backedUp) {\n trouble.report(\"Could not complete backup\", \"Backup Errors\");\n }\n \n return backedUp;\n }", "public String getRelativePath();", "public static String getComplaintAttachmentsPath() {\n\t\treturn \"/home/ftpshared/WorkflowAttachments\";\n\t}", "public String getAbsoluteEncryptedPath(final String path) {\n return GDFileSystem.getAbsoluteEncryptedPath(path);\n }", "public String getBackUpFileName() {\n\t\treturn backUpFileName;\n\t}", "public String getPathToSyncDir() {\n return properties.getProperty(PATH_TO_SYNC_DIR);\n }", "public String getPath() {\n\t\treturn pfDir.getPath();\n\t}", "public static String getPath() {\n\t\t// Lấy đường dẫn link\n\t\tAuthentication auth1 = SecurityContextHolder.getContext().getAuthentication();\n\t\tAgentconnection cus = (Agentconnection) auth1.getPrincipal();\n\t\t \n\t\t//String PATH_STRING_REAL = fileStorageProperties.getUploadDir()+cus.getMerchant()+\"/hotel/images/\" + year + \"/\" + month + \"/\" ;\n\t String PATH_STRING_REAL = \"E:/ezcloud/upload/\"+cus.getMerchant()+\"/hotel/images/\" + year + \"/\" + month + \"/\" ;\n\t return PATH_STRING_REAL;\n\t}", "private static String getDBPath() {\r\n\t\ttry {\r\n\t\t\tString path = Consts.class.getProtectionDomain().getCodeSource().getLocation().getPath();\r\n\t\t\tString decoded = URLDecoder.decode(path, \"UTF-8\");\r\n\t\t\tif (decoded.contains(\".jar\")) {\r\n\t\t\t\tdecoded = decoded.substring(0, decoded.lastIndexOf('/'));\r\n\t\t\t\treturn decoded + \"/database/ManageElectDB.accdb\";\r\n\t\t\t} else {\r\n\t\t\t\tdecoded = decoded.substring(0, decoded.lastIndexOf(\"bin/\"));\r\n\t\t\t\treturn decoded + \"src/entity/ManageElectDB.accdb\";\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public abstract ModuleBackups backups();", "public static String getBasePath() {\n String basePath;\n if (new File(\"../../MacOS/JavaApplicationStub\").canExecute()) {\n basePath = \"../../../..\";\n } else {\n basePath = \".\";\n }\n return basePath;\n }", "public static File getDatabaseExportDirectoryFile() {\n\t\tif (xml == null) return null;\n\t\treturn new File(basepath + databaseExportDir);\n\t}", "public Address getFilebase() {\n return new Address(m_module.getConfiguration().getFileBase().toBigInteger());\n }", "@Override\n public String getAbsolutePathImpl() {\n return file.getAbsolutePath();\n }", "public static String getAbsoluteFilePath(String relativePath) throws URISyntaxException {\n URL fileResource = BCompileUtil.class.getClassLoader().getResource(relativePath);\n String pathValue = \"\";\n if (null != fileResource) {\n Path path = Paths.get(fileResource.toURI());\n pathValue = path.toAbsolutePath().toString();\n }\n return pathValue;\n }", "public Path getRepositoryBaseDir();", "public static String downloadDir() {\n\n String downloads = stringValue(\"treefs.downloads\");\n if(isNullOrEmpty(downloads)) {\n // default home location\n downloads = home() + File.separator + \"downloads\";\n } else {\n downloads = home() + File.separator + downloads;\n }\n\n System.out.println(\"downloadDir=\" + downloads);\n return downloads;\n }", "public String getPathToJarFolder(){\n Class cls = ReadWriteFiles.class;\r\n ProtectionDomain domain = cls.getProtectionDomain();\r\n CodeSource source = domain.getCodeSource();\r\n URL url = source.getLocation();\r\n try {\r\n URI uri = url.toURI();\r\n path = uri.getPath();\r\n \r\n // get path without the jar\r\n String[] pathSplitArray = path.split(\"/\");\r\n path = \"\";\r\n for(int i = 0; i < pathSplitArray.length-1;i++){\r\n path += pathSplitArray[i] + \"/\";\r\n }\r\n \r\n return path;\r\n \r\n } catch (URISyntaxException ex) {\r\n LoggingAspect.afterThrown(ex);\r\n return null;\r\n }\r\n }", "public java.lang.String getBackupName() {\n return backupName;\n }", "public String getBasename()\n {\n // Default implementation: getBasename of path \n return _nodeVRL.getBasename(); \n }", "public static String getBaseDir() {\r\n Path currentRelativePath = Paths.get(System.getProperty(\"user.dir\"));\r\n return currentRelativePath.toAbsolutePath().toString();\r\n }", "public java.lang.String getBackupId() {\n java.lang.Object ref = backupId_;\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 backupId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getBackupId() {\n java.lang.Object ref = backupId_;\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 backupId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getBackupId() {\n java.lang.Object ref = backupId_;\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 backupId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getBackupId() {\n java.lang.Object ref = backupId_;\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 backupId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public File getApplicationPath()\n {\n return validateFile(ServerSettings.getInstance().getProperty(ServerSettings.APP_EXE));\n }", "public String getBaseDirectoryName() {\n return mBaseDirectoryName;\n }", "public String getRelativeFolderPath() {\r\n return relativeFolderPath;\r\n }", "public String getBundleDir()\n {\n if ( bundleDir != null )\n {\n bundleDir = cleanBundleDir( bundleDir );\n }\n return bundleDir;\n }", "edu.usfca.cs.dfs.StorageMessages.BackUp getBackup();", "public String getBlockFileDirectoryFull() {\r\n return dataDirectory + blockFileDirectory;\r\n }", "public final String getPathDescription()\n {\n if (tryGetHost() == null)\n {\n return getCanonicalPath();\n } else\n {\n if (tryGetRsyncModule() == null)\n {\n return tryGetHost() + HOST_FILE_SEP + getPath();\n } else\n {\n return tryGetHost() + HOST_FILE_SEP + tryGetRsyncModule() + HOST_FILE_SEP\n + getPath();\n }\n }\n }", "public String getNabtoResourceDirectory() {\n return nabtoResourceDirectory.getAbsolutePath();\n }", "public static String createDownloadDirectory() {\n \tvar downloadDirectory = Configuration.toString(\"downloadDirectory\");\n \tif (downloadDirectory == null) {\n \t\tdownloadDirectory = \"../../Downloads\";\n \t}\n return downloadDirectory;\n }", "public IStatus prepareDeployDirectory(IPath deployPath);", "public static String getPath() { return Objects.requireNonNull(Bukkit.getServer().getPluginManager().getPlugin(\"Catacombs\"))\n .getDataFolder().getAbsolutePath(); }", "String getAbsolutePathWithinSlingHome(String relativePath);", "public String getAvailablePath() {\n String path = getPath();\n if (isCut()) {\n path = getCutPath();\n }\n if (isCompressed()) {\n path = getCompressPath();\n }\n if (isToSandboxPath()) {\n path = getSandboxPath();\n }\n if (isOriginal()) {\n path = getOriginalPath();\n }\n if (isWatermarkPath()) {\n path = getWatermarkPath();\n }\n return path;\n }", "public String getDestLocation() {\r\n return this.destPath.getText();\r\n }", "public final String getPath() {\n\t\treturn this.path.toString();\n\t}", "String getPath();", "String getPath();", "String getPath();", "String getPath();", "String getPath();", "public String getPath() {\n String result = \"\";\n Directory curDir = this;\n // Keep looping while the current directories parent exists\n while (curDir.parent != null) {\n // Create the full path string based on the name\n result = curDir.getName() + \"/\" + result;\n curDir = (Directory) curDir.getParent();\n }\n // Return the full string\n result = \"/#/\" + result;\n return result;\n }", "public String pathToSave() {\n String path;\n File folder;\n do {\n System.out.print(\"Introduce la ruta en la que quieres guardar el fichero(separando directorios por guiones: directorio1-directorio2-directorio3): \");\n path = Utils.getString();\n path = String.valueOf(System.getProperty(\"user.dir\")).substring(0, 2) + \"\\\\\" + path.replace('-', '\\\\');\n folder = new File(path);\n if (!folder.exists()) {\n System.out.println(\"El directorio introducido no existe intentalo de nuevo...\");\n } else {\n if (!folder.isDirectory()) {\n System.out.println(\"Eso no es un directorio intentalo de nuevo...\");\n }\n }\n } while (!folder.exists() && !folder.isDirectory());\n return path;\n }", "public File getBaseDirectoryPath() {\n return mBaseDirectoryPath;\n }", "protected String path() {\n return path(getName());\n }", "public String getClassPath(Object ClassObject) {\n try {\n String temp = null;\n temp = new File(ClassObject.getClass().getProtectionDomain().getCodeSource().getLocation().getPath()).getParent();\n temp = URLDecoder.decode(temp, \"UTF-8\");\n return temp;\n } catch (Exception e) {\n return \"\";\n }\n }", "public String getPath() {\n\t\treturn file.getPath();\n\t}", "public static String GetvDefaultBilibiliSavePath(Context ctx){\n return GetAppDataPathExternal(ctx);\n }", "public String getPath() {\n return (path == null || path.equals(\"\")) ? \"/\" : path;\n }", "public static void backupToFile(String filePath) throws DatabaseWrapperOperationException {\r\n \t\t// create temporary directory which includes backup files\r\n \t\tString tempDirName = java.util.UUID.randomUUID().toString();\r\n \t\tFile tempDir = new File(System.getProperty(\"user.home\") + File.separator, tempDirName);\r\n \t\tif (!tempDir.exists() && !tempDir.mkdir()) {\r\n \t\t\tLOGGER.error(\"Could not create temp directory\");\r\n \t\t}\r\n \t\r\n \t\t// backup home directory\r\n \t\tFile tempAppDataDir = new File(tempDir.getPath());\r\n \t\tFile sourceAppDataDir = new File(FileSystemLocations.getActiveHomeDir());\r\n \t\ttry {\r\n \t\t\tString excludeRegex = LOCK_FILE_REGEX + REGEX_OR + DATABASE_FILE_REGEX; \r\n \t\t\tFileSystemAccessWrapper.copyDirectory(sourceAppDataDir, tempAppDataDir, excludeRegex);\r\n \t\t} catch (IOException e) {\r\n \t\t\tthrow new DatabaseWrapperOperationException(DBErrorState.ERROR_DIRTY_STATE,e);\r\n \t\t}\r\n \t\r\n \t\t// backup database to file\r\n \t\ttry (Statement statement = ConnectionManager.getConnection().createStatement()){\t\t\t\t\r\n \t\t\tstatement.executeUpdate(BACKUP_TO + \"'\" + tempDir.getPath() + File.separatorChar + FileSystemLocations.DATABASE_TO_RESTORE_NAME + \"'\");\r\n \t\t} catch (SQLException e) {\r\n \t\t\tthrow new DatabaseWrapperOperationException(DBErrorState.ERROR_DIRTY_STATE,e);\r\n \t\t}\r\n \t\r\n \t\t// zip the whole temp folder\r\n \t\tFileSystemAccessWrapper.zipFolderToFile(tempDir.getPath(), filePath);\r\n \t\r\n \t\t// delete temp folder\r\n \t\tFileSystemAccessWrapper.deleteDirectoryRecursively(tempDir);\r\n \t}", "public String getLocationPath();", "public File getBasedir()\n {\n return basedir;\n }", "public String getBaseDirectory()\n {\n return m_baseDirectory;\n }", "private static String toAbsPathStr(String relPath, FileSystem fs) {\n String retPath = \"\";\n Directory tmpDir = (Directory) fs.checkPath(relPath, \"directory\");\n while (!tmpDir.equals(fs.getRoot())) {\n retPath = \"/\" + tmpDir.getName() + retPath;\n tmpDir = tmpDir.getParentDirectory();\n }\n return retPath;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getBackupIdBytes() {\n java.lang.Object ref = backupId_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n backupId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getBackupIdBytes() {\n java.lang.Object ref = backupId_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n backupId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getBackupIdBytes() {\n java.lang.Object ref = backupId_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n backupId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getBackupIdBytes() {\n java.lang.Object ref = backupId_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n backupId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getResourcePath() {\n return appPathField.getText().trim();\n }", "@java.lang.Override\n public java.lang.String getBackupId() {\n java.lang.Object ref = backupId_;\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 backupId_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getBackupId() {\n java.lang.Object ref = backupId_;\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 backupId_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getBackupId() {\n java.lang.Object ref = backupId_;\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 backupId_ = s;\n return s;\n }\n }" ]
[ "0.7402778", "0.70993406", "0.6804298", "0.6467917", "0.63720727", "0.63409686", "0.60177326", "0.59687954", "0.5939776", "0.58446014", "0.5834944", "0.5834944", "0.57869124", "0.5708881", "0.56987214", "0.5612998", "0.55429846", "0.5522611", "0.5519326", "0.54849243", "0.54548717", "0.5442669", "0.5396874", "0.5387109", "0.53830546", "0.53771925", "0.53526527", "0.53444225", "0.53148973", "0.52902013", "0.52771187", "0.52771187", "0.52771187", "0.52771187", "0.5270274", "0.5270254", "0.5265651", "0.52553517", "0.52004987", "0.5190981", "0.5179372", "0.51739794", "0.5173776", "0.517248", "0.5170603", "0.51633316", "0.5162308", "0.5157045", "0.5153894", "0.512023", "0.5119505", "0.5118613", "0.5114573", "0.5114369", "0.51137614", "0.51059043", "0.51059043", "0.51059043", "0.51059043", "0.5096013", "0.5080601", "0.50569874", "0.50554854", "0.5052931", "0.50498635", "0.5049846", "0.504563", "0.50448155", "0.5043388", "0.5042917", "0.50421274", "0.5039769", "0.50377727", "0.5037212", "0.50361156", "0.50361156", "0.50361156", "0.50361156", "0.50361156", "0.5031344", "0.50276023", "0.5023883", "0.5023521", "0.50133085", "0.500747", "0.5004216", "0.49948743", "0.49923468", "0.4990889", "0.49887475", "0.49850813", "0.49813762", "0.49779388", "0.49779388", "0.49779388", "0.49779388", "0.49738613", "0.49677855", "0.49677855", "0.49677855" ]
0.71361005
1
Returns the absolute path for the backup path for this directorydeployed module Note that it does not create/check file/directory with such a path.
public void createModuleBackupPath() { String[] onlyFolderNames = new String[] { mInstance.getModuleBackupRepositoryPath(), mModuleName }; mModuleBackupPath = StringUtils.makeFilePath (onlyFolderNames, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getDirectoryForBackup() {\n\t\tString backupPath = configurationService.getValue(BACKUP_FOLDER_CONFIG);\n\t\tif (backupPath == null) {\n\t\t\t// if backup path null throw error, backup folder must be set\n\t\t\tthrow new ResultCodeException(CoreResultCode.BACKUP_FOLDER_NOT_FOUND,\n\t\t\t\t\tImmutableMap.of(\"property\", BACKUP_FOLDER_CONFIG));\n\t\t}\n\t\t// apend script default backup folder\n\t\tbackupPath = backupPath + \"/\" + SCRIPT_DEFAULT_BACKUP_FOLDER;\n\t\t// add date folder\n\t\tZonedDateTime date = ZonedDateTime.now();\n\t\tDecimalFormat decimalFormat = new DecimalFormat(\"00\");\n\t\treturn backupPath + date.getYear() + decimalFormat.format(date.getMonthValue())\n\t\t\t\t+ decimalFormat.format(date.getDayOfMonth()) + \"/\";\n\t}", "public String getModuleBackupPath() {\n\t\treturn mModuleBackupPath;\n\t}", "public String getBackupDirectory() {\n\t\treturn props.getProperty(ARGUMENT_BACKUP_DIRECTORY);\n\t}", "public String getArchiveFolderPath()\n {\n String currentWorkingDir = SystemUtil.getWorkingDirPath()+\"/\";\n \n ConfigurationStore configStore = ConfigurationStore.getInstance();\n String archiveFolder = configStore.getProperty(IISATProperty.CATEGORY, IISATProperty.ARCHIVE_FOLDER, null);\n String absArchiveFolderPath = currentWorkingDir + archiveFolder;\n _logger.logMessage(\"getArchiveFolderPath\", null, \"Abs archive folder path is \"+absArchiveFolderPath);\n return absArchiveFolderPath;\n }", "@OnlyIn(Dist.CLIENT)\n public Path getBackupsFolder() {\n return this.backupsDir;\n }", "public String getBackupServerFolderLocation(){\n\t return backupServerFolderLocation;\n }", "public String getAbsPath();", "public static Path createBackupFilePath(Path file) {\n Path parent = file.getParent();\n String name = file.getFileName().toString(); // Get the file name\n int period = name.indexOf('.'); // Find the extension separator\n if(period == -1) { // If there isn't one\n period = name.length(); // set it to the end of the string\n }\n String nameAdd = \"_backup\"; // String to be appended\n\n // Create a Path object that is a unique\n Path backup = parent.resolve(\n name.substring(0,period) + nameAdd + name.substring(period));\n while(Files.exists(backup)) { // If the path already exists...\n name = backup.getFileName().toString(); // Get the current file name\n backup = parent.resolve(name.substring(0,period) + // add _backup\n nameAdd + name.substring(period));\n period += nameAdd.length(); // Increment separator index\n }\n return backup;\n }", "private File getBackupFolder() {\n File backupFolder = home.getUserHome();\n if (goodEventsFile()) { \n FileSpec fileSpec = recentFiles.get(0);\n String backupFolderStr = fileSpec.getBackupFolder();\n File defaultBackupFolder = new File (fileSpec.getFolder(), \"backups\");\n if (backupFolderStr == null\n || backupFolderStr.length() < 2) {\n backupFolder = defaultBackupFolder;\n } else {\n backupFolder = new File (backupFolderStr);\n if (backupFolder.exists()\n && backupFolder.canWrite()) {\n // leave as-is\n } else {\n backupFolder = defaultBackupFolder;\n }\n }\n }\n return backupFolder;\n }", "public String getAbsolutePath() {\n\t\treturn Util.getAbsolutePath();\n\t}", "public static String getBasepath() {\n\t\treturn basepath;\n\t}", "public static String getBasepath() {\n\t\treturn basepath;\n\t}", "public String getBackupFilename(){\n\t return backupFilename;\n }", "public String getPath() {\n\t\treturn this.baseDir.getAbsolutePath();\n\t}", "public String getAbsolutePath() {\n String path = null;\n if (parent != null) {\n path = parent.getAbsolutePath();\n path = String.format(\"%s/%s\", path, name);\n } else {\n path = String.format(\"/%s\", name);\n }\n return path;\n }", "public String getDstPath() {\n return this.dstPath;\n }", "public static String sBasePath() \r\n\t{\r\n\t\tif(fromJar) \r\n\t\t{\r\n\t\t\tFile file = new File(System.getProperty(\"java.class.path\"));\r\n\t\t\tif (file.getParent() != null)\r\n\t\t\t{\r\n\t\t\t\treturn file.getParent().toString();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\treturn new java.io.File(\"\").getCanonicalPath();\r\n\t\t} \r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "public String getWalletFileDirectoryFull() {\r\n return dataDirectory + walletFileDirectory;\r\n }", "public String referenceDownloadedArchiveFolder() {\n if (tomcatArchive == null) {\n throw new IllegalStateException(\"No Tomcat Archive has been Selected!\");\n }\n return getDestinationFolder().getAbsolutePath() + File.separator + this.tomcatArchive.getName();\n }", "static Path createBackupDirectory(Path savegame) {\r\n\t\tPath backupDirectory = Paths.get(savegame.getParent() + \"\\\\Backups\");\r\n\t\tif (!Files.isDirectory(backupDirectory)) {\r\n\t\t\ttry {\r\n\t\t\t\tFiles.createDirectory(backupDirectory);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tSystem.out.println(\"Error: couldn't create Backup directory\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tif (Files.isDirectory(backupDirectory)) {\r\n\t\t\tSystem.out.println(\"Created Backup Directory..\");\r\n\t\t}\r\n\t\treturn backupDirectory;\r\n\t}", "public String getLocalBasePath() {\n\t\treturn DataManager.getLocalBasePath();\n\t}", "private String getBackupFileName(String directory, IdmScriptDto script) {\n\t\treturn directory + script.getCode() + \"_\" + SpinalCase.format(securityService.getCurrentUsername()) + \"_\"\n\t\t\t\t+ System.currentTimeMillis() + EXPORT_FILE_SUFIX;\n\t}", "public static String getDatabaseExportDirectory() {\n\t\tif (xml == null) return \"\";\n\t\treturn databaseExportDir;\n\t}", "private String getAbsoluteFilesPath() {\n\n //sdcard/Android/data/cucumber.cukeulator\n //File directory = getTargetContext().getExternalFilesDir(null);\n //return new File(directory,\"reports\").getAbsolutePath();\n return null;\n }", "public String backupName() {\n return this.backupName;\n }", "public String getBasePath(){\r\n\t\t \r\n\t\t String basePath = properties.getProperty(\"getPath\");\r\n\t\t if(basePath != null) return basePath;\r\n\t\t else throw new RuntimeException(\"getPath not specified in the configuration.properties file.\");\r\n\t }", "@JsonProperty(\"backupLocation\")\n public String getBackupLocation() {\n return backupLocation;\n }", "java.io.File getBaseDir();", "FsPath baseDir();", "public Path getRemoteRepositoryBaseDir();", "java.lang.String getBackupId();", "java.lang.String getBackupId();", "java.lang.String getBackupId();", "java.lang.String getBackupId();", "public String getRelativePath();", "public boolean backupWithoutPrompt() {\n boolean modOK = modIfChanged();\n boolean backedUp = false;\n if (modOK) {\n File backupFolder = getBackupFolder();\n if(backupFolder != null) {\n backedUp = backup (backupFolder);\n if (backedUp) {\n FileSpec fileSpec = recentFiles.get(0);\n fileSpec.setBackupFolder(backupFolder);\n }\n } // end if the user selected a backup location\n } // end if modIfChanged had no problems\n \n if (! backedUp) {\n trouble.report(\"Could not complete backup\", \"Backup Errors\");\n }\n \n return backedUp;\n }", "public static String getComplaintAttachmentsPath() {\n\t\treturn \"/home/ftpshared/WorkflowAttachments\";\n\t}", "public String getAbsoluteEncryptedPath(final String path) {\n return GDFileSystem.getAbsoluteEncryptedPath(path);\n }", "public String getBackUpFileName() {\n\t\treturn backUpFileName;\n\t}", "public String getPathToSyncDir() {\n return properties.getProperty(PATH_TO_SYNC_DIR);\n }", "public String getPath() {\n\t\treturn pfDir.getPath();\n\t}", "public static String getPath() {\n\t\t// Lấy đường dẫn link\n\t\tAuthentication auth1 = SecurityContextHolder.getContext().getAuthentication();\n\t\tAgentconnection cus = (Agentconnection) auth1.getPrincipal();\n\t\t \n\t\t//String PATH_STRING_REAL = fileStorageProperties.getUploadDir()+cus.getMerchant()+\"/hotel/images/\" + year + \"/\" + month + \"/\" ;\n\t String PATH_STRING_REAL = \"E:/ezcloud/upload/\"+cus.getMerchant()+\"/hotel/images/\" + year + \"/\" + month + \"/\" ;\n\t return PATH_STRING_REAL;\n\t}", "private static String getDBPath() {\r\n\t\ttry {\r\n\t\t\tString path = Consts.class.getProtectionDomain().getCodeSource().getLocation().getPath();\r\n\t\t\tString decoded = URLDecoder.decode(path, \"UTF-8\");\r\n\t\t\tif (decoded.contains(\".jar\")) {\r\n\t\t\t\tdecoded = decoded.substring(0, decoded.lastIndexOf('/'));\r\n\t\t\t\treturn decoded + \"/database/ManageElectDB.accdb\";\r\n\t\t\t} else {\r\n\t\t\t\tdecoded = decoded.substring(0, decoded.lastIndexOf(\"bin/\"));\r\n\t\t\t\treturn decoded + \"src/entity/ManageElectDB.accdb\";\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public abstract ModuleBackups backups();", "public static String getBasePath() {\n String basePath;\n if (new File(\"../../MacOS/JavaApplicationStub\").canExecute()) {\n basePath = \"../../../..\";\n } else {\n basePath = \".\";\n }\n return basePath;\n }", "public static File getDatabaseExportDirectoryFile() {\n\t\tif (xml == null) return null;\n\t\treturn new File(basepath + databaseExportDir);\n\t}", "public Address getFilebase() {\n return new Address(m_module.getConfiguration().getFileBase().toBigInteger());\n }", "@Override\n public String getAbsolutePathImpl() {\n return file.getAbsolutePath();\n }", "public static String getAbsoluteFilePath(String relativePath) throws URISyntaxException {\n URL fileResource = BCompileUtil.class.getClassLoader().getResource(relativePath);\n String pathValue = \"\";\n if (null != fileResource) {\n Path path = Paths.get(fileResource.toURI());\n pathValue = path.toAbsolutePath().toString();\n }\n return pathValue;\n }", "public static String downloadDir() {\n\n String downloads = stringValue(\"treefs.downloads\");\n if(isNullOrEmpty(downloads)) {\n // default home location\n downloads = home() + File.separator + \"downloads\";\n } else {\n downloads = home() + File.separator + downloads;\n }\n\n System.out.println(\"downloadDir=\" + downloads);\n return downloads;\n }", "public Path getRepositoryBaseDir();", "public String getPathToJarFolder(){\n Class cls = ReadWriteFiles.class;\r\n ProtectionDomain domain = cls.getProtectionDomain();\r\n CodeSource source = domain.getCodeSource();\r\n URL url = source.getLocation();\r\n try {\r\n URI uri = url.toURI();\r\n path = uri.getPath();\r\n \r\n // get path without the jar\r\n String[] pathSplitArray = path.split(\"/\");\r\n path = \"\";\r\n for(int i = 0; i < pathSplitArray.length-1;i++){\r\n path += pathSplitArray[i] + \"/\";\r\n }\r\n \r\n return path;\r\n \r\n } catch (URISyntaxException ex) {\r\n LoggingAspect.afterThrown(ex);\r\n return null;\r\n }\r\n }", "public String getBasename()\n {\n // Default implementation: getBasename of path \n return _nodeVRL.getBasename(); \n }", "public java.lang.String getBackupName() {\n return backupName;\n }", "public static String getBaseDir() {\r\n Path currentRelativePath = Paths.get(System.getProperty(\"user.dir\"));\r\n return currentRelativePath.toAbsolutePath().toString();\r\n }", "public java.lang.String getBackupId() {\n java.lang.Object ref = backupId_;\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 backupId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getBackupId() {\n java.lang.Object ref = backupId_;\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 backupId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getBackupId() {\n java.lang.Object ref = backupId_;\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 backupId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getBackupId() {\n java.lang.Object ref = backupId_;\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 backupId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public File getApplicationPath()\n {\n return validateFile(ServerSettings.getInstance().getProperty(ServerSettings.APP_EXE));\n }", "public String getBaseDirectoryName() {\n return mBaseDirectoryName;\n }", "public String getRelativeFolderPath() {\r\n return relativeFolderPath;\r\n }", "public String getBundleDir()\n {\n if ( bundleDir != null )\n {\n bundleDir = cleanBundleDir( bundleDir );\n }\n return bundleDir;\n }", "edu.usfca.cs.dfs.StorageMessages.BackUp getBackup();", "public String getBlockFileDirectoryFull() {\r\n return dataDirectory + blockFileDirectory;\r\n }", "public final String getPathDescription()\n {\n if (tryGetHost() == null)\n {\n return getCanonicalPath();\n } else\n {\n if (tryGetRsyncModule() == null)\n {\n return tryGetHost() + HOST_FILE_SEP + getPath();\n } else\n {\n return tryGetHost() + HOST_FILE_SEP + tryGetRsyncModule() + HOST_FILE_SEP\n + getPath();\n }\n }\n }", "public String getNabtoResourceDirectory() {\n return nabtoResourceDirectory.getAbsolutePath();\n }", "public static String createDownloadDirectory() {\n \tvar downloadDirectory = Configuration.toString(\"downloadDirectory\");\n \tif (downloadDirectory == null) {\n \t\tdownloadDirectory = \"../../Downloads\";\n \t}\n return downloadDirectory;\n }", "public static String getPath() { return Objects.requireNonNull(Bukkit.getServer().getPluginManager().getPlugin(\"Catacombs\"))\n .getDataFolder().getAbsolutePath(); }", "String getAbsolutePathWithinSlingHome(String relativePath);", "public IStatus prepareDeployDirectory(IPath deployPath);", "public String getAvailablePath() {\n String path = getPath();\n if (isCut()) {\n path = getCutPath();\n }\n if (isCompressed()) {\n path = getCompressPath();\n }\n if (isToSandboxPath()) {\n path = getSandboxPath();\n }\n if (isOriginal()) {\n path = getOriginalPath();\n }\n if (isWatermarkPath()) {\n path = getWatermarkPath();\n }\n return path;\n }", "public String getDestLocation() {\r\n return this.destPath.getText();\r\n }", "public final String getPath() {\n\t\treturn this.path.toString();\n\t}", "String getPath();", "String getPath();", "String getPath();", "String getPath();", "String getPath();", "public String getPath() {\n String result = \"\";\n Directory curDir = this;\n // Keep looping while the current directories parent exists\n while (curDir.parent != null) {\n // Create the full path string based on the name\n result = curDir.getName() + \"/\" + result;\n curDir = (Directory) curDir.getParent();\n }\n // Return the full string\n result = \"/#/\" + result;\n return result;\n }", "public String pathToSave() {\n String path;\n File folder;\n do {\n System.out.print(\"Introduce la ruta en la que quieres guardar el fichero(separando directorios por guiones: directorio1-directorio2-directorio3): \");\n path = Utils.getString();\n path = String.valueOf(System.getProperty(\"user.dir\")).substring(0, 2) + \"\\\\\" + path.replace('-', '\\\\');\n folder = new File(path);\n if (!folder.exists()) {\n System.out.println(\"El directorio introducido no existe intentalo de nuevo...\");\n } else {\n if (!folder.isDirectory()) {\n System.out.println(\"Eso no es un directorio intentalo de nuevo...\");\n }\n }\n } while (!folder.exists() && !folder.isDirectory());\n return path;\n }", "protected String path() {\n return path(getName());\n }", "public File getBaseDirectoryPath() {\n return mBaseDirectoryPath;\n }", "public String getClassPath(Object ClassObject) {\n try {\n String temp = null;\n temp = new File(ClassObject.getClass().getProtectionDomain().getCodeSource().getLocation().getPath()).getParent();\n temp = URLDecoder.decode(temp, \"UTF-8\");\n return temp;\n } catch (Exception e) {\n return \"\";\n }\n }", "public String getPath() {\n\t\treturn file.getPath();\n\t}", "public static String GetvDefaultBilibiliSavePath(Context ctx){\n return GetAppDataPathExternal(ctx);\n }", "public String getPath() {\n return (path == null || path.equals(\"\")) ? \"/\" : path;\n }", "public String getLocationPath();", "public static void backupToFile(String filePath) throws DatabaseWrapperOperationException {\r\n \t\t// create temporary directory which includes backup files\r\n \t\tString tempDirName = java.util.UUID.randomUUID().toString();\r\n \t\tFile tempDir = new File(System.getProperty(\"user.home\") + File.separator, tempDirName);\r\n \t\tif (!tempDir.exists() && !tempDir.mkdir()) {\r\n \t\t\tLOGGER.error(\"Could not create temp directory\");\r\n \t\t}\r\n \t\r\n \t\t// backup home directory\r\n \t\tFile tempAppDataDir = new File(tempDir.getPath());\r\n \t\tFile sourceAppDataDir = new File(FileSystemLocations.getActiveHomeDir());\r\n \t\ttry {\r\n \t\t\tString excludeRegex = LOCK_FILE_REGEX + REGEX_OR + DATABASE_FILE_REGEX; \r\n \t\t\tFileSystemAccessWrapper.copyDirectory(sourceAppDataDir, tempAppDataDir, excludeRegex);\r\n \t\t} catch (IOException e) {\r\n \t\t\tthrow new DatabaseWrapperOperationException(DBErrorState.ERROR_DIRTY_STATE,e);\r\n \t\t}\r\n \t\r\n \t\t// backup database to file\r\n \t\ttry (Statement statement = ConnectionManager.getConnection().createStatement()){\t\t\t\t\r\n \t\t\tstatement.executeUpdate(BACKUP_TO + \"'\" + tempDir.getPath() + File.separatorChar + FileSystemLocations.DATABASE_TO_RESTORE_NAME + \"'\");\r\n \t\t} catch (SQLException e) {\r\n \t\t\tthrow new DatabaseWrapperOperationException(DBErrorState.ERROR_DIRTY_STATE,e);\r\n \t\t}\r\n \t\r\n \t\t// zip the whole temp folder\r\n \t\tFileSystemAccessWrapper.zipFolderToFile(tempDir.getPath(), filePath);\r\n \t\r\n \t\t// delete temp folder\r\n \t\tFileSystemAccessWrapper.deleteDirectoryRecursively(tempDir);\r\n \t}", "public File getBasedir()\n {\n return basedir;\n }", "public String getBaseDirectory()\n {\n return m_baseDirectory;\n }", "private static String toAbsPathStr(String relPath, FileSystem fs) {\n String retPath = \"\";\n Directory tmpDir = (Directory) fs.checkPath(relPath, \"directory\");\n while (!tmpDir.equals(fs.getRoot())) {\n retPath = \"/\" + tmpDir.getName() + retPath;\n tmpDir = tmpDir.getParentDirectory();\n }\n return retPath;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getBackupIdBytes() {\n java.lang.Object ref = backupId_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n backupId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getBackupIdBytes() {\n java.lang.Object ref = backupId_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n backupId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getBackupIdBytes() {\n java.lang.Object ref = backupId_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n backupId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getBackupIdBytes() {\n java.lang.Object ref = backupId_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n backupId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getResourcePath() {\n return appPathField.getText().trim();\n }", "@java.lang.Override\n public java.lang.String getBackupId() {\n java.lang.Object ref = backupId_;\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 backupId_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getBackupId() {\n java.lang.Object ref = backupId_;\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 backupId_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getBackupId() {\n java.lang.Object ref = backupId_;\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 backupId_ = s;\n return s;\n }\n }" ]
[ "0.74031746", "0.71357924", "0.7099489", "0.6468675", "0.637233", "0.6341369", "0.6019029", "0.5967921", "0.59404343", "0.5846016", "0.5835118", "0.5835118", "0.5787353", "0.5709484", "0.56999195", "0.5613891", "0.5542946", "0.55233276", "0.5520508", "0.5484122", "0.545522", "0.5442064", "0.5396998", "0.53888774", "0.5383126", "0.5378006", "0.53535134", "0.5343841", "0.5315232", "0.5289979", "0.5277569", "0.5277569", "0.5277569", "0.5277569", "0.527095", "0.52692163", "0.5265867", "0.525623", "0.52003866", "0.5190976", "0.51806176", "0.5175829", "0.5174113", "0.5171302", "0.51710117", "0.5163232", "0.5162356", "0.51583254", "0.51552886", "0.51208293", "0.5119709", "0.5119601", "0.51155055", "0.51145875", "0.511311", "0.51063544", "0.51063544", "0.51063544", "0.51063544", "0.5096779", "0.50808316", "0.5057975", "0.5055265", "0.5052654", "0.5050852", "0.5050598", "0.5045654", "0.50449866", "0.50435895", "0.5043087", "0.5041683", "0.5041024", "0.50391346", "0.5038477", "0.5037457", "0.5037457", "0.5037457", "0.5037457", "0.5037457", "0.5031778", "0.5028175", "0.5024495", "0.50240916", "0.5013176", "0.50087017", "0.5004836", "0.4996497", "0.49924332", "0.499115", "0.49882346", "0.49846768", "0.49814948", "0.49783942", "0.49783942", "0.49783942", "0.49783942", "0.49755055", "0.49683222", "0.49683222", "0.49683222" ]
0.68038434
3
return a String with the error, in English, if the required directories aren't there or have a problem. return null if all is OK
public String verify() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getErrorMessage(){\n\t\t// check ancestor relation ships\n\t\tIPath[] paths = new IPath[ sourceFolders.size() ];\n\t\tint index = 0;\n\t\tfor( IFolder folder : sourceFolders ){\n\t\t\tIPath path = linkedFolders.get( folder );\n\t\t\tif( path == null )\n\t\t\t\tpath = folder.getLocation();\n\t\t\tpaths[ index++ ] = path;\n\t\t}\n\t\t\n\t\tfor( int i = 0; i < paths.length; i++ ){\n\t\t\tfor( int j = 0; j < paths.length; j++ ){\n\t\t\t\tif( i != j ){\n\t\t\t\t\tif( paths[i].isPrefixOf( paths[j] )){\n\t\t\t\t\t\treturn \"Source folders must not be nested: '\" +\n\t\t\t\t\t\t\tsourceFolders.get(i).getProjectRelativePath().toOSString() + \"' and '\" +\n\t\t\t\t\t\t\tsourceFolders.get(j).getProjectRelativePath().toOSString() + \"'\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public String getWarningMessage(){\n\t\tif( sourceFolders.isEmpty() )\n\t\t\treturn \"No folders selected\";\n\t\t\n\t\tfor( IFolder folder : sourceFolders ){\n\t\t\tIPath path = linkedFolders.get( folder );\n\t\t\tif( path == null ){\n\t\t\t\tif( !folder.exists() ){\n\t\t\t\t\treturn \"Source folder does not exist: '\" + folder.getProjectRelativePath().toOSString() + \"'\";\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tFile file = path.toFile();\n\t\t\t\tif( !file.exists() ){\n\t\t\t\t\treturn \"Source folder does not exist: '\" + folder.getProjectRelativePath().toOSString() + \"'\";\n\t\t\t\t}\n\t\t\t\tif( !file.isDirectory() ){\n\t\t\t\t\treturn \"Linked source folder does not point to a directory: '\" + folder.getProjectRelativePath().toOSString() + \"'\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "java.lang.String getError();", "java.lang.String getError();", "java.lang.String getError();", "@Override\n public String getAddionalInformationMessage()\n {\n StringBuilder b = new StringBuilder();\n for(String c : failedFilepaths.toArray(new String[]{}))\n {\n b.append(c).append(\"\\n\");\n }\n return b.toString();\n }", "java.lang.String getErr();", "private String checkPath(String p, Integer line, Integer col, String msg, String source, Integer errorCode)\n\t{\n\t\tboolean result = !this.source.getNameForReporting().equals(p) &&\n\t\t\t\t\t\t !this.source.isIncludedFile(p);\n\t\t\t\t\t\t // !this.source.getCompilationUnit().getAssets().exists(p);\n\t\t\n\t\tif (result)\n\t\t{\n\t\t\treturn (new StringBuilder(\" [\")\n\t\t\t\t.append(new GeneratedCodeMarker().getMessage())).append(\": \")\n\t\t\t\t.append(new PathInfo(p).getMessage()).append(\", \")\n\t\t\t\t.append(new LineInfo(line == null ? 0 : line.intValue()).getMessage()).append(\", \")\n\t\t\t\t.append(new ColumnInfo(col == null ? 0 : col.intValue()).getMessage()).append(\"]\")\n\t\t\t\t.toString();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t}", "public String getResultingString(IDirectory toLsDir) {\r\n // get sub-directories and files\r\n String result = \"\";\r\n // Check if the path is valid\r\n if (toPrint) {\r\n // Get the sub-directories and files\r\n ArrayList<DirectoryTreeNode> contents = toLsDir.getContents();\r\n\r\n // check if contents is empty or not\r\n if (!contents.isEmpty()) {\r\n // get the names of all the sub-directories\r\n for (DirectoryTreeNode content : contents) {\r\n result += content.getName() + \"\\n\";\r\n }\r\n }\r\n // If the path is not valid then return an appropriate message\r\n } else {\r\n if (toRedirect) {\r\n System.out.println(\"Error: Cannot access path.\\n\");\r\n } else\r\n result = \"Cannot access path \\n\";\r\n }\r\n // return the result\r\n return result;\r\n }", "String getErrorsString();", "@SuppressWarnings(\"unused\")\n private String checkPathFull(String p, Integer line, Integer col, String msg, String source, Integer errorCode)\n\t{\n\t\tboolean result = !this.source.getNameForReporting().equals(p) &&\n\t\t\t\t\t\t !this.source.isIncludedFile(p);\n\t\t\t\t\t\t // !this.source.getCompilationUnit().getAssets().exists(p);\n\n\t\tif (result)\n\t\t{\n\t\t\tStringWriter misrouteInfo = new StringWriter();\n\t\t\tPrintWriter pw = new PrintWriter(misrouteInfo, true);\n\t\t\tpw.println(new ErrMsgBug().getMessage());\n\t\t\tpw.println(new PathInfo(p).getMessage());\n\t\t\tif (line != null)\n\t\t\t{\n\t\t\t\tpw.println(new LineInfo(line.intValue()).getMessage());\n\t\t\t}\n\t\t\tif (col != null)\n\t\t\t{\n\t\t\t\tpw.println(new ColumnInfo(col.intValue()).getMessage());\n\t\t\t}\n\t\t\tif (msg != null)\n\t\t\t{\n\t\t\t\tpw.println(new MessageInfo(msg).getMessage());\n\t\t\t}\n\t\t\tif (source != null)\n\t\t\t{\n\t\t\t\tpw.println(new SourceInfo(source).getMessage());\n\t\t\t}\n\t\t\tif (errorCode != null)\n\t\t\t{\n\t\t\t\tpw.println(new ErrorCodeInfo(errorCode.intValue()).getMessage());\n\t\t\t}\n\t\t\tnew Exception(new StackTraceInfo().getMessage()).printStackTrace(pw);\n\t\t\treturn misrouteInfo.toString();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\n public String getMessage() {\n return \"File not found.\";\n }", "@Test\n\tpublic void testInvalidDirectory() {\n\t\tString invalidDirectory = \"\";\n\t\tString[] args = { invalidDirectory, \"debug\" };\n\t\tTypeFinder.main(args);\n\t\tString expected = TypeFinder.INVALID_PATH_ERROR_MESSAGE + FileManager.lineSeparator;\n\t\tString results = errContent.toString();\n\t\tassertEquals(expected, results);\n\t}", "public String muestraListaErrores(){\r\n \tString salida;\r\n \tsalida= \"\\n\";\r\n \tif (errors.size()==0){\r\n\t \tsalida=salida+\"No hubo errores\\n\";\r\n\t \treturn salida;\r\n \t}\r\n \telse {\r\n \t\tfor(TError error: errors) {\r\n \t\t\tsalida += error + \"\\n\";\r\n \t\t}\r\n \t\treturn salida;\r\n \t}\r\n }", "static Optional<String> validate(Errors errors) {\n if (errors.hasErrors()) {\n return Optional.of(errors.getAllErrors()\n .stream()\n .map(DefaultMessageSourceResolvable::getDefaultMessage)\n .collect(Collectors.joining(\",\")));\n }\n\n return Optional.empty();\n }", "public String getErrorMsg(RETCODES retCode){\n \t\tString errorMSG = \"Some thing was wrong.\";\n \t\t\n \t\tswitch (retCode) {\n \t\tcase FILENOTFOUND:\n \t\t\terrorMSG = \"File couldn't found.\";\t\t\t\t\n \t\t\tbreak;\n \t\tcase UNKNOWNTYPE:\n \t\t\terrorMSG = \"File type doesn't supported yet.\";\n \t\t\tbreak;\n \t\tcase WRONGFILETYPE:\n \t\t\terrorMSG = \"The selected file type doesn't match the real file type.\";\n \t\t\tbreak;\n \t\tcase UNKNOWNERROR:\n \t\t\terrorMSG = \"An unknown error occured.\";\n \t\t\tbreak;\n \t\tdefault:\n \t\t\tbreak;\n \t\t}\n \t\treturn errorMSG;\n \t}", "java.lang.String getErrmsg();", "public final String getMessageErreur() {\n\t\tString messageErreur = null;\n\n\t\t// il faut que toutes les taches obligatoires soient accomplies\n\t\tNSMutableArray<I_WorkFlowItem> tachesObligatoiresAbsentes = getTachesObligatoiresAbsentes();\n\t\tif (tachesObligatoiresAbsentes.count() > 0) {\n\t\t\tmessageErreur = \"Tâches non effectuées : \";\n\t\t\tmessageErreur += \"<ul>\";\n\t\t\tfor (int i = 0; i < tachesObligatoiresAbsentes.count(); i++) {\n\t\t\t\tI_WorkFlowItem tache = tachesObligatoiresAbsentes.objectAtIndex(i);\n\t\t\t\tmessageErreur += \"<li>\";\n\t\t\t\tmessageErreur += tache.libelle();\n\t\t\t\tmessageErreur += \"</li>\";\n\t\t\t}\n\t\t\tmessageErreur += \"</ul>\";\n\t\t}\n\n\t\treturn messageErreur;\n\t}", "private String errorMessage() {\n\n StringBuilder strBuilder = new StringBuilder();\n strBuilder.append(eventBasedXorGatewayNode + \" => eventBasedXorGatewayNode \\n\");\n strBuilder.append(intermediateEvent1Node + \" => intermediateEvent1Node \\n\");\n strBuilder.append(intermediateEvent2Node + \" => intermediateEvent2Node \\n\");\n strBuilder.append(endNode1 + \" => endNode1 \\n\");\n strBuilder.append(endNode2 + \" => endNode2 \\n\");\n\n return strBuilder.toString();\n }", "public String error();", "String errorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "protected String formatErrorMessage() throws SQLException {\n \tint errCode = SQLite.extendederrcode(getConnection().getSqliteDb());\r\n \tString message = SQLite.errmsg(getConnection().getSqliteDb());\r\n\t\tString s = StringUtil.format(\"Code:{0}\\n{1}\", errCode, message);\r\n\t\treturn s;\r\n\t}", "public String getErrorPath() {\n\t\treturn null;\n\t}", "public String validate() {\n\n // validate input source\n int inputCounts = 0;\n if (!inputFiles.isEmpty())\n inputCounts++;\n if (inputDescriptor != null)\n inputCounts++;\n if (stdin)\n inputCounts++;\n if (stdinDescriptor)\n inputCounts++;\n if (customInputStream != null)\n inputCounts++;\n\n if (inputCounts == 0)\n return \"Must specify at least one input source.\";\n if (inputCounts > 1)\n return \"Please specify only one type of input source.\";\n\n\n // validate output target\n int outputCounts = 0;\n if (outputDir != null)\n outputCounts++;\n if (outputFile != null)\n outputCounts++;\n if (stdout)\n outputCounts++;\n\n if (outputCounts == 0)\n return \"Must specify an output target.\";\n if (outputCounts > 1)\n return \"Please specify only one output target.\";\n\n if (outputLang != null) {\n if (outputFile != null)\n return \"Native java/python compilation cannot be used with the --outputFile option\";\n if (stdout)\n return \"Native java/python compilation cannot be used with the --stdout option\";\n }\n\n return null;\n }", "public static String validate(JSONObject joLoc) {\r\n\t\tif (joLoc.optString( SYSTEMDIR, \"\").length() == 0) {\r\n\t\t\treturn \"Missing systemdir field\";\r\n\t\t}\r\n\t\tif (joLoc.optString( NAME, \"\").length() == 0) {\r\n\t\t\treturn \"Missing name field\";\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public String getError() {\n return error != null ? error : \"An unknown error occurred.\";\n }", "String getErrorMessage();", "String getErrorMessage();", "private String getGUIErrorMsg(long errorcode) {\n\t\tif (errorcode == 0) {\n\t\t\treturn \"This popup shouldn't have launched!\";\n\t\t} else if (errorcode == 9) {\n\t\t\treturn \"Latitude input format incorrect!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 10) {\n\t\t\treturn \"Longitude input format incorrect!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 11) {\n\t\t\treturn \"Date input format incorrect!\\nValid dates go <year>-<month>-<day>\\nValid month values are 1- 12 and valid day values are 1 - 31.\";\n\t\t} else if (errorcode == 12) {\n\t\t\treturn \"Time input format incorrect!\\nValid times go <hour>-<minute>-<second>\\nValid hour values are 0 - 23 and valid minute and second values are 0 - 59\";\n\t\t} else if (errorcode == 1) {\n\t\t\treturn \"Invalid latitude!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 2) {\n\t\t\treturn \"Invalid Longitude!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 3) {\n\t\t\treturn \"Invalid Year!\\nValid year values are \" + Integer.MIN_VALUE + \" - \" + Integer.MAX_VALUE + \".\";\n\t\t} else if (errorcode == 4) {\n\t\t\treturn \"Invalid Month!\\nValid month values are 1 - 12\";\n\t\t} else if (errorcode == 5) {\n\t\t\treturn \"Invalid Day!\\nValid day values are 1 - 31\";\n\t\t} else if (errorcode == 6) {\n\t\t\treturn \"Invalid Hour!\\nValid hour values are 0 - 23\";\n\t\t} else if (errorcode == 7) {\n\t\t\treturn \"Invalid Minute!\\nValid minute values are 0 - 59\";\n\t\t} else if (errorcode == 8) {\n\t\t\treturn \"Invalid Second!\\nValid second values are 0 - 59\";\n\t\t} \n\t\treturn \"Undefined Error Message!\";\n\t}", "java.lang.String getErrorInfo();", "java.lang.String getErrorInfo();", "java.lang.String getErrorInfo();", "java.lang.String getErrorInfo();", "public String getErrorText()\n {\n if ( null == m_errorMsg )\n {\n StringBuilder buf = new StringBuilder( 400 );\n\n // Error checking should never happen if the collection of existing\n // names is null or empty, but take care anyway.\n if (!(null == m_existingElems || m_existingElems.size() < 1))\n {\n Iterator iter = m_existingElems.iterator();\n boolean first = true;\n while ( iter.hasNext())\n {\n if ( !first )\n buf.append( \", \" );\n buf.append( iter.next().toString());\n first = false;\n }\n }\n\n String [] args = new String[]\n {\n buf.toString()\n };\n String pattern = ms_res.getString( \"uniqueListConstraintError\" );\n m_errorMsg = MessageFormat.format( pattern, args );\n }\n return m_errorMsg;\n }", "@Override\n\tpublic String getErrorPath() {\n\t\treturn null;\n\t}", "public static String getErrorDescription(int errCode) {\n switch (errCode) {\n case ERROR_PACKET_HEADER:\n return \"Invalid packet header\";\n case ERROR_PACKET_TYPE:\n return \"Invalid packet type\";\n case ERROR_PACKET_LENGTH:\n return \"Invalid packet length\";\n case ERROR_PACKET_ENCODING:\n return \"Unsupported packet encoding\";\n case ERROR_PACKET_PAYLOAD:\n return \"Invalid packet payload\";\n case ERROR_PACKET_CHECKSUM:\n return \"Invalid checksum\";\n case ERROR_PACKET_ACK:\n return \"Invalid ACL sequence\";\n case ERROR_PROTOCOL_ERROR:\n return \"Protocol error\";\n case ERROR_PROPERTY_READ_ONLY:\n return \"Property is read-only\";\n case ERROR_PROPERTY_WRITE_ONLY:\n return \"Property is write-only\";\n case ERROR_PROPERTY_INVALID_ID:\n return \"Invalid/Unrecognized property key\";\n case ERROR_PROPERTY_INVALID_VALUE:\n return \"Invalid propery value\";\n case ERROR_PROPERTY_UNKNOWN_ERROR:\n return \"Unknown property error\";\n case ERROR_COMMAND_INVALID:\n return \"Invalid/Unsupported command\";\n case ERROR_COMMAND_ERROR:\n return \"Command error\";\n case ERROR_UPLOAD_TYPE:\n return \"Invalid upload type\";\n case ERROR_UPLOAD_LENGTH:\n return \"Invalid upload length\";\n case ERROR_UPLOAD_OFFSET_OVERLAP:\n return \"Upload offset overlap\";\n case ERROR_UPLOAD_OFFSET_GAP:\n return \"Upload offset gap\";\n case ERROR_UPLOAD_OFFSET_OVERFLOW:\n return \"Upload offset overflow\";\n case ERROR_UPLOAD_FILE_NAME:\n return \"Invalid uploaded filename\";\n case ERROR_UPLOAD_CHECKSUM:\n return \"Invalid uploaded checksum\";\n case ERROR_UPLOAD_SAVE:\n return \"Unable to save uploaded file\";\n case ERROR_GPS_EXPIRED:\n return \"GPS fix expired\";\n case ERROR_GPS_FAILURE:\n return \"GPS failure\";\n }\n if ((errCode >= ERROR_INTERNAL_ERROR_00) && (errCode <= ERROR_INTERNAL_ERROR_0F)) {\n return \"Internal error\";\n }\n return \"Unknown [\" + StringTools.toHexString(errCode, 16) + \"]\";\n }", "private String errors() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(impossibleLapTime());\n\t\tsb.append(multipleStartTimes());\n\t\treturn sb.toString();\n\t}", "public String validate() {\n if (rootName == null) {\n return \"Missing root name.\";\n }\n return null;\n }", "private String getErrorWithDetails(\n String errorMessage,\n String subsystemName,\n String yarnCgroupPath) {\n return String.format(\"%s Subsystem:%s Mount points:%s User:%s Path:%s \",\n errorMessage, subsystemName, mtabFile, System.getProperty(\"user.name\"),\n yarnCgroupPath);\n }", "public static String getLastLrcErrorMsg() {\n String str = new String(mLrcErrorMsg);\n return str;\n }", "private String getErrorString() {\n\t\treturn \"GUID:ERROR:\" + mErrors[0][0]\n\t\t + \":\" + mErrors[1][0]\n\t\t + \":\" + mErrors[2][0]\n\t\t + \":\" + mErrors[3][0];\n\t}", "public String getErrorString()\r\n\t{\r\n\t\t\r\n\t\treturn ERROR_STRING;\r\n\t}", "java.util.List<WorldUps.UErr> \n getErrorList();", "@Override\r\n public String getMessage() {\r\n return ErrorMessage.STATUS_FORMATTING_IN_FILE_ERROR;\r\n }", "public static String getErrorText(int errorCode) {\n String message;\n switch (errorCode) {\n case SpeechRecognizer.ERROR_AUDIO:\n message = \"Audio recording error\";\n break;\n case SpeechRecognizer.ERROR_CLIENT:\n message = \"Client side error\";\n break;\n case SpeechRecognizer.ERROR_INSUFFICIENT_PERMISSIONS:\n message = \"Insufficient permissions\";\n break;\n case SpeechRecognizer.ERROR_NETWORK:\n message = \"Network error\";\n break;\n case SpeechRecognizer.ERROR_NETWORK_TIMEOUT:\n message = \"Network timeout\";\n break;\n case SpeechRecognizer.ERROR_NO_MATCH:\n message = \"No match\";\n break;\n case SpeechRecognizer.ERROR_RECOGNIZER_BUSY:\n message = \"RecognitionService busy\";\n break;\n case SpeechRecognizer.ERROR_SERVER:\n message = \"error from server\";\n break;\n case SpeechRecognizer.ERROR_SPEECH_TIMEOUT:\n message = \"No speech input\";\n break;\n default:\n message = \"Didn't understand, please try again.\";\n break;\n }\n return message;\n }", "@Override\r\n public String toString() {\r\n String s = \"Unknown Error\";\r\n String message = getLocalizedMessage();\r\n return (message != null) ? (message) : s;\r\n }", "@Override\r\n\tpublic String getErrorPath() {\n\t\treturn PATH;\r\n\t}", "String getGetErrorMessage();", "public String getError(String code) {\r\n\t\tswitch (code) {\r\n\t\tcase \"01\":\r\n\t\t\treturn Const.MSG_LOGIN;\r\n\t\tcase \"02\":\r\n\t\t\treturn Const.MSG_NO_FREE_DEVICES;\r\n\t\tcase \"03\":\r\n\t\t\treturn Const.MSG_SEND_EMAIL_TO;\r\n\t\tcase \"11\":\r\n\t\t\treturn \"Не указаны адрес электронной почты или тело сообщения.\";\r\n\t\t\t// case \"14\":\r\n\t\t\t// return \"Проверьте адрес электронной почты.\\n\"\r\n\t\t\t// + \"На него не удалось отправить подтверждающее письмо.\";\r\n\t\tdefault:\r\n\t\t\treturn activationRequest ? Const.MSG_SEND_EMAIL_TO\r\n\t\t\t\t\t: Const.MSG_SEND_EMAIL_TO_MSG;\r\n\t\t}\r\n\t}", "public String GetErro()\r\n { \r\n for (Object erro : erros) {\r\n this.strErro += erro.toString() + \"\\n\";\r\n }//for (Object erro : erros) {\r\n \r\n return this.strErro;\r\n }", "private String getRootErrorMessage(Exception e) {\n\t\tString errorMessage = \"Falha ao realizar ação em mesa\";\r\n\t\tif (e == null) {\r\n\t\t\t// This shouldn't happen, but return the default messages\r\n\t\t\treturn errorMessage;\r\n\t\t}\r\n\r\n\t\t// Start with the exception and recurse to find the root cause\r\n\t\tThrowable t = e;\r\n\t\twhile (t != null) {\r\n\t\t\t// Get the message from the Throwable class instance\r\n\t\t\terrorMessage = t.getLocalizedMessage();\r\n\t\t\tt = t.getCause();\r\n\t\t}\r\n\t\t// This is the root cause message\r\n\t\treturn errorMessage;\r\n\t}", "public java.lang.String getErrorMsg() {\r\n return localErrorMsg;\r\n }", "String getWarningsString();", "public String getErrorMessage() {\n\t\tString msg=null;\n\t\tWebElement errmsg=driver.findElement(err);\n\t\tif(errmsg.isDisplayed())\n\t\tmsg=errmsg.getText();\n\t\treturn msg;\n\t}", "String getErrorMessage(List<String> arr) {\n\t\tString output = \"\";\n\t\tfor (int i = 0; i < arr.size(); i++)\n\t\t\toutput += \"The field \" + arr.get(i) + \" is empty.,\";\n\n\t\treturn output;\n\t}", "public String getError() {\r\n if (scriptError == null) return \"\";\r\n return scriptError;\r\n }", "public String getError() {\n\treturn mistake;\n }", "public java.lang.String getError() {\n return localError;\n }", "public java.lang.String getError() {\n return localError;\n }", "public java.lang.String getError() {\n return localError;\n }", "@Override\r\n\tprotected String getErrorInfo(String str, String cmds) {\n\t\treturn null;\r\n\t}", "public String printInvalidSaveCollectionSheetReasons() {\n if (invalidSaveCollectionSheetReasonsExtended != null) {\n final StringBuilder builder = new StringBuilder();\n final String newline = System.getProperty(\"line.separator\");\n\n builder.append(\"Input Errors Found:\");\n builder.append(newline);\n for (String ire : invalidSaveCollectionSheetReasonsExtended) {\n builder.append(ire);\n builder.append(newline);\n }\n\n return builder.toString();\n }\n\n if (invalidSaveCollectionSheetReasons != null) {\n final StringBuilder builder = new StringBuilder();\n final String newline = System.getProperty(\"line.separator\");\n\n builder.append(\"Input Errors Found:\");\n builder.append(newline);\n for (InvalidSaveCollectionSheetReason ir : invalidSaveCollectionSheetReasons) {\n builder.append(ir);\n builder.append(newline);\n }\n\n return builder.toString();\n }\n\n return null;\n }", "private <RT> String CompileErrorsFromResult(PlayFabErrors.PlayFabResult<RT> result)\n {\n if (result == null || result.Error == null)\n {\n return null;\n }\n\n String errorMessage = \"\";\n if (result.Error.errorMessage != null)\n {\n errorMessage += result.Error.errorMessage;\n }\n if (result.Error.errorDetails != null)\n {\n for (Map.Entry<String, List<String>> pair : result.Error.errorDetails.entrySet())\n {\n for (String msg : pair.getValue())\n {\n errorMessage += \"\\n\" + pair.getKey() + \": \" + msg;\n }\n }\n }\n return errorMessage;\n }", "protected void check() throws IOException, ServletException {\n if(value.length()==0)\n error(\"please set the path to the Rhapsody Project !\");\n else\n if(value.length()<4)\n warning(\"isn't the path too short?\");\n else {\n \tFile file = new File(value);\n \tif (file.isDirectory()) {\n \t\terror(\"you entered a directory please select the *.rpy file !\");\n \t} else \n \t\t//TODO add more checks\n \t\tok();\n }\n\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate String getInvalidMsg() {\n\t\t\n\t\tString retMsg = null;\n\t\t\n\t\tfinal HashSet<Integer>[] pOrders = new HashSet[] {\n\t\t\tnew HashSet<Integer>(8),\t//channel 0\n\t\t\tnew HashSet<Integer>(8),\t//channel 1\n\t\t\tnew HashSet<Integer>(8),\t//channel 2\n\t\t\tnew HashSet<Integer>(8)\t\t//channel 3\n\t\t};\n\t\t\n\t\tfor( int i = 0; i < getTableModel().getRowCount(); i++ ) {\n\t\t\tVideoEntry ve = getTableModel().getRowAt(i);\n\t\t\t\n\t\t\tfor( int j = 0; j < ve.getPlayOrder().length; j++ ) {\n\t\t\t\tif( pOrders[ve.getChannel()].contains(ve.getPlayOrder()[j]))\n\t\t\t\t\treturn \"Duplicate play order found for the \" + UIUtils.CRLF\n\t\t\t\t\t\t+ \" theme '\" + ve.getFileName()\n\t\t\t\t\t\t+ \"', choose a different play order.\";\n\n\t\t\t\tpOrders[ve.getChannel()].add( ve.getPlayOrder()[j] );\n\t\t\t}\n\n\t\t}\n\t\t\n\t\tif( getTableModel().getRowCount() <= 0 )\n\t\t\tretMsg = \"At least one theme file must be in this play list\";\n\t\t\n\t\treturn retMsg;\n\t}", "@Override\n\tpublic String getMessage()\n\t{\n\t\treturn errMessage;\n\t}", "public String preValidar() {\n\t\tString errores = \"\";\r\n\t\t\r\n\t\tif (email == null || email.equals(\"\")) {\r\n\t\t\terrores = errores + \"indique el e-mail</br>\";\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\tif(!isValidEmailAddress()){\r\n\t\t\t\terrores = errores + \"indique un e-mail válido</br>\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (contrasenya == null || contrasenya.equals(\"\")) {\r\n\t\t\terrores = errores + \"indique la contraseña</br>\";\r\n\t\t} else {\r\n\t\t\tif(!isValidPwd()){\r\n\t\t\t\terrores = errores + \"la contraseña debe contener\"\r\n\t\t\t\t\t\t+ \" al menos 8 caracteres, y estos deben ser\"\r\n\t\t\t\t\t\t+ \"alfanuméricos</br>\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn errores;\r\n\t}", "void showErrorMsg(String string);", "public String getErrorString()\n\t{\n\t\treturn errorString;\n\t}", "private void showErrors() {\n \t\tfor (Iterator it = this.errors.iterator(); it.hasNext();) {\n \t\t\ttry {\n \t\t\t\tObject err = it.next();\n \t\t\t\t\n \t\t\t\t/* errors can be represented by PositionedError, UnpositionedError or String */\n \t\t\t\tif (err instanceof PositionedError) {\n \t\t\t\t\tPositionedError error = (PositionedError)err;\n \t\t\t\t\tTokenReference token = error.getTokenReference();\n \t\n \t\t\t\t log.debug(\"file: \" + token.getFile() + \", \" + \"line: \" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n \t\t\t\t\t\t\t+ token.getLine() + \", \" + \"path: \" //$NON-NLS-1$//$NON-NLS-2$\n \t\t\t\t\t\t\t+ token.getPath());\n \n \t\t\t\t\tIResource resource = ProjectProperties.findResource(token\n \t\t\t\t\t\t\t.getPath().getAbsolutePath(), currentProject);\n \t\t\t\t\t\n \t\t\t\t\tIMarker marker = null;\n \t\t\t\t\tif (resource != null) {\n \t\t\t\t\t\tmarker = resource.createMarker(IMarker.PROBLEM);\n \t\t\t\t\t\tif (token.getLine() > 0) {\n \t\t\t\t\t\t\tmarker.setAttribute(IMarker.LINE_NUMBER, token.getLine());\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\telse {\n \t\t\t\t\t\t// for the cases, when error refers to a generated piece of code\n \t\t\t\t\t\tmarker = currentProject.createMarker(IMarker.PROBLEM);\n \t\t\t\t\t}\n \t\t\t\t\tmarker.setAttribute(IMarker.MESSAGE, error\n \t\t\t\t\t\t\t.getFormattedMessage().getMessage());\n \t\t\t\t\tmarker.setAttribute(IMarker.SEVERITY, new Integer(\n \t\t\t\t\t\t\tIMarker.SEVERITY_ERROR));\n \t\t\t\t}\n \t\t\t\telse { /* create unpositioned error at the scope of the project */\t\t\t\t\t\n \t\t\t\t\tString msg;\n \t\t\t\t\tif (err instanceof UnpositionedError) {\n \t\t\t\t\t\tmsg = ((UnpositionedError)err).getFormattedMessage().getMessage();\n \t\t\t\t\t}\n \t\t\t\t\telse {\n \t\t\t\t\t\tmsg = (String)err; // for internal errors\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\tIMarker marker = currentProject.createMarker(IMarker.PROBLEM);\n \t\t\t\t\tmarker.setAttribute(IMarker.MESSAGE, msg);\n \t\t\t\t\tmarker.setAttribute(IMarker.SEVERITY, new Integer(IMarker.SEVERITY_ERROR));\n \t\t\t\t}\n \t\t\t} \n \t\t\tcatch (Exception e) {\n\t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t}\n \t}", "private String notFound() {\n\t\tquestionBot.put(owner.id(), \"Desculpe, não entendi sua resposta\");\n\t\treturn buildMessage(questionBot.get(owner.id()));\n\t}", "@Override\n protected void adicionarLetrasErradas() {\n }", "public String errorDescription()\n {\n return edma_errorDesc;\n }", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();" ]
[ "0.7493919", "0.6996906", "0.6471187", "0.6471187", "0.6471187", "0.6311814", "0.6246552", "0.61233115", "0.610127", "0.60741645", "0.6049243", "0.6025466", "0.5967857", "0.59193337", "0.59158844", "0.59142214", "0.5894522", "0.5893347", "0.5860843", "0.58049726", "0.58033115", "0.5803082", "0.5803082", "0.5803082", "0.5803082", "0.5803082", "0.5803082", "0.5803082", "0.5803082", "0.5803082", "0.5803082", "0.5803082", "0.5803082", "0.5785211", "0.5773715", "0.57691103", "0.57663137", "0.57649475", "0.57155114", "0.57155114", "0.5715401", "0.5678219", "0.5678219", "0.5678219", "0.5678219", "0.56624883", "0.56537676", "0.56450313", "0.5624954", "0.5609115", "0.5587882", "0.5541735", "0.55119216", "0.54820293", "0.54651153", "0.5461049", "0.54579705", "0.5453679", "0.54436994", "0.544107", "0.54340154", "0.54042244", "0.5403581", "0.53904486", "0.5375623", "0.5330674", "0.5329342", "0.5323374", "0.532247", "0.5317489", "0.5317489", "0.5317489", "0.5313268", "0.5286994", "0.5284256", "0.5275229", "0.52700466", "0.5267337", "0.5264971", "0.525582", "0.52466905", "0.5246488", "0.5240373", "0.52105254", "0.5199821", "0.5198848", "0.5198848", "0.5198848", "0.5198848", "0.5198848", "0.5198848", "0.5198848", "0.5198848", "0.5198848", "0.5198848", "0.5198848", "0.5198848", "0.5198848", "0.5198848", "0.5198848", "0.5198848" ]
0.0
-1
Sets the "items" attribute with a collection of Businessentityaddress entities that are retrieved from Addresstype?cap_first and returns the navigation outcome.
public void navigateBusinessentityaddressList() { if (this.getSelected() != null) { FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put("Businessentityaddress_items", this.getSelected().getBusinessentityaddressList()); } menuController.setPageLink("/businessentityaddress/index"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@ApiModelProperty(value = \"The items that are setup to rebill\")\r\n public List<AutoOrderItem> getItems() {\r\n return items;\r\n }", "@WebMethod(operationName=\"ship_items\")\n public String shipItems(@WebParam(name=\"items\")Item[] items, @WebParam(name=\"address\")Address address)\n throws UnknownAddressException, UnknownProductException;", "public Collection<Address> getAddressCollection(){\r\n\t\treturn addressCollection;\r\n\t}", "public void setItems(Item items) {\n this.items = items;\n }", "public void setItems(ItemList items) {\r\n this.items = items;\r\n }", "public void setItems(nl.webservices.www.soap.GCRItem[] items) {\n this.items = items;\n }", "public Item getItems() {\n return items;\n }", "public void setAddressCollection(Collection<Address> addressCollection){\r\n\t\tthis.addressCollection = addressCollection;\r\n\t}", "public Item[] getItems()\n {\n return items;\n }", "public DeliveryParcelDraftBuilder plusItems(\n @Nullable final com.commercetools.importapi.models.orders.DeliveryItem... items) {\n if (this.items == null) {\n this.items = new ArrayList<>();\n }\n this.items.addAll(Arrays.asList(items));\n return this;\n }", "@Transactional\r\n\tpublic List<UIDataModelEntity>getLinks(int startItem){\r\n\t\tPageRequest page = new PageRequest(startItem, PAGE_OFFSET);\r\n\t\tPage<Item> items = itemRepo.findAll(page);\r\n\t\tList<UIDataModelEntity> uiEntitiesList = new ArrayList<>();\r\n\t\tfor(Item item : items){\r\n\t\t\titem.getItemLinks().size();\r\n\t\t\tSet<ItemLink> links = item.getItemLinks();\r\n\t\t\tCategory category = item.getCategory();\r\n\t\t\tUIDataModelEntity modelEntity = new UIDataModelEntity();\r\n\t\t\tmodelEntity.setCategoryName(category.getName());\r\n\t\t\tmodelEntity.setCompanyName(item.getName());\r\n\t\t\tlinks.stream().forEach(e->{modelEntity.getGoogleLinks().add(e.getLink());});\r\n\t\t\tuiEntitiesList.add(modelEntity);\r\n\t\t}\r\n\t\t\r\n\t\treturn uiEntitiesList;\r\n\t\t\r\n\t}", "@XmlElementWrapper(name = \"addressLists\")\r\n\t@XmlElement(name = \"addressList\")\r\n\tpublic Collection<RefAddressModel> getAddressList()\r\n\t{\r\n\t\treturn addressList;\r\n\t}", "public void setItems(Item[] itemsIn)\n {\n items = itemsIn;\n }", "public DeliveryParcelDraftBuilder items(\n @Nullable final java.util.List<com.commercetools.importapi.models.orders.DeliveryItem> items) {\n this.items = items;\n return this;\n }", "@ApiImplicitParams(\n @ApiImplicitParam(name = \"authorization\", value = \"${userController.authorizationHeader.description}\", paramType = \"header\"))\n @GetMapping(path = \"/{id}/addresses\", produces = {MediaType.APPLICATION_XML_VALUE, MediaType.APPLICATION_JSON_VALUE})\n public CollectionModel<AddressesRest> getAddresses(@PathVariable String id) {\n List<AddressesRest> returnValue = new ArrayList<>();\n //core business logic is this one line where we get addresses.\n List<AddressDto> addressDtoList = addressService.getAddresses(id);\n if (addressDtoList != null && !addressDtoList.isEmpty()) {\n ModelMapper modelMapper = new ModelMapper();\n Type listType = new TypeToken<List<AddressesRest>>() {\n }.getType();\n returnValue = modelMapper.map(addressDtoList, listType);\n for (AddressesRest addressesRest : returnValue) {\n //creates link for each object in the returnValue List . Loop through each and set the selflink\n Link selfLink = WebMvcLinkBuilder.linkTo(WebMvcLinkBuilder.methodOn(UserController.class)\n .getSingleAddress(id, addressesRest.getAddressId()))\n .withSelfRel();\n addressesRest.add(selfLink);\n }\n }\n // this logic with WebMvcLinkBuilder is only to return additional values ALONG with the actual response for HATEOS Support.\n Link userLink = WebMvcLinkBuilder.linkTo(UserController.class).slash(id).withRel(\"user\");\n Link selfLink = WebMvcLinkBuilder.linkTo(WebMvcLinkBuilder.methodOn(UserController.class).getAddresses(id))\n .withSelfRel();\n // if we didn't need the extra links, could just do return returnValue;\n return CollectionModel.of(returnValue, userLink, selfLink);\n }", "@Override\n\tpublic List<ItemBoundary> getAllItems(String userSpace, String userEmail) {\n\t\treturn items.values().stream().map(itemEntityConverter::toBoundary).collect(Collectors.toList());\n\t}", "private void loadAddresses() {\n isLoading = false;\n isLastPage = false;\n mAdapter.clearAll();\n\n // Fetch items starting from the first\n loadMoreAddresses();\n }", "@Override\n\tpublic List<Address> FindAllAddress() {\n\t\treturn ab.FindAll();\n\t}", "public @NotNull Set<Item> findAllItems() throws BazaarException;", "public List<SalesOrderItem> fetchItem()\r\n throws ODataException\r\n {\r\n if (erpConfigContext == null) {\r\n throw new ODataException(ODataExceptionType.OTHER, \"Failed to fetch related objects of type SalesOrderItem.\", new IllegalStateException(\"Unable to execute OData query. The entity was created locally without an assigned ERP configuration context. This method is applicable only on entities which were retrieved or created using the OData VDM.\"));\r\n }\r\n final StringBuilder odataResourceUrl = new StringBuilder(getEntityCollection());\r\n odataResourceUrl.append(\"(\");\r\n odataResourceUrl.append(\"SalesOrder=\");\r\n odataResourceUrl.append(ODataTypeValueSerializer.of(EdmSimpleTypeKind.String).toUri(salesOrder));\r\n odataResourceUrl.append(\")/\");\r\n odataResourceUrl.append(\"to_Item\");\r\n final ODataQueryBuilder builder = ODataQueryBuilder.withEntity(getEndpointUrl(), odataResourceUrl.toString());\r\n final ODataQuery query = builder.build();\r\n final ErpEndpoint erpEndpoint = new ErpEndpoint(erpConfigContext);\r\n final ODataQueryResult result = query.execute(erpEndpoint);\r\n final List<SalesOrderItem> entityList = result.asList(SalesOrderItem.class);\r\n for (SalesOrderItem entity: entityList) {\r\n entity.setErpConfigContext(erpConfigContext);\r\n }\r\n return entityList;\r\n }", "public void setItems(ArrayList<Item> items) {\n\t\tthis.items = items;\n\t}", "public void setItems (java.util.Set<com.jspgou.cms.entity.OrderItem> items) {\r\n\t\tthis.items = items;\r\n\t}", "public PaymentRequest setItems(List items) {\r\n this.items = items;\r\n return this;\r\n }", "public DeliveryParcelDraftBuilder items(\n @Nullable final com.commercetools.importapi.models.orders.DeliveryItem... items) {\n this.items = new ArrayList<>(Arrays.asList(items));\n return this;\n }", "public ArrayList<Address> getAddresses() {\n return addresses;\n }", "@Override\n public void abreIntentEnderecos(ArrayList lstAddresses) {\n Intent openShowAddressActivity = new Intent(MainActivity.this, ShowAddressesActivity.class);\n openShowAddressActivity.putStringArrayListExtra(\"addresses_list\", lstAddresses);\n startActivity(openShowAddressActivity);\n }", "public String getAddresses()\n {\n return _addresses;\n }", "@Nonnull\n public List<DeliveryItem> getItems() {\n return items;\n }", "@ApiModelProperty(value = \"Array of Receipt Items\")\n @JsonProperty(\"items\")\n public List<ReceiptItem> getItems() {\n return items;\n }", "public void setAddresses(List<Address> addresses) {\r\n\r\n this.addresses = addresses;\r\n\r\n }", "@RequestMapping(method=RequestMethod.PUT, value = \"/item\", produces = \"application/json\")\n public void setItems(ArrayList<Item> itemsToSet)\n {\n this.itemRepository.setItems(itemsToSet);\n }", "public ArrayList<Collectable> getItems(){\n return items;\n }", "public void setItems(String items)\n {\n _items = items;\n }", "public Item[] getItems() {\n/* 3068 */ if (this.vitems != null) {\n/* 3069 */ return this.vitems.getAllItemsAsArray();\n/* */ }\n/* 3071 */ return emptyItems;\n/* */ }", "public nl.webservices.www.soap.GCRItem[] getItems() {\n return items;\n }", "public java.util.Set<com.jspgou.cms.entity.OrderItem> getItems () {\r\n\t\treturn items;\r\n\t}", "@Override\r\n\tpublic ArrayList<BooksClass> readItem(String address) {\n\t\treturn null;\r\n\t}", "public List<ReturnItem> getItems() {\n return (List<ReturnItem>) get(\"items\");\n }", "@Override\n\tpublic List<Studentbean2> Addaddress(List<AddressBean> findAllAddress) {\n\t\tfor(AddressBean a:findAllAddress)\n\t\t\tfor(Studentbean2 e:stu2)\n\t\t\t{ \n\t\t\t\tif(e.getId()==a.getId())\n\t\t\t\t{ \n\t\t\t\t\te.setA(a);\n\t\t\t\t}\n\t\t\t}\n\t\treturn stu2;\n\t}", "public List<Address> getAddresses() {\r\n\r\n if (this.addresses == null) {\r\n\r\n this.addresses = new ArrayList<Address>();\r\n\r\n }\r\n\r\n return this.addresses;\r\n\r\n }", "java.util.List<io.opencannabis.schema.commerce.OrderItem.Item> \n getItemList();", "@Override\r\n\tpublic List<Map<String, String>> selectAddressList() {\n\t\treturn ado.selectAddressList();\r\n\t}", "List<?> getAddress();", "public List<Address> listAddress()\n {\n @SuppressWarnings(\"unchecked\")\n List<Address> result = this.sessionFactory.getCurrentSession().createQuery(\"from AddressImpl as address order by address.id asc\").list();\n\n return result;\n }", "public java.util.List<io.opencannabis.schema.commerce.OrderItem.Item> getItemList() {\n return item_;\n }", "@OAMany(\n displayName = \"Add On Items\", \n toClass = AddOnItem.class, \n reverseName = AddOnItem.P_Item, \n createMethod = false\n )\n private Hub<AddOnItem> getAddOnItems() {\n return null;\n }", "public List<Item> getItems() {\n return items;\n }", "public List<Item> getItems() {\n return items;\n }", "@RequestMapping(method=RequestMethod.GET, value = \"/item\", produces = \"application/json\")\n public List<Item> getItems()\n {\n return this.itemRepository.getItems();\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 }", "@Override\r\n\tpublic List<UserAddress> viewUserAddressList() {\r\n\t\tList<UserAddress> result = new ArrayList<UserAddress>();\r\n useraddressrepository.findAll().forEach(UserAddress1 -> result.add(UserAddress1));\r\n return result;\r\n\t}", "public ArrayList getOrderItems() \r\n\t{\r\n\t\treturn orderItemList;\r\n\t}", "public List<OrderItem> findAllOrderItem(){\n List<OrderItem> orderItems=findAll();\n return orderItems;\n }", "public void addItem(SalesOrderItem... entity) {\r\n if (toItem == null) {\r\n toItem = Lists.newArrayList();\r\n }\r\n toItem.addAll(Lists.newArrayList(entity));\r\n }", "@Override\n\tpublic List<item> findAll() {\n\t\treturn donkyClientFeign.lista().stream().map(p -> new item(p,1)).collect(Collectors.toList());\n\t}", "private ItemElementRelationship findItemLocationRelationship(Item item) {\n if (item.getSelfElement().getId() != null) {\n return itemElementRelationshipFacade\n .findItemElementRelationshipByNameAndItemElementId(ItemElementRelationshipTypeNames.itemLocation.getValue(),\n item.getSelfElement().getId());\n } else {\n return null;\n }\n }", "public void setItem(Item item) {\n this.item = item;\n }", "public void setItem(\r\n @NonNull\r\n final List<SalesOrderItem> value) {\r\n if (toItem == null) {\r\n toItem = Lists.newArrayList();\r\n }\r\n toItem.clear();\r\n toItem.addAll(value);\r\n }", "public void transferItem(Items item) throws Exception {\n\t\tif (item.getHolder() instanceof Monsters) {\n\t\t\titem.setHolder(null);\n\t\t\tthis.addAnchor(item);\n\t\t}\n\t\telse if (item.getHolder() instanceof Backpacks) {\n\t\t\titem.setHolder(null);\n\t\t\tthis.addAnchor(item);\n\t\t}\n\t\telse\n\t\t\tthrow new Exception(\"The transaction is only possible between monsters and/or backpacks.\");\n\t}", "public List<Address> getAddresses(final SessionContext ctx)\n\t{\n\t\tList<Address> coll = (List<Address>)getProperty( ctx, ADDRESSES);\n\t\treturn coll != null ? coll : Collections.EMPTY_LIST;\n\t}", "@Override\n public Set<T> getItems() {\n return items;\n }", "private Response getAddressList( String term )\n {\n\n ReferenceList list = null;\n try\n {\n if ( \"RestAddressService\".equals( AddressServiceProvider.getInstanceClass( ) ) )\n {\n list = AddressServiceProvider.searchAddress( null, term );\n }\n\n }\n catch( RemoteException e )\n {\n AppLogService.error( e );\n }\n\n if ( list == null )\n {\n _logger.error( Constants.ERROR_NOT_FOUND_RESOURCE );\n return Response.status( Response.Status.NOT_FOUND )\n .entity( JsonUtil.buildJsonResponse( new ErrorJsonResponse( Response.Status.NOT_FOUND.name( ), MSG_ERROR_GET_ADDRESSES ) ) ).build( );\n }\n\n return Response.status( Response.Status.OK ).entity( JsonUtil.buildJsonResponse( new JsonResponse( list ) ) ).build( );\n }", "@Override\n\tpublic List<Item> findItemList() {\n\t\tCriteriaBuilder cb=entityManager.getCriteriaBuilder();\n\t\tCriteriaQuery<Item> query = cb.createQuery(Item.class); \n // Root<Item> item = query.from(Item.class);\n List<Item> itemList= entityManager.createQuery(query).getResultList();\n\t\treturn itemList;\n\t}", "private InputStream includeNavItems(UiExtensionService service) {\n StringBuilder sb = new StringBuilder(\"\\n\");\n for (UiExtension extension : service.getExtensions()) {\n for (UiView view : extension.views()) {\n sb.append(String.format(NAV_FORMAT, view.id(), view.label()));\n }\n }\n return new ByteArrayInputStream(sb.toString().getBytes());\n }", "@OAMany(\n displayName = \"Include Award Types\", \n toClass = AwardType.class, \n reverseName = AwardType.P_IncludeItems, \n createMethod = false\n )\n @OALinkTable(name = \"AwardTypeIncludeItem\", indexName = \"AwardTypeIncludeItem\", columns = {\"ItemId\"})\n private Hub<AwardType> getIncludeAwardTypes() {\n return null;\n }", "Collection<? extends String> getHasAddress();", "public com.rpg.framework.database.Protocol.Item.Builder addItemsBuilder() {\n return getItemsFieldBuilder().addBuilder(\n com.rpg.framework.database.Protocol.Item.getDefaultInstance());\n }", "public java.util.List<com.rpg.framework.database.Protocol.Item> getItemsList() {\n return items_;\n }", "public void setDeliveryItems(List<RepositoryItem> pDeliveryItems) {\n mDeliveryItems = pDeliveryItems;\n }", "@Nullable\r\n\t@Transactional (readOnly = true, propagation = Propagation.SUPPORTS)\r\n\t@Override\r\n\tpublic BuildingAddress findAddresses(@NotNull Stub<Street> streetStub, @NotNull Set<AddressAttribute> attributes) throws FlexPayException {\r\n\t\treturn findAddresses(streetStub, null, attributes);\r\n\t}", "public ArrayList<Item> getItems()\n {\n return items;\n }", "public List<PostalCodesItem> getPostalCodes(){\n\t\treturn postalCodes;\n\t}", "public void setAddresses(final List<Address> value)\n\t{\n\t\tsetAddresses( getSession().getSessionContext(), value );\n\t}", "public Set<IS> getFreItemSet();", "public ArrayList<AddressEntry> getAddressEntryList() {\n return addressEntryList;\n }", "public List<CbmCItemFininceItem> findAll();", "public void setItem(ItemType item) {\n\t this.item = item;\n\t}", "public void setItem(ItemType item) {\n\t this.item = item;\n\t}", "@Override\r\n\t\tpublic List<Item> getItems() {\n\t\t\treturn null;\r\n\t\t}", "@RequestMapping(value = \"/items\", method = RequestMethod.GET)\n\tpublic @ResponseBody List<Item> itemListRest() {\n\t\treturn (List<Item>) repository.findAll();\n\t}", "Collection<Item> getInventory();", "public void goFiniteShopping(ArrayList<Item> items){\n for (Item item : items){\n purchasePersonalItem(item);\n }\n }", "public java.util.List<? extends io.opencannabis.schema.commerce.OrderItem.ItemOrBuilder> \n getItemOrBuilderList() {\n return item_;\n }", "public void set(List<Item> items) {\n if (mUseIdDistributor) {\n IdDistributor.checkIds(items);\n }\n\n //first collapse all items\n getFastAdapter().collapse();\n\n //get sizes\n int newItemsCount = items.size();\n int previousItemsCount = mItems.size();\n int itemsBeforeThisAdapter = getFastAdapter().getItemCount(getOrder());\n\n //make sure the new items list is not a reference of the already mItems list\n if (items != mItems) {\n //remove all previous items\n if (!mItems.isEmpty()) {\n mItems.clear();\n }\n\n //add all new items to the list\n mItems.addAll(items);\n }\n\n //map the types\n mapPossibleTypes(items);\n\n //now properly notify the adapter about the changes\n if (newItemsCount > previousItemsCount) {\n if (previousItemsCount > 0) {\n getFastAdapter().notifyAdapterItemRangeChanged(itemsBeforeThisAdapter, previousItemsCount);\n }\n getFastAdapter().notifyAdapterItemRangeInserted(itemsBeforeThisAdapter + previousItemsCount, newItemsCount - previousItemsCount);\n } else if (newItemsCount > 0 && newItemsCount < previousItemsCount) {\n getFastAdapter().notifyAdapterItemRangeChanged(itemsBeforeThisAdapter, newItemsCount);\n getFastAdapter().notifyAdapterItemRangeRemoved(itemsBeforeThisAdapter + newItemsCount, previousItemsCount - newItemsCount);\n } else if (newItemsCount == 0) {\n getFastAdapter().notifyAdapterItemRangeRemoved(itemsBeforeThisAdapter, previousItemsCount);\n } else {\n getFastAdapter().notifyAdapterDataSetChanged();\n }\n }", "public void populate() {\n populate(this.mCurItem);\n }", "@RequestMapping(value = \"/items\", method = RequestMethod.GET)\n public ItemResponse getAllReceipts() {\n\n List items = itemsDBService.getItems();\n List itemNew = new ArrayList();\n for (Object i : items) {\n ItemEntity ie = (ItemEntity) i;\n itemNew.add(Item.builder().itemNumber(ie.getItemNumber())\n .itemUnitCount(ie.getItemUnitCount())\n .itemName(ie.getItemName())\n .itemPrice(ie.getItemPrice())\n .itemUnitPrice(ie.getItemUnitPrice())\n .itemCategory(ie.getItemCategory())\n .itemDiscount(ie.getItemDiscount())\n .itemWarantyEndDate(ie.getItemWarantyEndDate())\n .itemTypeCode(ie.getItemTypeCode())\n .build()\n );\n }\n return ItemResponse.builder().items(itemNew).build();\n }", "public void setAddresses(List<String> addresses) {\n this.addresses = addresses;\n }", "private static List<Item> getItems() {\n\t\treturn items;\n\t}", "@Test\n public void testExposesAccessToLinkedEntities() throws Exception {\n for(Link l : findCustomersLinks()) {\n MockHttpServletResponse response = request(l.getHref());\n String jsonBody = response.getContentAsString();\n\n List<Link> addresses = links.findLinksWithRel(ADDRESSES_REL, jsonBody);\n\n assertThat(\"Has linked Addresses\",\n addresses,\n notNullValue());\n assertThat(\"Addresses aren't empty\",\n addresses.size(),\n greaterThan(0));\n\n Link addressLink = addresses.get(0);\n MockHttpServletResponse addrResponse = request(addressLink.getHref());\n String addrJsonBody = addrResponse.getContentAsString();\n\n assertThat(\"Has valid street\",\n String.format(\"%s\", JsonPath.read(addrJsonBody, \"$content[0].street\")),\n is(\"123 W 1st Street\"));\n }\n }", "public List<UrlAddress> searchDBUrl() {\n log.info(new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\").format(new Date()) + \"find all url address\");\n List<UrlAddress> all = urlRepository.findAll();\n return all;\n }", "public RegitemTypes getRegitemTypes() {\n return regitemTypes;\n }", "public List<Address> getAllAddresses() throws BackendException;", "public void setItem(BudgetItemModel item) { model= item;}", "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}", "private void populateItems (ObservableList<Item> itemList) throws ClassNotFoundException {\n\t\ttblResult.setItems(itemList);\n\t}", "public ArrayList<Item> getAllItems(){\n\t\treturn itemList; \n\t}", "public void setItem(Collectable c) {\n\t\tthis.m_item = c;\n\t}", "void addItem (Item toAdd){\n\t\t\tthis.items.add(toAdd);}", "@Test\n\tpublic void testAddLinkOkMultNtoNArrayList() {\n\t\t// configure collection properties of Location and ClosingPeriod\n\t\t// to use TreeSet as collection implementing class\n\t\t((TypePropertyCollection) (new Location()).getProperty(\"closedons\").getType())\n\t\t\t\t.setCollectionClass(ArrayList.class);\n\t\t((TypePropertyCollection) (new ClosingPeriod()).getProperty(\"locations\").getType())\n\t\t\t\t.setCollectionClass(ArrayList.class);\n\t\ttstNMAssociationInverse();\n\t}", "protected void onStart() throws JandalCoreException {\n\t\taddInitialState(new State(\"listing\") {\n\t\t\tprotected void onEntry() throws JandalCoreException {\n\n\t\t\t\tfinal AddressManagementService ams = (AddressManagementService) getService(\"addressManagementService\");\n\n\t\t\t\tsetOutput(\"template\", \"addressList.ftl\");\n\t\t\t\tsetOutput(\"addressList\", ams.getAddresses());\n\n\t\t\t\taddViewEventProcessor(new EventProcessor(\"update\") {\n\t\t\t\t\tprotected void onEvent() throws JandalCoreException {\n\t\t\t\t\t\tdoTransition(\"updating\", new Params().add(\"id\",\n\t\t\t\t\t\t\t\tgetParam(\"id\")));\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\taddViewEventProcessor(new EventProcessor(\"create\") {\n\t\t\t\t\tprotected void onEvent() throws JandalCoreException {\n\t\t\t\t\t\tdoTransition(\"creating\");\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\taddViewEventProcessor(new EventProcessor(\"delete\") {\n\t\t\t\t\tprotected void onEvent() throws JandalCoreException {\n\t\t\t\t\t\tdoTransition(\"deleting\", new Params().add(\"id\",\n\t\t\t\t\t\t\t\tgetParam(\"id\")));\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\taddViewEventProcessor(new EventProcessor(\"list\") {\n\t\t\t\t\tprotected void onEvent() throws JandalCoreException {\n\t\t\t\t\t\tdoTransition(\"listing\");\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\n\t\t/*\n\t\t * State in which we are updating an existing address.\n\t\t */\n\t\taddState(new State(\"updating\") {\n\t\t\tprotected void onEntry() throws JandalCoreException {\n\n\t\t\t\tfinal AddressManagementService ams = (AddressManagementService) getService(\"addressManagementService\");\n\n\t\t\t\tsetOutput(\"template\", \"updateAddress.ftl\");\n\n\t\t\t\t/*\n\t\t\t\t * Get the address to update and put it on an output\n\t\t\t\t */\n\t\t\t\tfinal String id = (String) getParam(\"id\");\n\t\t\t\tAddress address;\n\t\t\t\ttry {\n\t\t\t\t\taddress = ams.getAddress(id);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t\tsetOutput(\"name\", address.getName());\n\t\t\t\tsetOutput(\"nameError\", \"\");\n\n\t\t\t\tsetOutput(\"email\", address.getEmail());\n\t\t\t\tsetOutput(\"emailError\", \"\");\n\n\t\t\t\tsetOutput(\"url\", address.getUrl());\n\t\t\t\tsetOutput(\"urlError\", \"\");\n\n\t\t\t\t/*\n\t\t\t\t * Process \"save\" action\n\t\t\t\t */\n\t\t\t\taddViewEventProcessor(new EventProcessor(\"save\") {\n\t\t\t\t\tprotected void onEvent() throws JandalCoreException {\n\n\t\t\t\t\t\tfinal String name = getStringParam(\"name\").trim();\n\t\t\t\t\t\tfinal String email = getStringParam(\"email\").trim();\n\t\t\t\t\t\tfinal String url = getStringParam(\"url\").trim();\n\n\t\t\t\t\t\tboolean errors = false;\n\t\t\t\t\t\tif (name.length() == 0) {\n\t\t\t\t\t\t\tsetOutput(\"nameError\", \"Name cannot be empty\");\n\t\t\t\t\t\t\terrors = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!errors) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tams.updateAddress(id, name, email, url);\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tdoTransition(\"listing\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tsetOutput(\"name\", name);\n\t\t\t\t\t\t\tsetOutput(\"email\", email);\n\t\t\t\t\t\t\tsetOutput(\"url\", url);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t/*\n\t\t\t\t * Process \"cancel\" action\n\t\t\t\t */\n\t\t\t\taddViewEventProcessor(new EventProcessor(\"cancel\") {\n\t\t\t\t\tprotected void onEvent() throws JandalCoreException {\n\t\t\t\t\t\tdoTransition(\"listing\");\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\n\t\t/*\n\t\t * State in which we are updating an existing address.\n\t\t */\n\t\taddState(new State(\"creating\") {\n\t\t\tprotected void onEntry() throws JandalCoreException {\n\n\t\t\t\tfinal AddressManagementService ams = (AddressManagementService) getService(\"addressManagementService\");\n\n\t\t\t\tsetOutput(\"template\", \"createAddress.ftl\");\n\n\t\t\t\tsetOutput(\"name\", \"\");\n\t\t\t\tsetOutput(\"nameError\", \"\");\n\n\t\t\t\tsetOutput(\"email\", \"\");\n\t\t\t\tsetOutput(\"emailError\", \"\");\n\n\t\t\t\tsetOutput(\"url\", \"\");\n\t\t\t\tsetOutput(\"urlError\", \"\");\n\n\t\t\t\t/*\n\t\t\t\t * Process \"save\" action\n\t\t\t\t */\n\t\t\t\taddViewEventProcessor(new EventProcessor(\"save\") {\n\t\t\t\t\tprotected void onEvent() throws JandalCoreException {\n\n\t\t\t\t\t\tfinal String name = getStringParam(\"name\").trim();\n\t\t\t\t\t\tfinal String email = getStringParam(\"email\").trim();\n\t\t\t\t\t\tfinal String url = getStringParam(\"url\").trim();\n\n\t\t\t\t\t\tboolean errors = false;\n\t\t\t\t\t\tif (name.length() == 0) {\n\t\t\t\t\t\t\tsetOutput(\"nameError\", \"Name cannot be empty\");\n\t\t\t\t\t\t\terrors = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!errors) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tams.addAddress(name, email, url);\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tdoTransition(\"listing\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tsetOutput(\"name\", name);\n\t\t\t\t\t\t\tsetOutput(\"email\", email);\n\t\t\t\t\t\t\tsetOutput(\"url\", url);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t/*\n\t\t\t\t * Process \"cancel\" action\n\t\t\t\t */\n\t\t\t\taddViewEventProcessor(new EventProcessor(\"cancel\") {\n\t\t\t\t\tprotected void onEvent() throws JandalCoreException {\n\t\t\t\t\t\tdoTransition(\"listing\");\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\n\t\t/*\n\t\t * State in which we are updating an existing address.\n\t\t */\n\t\taddState(new State(\"deleting\") {\n\t\t\tprotected void onEntry() throws JandalCoreException {\n\n\t\t\t\tfinal AddressManagementService ams = (AddressManagementService) getService(\"addressManagementService\");\n\n\t\t\t\tsetOutput(\"template\", \"deleteAddress.ftl\");\n\n\t\t\t\t/*\n\t\t\t\t * Get the address to delete and put it on an output\n\t\t\t\t */\n\t\t\t\tfinal String id = (String) getParam(\"id\");\n\t\t\t\tAddress address;\n\t\t\t\ttry {\n\t\t\t\t\taddress = ams.getAddress(id);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t\tsetOutput(\"name\", address.getName());\n\t\t\t\tsetOutput(\"email\", address.getEmail());\n\t\t\t\tsetOutput(\"url\", address.getUrl());\n\n\t\t\t\t/*\n\t\t\t\t * Process \"delete\" action\n\t\t\t\t */\n\t\t\t\taddViewEventProcessor(new EventProcessor(\"delete\") {\n\t\t\t\t\tprotected void onEvent() throws JandalCoreException {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tams.deleteAddress(id);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdoTransition(\"listing\");\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t/*\n\t\t\t\t * Process \"cancel\" action\n\t\t\t\t */\n\t\t\t\taddViewEventProcessor(new EventProcessor(\"cancel\") {\n\t\t\t\t\tprotected void onEvent() throws JandalCoreException {\n\t\t\t\t\t\tdoTransition(\"listing\");\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tprotected void onExit() throws JandalCoreException {\n\n\t\t\t}\n\t\t});\n\n\t\t/*\n\t\t * State in which an error occurred\n\t\t */\n\t\taddState(new State(\"error\") {\n\t\t\tprotected void onEntry() throws JandalCoreException {\n\t\t\t\tsetOutput(\"template\", \"error.ftl\");\n\n\t\t\t\tsetOutput(\"message\", getParam(\"message\"));\n\n\t\t\t\t/*\n\t\t\t\t * Process \"ok\" action\n\t\t\t\t */\n\t\t\t\taddViewEventProcessor(new EventProcessor(\"ok\") {\n\t\t\t\t\tprotected void onEvent() throws JandalCoreException {\n\t\t\t\t\t\tdoTransition(\"listing\");\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\n\t}" ]
[ "0.54687744", "0.5379274", "0.5233284", "0.5135669", "0.5052708", "0.50516903", "0.49838772", "0.4924769", "0.49070844", "0.48883042", "0.48864165", "0.4880668", "0.486324", "0.48533744", "0.48391062", "0.48238137", "0.48190418", "0.4811884", "0.4783726", "0.47742033", "0.47719744", "0.47584236", "0.47388637", "0.47298622", "0.47186977", "0.471349", "0.46960634", "0.4694191", "0.4690441", "0.46830943", "0.46706894", "0.46702826", "0.46441668", "0.46334976", "0.46317872", "0.4629704", "0.46189073", "0.46166858", "0.46116436", "0.4607507", "0.460673", "0.45925957", "0.4591375", "0.4589615", "0.45793492", "0.45766062", "0.45729306", "0.45729306", "0.45710236", "0.45635763", "0.45491564", "0.45378387", "0.4537584", "0.45302373", "0.45295855", "0.45145014", "0.45070466", "0.44992268", "0.4493344", "0.44798115", "0.44757542", "0.44725457", "0.44608328", "0.44593525", "0.44567055", "0.44376525", "0.4435909", "0.44296482", "0.4420017", "0.44161808", "0.4410275", "0.4406641", "0.44028065", "0.43998805", "0.43942237", "0.43941224", "0.43902883", "0.43902883", "0.4379719", "0.43783316", "0.4367395", "0.4366318", "0.43617535", "0.43579993", "0.43534064", "0.43521196", "0.43468", "0.4344722", "0.43443245", "0.43440798", "0.4343591", "0.4343418", "0.4333619", "0.43319407", "0.43308526", "0.43290702", "0.43193397", "0.43169102", "0.43160534", "0.43131346" ]
0.6020382
0
because there is always one dataset, so it is difficult to count...
public ChartJFreeChartOutput(final IScope scope, final String name, final IExpression typeexp) { super(scope, name, typeexp); info = new ChartRenderingInfo(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getDataCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "@Override\n\tpublic int countNumberOfDatas() {\n\t\treturn 0;\n\t}", "@Test\n\tpublic void testBatchSizeOfOne() throws Exception {\n\t\tDataSetIterator iris = new IrisDataSetIterator(1, 5);\n\t\tint irisC = 0;\n\t\twhile(iris.hasNext()){\n\t\t\tirisC++;\n\t\t\tDataSet ds = iris.next();\n\t\t\tassertTrue(ds.getLabels().sum(Integer.MAX_VALUE).getDouble(0)==1.0);\n\t\t}\n\t\tassertTrue(irisC==5);\n\t\t\n\t\t\n\t\t//MNIST:\n\t\tDataSetIterator mnist = new MnistDataSetIterator(1, 5);\n\t\tint mnistC = 0;\n\t\twhile(mnist.hasNext()){\n\t\t\tmnistC++;\n\t\t\tDataSet ds = mnist.next();\n\t\t\tassertTrue(ds.getLabels().sum(Integer.MAX_VALUE).getDouble(0)==1.0);\n\t\t}\n\t\tassertTrue(mnistC==5);\n\t\t\n\t\t//LFW:\n\t\tDataSetIterator lfw = new LFWDataSetIterator(1, 5);\n\t\tint lfwC = 0;\n\t\twhile(lfw.hasNext()){\n\t\t\tlfwC++;\n\t\t\tDataSet ds = lfw.next();\n\t\t\tassertTrue(ds.getLabels().sum(Integer.MAX_VALUE).getDouble(0)==1.0);\n\t\t}\n\t\tassertTrue(lfwC==5);\n\t}", "public int getDataCount() {\n return data_.size();\n }", "@Override\n public int getSeriesCount() {\n return datasets.size();\n }", "public int getDataCount() {\n return data_.size();\n }", "public int getDataCount() {\n return data_.size();\n }", "public int getDataCount() {\n return data_.size();\n }", "public int getDataCount() {\n return data_.size();\n }", "public int getDataCount() {\n return data_.size();\n }", "private static long dataSetNumberOfSamples(Synapse synapse, JSONObject annots) throws Exception {\r\n \t\tJSONObject longAnnots = annots.getJSONObject(\"longAnnotations\");\r\n \t\tif (longAnnots.has(DATASET_NOS_TAG)) {\r\n \t\t\treturn longAnnots.getLong(DATASET_NOS_TAG);\r\n \t\t} else {\r\n \t\t\treturn -1;\r\n \t\t}\r\n \t}", "int getDataScansCount();", "public int getDataCount() {\n return data_.size();\n }", "public int getDataCount() {\n return data_.size();\n }", "public int getCountOfData (){\n return getData() == null ? 0 : getData().size();\n }", "public int getDatasetIdsCount() {\n return datasetIds_.size();\n }", "public int getCount() {\n if(data.size()<=0) return 1;\n return data.size();\n }", "public void test697153() {\n TaskSeries s1 = new TaskSeries(\"S1\");\n s1.add(new Task(\"Task 1\", new SimpleTimePeriod(new Date(), new Date())));\n s1.add(new Task(\"Task 2\", new SimpleTimePeriod(new Date(), new Date())));\n s1.add(new Task(\"Task 3\", new SimpleTimePeriod(new Date(), new Date())));\n TaskSeries s2 = new TaskSeries(\"S2\");\n s2.add(new Task(\"Task 2\", new SimpleTimePeriod(new Date(), new Date())));\n s2.add(new Task(\"Task 3\", new SimpleTimePeriod(new Date(), new Date())));\n s2.add(new Task(\"Task 4\", new SimpleTimePeriod(new Date(), new Date())));\n TaskSeriesCollection tsc = new TaskSeriesCollection();\n tsc.add(s1);\n tsc.add(s2);\n s1.removeAll();\n int taskCount = tsc.getColumnCount();\n }", "int getImgDataCount();", "public int getDatasetIdsCount() {\n return datasetIds_.size();\n }", "public int getCount() {\n return data.size() / 2;\n }", "public int getCount() {\n\t\treturn data.size();\r\n\t}", "public int getDataCount() {\n if (dataBuilder_ == null) {\n return data_.size();\n } else {\n return dataBuilder_.getCount();\n }\n }", "public int getDataCount() {\n if (dataBuilder_ == null) {\n return data_.size();\n } else {\n return dataBuilder_.getCount();\n }\n }", "public static int getRowsData(ArrayList<ArrayList<String>> datas) {\n\r\n int i = 0;\r\n int retVal = 0;\r\n while ((datas.get(i).get(0) != null) && (!\"\".equals(datas.get(i).get(0)))) {\r\n retVal += 1;\r\n }\r\n return retVal;\r\n }", "@Override\n\tpublic int getDataCount() {\n\t\treturn list_fr.size();\n\t}", "public long getNumDefinedData();", "@Override\n public int getItemCount() {\n return mDataset.size();\n }", "@Override\n public int getItemCount() {\n return mDataset.size();\n }", "@Override\n public int getItemCount() {\n return mDataset.size();\n }", "@Override\n public int getItemCount() {\n return mDataset.size();\n }", "@Override\n public int getItemCount() {\n return mDataset.size();\n }", "@Override\n public int getItemCount() {\n return mDataset.size();\n }", "@Override\n public int getItemCount() {\n return mDataset.size();\n }", "@Override\n public int getItemCount() {\n return mDataset.size();\n }", "@Override\n public int getItemCount() {\n return mDataset.size();\n }", "@Override\n public int getItemCount() {\n return mDataset.size();\n }", "@Override\n public int getItemCount() {\n return mDataset.size();\n }", "@Override\n public int getItemCount() {\n return mDataset.size();\n }", "@Override\n public int getItemCount() {\n return mDataset.size();\n }", "@Override\n public int getItemCount() {\n return mDataset.size();\n }", "@Override\n public int getItemCount() {\n return mDataset.size();\n }", "@Override\n public int getItemCount() {\n return mDataset.size();\n }", "@Override\n public int getItemCount() {\n return mDataset.size();\n }", "@Override\n public int getItemCount() {\n return mDataset.size();\n }", "@Override\n public int getItemCount() {\n return mDataset.size();\n }", "@Override\n public int getItemCount() {\n return mDataset.size();\n }", "@Override\n public int getItemCount() {\n return mDataset.size();\n }", "@Override\n public int getItemCount() {\n return mDataset.size();\n }", "@Override\n public int getItemCount() {\n return mDataset.size();\n }", "@Override\n public int getItemCount() {\n return mDataset == null ? 0 : mDataset.size();\n }", "@Override\n public int getItemCount() {\n return mDataset.size();\n }", "@Override\n public int getItemCount() {\n return mDataset.size();\n }", "public int getCount() {\n return datalist.size();\n }", "@Override\n public int getItemCount() {\n return mDataset.length();\n }", "@Override\n public int getItemCount() {\n return mDataset.length();\n }", "@Override\n public int getItemCount() {\n return dataset.size();\n }", "@Override\n public int getItemCount() {\n return dataset.length;\n }", "@Override\n public int getItemCount() {\n return mDataset.size();\n\n }", "@Override\n public int getItemCount() {\n return mDataset.length;\n }", "@Override\n public int getItemCount() {\n return mDataset.length;\n }", "@Override\r\n public int getItemCount() {\r\n return dataset.size();\r\n }", "int getMetadataCount();", "int getMetadataCount();", "int getMetadataCount();", "int getMetadataCount();", "public int getNumberOfSets();", "private void iterativeDataPropertyMetrics() {\n\t}", "protected abstract int getNumRecords();", "private int infoCount() {\n return data.size();\n }", "public int getCount() {\n\t\t\treturn data.size();\n\t\t}", "@Override\n public int getItemCount() {\n if (mDataset == null) {\n return 0;\n } else {\n return mDataset.size();\n }\n\n }", "int cardinality();", "public int getCount() {\n return _data.size();\n }", "public int getShortestDataset() {\n\t\tint minimalLength = 1000000000;\t\t\t\t\t\t// Update 2021: now the length of the recording is saved in the raw data and can be read from there\n\t\tfor (int i = 0; i < SubjectsList.size(); i ++) {\n\t\t\tint testLength = SubjectsList.get(i).getDatasetLength();\n\t\t\tif (testLength < minimalLength) {\n\t\t\t\tminimalLength = testLength;\n\t\t\t}\n\t\t}\n\t\t//return minimalLength;\n\t\treturn (int) datasetLength-1;\t\t\t\t\t\t\t// new! length is now in the RAW data (2021)\n\t}", "@Override\n\tpublic int getRowCount() {\n\t\tint i = 0;\n\t\tfor(i=0;;i++){\n\t\t\tif(dataAll[i][0]==null)\n\t\t\t\tbreak;\n\t\t}\n\t\treturn i;\n\t}", "public int getCount(){\n\t\treturn mDataObjects.size();\n\t}", "boolean hasDataset();", "public static int numDimensions_data() {\n return 1;\n }", "int getValuesCount();", "@Override\n public int getItemCount() {\n //list.length to return\n return mDataset.size();\n }", "@Override\r\n\tpublic int dataCount(Map<String, Object> map) {\n\t\treturn 0;\r\n\t}", "@Override\r\n\t\tpublic int count() {\n\t\t\treturn 0;\r\n\t\t}", "public void nodata();", "int getStatMetadataCount();", "public int getDataSetCount() {\n EntityManager em = getEntityManager();\n try {\n CriteriaQuery cq = em.getCriteriaBuilder().createQuery();\n Root<DataSet> rt = cq.from(DataSet.class);\n cq.select(em.getCriteriaBuilder().count(rt));\n Query q = em.createQuery(cq);\n return ((Long) q.getSingleResult()).intValue();\n } finally {\n em.close();\n }\n }", "@Override\n\tpublic int getSize() {\n\t\treturn datas.size();\n\t}", "@Override\n public int getItemCount() {\n return mDataSet.length;\n }", "@Override\n public int getItemCount() {\n return mDataSet.length;\n }", "@java.lang.Override\n public boolean hasDataset() {\n return inputSourceCase_ == 11;\n }", "public static int getCountofPeople(){\n int training_set = 0;\n \n try (Connection con = DriverManager.getConnection(url, user, password)){\n String query = \"SELECT count(*) FROM \"+DATABASE_NAME+\".People;\";\n Statement st = con.createStatement();\n ResultSet rs = st.executeQuery(query);\n if (rs.next()) {\n training_set = rs.getInt(1);\n }\n con.close();\n }catch (SQLException ex) {\n ex.printStackTrace();\n } \n\n return training_set;\n }", "public void testGetSeriesCount() {\n TaskSeriesCollection c = createCollection1();\n }", "@Override\n public int getItemCount() {\n return dataSet.size();\n }", "@Override\n public int getItemCount() {\n return concessionDataset.size();\n }", "@Override\n\tpublic int getItemCount() {\n\t\treturn mDataset.size();\n\t}", "int getRowsCount();", "int countByExample(ConfigDataExample example);" ]
[ "0.7271875", "0.7271875", "0.7271875", "0.7271875", "0.7271875", "0.7074551", "0.67699766", "0.66971785", "0.66672933", "0.65955514", "0.65955514", "0.65955514", "0.65955514", "0.65955514", "0.6424004", "0.642208", "0.6410408", "0.6410408", "0.63982093", "0.6255962", "0.6211555", "0.6177637", "0.617304", "0.6163246", "0.6150788", "0.61367005", "0.609902", "0.609902", "0.6071259", "0.60696924", "0.6052835", "0.604316", "0.604316", "0.604316", "0.604316", "0.604316", "0.604316", "0.604316", "0.604316", "0.604316", "0.604316", "0.604316", "0.604316", "0.604316", "0.604316", "0.604316", "0.604316", "0.604316", "0.604316", "0.604316", "0.604316", "0.604316", "0.604316", "0.604316", "0.60273755", "0.6025132", "0.6025132", "0.602028", "0.60197973", "0.6001068", "0.5995922", "0.59871787", "0.59833586", "0.5983348", "0.5983348", "0.5976486", "0.5952852", "0.5952852", "0.5952852", "0.5952852", "0.5937429", "0.5936097", "0.59292233", "0.59114754", "0.5909359", "0.5900197", "0.58954877", "0.5890486", "0.5887672", "0.5868418", "0.5855238", "0.585105", "0.58477247", "0.5838692", "0.58294475", "0.58134055", "0.5806383", "0.5794488", "0.57905686", "0.57857263", "0.57856953", "0.5780964", "0.5780964", "0.57764107", "0.5775106", "0.5771116", "0.5767196", "0.576512", "0.5759546", "0.57463104", "0.574428" ]
0.0
-1
TODO Autogenerated method stub
protected void initRenderer(final IScope scope) { }
{ "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