query
stringlengths 7
33.1k
| document
stringlengths 7
335k
| metadata
dict | negatives
listlengths 3
101
| negative_scores
listlengths 3
101
| document_score
stringlengths 3
10
| document_rank
stringclasses 102
values |
---|---|---|---|---|---|---|
Constructor for a RelationshipTypeImplementation | IANodeTypeImplCandidate(AbstractRelationshipTypeImplementation impl) {
this.relationImpl = impl;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Relationship() {\r\n\t}",
"public RelationshipElement (RelationshipElement.Impl impl, \n\t\tPersistenceClassElement declaringClass)\n\t{\n\t\tsuper(impl, declaringClass);\n\t}",
"public RelationshipElement ()\n\t{\n\t\tthis(null, null);\n\t}",
"public TmRelationship() {\n this(\"TM_RELATIONSHIP\", null);\n }",
"@Override\n\t\tpublic Relationship createRelationshipTo(Node otherNode, RelationshipType type) {\n\t\t\treturn null;\n\t\t}",
"Relationship createRelationship();",
"public Related() {\n }",
"Relation createRelation();",
"void relationshipCreate( long id, int typeId, long startNodeId,\n long endNodeId );",
"public AssociationClass(UmlClass lc, Relationship r) {\n\t // Initialize the values\n id = lc.getId();\n logicalClass = lc;\n relationship = r;\n\t}",
"public Relationship createRelationshipTo( Node otherNode, \n \t\tRelationshipType type );",
"public Relationship createRelationship(RelationshipType rt, String parentId, String childId, String familyId) throws Exception;",
"public ReocType() \r\n {\r\n super();\r\n }",
"public Type() {\n super();\n }",
"public RelationPredicate(){}",
"public RelationshipNode( metamodel.Relationship r ) {\n this.relationship = r;\n }",
"Relationship(final String id, final String type, final String target) {\r\n this.id = id;\r\n this.type = type;\r\n this.target = target;\r\n }",
"public CorrespondenceFactoryImpl() {\n super();\n }",
"LinkRelation createLinkRelation();",
"public ItsNatImpl()\r\n {\r\n }",
"public AccountTypeEntity() { }",
"public RelationIsA() {\r\n\t\tsuper();\r\n\t}",
"ConceptType createConceptType();",
"public CfdiRelated(String tipo, String uuid, String issuer, String receiver) {\n Tipo = tipo;\n Uuid = uuid;\n Issuer = issuer;\n Receiver = receiver;\n }",
"public BaseTypeIdImpl() {}",
"Type() {\n }",
"public VehicleType() { }",
"public InsulinType(){\n super();\n }",
"public RelationObject(String relation, EVAnnotation relatum) {\n\t\tthis.relation = relation;\n\t\tthis.relatum = relatum;\n\t}",
"public VehicleTypeTO()\r\n {\r\n }",
"@ApiModelProperty(required = true, value = \"Type of the product relationship, such as [bundled] if the product is a bundle and you want to describe the bundled products inside this bundle; [reliesOn] if the product needs another already owned product to rely on (e.g. an option on an already owned mobile access product) [targets] or [isTargeted] (depending on the way of expressing the link) for any other kind of links that may be useful\")\n @NotNull\n\n\n public String getRelationshipType() {\n return relationshipType;\n }",
"private KnowledgeComposition() {\r\n super(IKnowledgeComposition.TYPE_ID);\r\n }",
"public VehicleType() {\n }",
"public Relation(String relationString, MinecraftObject obj,\n ImmutableList<MinecraftObject> otherob) {\n this(relationString, EnumSet.noneOf(Aspects.class), obj, otherob);\n }",
"public PhysicalLink() {\n\n }",
"public AdvertisedContribution(Type type) {\n this.type = type;\n }",
"RelationalDependency createRelationalDependency();",
"public Relations() {\n relations = new ArrayList();\n }",
"public ChildType(int addr, TOP_Type type) {\n super(addr, type);\n readObject();\n }",
"public AbstractTypeMapping()\n {\n super();\n }",
"public interface IRelationship<A extends IAttribute> extends IErdNode\n{\n\n /**\n * check the relationship, if the two connected entities are the same\n *\n * @return recursive\n */\n boolean isRecursive();\n\n /**\n * check if this relationship is a weak relationship\n * -> one of the entities is weak\n *\n * @return weak\n */\n boolean isWeakRelationship();\n\n /**\n * return the description of the relationship\n *\n * @return description\n */\n String getDescription();\n\n /**\n * create new attribute to relationship\n *\n * @param p_id name of the attribute\n * @param p_property of the attribute\n * @return self-reference\n */\n A createAttribute( @NonNull final String p_id, @Nonnull final String p_property );\n\n /**\n * get all connected attributes from the relationship in a map\n *\n * @return map with all attributes\n */\n Map<String, IAttribute> getConnectedAttributes();\n\n /**\n * connect entity incl. cardinality to the relationship\n *\n * @param p_entity name of the entity\n * @param p_cardinality cardinality\n * @return self-reference\n */\n IEntity<A> connectEntity( @NonNull final IEntity<IAttribute> p_entity, @NonNull final String p_cardinality );\n\n /**\n * return the connected entities in a map\n *\n * @return connected entities\n */\n Map<String, Collection<String>> getConnectedEntities();\n\n}",
"void createRelationshipTypeToken( int id, String name );",
"public Graph() {\n }",
"public Contact() {\n\t\tsuper(org.jooq.examples.sqlserver.adventureworks.person.tables.Contact.Contact);\n\t}",
"public KoleksiRelationExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }",
"public ResourceTypeExtension() {\n }",
"protected ChildType() {/* intentionally empty block */}",
"protected GraphNode() {\n }",
"protected GraphNode() {\n }",
"protected BaseFeat()\n {\n super(TYPE);\n }",
"public DomainKnowledge() {\r\n\t\tthis.construct(3);\r\n\t}",
"public ObjectSchema() {\n }",
"protected RelationshipProvider(final ConnectionFactory connectionFactory, final ResourcePath resourcePath, \n final JsonPointer propertyName, final boolean isReverse, ActivityLogger activityLogger,\n final ManagedObjectSyncService managedObjectSyncService) {\n this.connectionFactory = connectionFactory;\n this.resourcePath = resourcePath;\n this.propertyName = propertyName;\n this.isReverse = isReverse;\n this.activityLogger = activityLogger;\n this.managedObjectSyncService = managedObjectSyncService;\n }",
"public AvroPerson() {}",
"ConceptsType createConceptsType();",
"protected GEDCOMType() {/* intentionally empty block */}",
"public interface PartOfRelation\r\n{\r\n\r\n\t/**\r\n\t * Sets author\r\n\t * \r\n\t * @param author\r\n\t */\r\n\tvoid setAuthor(String author);\r\n\r\n\r\n\t/**\r\n\t * @return Author\r\n\t */\r\n\tString getAuthor();\r\n\r\n\t/**\r\n\t * Sets class type, one typical value is '300'\r\n\t * \r\n\t * @param classType\r\n\t */\r\n\tvoid setClassType(String classType);\r\n\r\n\t/**\r\n\t * @return class type\r\n\t */\r\n\tString getClassType();\r\n\r\n\t/**\r\n\t * Sets object key, for material items this is the product ID.\r\n\t * \r\n\t * @param objectKey\r\n\t */\r\n\tvoid setObjectKey(String objectKey);\r\n\r\n\t/**\r\n\t * @return Object key.\r\n\t */\r\n\tString getObjectKey();\r\n\r\n\t/**\r\n\t * Sets object type, product or an abstract product representative\r\n\t * \r\n\t * @param objectType\r\n\t */\r\n\tvoid setObjectType(String objectType);\r\n\r\n\t/**\r\n\t * @return Object type\r\n\t */\r\n\tString getObjectType();\r\n\r\n\t/**\r\n\t * Sets position in the BOM\r\n\t * \r\n\t * @param posNr\r\n\t */\r\n\tvoid setPosNr(String posNr);\r\n\r\n\t/**\r\n\t * @return Position number\r\n\t */\r\n\tString getPosNr();\r\n\r\n\t/**\r\n\t * Sets parent instance ID\r\n\t * \r\n\t * @param parentInstId\r\n\t */\r\n\tvoid setParentInstId(String parentInstId);\r\n\r\n\t/**\r\n\t * @return Parent instance ID\r\n\t */\r\n\tString getParentInstId();\r\n\r\n\t/**\r\n\t * Sets child instance ID\r\n\t * \r\n\t * @param instId\r\n\t */\r\n\tvoid setInstId(String instId);\r\n\r\n\t/**\r\n\t * @return Child instance ID\r\n\t */\r\n\tString getInstId();\r\n}",
"public interface Type<SomeType extends Type<SomeType, SomeThing>,\n SomeThing extends Thing<SomeThing, SomeType>>\n extends SchemaConcept<SomeType> {\n\n @Deprecated\n @CheckReturnValue\n @Override\n default Type<SomeType, SomeThing> asType() {\n return this;\n }\n\n @Override\n Remote<SomeType, SomeThing> asRemote(GraknClient.Transaction tx);\n\n @Deprecated\n @CheckReturnValue\n @Override\n default boolean isType() {\n return true;\n }\n\n interface Local<\n SomeType extends Type<SomeType, SomeThing>,\n SomeThing extends Thing<SomeThing, SomeType>>\n extends SchemaConcept.Local<SomeType>, Type<SomeType, SomeThing> {\n }\n\n /**\n * A Type represents any ontological element in the graph.\n * Types are used to model the behaviour of Thing and how they relate to each other.\n * They also aid in categorising Thing to different types.\n */\n interface Remote<\n SomeRemoteType extends Type<SomeRemoteType, SomeRemoteThing>,\n SomeRemoteThing extends Thing<SomeRemoteThing, SomeRemoteType>>\n extends SchemaConcept.Remote<SomeRemoteType>, Type<SomeRemoteType, SomeRemoteThing> {\n\n //------------------------------------- Modifiers ----------------------------------\n\n /**\n * Changes the Label of this Concept to a new one.\n *\n * @param label The new Label.\n * @return The Concept itself\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> label(Label label);\n\n /**\n * Sets the Type to be abstract - which prevents it from having any instances.\n *\n * @param isAbstract Specifies if the concept is to be abstract (true) or not (false).\n * @return The concept itself\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> isAbstract(Boolean isAbstract);\n\n /**\n * @param role The Role Type which the instances of this Type are allowed to play.\n * @return The Type itself.\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> plays(Role role);\n\n /**\n * Creates a RelationType which allows this type and a AttributeType to be linked in a strictly one-to-one mapping.\n *\n * @param attributeType The AttributeType which instances of this type should be allowed to play.\n * @return The Type itself.\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> key(AttributeType<?> attributeType);\n\n /**\n * Creates a RelationType which allows this type and a AttributeType to be linked.\n *\n * @param attributeType The AttributeType which instances of this type should be allowed to play.\n * @return The Type itself.\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> has(AttributeType<?> attributeType);\n\n //------------------------------------- Accessors ---------------------------------\n\n /**\n * @return A list of Role Types which instances of this Type can indirectly play.\n */\n Stream<Role.Remote> playing();\n\n /**\n * @return The AttributeTypes which this Type is linked with.\n */\n @CheckReturnValue\n Stream<? extends AttributeType.Remote<?>> attributes();\n\n /**\n * @return The AttributeTypes which this Type is linked with as a key.\n */\n @CheckReturnValue\n Stream<? extends AttributeType.Remote<?>> keys();\n\n /**\n * @return All the the super-types of this Type\n */\n @Override\n Stream<? extends Type.Remote<SomeRemoteType, SomeRemoteThing>> sups();\n\n /**\n * Get all indirect sub-types of this type.\n * The indirect sub-types are the type itself and all indirect sub-types of direct sub-types.\n *\n * @return All the indirect sub-types of this Type\n */\n @Override\n @CheckReturnValue\n Stream<? extends Type.Remote<SomeRemoteType, SomeRemoteThing>> subs();\n\n /**\n * Get all indirect instances of this type.\n * The indirect instances are the direct instances and all indirect instances of direct sub-types.\n *\n * @return All the indirect instances of this type.\n */\n @CheckReturnValue\n Stream<? extends Thing.Remote<SomeRemoteThing, SomeRemoteType>> instances();\n\n /**\n * Return if the type is set to abstract.\n * By default, types are not abstract.\n *\n * @return returns true if the type is set to be abstract.\n */\n @CheckReturnValue\n Boolean isAbstract();\n\n //------------------------------------- Other ----------------------------------\n\n /**\n * Removes the ability of this Type to play a specific Role\n *\n * @param role The Role which the Things of this Type should no longer be allowed to play.\n * @return The Type itself.\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> unplay(Role role);\n\n /**\n * Removes the ability for Things of this Type to have Attributes of type AttributeType\n *\n * @param attributeType the AttributeType which this Type can no longer have\n * @return The Type itself.\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> unhas(AttributeType<?> attributeType);\n\n /**\n * Removes AttributeType as a key to this Type\n *\n * @param attributeType the AttributeType which this Type can no longer have as a key\n * @return The Type itself.\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> unkey(AttributeType<?> attributeType);\n\n @Deprecated\n @CheckReturnValue\n @Override\n default Type.Remote<SomeRemoteType, SomeRemoteThing> asType() {\n return this;\n }\n\n @Deprecated\n @CheckReturnValue\n @Override\n default boolean isType() {\n return true;\n }\n }\n}",
"public Link() {\n }",
"public Base(Class<T> cls, ObjectMapper objectMapper, Type type, int dbType, String pgType, DocPropertyType docType) {\n super(cls, false, dbType);\n this.pgType = pgType;\n this.docType = docType;\n this.objectMapper = objectMapper;\n this.javaType = objectMapper.getTypeFactory().constructType(type);\n }",
"public Dependency() \r\n {\r\n }",
"public String getRelationshipTypeGUID()\n {\n return relationshipTypeGUID;\n }",
"UMLDomainConcept createUMLDomainConcept();",
"protected CalendricalRule(Class<T> type, String name) {\n // avoid possible circular references by using inline NPE checks\n if (type == null) {\n throw new NullPointerException(\"Reified class must not be null\");\n }\n if (name == null) {\n throw new NullPointerException(\"Name must not be null\");\n }\n this.type = type;\n this.name = name;\n }",
"public LNDCDC_NCS_TCS_ORDER_TYPES() {}",
"public DefaultObjectModel ()\n {\n this (new Schema ());\n }",
"public ExcursionEntity() {\n\t}",
"public Sequence(String name, IDatatype type, IModelElement parent) {\n super(name, DTYPE, type, parent);\n }",
"public void setCsRelationship(Object endNode, BioRelTypes relType) {\n if (csRelationship == null) {\n csRelationship = new HashSet<BioRelation>();\n }\n BioRelation rel = new BioRelation(this, endNode, relType);\n csRelationship.add(rel);\n }",
"DomainConcept createDomainConcept();",
"public BaseContract() {}",
"public Builder() {\n this(Graphs.<N, E>createUndirected());\n }",
"public SpatialRelationBlock(int addr, TOP_Type type) {\n\t\tsuper(addr, type);\n\t\treadObject();\n\t}",
"public ParticipantBehaviorDescription(){\n\t\t\n\t}",
"public EntityTypeTransfer() {\n this(null, null, null, null, null, null, null, null);\n }",
"public String getType() {\n return relationshipName;\n }",
"public SourceTypeConfiguration() {\n\n\t}",
"SchemaComponentType createSchemaComponentType();",
"public RoleEntity(){}",
"protected TypedTableObject(String name, String type, IValueAccessor accessor) {\n super(name, accessor);\n this.type = type;\n }",
"@Override\n\t\tpublic Iterable<RelationshipType> getRelationshipTypes() {\n\t\t\treturn null;\n\t\t}",
"public Schema() {\n\t\tsuper();\n\t}",
"public ArangoDBVertex() {\n\t\tsuper();\n\t}",
"public Implementor(){}",
"ObjectTypeDefinition createObjectTypeDefinition();",
"public LinkBuilder() {\n }",
"public GraphInfo(){}",
"EReference createEReference();",
"private AttendantDatabase() {}",
"public Edge() {}",
"public ExpertiseEntity() {\n }",
"public ResourceImpl(Persistence persistence, CoralCore coral, CoralEventHub coralEventHub,\n String name, ResourceClass resourceClass, Resource parent, Subject creator)\n {\n super(persistence, name);\n this.coral = coral;\n this.coralEventHub = coralEventHub;\n\n this.resourceClass = resourceClass;\n this.parent = new ResourceRef(parent, coral);\n if(parent != null)\n {\n this.parentId = parent.getId();\n } \n this.creator = creator;\n this.owner = creator;\n this.modifier = creator;\n this.created = new Date();\n this.modified = this.created;\n }",
"public ContentType () {\n\t\tsuper();\n\t}",
"public Graph()\r\n {\r\n this( \"x\", \"y\" );\r\n }",
"public RoadAgent(String startNode, String endNode, Point startPosition, Point endPosition, String roadBelongingType)\r\n\t{\r\n\t\tthis.startNode = startNode;\r\n\t\tthis.endNode = endNode;\r\n\t\tthis.startPosition = startPosition;\r\n\t\tthis.endPosition = endPosition;\r\n\t\tthis.roadBelongingType = roadBelongingType;\r\n\t}",
"ConceptualSchemeType createConceptualSchemeType();",
"public void setRelationshipTypeGUID(String relationshipTypeGUID)\n {\n this.relationshipTypeGUID = relationshipTypeGUID;\n }",
"public PurchaseType()\r\n {\r\n }",
"DomainType createDomainType();",
"public Entity(int n, Type t, Priority p, O thing, WhoAmI imposedId, WhoAmI creatorId, AttributeReader a) throws ThingsException {\r\n\t\t\r\n\t\t// Set fields\r\n\t\tnumeric = n;\r\n\t\tmyThing = thing;\r\n\t\tmyPriority = p;\r\n\t\tmyType = t;\r\n\t\tmyId = imposedId;\r\n\t\tmyCreatorId = creatorId;\r\n\t\t\r\n\t\t// Fix ids?\r\n\t\tif (myId == null) myId = cachedNobody;\r\n\t\tif (myCreatorId == null) myCreatorId = cachedNobody;\t\r\n\t\t\r\n\t\t// Stamp the time.\r\n\t\tstamp = System.currentTimeMillis();\r\n\t\t\r\n\t\t// Attributes\r\n\t\tif (a==null) throw new ThingsException(\"Cannot set attribute object as null.\", ThingsException.DATA_ATTRIBUTE_OBJECT_NULL);\r\n\t\tattributes = a;\t\r\n\t}"
]
| [
"0.7400314",
"0.6805942",
"0.67278564",
"0.64834136",
"0.63402796",
"0.6278303",
"0.61737955",
"0.6099572",
"0.6086065",
"0.60358024",
"0.5989492",
"0.59772485",
"0.59756744",
"0.5848232",
"0.58474606",
"0.5835287",
"0.57255495",
"0.5713691",
"0.5712991",
"0.5696727",
"0.56661516",
"0.55910325",
"0.5590752",
"0.55421335",
"0.55388594",
"0.5525997",
"0.55250496",
"0.55010957",
"0.5480669",
"0.5479716",
"0.5472033",
"0.54709244",
"0.54288983",
"0.5409939",
"0.5396517",
"0.5384371",
"0.5373909",
"0.5360454",
"0.5346263",
"0.53358",
"0.5315788",
"0.5301105",
"0.5293878",
"0.52845734",
"0.52835613",
"0.5282306",
"0.52791655",
"0.526659",
"0.526659",
"0.5266277",
"0.52630717",
"0.5248189",
"0.52479637",
"0.5241449",
"0.52399784",
"0.52397126",
"0.52297246",
"0.5223782",
"0.52117324",
"0.5208465",
"0.52000946",
"0.5197641",
"0.51937544",
"0.5187627",
"0.5185614",
"0.5180564",
"0.51766837",
"0.51649356",
"0.51521665",
"0.5143033",
"0.51378006",
"0.5135536",
"0.51352453",
"0.5123537",
"0.5110083",
"0.51068467",
"0.50938016",
"0.50936556",
"0.5090546",
"0.50836",
"0.50745195",
"0.50719905",
"0.50682783",
"0.5062043",
"0.50566643",
"0.5054731",
"0.5054034",
"0.5043583",
"0.5035496",
"0.50337815",
"0.5028627",
"0.50134015",
"0.5000989",
"0.5000768",
"0.5000432",
"0.49935198",
"0.49854708",
"0.49851182",
"0.49848387",
"0.49823543"
]
| 0.6387806 | 4 |
Adds a mapping from IA to InfrastructureNode with a PrePhaseIAPlugin | void add(AbstractImplementationArtifact ia, AbstractNodeTemplate nodeTemplate, IPlanBuilderPrePhaseIAPlugin plugin) {
for (AbstractImplementationArtifact candidateIa : this.ias) {
if (candidateIa.equals(ia)) {
return;
}
}
this.ias.add(ia);
this.infraNodes.add(nodeTemplate);
this.plugins.add(plugin);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addInitializer(IASTInitializer initializer);",
"@Override\n\tpublic JsonElement addAI(AddAIRequest addAIreq) {\n\t\treturn null;\n\t}",
"public void addVMinterfPair(String intrfcLabel, String ipAddress) {\n\r\n this.intrfces.add(new VMinterface(intrfcLabel, ipAddress));\r\n }",
"public void loadPluginsStartup();",
"public void addAI(String inpt, int passedCommunicationTurn) {\n\t\tString[] ais = inpt.split(\":\");\n\t\tfor(int p = 0; p < ais.length; p++){\n\t\t\t\n\t\t\tSystem.out.println(ais[p] + \" GameEngine\");\n\t\t}\n\t\t//System.out.println(ais.length + \" GameEngine\");\n\t\tfor(int a = 0; a < ais.length; a++){\n\t\t\t\n\t\t\t//System.out.println(ais[a] + \" GameEngine\");\n\t\t\tString[] aiInfo = ais[a].split(\" \");\n//\t\t\tfor(int i = 0; i < aiInfo.length; i++){\n//\t\t\t\t\n//\t\t\t\tSystem.out.println(aiInfo[i] + \" GameEngine\");\n//\t\t\t}\n\t\t\tMethodParameter parameters = new MethodParameter();\n\t\t\tparameters.setAddAI(new Integer(aiInfo[0]),new Long(aiInfo[1]),aiInfo[2]);\n\t\t\t\n\t\t\tif(passedCommunicationTurn != -1){\n\t\t\t\tcommands.add(MethodCallup.ADDAI, parameters, communicationTurn);\n\t\t\t}else{\n\t\t\t\tcommands.add(MethodCallup.ADDAI, parameters, passedCommunicationTurn);\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public interface EOExtension {\n Object doBeforeMap(EO adapter, Object object) ;\n\n void doAfterMap(EO adapter) ;\n}",
"private void addAI(){\n\n }",
"public void addExtensionPoint(IPlugin extensionPointPlugin) {\n lock.writeLock().lock();\n try {\n for (String id : extensionPointPlugin.getIds()) {\n extensionPointPluginMap.put(\n extensionPointPlugin.getName(), id, createLazyLoader(extensionPointPlugin));\n }\n } finally {\n lock.writeLock().unlock();\n }\n }",
"@Esercizio(nro = \"1.15\", pag = 29, descrizione = \"01) Scrivere una interfaccia che estenda Lookup\" +\n \"02) in modo tale da dichiarare im metodi add() e remove().\" +\n \"03) Implementare questa interfaccia in una nuova classe. \")\npublic interface LookupMigliorata extends Lookup { //01) = LookupMigliorata extends Lookup ---> estendo l'interfaccia\n //02) in modo tale da dichiarare im metodi add() e remove().\n public void add(String nome, Object obj); // inserito 2 parametri perche si aggiunge il nome = chiave e l'oggetto = valore hashmap\n //public nei metodi dell'interfaccia è opzionale\n public Object remove(String nome); //per rimuovere basta la stringa chiave ma restituisce Object rimosso.\n\n\n}",
"protected void pluginInitialize() {}",
"void addPlugin(BaseComponentPlugin baseComponent);",
"public void addIfield(String i){\n\t\tifield.add(i);\n\t}",
"public static void mapping(ActiveRecordPlugin arp) {\n\t\t//arp.addMapping(\"hello\", \"id,name\", Hello.class);\n\t\t// Composite Primary Key order: id,name\n\t\tarp.addMapping(\"user\", \"id,name\", User.class);\n\t}",
"public void addIsA(MappingType mapping, IsaType isa) {\n\t\tmapping.getIsA().add(isa);\n\t}",
"public interface MappedInput {\n\n void addMappings();\n void removeMappings();\n\n}",
"public void emitIadd() {\n\t\tlines.append(\"iadd\\n\");\n\t}",
"@Override\n\tpublic void addInitialDataPlugin(ComponentPlugin plugin) throws Exception {\n\n\t}",
"public void addInterface(String interf) {\n m_classBuilder.addInterface(interf);\n }",
"@SuppressWarnings(\"rawtypes\")\n protected void setInformationPlugin(HttpServletRequest req, OperationPlugin operationPlugin) {\n\n // Request attributes\n //\n Hashtable<String, Object> attributes = new Hashtable<String, Object>();\n\n for (Enumeration e = req.getAttributeNames(); e.hasMoreElements();) {\n\n String attName = (String) e.nextElement();\n\n attributes.put(attName, req.getAttribute(attName));\n }\n\n operationPlugin.setAttributes(attributes);\n\n // Request parameters\n //\n Hashtable<String, Object> parameters = new Hashtable<String, Object>();\n\n for (Enumeration e = req.getParameterNames(); e.hasMoreElements();) {\n\n String attName = (String) e.nextElement();\n\n parameters.put(attName, req.getParameter(attName));\n }\n\n operationPlugin.setParameters(parameters);\n\n // Request session attributes\n //\n Hashtable<String, Object> sessionAttributes = new Hashtable<String, Object>();\n\n for (Enumeration e = req.getSession().getAttributeNames(); e.hasMoreElements();) {\n\n String attName = (String) e.nextElement();\n\n sessionAttributes.put(attName, req.getSession().getAttribute(attName));\n }\n\n operationPlugin.setSessionAttributes(sessionAttributes);\n\n // Resource boundle\n operationPlugin.setResourceBundle(getResourceBundle(req));\n }",
"public void addPOI(POI poi)\n\t{\n\t\tmProcessor.addPOI(poi);\n\t}",
"@Override\n\tpublic void addPlugin(ComponentPlugin plugin) throws Exception {\n\n\t}",
"public void addMapAdvice(MapAdvice mapAdvice);",
"private void mapContext(ManagedPlugin managedPlugin) {\n RequestMappingHandlerMapping mapper = new RequestMappingHandlerMapping();\n mapper.setApplicationContext(managedPlugin.getPluginContext());\n mapper.afterPropertiesSet();\n this.handlerMappings.add(mapper);\n this.pluginMappings.put(managedPlugin.getPlugin().getDescriptor().getId(), mapper);\n }",
"void addBeforeProcessor(Object processor);",
"public void addFeatures(IFeature feature);",
"protected abstract void onPluginEnable();",
"public void addInterceptor(DmcAttributeInfo ai, AttributeReadInterceptor ari){\n\t\tif (attrRI.containsKey(ai))\n\t\t\tthrow(new IllegalStateException(\"Duplicate interceptor for attribute: \" + ai));\n\t\tattrRI.put(ai,ari);\n\t}",
"public void reInitialize() {\n lock.writeLock().lock();\n try {\n extensionPointPluginMap = HashBasedTable.create();\n final PluginRegistry registry = PluginRegistry.getInstance();\n List<IPlugin> extensionPointPlugins = registry.getPlugins(ExtensionPointPluginType.class);\n for (IPlugin extensionPointPlugin : extensionPointPlugins) {\n addExtensionPoint(extensionPointPlugin);\n }\n } finally {\n lock.writeLock().unlock();\n }\n }",
"void putInterface(String viewId, ServeTagProcessor processor);",
"public interface Plugin {\n void doUsefil();\n}",
"@Override\n protected void pluginInitialize() {\n // init();\n }",
"void addInitialOverrides(Object initial, VerifierContext context);",
"protected void addNode(INode node) {\n\n if (node != null) {\n\n this.ids.add(node.getID());\n this.nodeMap.put(node.getID(), node);\n }\n }",
"public void addModule(IPModule module);",
"public void insertPluginMenu(java.awt.MenuItem mi);",
"public void AddInterest(Interest I) {\n \t//TODO does this add new ones to the DB or must they already exist?\n \tinterests.add(I);\n }",
"public org.apache.xmlbeans.XmlString insertNewMappingFields(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().insert_element_user(MAPPINGFIELDS$28, i);\n return target;\n }\n }",
"public void testMapping(PluginContainer cont){\n \t ApacheAugeasUtil apacheUtil = new ApacheAugeasUtil();\n \t try{\n \t //copy all configuration files to temporary folder\n \t String path = apacheUtil.prepareConfigFiles();\n \t //loading of augeas from temporary folder\n \t AugeasProxy proxy = apacheUtil.initAugeas(path+File.separator+ApacheTestConstants.ROOT_CONFIG_FILE_NAME, path, path);\t\n \t AugeasTree tree = proxy.getAugeasTree(ApacheTestConstants.MODULE_NAME, true);\n \t \n \t testLoadConfig(tree, cont);\n \t testSaveConfig(cont);\n \t apacheUtil.cleanConfigFiles();\n \t }catch(Exception e){\n \t e.printStackTrace();\n \t apacheUtil.cleanConfigFiles();\n \t }\n \t }",
"@Override\n public void register(PluginAPI api){\n if(api instanceof VPluginAPI){\n VPluginAPI vapi = (VPluginAPI) api;\n vapi.addComponent(ODECreator.class);\n vapi.addComponent(ODESolver.class);\n }\n }",
"IbeisAnnotation addAnnotation(IbeisImage image, BoundingBox boundingBox) throws IOException, MalformedHttpRequestException, UnsuccessfulHttpRequestException, IndividualNameAlreadyExistsException;",
"@Override\n\t\t\tpublic void process(Exchange ex) throws Exception {\n\t\t\t\tTraitHierarchy newTraitHierarchy = ex.getIn().getBody(TraitHierarchy.class);\n\t\t\t\tex.setProperty(APPINIMAP, newTraitHierarchy.getAppIniMap());\n\t\t\t}",
"@Override\n \t\tpublic void addPoi(POIObject poi) {\n \t\t\tCreateEventFragment.this.poi = poi;\n \t\t\tCreateEventFragment.this.eventObject.assignPoi(poi);\n \t\t}",
"public void addCodeBase(ICodeBase codeBase);",
"protected abstract void beforeLookup(Lookup.Template t);",
"@Override\r\n\tpublic boolean insertInvigilate(Invigilate invigilate) {\n\t\tif(invigilateMapper.insert(invigilate)>0){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Override\n protected void inhabitAgent(int nodeId,int time)\n {\n this.goals.put(nodeId,new Pair<>(time,getAgent()));\n updateNode(nodeId,time);\n }",
"void add(I i);",
"private void updateTreeNodeToInterface(Environment result, Environment ext,\n\t\t\tEnvironment base, Map<String, IInterfaceDefinition> iReplacementMap)\n\t{\n\n\t\t// Copy tree nodes to interfaces mapping\n\t\tSet<Entry<IInterfaceDefinition, IInterfaceDefinition>> tn2i = base.treeNodeInterfaces.entrySet();\n\t\tfor (Entry<IInterfaceDefinition, IInterfaceDefinition> e : tn2i)\n\t\t{\n\t\t\tresult.treeNodeInterfaces.put(e.getKey(), e.getValue());\n\t\t}\n\n\t\ttn2i = ext.treeNodeInterfaces.entrySet();\n\t\tfor (Entry<IInterfaceDefinition, IInterfaceDefinition> e : tn2i)\n\t\t{\n\t\t\t// is it not a templated type\n\t\t\tif (!isTemplateClass(e.getKey(), ext))\n\t\t\t{\n\t\t\t\t// do we have a replacement e.g. PExp replace for PExtExp\n\t\t\t\tif (iReplacementMap.containsKey(e.getValue().getName().getName()))\n\t\t\t\t\t// yes! okay lookup the replacement and use that one instead\n\t\t\t\t\tresult.treeNodeInterfaces.put(e.getKey(), iReplacementMap.get(e.getValue().getName().getName()));\n\t\t\t\telse\n\t\t\t\t\t// no! fine we take whatever was created for the extension\n\t\t\t\t\t// environment\n\t\t\t\t\tresult.treeNodeInterfaces.put(e.getKey(), e.getValue());\n\t\t\t}\n\t\t}\n\n\t}",
"IPayerEntry addId(II value);",
"public interface PageResourceMapper {\n}",
"public final EObject entryRuleInterfaceMapping() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleInterfaceMapping = null;\n\n\n try {\n // InternalMappingDsl.g:355:57: (iv_ruleInterfaceMapping= ruleInterfaceMapping EOF )\n // InternalMappingDsl.g:356:2: iv_ruleInterfaceMapping= ruleInterfaceMapping EOF\n {\n newCompositeNode(grammarAccess.getInterfaceMappingRule()); \n pushFollow(FOLLOW_1);\n iv_ruleInterfaceMapping=ruleInterfaceMapping();\n\n state._fsp--;\n\n current =iv_ruleInterfaceMapping; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }",
"org.hl7.fhir.CodeableConcept addNewInterpretation();",
"public interface YamlMapping extends YamlElement {\n}",
"private void updateTreeNodeToInterface(Environment result, Environment ext,\n \t\t\tEnvironment base, Map<String, IInterfaceDefinition> iReplacementMap) {\n \n \t\t// Copy tree nodes to interfaces mapping\n \t\tSet<Entry<IInterfaceDefinition, IInterfaceDefinition>> tn2i = base.treeNodeInterfaces\n \t\t\t\t.entrySet();\n \t\tfor (Entry<IInterfaceDefinition, IInterfaceDefinition> e : tn2i)\n \t\t{\n \t\t\tresult.treeNodeInterfaces.put(e.getKey(), e.getValue());\n \t\t}\n \n \t\ttn2i = ext.treeNodeInterfaces.entrySet();\n \t\tfor(Entry<IInterfaceDefinition, IInterfaceDefinition> e : tn2i)\n \t\t{\n \t\t\t// is it not a templated type\n \t\t\tif (!isTemplateClass(e.getKey(), ext))\n \t\t\t{\n \t\t\t\t// do we have a replacement e.g. PExp replace for PExtExp \n \t\t\t\tif(iReplacementMap.containsKey(e.getValue().getName().getName()))\n \t\t\t\t\t// yes! okay lookup the replacement and use that one instead\n \t\t\t\t\tresult.treeNodeInterfaces.put(e.getKey(), iReplacementMap.get(e.getValue().getName().getName()));\n \t\t\t\telse\n \t\t\t\t\t// no! fine we take whatever was created for the extension environment\n \t\t\t\t\tresult.treeNodeInterfaces.put(e.getKey(), e.getValue());\n \t\t\t}\n \t\t}\n \n \t}",
"interface Definition\n extends DefinitionStages.Blank,\n DefinitionStages.WithParentResource,\n DefinitionStages.WithIdProvider,\n DefinitionStages.WithCreate {\n }",
"public interface IOverride extends IMeasurement_descriptor{\n\n\tpublic IRI iri();\n\n}",
"public void enable(CommonPlugin plugin);",
"public interface Plugin\n{\n\tpublic String getPluginName();\n}",
"public void mapResourceNameToCodeBaseEntry(String resourceName, ICodeBaseEntry codeBaseEntry);",
"public interface UserMapper extends SysMapper<UserPo>{\n}",
"private void addPR(){\n \n try {\n Print.prln(\"Initialising ANNIE...\");\n\n // create a serial analyser controller to run ANNIE with\n annieController = (SerialAnalyserController) Factory.createResource(\n \"gate.creole.SerialAnalyserController\",\n Factory.newFeatureMap(),\n Factory.newFeatureMap(),\n \"ANNIE_\" + Gate.genSym());\n FeatureMap features = Factory.newFeatureMap(); // use default parameters\n\n // adding Annie PRs : i. document reset\n features.clear();\n ProcessingResource documentReset = (ProcessingResource)\n Factory.createResource(\"gate.creole.annotdelete.AnnotationDeletePR\", features);\n annieController.add(documentReset);\n\n // adding Annie PR : ii. english tokeniser\n features.clear();\n ProcessingResource englishTokeniser = (ProcessingResource)\n Factory.createResource(\"gate.creole.tokeniser.DefaultTokeniser\", features);\n annieController.add(englishTokeniser);\n\n // ading inhouse built PR: iii.. gazetteer\n features.clear();\n features.put(\"listsURL\", Converter.getURL(gazetteer));\n ProcessingResource myAnnieGaz = (ProcessingResource)\n Factory.createResource(\"gate.creole.gazetteer.DefaultGazetteer\", features);\n annieController.add(myAnnieGaz);\n\n // adding Annie PR : iv. fake sentence splitter\n features.clear();\n ProcessingResource fakeSentenceSplitter = (ProcessingResource)\n Factory.createResource(\"gate.clone.ql.FakeSentenceSplitter\", features);\n annieController.add(fakeSentenceSplitter);\n\n //. ading inhouse built PR: v. jape grammar 1\n features.clear();\n features.put(\"grammarURL\", Converter.getURL(jape1));\n ProcessingResource myJape1 = (ProcessingResource)\n Factory.createResource(\"gate.creole.Transducer\", features);\n annieController.add(myJape1);\n\n // adding Annie PRs : vi.. regex sentence splitter\n features.clear();\n ProcessingResource regexSentenceSplitter = (ProcessingResource)\n Factory.createResource(\"gate.creole.splitter.RegexSentenceSplitter\", features);\n annieController.add(regexSentenceSplitter);\n\n // adding Annie PRs :vii. pos tagger\n features.clear();\n ProcessingResource posTagger = (ProcessingResource)\n Factory.createResource(\"gate.creole.POSTagger\", features);\n annieController.add(posTagger);\n\n // ading inhouse built PR: viii. jape grammar 2\n features.clear();\n features.put(\"grammarURL\", Converter.getURL(jape2));\n ProcessingResource myJape2 = (ProcessingResource)\n Factory.createResource(\"gate.creole.Transducer\", features);\n annieController.add(myJape2);\n Print.prln(\"...PR loaded\");\n features.clear();\n }\n catch (ResourceInstantiationException ex) {\n Out.prln(ex);\n }\n }",
"public void addPlugin(String key, T pluginClass);",
"public PioneeringMission(AIMain aiMain, XMLStreamReader in)\n throws XMLStreamException {\n super(aiMain);\n readFromXML(in);\n }",
"void activePlugIn(String plugInKey);",
"@Override\n\tpublic void onStartInstrExecution(Instruction instr) {\n\t\t\n\t}",
"public void c2pAddModule(IPModule module);",
"org.landxml.schema.landXML11.PlanFeatureDocument.PlanFeature addNewPlanFeature();",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n @KonfigVerdi\n @Produces\n public <V> Map<String, V> getKonfigVerdiMap(final InjectionPoint ip) {\n KonfigVerdi annotation = getAnnotation(ip);\n String key = annotation.value();\n Converter converter = getConverter(annotation.converter());\n Map<String, V> verdier = getVerdi(ip, annotation, KonfigVerdiProviderOutput.MAP, key, converter);\n return verdier;\n }",
"public void setIpa(String ipa) {\n this.ipa = ipa;\n }",
"public void addProbe(IProbe p) {\n\t\tthis.probes.put(p.getProbeName(), p);\n\t\tp.attachQueue(this.queue);\n\t\tp.attachLogger(this.logger);\n\t}",
"public interface PostCatgMapper {\n\n}",
"static void injectIdentityMap( AbstractGraph graph )\n {\n Object specifics = Util.returnInstanceFieldIfExistsSafe( graph, \"specifics\" );\n\n if( specifics == null )\n {\n LOG.warn( \"unable to get jgrapht Specifics for identity map injection, may be using an incompatible jgrapht version\" );\n return;\n }\n\n boolean success = Util.setInstanceFieldIfExistsSafe( specifics, \"vertexMapDirected\", new IdentityHashMap<>() );\n\n if( !success )\n LOG.warn( \"unable to set IdentityHashMap on jgrapht Specifics, may be using an incompatible jgrapht version\" );\n }",
"public static void putIANA2JavaMapping(String ianaEncoding, \n String javaEncoding) {\n fIANA2JavaMap.put(ianaEncoding, javaEncoding);\n }",
"public interface Plugin {\n\n\t/**\n\t * Returns a description of the plugin, to be shown as a tooltip and/or in the\n\t * help menu.\n\t * \n\t * @return\n\t */\n\tString getDescription();\n\n\t/**\n\t * A label for buttons and menu entries\n\t * \n\t * @return\n\t */\n\tString getName();\n\n\tIkon getIkon();\n\n}",
"public TelegrafPlugin addPlugin(TelegrafPlugin pluginToAdd) {\n\t\t\n\t\t//TODO implement combination of plugins\n\t\tTelegrafPlugin similarPlugin;\n\t\tif (false && (pluginToAdd.getPluginType() == TelegrafPluginType.OUTPUT || pluginToAdd.getPluginType() == TelegrafPluginType.AGGREGATOR) && (similarPlugin = getSimilarPlugin(pluginToAdd))!=null) {\n//\t\t\tSystem.out.println(\"Ähnliches PlugIn gefunden\");\n//\t\t\t\n//\t\t\tfor (TelegrafPluginSubComponent subComponent : similarPlugin.getSubComponents()) {\n//\t\t\t\tif (subComponent.name.equals(\"tagpass\")) {\n//\t\t\t\t\tsubComponent.getOptionByName(\"to_cep\").add(pluginToAdd.get)\n//\t\t\t\t}\n//\t\t\t}\n//\t\t\t\n//\t\t\t//TODO change tagpass\n\t\t\treturn null;\n\t\t} else {\n\t\t\tboolean pluginTypeSectionReached = false;\n\t\t\t\n\t\t\tfor (int i = 0; i < configComponents.size(); i++) {\n\t\t\t\tTelegrafConfigComponent component = configComponents.get(i);\n\t\t\t\tif (!pluginTypeSectionReached) {\n\t\t\t\t\tif (component.getType() == TelegrafComponentType.PLUGIN) {\n\t\t\t\t\t\tTelegrafPlugin plugin = (TelegrafPlugin) component;\n\t\t\t\t\t\tif (plugin.getPluginType() == pluginToAdd.getPluginType()) {\n\t\t\t\t\t\t\tpluginTypeSectionReached = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (component.getType() == TelegrafComponentType.HEADER) {\n\t\t\t\t\t\tTelegrafConfigHeader header = (TelegrafConfigHeader) component;\n\t\t\t\t\t\tif (header.getPluginType() == pluginToAdd.getPluginType()) {\n\t\t\t\t\t\t\tpluginTypeSectionReached = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tconfigComponents.add(i, TelegrafConfigComponent.createPluginSpacer());\n\t\t\t\t\tconfigComponents.add(i, pluginToAdd);\n\t\t\t\t\treturn pluginToAdd;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!pluginTypeSectionReached) {\n\t\t\t\t// TODO add header for new Plugin section\n\t\t\t}\n\t\t\tconfigComponents.add(configComponents.size() - 1, TelegrafConfigComponent.createPluginSpacer());\n\t\t\tconfigComponents.add(configComponents.size() - 1, pluginToAdd);\n\t\t\treturn pluginToAdd;\n\t\t}\n\t}",
"public interface QueryEnginePluginDescriptor extends PluginDescriptor {\n}",
"public interface PageTagMapper extends Mapper<PageTagDTO> {\n\n}",
"public interface RoutesProcessor {\n RoutesProcessor addRoute(Route route);\n}",
"public void register(IPartType partType, Collection<IAspect> aspects);",
"public void addToSteps(entity.LoadStep element);",
"public void testAssociation() {\n \t\tString ID1 = \"iu.1\";\n \t\tString IDF1 = \"iu.fragment.1\";\n \t\tIInstallableUnit iu1 = createEclipseIU(ID1);\n \t\tIInstallableUnit iuf1 = createBundleFragment(IDF1);\n \t\tProfileChangeRequest req = new ProfileChangeRequest(createProfile(getName()));\n \t\treq.addInstallableUnits(iu1, iuf1);\n \t\tcreateTestMetdataRepository(new IInstallableUnit[] {iu1, iuf1});\n \t\tIQueryable<IInstallableUnit> additions = createPlanner().getProvisioningPlan(req, null, null).getAdditions();\n \t\t{\n \t\t\tIterator<IInstallableUnit> iterator = additions.query(QueryUtil.createIUQuery(ID1), null).iterator();\n \t\t\tassertTrue(\"Solution contains IU \" + ID1, iterator.hasNext());\n \t\t\tIInstallableUnit iu = iterator.next();\n \t\t\tassertEquals(\"Number of attached fragments to IU \" + ID1, 1, iu.getFragments().size());\n \t\t\tassertEquals(\"Attached fragment to IU \" + ID1, IDF1, iu.getFragments().iterator().next().getId());\n \t\t}\n \t\t{\n \t\t\tIterator<IInstallableUnit> iterator = additions.query(QueryUtil.createIUQuery(IDF1), null).iterator();\n \t\t\tassertTrue(\"Solution contains IU \" + IDF1, iterator.hasNext());\n \t\t\tIInstallableUnit iu = iterator.next();\n \t\t\tassertEquals(\"Number of attached fragments to IU \" + IDF1, 0, iu.getFragments().size());\n \t\t}\n \t\t//\t\tResolutionHelper rh = new ResolutionHelper(new Hashtable(), null);\n \t\t//\t\tHashSet set = new HashSet();\n \t\t//\t\tset.add(iu1);\n \t\t//\t\tset.add(iu2);\n \t\t//\t\tCollection result = rh.attachCUs(set);\n \t}",
"gov.nih.nlm.ncbi.www.CodeBreakDocument.CodeBreak.Aa addNewAa();",
"public interface MhcCityExtMapper extends MhcCityMapper {\n\n}",
"public void addInstruction(){\n\n }",
"private String mapElement(IRI iri, int elementType, String mappingId) {\n if (this.vocMappings.containsKey(iri.stringValue())) {\n return this.vocMappings.get(iri.stringValue());\n } else {\n //if no mapping defined, default to 'IGNORE'\n return applyCapitalisation(iri.getLocalName(), elementType);\n }\n }",
"public void preRegistration(InjectContainer injectContainer) {\n }",
"public void addAIObject(String id, AIObject aiObject) {\n if (aiObjects.containsKey(id)) {\n throw new IllegalStateException(\"AIObject already created: \" + id);\n }\n if (aiObject == null) {\n throw new NullPointerException(\"aiObject == null\");\n }\n aiObjects.put(id, aiObject);\n }",
"public static void addItinerary(Itinerary objItinerary) {\r\n if (!itineraryMap.containsValue(objItinerary)) {\r\n itineraryMap.put(objItinerary.getId(), objItinerary);\r\n }\r\n }",
"public void addAOI22X1(List<String> signals, HashMap<String, Gate> hm){\n\t\tString intermediateOne = \"AOI22X1_\" + intermediateCount++ + \"_out\";\n\t\tsuper.addAnd(signals.get(0), signals.get(1), intermediateOne, hm);\n\t\t\n\t\t//AND2 GATE\n\t\tString intermediateTwo = \"AOI22X1_\" + intermediateCount++ + \"_out\";\n\t\tsuper.addAnd(signals.get(2), signals.get(3), intermediateTwo, hm);\n\t\t\n\t\t//NOR GATE\n\t\tsuper.addNor(intermediateOne, intermediateTwo, signals.get(4), hm);\n\t}",
"public void addNodeFilter (INodeFilter filter);",
"public void startPlugin() {\n\t\t// add a new ResourceChangeListener\n\t\tCheops.getInstance().addResourceChangeListener();\n\t}",
"private void addProvider(\n String elementName,\n String namespace,\n Class<?> provider)\n {\n // Attempt to load the provider class and then create\n // a new instance if it's an IQProvider. Otherwise, if it's\n // an IQ class, add the class object itself, then we'll use\n // reflection later to create instances of the class.\n try\n {\n // Add the provider to the map.\n if (IQProvider.class.isAssignableFrom(provider))\n {\n addIQProvider(elementName, namespace, provider.newInstance());\n }\n else if (IQ.class.isAssignableFrom(provider))\n {\n addIQProvider(elementName, namespace, provider);\n }\n }\n catch (Throwable t)\n {\n logger.error(\"Error adding iq provider.\", t);\n }\n }",
"public interface InsertMapper<T, K> extends\n InsertAllMapper<T, K>,\n InsertSelectiveMapper<T, K> {\n}",
"public void visitALOAD(ALOAD o){\n\t\t//visitLoadInstruction(LoadInstruction) is called before.\n\t\t\n\t\t// Nothing else needs to be done here.\n\t}",
"public IAspect register(IPartType partType, IAspect aspect);",
"public final EObject entryRulePrimitiveParameterMapping() throws RecognitionException {\n EObject current = null;\n\n EObject iv_rulePrimitiveParameterMapping = null;\n\n\n try {\n // InternalMappingDsl.g:888:66: (iv_rulePrimitiveParameterMapping= rulePrimitiveParameterMapping EOF )\n // InternalMappingDsl.g:889:2: iv_rulePrimitiveParameterMapping= rulePrimitiveParameterMapping EOF\n {\n newCompositeNode(grammarAccess.getPrimitiveParameterMappingRule()); \n pushFollow(FOLLOW_1);\n iv_rulePrimitiveParameterMapping=rulePrimitiveParameterMapping();\n\n state._fsp--;\n\n current =iv_rulePrimitiveParameterMapping; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }",
"public interface DataImporter {\t\n\t\n\t/**\n\t * Abstract method used by plugins system.\n\t * This method is called when \"load XXXX using PLUGIN_NAME(PARAMS)\"\n\t * is executed in Cli.\n\t * \n\t * @param modname destination of import\n\t * @param data must contain data to be interpreted\n\t * @param params params to be parsed by importer\n\t * @throws FilterException\n\t */\n\tpublic void importData(String modname, String data, String params) throws FilterException;\n\n\t/**\n\t * Imports into a given object. Source of import is given in specific ImportFilter constructor, which is depending\n\t * on concrete implementation. This method may be called only once after filter creation. \n\t * \n\t * @param parent object inside which objects will be imported\n\t * @return returns OID of a newly created object \n\t * @throws DatabaseException\n\t * @throws FilterException\n\t * @throws ShadowObjectException \n\t */\n\tOID [] importInto(OID parent) throws DatabaseException, FilterException, ShadowObjectException;\n}",
"public AIA(AI7 ai7, Context context, ActionProvider actionProvider) {\n super(context);\n this.A01 = ai7;\n this.A00 = actionProvider;\n }",
"protected void postProcess(HRegionInfo hri) throws IOException {\n // do nothing by default\n }",
"public Map<String, PhiFunction> copyAddPhiMap(){\n Map<String, PhiFunction> current_phi_map = this.ssa_stack.peek();\n Map<String, PhiFunction> new_phi_map = new HashMap<String, PhiFunction>();\n for(PhiFunction phi : current_phi_map.values()){\n new_phi_map.put(phi.id, (PhiFunction)phi.clone());\n }\n this.ssa_stack.push(new_phi_map);\n return new_phi_map;\n }"
]
| [
"0.4839917",
"0.48224744",
"0.48144147",
"0.4770598",
"0.4713821",
"0.46981183",
"0.46773106",
"0.46547723",
"0.4627584",
"0.46249092",
"0.46220312",
"0.45874792",
"0.45662904",
"0.45549068",
"0.45529234",
"0.45482978",
"0.45272166",
"0.4507689",
"0.45028484",
"0.44924062",
"0.4489454",
"0.44866404",
"0.44858578",
"0.44772142",
"0.44705832",
"0.44683185",
"0.4463564",
"0.44370335",
"0.4428136",
"0.44244385",
"0.44241753",
"0.44167313",
"0.44096088",
"0.4409168",
"0.43939352",
"0.43808657",
"0.43777183",
"0.43668276",
"0.43309706",
"0.43299463",
"0.43250176",
"0.43060163",
"0.4304454",
"0.429774",
"0.42883173",
"0.4283727",
"0.4282034",
"0.42794508",
"0.42707816",
"0.42701373",
"0.426321",
"0.42544702",
"0.4251308",
"0.42415524",
"0.42307037",
"0.42249975",
"0.422457",
"0.42238694",
"0.42235464",
"0.42185262",
"0.42157823",
"0.42134294",
"0.42133075",
"0.42093062",
"0.42090753",
"0.42049858",
"0.41994482",
"0.4195581",
"0.41954574",
"0.4191817",
"0.4186309",
"0.41847742",
"0.41844296",
"0.41813713",
"0.4180411",
"0.4177891",
"0.41768137",
"0.41761914",
"0.41755256",
"0.41716808",
"0.4170624",
"0.4169808",
"0.4162938",
"0.41620857",
"0.41602957",
"0.4159439",
"0.41585785",
"0.4154914",
"0.4149578",
"0.41465288",
"0.414564",
"0.4140605",
"0.41392908",
"0.41347656",
"0.41343534",
"0.4130446",
"0.41303155",
"0.412991",
"0.412584",
"0.41233727"
]
| 0.70359236 | 0 |
Checks whether all IA's can be deployed of Implementation | boolean isValid() {
if (this.nodeImpl != null) {
for (AbstractImplementationArtifact ia : this.nodeImpl.getImplementationArtifacts()) {
boolean matched = false;
for (AbstractImplementationArtifact handledIa : this.ias) {
if (ia.equals(handledIa)) {
matched = true;
}
}
if (!matched) {
return false;
}
}
return true;
} else {
for (AbstractImplementationArtifact ia : this.relationImpl.getImplementationArtifacts()) {
boolean matched = false;
for (AbstractImplementationArtifact handledIa : this.ias) {
if (ia.equals(handledIa)) {
matched = true;
}
}
if (!matched) {
return false;
}
}
return true;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic boolean canBeContainedInto(IAlgoContainer algoContainer) {\n\t\treturn false;\n\t}",
"boolean isValid(String interfaceName, String operationName) {\n\t\tif (this.nodeImpl != null) {\n\t\t\t\n\t\t\tfor (AbstractImplementationArtifact ia : this.nodeImpl.getImplementationArtifacts()) {\n\t\t\t\tif (ia.getInterfaceName() != interfaceName) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (ia.getOperationName() != null && ia.getOperationName() != operationName) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tboolean matched = false;\n\t\t\t\tfor (AbstractImplementationArtifact handledIa : this.ias) {\n\t\t\t\t\tif (ia.equals(handledIa)) {\n\t\t\t\t\t\tmatched = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!matched) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t} else {\n\t\t\t\n\t\t\tfor (AbstractImplementationArtifact ia : this.relationImpl.getImplementationArtifacts()) {\n\t\t\t\tif (ia.getInterfaceName() != interfaceName) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (ia.getOperationName() != null && ia.getOperationName() != operationName) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tboolean matched = false;\n\t\t\t\tfor (AbstractImplementationArtifact handledIa : this.ias) {\n\t\t\t\t\tif (ia.equals(handledIa)) {\n\t\t\t\t\t\tmatched = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!matched) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t}",
"private void checkIfInterface(ArrayList<CompilationUnit> compilationUnits) {\n for(CompilationUnit cu : compilationUnits) {\n List<TypeDeclaration> typeDeclarations = cu.getTypes();\n\n // actually, we assume there's only one TypeDeclaration in one CompilationUnit\n for(TypeDeclaration td : typeDeclarations) {\n mapIfInterface.put(td.getName(), ((ClassOrInterfaceDeclaration) td).isInterface());\n }\n }\n }",
"protected static boolean implementsAllIfaces(ClassInfo clazz,\n\t\t\tClassInfo[] ifaces, ClassInfo[] otherIfaces) {\n\t\tbig: for (int i = 0; i < otherIfaces.length; i++) {\n\t\t\tClassInfo iface = otherIfaces[i];\n\t\t\tif (clazz != null && iface.implementedBy(clazz))\n\t\t\t\tcontinue big;\n\t\t\tfor (int j = 0; j < ifaces.length; j++) {\n\t\t\t\tif (iface.implementedBy(ifaces[j]))\n\t\t\t\t\tcontinue big;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean isDeployed(){\n return !places.isEmpty();\n }",
"boolean supportsImplementation(String implementationId);",
"public static boolean isImplementationAvailable() {\r\n if (implementationAvailable == null) {\r\n try {\r\n getJavaxBeanValidatorFactory();\r\n implementationAvailable = true;\r\n } catch (Exception e) {\r\n implementationAvailable = false;\r\n }\r\n }\r\n return implementationAvailable;\r\n }",
"boolean hasHasDeployedAirbag();",
"public abstract boolean isAssignable();",
"public abstract boolean isUsable();",
"public abstract boolean hasInterface(String strInterfaceName_p);",
"public boolean hasIdentificationAlgorithms() {\n\n \n return identificationAlgorithms != null;\n\n }",
"public boolean isInterface();",
"private boolean interfaceImplementsInterface(AClass ith) {\n\t\tEnumeration e = getImplements();\n\t\twhile (e.hasMoreElements()) {\n\t\t\tAClass i = ((Type) e.nextElement()).getRefType();\n\t\t\tif (i == ith) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif (i.interfaceImplementsInterface(ith)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean checkInterface(Object obj) {\n return true;\n }",
"@Override\n public boolean isArchivable()\n {\n /* If the complaint is resolved, it is archivable */\n return resolved;\n }",
"boolean hasIsSupportComp();",
"private void testImplementAccessible(Component comp) {\n if (testSettings.accessibleInterface && !(comp instanceof Accessible)) {\n if (testSettings.AI_showingOnly){\n if(comp.isShowing())\n noAccess.add(comp);\n } else\n noAccess.add(comp);\n }\n }",
"Set<Condition> getDeclaredInstanceInvariantConditions();",
"boolean hasResolve();",
"public boolean canProvideEquipment(List<EquipmentType> equipment) {\n for (EquipmentType e : equipment) {\n if (!canProvideEquipment(e)) return false;\n }\n return true;\n }",
"private static boolean willGenerateExtentionFor(IInterfaceDefinition iDef, Environment base)\n \t{\n \t\treturn base.lookUpType(iDef.getName().getName()) != null && !isUtilityOrTemplateClass(iDef, base);\n \t}",
"@Override\n\t\tpublic boolean isValidSolution() {\n\t\t\treturn super.isValidSolution();\n\t\t}",
"boolean isApplicableForAllAssetTypes();",
"boolean hasSoftware();",
"boolean hasAll();",
"boolean hasAll();",
"private boolean checkUnreachedClassesForContainersAndSubclasses() {\n Iterator<EClass> iterator = unreachedClasses.iterator();\n while (iterator.hasNext()) {\n EClass eClass = iterator.next();\n\n if (grabIncomingContainments && addIfContainer(eClass) || grabSubClasses && addIfContainedSubClass(eClass)) {\n iterator.remove();\n return true;\n }\n }\n return false;\n }",
"boolean hasUses();",
"boolean isAchievable();",
"public boolean isKnown();",
"private boolean solutionChecker() {\n\t\t// TODO\n\t\treturn false;\n\n\t}",
"private static boolean willGenerateExtensionFor(IInterfaceDefinition iDef,\n\t\t\tEnvironment base)\n\t{\n\t\tIInterfaceDefinition overtureEquivalent = base.lookUpType(iDef.getName().getName());\n\t\tboolean hasSameTag = overtureEquivalent == null ? false\n\t\t\t\t: iDef.getName().getTag().equals(overtureEquivalent.getName().getTag());\n\t\treturn hasSameTag && !isUtilityOrTemplateClass(iDef, base);\n\t}",
"public interface IHardConstraint {\n\t\n\tpublic boolean isConstraintViolated(List<Job> jobs, List<Resource> resources, Plan plan);\n\t\t\n}",
"boolean hasUnknown();",
"public boolean isApplicable(ActionSchema a) {\n return this.getFluents().containsAll(a.getPrecondition());\n }",
"public interface IPlatform \n{\n /**\n * Main function of the interface. Returns the boolean representing if the given actor\n * can stand on it.\n * \n * @param a The entity to query\n */\n boolean canSupportEntity(Entity a);\n \n boolean bottomIsCollidable();\n}",
"@Test\n public void testAccessControlIsOnlyCheckedWhenNoProdDeploymentExists() {\n List<Host> hosts = createHosts(18, \"6.0.0\");\n\n List<ModelFactory> modelFactories = List.of(createHostedModelFactory(Version.fromString(\"6.0.0\")),\n createHostedModelFactory(Version.fromString(\"6.1.0\")),\n createHostedModelFactory(Version.fromString(\"6.2.0\")));\n\n DeployTester tester = createTester(hosts, modelFactories, prodZone, Clock.systemUTC());\n ApplicationId applicationId = tester.applicationId();\n // Deploy with oldest version\n tester.deployApp(\"src/test/apps/hosted/\", \"6.0.0\");\n assertEquals(9, tester.getAllocatedHostsOf(applicationId).getHosts().size());\n\n // Deploy with version that does not exist on hosts and with app package that has no write access control,\n // validation of access control should not be done, since the app is already deployed in prod\n tester.deployApp(\"src/test/apps/hosted-no-write-access-control\", \"6.1.0\");\n assertEquals(9, tester.getAllocatedHostsOf(applicationId).getHosts().size());\n }",
"boolean hasOccupation();",
"boolean hasOccupation();",
"boolean hasOccupation();",
"boolean hasOccupation();",
"boolean hasOccupation();",
"public abstract boolean isSatisfied();",
"interface ExternalModuleChecker {\n\t/**\n\t * To check is external-module registered well\n\t *\n\t * @param module module to check\n\t * @return true if registered well\n\t */\n\tboolean isValidModule(ExternalModule module);\n}",
"private boolean isWaterSupported(List<ClassDSLInformation> exannos) {\n\tfor (ClassDSLInformation annos : exannos) {\n\t if (!annos.isWaterSupported()) {\n\t\treturn false;\n\t }\n\t}\n\treturn true;\n }",
"boolean hasDeployedModel();",
"public boolean isEquivalent(IJavaImplementation JavaImplementationToCheck);",
"public boolean hasExceptions();",
"boolean isSetProbables();",
"public abstract boolean canUse();",
"public final boolean simulationHasProblems() {\n\t\tboolean result = false;\n\t\tfor (String mdl : executors.keySet()) {\n\t\t\tSubstructureExecutorI exe = executors.get(mdl);\n\t\t\tif (exe.iveGotProblems()) {\n\t\t\t\tlog.error(mdl + \" is no longer running\");\n\t\t\t\tresult = true;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"private boolean assertModelImplementation() {\r\n\t\tboolean isValid = assertNotEmpty(cmpCfg.getModelImplementation(),\r\n\t\t\t\tYValidationAspekt.IMPL_IS_MISSING);\r\n\t\tif (isValid) {\r\n\r\n\t\t\tfinal Class modelImpl = assertLoadingClass(cmpCfg.getModelImplementation(),\r\n\t\t\t\t\tYValidationAspekt.IMPL_NOT_LOADABLE);\r\n\r\n\t\t\tif (isValid = (modelImpl != null)) {\r\n\r\n\t\t\t\tif (!modelImpl.equals(cmpHandler.getModelImplementation())) {\r\n\t\t\t\t\tthrow new IllegalStateException(\"Model implementation class mismatch\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfinal Set<YValidationAspekt> _implErrors = this.validateImplementationClass(modelImpl);\r\n\r\n\t\t\t\tfor (final YValidationAspekt problem : _implErrors) {\r\n\t\t\t\t\tthis.addValidationProblem(problem);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn isValid;\r\n\t}",
"public boolean checkIfAnyUnsat() throws Exception{\n\t\t\n\t\tLogOutput.printAlways(\"\\nUNSATISFIABILITY\");\n\t\t\n\t\tlong initlocal = Calendar.getInstance().getTimeInMillis();\n\t\t\n\t\t\n\t\tint state;\n\t\tint num_class=0;\n\t\t\n\t\tfor (OWLClass cls: reasoner_access.getOntology().getClassesInSignature()){\n\t\t\t\n\t\t\tnum_class++;\n\t\t\t\n\t\t\tstate = reasoner_access.isSatisfiable_withTimeout(cls, 10);\n\t\t\t\n\t\t\tif (state == reasoner_access.UNSAT){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse if (state == reasoner_access.UNKNOWN){\n\t\t\t\tLogOutput.printAlways(\"\\t\" + cls.getIRI().toString() + \"- UNKNOWN SAT. Test: \" + num_class);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\tfin = Calendar.getInstance().getTimeInMillis();\n\t\t\n\t\tdouble time = (float)((double)fin-(double)initlocal)/1000.0;\n\t\t\n\t\treturn false;\n\t\t\n\t\t\n\t}",
"@Override\n\tpublic boolean canExecute(Collection<? extends EObject> selections) {\n\t\tfor (EObject eObject : selections) {\n\t\t\tif (!(eObject instanceof UnknowClass)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"private void assertCorrectnessOfConfiguration()\n/* */ {\n/* 453 */ for (Iterator localIterator1 = this.executablesByDeclaringType.entrySet().iterator(); localIterator1.hasNext();) { entry = (Map.Entry)localIterator1.next();\n/* 454 */ for (localIterator2 = this.executablesByDeclaringType.entrySet().iterator(); localIterator2.hasNext();) { otherEntry = (Map.Entry)localIterator2.next();\n/* 455 */ for (MethodConfigurationRule rule : this.rules) {\n/* 456 */ rule.apply((ConstrainedExecutable)entry.getValue(), (ConstrainedExecutable)otherEntry.getValue());\n/* */ }\n/* */ }\n/* */ }\n/* */ \n/* */ Map.Entry<Class<?>, ConstrainedExecutable> entry;\n/* */ \n/* */ Iterator localIterator2;\n/* */ Map.Entry<Class<?>, ConstrainedExecutable> otherEntry;\n/* */ }",
"boolean hasUnknown71();",
"@Override\n\tpublic boolean containsAll(Collection<?> c) {\n\t\tthrow new NotImplementedException(\"Not yet implemented\"); \n\t}",
"@Override\n\tprotected boolean isImplementationValid()\n\t{\n\t\treturn (this.amount > 0);\n\t}",
"boolean hasArch();",
"private boolean isAllTestsRun() {\n Collection<TestPackage> pkgs = getTestPackages();\n for (TestPackage pkg : pkgs) {\n if (!pkg.isAllTestsRun()) {\n return false;\n }\n }\n return true;\n }",
"boolean hasRegistry();",
"boolean hasI17();",
"public void checkIfProgramsAccesible(List<String> programList);",
"default boolean canFit(ItemStack stack) {\n return !InvTools.isEmpty(stack) && stream().anyMatch(inv -> {\n InventoryManipulator im = InventoryManipulator.get(inv);\n return im.canAddStack(stack);\n });\n }",
"private static boolean checkAlgae(Critter foo) throws InvalidCritterException {\n\t\tboolean x =false;\n\t\ttry {\n\t\t\tList<Critter> tmp = getInstances(\"assignment4.Algae\");\n\t\t\tif(!tmp.isEmpty()){\n\t\t\t\tx=true;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\tcatch(assignment4.InvalidCritterException e){\n\n\t\t\tthrow new InvalidCritterException(\"\");\n\t\t}\n\t\treturn x;\n\t}",
"public boolean hasAllAuxClasss(Collection auxClasssToCheck);",
"boolean isLayerPublished(Class<? extends LayerInterface> layerClass, String implName);",
"public boolean isCheckable() {\n/* 738 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"void check()\n {\n final ScopeSymbolValidator validator = new ScopeSymbolValidator();\n for (ServiceMethod method : methods)\n validator.validate(method.getName(), method);\n }",
"private void isValidBuild(List<ICard> build) {\n // count the number of free open piles\n int numFreeOpen = 0;\n for (IPile<ICard> pile : this.open) {\n if (pile.getPile().isEmpty()) {\n numFreeOpen++;\n }\n }\n // count the number of empty cascade piles\n int numFreeCascade = 0;\n for (IPile<ICard> pile : this.cascade) {\n if (pile.getPile().isEmpty()) {\n numFreeCascade++;\n }\n }\n // check that there are enough open intermediate slots\n if (build.size() > ((numFreeOpen + 1) * (int) Math.pow(2, numFreeCascade))) {\n throw new IllegalArgumentException(\"Build is invalid\");\n }\n }",
"private boolean checkDependenciesSatisfied() {\n\t\tLOGGER.trace(\"CheckDependenciesSatisfied: Start Checking\");\n\t\tfinal Collection<ModuleDependency> moduleDependencies = selfModule.getDependencies();\n\t\tif (moduleDependencies == null) {\n\t\t\treturn true;\n\t\t}\n\t\tfor (final ModuleDependency moduleDependency : moduleDependencies) {\n\t\t\tif (!peerDiscoveryService.getPeerRegistry().containsPeerWithType(moduleDependency.getModuleTypeId(), true)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public final boolean setup() {\n\t\tProgramDao progCfg = config.getFemProgramParameters().get(\n\t\t\t\tFemProgramType.OPENSEES);\n\t\tboolean result = true;\n\t\tfor (String fsc : config.getSubstructCfgs().keySet()) {\n\t\t\tSubstructureDao scfg = config.getSubstructCfgs().get(fsc);\n\t\t\tSubstructureExecutorI exe = new DynamicExecution(progCfg, scfg,\n\t\t\t\t\tconfigRootDir, workDir);\n\t\t\tresult = result && exe.setup();\n\t\t\texecutors.put(fsc, exe);\n\t\t}\n\t\treturn result;\n\t}",
"protected abstract boolean isSatisfiedBy(Design design, AUndertaking t);",
"@Test\n public void testHasAvailable2() {\n Pieces inv = new Pieces();\n boolean expResult = false;\n for (Color color : Color.values()) {\n for (Species species : Species.values()) {\n /*In next for, i is not increased, because the limit is reducing*/\n for (int i = 0; i < inv.getNbAnimals(color, species);) {\n inv.getAnimal(color, species);\n }\n }\n }\n boolean result = inv.hasAvailable();\n assertEquals(expResult, result);\n }",
"public boolean checkBuildings(){\n\t\tfor(Structure building : this.buildings){\n\t\t\tif(!building.isDestroyed()){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"private void validateDirectInterfaces(Class paramClass) throws IDLTypeException {\n/* 520 */ Class[] arrayOfClass = paramClass.getInterfaces();\n/* */ \n/* 522 */ if (arrayOfClass.length < 2) {\n/* */ return;\n/* */ }\n/* */ \n/* 526 */ HashSet<String> hashSet1 = new HashSet();\n/* 527 */ HashSet<String> hashSet2 = new HashSet();\n/* */ \n/* 529 */ for (byte b = 0; b < arrayOfClass.length; b++) {\n/* 530 */ Class clazz = arrayOfClass[b];\n/* 531 */ Method[] arrayOfMethod = clazz.getMethods();\n/* */ \n/* */ \n/* */ \n/* */ \n/* 536 */ hashSet2.clear();\n/* 537 */ for (byte b1 = 0; b1 < arrayOfMethod.length; b1++) {\n/* 538 */ hashSet2.add(arrayOfMethod[b1].getName());\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 543 */ for (String str : hashSet2) {\n/* */ \n/* 545 */ if (hashSet1.contains(str)) {\n/* 546 */ String str1 = \"Class \" + paramClass + \" inherits method \" + str + \" from multiple direct interfaces.\";\n/* */ \n/* 548 */ throw new IDLTypeException(str1);\n/* */ } \n/* 550 */ hashSet1.add(str);\n/* */ } \n/* */ } \n/* */ }",
"private boolean isAllAreaAchievable() throws ReachabilityException {\n\t\t\n\t\t// mark all points that the player should reach as 1, else as 0\n\t\tint[][] tempMap = new int[height][width];\n\t\tfor (int i = 0; i < height; i++) {\n\t\t\tfor (int j = 0; j < width; j++) {\n\t\t\t\tif (mapElementArray[i][j] instanceof Item\n\t\t\t\t\t\t|| mapElementArray[i][j] instanceof Teleporter\n\t\t\t\t\t\t|| mapElementArray[i][j] instanceof PlayerSpawnPoint)\n\t\t\t\t\ttempMap[i][j] = 1;\n\t\t\t\telse\n\t\t\t\t\ttempMap[i][j] = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//try to reach all area\n\t\treachAllValidPoint(tempMap, aPlayerSpawnPointRow, aPlayerSpawnPointCol);\n\t\t\n\t\t//check if all area have been reached\n\t\tint unreachablePoint = 0;\n\t\tfor (int i = 0; i < height; i++) {\n\t\t\tfor (int j = 0; j < width; j++) {\n\t\t\t\tif (tempMap[i][j] == 1) {\n\t\t\t\t\tunreachablePoint++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n//\t\ttry {\n\t\t\tif (unreachablePoint > 0) {\n\t\t\t\tSystem.out.println(unreachablePoint + \" points are unreachable\");\n\t\t\t\tthrow new ReachabilityException();\n\t\t\t}else {\n\t\t\t\treturn true;\n\t\t\t}\n\t/*\t} catch (ReachabilityException e) {\n\t\t\tSystem.out.println(e);\n\t\t\t//print out map with invalid area\n\t\t\tfor (int i = 0; i < height; i++) {\n\t\t\t\tfor (int j = 0; j <width; j++) {\n\t\t\t\t\tSystem.out.print(tempMap[i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\treturn false;\n\t\t}*/\n\n\t}",
"boolean hasInstance();",
"boolean isDeclaredInInterface() {\n return (declaringClass != null) && (declaringClass.isInterface());\n }",
"boolean hasUnknown6();",
"boolean hasUnknown6();",
"private boolean isMultipleDeploymentAllowed(String aDescPath, String aCpName, boolean isConsumer)\n throws Exception {\n OperationalProperties op = null;\n // Parse the descriptor to access Operational Properties\n ResourceSpecifier resourceSpecifier = cpeFactory.getSpecifier(new File(aDescPath).toURL());\n if (resourceSpecifier != null && resourceSpecifier instanceof ResourceCreationSpecifier) {\n ResourceMetaData md = ((ResourceCreationSpecifier) resourceSpecifier).getMetaData();\n if (md instanceof ProcessingResourceMetaData) {\n op = ((ProcessingResourceMetaData) md).getOperationalProperties();\n if (op == null) {\n // Operational Properties not defined, so use defaults\n if (isConsumer) {\n return false; // the default for CasConsumer\n }\n return true; // default for AEs\n }\n return op.isMultipleDeploymentAllowed();\n }\n }\n throw new ResourceConfigurationException(ResourceInitializationException.NOT_A_CAS_PROCESSOR,\n new Object[] { aCpName, \"<unknown>\", aDescPath });\n\n }",
"boolean isInternal();",
"@Override\r\n\tpublic boolean canExecute(ICustomContext context) {\n\t\tboolean ret = false;\r\n\t\tPictogramElement[] pes = context.getPictogramElements();\r\n\t\tif (pes != null && pes.length == 1) {\r\n\t\t\tObject bo = getBusinessObjectForPictogramElement(pes[0]);\r\n\t\t\tif (bo instanceof Interface) {\r\n\t\t\t\tret = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ret;\r\n\t}",
"private void CheckStructureIntegrity() {\n int size = 0;\n for (Module mod : modules) {\n size += mod.getAddresses().size();\n logger.info(\"BBS : {} Module {}\", mod.getAddresses().size(), mod.getName());\n }\n logger.info(\"Total BBS : {}\", size);\n }",
"IInterfaceDefinition[] resolveImplementedInterfaces(ICompilerProject project);",
"@Override\n public List<AlgorithmClass> getAllImplementations() {\n return Arrays.asList(mAllImplementations);\n }",
"boolean hasBuild();",
"protected boolean checkAssignable(ErrorList errlist)\n throws CompilerException\n {\n return true;\n }",
"@Override\r\n public boolean isSatisfied(Configuration cfg) {\r\n Set<Node> firstNodes = new HashSet<Node>();\r\n Set<Node> secondNodes = new HashSet<Node>();\r\n if (getFirstSet().size() == 0 || getSecondSet().size() == 0) {\r\n //FIXME debug log VJob.logger.error(this.toString() + \": Some sets of virtual machines are empty\");\r\n return false;\r\n }\r\n\r\n for (VirtualMachine vm : getFirstSet()) {\r\n if (cfg.isRunning(vm)) {\r\n firstNodes.add(cfg.getLocation(vm));\r\n }\r\n }\r\n for (VirtualMachine vm : getSecondSet()) {\r\n if (cfg.isRunning(vm)) {\r\n secondNodes.add(cfg.getLocation(vm));\r\n }\r\n }\r\n\r\n for (Node n : firstNodes) {\r\n if (secondNodes.contains(n)) {\r\n \tManagedElementList<Node> ns = new SimpleManagedElementList<Node>();\r\n ns.addAll(firstNodes);\r\n ns.retainAll(secondNodes);\r\n //FIXME debug log VJob.logger.error(this.toString() + \": Nodes host VMs of the two groups: \" + ns);\r\n return false;\r\n }\r\n }\r\n for (Node n : secondNodes) {\r\n if (firstNodes.contains(n)) {\r\n \tManagedElementList<Node> ns = new SimpleManagedElementList<Node>();\r\n ns.addAll(secondNodes);\r\n ns.retainAll(firstNodes);\r\n //FIXME debug log VJob.logger.error(this.toString() + \": Nodes host VMs of the two groups: \" + ns);\r\n return false;\r\n }\r\n }\r\n return true;\r\n }",
"boolean internal();",
"private void checkDeclaredExceptionsMatch() {\n\t\tfor (Map.Entry<Method, AssistedConstructor<?>> entry : factoryMethodToConstructor.entrySet()) {\n\t\t\tfor (Class<?> constructorException : entry.getValue().getDeclaredExceptions()) {\n\t\t\t\tif (!isConstructorExceptionCompatibleWithFactoryExeception(constructorException, entry.getKey()\n\t\t\t\t\t\t.getExceptionTypes())) {\n\t\t\t\t\tthrow newConfigurationException(\"Constructor %s declares an exception, but no compatible \"\n\t\t\t\t\t\t\t+ \"exception is thrown by the factory method %s\", entry.getValue(), entry.getKey());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"boolean hasUnknown7();",
"private boolean checkResolve(BundleImpl b) {\n ArrayList okImports = new ArrayList();\n if (framework.perm.missingMandatoryPackagePermissions(b.bpkgs, okImports) == null &&\n checkBundleSingleton(b) == null) {\n HashSet oldTempResolved = (HashSet)tempResolved.clone();\n HashMap oldTempProvider = (HashMap)tempProvider.clone();\n HashMap oldTempRequired = (HashMap)tempRequired.clone();\n HashSet oldTempBlackList = (HashSet)tempBlackList.clone();\n tempResolved.add(b);\n if (checkRequireBundle(b) == null) {\n List r = resolvePackages(okImports.iterator());\n if (r.size() == 0) {\n return true;\n }\n }\n tempResolved = oldTempResolved;\n tempProvider = oldTempProvider;\n tempRequired = oldTempRequired;\n tempBlackList = oldTempBlackList;\n }\n return false;\n }",
"private IInstallableUnit[] validateInput(IInstallableUnit[] ius) {\n \t\tMap versions = new HashMap();\n \t\tList toRemove = new ArrayList();\n \t\tArrayList applicable = new ArrayList(ius.length);\n \t\tfor (int i = 0; i < ius.length; i++) {\n \t\t\tIInstallableUnit iu = ius[i];\n \t\t\tif (isApplicable(iu.getFilter())) {\n \t\t\t\tapplicable.add(iu);\n \t\t\t\t// if we have a singleton bundle, only try to install the highest version\n \t\t\t\tif (iu.isSingleton()) {\n \t\t\t\t\tString id = iu.getId();\n \t\t\t\t\tIInstallableUnit oldIU = (IInstallableUnit) versions.get(id);\n \t\t\t\t\tif (oldIU == null) {\n \t\t\t\t\t\tversions.put(id, iu);\n \t\t\t\t\t} else {\n \t\t\t\t\t\tIInstallableUnit removed = iu;\n \t\t\t\t\t\tif (iu.getVersion().compareTo(oldIU.getVersion()) > 0) {\n \t\t\t\t\t\t\tversions.put(id, iu);\n \t\t\t\t\t\t\tremoved = oldIU;\n \t\t\t\t\t\t}\n \t\t\t\t\t\ttoRemove.add(removed);\n \t\t\t\t\t\tString msg = NLS.bind(\"{0} version {1} cannot be installed because it is marked as a singleton and a higher version has been found.\", id, removed.getVersion()); //$NON-NLS-1$\n \t\t\t\t\t\tresult.add(new Status(IStatus.WARNING, DirectorActivator.PI_DIRECTOR, msg, null));\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t} else {\n \t\t\t\tString msg = NLS.bind(\"{0} cannot be installed because its filter is not satisfied in this environment.\", ius[i].getId()); //$NON-NLS-1$\n \t\t\t\tresult.add(new Status(IStatus.WARNING, DirectorActivator.PI_DIRECTOR, msg, null));\n \t\t\t}\n \t\t}\n \t\tapplicable.removeAll(toRemove);\n \t\treturn (IInstallableUnit[]) applicable.toArray(new IInstallableUnit[applicable.size()]);\n \t}",
"Set<Condition> getInstanceInvariantConditions();",
"public abstract boolean isNetbeansKenaiRegistered();",
"@Override\n\tpublic boolean isImplemented() {\n\t\treturn false;\n\t}",
"@ImplementationClass(get=SensoryTest.class)\n\n@AssignableSubInterfaces(get={IAdhesiveRemovalTest.class, IHindpawSensationTest.class, })\n public interface ISensoryTest\n extends IFunctionalTest{\n\n}"
]
| [
"0.6156228",
"0.60459554",
"0.5848657",
"0.58339185",
"0.5686509",
"0.5657187",
"0.56163526",
"0.5593819",
"0.55441827",
"0.54547596",
"0.5450937",
"0.5446229",
"0.54310036",
"0.5430528",
"0.5423071",
"0.5420984",
"0.5413596",
"0.5402467",
"0.5396256",
"0.5362761",
"0.5360582",
"0.53514665",
"0.5344119",
"0.53422827",
"0.5330004",
"0.53221023",
"0.53221023",
"0.53188336",
"0.5305356",
"0.5304711",
"0.5271438",
"0.5258713",
"0.5257125",
"0.5256985",
"0.5255776",
"0.5254985",
"0.5254707",
"0.52491826",
"0.52373415",
"0.52373415",
"0.52373415",
"0.52373415",
"0.52373415",
"0.5215644",
"0.52000225",
"0.5195528",
"0.5188582",
"0.51826763",
"0.5180887",
"0.5180831",
"0.51769555",
"0.51751006",
"0.5173146",
"0.51729476",
"0.5162897",
"0.51506835",
"0.5140352",
"0.51341707",
"0.51214945",
"0.5104493",
"0.5097726",
"0.5095595",
"0.50940216",
"0.50900227",
"0.5082838",
"0.5081981",
"0.5081951",
"0.5079732",
"0.5061364",
"0.50572383",
"0.5056715",
"0.5054841",
"0.50546205",
"0.50495374",
"0.50491554",
"0.5047236",
"0.50456804",
"0.50403154",
"0.50391924",
"0.5033794",
"0.5030166",
"0.5030166",
"0.5023888",
"0.50224113",
"0.50211936",
"0.5020394",
"0.5013356",
"0.5012629",
"0.5011247",
"0.50015026",
"0.5000991",
"0.49972478",
"0.49922487",
"0.49884927",
"0.49802136",
"0.49707657",
"0.49693403",
"0.49668923",
"0.49627545",
"0.49621007"
]
| 0.6829453 | 0 |
Checks whether all IA's can be deployed of Implementation | boolean isValid(String interfaceName, String operationName) {
if (this.nodeImpl != null) {
for (AbstractImplementationArtifact ia : this.nodeImpl.getImplementationArtifacts()) {
if (ia.getInterfaceName() != interfaceName) {
continue;
}
if (ia.getOperationName() != null && ia.getOperationName() != operationName) {
continue;
}
boolean matched = false;
for (AbstractImplementationArtifact handledIa : this.ias) {
if (ia.equals(handledIa)) {
matched = true;
}
}
if (!matched) {
return false;
}
}
return true;
} else {
for (AbstractImplementationArtifact ia : this.relationImpl.getImplementationArtifacts()) {
if (ia.getInterfaceName() != interfaceName) {
continue;
}
if (ia.getOperationName() != null && ia.getOperationName() != operationName) {
continue;
}
boolean matched = false;
for (AbstractImplementationArtifact handledIa : this.ias) {
if (ia.equals(handledIa)) {
matched = true;
}
}
if (!matched) {
return false;
}
}
return true;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isValid() {\n\t\tif (this.nodeImpl != null) {\n\t\t\t\n\t\t\tfor (AbstractImplementationArtifact ia : this.nodeImpl.getImplementationArtifacts()) {\n\t\t\t\tboolean matched = false;\n\t\t\t\tfor (AbstractImplementationArtifact handledIa : this.ias) {\n\t\t\t\t\tif (ia.equals(handledIa)) {\n\t\t\t\t\t\tmatched = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!matched) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t} else {\n\t\t\t\n\t\t\tfor (AbstractImplementationArtifact ia : this.relationImpl.getImplementationArtifacts()) {\n\t\t\t\tboolean matched = false;\n\t\t\t\tfor (AbstractImplementationArtifact handledIa : this.ias) {\n\t\t\t\t\tif (ia.equals(handledIa)) {\n\t\t\t\t\t\tmatched = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!matched) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t}",
"@Override\n\tpublic boolean canBeContainedInto(IAlgoContainer algoContainer) {\n\t\treturn false;\n\t}",
"private void checkIfInterface(ArrayList<CompilationUnit> compilationUnits) {\n for(CompilationUnit cu : compilationUnits) {\n List<TypeDeclaration> typeDeclarations = cu.getTypes();\n\n // actually, we assume there's only one TypeDeclaration in one CompilationUnit\n for(TypeDeclaration td : typeDeclarations) {\n mapIfInterface.put(td.getName(), ((ClassOrInterfaceDeclaration) td).isInterface());\n }\n }\n }",
"protected static boolean implementsAllIfaces(ClassInfo clazz,\n\t\t\tClassInfo[] ifaces, ClassInfo[] otherIfaces) {\n\t\tbig: for (int i = 0; i < otherIfaces.length; i++) {\n\t\t\tClassInfo iface = otherIfaces[i];\n\t\t\tif (clazz != null && iface.implementedBy(clazz))\n\t\t\t\tcontinue big;\n\t\t\tfor (int j = 0; j < ifaces.length; j++) {\n\t\t\t\tif (iface.implementedBy(ifaces[j]))\n\t\t\t\t\tcontinue big;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean isDeployed(){\n return !places.isEmpty();\n }",
"boolean supportsImplementation(String implementationId);",
"public static boolean isImplementationAvailable() {\r\n if (implementationAvailable == null) {\r\n try {\r\n getJavaxBeanValidatorFactory();\r\n implementationAvailable = true;\r\n } catch (Exception e) {\r\n implementationAvailable = false;\r\n }\r\n }\r\n return implementationAvailable;\r\n }",
"boolean hasHasDeployedAirbag();",
"public abstract boolean isAssignable();",
"public abstract boolean isUsable();",
"public abstract boolean hasInterface(String strInterfaceName_p);",
"public boolean hasIdentificationAlgorithms() {\n\n \n return identificationAlgorithms != null;\n\n }",
"public boolean isInterface();",
"private boolean interfaceImplementsInterface(AClass ith) {\n\t\tEnumeration e = getImplements();\n\t\twhile (e.hasMoreElements()) {\n\t\t\tAClass i = ((Type) e.nextElement()).getRefType();\n\t\t\tif (i == ith) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif (i.interfaceImplementsInterface(ith)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean checkInterface(Object obj) {\n return true;\n }",
"@Override\n public boolean isArchivable()\n {\n /* If the complaint is resolved, it is archivable */\n return resolved;\n }",
"boolean hasIsSupportComp();",
"private void testImplementAccessible(Component comp) {\n if (testSettings.accessibleInterface && !(comp instanceof Accessible)) {\n if (testSettings.AI_showingOnly){\n if(comp.isShowing())\n noAccess.add(comp);\n } else\n noAccess.add(comp);\n }\n }",
"Set<Condition> getDeclaredInstanceInvariantConditions();",
"boolean hasResolve();",
"public boolean canProvideEquipment(List<EquipmentType> equipment) {\n for (EquipmentType e : equipment) {\n if (!canProvideEquipment(e)) return false;\n }\n return true;\n }",
"private static boolean willGenerateExtentionFor(IInterfaceDefinition iDef, Environment base)\n \t{\n \t\treturn base.lookUpType(iDef.getName().getName()) != null && !isUtilityOrTemplateClass(iDef, base);\n \t}",
"@Override\n\t\tpublic boolean isValidSolution() {\n\t\t\treturn super.isValidSolution();\n\t\t}",
"boolean isApplicableForAllAssetTypes();",
"boolean hasSoftware();",
"boolean hasAll();",
"boolean hasAll();",
"private boolean checkUnreachedClassesForContainersAndSubclasses() {\n Iterator<EClass> iterator = unreachedClasses.iterator();\n while (iterator.hasNext()) {\n EClass eClass = iterator.next();\n\n if (grabIncomingContainments && addIfContainer(eClass) || grabSubClasses && addIfContainedSubClass(eClass)) {\n iterator.remove();\n return true;\n }\n }\n return false;\n }",
"boolean hasUses();",
"boolean isAchievable();",
"public boolean isKnown();",
"private boolean solutionChecker() {\n\t\t// TODO\n\t\treturn false;\n\n\t}",
"private static boolean willGenerateExtensionFor(IInterfaceDefinition iDef,\n\t\t\tEnvironment base)\n\t{\n\t\tIInterfaceDefinition overtureEquivalent = base.lookUpType(iDef.getName().getName());\n\t\tboolean hasSameTag = overtureEquivalent == null ? false\n\t\t\t\t: iDef.getName().getTag().equals(overtureEquivalent.getName().getTag());\n\t\treturn hasSameTag && !isUtilityOrTemplateClass(iDef, base);\n\t}",
"public interface IHardConstraint {\n\t\n\tpublic boolean isConstraintViolated(List<Job> jobs, List<Resource> resources, Plan plan);\n\t\t\n}",
"boolean hasUnknown();",
"public boolean isApplicable(ActionSchema a) {\n return this.getFluents().containsAll(a.getPrecondition());\n }",
"public interface IPlatform \n{\n /**\n * Main function of the interface. Returns the boolean representing if the given actor\n * can stand on it.\n * \n * @param a The entity to query\n */\n boolean canSupportEntity(Entity a);\n \n boolean bottomIsCollidable();\n}",
"@Test\n public void testAccessControlIsOnlyCheckedWhenNoProdDeploymentExists() {\n List<Host> hosts = createHosts(18, \"6.0.0\");\n\n List<ModelFactory> modelFactories = List.of(createHostedModelFactory(Version.fromString(\"6.0.0\")),\n createHostedModelFactory(Version.fromString(\"6.1.0\")),\n createHostedModelFactory(Version.fromString(\"6.2.0\")));\n\n DeployTester tester = createTester(hosts, modelFactories, prodZone, Clock.systemUTC());\n ApplicationId applicationId = tester.applicationId();\n // Deploy with oldest version\n tester.deployApp(\"src/test/apps/hosted/\", \"6.0.0\");\n assertEquals(9, tester.getAllocatedHostsOf(applicationId).getHosts().size());\n\n // Deploy with version that does not exist on hosts and with app package that has no write access control,\n // validation of access control should not be done, since the app is already deployed in prod\n tester.deployApp(\"src/test/apps/hosted-no-write-access-control\", \"6.1.0\");\n assertEquals(9, tester.getAllocatedHostsOf(applicationId).getHosts().size());\n }",
"boolean hasOccupation();",
"boolean hasOccupation();",
"boolean hasOccupation();",
"boolean hasOccupation();",
"boolean hasOccupation();",
"public abstract boolean isSatisfied();",
"interface ExternalModuleChecker {\n\t/**\n\t * To check is external-module registered well\n\t *\n\t * @param module module to check\n\t * @return true if registered well\n\t */\n\tboolean isValidModule(ExternalModule module);\n}",
"private boolean isWaterSupported(List<ClassDSLInformation> exannos) {\n\tfor (ClassDSLInformation annos : exannos) {\n\t if (!annos.isWaterSupported()) {\n\t\treturn false;\n\t }\n\t}\n\treturn true;\n }",
"boolean hasDeployedModel();",
"public boolean isEquivalent(IJavaImplementation JavaImplementationToCheck);",
"public boolean hasExceptions();",
"boolean isSetProbables();",
"public abstract boolean canUse();",
"public final boolean simulationHasProblems() {\n\t\tboolean result = false;\n\t\tfor (String mdl : executors.keySet()) {\n\t\t\tSubstructureExecutorI exe = executors.get(mdl);\n\t\t\tif (exe.iveGotProblems()) {\n\t\t\t\tlog.error(mdl + \" is no longer running\");\n\t\t\t\tresult = true;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"public boolean checkIfAnyUnsat() throws Exception{\n\t\t\n\t\tLogOutput.printAlways(\"\\nUNSATISFIABILITY\");\n\t\t\n\t\tlong initlocal = Calendar.getInstance().getTimeInMillis();\n\t\t\n\t\t\n\t\tint state;\n\t\tint num_class=0;\n\t\t\n\t\tfor (OWLClass cls: reasoner_access.getOntology().getClassesInSignature()){\n\t\t\t\n\t\t\tnum_class++;\n\t\t\t\n\t\t\tstate = reasoner_access.isSatisfiable_withTimeout(cls, 10);\n\t\t\t\n\t\t\tif (state == reasoner_access.UNSAT){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse if (state == reasoner_access.UNKNOWN){\n\t\t\t\tLogOutput.printAlways(\"\\t\" + cls.getIRI().toString() + \"- UNKNOWN SAT. Test: \" + num_class);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\tfin = Calendar.getInstance().getTimeInMillis();\n\t\t\n\t\tdouble time = (float)((double)fin-(double)initlocal)/1000.0;\n\t\t\n\t\treturn false;\n\t\t\n\t\t\n\t}",
"private boolean assertModelImplementation() {\r\n\t\tboolean isValid = assertNotEmpty(cmpCfg.getModelImplementation(),\r\n\t\t\t\tYValidationAspekt.IMPL_IS_MISSING);\r\n\t\tif (isValid) {\r\n\r\n\t\t\tfinal Class modelImpl = assertLoadingClass(cmpCfg.getModelImplementation(),\r\n\t\t\t\t\tYValidationAspekt.IMPL_NOT_LOADABLE);\r\n\r\n\t\t\tif (isValid = (modelImpl != null)) {\r\n\r\n\t\t\t\tif (!modelImpl.equals(cmpHandler.getModelImplementation())) {\r\n\t\t\t\t\tthrow new IllegalStateException(\"Model implementation class mismatch\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfinal Set<YValidationAspekt> _implErrors = this.validateImplementationClass(modelImpl);\r\n\r\n\t\t\t\tfor (final YValidationAspekt problem : _implErrors) {\r\n\t\t\t\t\tthis.addValidationProblem(problem);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn isValid;\r\n\t}",
"@Override\n\tpublic boolean canExecute(Collection<? extends EObject> selections) {\n\t\tfor (EObject eObject : selections) {\n\t\t\tif (!(eObject instanceof UnknowClass)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"private void assertCorrectnessOfConfiguration()\n/* */ {\n/* 453 */ for (Iterator localIterator1 = this.executablesByDeclaringType.entrySet().iterator(); localIterator1.hasNext();) { entry = (Map.Entry)localIterator1.next();\n/* 454 */ for (localIterator2 = this.executablesByDeclaringType.entrySet().iterator(); localIterator2.hasNext();) { otherEntry = (Map.Entry)localIterator2.next();\n/* 455 */ for (MethodConfigurationRule rule : this.rules) {\n/* 456 */ rule.apply((ConstrainedExecutable)entry.getValue(), (ConstrainedExecutable)otherEntry.getValue());\n/* */ }\n/* */ }\n/* */ }\n/* */ \n/* */ Map.Entry<Class<?>, ConstrainedExecutable> entry;\n/* */ \n/* */ Iterator localIterator2;\n/* */ Map.Entry<Class<?>, ConstrainedExecutable> otherEntry;\n/* */ }",
"boolean hasUnknown71();",
"@Override\n\tpublic boolean containsAll(Collection<?> c) {\n\t\tthrow new NotImplementedException(\"Not yet implemented\"); \n\t}",
"@Override\n\tprotected boolean isImplementationValid()\n\t{\n\t\treturn (this.amount > 0);\n\t}",
"boolean hasArch();",
"private boolean isAllTestsRun() {\n Collection<TestPackage> pkgs = getTestPackages();\n for (TestPackage pkg : pkgs) {\n if (!pkg.isAllTestsRun()) {\n return false;\n }\n }\n return true;\n }",
"boolean hasRegistry();",
"boolean hasI17();",
"public void checkIfProgramsAccesible(List<String> programList);",
"default boolean canFit(ItemStack stack) {\n return !InvTools.isEmpty(stack) && stream().anyMatch(inv -> {\n InventoryManipulator im = InventoryManipulator.get(inv);\n return im.canAddStack(stack);\n });\n }",
"private static boolean checkAlgae(Critter foo) throws InvalidCritterException {\n\t\tboolean x =false;\n\t\ttry {\n\t\t\tList<Critter> tmp = getInstances(\"assignment4.Algae\");\n\t\t\tif(!tmp.isEmpty()){\n\t\t\t\tx=true;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\tcatch(assignment4.InvalidCritterException e){\n\n\t\t\tthrow new InvalidCritterException(\"\");\n\t\t}\n\t\treturn x;\n\t}",
"public boolean hasAllAuxClasss(Collection auxClasssToCheck);",
"boolean isLayerPublished(Class<? extends LayerInterface> layerClass, String implName);",
"public boolean isCheckable() {\n/* 738 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"void check()\n {\n final ScopeSymbolValidator validator = new ScopeSymbolValidator();\n for (ServiceMethod method : methods)\n validator.validate(method.getName(), method);\n }",
"private void isValidBuild(List<ICard> build) {\n // count the number of free open piles\n int numFreeOpen = 0;\n for (IPile<ICard> pile : this.open) {\n if (pile.getPile().isEmpty()) {\n numFreeOpen++;\n }\n }\n // count the number of empty cascade piles\n int numFreeCascade = 0;\n for (IPile<ICard> pile : this.cascade) {\n if (pile.getPile().isEmpty()) {\n numFreeCascade++;\n }\n }\n // check that there are enough open intermediate slots\n if (build.size() > ((numFreeOpen + 1) * (int) Math.pow(2, numFreeCascade))) {\n throw new IllegalArgumentException(\"Build is invalid\");\n }\n }",
"private boolean checkDependenciesSatisfied() {\n\t\tLOGGER.trace(\"CheckDependenciesSatisfied: Start Checking\");\n\t\tfinal Collection<ModuleDependency> moduleDependencies = selfModule.getDependencies();\n\t\tif (moduleDependencies == null) {\n\t\t\treturn true;\n\t\t}\n\t\tfor (final ModuleDependency moduleDependency : moduleDependencies) {\n\t\t\tif (!peerDiscoveryService.getPeerRegistry().containsPeerWithType(moduleDependency.getModuleTypeId(), true)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public final boolean setup() {\n\t\tProgramDao progCfg = config.getFemProgramParameters().get(\n\t\t\t\tFemProgramType.OPENSEES);\n\t\tboolean result = true;\n\t\tfor (String fsc : config.getSubstructCfgs().keySet()) {\n\t\t\tSubstructureDao scfg = config.getSubstructCfgs().get(fsc);\n\t\t\tSubstructureExecutorI exe = new DynamicExecution(progCfg, scfg,\n\t\t\t\t\tconfigRootDir, workDir);\n\t\t\tresult = result && exe.setup();\n\t\t\texecutors.put(fsc, exe);\n\t\t}\n\t\treturn result;\n\t}",
"protected abstract boolean isSatisfiedBy(Design design, AUndertaking t);",
"@Test\n public void testHasAvailable2() {\n Pieces inv = new Pieces();\n boolean expResult = false;\n for (Color color : Color.values()) {\n for (Species species : Species.values()) {\n /*In next for, i is not increased, because the limit is reducing*/\n for (int i = 0; i < inv.getNbAnimals(color, species);) {\n inv.getAnimal(color, species);\n }\n }\n }\n boolean result = inv.hasAvailable();\n assertEquals(expResult, result);\n }",
"public boolean checkBuildings(){\n\t\tfor(Structure building : this.buildings){\n\t\t\tif(!building.isDestroyed()){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"private void validateDirectInterfaces(Class paramClass) throws IDLTypeException {\n/* 520 */ Class[] arrayOfClass = paramClass.getInterfaces();\n/* */ \n/* 522 */ if (arrayOfClass.length < 2) {\n/* */ return;\n/* */ }\n/* */ \n/* 526 */ HashSet<String> hashSet1 = new HashSet();\n/* 527 */ HashSet<String> hashSet2 = new HashSet();\n/* */ \n/* 529 */ for (byte b = 0; b < arrayOfClass.length; b++) {\n/* 530 */ Class clazz = arrayOfClass[b];\n/* 531 */ Method[] arrayOfMethod = clazz.getMethods();\n/* */ \n/* */ \n/* */ \n/* */ \n/* 536 */ hashSet2.clear();\n/* 537 */ for (byte b1 = 0; b1 < arrayOfMethod.length; b1++) {\n/* 538 */ hashSet2.add(arrayOfMethod[b1].getName());\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 543 */ for (String str : hashSet2) {\n/* */ \n/* 545 */ if (hashSet1.contains(str)) {\n/* 546 */ String str1 = \"Class \" + paramClass + \" inherits method \" + str + \" from multiple direct interfaces.\";\n/* */ \n/* 548 */ throw new IDLTypeException(str1);\n/* */ } \n/* 550 */ hashSet1.add(str);\n/* */ } \n/* */ } \n/* */ }",
"private boolean isAllAreaAchievable() throws ReachabilityException {\n\t\t\n\t\t// mark all points that the player should reach as 1, else as 0\n\t\tint[][] tempMap = new int[height][width];\n\t\tfor (int i = 0; i < height; i++) {\n\t\t\tfor (int j = 0; j < width; j++) {\n\t\t\t\tif (mapElementArray[i][j] instanceof Item\n\t\t\t\t\t\t|| mapElementArray[i][j] instanceof Teleporter\n\t\t\t\t\t\t|| mapElementArray[i][j] instanceof PlayerSpawnPoint)\n\t\t\t\t\ttempMap[i][j] = 1;\n\t\t\t\telse\n\t\t\t\t\ttempMap[i][j] = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//try to reach all area\n\t\treachAllValidPoint(tempMap, aPlayerSpawnPointRow, aPlayerSpawnPointCol);\n\t\t\n\t\t//check if all area have been reached\n\t\tint unreachablePoint = 0;\n\t\tfor (int i = 0; i < height; i++) {\n\t\t\tfor (int j = 0; j < width; j++) {\n\t\t\t\tif (tempMap[i][j] == 1) {\n\t\t\t\t\tunreachablePoint++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n//\t\ttry {\n\t\t\tif (unreachablePoint > 0) {\n\t\t\t\tSystem.out.println(unreachablePoint + \" points are unreachable\");\n\t\t\t\tthrow new ReachabilityException();\n\t\t\t}else {\n\t\t\t\treturn true;\n\t\t\t}\n\t/*\t} catch (ReachabilityException e) {\n\t\t\tSystem.out.println(e);\n\t\t\t//print out map with invalid area\n\t\t\tfor (int i = 0; i < height; i++) {\n\t\t\t\tfor (int j = 0; j <width; j++) {\n\t\t\t\t\tSystem.out.print(tempMap[i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\treturn false;\n\t\t}*/\n\n\t}",
"boolean hasInstance();",
"boolean isDeclaredInInterface() {\n return (declaringClass != null) && (declaringClass.isInterface());\n }",
"boolean hasUnknown6();",
"boolean hasUnknown6();",
"private boolean isMultipleDeploymentAllowed(String aDescPath, String aCpName, boolean isConsumer)\n throws Exception {\n OperationalProperties op = null;\n // Parse the descriptor to access Operational Properties\n ResourceSpecifier resourceSpecifier = cpeFactory.getSpecifier(new File(aDescPath).toURL());\n if (resourceSpecifier != null && resourceSpecifier instanceof ResourceCreationSpecifier) {\n ResourceMetaData md = ((ResourceCreationSpecifier) resourceSpecifier).getMetaData();\n if (md instanceof ProcessingResourceMetaData) {\n op = ((ProcessingResourceMetaData) md).getOperationalProperties();\n if (op == null) {\n // Operational Properties not defined, so use defaults\n if (isConsumer) {\n return false; // the default for CasConsumer\n }\n return true; // default for AEs\n }\n return op.isMultipleDeploymentAllowed();\n }\n }\n throw new ResourceConfigurationException(ResourceInitializationException.NOT_A_CAS_PROCESSOR,\n new Object[] { aCpName, \"<unknown>\", aDescPath });\n\n }",
"boolean isInternal();",
"@Override\r\n\tpublic boolean canExecute(ICustomContext context) {\n\t\tboolean ret = false;\r\n\t\tPictogramElement[] pes = context.getPictogramElements();\r\n\t\tif (pes != null && pes.length == 1) {\r\n\t\t\tObject bo = getBusinessObjectForPictogramElement(pes[0]);\r\n\t\t\tif (bo instanceof Interface) {\r\n\t\t\t\tret = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ret;\r\n\t}",
"private void CheckStructureIntegrity() {\n int size = 0;\n for (Module mod : modules) {\n size += mod.getAddresses().size();\n logger.info(\"BBS : {} Module {}\", mod.getAddresses().size(), mod.getName());\n }\n logger.info(\"Total BBS : {}\", size);\n }",
"IInterfaceDefinition[] resolveImplementedInterfaces(ICompilerProject project);",
"@Override\n public List<AlgorithmClass> getAllImplementations() {\n return Arrays.asList(mAllImplementations);\n }",
"boolean hasBuild();",
"protected boolean checkAssignable(ErrorList errlist)\n throws CompilerException\n {\n return true;\n }",
"@Override\r\n public boolean isSatisfied(Configuration cfg) {\r\n Set<Node> firstNodes = new HashSet<Node>();\r\n Set<Node> secondNodes = new HashSet<Node>();\r\n if (getFirstSet().size() == 0 || getSecondSet().size() == 0) {\r\n //FIXME debug log VJob.logger.error(this.toString() + \": Some sets of virtual machines are empty\");\r\n return false;\r\n }\r\n\r\n for (VirtualMachine vm : getFirstSet()) {\r\n if (cfg.isRunning(vm)) {\r\n firstNodes.add(cfg.getLocation(vm));\r\n }\r\n }\r\n for (VirtualMachine vm : getSecondSet()) {\r\n if (cfg.isRunning(vm)) {\r\n secondNodes.add(cfg.getLocation(vm));\r\n }\r\n }\r\n\r\n for (Node n : firstNodes) {\r\n if (secondNodes.contains(n)) {\r\n \tManagedElementList<Node> ns = new SimpleManagedElementList<Node>();\r\n ns.addAll(firstNodes);\r\n ns.retainAll(secondNodes);\r\n //FIXME debug log VJob.logger.error(this.toString() + \": Nodes host VMs of the two groups: \" + ns);\r\n return false;\r\n }\r\n }\r\n for (Node n : secondNodes) {\r\n if (firstNodes.contains(n)) {\r\n \tManagedElementList<Node> ns = new SimpleManagedElementList<Node>();\r\n ns.addAll(secondNodes);\r\n ns.retainAll(firstNodes);\r\n //FIXME debug log VJob.logger.error(this.toString() + \": Nodes host VMs of the two groups: \" + ns);\r\n return false;\r\n }\r\n }\r\n return true;\r\n }",
"boolean internal();",
"private void checkDeclaredExceptionsMatch() {\n\t\tfor (Map.Entry<Method, AssistedConstructor<?>> entry : factoryMethodToConstructor.entrySet()) {\n\t\t\tfor (Class<?> constructorException : entry.getValue().getDeclaredExceptions()) {\n\t\t\t\tif (!isConstructorExceptionCompatibleWithFactoryExeception(constructorException, entry.getKey()\n\t\t\t\t\t\t.getExceptionTypes())) {\n\t\t\t\t\tthrow newConfigurationException(\"Constructor %s declares an exception, but no compatible \"\n\t\t\t\t\t\t\t+ \"exception is thrown by the factory method %s\", entry.getValue(), entry.getKey());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"boolean hasUnknown7();",
"private boolean checkResolve(BundleImpl b) {\n ArrayList okImports = new ArrayList();\n if (framework.perm.missingMandatoryPackagePermissions(b.bpkgs, okImports) == null &&\n checkBundleSingleton(b) == null) {\n HashSet oldTempResolved = (HashSet)tempResolved.clone();\n HashMap oldTempProvider = (HashMap)tempProvider.clone();\n HashMap oldTempRequired = (HashMap)tempRequired.clone();\n HashSet oldTempBlackList = (HashSet)tempBlackList.clone();\n tempResolved.add(b);\n if (checkRequireBundle(b) == null) {\n List r = resolvePackages(okImports.iterator());\n if (r.size() == 0) {\n return true;\n }\n }\n tempResolved = oldTempResolved;\n tempProvider = oldTempProvider;\n tempRequired = oldTempRequired;\n tempBlackList = oldTempBlackList;\n }\n return false;\n }",
"private IInstallableUnit[] validateInput(IInstallableUnit[] ius) {\n \t\tMap versions = new HashMap();\n \t\tList toRemove = new ArrayList();\n \t\tArrayList applicable = new ArrayList(ius.length);\n \t\tfor (int i = 0; i < ius.length; i++) {\n \t\t\tIInstallableUnit iu = ius[i];\n \t\t\tif (isApplicable(iu.getFilter())) {\n \t\t\t\tapplicable.add(iu);\n \t\t\t\t// if we have a singleton bundle, only try to install the highest version\n \t\t\t\tif (iu.isSingleton()) {\n \t\t\t\t\tString id = iu.getId();\n \t\t\t\t\tIInstallableUnit oldIU = (IInstallableUnit) versions.get(id);\n \t\t\t\t\tif (oldIU == null) {\n \t\t\t\t\t\tversions.put(id, iu);\n \t\t\t\t\t} else {\n \t\t\t\t\t\tIInstallableUnit removed = iu;\n \t\t\t\t\t\tif (iu.getVersion().compareTo(oldIU.getVersion()) > 0) {\n \t\t\t\t\t\t\tversions.put(id, iu);\n \t\t\t\t\t\t\tremoved = oldIU;\n \t\t\t\t\t\t}\n \t\t\t\t\t\ttoRemove.add(removed);\n \t\t\t\t\t\tString msg = NLS.bind(\"{0} version {1} cannot be installed because it is marked as a singleton and a higher version has been found.\", id, removed.getVersion()); //$NON-NLS-1$\n \t\t\t\t\t\tresult.add(new Status(IStatus.WARNING, DirectorActivator.PI_DIRECTOR, msg, null));\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t} else {\n \t\t\t\tString msg = NLS.bind(\"{0} cannot be installed because its filter is not satisfied in this environment.\", ius[i].getId()); //$NON-NLS-1$\n \t\t\t\tresult.add(new Status(IStatus.WARNING, DirectorActivator.PI_DIRECTOR, msg, null));\n \t\t\t}\n \t\t}\n \t\tapplicable.removeAll(toRemove);\n \t\treturn (IInstallableUnit[]) applicable.toArray(new IInstallableUnit[applicable.size()]);\n \t}",
"Set<Condition> getInstanceInvariantConditions();",
"public abstract boolean isNetbeansKenaiRegistered();",
"@ImplementationClass(get=SensoryTest.class)\n\n@AssignableSubInterfaces(get={IAdhesiveRemovalTest.class, IHindpawSensationTest.class, })\n public interface ISensoryTest\n extends IFunctionalTest{\n\n}",
"@Override\n\tpublic boolean isImplemented() {\n\t\treturn false;\n\t}"
]
| [
"0.68297833",
"0.6156886",
"0.5848633",
"0.5833673",
"0.5685655",
"0.5656773",
"0.5615253",
"0.55938816",
"0.55448633",
"0.54550445",
"0.54510593",
"0.54462695",
"0.5430781",
"0.5430128",
"0.54229337",
"0.54209894",
"0.5413438",
"0.5403069",
"0.5396863",
"0.53625846",
"0.53605986",
"0.5351381",
"0.5344324",
"0.53427535",
"0.5329571",
"0.53216165",
"0.53216165",
"0.53188145",
"0.530549",
"0.53046644",
"0.5271154",
"0.52588224",
"0.5256938",
"0.5256715",
"0.5255531",
"0.5254876",
"0.5254722",
"0.5249239",
"0.5237672",
"0.5237672",
"0.5237672",
"0.5237672",
"0.5237672",
"0.52156657",
"0.5199901",
"0.5195605",
"0.51878834",
"0.5182883",
"0.5180828",
"0.5180492",
"0.5177623",
"0.5174551",
"0.51730996",
"0.51725507",
"0.51624435",
"0.5151935",
"0.51403975",
"0.5133668",
"0.5121469",
"0.51052415",
"0.50974464",
"0.5095177",
"0.50944006",
"0.5090209",
"0.5082616",
"0.5082481",
"0.5082386",
"0.507962",
"0.5061832",
"0.5057671",
"0.5056683",
"0.50545025",
"0.50541717",
"0.50495076",
"0.5049003",
"0.50464463",
"0.50462365",
"0.50406605",
"0.5039195",
"0.5033358",
"0.5030211",
"0.5030211",
"0.5023383",
"0.50223655",
"0.5021282",
"0.501996",
"0.50124717",
"0.5012179",
"0.50108457",
"0.5002149",
"0.5001043",
"0.49976352",
"0.49925712",
"0.49884564",
"0.49803188",
"0.49703926",
"0.4969891",
"0.49670628",
"0.49624535",
"0.49617526"
]
| 0.60461146 | 2 |
return String save to file | public String toFile(){
return String.format("%s:%s:%s:%s:%s:%s:%s",hashIndex,id,super.toFile(),
facultyAbbr.getAbbreviation(), courseName.getCourseName(),tutorialGroup,session);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String savedFile();",
"File getSaveFile();",
"void save(String filename);",
"void save(String output);",
"void save(String fileName);",
"static String save() {\n JFileChooser fileChooser;\n String path = FileLoader.loadFile(\"path.txt\");\n if (path != null) {\n fileChooser = new JFileChooser(path);\n } else {\n fileChooser = new JFileChooser((FileSystemView.getFileSystemView().getHomeDirectory()));\n }\n\n fileChooser.setDialogTitle(\"Save text file\");\n fileChooser.setDialogType(JFileChooser.SAVE_DIALOG);\n\n if (fileChooser.showSaveDialog(null) == JFileChooser.APPROVE_OPTION) {\n FileLoader.saveFile(\"path.txt\", fileChooser.getSelectedFile().getParent(), false);\n return fileChooser.getSelectedFile().getAbsolutePath() + \".mytxt\" ;\n }\n return null;\n }",
"private void saveStringToFile(String s) {\n try {\n FileWriter saveData = new FileWriter(SAVE_FILE);\n BufferedWriter bW = new BufferedWriter(saveData);\n bW.write(s);\n bW.flush();\n bW.close();\n } catch (IOException noFile) {\n System.out.println(\"SaveFile not found.\");\n }\n }",
"public boolean save(String file);",
"String getFileOutput();",
"public abstract String toSaveString();",
"private String getSaveData() {\n try {\n File saveData = new File(SAVE_FILE);\n Scanner sc = new Scanner(saveData);\n if (sc.hasNextLine()) {\n return sc.nextLine();\n }\n return null;\n } catch (FileNotFoundException e) {\n System.out.println(\"SaveFile not found.\");\n return \"N0S\";\n }\n }",
"void saveToFile(String filename) throws IOException;",
"public void save() {\n\t\tWriteFile data = new WriteFile( this.name + \".txt\" );\n\t\ttry {\n\t\t\t data.writeToFile(this.toString());\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.out.println(\"Couldn't print to file\");\n\t\t}\n\t}",
"@Override\n public String toFile() {\n String isDoneString = (isDone) ? \"1\" : \"0\";\n return getDescription() + \" | \" + getGrade() + \" | \" + getMc() + \" | \" + getSemester() + \" | \" + isDoneString;\n }",
"private void saveToFile(File file) throws IOException {\n FileWriter fileWriter = null;\n try {\n fileWriter = new FileWriter(file);\n fileWriter.write(getSaveString());\n }\n finally {\n if (fileWriter != null) {\n fileWriter.close();\n }\n }\n }",
"public void saveToFile()\n\t{\t\n\t\tsetCourseToFileString(courseToFileString);\n\t\t\ttry \n\t {\n\t FileWriter fw = new FileWriter(fileName);\n\t fw.write (this.getCourseToFileString ( ));\n\t for(Student b : this.getStudents ( ))\t \t\n\t \tfw.write(b.toFileString ( ));\n\t \tfw.close ( );\n\t } \n\t catch (Exception ex) \n\t {\n\t ex.printStackTrace();\n\t }\n\t\t\tthis.saveNeed = false;\n\n\t}",
"@Override\n public void saveFile(String fileString, String filename) throws IOException {\n }",
"public abstract String FileOutput();",
"public abstract void saveToFile(PrintWriter out);",
"public String getSaveFilePath() {\n\t\treturn newFilePath.getText();\n\t}",
"String getFile();",
"String getFile();",
"String getFile();",
"public String getSaveString() {\n try {\n Node node = getSaveNode();\n\n StringWriter writer = new StringWriter();\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n transformer.transform(new DOMSource(node), new StreamResult(writer));\n return writer.toString();\n }\n catch (TransformerConfigurationException e) {\n throw new RuntimeException(e);\n }\n catch (TransformerException e) {\n throw new RuntimeException(e);\n }\n }",
"public void save(String fileName) throws IOException;",
"public String save(){\r\n StringBuilder saveString = new StringBuilder(\"\");\r\n //currentPlayer, numPlayer, players[], \r\n saveString.append(currentPlayer + \" \");\r\n saveString.append(numPlayers + \" \");\r\n \r\n int i = 0;\r\n while(i < numPlayers){\r\n saveString.append(playerToString(players[i]) + \" \");\r\n i = i + 1;\r\n }\r\n\t\t\r\n\t\t//encrypt saveString\r\n\t\tString result = encryptSave(saveString.toString());\r\n \r\n return result;\r\n }",
"void save(File file);",
"File getSaveLocation();",
"public String toFileString()\n {\n return ( cyl + \",\" + fuel );\n }",
"public String toFile(){\n\t\tString personInfo = this.firstName + \" ; \" + this.lastName + \" ; \";\n\t\t\n\t\treturn personInfo;\n\t}",
"public void saveFile() {\n\t\tPrintWriter output = null;\n\t\ttry {\n\t\t\toutput = new PrintWriter(\"/Users/katejeon/Documents/Spring_2020/CPSC_35339/avengers_project/game_result.txt\");\n\t\t\toutput.println(textArea.getText());\n\t\t\toutput.flush();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"File doesn't exist.\");\n\t\t} finally {\n\t\t\toutput.close();\n\t\t}\n\t}",
"public File saveDrawing() {\n stopDrawing();\n GeoJsonConverter converter = new GeoJsonConverter();\n String string = converter.convertToGeoJson(currentDrawing.getAllLines());\n\n File file = new File(context.getExternalFilesDir(null), \"drawing.geojson\");\n try {\n FileOutputStream outputStream = new FileOutputStream(file);\n outputStream.write(string.getBytes()); //write the string to the file\n outputStream.close(); //close the stream\n //Log.d(TAG, string);\n } catch (FileNotFoundException e) {\n Log.e(TAG, \"FileNotFoundException\");\n } catch (IOException e) {\n Log.e(TAG, \"IOException\");\n\n }\n\n return file;\n }",
"String saveToFile(Object data, String fileName, FileFormat fileFormat) throws IOException;",
"public void saveFile()\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString newLine = System.getProperty(\"line.separator\");\n\t\t\n\t\tfor(CSVItem cItem : itemList)\n\t\t{\n\t\t\tsb.append(cItem.buildCSVString()).append(newLine);\n\t\t\t\n\t\t}\n\t\tString fileString = sb.toString();\n\t\t\n\t\t File newTextFile = new File(filePath);\n\n FileWriter fw;\n\t\ttry {\n\t\t\tfw = new FileWriter(newTextFile);\n\t\t\t fw.write(fileString);\n\t\t fw.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n \n\n\t}",
"String saveToFile () throws Exception {\n\n File backupFile = new File(\"../dataBackup.txt\");\n\n// checks if backup file exists, if yes, it attempts to delete it\n if (backupFile.exists() && !backupFile.delete())\n return (\"Save terminated: backup could not be deleted\");\n// attempts to rename file to backup file\n if (!file.renameTo(backupFile))\n return (\"Save terminated: backup could not be created\");\n\n// creates custom writer\n Writer writer = new Writer(new FileWriter(file));\n\n// cycles through all timelines and all their events, writing all into the same file\n for (Timeline timeline : timelines) {\n writer.writeTimeline(timeline);\n for (Event event : timeline.events) {\n writer.writeEvent(event);\n }\n }\n\n writer.close();\n return (\"Save finished successfully\");\n }",
"public String SAVE(String filename){\n try{\n //File will be rewritten\n BufferedWriter writer = new BufferedWriter(new FileWriter(filename, false));\n Enumeration keys = this.clientData.keys();\n while(keys.hasMoreElements()){\n String keyToAppend = (String) keys.nextElement();\n writer.append(keyToAppend + \",\" + this.clientData.get(keyToAppend) + '\\n');\n }\n writer.close();\n } catch (IOException e) {\n e.printStackTrace();\n return \"ERROR CANNOT WRITE TO THE FILE\";\n }\n return \"OK\";\n }",
"public String saveGame(String fileName) {\n File file = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);\n File saveFile = new File(file, fileName);\n\n try {\n PrintWriter writer = new PrintWriter(saveFile.getAbsolutePath(), \"UTF-8\");\n writer.println(\"Black: \" + playerBlack.getScore());\n writer.println(\"White: \" + playerWhite.getScore());\n writer.println(\"Board:\");\n\n for (int r = 0; r < Board.MAX_ROW; r++) {\n for (int c = 0; c < Board.MAX_COLUMN; c++) {\n if (boardObject.getSlot(r, c).getColor() == Slot.BLACK) {\n writer.print(\"B \");\n } else if (boardObject.getSlot(r, c).getColor() == Slot.WHITE) {\n writer.print(\"W \");\n } else {\n writer.print(\"O \");\n }\n }\n writer.println();\n }\n\n String nextPlayer = playerWhite.isTurn() ? \"White\" : \"Black\";\n writer.println(\"Next player: \" + nextPlayer);\n\n String humanPlayer = playerWhite.isComputer() ? \"Black\" : \"White\";\n writer.println(\"Human: \" + humanPlayer);\n\n writer.close();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return saveFile.getAbsolutePath();\n }",
"void toFile (String fileName);",
"private void save()\n\t{\n\t\t//get the text\n\t\tString spssTxt = spssText.getText();\n\t\t//save it to a JS place where Java can find it\n\t\tsaveToJS(spssTxt);\n\t\t//make up a file name\n\t\tString fileName = form.getText().replace(\" \", \"_\").replace(\"\\\\\", \"\").replace(\"/\",\"\").replace(\"*\", \"\").replace(\"\\\"\", \"\")\n\t\t\t\t.replace(\"<\", \"\").replace(\">\", \"\").replace(\"#\", \"\").replace(\"'\", \"\") + \".spss\";\t\t\n\t\t\n\t\t\n\t\t\n\t\tappletHtml.setHTML(\"<APPLET codebase=\\\"fileioapplets/\\\"+\" +\n\t\t\t\t\" archive=\\\"kobo_fileIOApplets.jar, plugin.jar\\\" \"+\n\t\t\t\t\" code=\\\"org.oyrm.kobo.fileIOApplets.ui.FileSaveApplet.class\\\" \"+\n\t\t\t\t\" width=\\\"5\\\" HEIGHT=\\\"5\\\" MAYSCRIPT> \"+\n\t\t\t\t\"<param name=\\\"formName\\\" value=\\\"\"+fileName+\"\\\"/>\"+\n\t\t\t\t\"<param name=\\\"save\\\" value=\\\"\"+LocaleText.get(\"SaveSPSSFile\")+\"\\\"/>\"+\n\t\t\t\t\"</APPLET>\");\n\t}",
"public String getStringFile(){\n return fileView(file);\n }",
"public final void saveToFile() {\n\t\tWrite.midi(getScore(), getName()+\".mid\"); \n\t}",
"public String getSaveString() {\n return \"\" + Value;\n }",
"String saveFile(FileStoreDto dto);",
"public void save() {\n\t\tBufferedWriter bw = null;\n\t\tFileWriter fw = null;\n\t\ttry {\n\t\t\tFile file = new File(\"fileSave.txt\");\n\t\t\tif(!file.exists()) {\n\t\t\t\tfile.createNewFile();\n\t\t\t}\n\t\t\tfw = new FileWriter(file);\n\t\t\tbw = new BufferedWriter(fw);\n\t\t\t//string to hold text to write on new file\n\t\t\tString text = textArea.getText();\n\t\t\t//write file\n\t\t\tif (text != null) {\n\t\t\t\tbw.write(text);\n\t\t\t}\n\t\t}\n\t\tcatch (IOException ie) {\n\t\t\tie.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\ttry {\n\t\t\t\tif (bw != null) {\n\t\t\t\t\tbw.close();\n\t\t\t\t\tfw.close();\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (IOException ie2) {\n\t\t\t\tie2.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public String save()\n {\n String realPart = \"\";\n String imaginaryPart = \"\";\n \n if(this.realPart >= 0)\n {\n realPart = realPart + \"+\";\n }\n realPart = realPart + this.realPart;\n \n if(this.imaginaryPart >= 0)\n {\n imaginaryPart = imaginaryPart + \"+\";\n }\n imaginaryPart = imaginaryPart + this.imaginaryPart;\n \n return realPart + \"\" +imaginaryPart + \"i\";\n }",
"@Override\r\n public String toFile() {\r\n String toReturn = \"straight,\";\r\n toReturn += xCoord + \",\" + yCoord + \",\" + currentDirection;\r\n toReturn += \"\\n\";\r\n return toReturn;\r\n }",
"private String getFileName()\r\n {\r\n DateFormat format = new SimpleDateFormat(\"yyyy-MM-dd__HH_mm\");\r\n \r\n String ret = new String();\r\n ret += preferences.getPreference(UserPreferences.SAVE_LOCATION_PROP);\r\n ret += format.format(new Date());\r\n \r\n String notationStr = notation.getText().trim();\r\n if (!notationStr.isEmpty()) \r\n {\r\n ret += \"__\" + notationStr.replaceAll(\" \\t/\\\\:\", \"_\");\r\n }\r\n \r\n ret += \".csv\";\r\n \r\n return ret;\r\n }",
"public void save(){\n\tif(currentFile == null){\n\t // TODO: add popup to select where to save file and file name\n\t // currentFile = new TextFile(os, title, null);\n\t}else{\n\t currentFile.setBody(textArea.getText());\n\t}\n }",
"public void save() {\n // Convert the settings to a string\n String output = readSettings();\n \n try {\n // Make sure the file exists\n if (!settingsFile.exists()) {\n File parent = settingsFile.getParentFile();\n parent.mkdirs();\n settingsFile.createNewFile(); \n }\n \n // Write the data into the file\n BufferedWriter writer = new BufferedWriter(new FileWriter(settingsFile));\n writer.write(output);\n writer.close(); \n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public String outputStringForWritingToFile() {\n if (stringBuilder.length() >= ProjectConstants.BUFFER_CAPACITY || bytesProcessed == numberOfBytesToBeProcessed) {\n String temp = stringBuilder.toString();\n stringBuilder.setLength(0);\n return temp;\n } else {\n return null;\n }\n }",
"public String ToFile() {\n\t\tif (ismonitored) {\r\n\t\t\treturn (\"\" + this.lon + \",\" + this.lat + \",\" + this.vtec + \",\" + this.rms + \",\" + this.timestamp + \",1;\");\r\n\t\t} else {\r\n\t\t\treturn (\"\" + this.lon + \",\" + this.lat + \",\" + this.vtec + \",\" + this.rms + \",\" + this.timestamp + \",0;\");\r\n\t\t}\r\n\r\n\t}",
"void saveOption()\n{\n if(fname==null)\n saveFile();\n else\n { try{\n fname1=fname;\n int l=fname1.lastIndexOf(\"\\\\\");\n fname1= fname1.substring(l+1, fname1.length()-5);\n \n FileWriter fw= new FileWriter(fname);\n String s=textArea.getText();\n PrintWriter p =new PrintWriter(fw);\n p.println(s);\n p.flush();\n }\n catch(Exception e9)\n {\n System.out.println(e9);}\n \n \n\n }\n}",
"public void printDataToFile(){\n\ttry {\n\t File file = new File(\"media/gameOutput.txt\");\n \n\t // if file doesnt exists, then create it\n\t if (!file.exists()) {\n\t\tfile.createNewFile();\n\t }\n \n\t FileWriter fw = new FileWriter(file.getAbsoluteFile());\n\t BufferedWriter bw = new BufferedWriter(fw);\n\t bw.write(printString);\n\t bw.close();\n\t} catch (IOException e) {\n\t e.printStackTrace();\n\t}\n }",
"private void writeToFile() {\n try {\n FileOutputStream fos = new FileOutputStream(f);\n String toWrite = myJSON.toString(4);\n byte[] b = toWrite.getBytes();\n fos.write(b);\n fos.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Override\n public String toSaveString() {\n //D0Finish project@June 6\n return \"D\" + (isDone ? \"1\" : \"0\") + name + \"@\" + getDate();\n }",
"public static void save() {\n Game.save(UI.askNgetString(\"Filename for this save file?\")+\".xml\");\n }",
"private static String fileToString(String path) throws IOException {\n\n\t\tbyte[] encoded = Files.readAllBytes(Paths.get(path));\n\t\treturn new String(encoded, StandardCharsets.UTF_8);\n\t}",
"public String getCourseToFileString ( )\n\t{\n\t\treturn courseToFileString;\n\t}",
"public String getFile() {\n \n // return it\n return theFile;\n }",
"public void saveFile(String pathOfFileSelected, String content){\n FileOutputStream fos = null;\n try {\n final File myFile = new File(pathOfFileSelected);\n\n myFile.createNewFile();\n\n fos = new FileOutputStream(myFile);\n\n fos.write(content.getBytes());\n fos.close();\n Log.d(TAG, \"saveFile: Saved Successfully\");\n\n } catch (IOException e) {\n e.printStackTrace();\n Log.w(TAG, \"saveFile: Unable to save\",e);\n }\n }",
"public String save() {\n\t\t\t try {\n\t\t\t\t File file = new File(CollectionFileScanner.getFileName());\n\t\t\t\t String fileName = CollectionFileScanner.getFileName();\n\t\t\t\t DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\t\t\t DocumentBuilder builder = factory.newDocumentBuilder();\n\t\t\t\t Document document = builder.newDocument();\n\t\t\t\t Element tagCollections = document.createElement(\"Collections\");\n\t\t\t\t document.appendChild(tagCollections);\n\t\t\t\t for (Olders e : collectionsOlders) {\n\t\t\t\t\t if (e.getId() != 0) {\n\t\t\t\t\t\t Element tagOlders = document.createElement(\"Older\");\n\t\t\t\t\t\t Element nameOlder = document.createElement(\"Name\");\n\t\t\t\t\t\t Element tagID = document.createElement(\"ID\");\n\t\t\t\t\t\t Element tagDimension = document.createElement(\"Dimension\");\n\t\t\t\t\t\t Text iDText = document.createTextNode(new Long(e.getId()).toString());\n\t\t\t\t\t\t tagCollections.appendChild(tagOlders);\n\t\t\t\t\t\t tagOlders.appendChild(nameOlder);\n\t\t\t\t\t\t Text nameText = document.createTextNode(e.getName());\n\t\t\t\t\t\t nameOlder.appendChild(nameText);\n\t\t\t\t\t\t tagOlders.appendChild(tagID);\n\t\t\t\t\t\t tagID.appendChild(iDText);\n\t\t\t\t\t\t tagOlders.appendChild(tagDimension);\n\n\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t DOMImplementation impl = document.getImplementation();\n\t\t\t\t DOMImplementationLS implLS = (DOMImplementationLS) impl.getFeature(\"LS\", \"3.0\");\n\t\t\t\t LSSerializer ser = implLS.createLSSerializer();\n\t\t\t\t ser.getDomConfig().setParameter(\"format-pretty-print\", true);\n\t\t\t\t String wellDone = ser.writeToString(document);\n\t\t\t\t LSOutput out = implLS.createLSOutput();\n\t\t\t\t out.setEncoding(\"UTF-8\");\n\t\t\t\t try {\n\t\t\t\t\t out.setByteStream(Files.newOutputStream(Paths.get(fileName)));\n\t\t\t\t } catch (IOException e1) {\n\t\t\t\t\t return \"Файл не найден или не доступен\";\n\t\t\t\t }\n\t\t\t\t try {\n\t\t\t\t\t ser.write(document, out);\n\t\t\t\t } catch (LSException l) {\n\n\t\t\t\t }\n\t\t\t\t return \"Коллекция успешно была сохранена!\";\n\t\t\t } catch (ParserConfigurationException e) {\n\t\t\t\t return \"Ошибка парсинга файла!\";\n\t\t\t }\n\t\t }",
"public static void saveAsTxtFile(String filename, String saveString) throws IOException{\n\t\tBufferedWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(filename)));\n\t\tout.write(saveString);\n\t\tout.close();\n\t}",
"public void toFile(String fname){\r\n\t\ttry(FileWriter fw=new FileWriter(fname)){\r\n\t\t\tfw.write(toString());\r\n\t\t\t\r\n\t\t}catch(IOException e){ e.printStackTrace(); System.exit(0);}\r\n\t}",
"private void saveIt(String text, File file) {\n String[] line = text.split(\"\\n\");\n System.out.println(\"the size of string array is \" + line.length );\n if (file == null) {\n logger.debug(\"Null return because Closed the save stage\");\n return;\n }\n try {\n logger.info(\"saving file...\");\n PrintStream stream = new PrintStream(file);\n stream.write(text.getBytes());\n } catch(IOException io) {\n logger.error(io.getMessage());\n }\n logger.info(\"saved\");\n }",
"public void saveResult() {\n\t\ttry {\n\t\t\tPrintWriter out = new PrintWriter(new FileOutputStream(resultFile));\n\t\t\tout.println(record.resultToString());\n\t\t\tout.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"java.lang.String getFilePath();",
"private static void writeToFile(String string){\n try {\n buffer.write(string);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Override\n\tpublic void save() {\n\t\t\n\t\tFile savingDirectory = new File(savingFolder());\n\t\t\n\t\tif( !savingDirectory.isDirectory() ) {\n\t\t\tsavingDirectory.mkdirs();\n\t\t}\n\t\t\n\t\t\n\t\t//Create the file if it's necessary. The file is based on the name of the item. two items in the same directory shouldn't have the same name.\n\t\t\n\t\tFile savingFile = new File(savingDirectory, getIdentifier());\n\t\t\n\t\tif( !savingFile.exists() ) {\n\t\t\t\n\t\t\ttry {\n\t\t\t\tsavingFile.createNewFile();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"the following item couldn't be saved: \" + getIdentifier());\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\n\t\t}\n\n\t\t\n\t\t//generate the savingTextLine and print it in the savingFile. the previous content is erased when the PrintWriter is created.\n\t\t\n\t\tString text = generateSavingTextLine();\n\n\t\ttry {\n\t\t\tPrintWriter printer = new PrintWriter(savingFile);\n\t\t\tprinter.write(text);\t\t\t\n\t\t\tprinter.close();\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\tsave();\n\t\t} \n\t}",
"@Override\n\tpublic void save(String file_name) {\n\t\tserialize(file_name);\n\t}",
"public void saveGame(File fileLocation);",
"public static Boolean saveStringToFile(String filename, String saveString) {\r\n Boolean saved = false;\r\n BufferedWriter bw = null;\r\n try {\r\n bw = new BufferedWriter(new FileWriter(filename));\r\n try {\r\n bw.write(saveString);\r\n saved = true;\r\n } finally {\r\n bw.close();\r\n }\r\n } catch (IOException ex) {\r\n ex.printStackTrace();\r\n }\r\n return saved;\r\n }",
"public File getSaveFile() {\n\t\treturn _file;\n\t}",
"@Override\r\n\tpublic String toString() {\r\n\t\tStringBuilder docAsStringtoSend = new StringBuilder();\r\n\t\tfor (String c : docModel) {\r\n\t\t\tif (!c.equals(\"a\")) {\r\n\t\t\t\tdocAsStringtoSend.append(c + \"a\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tString newFile = docAsStringtoSend.toString();\r\n\t\tupdateFile(newFile);\r\n\t\treturn newFile;\r\n\t}",
"public void save() {\n UTILS.write(FILE.getAbsolutePath(), data);\n }",
"private void writeToFile(){\n Calendar c = Calendar.getInstance();\n String dateMedTaken = DateFormat.getDateInstance(DateFormat.FULL).format(c);\n FileOutputStream fos = null;\n\n try {\n fos = openFileOutput(FILE_NAME, MODE_APPEND);\n fos.write(dateMedTaken.getBytes());\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if(fos != null){\n try {\n fos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n }",
"public void save(View v,String name) {\n String question = \"Question:\" + mQuestionView.getText().toString();\n String choice1 = \"Choice1:\" + mButtonChoice1.getText().toString();\n String choice2 = \"Choice2:\" + mButtonChoice2.getText().toString();\n String choice3 = \"Choice3:\" + mButtonChoice3.getText().toString();\n String choice4 = \"Choice4:\" + mButtonChoice4.getText().toString();\n String correctAnswer = \"correct answer:\" +mAnswer;\n File file = new File(getFilesDir() + \"/\" + name); //path where it is save\n String lineSeparator = System.getProperty(\"line.separator\"); //new line\n FileOutputStream fos = null;\n try {\n fos = new FileOutputStream(file, true);\n fos = openFileOutput(name, MODE_APPEND);\n fos.write(question.getBytes());//display the questions\n fos.write(lineSeparator.getBytes());//creates a new line\n fos.write(choice1.getBytes());//display the choices\n fos.write(lineSeparator.getBytes());\n fos.write(choice2.getBytes());\n fos.write(lineSeparator.getBytes());\n fos.write(choice3.getBytes());\n fos.write(lineSeparator.getBytes());\n fos.write(choice4.getBytes());\n fos.write(lineSeparator.getBytes());\n fos.write(correctAnswer.getBytes());\n fos.write(lineSeparator.getBytes());\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (fos != null) {\n try {\n fos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }",
"public void saveFile() {\r\n File savedFile = new File(fileName);\r\n\r\n try (FileWriter fw = new FileWriter(savedFile)) {\r\n fw.write(workSpace.getText());\r\n\r\n fw.close();\r\n } catch (IOException ex) {\r\n JOptionPane.showMessageDialog(null, \"There was an error saving the file\");\r\n }\r\n }",
"public String writeFileUnderGrad(String fileName) {\n Formatter f = new Formatter();//Use Formatter\r\n f.format(\"%s (%d, %s, %s)%n\", super.getStudentName(), super.getStudentNumber(), super.getStudentSex(), super.getStudentDOB());//Format Student Output\r\n //System.out.println(f);\r\n BufferedWriter out = null; //BufferedWriter\r\n PrintWriter out1 = null; //Use PrintWriter\r\n //Try and Catch method to create the txt file, flush and close\r\n try {\r\n\r\n out = new BufferedWriter(new FileWriter(fileName, true));\r\n out1 = new PrintWriter(out);\r\n out1.write(f.toString());\r\n out1.flush();//Flush text file\r\n } catch (IOException e) {\r\n System.out.println(\"Exception \");\r\n } finally {\r\n try {\r\n out.close();\r\n out1.close();\r\n } catch (IOException ex) {\r\n Logger.getLogger(UnderGraduate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n return \"\";\r\n\r\n }",
"@Override\n public boolean save(String file) {\n boolean ans = false;\n ObjectOutputStream oos;\n try {\n FileOutputStream fileOut = new FileOutputStream(file, true);\n oos = new ObjectOutputStream(fileOut);\n oos.writeObject(this);\n ans= true;\n }\n catch (FileNotFoundException e) {\n e.printStackTrace(); }\n catch (IOException e) {e.printStackTrace();}\n return ans;\n }",
"void saveFile () {\r\n\r\n\t\ttry {\r\n\t\t\tFileOutputStream fos = new FileOutputStream (\"Bank.dat\", true);\r\n\t\t\tDataOutputStream dos = new DataOutputStream (fos);\r\n\t\t\tdos.writeUTF (saves[count][0]);\r\n\t\t\tdos.writeUTF (saves[count][1]);\r\n\t\t\tdos.writeUTF (saves[count][2]);\r\n\t\t\tdos.writeUTF (saves[count][3]);\r\n\t\t\tdos.writeUTF (saves[count][4]);\r\n\t\t\tdos.writeUTF (saves[count][5]);\r\n\t\t\tJOptionPane.showMessageDialog (this, \"The Record has been Saved Successfully\",\r\n\t\t\t\t\t\t\"BankSystem - Record Saved\", JOptionPane.PLAIN_MESSAGE);\r\n\t\t\ttxtClear ();\r\n\t\t\tdos.close();\r\n\t\t\tfos.close();\r\n\t\t}\r\n\t\tcatch (IOException ioe) {\r\n\t\t\tJOptionPane.showMessageDialog (this, \"There are Some Problem with File\",\r\n\t\t\t\t\t\t\"BankSystem - Problem\", JOptionPane.PLAIN_MESSAGE);\r\n\t\t}\r\n\r\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 getOutputFile()\r\n {\n return \"\";\r\n }",
"public File getSaveFile() {\n\t\treturn saveFile;\n\t}",
"String getFilePath();",
"public String getSimFile() throws IOException {\n\t\tString name = getSimulationName();\t\n\t\tint l = name.length();\n\t\tString sim_name = name.substring(0, l-7); // \"_FOLDER\" contains 7 character\n\t\tString txtfile = sim_name + \".txt\";\n\t\treturn txtfile;\t\n\t}",
"@FXML\n public void saveFile(Event e) {\n String outputData = output.getText();\n\n File file = chooser.showSaveDialog(save.getScene().getWindow());\n\n if(file != null) {\n createFile(outputData, file);\n }\n }",
"private File showSaveAsDialog()\n {\n \tJFileChooser fc = new JFileChooser(m_preferences.get(\"path-save-game\"));\n \tif (m_file != null) fc.setSelectedFile(m_file);\n \tint ret = fc.showSaveDialog(this);\n \tif (ret == JFileChooser.APPROVE_OPTION)\n \t return fc.getSelectedFile();\n \treturn null;\n }",
"void saveAs() {\n writeFile.Export();\n }",
"public String getNow() {\n\n\tOutputStream os = null;\n\tURLConnection URLConn = null;\n\tInputStream is = null;\n\tint ByteRead, ByteWritten = 0;\n\n\ttry {\n\t URL fileUrl;\n\t byte[] buf;\n\n\t fileUrl = new URL(fileAddress);\n\t os = new BufferedOutputStream(new FileOutputStream(\n\t\t this.destinationDir + \"\\\\\" + this.fileName));\n\n\t URLConn = fileUrl.openConnection();\n\t is = URLConn.getInputStream();\n\t buf = new byte[size];\n\t while ((ByteRead = is.read(buf)) != -1) {\n\t\tos.write(buf, 0, ByteRead);\n\t\tByteWritten += ByteRead;\n\t }\n\n\t} catch (MalformedURLException e) {\n\t throw new DownloaderRuntimeException(e.getMessage());\n\n\t} catch (IOException e) {\n\t throw new DownloaderRuntimeException(e.getMessage());\n\n\t} finally {\n\t try {\n\t\tis.close();\n\t\tos.close();\n\t } catch (IOException e) {\n\t\tthrow new DownloaderRuntimeException(e.getMessage());\n\t }\n\t}\n\treturn new StringBuilder(\"Downloaded Successfully. \")\n\t\t.append(\"File name: \").append(this.fileName).append(\" bytes :\")\n\t\t.append(ByteWritten).append(\"Mb\").toString();\n }",
"@Override\n\tpublic void save(Object o, String file) {\n\t\t\n\t}",
"private String saveCrashReportFile() {\r\n try {\r\n Log.d(LOG_TAG, \"Writing crash report file.\");\r\n long timestamp = System.currentTimeMillis();\r\n String isSilent = mCrashProperties.getProperty(IS_SILENT_KEY);\r\n String fileName = (isSilent != null ? SILENT_PREFIX : \"\") + \"stack-\" + timestamp + \".stacktrace\";\r\n FileOutputStream trace = mContext.openFileOutput(fileName, Context.MODE_PRIVATE);\r\n mCrashProperties.store(trace, \"\");\r\n trace.flush();\r\n trace.close();\r\n return fileName;\r\n } catch (Exception e) {\r\n Log.e(LOG_TAG, \"An error occured while writing the report file...\", e);\r\n }\r\n return null;\r\n }",
"public String saveToHardDisk() {\r\n int isDone = this.isDone ? 1 : 0;\r\n return \" | \" + isDone + \" | \" + description;\r\n }",
"private String saveToSdCard() throws IOException {\n\t\tif (!Environment.getExternalStorageState().equals(\n\t\t\t\tEnvironment.MEDIA_MOUNTED)) {\n\t\t\tthrow new IOException(getResources().getString(\n\t\t\t\t\tR.string.error_noExternalStorage));\n\t\t}\n\n\t\tStringBuffer whiteBoardFilePath = new StringBuffer(\n\t\t\t\tWHITEBOARD_DATA_FOLDER_PATH);\n\t\twhiteBoardFilePath.append(whiteBoard.id).append(\".dat\");\n\n\t\t// Create the white board file if it doesn't exist.\n\t\tFile whiteBoardFile = new File(whiteBoardFilePath.toString());\n\t\tif (!whiteBoardFile.exists()) {\n\t\t\t// Make sure the path to the file exists.\n\t\t\tnew File(WHITEBOARD_DATA_FOLDER_PATH).mkdirs();\n\n\t\t\tif (!whiteBoardFile.createNewFile()) {\n\t\t\t\tLog.e(TAG, \"Failed to create new white board data file. \"\n\t\t\t\t\t\t+ whiteBoardFilePath.toString());\n\t\t\t\tthrow new IOException(getResources().getString(\n\t\t\t\t\t\tR.string.error_savingWhiteBoard));\n\t\t\t}\n\t\t}\n\n\t\t// Serialise the white board to the file.\n\t\ttry {\n\t\t\tmDataStore.serializeDataStore(new FileOutputStream(whiteBoardFile));\n\t\t} catch (FileNotFoundException e) {\n\t\t\tLog.e(TAG,\n\t\t\t\t\t\"Failed to write white board data file. \" + e.getMessage());\n\t\t\tthrow new IOException(getResources().getString(\n\t\t\t\t\tR.string.error_savingWhiteBoard));\n\t\t} catch (IOException e) {\n\t\t\tLog.e(TAG,\n\t\t\t\t\t\"Failed to write white board data file. \" + e.getMessage());\n\t\t\tthrow new IOException(getResources().getString(\n\t\t\t\t\tR.string.error_savingWhiteBoard));\n\t\t}\n\t\treturn whiteBoardFile.getAbsolutePath();\n\t}",
"public String toTextFileString() {\n return (this.isDone ? \"1\" : \"0\") + \" | \" + getDescription();\n }",
"public void writeToFile (String json) {\n // reset fos to null for checks\n FileOutputStream fos = null;\n try {\n String FILE_NAME = \"ExportedLearningCards.json\";\n fos = openFileOutput(FILE_NAME, MODE_PRIVATE);\n fos.write(json.getBytes());\n Toast.makeText(this, \"Saved to \" + getFilesDir() + \"/\" + FILE_NAME,\n Toast.LENGTH_LONG).show();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (fos != null) {\n try {\n fos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }",
"private void toSave() {\n File file4=new File(\"trial.txt\");\n try\n {\n String row;\n BufferedWriter bw=new BufferedWriter(new FileWriter(file4));\n for(int i=0;i<jt.getRowCount();i++)\n {\n row = \"\";\n for(int j=0;j<jt.getColumnCount();j++)\n {\n row += (jt.getValueAt(i, j) +\",\");\n }\n row = row.substring(0, row.length()-1);\n //System.out.println(row);\n bw.write(row);\n bw.newLine();\n }\n bw.close();\n \n \n JOptionPane.showMessageDialog(rootPane,\"Details saved succesfully\");\n }\n \n catch(Exception ex)\n {\n JOptionPane.showMessageDialog(rootPane,\"Exception occured\");\n }\n }",
"public String saveText() {\n\n return \"!Základ!\\n\\n\" + \"Hrubá mzda : \" + wage + \"Kč\\n\" + \"Sleva poplatníka : \" + saveTextChoose + \"\\nSuperhrubá mzda : \" + calc.superGrossWage(wage) + \" Kč\\n\" + \"\\n!Zaměstnavatel odvody z mzdy!\\n\\n\" + \"Socialní pojištění : \" + calc.socialInsuranceEmployer(wage) + \" Kč\\n\" + \"Zdravotní pojištění: \" + calc.healthInsuranceEmployer(wage) + \" Kč\\n\" +\n \"\\n!Zaměstnanec odvody z mzdy!\\n\" + \"\\nSocialní pojištění : \" + calc.socialInsuranceEmployee(wage) + \" Kč\\n\" + \"Zdravotní pojištění : \" + calc.healthInsuranceEmployee(wage) + \" Kč\\n\" +\n \"\\n!Daň ze závislé činnosti!\\n\" + \"\\nZáklad daní :\" + calc.round(wage) + \" Kč\\n\" + \"Daň : \" + calc.tax(wage) + \" Kč \\n\" + \"Daň po odpoču slevy : \" + calc.afterDeductionOfDiscounts(wage, choose) + \" Kč\\n\" +\n \"\\nČistá mzda : \" + calc.netWage(wage, choose) + \" Kč\";\n }",
"public String saveFile( Component parent )\n\t{\n\t\t\n\t JFileChooser fc = new JFileChooser();\n\t fc.setFileSelectionMode( JFileChooser.DIRECTORIES_ONLY);\n\t String s=null;\n\t //if( fc.showSaveDialog( parent ) == JFileChooser.SAVE_DIALOG )\n\t //{\n\t // return fc.getSelectedFile().getAbsolutePath();\n\t //}\n\t int rVal = fc.showSaveDialog(frame);\n\t if (rVal == JFileChooser.APPROVE_OPTION) {\n\t \n\t s=fc.getCurrentDirectory().toString()+\"/\"+fc.getSelectedFile().getName();\n\t }\n\t if (rVal == JFileChooser.CANCEL_OPTION) {\n\t \t JOptionPane.showMessageDialog(frame,\"you have pressed cancel,nothing will get saved\");\n\t }\n\t \n\n\t return s;\n\t}",
"public void save(){\n Player temp = Arena.CUR_PLAYER;\n try{\n FileOutputStream outputFile = new FileOutputStream(\"./data.sec\");\n ObjectOutputStream objectOut = new ObjectOutputStream(outputFile);\n objectOut.writeObject(temp);\n objectOut.close();\n outputFile.close();\n }\n catch(FileNotFoundException e){\n System.out.print(\"Cannot create a file at that location\");\n }\n catch(SecurityException e){\n System.out.print(\"Permission Denied!\");\n }\n catch(IOException e){\n System.out.println(\"Error 203\");\n } \n }",
"public void saveFileAs(String text) {\r\n\r\n\t\tFile tempFile;\r\n\t\ttempFile = fileChooser.showSaveDialog(fileChooserDialog);\r\n\t\tsaveFile(tempFile, text);\r\n\t\t\r\n\t\r\n\t\t\r\n\t}"
]
| [
"0.7968382",
"0.7457428",
"0.7186797",
"0.7144742",
"0.71416485",
"0.71125567",
"0.7106949",
"0.7099316",
"0.70925885",
"0.69926924",
"0.69672364",
"0.69542193",
"0.6844332",
"0.68338776",
"0.6658952",
"0.6642455",
"0.66356045",
"0.6628048",
"0.66258126",
"0.6607457",
"0.65982294",
"0.65982294",
"0.65982294",
"0.65943366",
"0.6589498",
"0.65762067",
"0.657066",
"0.6568279",
"0.65602654",
"0.654289",
"0.65355504",
"0.6474027",
"0.64713776",
"0.6430136",
"0.64119273",
"0.6411051",
"0.6395813",
"0.6394173",
"0.6350649",
"0.6343264",
"0.6315621",
"0.6302546",
"0.62995416",
"0.629922",
"0.62655795",
"0.6262423",
"0.62562674",
"0.6253403",
"0.62444925",
"0.6222736",
"0.62145865",
"0.62007725",
"0.6197045",
"0.6194261",
"0.617971",
"0.615282",
"0.6148176",
"0.61437696",
"0.6129752",
"0.61288154",
"0.6120159",
"0.6119211",
"0.6110721",
"0.6107387",
"0.6106166",
"0.6099492",
"0.60988224",
"0.6081005",
"0.606684",
"0.60643804",
"0.6062575",
"0.6056868",
"0.60511523",
"0.60503536",
"0.6048975",
"0.6046624",
"0.60463524",
"0.6041578",
"0.6038181",
"0.6036658",
"0.6035441",
"0.6029892",
"0.60294825",
"0.60176826",
"0.6014321",
"0.60116124",
"0.60103106",
"0.6007934",
"0.5998579",
"0.5995685",
"0.59946215",
"0.5990411",
"0.59900236",
"0.59840876",
"0.5976368",
"0.5973844",
"0.5971883",
"0.59619933",
"0.59601885",
"0.5953201"
]
| 0.6654766 | 15 |
Created by liangz on 2016/1/17. | public interface Greeting {
void sayHello(String name);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"private void poetries() {\n\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"private static void cajas() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\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\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n public void init() {\n }",
"public void mo38117a() {\n }",
"@Override\n void init() {\n }",
"public void gored() {\n\t\t\n\t}",
"private void init() {\n\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"private void strin() {\n\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 getExras() {\n }",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n public void init() {}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\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}",
"@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}",
"protected boolean func_70814_o() { return true; }",
"@Override\n protected void init() {\n }",
"@Override\n public void memoria() {\n \n }",
"@Override\n public int describeContents() { return 0; }",
"private void kk12() {\n\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t}",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\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 }",
"private void m50366E() {\n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n public void initialize() { \n }",
"private void init() {\n\n\n\n }",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"public void mo6081a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"public void Tyre() {\n\t\t\r\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"Constructor() {\r\n\t\t \r\n\t }"
]
| [
"0.6096386",
"0.59488046",
"0.5875996",
"0.5802846",
"0.5775452",
"0.5775452",
"0.57289666",
"0.56829375",
"0.56827396",
"0.56611717",
"0.56584036",
"0.5656494",
"0.5633446",
"0.56306225",
"0.56080335",
"0.5600167",
"0.5594848",
"0.558465",
"0.5577579",
"0.55771303",
"0.55615467",
"0.5548908",
"0.5548908",
"0.5548908",
"0.5548908",
"0.5548908",
"0.55354583",
"0.5533728",
"0.5519217",
"0.5517891",
"0.55162513",
"0.5515281",
"0.5494377",
"0.5493541",
"0.54772663",
"0.5471599",
"0.54708517",
"0.54557073",
"0.5452858",
"0.5452858",
"0.5452858",
"0.5452858",
"0.5452858",
"0.5452858",
"0.5452569",
"0.5445455",
"0.5445455",
"0.5445455",
"0.54414916",
"0.54347914",
"0.5432557",
"0.54325444",
"0.5431176",
"0.5431176",
"0.5426555",
"0.5425379",
"0.54225147",
"0.54225147",
"0.54206145",
"0.5419627",
"0.5419627",
"0.54098827",
"0.54098827",
"0.54098827",
"0.54069763",
"0.54069763",
"0.54069763",
"0.5406204",
"0.5401326",
"0.5394752",
"0.5390206",
"0.53858244",
"0.5381332",
"0.53808993",
"0.5379316",
"0.5363543",
"0.53493845",
"0.53447455",
"0.5339107",
"0.53337055",
"0.53323275",
"0.53323275",
"0.53323275",
"0.53323275",
"0.53323275",
"0.53323275",
"0.53323275",
"0.53299606",
"0.53200257",
"0.5298124",
"0.52869195",
"0.5278257",
"0.5266616",
"0.5256028",
"0.52535516",
"0.5246697",
"0.5244595",
"0.5234663",
"0.5231965",
"0.5231965",
"0.52286583"
]
| 0.0 | -1 |
/ int id; String nickname; String password; String salt; Date register_date; Date last_login_date; int login_count; | @Insert("insert into shoppinguser(id,nickname,password,salt,register_date,last_login_date,login_count) "
+ "values(#{id},#{nickname},#{password},#{salt},#{register_date},#{last_login_date},#{login_count})")
Boolean tx(ShoppingUser user); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface LoginRepository {\n\n\t/**\n\t * Generates data to provision the database with 100,000 dummy records.\n\t * \n\t * @return returns 1 if the operation was successful.\n\t */\n\tpublic long insert();\n\n\t/**\n\t * Queries all of the unique dates (ignoring time) in the table in ascending\n\t * order.\n\t * \n\t * @return the list of unique dates.\n\t */\n\tpublic List<Login> getUniqueDates();\n\n\t/**\n\t * Queries all of the unique users for which there is a login record between\n\t * the given start and end date.\n\t * \n\t * <b>NOTE:</b> Both parameters are optional, so there can be a start date,\n\t * an end date, or both. The resulting JSON array needs to be sorted\n\t * ascending.\n\t * \n\t * @param startDate\n\t * the minimum date\n\t * @param endDate\n\t * the maximum date\n\t * @return the list of logins with unique users.\n\t */\n\tpublic List<Login> getUsers(Date startDate, Date endDate);\n\n\t/**\n\t * Queries an object where the key is the user name and the value is the\n\t * number of times a user logged on between the start and the end date.\n\t * \n\t * <p>\n\t * <b>NOTE:</b> All parameters are optional. The values used for the\n\t * attributes are used as filters, i.e. only the records should be counted\n\t * for which the attribute values are equal to the ones specified in the\n\t * parameters.\n\t * \n\t * @param start\n\t * the minimum date\n\t * @param end\n\t * the maximum date\n\t * @param attribute1\n\t * the values of the field attribute1\n\t * @param attribute2\n\t * the values of the field attribute2\n\t * @param attribute3\n\t * the values of the field attribute3\n\t * @param attribute4\n\t * the values of the field attribute4\n\t * @return the list of unique users with their logins.\n\t */\n\tpublic List<Login> getLogins(Date start, Date end, String[] attribute1, String[] attribute2, String[] attribute3,\n\t\t\tString[] attribute4);\n}",
"UserLogin recordLogin(UserLogin login);",
"long countUserByLogin(String login);",
"long getLoginAt();",
"public User(long id, String username, String email, String password) {\n this.id = id;\n this.username = username;\n this.email = email;\n this.password = password;\n}",
"public interface Login {\n public User findUser(String username, String userpwd);\n public boolean insert(User user);\n}",
"private void createLoginTable() {\r\n jdbcExecutor.executeQuery(new Work() {\r\n @Override\r\n public void execute(Connection connection) throws SQLException {\r\n connection.createStatement().executeUpdate(\"CREATE TABLE login ( id numeric(19,0), user_id numeric(19,0), timestamp TIMESTAMP )\");\r\n }\r\n });\r\n }",
"public int getLastLogin() {\n\t \t return lastLogin; \n\t}",
"User getUserByLoginAndPassword(String login, String password) throws DaoException;",
"public Login()\r\n\t{\r\n\t\tthis.name=name;\r\n\t\tthis.dob=dob;\r\n\t\tthis.nationality=nationality;\r\n\t\tthis.location=location;\r\n\t\tthis.phno=phno;\r\n\t\tthis.gender=gender;\r\n\t\tthis.jobtype=jobtype;\r\n\t\tthis.experience=experience;\r\n\t\tthis.salary=salary;\r\n\t\t\r\n\t\tthis.uname=uname;\r\n\t\tthis.password=password;\r\n\t\t\r\n\t\tthis.notification=notification;\r\n\t}",
"long getLoginId();",
"long getLoginId();",
"long getLoginId();",
"Date getLastLogin();",
"User login(Uuid id, String username, String password, Time creationTime);",
"public User logInUser(final String login, final String password);",
"public Integer addOrUpdate(LoginResponse user);",
"int getLoginId();",
"int getLoginId();",
"int getLoginId();",
"int getLoginId();",
"int getLoginId();",
"void setLoginId(long loginId);",
"void setLoginId(long loginId);",
"void setLoginId(long loginId);",
"@Insert({\n \"insert into user_t (id, user_name, \",\n \"password, age, ver)\",\n \"values (#{id,jdbcType=INTEGER}, #{userName,jdbcType=VARCHAR}, \",\n \"#{password,jdbcType=VARCHAR}, #{age,jdbcType=INTEGER}, #{ver,jdbcType=INTEGER})\"\n })\n int insert(User record);",
"public User(String username , String password)\n {\n this.userID++;\n this.username = username;\n this.password = password;\n }",
"public logins(String id, String tipo_id, String email)\r\n\t\t{\r\n\t\t\tthis.id = id;\r\n\t\t\t\r\n\t\t\tthis.tipo_id = tipo_id;\r\n\t\t\r\n\t\t\tthis.email = email;\r\n\t\t\r\n\t\t\t\r\n\t\t}",
"public ResultSet adduser(String firstname, String lastname, String username,\r\n\t\tString password, String address, String city, String eMail, Long phone,\r\n\t\tString security, String answer, String dob,\r\n\t\tLong pincode)throws SQLException {\n\tLong logid=null;\r\n\tint i=DbConnect.getStatement().executeUpdate(\"insert into login values(login_seq.nextval,'\"+username+\"'||username_seq.nextval,'\"+password+\"','not approved','user','\"+security+\"','\"+answer+\"') \");\r\n\tint j=DbConnect.getStatement().executeUpdate(\"insert into customer values(user_seq.nextval,'\"+firstname+\"','\"+lastname+\"','\"+city+\"','\"+eMail+\"',\"+phone+\",'\"+dob+\"',sysdate,\"+pincode+\",login_seq.nextval-1,'\"+address+\"')\");\r\n\tResultSet rss=DbConnect.getStatement().executeQuery(\"select login_seq.nextval-2 from dual\");\r\n\tif(rss.next())\r\n\t{\r\n\t\tlogid=rss.getLong(1);\r\n\t}\r\n\trs=DbConnect.getStatement().executeQuery(\"select username from login where login_id=\"+logid+\"\");\r\n\treturn rs;\r\n}",
"public int loginHandleRegister(String username, String password) throws SQLException {\n\t\tQueryRunner runner = new QueryRunner(DataSourceUtils.getDataSource());\n\t\tString SQL=\"select count(*) from user where username=?&&password=?&&state=?\";\n\t long query = (long) runner.query(SQL, new ScalarHandler(),username,password,1);\n\t int count=new Long(query).intValue();\n\t\treturn count;\n\t}",
"public UserRecord(Integer id, String phonenum, String username, String password, String email, String corporation, Integer industry, String sites, String keyword, String salt, Integer vip, LocalDateTime loginTime, LocalDateTime signupTime, LocalDateTime vipEndTime, String friend) {\n super(User.USER);\n\n set(0, id);\n set(1, phonenum);\n set(2, username);\n set(3, password);\n set(4, email);\n set(5, corporation);\n set(6, industry);\n set(7, sites);\n set(8, keyword);\n set(9, salt);\n set(10, vip);\n set(11, loginTime);\n set(12, signupTime);\n set(13, vipEndTime);\n set(14, friend);\n }",
"int insert(LoginRecordDO record);",
"Date getLastLoginDate();",
"private void register(String username,String password){\n\n }",
"public interface LoginMapper {\n\n\t/**\n\t * 注册时查询用户是否已存在\n\t * \n\t * @param username\n\t * @return\n\t */\n\tpublic User findUserName(String username);\n\n\tpublic User findUserByU_P(@Param(\"username\") String username, @Param(\"password\") String password);\n\n\tpublic int finUserState(String userId);\n\n\tpublic String findMailById(String userId);\n\n\tpublic User findUserById(String id);\n\n\tpublic User findUserById(@Param(\"userId\") String id, @Param(\"username\") String username);\n\n\tpublic void updateUserState(@Param(\"userId\") String userId, @Param(\"state\") int state);\n\n\t// hgy\n\tpublic List<UserInfo> getFriendsByuserId(String userId);\n\n\tpublic void updateLoginTime(@Param(\"userId\") String userId,@Param(\"date\") Date date);\n\n}",
"public abstract User login(User data);",
"void setAllSeenByLogin(String login);",
"private String PerformLogin(String data){\n String[] parts = data.split(Pattern.quote(\"|||\"));\n String ret = null;\n try {\n Statement stmt = storage.getConn().createStatement();\n ResultSet rs = stmt.executeQuery(\"SELECT COUNT(*) AS count FROM Users WHERE username = '\" + parts[0] + \"' AND password = '\"+parts[1]+\"'\");\n rs.next();\n // verifico che ci sia un utente con i dati specificati\n if (rs.getInt(\"count\") > 0){\n String token = Helper.GenerateToken();\n\n // aggiorno la tabella degli utenti con il nuovo token dell'utente loggato e il suo indirizzo ip\n storage.PerformSQL(\"UPDATE Users SET token = '\"+token+\"', host_addr = '\"+client.getRemoteSocketAddress().toString()+\"' WHERE username = '\"+parts[0]+\"'\");\n ret = token;\n\n // inserisco l'utente nelle due liste degli utenti online\n current_online.add(token);\n next_online.add(token);\n } else\n ret = \"error\";\n\n rs.close();\n stmt.close();\n } catch (SQLException e ){\n e.printStackTrace();\n return \"error\";\n }\n\n return ret;\n }",
"@Insert({\r\n \"insert into umajin.user_master (user_id, nickname, \",\r\n \"sex, age, birthday, \",\r\n \"regist_date, update_date, \",\r\n \"disable)\",\r\n \"values (#{user_id,jdbcType=INTEGER}, #{nickname,jdbcType=VARCHAR}, \",\r\n \"#{sex,jdbcType=INTEGER}, #{age,jdbcType=INTEGER}, #{birthday,jdbcType=DATE}, \",\r\n \"#{regist_date,jdbcType=TIMESTAMP}, #{update_date,jdbcType=TIMESTAMP}, \",\r\n \"#{disable,jdbcType=INTEGER})\"\r\n })\r\n int insert(UserMaster record);",
"int insert(UserPasswordDO record);",
"void updateLastLogin()\n throws Exception;",
"public AuthenticatedUserDTO( int id, String firstName, String lastName, String email, String username,\n Timestamp lastLogin )\n {\n super();\n this.id = id;\n this.firstName = firstName;\n this.lastName = lastName;\n this.email = email;\n this.username = username;\n this.lastLogin = lastLogin;\n }",
"User getUserByLogin(String login);",
"public interface UserLoginLogDao {\n public void insertLoginLog(UserLoginLog userLoginLog);\n}",
"public int getLoginId() {\n return loginId;\n }",
"public interface IUserLoginService\n{\n final long versionID = 100L;\n String login(String username, String passwd);\n}",
"public String fetchCountMyData(User loginUser);",
"void updateFailedLogin(String username, long timestamp);",
"interface UserManager extends Remote {\n int USER_HAS_LOGGEDIN = -1;\n int USER_NOT_EXIST = -2;\n int USER_INCORRECT_PASSWORD = -3;\n int VALID = 0;\n int HAS_REGISTERED = -4;\n int DATABASE_ERROR = -5;\n int REMOTE_ERROR = -6;\n int login(String username, char[] password) throws RemoteException;\n int register(String username, char[] password) throws RemoteException;\n User getUser(int id) throws RemoteException;\n void logout(int id) throws RemoteException;\n int getRank(int id) throws RemoteException;\n ArrayList<User> getAllUsers() throws RemoteException;\n}",
"public List<Login>listar();",
"public interface LoginRepository {\n public boolean addUser(User user);\n public User logIn(String username);\n public boolean addAccess(User user, Course course);\n public ArrayList<User> getUsers();\n public ArrayList<Integer> getCourseAccess(String username);\n public boolean removeCourseAccess(User user, Course course);\n public boolean deleteUser(User user);\n}",
"@Override\r\n\tpublic void login() {\n\t\t\r\n\t}",
"private Users buildLogin( ) {\n\t\t\r\n\t\t return LoginUtil.fillUserData(this.user, this);\r\n\t\t \r\n\t}",
"public Integer getLoginid() {\n return loginid;\n }",
"public User(int id,String firstName, String lastName, String username, String email, String password, String city, String country, String gender, Date birthdate, int age, int imgUser, Date last_access, Date registration_date) {\n this.id = id;\n this.firstName = firstName;\n this.lastName = lastName;\n this.username = username;\n this.email = email;\n this.password = password;\n this.city = city;\n this.country = country;\n this.gender = gender;\n this.birthdate = birthdate;\n this.age = age;\n this.imgUser = imgUser;\n this.last_access = last_access;\n this.registration_date = registration_date;\n }",
"public String getLoginID(){\r\n return loginID;\r\n }",
"public Map<String, String> listUserData(String login, int limit, int offset);",
"public User(long id, String fistname, String secondname, String username, String password, String mail){\n this.id = id;\n this.firstname = fistname;\n this.secondname = secondname;\n this.username = username;\n this.password = password;\n this.email = mail;\n }",
"public User(String login) {\n this.login = login;\n }",
"void registerNewUser(String login, String name, String password, String matchingPassword,\n String email);",
"public interface UserMapper {\n @Insert(\"INSERT INTO USERS (id,name,password) VALUES (#{id},#{name},#{password})\")\n int insert(User user);//插入用户\n @Select(\"SELECT * FROM USERS WHERE id=#{param1} and password=(#{param2})\")\n User checkUser(int id,String password);\n}",
"@Override\r\n\tpublic void Login(DbInterface dbi) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void login() {\n\r\n\t}",
"public ResultSet Compreg(String compname, String address, String city, String state,\r\n\t\tLong offno, Long faxno, String website, String eMail, String username,\r\n\t\tString password, String security, String answer) throws SQLException {\n\tLong logid=null;\r\n\tint i=DbConnect.getStatement().executeUpdate(\"insert into login values(login_seq.nextval,'\"+username+\"'||username_seq.nextval,'\"+password+\"','not approved','company','\"+security+\"','\"+answer+\"') \");\r\n\tint j=DbConnect.getStatement().executeUpdate(\"insert into company values(comp_seq.nextval,'\"+compname+\"','\"+address+\"','\"+city+\"','\"+state+\"',\"+offno+\",\"+faxno+\",'\"+website+\"','\"+eMail+\"',login_seq.nextval-1,sysdate)\");\r\n\tResultSet rss=DbConnect.getStatement().executeQuery(\"select login_seq.nextval-2 from dual\");\r\n\tif(rss.next())\r\n\t{\r\n\t\tlogid=rss.getLong(1);\r\n\t}\r\n\trs=DbConnect.getStatement().executeQuery(\"select username from login where login_id=\"+logid+\"\");\r\n\treturn rs;\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 }",
"public User loadUserByLogin(String login);",
"String getLoginId();",
"User findUserByLogin(String login);",
"public Date getLoginDate() {\n return loginDate;\n }",
"public User() {\n this.firstName = \"Lorenzo\";\n this.lastName = \"Malferrari\";\n this.username = \"[email protected]\";\n this.email = \"[email protected]\";\n this.password = \"123456\";\n this.city = \"Bologna\";\n this.country = \"Italia\";\n this.gender = \"Maschio\";\n this.birthdate = new Date();\n this.age = 21;\n this.imgUser = 1;\n this.last_access = new Date();\n this.registration_date = new Date();\n }",
"public void addUserToken(String login, String token) throws SQLException;",
"public boolean registerUser(String username, String password) throws SQLException {\n String user_row = String.format(\"INSERT INTO %s (%s, %s) VALUES (?, ?)\",\n table_users.name, table_users.cols.username, table_users.cols.hash_pw);\n //Encrypt password\n String salt = BCrypt.gensalt(FHALF_LENGTH, new SecureRandom());\n StringBuilder hash_pw = new StringBuilder(BCrypt.hashpw(password, salt));\n\n //Move second half of salt to end of string\n String lHalf = hash_pw.substring(FHALF_LENGTH, SALT_LENGTH);\n hash_pw.replace(FHALF_LENGTH, SALT_LENGTH, \"\");\n hash_pw.append(lHalf);\n\n //Set parameters\n PreparedStatement prepStmnt = con.prepareStatement(user_row);\n prepStmnt.setString(1, username);\n prepStmnt.setString(2, hash_pw.toString());\n int user_cols_changed = prepStmnt.executeUpdate();\n \n //Retrieve user id (FUCK)\n String retrieve = String.format(\"SELECT * FROM %s WHERE %s = ?\", table_users.name, table_users.cols.username);\n PreparedStatement stmnt = con.prepareStatement(retrieve);\n stmnt.setString(1, username);\n ResultSet curr_user = stmnt.executeQuery();\n curr_user.next();\n int id = curr_user.getInt(table_users.cols.id);\n \n //Insert row for user avatar info\n String avatar_row = String.format(\"INSERT INTO %s (%s) VALUES (?)\", table_avatars.name, table_avatars.cols.id);\n PreparedStatement avatar = con.prepareStatement(avatar_row);\n avatar.setInt(1, id);\n int avatar_cols_changed = avatar.executeUpdate();\n \n return user_cols_changed != 0 && avatar_cols_changed != 0;\n }",
"LoginHistory findById( Long id ) ;",
"void login(String user, String password);",
"public Person login(String username, String password);",
"@Query(\"SELECT * FROM USERS_TABLE\")\n List<UsersEntity>checkUsernameAndPassword();",
"User login(String username, String password);",
"Login() { \n }",
"public interface LoginHistoryService { \n\n\t/**\n\t * Loads an entity from the database using its Primary Key\n\t * @param id\n\t * @return entity\n\t */\n\tLoginHistory findById( Long id ) ;\n\n\t/** \n\t * Loads all entities.\n\t * @return all entities\n\t */\n\tList<LoginHistory> findAll();\n\t\n\t/**\n\t * Loads entities in page number.\n\t * @return entities\n\t */\n\n\tPage<LoginHistoryEntity> findAll(Integer page);\n\n\t/**\n\t * Count all entities\n\t * @return Long\n\t */\n\tLong countTotal();\n\t\n\n\t/**\n\t * Saves the given entity in the database (create or update)\n\t * @param entity\n\t * @return entity\n\t */\n\tLoginHistory save(LoginHistory entity);\n\n\t/**\n\t * Updates the given entity in the database\n\t * @param entity\n\t * @return\n\t */\n\tLoginHistory update(LoginHistory entity);\n\n\t/**\n\t * Creates the given entity in the database\n\t * @param entity\n\t * @return\n\t */\n\tLoginHistory create(LoginHistory entity);\n\t\n\t/**\n\t * Deletes an entity using its Primary Key\n\t * @param id\n\t */\n\tvoid delete( Long id );\n\n\tPage<LoginHistoryEntity> listPaging(Integer page,Integer size);\n\t\n\tPage<LoginHistoryEntity> listPagingByUserId( Integer page, Integer size, Integer userId);\n\n\tint countByDeviceIdAndUserIdAndCreateDate(String deviceId, Integer userId, Date date );\n\t\n\tPageCustom<LoginStatistics> filterStatistics(SearchStatistics s, Integer page, Integer size);\n\n\tPageCustom<AccessDevice> filterAccessDeviceStatistics(SearchStatistics s, Integer page, Integer size);\n\t\n\tLoginHistory listPagingByDeviceIdAndUserIdAndCreateDate(String deviceId, Integer userId, Date date);\n}",
"@Override\r\n\tpublic boolean register(String email, String id, String pw) {\n\t\treturn jdbcTemplate.update(\"insert into s_member values(?,?,?,\"\r\n\t\t\t\t+ \"'normal',sysdate)\",email,id,pw)>0;\r\n\t}",
"public User findUserByLogin(final String login);",
"public UserWithNickAlreadyLogged(int id){\n this.id = id;\n }",
"public void addUserCredentials(String login, String password) throws SQLException;",
"public UserDTO(int id, String username, String hashedPassword, byte[] salt){\n this.id = id;\n this.username = username;\n this.password = hashedPassword;\n this.salt = salt;\n }",
"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 }",
"private void login(String username,String password){\n\n }",
"public interface User {\n\n //用户注册\n public String register(UsersEntity usersEntity);\n\n //用户登陆\n public String login(UsersEntity usersEntity);\n\n //用户登出\n public String logout(UsersEntity usersEntity);\n\n //检查MAC Email是否被注册\n public String vaildRegist(UsersEntity usersEntity);\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}",
"Long insert(User user);",
"@ApiOperation(value = \"카카오로그인\", response = User.class)\n\t@PostMapping(\"/login\")\n\t public ResponseEntity<User> login(@RequestBody String accessToken) {\n\t \n\t int indexsame = 0;\n\t indexsame= accessToken.indexOf(\"=\");\n\t String token = accessToken.substring(indexsame+1, accessToken.length());\n\t HashMap<String,Object>userInfo =kakao.getUserInfo(token);\n\t User loginuser=new User();\n\t String id;\n\t String nickname;\n\t Object temp;\n\t if(userInfo!=null) {\n\t temp= userInfo.get(\"id\");\n\t temp=temp+\"\";\n\t id= temp+\"kakao.com\";\n\t if(userservice.getUserCount(id)>0) {\n\t User user= new User();\n\t user.setUserId(id);\n\t loginuser=userservice.login(user);\n\t }\n\t else if(userservice.getUserCount(id)==0) {\n\t Random r = new Random();\n\t int dice = r.nextInt(157211)+48271;\n\t String dicesen=Integer.toString(dice);\n\t String pw = dicesen;\n\t loginuser.setUserId(id);\n\t loginuser.setUserPw(pw);\n\t int totalcount=userservice.getTotalCount();\n\t loginuser.setUserName(totalcount+\"\");\n\t nickname= temp+\"\";\n\t loginuser.setUserNickname(nickname);\n\t userservice.insertUser(loginuser);\n\t }\n\t }\n\t return new ResponseEntity<User>(loginuser, HttpStatus.OK);\n\t}",
"public void setLastLogin(int lastLogin) { \n\t\t this.lastLogin = lastLogin; \n\t}",
"public User(int user_id, String full_name, String address, String postal_code, int mobile_no,\n String snow_zone, String garbage_day, String password){\n this.user_id = user_id;\n this.full_name = full_name;\n this.address = address;\n this.postal_code = postal_code;\n this.mobile_no = mobile_no;\n this.snow_zone = snow_zone;\n this.garbage_day = garbage_day;\n this.password = password;\n\n }",
"public static int register(String username, String password, int avatarNum){\n try {\n Statement st = conn.createStatement();\n ResultSet largestId = st.executeQuery(\"select max(userid) from users\");\n largestId.next();\n int thisId = Integer.parseInt(largestId.getString(1))+1;\n String encryptedPwd = encrypt(password);\n\n String insertUserCommand = String.format(\"INSERT INTO users(userid, username, password, avatarnum) VALUES(%d, '{%s}','{%s}',%d)\",thisId,username,encryptedPwd,avatarNum);\n st.executeUpdate(insertUserCommand);\n largestId.close();\n st.close();\n return thisId;\n }catch (SQLException e){\n return SERVER_FAILURE;\n }\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 Integer getLoginId() {\n return loginId;\n }",
"public Integer logIn(String u_name, String u_pw){\n //find entry with u_name = this.u_name\n //probably not so safe\n //getting user with index 0 because getUserFromUsername returns List\n User user = userDao.getUserFromUsername(u_name).get(0);\n //print at console\n LOGGER.info(\"User: \" + user);\n //returns integer 1 if user.get_pw equals to this.pw or 0 if not\n if (user.getU_Pw().equals(u_pw)){\n return user.getU_Id();\n }else{\n return 0;\n }\n }",
"@Override\n public long loginperson(String id, String pw) {\n long result = -1;\n String response = \"\";\n\n try {\n request = new HttpRequest( HTTP_URL_LOGINPERSON );\n request.configPostType( HttpRequest.MineType.VALUES );\n request.addParameter(\"id\", id);\n request.addParameter(\"pw\", pw);\n\n httpCode = request.post();\n\n if( httpCode == HttpURLConnection.HTTP_OK ) {\n response = request.getStringResponse();\n }\n\n // 형변환\n result = Long.valueOf( response );\n } catch (IOException e) {\n e.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return result;\n }",
"public interface BookLoginDao {\r\n int SaveBookLogin(BookLogin bookLogin);\r\n\r\n int getLastOrder();\r\n\r\n Map<String, Object> getBookLoginPage(DataGridModel dgm, Login_Catalog bookLogin);\r\n\r\n\r\n}",
"User findByLogin(String login);",
"public void setLoginid(Integer loginid) {\n this.loginid = loginid;\n }"
]
| [
"0.6687849",
"0.6471946",
"0.64135003",
"0.63905513",
"0.6104411",
"0.6077001",
"0.59108233",
"0.5909348",
"0.59069955",
"0.5832791",
"0.582241",
"0.582241",
"0.582241",
"0.5820515",
"0.5809692",
"0.5806264",
"0.57907826",
"0.5789611",
"0.5789611",
"0.5789611",
"0.5789611",
"0.5789611",
"0.57840985",
"0.57840985",
"0.57840985",
"0.57803404",
"0.5753284",
"0.5740069",
"0.57267123",
"0.5697313",
"0.5686194",
"0.56791973",
"0.5678793",
"0.5663023",
"0.56579447",
"0.5647718",
"0.5642338",
"0.56365675",
"0.56350434",
"0.5611947",
"0.55984193",
"0.5596102",
"0.5592672",
"0.5580336",
"0.5571845",
"0.5566384",
"0.55626535",
"0.55486125",
"0.5541055",
"0.5527587",
"0.55256224",
"0.5522804",
"0.5521765",
"0.5509104",
"0.5505551",
"0.5504756",
"0.5500129",
"0.5498965",
"0.5494557",
"0.54906625",
"0.5490641",
"0.5485735",
"0.5467625",
"0.5461646",
"0.5459775",
"0.545716",
"0.5443793",
"0.5442965",
"0.54424065",
"0.5430344",
"0.5428752",
"0.542628",
"0.5421539",
"0.54199386",
"0.5417341",
"0.541635",
"0.5414129",
"0.5403143",
"0.5401011",
"0.5399849",
"0.5398008",
"0.5395376",
"0.5392094",
"0.53893685",
"0.53869164",
"0.5385177",
"0.5384925",
"0.5371569",
"0.53708714",
"0.53610915",
"0.53583413",
"0.5355996",
"0.5353261",
"0.5351558",
"0.5349855",
"0.5344031",
"0.53348225",
"0.5327516",
"0.5326653",
"0.53228563"
]
| 0.59844106 | 6 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
painelFundo = new javax.swing.JPanel();
painel6 = new javax.swing.JPanel();
jLabel28 = new javax.swing.JLabel();
labelcone4 = new javax.swing.JLabel();
jLabel35 = new javax.swing.JLabel();
cilindro_respArea = new javax.swing.JTextField();
cilindro_areaTxtRaio = new javax.swing.JTextField();
cilindro_areaTxtArea = new javax.swing.JTextField();
cilindro_btnArea = new javax.swing.JButton();
cilindro_eixoX = new javax.swing.JTextField();
labelcone5 = new javax.swing.JLabel();
cilindro_eixoY = new javax.swing.JTextField();
labelcone6 = new javax.swing.JLabel();
jLabel45 = new javax.swing.JLabel();
cilindro_respVol = new javax.swing.JTextField();
jLabel58 = new javax.swing.JLabel();
jLabel59 = new javax.swing.JLabel();
jLabel62 = new javax.swing.JLabel();
jLabel63 = new javax.swing.JLabel();
labelcone7 = new javax.swing.JLabel();
labelcone13 = new javax.swing.JLabel();
labelcone14 = new javax.swing.JLabel();
labelcone15 = new javax.swing.JLabel();
PainelBotoes = new javax.swing.JPanel();
linhaHorizontalPainel = new javax.swing.JPanel();
botao1 = new javax.swing.JPanel();
textoBotao1 = new javax.swing.JLabel();
abaBotao1 = new javax.swing.JPanel();
botao1Select = new javax.swing.JPanel();
txtBotaoSelect1 = new javax.swing.JLabel();
titulo1 = new javax.swing.JLabel();
titulo2 = new javax.swing.JLabel();
titulo3 = new javax.swing.JLabel();
titulo5 = new javax.swing.JLabel();
titulo6 = new javax.swing.JLabel();
botao2 = new javax.swing.JPanel();
textoBotao2 = new javax.swing.JLabel();
abaBotao2 = new javax.swing.JPanel();
botao_aba_Triangulo = new javax.swing.JPanel();
txtBotaoSelect2 = new javax.swing.JLabel();
botao3 = new javax.swing.JPanel();
abaBotao3 = new javax.swing.JPanel();
botao3Select = new javax.swing.JPanel();
txtBotaoSelect3 = new javax.swing.JLabel();
textoBotao3 = new javax.swing.JLabel();
botao4 = new javax.swing.JPanel();
abaBotao4 = new javax.swing.JPanel();
botao4Select = new javax.swing.JPanel();
txtBotaoSelect4 = new javax.swing.JLabel();
textoBotao4 = new javax.swing.JLabel();
botao5 = new javax.swing.JPanel();
abaBotao5 = new javax.swing.JPanel();
botao5Select = new javax.swing.JPanel();
txtBotaoSelect5 = new javax.swing.JLabel();
textoBotao5 = new javax.swing.JLabel();
botao6 = new javax.swing.JPanel();
abaBotao6 = new javax.swing.JPanel();
botao6Select = new javax.swing.JPanel();
txtBotaoSelect6 = new javax.swing.JLabel();
textoBotao6 = new javax.swing.JLabel();
botao7 = new javax.swing.JPanel();
abaBotao7 = new javax.swing.JPanel();
botao7Select = new javax.swing.JPanel();
txtBotaoSelect7 = new javax.swing.JLabel();
textoBotao7 = new javax.swing.JLabel();
botao8 = new javax.swing.JPanel();
abaBotao8 = new javax.swing.JPanel();
botao8Select = new javax.swing.JPanel();
txtBotaoSelect8 = new javax.swing.JLabel();
textoBotao8 = new javax.swing.JLabel();
painel1 = new javax.swing.JPanel();
caminhoObjetos = new javax.swing.JTextField();
jLabel2 = new javax.swing.JLabel();
jScrollPane2 = new javax.swing.JScrollPane();
telaObjetos = new javax.swing.JTextArea();
jLabel1 = new javax.swing.JLabel();
jLabel15 = new javax.swing.JLabel();
btnCarregarObjetos = new javax.swing.JButton();
limparCampo = new javax.swing.JButton();
salvar_objetos = new javax.swing.JButton();
painel2 = new javax.swing.JPanel();
jLabel8 = new javax.swing.JLabel();
jLabel11 = new javax.swing.JLabel();
jLabel12 = new javax.swing.JLabel();
jLabel13 = new javax.swing.JLabel();
triangulo_ladoAtxt = new javax.swing.JTextField();
triangulo_ladoBtxt = new javax.swing.JTextField();
triangulo_ladoCtxt = new javax.swing.JTextField();
jLabel9 = new javax.swing.JLabel();
triangulo_resp_perimetro = new javax.swing.JTextField();
triangulo_btn_calcPerimetro = new javax.swing.JButton();
triangulo_alturaTxt = new javax.swing.JTextField();
jLabel14 = new javax.swing.JLabel();
jLabel16 = new javax.swing.JLabel();
triangulo_baseTxt = new javax.swing.JTextField();
triangulo_respAreaTxt = new javax.swing.JTextField();
jLabel10 = new javax.swing.JLabel();
jLabel17 = new javax.swing.JLabel();
triangulo_eixoX = new javax.swing.JTextField();
jLabel18 = new javax.swing.JLabel();
jLabel19 = new javax.swing.JLabel();
triangulo_eixoY = new javax.swing.JTextField();
jLabel50 = new javax.swing.JLabel();
jLabel53 = new javax.swing.JLabel();
labelcone21 = new javax.swing.JLabel();
labelcone22 = new javax.swing.JLabel();
labelcone23 = new javax.swing.JLabel();
labelcone24 = new javax.swing.JLabel();
labelcone25 = new javax.swing.JLabel();
labelcone26 = new javax.swing.JLabel();
labelcone27 = new javax.swing.JLabel();
painel3 = new javax.swing.JPanel();
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
jLabel7 = new javax.swing.JLabel();
cone_respVol = new javax.swing.JTextField();
cone_alturaVol = new javax.swing.JTextField();
jLabel31 = new javax.swing.JLabel();
jLabel33 = new javax.swing.JLabel();
cone_areaTotal = new javax.swing.JTextField();
cone_areaRaio = new javax.swing.JTextField();
cone_areaGeratriz = new javax.swing.JTextField();
cone_btnAreaTot = new javax.swing.JButton();
jLabel34 = new javax.swing.JLabel();
cone_eixoY = new javax.swing.JTextField();
cone_eixoX = new javax.swing.JTextField();
jLabel36 = new javax.swing.JLabel();
jLabel32 = new javax.swing.JLabel();
jLabel47 = new javax.swing.JLabel();
jLabel52 = new javax.swing.JLabel();
jLabel37 = new javax.swing.JLabel();
jLabel42 = new javax.swing.JLabel();
jLabel44 = new javax.swing.JLabel();
jLabel68 = new javax.swing.JLabel();
jLabel69 = new javax.swing.JLabel();
painel4 = new javax.swing.JPanel();
paralelepipedo_btnCalcArea = new javax.swing.JButton();
paralelepipedo_alturaArea = new javax.swing.JTextField();
jLabel20 = new javax.swing.JLabel();
paralelepipedo_largArea = new javax.swing.JTextField();
jLabel21 = new javax.swing.JLabel();
paralelepipedo_compArea = new javax.swing.JTextField();
jLabel22 = new javax.swing.JLabel();
jLabel23 = new javax.swing.JLabel();
paralelepipedo_respArea = new javax.swing.JTextField();
jLabel27 = new javax.swing.JLabel();
paralelepipedo_volResp = new javax.swing.JTextField();
jLabel29 = new javax.swing.JLabel();
paralelepipedo_EixoX = new javax.swing.JTextField();
paralelepipedo_EixoY = new javax.swing.JTextField();
jLabel30 = new javax.swing.JLabel();
jLabel54 = new javax.swing.JLabel();
jLabel55 = new javax.swing.JLabel();
jLabel56 = new javax.swing.JLabel();
jLabel57 = new javax.swing.JLabel();
jLabel60 = new javax.swing.JLabel();
jLabel61 = new javax.swing.JLabel();
labelcone16 = new javax.swing.JLabel();
labelcone17 = new javax.swing.JLabel();
labelcone18 = new javax.swing.JLabel();
labelcone19 = new javax.swing.JLabel();
labelcone20 = new javax.swing.JLabel();
painel5 = new javax.swing.JPanel();
jLabel46 = new javax.swing.JLabel();
jLabel48 = new javax.swing.JLabel();
quad_respPer = new javax.swing.JTextField();
labelcone9 = new javax.swing.JLabel();
quad_eixoX = new javax.swing.JTextField();
labelcone10 = new javax.swing.JLabel();
quad_eixoY = new javax.swing.JTextField();
quad_btnArea = new javax.swing.JButton();
jLabel49 = new javax.swing.JLabel();
jLabel51 = new javax.swing.JLabel();
labelcone12 = new javax.swing.JLabel();
quad_respArea = new javax.swing.JTextField();
quad_areaLadoA = new javax.swing.JTextField();
jLabel66 = new javax.swing.JLabel();
jLabel67 = new javax.swing.JLabel();
labelcone28 = new javax.swing.JLabel();
labelcone29 = new javax.swing.JLabel();
labelcone30 = new javax.swing.JLabel();
painel7 = new javax.swing.JPanel();
jLabel6 = new javax.swing.JLabel();
labelcone1 = new javax.swing.JLabel();
jLabel38 = new javax.swing.JLabel();
equacao_x1 = new javax.swing.JTextField();
equacao_A = new javax.swing.JTextField();
equacao_calcular = new javax.swing.JButton();
jLabel39 = new javax.swing.JLabel();
labelcone2 = new javax.swing.JLabel();
equacao_B = new javax.swing.JTextField();
equacao_C = new javax.swing.JTextField();
labelcone3 = new javax.swing.JLabel();
jLabel40 = new javax.swing.JLabel();
equacao_x2 = new javax.swing.JTextField();
jLabel41 = new javax.swing.JLabel();
equacao_Delta = new javax.swing.JTextField();
jLabel64 = new javax.swing.JLabel();
jLabel65 = new javax.swing.JLabel();
painel8 = new javax.swing.JPanel();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("Programa de Calculo");
setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
setLocation(new java.awt.Point(400, 90));
setMaximumSize(new java.awt.Dimension(720, 560));
setMinimumSize(new java.awt.Dimension(820, 560));
setName("janelaPrincipal"); // NOI18N
setPreferredSize(new java.awt.Dimension(710, 550));
setResizable(false);
setSize(new java.awt.Dimension(710, 550));
painelFundo.setBackground(new java.awt.Color(255, 255, 255));
painelFundo.setMinimumSize(new java.awt.Dimension(820, 550));
painelFundo.setPreferredSize(new java.awt.Dimension(820, 550));
painelFundo.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
painel6.setBackground(new java.awt.Color(220, 123, 103));
painel6.setLayout(null);
jLabel28.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
jLabel28.setText("Altura:");
painel6.add(jLabel28);
jLabel28.setBounds(50, 160, 49, 34);
labelcone4.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
labelcone4.setText("Raio:");
painel6.add(labelcone4);
labelcone4.setBounds(61, 124, 38, 39);
jLabel35.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
jLabel35.setText("Area Total:");
painel6.add(jLabel35);
jLabel35.setBounds(10, 287, 81, 39);
cilindro_respArea.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
cilindro_respAreaActionPerformed(evt);
}
});
painel6.add(cilindro_respArea);
cilindro_respArea.setBounds(101, 295, 74, 20);
cilindro_areaTxtRaio.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
cilindro_areaTxtRaioActionPerformed(evt);
}
});
painel6.add(cilindro_areaTxtRaio);
cilindro_areaTxtRaio.setBounds(110, 130, 72, 20);
cilindro_areaTxtArea.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
cilindro_areaTxtAreaActionPerformed(evt);
}
});
painel6.add(cilindro_areaTxtArea);
cilindro_areaTxtArea.setBounds(110, 160, 72, 20);
cilindro_btnArea.setText("Calcular");
cilindro_btnArea.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
cilindro_btnAreaActionPerformed(evt);
}
});
painel6.add(cilindro_btnArea);
cilindro_btnArea.setBounds(237, 346, 90, 23);
cilindro_eixoX.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
cilindro_eixoXActionPerformed(evt);
}
});
painel6.add(cilindro_eixoX);
cilindro_eixoX.setBounds(113, 30, 72, 20);
labelcone5.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
labelcone5.setText("m²");
painel6.add(labelcone5);
labelcone5.setBounds(190, 120, 41, 39);
cilindro_eixoY.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
cilindro_eixoYActionPerformed(evt);
}
});
painel6.add(cilindro_eixoY);
cilindro_eixoY.setBounds(278, 30, 72, 20);
labelcone6.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
labelcone6.setText("Eixo Y: ");
painel6.add(labelcone6);
labelcone6.setBounds(211, 22, 63, 39);
jLabel45.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
jLabel45.setText("Volume:");
painel6.add(jLabel45);
jLabel45.setBounds(32, 339, 61, 39);
cilindro_respVol.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
cilindro_respVolActionPerformed(evt);
}
});
painel6.add(cilindro_respVol);
cilindro_respVol.setBounds(103, 347, 74, 20);
jLabel58.setFont(new java.awt.Font("Calibri", 1, 18)); // NOI18N
jLabel58.setText("Formula Área");
painel6.add(jLabel58);
jLabel58.setBounds(275, 104, 199, 23);
jLabel59.setFont(new java.awt.Font("Calibri", 1, 18)); // NOI18N
jLabel59.setText("Formula Volume");
painel6.add(jLabel59);
jLabel59.setBounds(257, 235, 199, 23);
jLabel62.setFont(new java.awt.Font("Calibri Light", 3, 24)); // NOI18N
jLabel62.setText(" A = 2 . pi . r ( r + h )");
painel6.add(jLabel62);
jLabel62.setBounds(244, 145, 223, 35);
jLabel63.setFont(new java.awt.Font("Calibri Light", 3, 24)); // NOI18N
jLabel63.setText("V = pi . r² . h");
painel6.add(jLabel63);
jLabel63.setBounds(277, 264, 179, 55);
labelcone7.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
labelcone7.setText("Eixo X: ");
painel6.add(labelcone7);
labelcone7.setBounds(50, 22, 59, 39);
labelcone13.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
labelcone13.setText("m³");
painel6.add(labelcone13);
labelcone13.setBounds(181, 340, 41, 39);
labelcone14.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
labelcone14.setText("m²");
painel6.add(labelcone14);
labelcone14.setBounds(190, 150, 41, 39);
labelcone15.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
labelcone15.setText("m²");
painel6.add(labelcone15);
labelcone15.setBounds(185, 288, 41, 39);
painelFundo.add(painel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 0, 560, 550));
PainelBotoes.setBackground(new java.awt.Color(56, 55, 55));
linhaHorizontalPainel.setBackground(new java.awt.Color(153, 153, 153));
linhaHorizontalPainel.setPreferredSize(new java.awt.Dimension(240, 2));
linhaHorizontalPainel.setRequestFocusEnabled(false);
javax.swing.GroupLayout linhaHorizontalPainelLayout = new javax.swing.GroupLayout(linhaHorizontalPainel);
linhaHorizontalPainel.setLayout(linhaHorizontalPainelLayout);
linhaHorizontalPainelLayout.setHorizontalGroup(
linhaHorizontalPainelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 248, Short.MAX_VALUE)
);
linhaHorizontalPainelLayout.setVerticalGroup(
linhaHorizontalPainelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 2, Short.MAX_VALUE)
);
botao1.setBackground(new java.awt.Color(56, 55, 55));
botao1.setPreferredSize(new java.awt.Dimension(150, 76));
botao1.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
botao1MouseClicked(evt);
}
public void mouseEntered(java.awt.event.MouseEvent evt) {
botao1MouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
botao1MouseExited(evt);
}
});
botao1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
textoBotao1.setFont(new java.awt.Font("Calibri", 0, 24)); // NOI18N
textoBotao1.setForeground(new java.awt.Color(204, 204, 204));
textoBotao1.setText("Objetos Salvos");
botao1.add(textoBotao1, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 7, -1, -1));
abaBotao1.setBackground(new java.awt.Color(121, 121, 121));
abaBotao1.setPreferredSize(new java.awt.Dimension(4, 76));
abaBotao1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
botao1.add(abaBotao1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 8, -1));
botao1Select.setBackground(new java.awt.Color(83, 83, 83));
botao1Select.setPreferredSize(new java.awt.Dimension(150, 55));
botao1Select.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
botao1SelectMouseClicked(evt);
}
public void mouseEntered(java.awt.event.MouseEvent evt) {
botao1SelectMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
botao1SelectMouseExited(evt);
}
});
botao1Select.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
txtBotaoSelect1.setFont(new java.awt.Font("Calibri", 0, 24)); // NOI18N
txtBotaoSelect1.setForeground(new java.awt.Color(204, 204, 204));
txtBotaoSelect1.setText("Objetos Salvos");
botao1Select.add(txtBotaoSelect1, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 7, -1, -1));
botao1.add(botao1Select, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 260, 40));
titulo1.setFont(new java.awt.Font("Calibri", 0, 24)); // NOI18N
titulo1.setForeground(new java.awt.Color(204, 204, 204));
titulo1.setText("v0.05");
titulo2.setFont(new java.awt.Font("Calibri", 0, 24)); // NOI18N
titulo2.setForeground(new java.awt.Color(204, 204, 204));
titulo2.setText("Funções Matemáticas ");
titulo3.setFont(new java.awt.Font("Calibri", 1, 36)); // NOI18N
titulo3.setForeground(new java.awt.Color(204, 204, 204));
titulo3.setText("Cálculos ");
titulo5.setFont(new java.awt.Font("Calibri", 0, 24)); // NOI18N
titulo5.setForeground(new java.awt.Color(204, 204, 204));
titulo5.setText("&");
titulo6.setFont(new java.awt.Font("Calibri", 0, 24)); // NOI18N
titulo6.setForeground(new java.awt.Color(204, 204, 204));
titulo6.setText("Geometria");
botao2.setBackground(new java.awt.Color(56, 55, 55));
botao2.setPreferredSize(new java.awt.Dimension(300, 76));
botao2.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
botao2MouseClicked(evt);
}
public void mouseEntered(java.awt.event.MouseEvent evt) {
botao2MouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
botao2MouseExited(evt);
}
});
botao2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
textoBotao2.setFont(new java.awt.Font("Calibri", 0, 24)); // NOI18N
textoBotao2.setForeground(new java.awt.Color(204, 204, 204));
textoBotao2.setText("Triangulo");
botao2.add(textoBotao2, new org.netbeans.lib.awtextra.AbsoluteConstraints(85, 7, -1, -1));
abaBotao2.setBackground(new java.awt.Color(121, 121, 121));
abaBotao2.setPreferredSize(new java.awt.Dimension(4, 76));
abaBotao2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
botao2.add(abaBotao2, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 8, -1));
botao_aba_Triangulo.setBackground(new java.awt.Color(83, 83, 83));
botao_aba_Triangulo.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
botao_aba_TrianguloMouseClicked(evt);
}
public void mouseEntered(java.awt.event.MouseEvent evt) {
botao_aba_TrianguloMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
botao_aba_TrianguloMouseExited(evt);
}
});
botao_aba_Triangulo.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
txtBotaoSelect2.setFont(new java.awt.Font("Calibri", 0, 24)); // NOI18N
txtBotaoSelect2.setForeground(new java.awt.Color(204, 204, 204));
txtBotaoSelect2.setText("Triangulo");
botao_aba_Triangulo.add(txtBotaoSelect2, new org.netbeans.lib.awtextra.AbsoluteConstraints(85, 7, -1, -1));
botao2.add(botao_aba_Triangulo, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 260, 40));
botao3.setBackground(new java.awt.Color(56, 55, 55));
botao3.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
botao3MouseClicked(evt);
}
public void mouseEntered(java.awt.event.MouseEvent evt) {
botao3MouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
botao3MouseExited(evt);
}
});
botao3.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
abaBotao3.setBackground(new java.awt.Color(121, 121, 121));
abaBotao3.setPreferredSize(new java.awt.Dimension(4, 76));
abaBotao3.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
botao3.add(abaBotao3, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 8, -1));
botao3Select.setBackground(new java.awt.Color(83, 83, 83));
botao3Select.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
botao3SelectMouseClicked(evt);
}
public void mouseEntered(java.awt.event.MouseEvent evt) {
botao3SelectMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
botao3SelectMouseExited(evt);
}
});
botao3Select.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
txtBotaoSelect3.setFont(new java.awt.Font("Calibri", 0, 24)); // NOI18N
txtBotaoSelect3.setForeground(new java.awt.Color(204, 204, 204));
txtBotaoSelect3.setText("Cone");
botao3Select.add(txtBotaoSelect3, new org.netbeans.lib.awtextra.AbsoluteConstraints(105, 7, -1, -1));
botao3.add(botao3Select, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 260, 40));
textoBotao3.setFont(new java.awt.Font("Calibri", 0, 24)); // NOI18N
textoBotao3.setForeground(new java.awt.Color(204, 204, 204));
textoBotao3.setText("Cone");
botao3.add(textoBotao3, new org.netbeans.lib.awtextra.AbsoluteConstraints(105, 7, -1, -1));
botao4.setBackground(new java.awt.Color(56, 55, 55));
botao4.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
botao4MouseClicked(evt);
}
public void mouseEntered(java.awt.event.MouseEvent evt) {
botao4MouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
botao4MouseExited(evt);
}
});
botao4.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
abaBotao4.setBackground(new java.awt.Color(121, 121, 121));
abaBotao4.setPreferredSize(new java.awt.Dimension(4, 76));
abaBotao4.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
botao4.add(abaBotao4, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 8, -1));
botao4Select.setBackground(new java.awt.Color(83, 83, 83));
botao4Select.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
botao4SelectMouseClicked(evt);
}
public void mouseEntered(java.awt.event.MouseEvent evt) {
botao4SelectMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
botao4SelectMouseExited(evt);
}
});
botao4Select.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
txtBotaoSelect4.setFont(new java.awt.Font("Calibri", 0, 24)); // NOI18N
txtBotaoSelect4.setForeground(new java.awt.Color(204, 204, 204));
txtBotaoSelect4.setText("Paralelepípedo");
botao4Select.add(txtBotaoSelect4, new org.netbeans.lib.awtextra.AbsoluteConstraints(55, 7, -1, -1));
botao4.add(botao4Select, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 260, 40));
textoBotao4.setFont(new java.awt.Font("Calibri", 0, 24)); // NOI18N
textoBotao4.setForeground(new java.awt.Color(204, 204, 204));
textoBotao4.setText("Paralelepípedo");
botao4.add(textoBotao4, new org.netbeans.lib.awtextra.AbsoluteConstraints(55, 7, -1, -1));
botao5.setBackground(new java.awt.Color(56, 55, 55));
botao5.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
botao5MouseClicked(evt);
}
public void mouseEntered(java.awt.event.MouseEvent evt) {
botao5MouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
botao5MouseExited(evt);
}
});
botao5.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
abaBotao5.setBackground(new java.awt.Color(121, 121, 121));
abaBotao5.setPreferredSize(new java.awt.Dimension(4, 76));
abaBotao5.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
botao5.add(abaBotao5, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 8, -1));
botao5Select.setBackground(new java.awt.Color(83, 83, 83));
botao5Select.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
botao5SelectMouseClicked(evt);
}
public void mouseEntered(java.awt.event.MouseEvent evt) {
botao5SelectMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
botao5SelectMouseExited(evt);
}
});
botao5Select.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
txtBotaoSelect5.setFont(new java.awt.Font("Calibri", 0, 24)); // NOI18N
txtBotaoSelect5.setForeground(new java.awt.Color(204, 204, 204));
txtBotaoSelect5.setText("Quadrado");
botao5Select.add(txtBotaoSelect5, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 7, -1, -1));
botao5.add(botao5Select, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 260, 40));
textoBotao5.setFont(new java.awt.Font("Calibri", 0, 24)); // NOI18N
textoBotao5.setForeground(new java.awt.Color(204, 204, 204));
textoBotao5.setText("Quadrado");
botao5.add(textoBotao5, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 7, -1, -1));
botao6.setBackground(new java.awt.Color(56, 55, 55));
botao6.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
botao6MouseClicked(evt);
}
public void mouseEntered(java.awt.event.MouseEvent evt) {
botao6MouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
botao6MouseExited(evt);
}
});
botao6.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
abaBotao6.setBackground(new java.awt.Color(121, 121, 121));
abaBotao6.setPreferredSize(new java.awt.Dimension(4, 76));
abaBotao6.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
botao6.add(abaBotao6, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 8, -1));
botao6Select.setBackground(new java.awt.Color(83, 83, 83));
botao6Select.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
botao6SelectMouseClicked(evt);
}
public void mouseEntered(java.awt.event.MouseEvent evt) {
botao6SelectMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
botao6SelectMouseExited(evt);
}
});
botao6Select.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
txtBotaoSelect6.setFont(new java.awt.Font("Calibri", 0, 24)); // NOI18N
txtBotaoSelect6.setForeground(new java.awt.Color(204, 204, 204));
txtBotaoSelect6.setText("Cilindro");
botao6Select.add(txtBotaoSelect6, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 7, -1, -1));
botao6.add(botao6Select, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 260, 40));
textoBotao6.setFont(new java.awt.Font("Calibri", 0, 24)); // NOI18N
textoBotao6.setForeground(new java.awt.Color(204, 204, 204));
textoBotao6.setText("Cilindro");
botao6.add(textoBotao6, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 7, -1, -1));
botao7.setBackground(new java.awt.Color(56, 55, 55));
botao7.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
botao7MouseClicked(evt);
}
public void mouseEntered(java.awt.event.MouseEvent evt) {
botao7MouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
botao7MouseExited(evt);
}
});
botao7.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
abaBotao7.setBackground(new java.awt.Color(121, 121, 121));
abaBotao7.setPreferredSize(new java.awt.Dimension(4, 76));
abaBotao7.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
botao7.add(abaBotao7, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 8, -1));
botao7Select.setBackground(new java.awt.Color(83, 83, 83));
botao7Select.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
botao7SelectMouseClicked(evt);
}
public void mouseEntered(java.awt.event.MouseEvent evt) {
botao7SelectMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
botao7SelectMouseExited(evt);
}
});
botao7Select.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
txtBotaoSelect7.setFont(new java.awt.Font("Calibri", 0, 24)); // NOI18N
txtBotaoSelect7.setForeground(new java.awt.Color(204, 204, 204));
txtBotaoSelect7.setText("Equação (Bhaskara)");
botao7Select.add(txtBotaoSelect7, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 7, -1, -1));
botao7.add(botao7Select, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 260, 40));
textoBotao7.setFont(new java.awt.Font("Calibri", 0, 24)); // NOI18N
textoBotao7.setForeground(new java.awt.Color(204, 204, 204));
textoBotao7.setText("Equação (Bhaskara)");
botao7.add(textoBotao7, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 7, -1, -1));
botao8.setBackground(new java.awt.Color(56, 55, 55));
botao8.setPreferredSize(new java.awt.Dimension(260, 40));
botao8.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
botao8MouseClicked(evt);
}
public void mouseEntered(java.awt.event.MouseEvent evt) {
botao8MouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
botao8MouseExited(evt);
}
});
botao8.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
abaBotao8.setBackground(new java.awt.Color(121, 121, 121));
abaBotao8.setPreferredSize(new java.awt.Dimension(4, 76));
abaBotao8.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
botao8.add(abaBotao8, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 8, -1));
botao8Select.setBackground(new java.awt.Color(83, 83, 83));
botao8Select.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
botao8SelectMouseClicked(evt);
}
public void mouseEntered(java.awt.event.MouseEvent evt) {
botao8SelectMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
botao8SelectMouseExited(evt);
}
});
botao8Select.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
txtBotaoSelect8.setFont(new java.awt.Font("Calibri", 0, 24)); // NOI18N
txtBotaoSelect8.setForeground(new java.awt.Color(204, 204, 204));
txtBotaoSelect8.setText("Sobre");
botao8Select.add(txtBotaoSelect8, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 7, -1, -1));
botao8.add(botao8Select, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 260, 40));
textoBotao8.setFont(new java.awt.Font("Calibri", 0, 24)); // NOI18N
textoBotao8.setForeground(new java.awt.Color(204, 204, 204));
textoBotao8.setText("Sobre");
botao8.add(textoBotao8, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 7, -1, -1));
javax.swing.GroupLayout PainelBotoesLayout = new javax.swing.GroupLayout(PainelBotoes);
PainelBotoes.setLayout(PainelBotoesLayout);
PainelBotoesLayout.setHorizontalGroup(
PainelBotoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(PainelBotoesLayout.createSequentialGroup()
.addGroup(PainelBotoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(PainelBotoesLayout.createSequentialGroup()
.addGap(53, 53, 53)
.addComponent(titulo5)
.addGap(18, 18, 18)
.addComponent(titulo6))
.addGroup(PainelBotoesLayout.createSequentialGroup()
.addGap(18, 18, 18)
.addGroup(PainelBotoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(titulo2)
.addGroup(PainelBotoesLayout.createSequentialGroup()
.addComponent(titulo3)
.addGap(50, 50, 50)
.addComponent(titulo1)))))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGroup(PainelBotoesLayout.createSequentialGroup()
.addGroup(PainelBotoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(PainelBotoesLayout.createSequentialGroup()
.addContainerGap()
.addComponent(linhaHorizontalPainel, javax.swing.GroupLayout.PREFERRED_SIZE, 248, javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(botao1, javax.swing.GroupLayout.PREFERRED_SIZE, 260, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(botao8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(botao7, javax.swing.GroupLayout.PREFERRED_SIZE, 260, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(botao6, javax.swing.GroupLayout.PREFERRED_SIZE, 260, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(botao5, javax.swing.GroupLayout.PREFERRED_SIZE, 260, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(botao4, javax.swing.GroupLayout.PREFERRED_SIZE, 260, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(PainelBotoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addComponent(botao2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
.addComponent(botao3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
.addGap(0, 0, Short.MAX_VALUE))
);
PainelBotoesLayout.setVerticalGroup(
PainelBotoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(PainelBotoesLayout.createSequentialGroup()
.addGroup(PainelBotoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(PainelBotoesLayout.createSequentialGroup()
.addGap(27, 27, 27)
.addComponent(titulo3, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(PainelBotoesLayout.createSequentialGroup()
.addContainerGap()
.addComponent(titulo1)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(titulo2, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(11, 11, 11)
.addGroup(PainelBotoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(titulo6)
.addComponent(titulo5))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(linhaHorizontalPainel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(botao1, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(botao2, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(botao3, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(botao4, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(botao5, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(botao6, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(botao7, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(botao8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(30, Short.MAX_VALUE))
);
painelFundo.add(PainelBotoes, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 260, 550));
painel1.setBackground(new java.awt.Color(220, 123, 103));
painel1.setPreferredSize(new java.awt.Dimension(710, 810));
caminhoObjetos.setText("C:/Users/denis/Desktop/objetosGeometricos.dat");
jLabel2.setFont(new java.awt.Font("Calibri", 1, 24)); // NOI18N
jLabel2.setForeground(new java.awt.Color(70, 70, 70));
jLabel2.setText("Objetos Salvos ");
telaObjetos.setColumns(20);
telaObjetos.setRows(5);
jScrollPane2.setViewportView(telaObjetos);
jLabel1.setText("Caminho: ");
jLabel15.setFont(new java.awt.Font("Calibri Light", 0, 11)); // NOI18N
jLabel15.setText("Utilize por exemplo: (\"C:/Users/Desktop/arquivo.dat\")");
btnCarregarObjetos.setText("Carregar Arquivo");
btnCarregarObjetos.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnCarregarObjetosActionPerformed(evt);
}
});
limparCampo.setText("Apagar Objetos");
limparCampo.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
limparCampoActionPerformed(evt);
}
});
salvar_objetos.setText("Salvar Objeto");
salvar_objetos.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
salvar_objetosActionPerformed(evt);
}
});
javax.swing.GroupLayout painel1Layout = new javax.swing.GroupLayout(painel1);
painel1.setLayout(painel1Layout);
painel1Layout.setHorizontalGroup(
painel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(painel1Layout.createSequentialGroup()
.addGroup(painel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(painel1Layout.createSequentialGroup()
.addContainerGap()
.addGroup(painel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(painel1Layout.createSequentialGroup()
.addComponent(jLabel1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(painel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(painel1Layout.createSequentialGroup()
.addGap(0, 0, Short.MAX_VALUE)
.addComponent(caminhoObjetos, javax.swing.GroupLayout.PREFERRED_SIZE, 427, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(painel1Layout.createSequentialGroup()
.addComponent(jLabel15)
.addGap(0, 0, Short.MAX_VALUE))))
.addGroup(painel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(painel1Layout.createSequentialGroup()
.addComponent(btnCarregarObjetos)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(limparCampo))
.addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 481, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(salvar_objetos))))
.addGroup(painel1Layout.createSequentialGroup()
.addGap(112, 112, 112)
.addComponent(jLabel2)))
.addContainerGap(67, Short.MAX_VALUE))
);
painel1Layout.setVerticalGroup(
painel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(painel1Layout.createSequentialGroup()
.addGap(73, 73, 73)
.addComponent(jLabel15)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(painel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(caminhoObjetos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(salvar_objetos)
.addGap(52, 52, 52)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(painel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(limparCampo)
.addComponent(btnCarregarObjetos))
.addContainerGap())
);
painelFundo.add(painel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 0, 560, 550));
painel2.setBackground(new java.awt.Color(220, 123, 103));
painel2.setMaximumSize(new java.awt.Dimension(820, 560));
painel2.setMinimumSize(new java.awt.Dimension(820, 560));
painel2.setPreferredSize(new java.awt.Dimension(820, 550));
painel2.setLayout(null);
jLabel8.setFont(new java.awt.Font("Calibri", 1, 18)); // NOI18N
jLabel8.setText("Formula Perimetro");
painel2.add(jLabel8);
jLabel8.setBounds(310, 130, 162, 28);
jLabel11.setText("Lado A:");
painel2.add(jLabel11);
jLabel11.setBounds(57, 141, 60, 40);
jLabel12.setText("Lado C:");
painel2.add(jLabel12);
jLabel12.setBounds(57, 206, 60, 40);
jLabel13.setText("Lado B:");
painel2.add(jLabel13);
jLabel13.setBounds(57, 172, 60, 40);
painel2.add(triangulo_ladoAtxt);
triangulo_ladoAtxt.setBounds(120, 150, 77, 20);
painel2.add(triangulo_ladoBtxt);
triangulo_ladoBtxt.setBounds(120, 180, 77, 20);
painel2.add(triangulo_ladoCtxt);
triangulo_ladoCtxt.setBounds(120, 210, 77, 20);
jLabel9.setText("Perimetro:");
painel2.add(jLabel9);
jLabel9.setBounds(40, 370, 70, 20);
painel2.add(triangulo_resp_perimetro);
triangulo_resp_perimetro.setBounds(120, 360, 77, 20);
triangulo_btn_calcPerimetro.setText("Calcular");
triangulo_btn_calcPerimetro.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
triangulo_btn_calcPerimetroActionPerformed(evt);
}
});
painel2.add(triangulo_btn_calcPerimetro);
triangulo_btn_calcPerimetro.setBounds(120, 310, 90, 23);
painel2.add(triangulo_alturaTxt);
triangulo_alturaTxt.setBounds(120, 240, 77, 20);
jLabel14.setText("Altura:");
painel2.add(jLabel14);
jLabel14.setBounds(60, 240, 50, 40);
jLabel16.setText("Base:");
painel2.add(jLabel16);
jLabel16.setBounds(60, 270, 50, 40);
painel2.add(triangulo_baseTxt);
triangulo_baseTxt.setBounds(120, 270, 77, 20);
painel2.add(triangulo_respAreaTxt);
triangulo_respAreaTxt.setBounds(120, 390, 77, 20);
jLabel10.setText("Area:");
painel2.add(jLabel10);
jLabel10.setBounds(70, 390, 50, 20);
jLabel17.setFont(new java.awt.Font("Calibri", 1, 18)); // NOI18N
jLabel17.setText("Formula Area");
painel2.add(jLabel17);
jLabel17.setBounds(340, 250, 154, 28);
painel2.add(triangulo_eixoX);
triangulo_eixoX.setBounds(80, 60, 77, 20);
jLabel18.setText("Eixo X: ");
painel2.add(jLabel18);
jLabel18.setBounds(30, 50, 50, 40);
jLabel19.setText("Eixo Y: ");
painel2.add(jLabel19);
jLabel19.setBounds(170, 54, 60, 30);
triangulo_eixoY.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
triangulo_eixoYActionPerformed(evt);
}
});
painel2.add(triangulo_eixoY);
triangulo_eixoY.setBounds(230, 60, 77, 20);
jLabel50.setIcon(new javax.swing.ImageIcon(getClass().getResource("/prototipointerface/formula_area-triangulo.png"))); // NOI18N
painel2.add(jLabel50);
jLabel50.setBounds(290, 270, 183, 78);
jLabel53.setFont(new java.awt.Font("Calibri Light", 3, 24)); // NOI18N
jLabel53.setText("P = ( a + b + c )");
painel2.add(jLabel53);
jLabel53.setBounds(310, 150, 163, 52);
labelcone21.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
labelcone21.setText("m²");
painel2.add(labelcone21);
labelcone21.setBounds(200, 380, 20, 40);
labelcone22.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
labelcone22.setText("m²");
painel2.add(labelcone22);
labelcone22.setBounds(200, 140, 20, 40);
labelcone23.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
labelcone23.setText("m²");
painel2.add(labelcone23);
labelcone23.setBounds(200, 170, 20, 40);
labelcone24.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
labelcone24.setText("m²");
painel2.add(labelcone24);
labelcone24.setBounds(200, 200, 20, 40);
labelcone25.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
labelcone25.setText("m²");
painel2.add(labelcone25);
labelcone25.setBounds(200, 230, 20, 40);
labelcone26.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
labelcone26.setText("m²");
painel2.add(labelcone26);
labelcone26.setBounds(200, 260, 20, 40);
labelcone27.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
labelcone27.setText("m²");
painel2.add(labelcone27);
labelcone27.setBounds(200, 350, 20, 40);
painelFundo.add(painel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 0, 820, 550));
painel3.setBackground(new java.awt.Color(220, 123, 103));
painel3.setLayout(null);
jLabel3.setFont(new java.awt.Font("Calibri", 1, 18)); // NOI18N
jLabel3.setText("Formula Volume");
painel3.add(jLabel3);
jLabel3.setBounds(300, 280, 170, 23);
jLabel4.setFont(new java.awt.Font("Calibri", 1, 18)); // NOI18N
jLabel4.setText("Formula Area");
painel3.add(jLabel4);
jLabel4.setBounds(330, 150, 160, 23);
jLabel5.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
jLabel5.setText("Altura:");
painel3.add(jLabel5);
jLabel5.setBounds(40, 220, 49, 34);
jLabel7.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
jLabel7.setText("Volume:");
painel3.add(jLabel7);
jLabel7.setBounds(40, 350, 70, 39);
cone_respVol.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
cone_respVolActionPerformed(evt);
}
});
painel3.add(cone_respVol);
cone_respVol.setBounds(110, 360, 74, 20);
cone_alturaVol.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
cone_alturaVolActionPerformed(evt);
}
});
painel3.add(cone_alturaVol);
cone_alturaVol.setBounds(100, 220, 72, 20);
jLabel31.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
jLabel31.setText("Geratriz: ");
painel3.add(jLabel31);
jLabel31.setBounds(26, 183, 77, 34);
jLabel33.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
jLabel33.setText("Area Total: ");
painel3.add(jLabel33);
jLabel33.setBounds(20, 320, 100, 39);
cone_areaTotal.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
cone_areaTotalActionPerformed(evt);
}
});
painel3.add(cone_areaTotal);
cone_areaTotal.setBounds(110, 330, 74, 20);
cone_areaRaio.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
cone_areaRaioActionPerformed(evt);
}
});
cone_areaRaio.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
public void propertyChange(java.beans.PropertyChangeEvent evt) {
cone_areaRaioPropertyChange(evt);
}
});
painel3.add(cone_areaRaio);
cone_areaRaio.setBounds(100, 160, 72, 20);
cone_areaGeratriz.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
cone_areaGeratrizActionPerformed(evt);
}
});
painel3.add(cone_areaGeratriz);
cone_areaGeratriz.setBounds(100, 190, 72, 20);
cone_btnAreaTot.setText("Calcular");
cone_btnAreaTot.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
cone_btnAreaTotActionPerformed(evt);
}
});
painel3.add(cone_btnAreaTot);
cone_btnAreaTot.setBounds(100, 260, 90, 23);
jLabel34.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
jLabel34.setText("Raio:");
painel3.add(jLabel34);
jLabel34.setBounds(50, 160, 38, 23);
cone_eixoY.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
cone_eixoYActionPerformed(evt);
}
});
cone_eixoY.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
public void propertyChange(java.beans.PropertyChangeEvent evt) {
cone_eixoYPropertyChange(evt);
}
});
painel3.add(cone_eixoY);
cone_eixoY.setBounds(250, 40, 72, 20);
cone_eixoX.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
cone_eixoXActionPerformed(evt);
}
});
painel3.add(cone_eixoX);
cone_eixoX.setBounds(110, 40, 72, 20);
jLabel36.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
jLabel36.setText("Eixo Y:");
painel3.add(jLabel36);
jLabel36.setBounds(190, 30, 70, 39);
jLabel32.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
jLabel32.setText("m²");
painel3.add(jLabel32);
jLabel32.setBounds(190, 220, 30, 18);
jLabel47.setIcon(new javax.swing.ImageIcon(getClass().getResource("/prototipointerface/formula_volumeCone.png"))); // NOI18N
painel3.add(jLabel47);
jLabel47.setBounds(290, 310, 190, 60);
jLabel52.setIcon(new javax.swing.ImageIcon(getClass().getResource("/prototipointerface/formula_areaCone.png"))); // NOI18N
jLabel52.setText("jLabel47");
painel3.add(jLabel52);
jLabel52.setBounds(300, 170, 190, 40);
jLabel37.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
jLabel37.setText("Eixo X:");
painel3.add(jLabel37);
jLabel37.setBounds(50, 40, 60, 23);
jLabel42.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
jLabel42.setText("m³");
painel3.add(jLabel42);
jLabel42.setBounds(190, 360, 30, 18);
jLabel44.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
jLabel44.setText("m²");
painel3.add(jLabel44);
jLabel44.setBounds(190, 190, 30, 18);
jLabel68.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
jLabel68.setText("m²");
painel3.add(jLabel68);
jLabel68.setBounds(190, 160, 30, 18);
jLabel69.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
jLabel69.setText("m²");
painel3.add(jLabel69);
jLabel69.setBounds(190, 330, 30, 18);
painelFundo.add(painel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 0, 560, 550));
painel4.setBackground(new java.awt.Color(220, 123, 103));
painel4.setPreferredSize(new java.awt.Dimension(710, 810));
painel4.setLayout(null);
paralelepipedo_btnCalcArea.setText(" Calcular");
paralelepipedo_btnCalcArea.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
paralelepipedo_btnCalcAreaActionPerformed(evt);
}
});
painel4.add(paralelepipedo_btnCalcArea);
paralelepipedo_btnCalcArea.setBounds(110, 250, 90, 23);
painel4.add(paralelepipedo_alturaArea);
paralelepipedo_alturaArea.setBounds(120, 140, 77, 20);
jLabel20.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
jLabel20.setText("Altura:");
painel4.add(jLabel20);
jLabel20.setBounds(60, 140, 90, 28);
painel4.add(paralelepipedo_largArea);
paralelepipedo_largArea.setBounds(120, 210, 77, 20);
jLabel21.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
jLabel21.setText("Largura:");
painel4.add(jLabel21);
jLabel21.setBounds(50, 210, 100, 28);
painel4.add(paralelepipedo_compArea);
paralelepipedo_compArea.setBounds(120, 180, 77, 20);
jLabel22.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
jLabel22.setText("Cumprimento:");
painel4.add(jLabel22);
jLabel22.setBounds(10, 174, 120, 28);
jLabel23.setFont(new java.awt.Font("Calibri Light", 1, 18)); // NOI18N
jLabel23.setText("Formula Volume");
painel4.add(jLabel23);
jLabel23.setBounds(250, 260, 170, 23);
paralelepipedo_respArea.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
paralelepipedo_respAreaActionPerformed(evt);
}
});
painel4.add(paralelepipedo_respArea);
paralelepipedo_respArea.setBounds(120, 310, 77, 20);
jLabel27.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
jLabel27.setText("Volume:");
painel4.add(jLabel27);
jLabel27.setBounds(50, 340, 90, 28);
painel4.add(paralelepipedo_volResp);
paralelepipedo_volResp.setBounds(120, 340, 77, 20);
jLabel29.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
jLabel29.setText("Eixo X: ");
painel4.add(jLabel29);
jLabel29.setBounds(60, 50, 100, 28);
painel4.add(paralelepipedo_EixoX);
paralelepipedo_EixoX.setBounds(120, 50, 77, 20);
painel4.add(paralelepipedo_EixoY);
paralelepipedo_EixoY.setBounds(270, 50, 77, 20);
jLabel30.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
jLabel30.setText("Eixo Y: ");
painel4.add(jLabel30);
jLabel30.setBounds(200, 50, 70, 28);
jLabel54.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
jLabel54.setText("Area:");
painel4.add(jLabel54);
jLabel54.setBounds(60, 310, 80, 28);
jLabel55.setFont(new java.awt.Font("Calibri Light", 1, 18)); // NOI18N
jLabel55.setText("Formula Area");
painel4.add(jLabel55);
jLabel55.setBounds(290, 120, 170, 23);
jLabel56.setFont(new java.awt.Font("Calibri Light", 3, 24)); // NOI18N
jLabel56.setText(" .");
painel4.add(jLabel56);
jLabel56.setBounds(360, 290, 60, 30);
jLabel57.setFont(new java.awt.Font("Calibri Light", 3, 24)); // NOI18N
jLabel57.setText("V = ( a b c )");
painel4.add(jLabel57);
jLabel57.setBounds(250, 280, 180, 50);
jLabel60.setFont(new java.awt.Font("Calibri Light", 3, 24)); // NOI18N
jLabel60.setText("AT = 2 (ab +ac + bc)");
painel4.add(jLabel60);
jLabel60.setBounds(260, 140, 270, 50);
jLabel61.setFont(new java.awt.Font("Calibri Light", 3, 24)); // NOI18N
jLabel61.setText(" .");
painel4.add(jLabel61);
jLabel61.setBounds(320, 290, 60, 30);
labelcone16.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
labelcone16.setText("m³");
painel4.add(labelcone16);
labelcone16.setBounds(200, 330, 20, 40);
labelcone17.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
labelcone17.setText("m²");
painel4.add(labelcone17);
labelcone17.setBounds(200, 140, 20, 30);
labelcone18.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
labelcone18.setText("m²");
painel4.add(labelcone18);
labelcone18.setBounds(200, 170, 20, 30);
labelcone19.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
labelcone19.setText("m²");
painel4.add(labelcone19);
labelcone19.setBounds(200, 210, 20, 30);
labelcone20.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
labelcone20.setText("m²");
painel4.add(labelcone20);
labelcone20.setBounds(200, 300, 20, 40);
painelFundo.add(painel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 0, 560, 550));
painel5.setBackground(new java.awt.Color(220, 123, 103));
painel5.setLayout(null);
jLabel46.setFont(new java.awt.Font("Calibri", 1, 18)); // NOI18N
jLabel46.setText("Formula Perimetro");
painel5.add(jLabel46);
jLabel46.setBounds(250, 230, 141, 23);
jLabel48.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
jLabel48.setText("Perimetro:");
painel5.add(jLabel48);
jLabel48.setBounds(20, 260, 78, 39);
quad_respPer.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
quad_respPerActionPerformed(evt);
}
});
painel5.add(quad_respPer);
quad_respPer.setBounds(110, 270, 74, 20);
labelcone9.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
labelcone9.setText("Eixo X:");
painel5.add(labelcone9);
labelcone9.setBounds(50, 60, 49, 39);
quad_eixoX.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
quad_eixoXActionPerformed(evt);
}
});
painel5.add(quad_eixoX);
quad_eixoX.setBounds(100, 70, 72, 20);
labelcone10.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
labelcone10.setText("Eixo Y:");
painel5.add(labelcone10);
labelcone10.setBounds(180, 60, 49, 39);
quad_eixoY.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
quad_eixoYActionPerformed(evt);
}
});
painel5.add(quad_eixoY);
quad_eixoY.setBounds(240, 70, 72, 20);
quad_btnArea.setText("Calcular");
quad_btnArea.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
quad_btnAreaActionPerformed(evt);
}
});
painel5.add(quad_btnArea);
quad_btnArea.setBounds(90, 190, 90, 23);
jLabel49.setFont(new java.awt.Font("Calibri", 1, 18)); // NOI18N
jLabel49.setText("Formula Area");
painel5.add(jLabel49);
jLabel49.setBounds(250, 130, 140, 29);
jLabel51.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
jLabel51.setText("Area Total:");
painel5.add(jLabel51);
jLabel51.setBounds(20, 230, 81, 39);
labelcone12.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
labelcone12.setText("Lado A:");
painel5.add(labelcone12);
labelcone12.setBounds(30, 140, 55, 39);
quad_respArea.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
quad_respAreaActionPerformed(evt);
}
});
painel5.add(quad_respArea);
quad_respArea.setBounds(110, 240, 74, 20);
quad_areaLadoA.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
quad_areaLadoAActionPerformed(evt);
}
});
painel5.add(quad_areaLadoA);
quad_areaLadoA.setBounds(90, 150, 72, 20);
jLabel66.setFont(new java.awt.Font("Calibri Light", 3, 24)); // NOI18N
jLabel66.setText("A = ( L . L . L . L)");
painel5.add(jLabel66);
jLabel66.setBounds(250, 260, 210, 50);
jLabel67.setFont(new java.awt.Font("Calibri Light", 3, 24)); // NOI18N
jLabel67.setText("P = ( L . L )");
painel5.add(jLabel67);
jLabel67.setBounds(260, 160, 120, 50);
labelcone28.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
labelcone28.setText("m²");
painel5.add(labelcone28);
labelcone28.setBounds(190, 260, 20, 40);
labelcone29.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
labelcone29.setText("m²");
painel5.add(labelcone29);
labelcone29.setBounds(170, 140, 20, 40);
labelcone30.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
labelcone30.setText("m²");
painel5.add(labelcone30);
labelcone30.setBounds(190, 230, 20, 40);
painelFundo.add(painel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 0, 560, 550));
painel7.setBackground(new java.awt.Color(220, 123, 103));
painel7.setPreferredSize(new java.awt.Dimension(710, 560));
painel7.setLayout(null);
jLabel6.setFont(new java.awt.Font("Calibri", 0, 36)); // NOI18N
jLabel6.setText("(Bhaskara)");
painel7.add(jLabel6);
jLabel6.setBounds(120, 70, 155, 54);
labelcone1.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
labelcone1.setText("A: ");
painel7.add(labelcone1);
labelcone1.setBounds(60, 170, 19, 20);
jLabel38.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
jLabel38.setText("X1:");
painel7.add(jLabel38);
jLabel38.setBounds(60, 390, 23, 23);
equacao_x1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
equacao_x1ActionPerformed(evt);
}
});
painel7.add(equacao_x1);
equacao_x1.setBounds(100, 390, 74, 20);
equacao_A.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
equacao_AActionPerformed(evt);
}
});
painel7.add(equacao_A);
equacao_A.setBounds(100, 170, 72, 20);
equacao_calcular.setText("Calcular");
equacao_calcular.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
equacao_calcularActionPerformed(evt);
}
});
painel7.add(equacao_calcular);
equacao_calcular.setBounds(100, 260, 100, 23);
jLabel39.setFont(new java.awt.Font("Calibri", 0, 36)); // NOI18N
jLabel39.setText("Equação de Segundo Grau");
painel7.add(jLabel39);
jLabel39.setBounds(80, 10, 385, 54);
labelcone2.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
labelcone2.setText("B: ");
painel7.add(labelcone2);
labelcone2.setBounds(60, 200, 19, 20);
equacao_B.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
equacao_BActionPerformed(evt);
}
});
painel7.add(equacao_B);
equacao_B.setBounds(100, 200, 72, 20);
equacao_C.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
equacao_CActionPerformed(evt);
}
});
painel7.add(equacao_C);
equacao_C.setBounds(100, 230, 72, 20);
labelcone3.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
labelcone3.setText("C: ");
painel7.add(labelcone3);
labelcone3.setBounds(60, 230, 19, 20);
jLabel40.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
jLabel40.setText("X2:");
painel7.add(jLabel40);
jLabel40.setBounds(60, 420, 23, 20);
equacao_x2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
equacao_x2ActionPerformed(evt);
}
});
painel7.add(equacao_x2);
equacao_x2.setBounds(100, 420, 74, 20);
jLabel41.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
jLabel41.setText("Delta:");
painel7.add(jLabel41);
jLabel41.setBounds(40, 350, 44, 20);
equacao_Delta.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
equacao_DeltaActionPerformed(evt);
}
});
painel7.add(equacao_Delta);
equacao_Delta.setBounds(100, 350, 74, 20);
jLabel64.setIcon(new javax.swing.ImageIcon(getClass().getResource("/prototipointerface/bhaskara.png"))); // NOI18N
painel7.add(jLabel64);
jLabel64.setBounds(190, 170, 360, 98);
jLabel65.setIcon(new javax.swing.ImageIcon(getClass().getResource("/prototipointerface/delta.png"))); // NOI18N
painel7.add(jLabel65);
jLabel65.setBounds(260, 280, 280, 60);
painelFundo.add(painel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 0, 820, 550));
painel8.setBackground(new java.awt.Color(220, 123, 103));
javax.swing.GroupLayout painel8Layout = new javax.swing.GroupLayout(painel8);
painel8.setLayout(painel8Layout);
painel8Layout.setHorizontalGroup(
painel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 560, Short.MAX_VALUE)
);
painel8Layout.setVerticalGroup(
painel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 550, Short.MAX_VALUE)
);
painelFundo.add(painel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 0, 560, 550));
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(painelFundo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(painelFundo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
pack();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public FormListRemarking() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public FormPemilihan() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public SettingsForm() {\n initComponents();\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public Soru1() {\n initComponents();\n }",
"public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public soal2GUI() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"public PatientUI() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public Oddeven() {\n initComponents();\n }",
"public intrebarea() {\n initComponents();\n }",
"public Magasin() {\n initComponents();\n }",
"public RadioUI()\n {\n initComponents();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public ZobrazUdalost() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"public p0() {\n initComponents();\n }",
"public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public form2() {\n initComponents();\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"public kunde() {\n initComponents();\n }",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public MusteriEkle() {\n initComponents();\n }",
"public DESHBORDPANAL() {\n initComponents();\n }",
"public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }",
"public frmVenda() {\n initComponents();\n }",
"public Botonera() {\n initComponents();\n }",
"public FrmMenu() {\n initComponents();\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"public JFFornecedores() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public vpemesanan1() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public HW3() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"public sinavlar2() {\n initComponents();\n }",
"public P0405() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public MiFrame2() {\n initComponents();\n }",
"public Choose1() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }",
"public GUI_StudentInfo() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }",
"public bt526() {\n initComponents();\n }",
"public Pemilihan_Dokter() {\n initComponents();\n }",
"public Ablak() {\n initComponents();\n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}",
"public Pregunta23() {\n initComponents();\n }",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }",
"public AvtekOkno() {\n initComponents();\n }",
"public busdet() {\n initComponents();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"public Kuis2() {\n initComponents();\n }",
"public CreateAccount_GUI() {\n initComponents();\n }",
"public POS1() {\n initComponents();\n }",
"public Carrera() {\n initComponents();\n }",
"public EqGUI() {\n initComponents();\n }",
"public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }",
"public nokno() {\n initComponents();\n }",
"public dokter() {\n initComponents();\n }",
"public ConverterGUI() {\n initComponents();\n }",
"public hitungan() {\n initComponents();\n }",
"public Modify() {\n initComponents();\n }",
"public frmAddIncidencias() {\n initComponents();\n }",
"public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }"
]
| [
"0.73197734",
"0.72914416",
"0.72914416",
"0.72914416",
"0.72862023",
"0.72487676",
"0.7213741",
"0.7207628",
"0.7196503",
"0.7190263",
"0.71850693",
"0.71594703",
"0.7147939",
"0.7093137",
"0.70808756",
"0.70566356",
"0.6987119",
"0.69778043",
"0.6955563",
"0.6953879",
"0.6945632",
"0.6943359",
"0.69363457",
"0.6931661",
"0.6927987",
"0.6925778",
"0.6925381",
"0.69117576",
"0.6911631",
"0.68930036",
"0.6892348",
"0.6890817",
"0.68904495",
"0.6889411",
"0.68838716",
"0.6881747",
"0.6881229",
"0.68778914",
"0.6876094",
"0.6874808",
"0.68713",
"0.6859444",
"0.6856188",
"0.68556464",
"0.6855074",
"0.68549985",
"0.6853093",
"0.6853093",
"0.68530816",
"0.6843091",
"0.6837124",
"0.6836549",
"0.6828579",
"0.68282986",
"0.68268806",
"0.682426",
"0.6823653",
"0.6817904",
"0.68167645",
"0.68102163",
"0.6808751",
"0.680847",
"0.68083245",
"0.6807882",
"0.6802814",
"0.6795573",
"0.6794048",
"0.6792466",
"0.67904556",
"0.67893785",
"0.6789265",
"0.6788365",
"0.67824304",
"0.6766916",
"0.6765524",
"0.6765339",
"0.67571205",
"0.6755559",
"0.6751974",
"0.67510027",
"0.67433685",
"0.67390305",
"0.6737053",
"0.673608",
"0.6733373",
"0.67271507",
"0.67262334",
"0.67205364",
"0.6716807",
"0.67148036",
"0.6714143",
"0.67090863",
"0.67077154",
"0.67046666",
"0.6701339",
"0.67006236",
"0.6699842",
"0.66981244",
"0.6694887",
"0.6691074",
"0.66904294"
]
| 0.0 | -1 |
Created by dell on 2017/5/25. | public interface CityDao {
List<City> queryAllCity() throws Exception;
City queryCityByCode(String cityCode) throws Exception;
List<City> queryCityByBmsCode(String code) throws Exception;
List<City> insert(City city) throws Exception;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"private void init() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"private void poetries() {\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 void init() {\n }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n public void init() {\n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tpublic void sacrifier() {\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}",
"@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 mo38117a() {\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 public void init() {}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\n protected void init() {\n }",
"@Override\r\n\tpublic void init() {}",
"public void gored() {\n\t\t\n\t}",
"private void kk12() {\n\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\tpublic void nghe() {\n\n\t}",
"public void mo4359a() {\n }",
"private void init() {\n\n\n\n }",
"@Override\n\tprotected void initialize() {\n\n\t}",
"private void strin() {\n\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n public void initialize() { \n }",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"public void mo6081a() {\n }",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public int describeContents() { return 0; }",
"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 }",
"private void m50366E() {\n }",
"@Override\n\tpublic void afterInit() {\n\t\t\n\t}",
"@Override\n\tpublic void afterInit() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"private void init() {\n }",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n public void initialize() {\n \n }"
]
| [
"0.6010854",
"0.59495294",
"0.57842803",
"0.5772546",
"0.57026505",
"0.57026505",
"0.56978196",
"0.56855285",
"0.56467044",
"0.56466204",
"0.56220436",
"0.55895543",
"0.55796504",
"0.5567922",
"0.5567577",
"0.55653983",
"0.55457413",
"0.5539698",
"0.5539314",
"0.55367947",
"0.5527924",
"0.5527924",
"0.5527924",
"0.5527924",
"0.5527924",
"0.55278224",
"0.55263776",
"0.55263776",
"0.55194575",
"0.5499128",
"0.54989654",
"0.5495988",
"0.54923034",
"0.5492181",
"0.5487064",
"0.5479712",
"0.5479712",
"0.5479712",
"0.5479712",
"0.5479712",
"0.5479712",
"0.54757875",
"0.5457604",
"0.5457604",
"0.5456055",
"0.54535097",
"0.5442609",
"0.5442609",
"0.5442609",
"0.54309064",
"0.54309064",
"0.54309064",
"0.5425427",
"0.54253405",
"0.54253405",
"0.5416075",
"0.5416075",
"0.5416075",
"0.5414309",
"0.53930104",
"0.5387381",
"0.53830487",
"0.53807044",
"0.5380472",
"0.5379546",
"0.5377773",
"0.5377418",
"0.5376276",
"0.5366968",
"0.5364444",
"0.5364042",
"0.53627557",
"0.53564745",
"0.534587",
"0.53277034",
"0.5323405",
"0.53230405",
"0.53178895",
"0.5317393",
"0.530131",
"0.5296686",
"0.5296238",
"0.529162",
"0.529162",
"0.529162",
"0.529162",
"0.529162",
"0.529162",
"0.529162",
"0.5290643",
"0.5260733",
"0.5260733",
"0.5252049",
"0.52506566",
"0.52506566",
"0.52506566",
"0.52495646",
"0.5247516",
"0.52327114",
"0.52327114",
"0.52272344"
]
| 0.0 | -1 |
make a call to ensure a SetCookie is sent back to the client | @Test(singleThreaded = true)
public void cookiesShouldBeIgnored() {
Mockit.setUpMock(AbstractHttpClient.class, new MockAbstractHttpClient(new MockHooks() {
@Override
public void responseHook(BasicHttpResponse response) {
response.setHeader("Set-Cookie", "foo=bar; path=/;");
}
}));
connection.execute(new AddonList(), apiKey);
Mockit.setUpMock(AbstractHttpClient.class, new MockAbstractHttpClient(new MockHooks() {
@Override
public void beforeAssertions(HttpUriRequest request, HttpContext context) {
Assert.assertEquals(request.getHeaders("Cookie").length, 0, "Cookies should be ignored, but there are cookies present.");
}
}));
// run this twice to ensure the set-cookie was sent from the first request
connection.execute(new AddonList(), apiKey);
Mockit.tearDownMocks(AbstractHttpClient.class);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void addCookie(HttpServletResponse response, Cookie cookie);",
"@Override\n public void addCookie(Cookie arg0) {\n\n }",
"HttpChannel addResponseCookie(Cookie cookie);",
"HttpClientRequest addCookie(Cookie cookie);",
"public void eatCookie(){\n}",
"protected void setHasCookie (boolean aHasCookie)\n\t{\n\t\thasCookie = aHasCookie;\n\t}",
"@Override\n public void endRequest(HttpServletResponse httpServletResponse) {\n if (wasModified.get()) {\n Cookie newCookie = new Cookie(COOKIE_NAME, sessionId.get());\n newCookie.setPath(\"/\");\n httpServletResponse.addCookie(newCookie);\n }\n\n // -- Clear the threadlocals since we are now exiting this session --\n wasModified.remove();\n sessionId.remove();\n }",
"@Override\r\n\tpublic void setCookie(Date expirationDate, String nameAndValue, String path, String domain, boolean isSecure) {\n\t}",
"@Override\n public void filter(ContainerRequestContext requestContext,\n ContainerResponseContext responseContext) throws IOException {\n HttpSession session = requestManager.getHttpSession();\n\n session.keepAlive();\n sessionManager.save(session);\n\n NewCookie sessionCookie = new NewCookie(COOKIE_NAME, session.getSessionId(),\n \"/\", null, null, -1, true, true);\n\n\n logger.trace(\"Request completed with session id {}\", sessionCookie);\n responseContext.getHeaders().add(HttpHeaders.SET_COOKIE, sessionCookie);\n }",
"@Override\n\tpublic void addCookie(Cookie cookie) {\n\t}",
"@Override\n\t\tpublic void addCookie(Cookie cookie) {\n\t\t\t\n\t\t}",
"void killCookie(HttpServletRequest request, HttpServletResponse response, String name);",
"public void createCookie(final String cookie);",
"@Override\r\n\t\t\tpublic void onResponse(Call arg0, Response response) throws IOException {\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tString string = response.header(\"Set-Cookie\");\r\n\t\t\t\t\ts = string.substring(0, string.indexOf(\";\"));\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO: handle exception\r\n\r\n\t\t\t\t}\r\n\t\t\t\tString result = response.body().string();\r\n//\t\t\t\tString result=\"\";\r\n\t\t\r\n\t\t\t\t// 是否有响应\r\n\t\t\t\tif (response.isSuccessful()) {\r\n\t\t\t\t\tFLogger.e(Global.INNER_TAG, \"success\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tonResult(callback, result.toString(),true);\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tFLogger.e(Global.INNER_TAG, \"failed\");\r\n\t\t\t\t\tonResult(callback, result.toString(),false);\r\n\t\t\t\t}\r\n\r\n\t\t\t}",
"@Override\r\n public void getCookie(String name)\r\n {\n\r\n }",
"public void doCookieStuff(Users user)\n {\n HttpServletResponse response = (HttpServletResponse) FacesContext.getCurrentInstance().getExternalContext().getResponse();\n if (userSession.isRemember())\n {\n String uuid = UUID.randomUUID().toString();\n rememberDAOImpl.saveLogin(uuid, user);\n addCookie(response, \"remember\", uuid, 2592000); //thats 30 days in seconds\n } else {\n rememberDAOImpl.removeLogin(user);\n removeCookie(response, \"remember\");\n }\n }",
"public void addCookie(Cookie cookie) {\n\t\t\n\t}",
"public static boolean setCookie(HttpSession session, Cookie cookie) {\n boolean status = false;\n\n // Make sure the list of sent cookies is created if necessary\n Vector cookiesPending = (Vector) getObject(session, COOKIES_PENDING);\n if (cookiesPending == null) {\n cookiesPending = new Vector();\n cookiesPending.add(cookie);\n\n // Make sure the sent vector exists in the session\n setObject(session, COOKIES_PENDING, cookiesPending);\n return true;\n } else {\n // If the cookie is already pending, replace it\n for (int idx = 0; idx < cookiesPending.size(); idx++) {\n Cookie current = (Cookie) cookiesPending.get(idx);\n // Cookies flagged for deletion should remain deleted\n if ((current.getMaxAge() != 0) && (current.getName().equals(cookie.getName()))) {\n cookiesPending.set(idx, cookie);\n return true;\n }\n }\n\n // Else cookies does not exist and should be added\n cookiesPending.add(cookie);\n return true;\n }\n\n }",
"@Override\r\n public void delCookie(String name)\r\n {\n\r\n }",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tCookie[] cookies = req.getCookies();\n\t\tif (cookies != null) {\n\t\t\tfor (Cookie cookie : cookies) {\n\t\t\t\tif (cookie.getName().equals(\"hello-cookie\")) {\n\t\t\t\t\t// cookie has already been created\n\t\t\t\t\tSystem.out.println(\"Replacing old cookie value: \" + cookie.getValue());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Cookie cookie = req.getCookie(\"hello-cookie\"); // Java EE 7\n\n\t\t// creating cookies\n\t\tCookie cook = new Cookie(\"hello-cookie\", req.getParameter(\"cookie\"));\n\t\tcook.setMaxAge(2_000_000_000); // expiry\n\t\tresp.addCookie(cook);\n\n\t}",
"@Override\n public void addCookie(Cookie cookie) {\n this._getHttpServletResponse().addCookie(cookie);\n }",
"@RequestMapping(\"/\")\n public String home(HttpServletResponse response){\n CookieGenerator cookieGenerator = new CookieGenerator();\n cookieGenerator.setCookieName(\"myTestCookie\");\n cookieGenerator.addCookie(response, \"myValue\");\n\n return \"cookie\";\n }",
"String setRememberToken(HttpServletRequest request, HttpServletResponse response, String password, int maxAge, String domain, String path);",
"private void setCookies(URLConnection conn) {\n\t\tif (cookies.isEmpty()) {conn.setRequestProperty(\"Cookie\", \"\"); return;}\n\n\t\tconn.setRequestProperty(\"Cookie\", cookies);\n\t\tprocessor.printSys(\"Cookies Set: \" + cookies);\n\t}",
"public void saveLocalCookie(HttpServletResponse response,\r\n\t\tString ckName, String ckValue) {\r\n\t\tCookie ck = new Cookie(ckName, ckValue);\r\n\t\tck.setDomain(\".bccard.com\");\r\n\t\tck.setPath(\"/\");\r\n\t\tck.setMaxAge(60*60*24*365*10);\r\n\t\tresponse.addCookie(ck);\r\n\t}",
"public void setSessionId(String cookie) {\n\t\t\r\n\t}",
"public void setCookie(\n @NonNull Uri uri, @NonNull String value, @NonNull IBooleanCallback callback) {\n ThreadCheck.ensureOnUiThread();\n try {\n mImpl.setCookie(uri.toString(), value, callback);\n } catch (RemoteException e) {\n throw new APICallException(e);\n }\n }",
"private static void cookieMonster (HTTPRequest request)\n\t{\n\t /*if (!request.isCookiesParsed ())\n\t {\n\t \t retVal = request.cookieMonster ();\n\t }*/\n\t \n\t}",
"protected void doPost(HttpServletRequest r, HttpServletResponse s) throws ServletException, IOException {\n Cookie ck=new Cookie(\"auth\",\"\"); \n ck.setMaxAge(0);\n s.addCookie(ck); \n RequestDispatcher rd = r.getRequestDispatcher(\"index.jsp\");\n rd.forward(r, s);\n \n }",
"@SuppressWarnings(\"deprecation\")\n @Override\n public native void set(String key, String value) /*-{\n $doc.cookie = @org.jboss.pressgang.belay.oauth2.gwt.client.OAuthCookieStoreImpl::COOKIE_PREFIX +\n encodeURIComponent(key) + '=' + encodeURIComponent(value);\n }-*/;",
"public void addSetCookie(Cookie cookie, ZonedDateTime expires, Path path, \n\t\t\tboolean httpOnly, boolean secure)\n\t{\n\t\tif (cookie == null)\n\t\t\treturn;\n\t\t\n\t\tStringBuilder s = new StringBuilder(cookie.toString());\n\t\t\n\t\tif (expires != null)\n\t\t\ts.append(\"; \" + expires.format(DateTimeFormatter.RFC_1123_DATE_TIME));\n\t\tif (path != null)\n\t\t\ts.append(\"; /\" + path.toString());\n\t\tif (httpOnly)\n\t\t\ts.append(\"; HttpOnly\");\n\t\tif (secure)\n\t\t\ts.append(\"; Secure\");\n\t\t\n\t\taddHeader(SET_COOKIE, s.toString());\n\t}",
"@GetMapping(\"/createcookie\")\n\tpublic String createCookie(HttpServletResponse response) {\n\t\tCookie cookie = new Cookie(\"name\", \"Akshay\");\n\t\tresponse.addCookie(cookie);\n\t\treturn \"createcookie\";\n\t}",
"public void createCookie(final String cookie, final String options);",
"public void setSeCookie(String seCookie) {\n this.seCookie = seCookie;\n }",
"private void createLoginCookie(HttpServletResponse response, String userName, String password) {\n Cookie appCookie = new Cookie(\"costsManager\", userName + \"_\" + password);\n appCookie.setMaxAge(99999);\n response.addCookie(appCookie);\n }",
"public void part2(){\n Cookie c1 = new Cookie(\"uid\", \"2018\", 1800,false);\n Cookie c2 = new Cookie(\"PICK_KEY\", \"ahmd13ldsws8cw\",10800,true);\n Cookie c3 = new Cookie(\"REMEMBER_ME\",\"true\",10800,true);\n }",
"void killAllCookies(HttpServletRequest request, HttpServletResponse response);",
"void markAsUserSession();",
"@RunPrivileged\n\tprivate void addRoutedokterCookie() {\n\n\t\tStringBuilder value = new StringBuilder();\n\t\tvalue.append(\"email:\" + object.getEmail());\n\n\t\t// Lege waardes hoeven niet te worden opgeslagen in cookie\n\t\tif (StringUtils.isNotEmpty(object.getVoornaam())) {\n\t\t\tvalue.append(COOKIE_VALUE_SEPERATOR + \"voornaam:\"\n\t\t\t\t\t+ object.getVoornaam());\n\t\t}\n\n\t\tif (StringUtils.isNotEmpty(object.getNaam())) {\n\t\t\tvalue.append(COOKIE_VALUE_SEPERATOR + \"naam:\" + object.getNaam());\n\t\t}\n\n\t\tif (StringUtils.isNotEmpty(object.getTelefoon())) {\n\t\t\tvalue.append(COOKIE_VALUE_SEPERATOR + \"tel:\" + object.getTelefoon());\n\t\t}\n\n\t\tMap<String, Object> properties = new HashMap<String, Object>();\n\t\tproperties.put(\"maxAge\", MAX_COOKIE_AGE);\n\t\tproperties.put(\"domain\", FacesContext.getCurrentInstance()\n\t\t\t\t.getExternalContext().getRequestServerName());\n\t\tproperties.put(\"path\", FacesContext.getCurrentInstance()\n\t\t\t\t.getExternalContext().getRequestContextPath());\n\n\t\tFacesContext.getCurrentInstance().getExternalContext()\n\t\t\t\t.addResponseCookie(COOKIE_NAME, value.toString(), properties);\n\t}",
"public BladeController setCookie(Cookie cookie) {\n\t\tresponse.addCookie(cookie);\n\t\treturn this;\n\t}",
"@Override\n public void beginRequest(HttpServletRequest httpServletRequest) {\n String cookieValue = getCurrentCookieValue(httpServletRequest, COOKIE_NAME);\n if (cookieValue == null) {\n int sessionNumber = secureRandom.nextInt(Integer.MAX_VALUE);\n sessionId.set(\"session-\" + Integer.toString(sessionNumber));\n wasModified.set(true);\n } else {\n sessionId.set(cookieValue);\n wasModified.set(false);\n }\n }",
"@Override\n protected Response<String> parseNetworkResponse(NetworkResponse response) {\n // since we don't know which of the two underlying network vehicles\n // will Volley use, we have to handle and store session cookies manually\n Map<String, String> responseHeaders = response.headers;\n Log.d(\"cookies_login\", responseHeaders.get(\"Set-Cookie\"));\n sessionManager.setCookie(responseHeaders.get(\"Set-Cookie\"));\n\n return super.parseNetworkResponse(response);\n }",
"@Override\n protected Response<String> parseNetworkResponse(NetworkResponse response) {\n // since we don't know which of the two underlying network vehicles\n // will Volley use, we have to handle and store session cookies manually\n Map<String, String> responseHeaders = response.headers;\n Log.d(\"cookies_login\", responseHeaders.get(\"Set-Cookie\"));\n sessionManager.setCookie(responseHeaders.get(\"Set-Cookie\"));\n\n return super.parseNetworkResponse(response);\n }",
"public void addCookie(final Cookie cookie)\n\t{\n\t\tif (httpServletResponse != null)\n\t\t{\n\t\t\thttpServletResponse.addCookie(cookie);\n\t\t}\n\t}",
"GroupKey appCookie();",
"@Override\n protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws ServletException, IOException {\n String sid = CookieUtil.getCookieValue(request, DDConstant.COOKIE_NAME_MOBILE);\n if(StringUtils.isEmpty(sid) || sid.length()==0){\n sid = getUuid();\n// CookieUtil.setCookie(request, response, GlobalConstant.JSESSIONID, sid, 60 * 60);\n CookieUtil.setCookie(request, response, DDConstant.COOKIE_NAME_MOBILE, sid, 60 * 60);\n }\n HttpServletRequestWrapper httpServletRequestWrapper = new HttpServletRequestWrapper(sid,request);\n chain.doFilter(httpServletRequestWrapper,response);\n }",
"private void setCookies(HttpServletRequest request, HttpServletResponse response, int currentPage, int recordsOnPage) {\n CookieManager cookieManager = new CookieManager(request);\n String currentPageString = Integer.toString(currentPage);\n response.addCookie(cookieManager.makeCookie(CookieName.USERS_CURRENT_PAGE, currentPageString));\n\n String recordsOnPageString = Integer.toString(recordsOnPage);\n response.addCookie(cookieManager.makeCookie(CookieName.RECORDS_ON_USERS_PAGE, recordsOnPageString));\n }",
"protected void writeCookieHeader(OutputStream responseStream, String aHost) throws IOException\n\t{\n \tif (!exit)\n \t{\n\t\t\tresponseStream.write (SESSION_OLDCOOKIE);\n\t\t\tresponseStream.write (localGetBytes (sessionID));\n\t\t\tresponseStream.write (SESSION_PATH);\n \t\tresponseStream.write (SESSION_COOKIE);\n \t\tresponseStream.write (localGetBytes (sessionID));\n \t\tresponseStream.write (SESSION_PATH);\n \t}\n \telse\n \t{\n \t\tresponseStream.write (SESSION_EXIT);\n \t}\n \t\n \tif (application != null)\n \t{\n \t\tresponseStream.write (localGetBytes (application.generateCookies (aHost)));\n \t}\n\t}",
"protected void addFlashCookie(SlingHttpServletResponse response, Form form) {\n final String name = this.getGetLookupKey(form.getName());\n final String value = getQueryParameterValue(form);\n final Cookie cookie = new Cookie(name, value);\n cookie.setMaxAge(COOKIE_MAX_AGE);\n CookieUtil.addCookie(cookie, response);\n }",
"@Override\n protected void doPost(HttpServletRequest req,\n HttpServletResponse resp)\n throws ServletException, IOException {\n\n String requestBody = \"\";\n requestBody = IOUtils.toString(req.getReader());\n String[] usernameAndPassword = requestBody.split(\"&\");\n String username = usernameAndPassword[0].substring(9);\n String password = usernameAndPassword[1].substring(9);\n LoginDAO loginDAO = new LoginDAO();\n JsonCredential credential = loginDAO.login(username,password);\n if(credential == null) {\n // send invalid login response\n log.info(\"LoginServlet, Invalid Username/Password\");\n String invalidLoginURL = String.format(\"%s/\", req.getContextPath());\n resp.setStatus(401);\n }\n else{\n // login user, maybe with a redirect\n String credentialAsString = credential.makeJsonString();\n if(!credentialAsString.equals(\"\")) {\n // encoding prevents issue where Tomcat sees Cookie as invalid\n credentialAsString = URLEncoder.encode(credentialAsString,\"UTF-8\");\n Cookie cookie = new Cookie(\"expenseapp_authenticationcookie\",credentialAsString);\n cookie.setMaxAge(1200000); //roughly 2 weeks before expiration\n if(credential.getPermissionName().equals(\"Employee\")) {\n resp.addCookie(cookie);\n String employeeHomeScreen = String.format(\"%s/employeehomescreen.html\", req.getContextPath());\n resp.sendRedirect(employeeHomeScreen);\n }\n else if(credential.getPermissionName().equals(\"Manager\")) {\n resp.addCookie(cookie);\n String managerHomeScreen = String.format(\"%s/managerhomescreen.html\", req.getContextPath());\n resp.sendRedirect(managerHomeScreen);\n }\n else{\n log.error(\"LoginServlet, Invalid Permission Name - 500 error\");\n resp.setStatus(500);\n String errorUrl = String.format(\"%s/500Error.html\", req.getContextPath());\n req.getRequestDispatcher(errorUrl).forward(req,resp);\n }\n }\n }\n\n }",
"public void flushHeader() {\r\n\t\t//resetBuffer();\r\n\t\tif (sc_status == 0) {\r\n\t\t\tsetStatus(200);\r\n\t\t}\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"EEE, dd MMM yyyy HH:mm:ss z\", Locale.US);\r\n\t\tdateFormat.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\r\n StringBuffer headerVal = new StringBuffer();\r\n headerVal.append(request.getProtocol() + \" \" + sc_status + \" \" + HttpResponse.getStatusMessage(sc_status) + \"\\r\\n\");\r\n// System.out.println(\"1st line:\" + headerVal.toString());\r\n headerVal.append(\"Date: \" + dateFormat.format(new Date()) + \"\\r\\n\");\r\n for (String headerName : headersMap.keySet()) {\r\n headerVal.append(headerName + \": \" + headersMap.get(headerName).get(0) + \"\\r\\n\");\r\n }\r\n //System.out.println(\"IF request.hasSession? \" + request.hasSession());\r\n if (request.hasSession() && request.getSession().isNew()) {\r\n \tServletEngine.deleteInvalidatedSession();\r\n \tHttpServletSessionM sessionM = (HttpServletSessionM) request.getSession(false);\r\n \tCookie sessionCookie = new Cookie(\"sessionId\", sessionM.getId());\r\n \t\r\n \t//HttpSession calExpireTime = request.getSession(false);\r\n \tint maxAge = (int) ((sessionM.getLastAccessedTime() - new Date().getTime())/1000 + sessionM.getMaxInactiveInterval());\r\n \t//maxAge = maxAge/1000;\r\n \tsessionCookie.setMaxAge(maxAge*60);\r\n// \tif (!sessionM.isValid()) {\r\n// \t\tSystem.out.println(\"Here the session is invaid\");\r\n// \t\tsessionCookie.setMaxAge(0);\r\n// \t}\r\n \theaderVal.append(\"Set-Cookie: \").append(getCookieInfo(sessionCookie)).append(\"\\r\\n\");\r\n }\r\n if (cookies.size() > 0) {\r\n \tfor (Cookie cur : cookies) {\r\n \t\theaderVal.append(\"Set-Cookie: \").append(getCookieInfo(cur)).append(\"\\r\\n\");\r\n \t}\r\n }\r\n \r\n headerVal.append(\"Content-Length: \" + buffer.getContentLength() + \"\\r\\n\");\r\n //System.out.println(\"buffer.getContentLength:\" + buffer.getContentLength());\r\n headerVal.append(\"Content-Type: \" + contentType + \"\\r\\n\");\r\n headerVal.append(\"Content-Encoding: \" + encoding + \"\\r\\n\");\r\n headerVal.append(\"Connection: close\\r\\n\\r\\n\");\r\n //System.out.println(headerVal.toString());\r\n try {\r\n\t\t\tout.write(headerVal.toString().getBytes());\r\n\t\t\tout.flush();\r\n\t\t\tisCommitted = true;\r\n\t\t\t//System.out.println(\"flushed \");\r\n\t\t} catch (IOException e) {\r\n\t\t\tLogRecorder.addErrorMessage(e, \"cannot write or flush\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private static String setCookiesPHPcode(String phpstr, Response response)\n\t{\n\t\tString code = \"<?php $_SERVER[\\\"REQUEST_METHOD\\\"] = \\\"GET\\\";\";\n\t\tArrayList<Parameter> params = response.getMethod_parameters();\n\t\tif(params != null)\n\t\t{\n\t\t\tfor(Parameter param : params)\n\t\t\t{\n\t\t\t\tcode = code + String.format(\"$_GET[\\\"%s\\\"] = \\\"%s\\\"; \",param.getKey(), param.getValue());\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tArrayList<Parameter> cookies = response.getCookies();\n\t\tif(cookies != null)\n\t\t{\n\t\t\tcode = code + \"\\nsession_start();\";\t\t\t\n\t\t\tfor(Parameter param : cookies)\n\t\t\t{\n\t\n\t\t\t\tcode = code + String.format(\"$_SESSION['%s'] = '%s'; \",param.getKey(), param.getValue());\n\t\n\t\t\t}\n\t\t}\n\t\tcode = code + \"?>\";\n\t\treturn code + phpstr;\n\t}",
"public Result signin(){\n\tCookie ck = new Cookie(\"initialcookie\",\"cookievalue\", null, null, null, false, false);\n\treturn ok(views.html.signin.render()).withCookies(ck);\n}",
"public static synchronized void setCookieInfo(URL u, String value)\n {\n\tinitialize();\t\n\n\tTrace.msgNetPrintln(\"cookiehandler.server\", new Object[] {u, value});\n\n\ttry\n\t{\n\t cookieHandler.setCookieInfo(u.toString(), value);\n\t}\n\tcatch (ServiceUnavailableException e)\n\t{\n\t System.out.println(ResourceHandler.getMessage(\"cookiehandler.ignore.setcookie\"));\n\t}\n }",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tresp.setContentType(\"type=text/html; charset=utf-8\");\r\n\t\tPrintWriter out = resp.getWriter();\r\n\t\tString username = req.getParameter(\"username\");\r\n\t\tString password = req.getParameter(\"password\");\r\n\t\tout.print(username+\"===\"+password);\r\n\t\treq.getSession().setAttribute(\"remoteusername\", username);\r\n\t\treq.getSession().setAttribute(\"remotepassword\", password);\r\n\t\t\r\n\t\tCookie c1 = new Cookie(\"cooUserName\", username);\r\n\t\tCookie c2 = new Cookie(\"cooPassword\", password);\r\n\t\tc1.setPath(\"/\");\r\n\t\tc2.setPath(\"/\");\r\n\t\tresp.addCookie(c1);\r\n\t\tresp.addCookie(c2);\r\n\t\tc1.setMaxAge(60 * 60 * 24 * 14);\r\n\t\tc2.setMaxAge(60 * 60 * 24 * 14);\r\n\t\tRequestDispatcher dispatcher = req.getRequestDispatcher(\"/main.jsp\");\r\n\r\n\t\tdispatcher .forward(req, resp);\r\n\t\t//super.doPost(req, resp);\r\n\t}",
"void encryptStateInCookie(HttpServletResponse response, Map<String, String> cleartext) throws EncryptionException;",
"@Override\n\tprotected boolean onAccessDenied(ServletRequest request, ServletResponse response) throws Exception {\n\t\tSubject subject = getSubject(request, response);\n\t\tif (!subject.isAuthenticated() && !subject.isRemembered()) {\n\t\t\t// 如果没有登录,直接进行之后的流程\n\t\t\treturn true;\n\t\t}\n\t\tString username = (String) subject.getPrincipal();\n\t\tSession session = subject.getSession();\n\t\tString sessionId = (String) session.getId();\n\n\t\tHttpServletRequest req = WebUtils.toHttp(request);\n\t\tServletContext application = req.getSession().getServletContext();\n\t\tDeque<Object> deque = deque = (Deque<Object>) application.getAttribute(username);\n\t\tif (deque == null) {\n\t\t\tdeque = new LinkedList<>();\n\t\t\tdeque.push(sessionId);\n\t\t\tapplication.setAttribute(username, deque);\n\t\t\treturn true;\n\t\t}\n\t\tif (!deque.contains(sessionId) && session.getAttribute(\"kickout\") == null) {\n\t\t\tdeque.push(sessionId);\n\t\t}\n\t\twhile (deque.size() > 1) {\n\t\t\tString kickSessionId = (String) deque.removeLast();\n\t\t\tif (kickSessionId != null) {\n\t\t\t\tSession kickoutSession = null;\n\t\t\t\ttry {\n\t\t\t\t\tkickoutSession = sessionManager.getSession(new DefaultSessionKey(kickSessionId));\n\t\t\t\t\tkickoutSession.setAttribute(\"kickout\", true);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tif (session.getAttribute(\"kickout\") != null) {\n\t\t\tsubject.logout();\n\t\t\tsaveRequest(request);\n\t\t\treq.setAttribute(\"kickMsg\", \"该账号异地登录,您被强制下线\");\n\t\t\tWebUtils.issueRedirect(request, response, kickoutUrl);\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"@Override\r\n public void getAllCookies()\r\n {\n\r\n }",
"Cookie(){\n number = 0;\n bakeTemp = 0;\n bakeTime = 0;\n isReady = false;\n\n }",
"public void setCookie(String name, String value) throws IOException {\r\n cookies.put(name, value);\r\n }",
"public void put(Object key, Object value) throws AspException\n {\n throw new AspReadOnlyException(\"Request.Cookies\");\n }",
"public static void deleteCookieWebUser (HttpServletRequest request, HttpServletResponse response)\n\t{\n\t\tCookie cookie = new Cookie(COOKIE_NAME, \" \");\n\t\tcookie.setComment(\"Compiere Web User\");\n\t\tcookie.setPath(request.getContextPath());\n\t\tcookie.setMaxAge(1); // second\n\t\tresponse.addCookie(cookie);\n\t}",
"public static void deleteCookieWebUser (HttpServletRequest request, HttpServletResponse response)\n\t{\n\t\tCookie cookie = new Cookie(COOKIE_NAME, \" \");\n\t\tcookie.setComment(\"Compiere Web User\");\n\t\tcookie.setPath(request.getContextPath());\n\t\tcookie.setMaxAge(1); // second\n\t\tresponse.addCookie(cookie);\n\t}",
"public static void deleteCookieWebUser (HttpServletRequest request, HttpServletResponse response)\n\t{\n\t\tCookie cookie = new Cookie(COOKIE_NAME, \" \");\n\t\tcookie.setComment(\"Compiere Web User\");\n\t\tcookie.setPath(request.getContextPath());\n\t\tcookie.setMaxAge(1); // second\n\t\tresponse.addCookie(cookie);\n\t}",
"public static void deleteCookieWebUser (HttpServletRequest request, HttpServletResponse response)\n\t{\n\t\tCookie cookie = new Cookie(COOKIE_NAME, \" \");\n\t\tcookie.setComment(\"Compiere Web User\");\n\t\tcookie.setPath(request.getContextPath());\n\t\tcookie.setMaxAge(1); // second\n\t\tresponse.addCookie(cookie);\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n String userId = request.getParameter(\"username\");\r\n String password = request.getParameter(\"pass\");\r\n String remember = request.getParameter(\"remember\");\r\n \r\n HttpSession session = request.getSession();\r\n User user = new UserDAO().login(userId, password);\r\n \r\n if(user != null){//dang nhap thang cong\r\n if(remember != null){\r\n Cookie uCookie = new Cookie(\"username\", userId);\r\n uCookie.setMaxAge(24 * 3600);//hạn 1 ngày\r\n Cookie pCookie = new Cookie(\"password\", password);\r\n pCookie.setMaxAge(24 * 3600);//hạn 1 ngày\r\n response.addCookie(uCookie);\r\n response.addCookie(pCookie);\r\n }\r\n if(user.getRoleId() == 1) {\r\n response.sendRedirect(\"admin\");\r\n session.setAttribute(\"user\", user);\r\n }\r\n else if(user.getStatus() != 1) {//chua active code \r\n response.sendRedirect(\"active\");\r\n request.getSession().setAttribute(\"user\", user);\r\n \r\n } \r\n else {\r\n response.sendRedirect(\"home\"); \r\n session.setAttribute(\"user\", user);\r\n }\r\n }else{\r\n request.setAttribute(\"err\", \"Incorrect Id or Password\");\r\n request.getRequestDispatcher(\"login.jsp\").forward(request, response);\r\n }\r\n \r\n }",
"public HttpsConnection addCookie(final String cookie) {\n return setHeader(\"Cookie\", this.mHeaders.get(\"Cookie\") + \"; \");\n }",
"private int addCookie(String cookie) {\n\t\tif (cookies.contains(cookie)) return 0; //we have this exact cookie\n\n\t\tString newCookieName = cookie.split(\"=\")[0];\n\t\tif (cookies.contains(newCookieName)) replaceCookies(newCookieName); //we have a cookie with the same name as the new cookie, swap them\n\n\t\tprocessor.printSys(\"New Cookie: \" + cookie);\n\t\tcookies += (cookie + \"; \"); //add the new cookie followed by a semicolon\n\n\t\treturn 1;\n\t}",
"private void updateVPLEXSessionId(ClientResponse response) {\n List<NewCookie> cookies = response.getCookies();\n for (NewCookie cookie : cookies) {\n // Look for the session cookie. It should returned in the\n // response if this is the first request from this client\n // or the session expired since the last request, in which\n // case the VPLEX creates a new session and returns the\n // id in the cookie.\n if (VPlexApiConstants.SESSION_COOKIE.equals(cookie.getName())) {\n String newSessionId = cookie.getValue();\n if ((_vplexSessionId == null) || (!_vplexSessionId.equals(newSessionId))) {\n s_logger.info(\"VPLEX Session ID changing from {} to {}\",\n (_vplexSessionId == null ? \"null\" : _vplexSessionId),\n newSessionId);\n _vplexSessionId = newSessionId;\n }\n break;\n }\n }\n }",
"public void setCookies(URLConnection conn) throws IOException {\n\n\t\t// let's determine the domain and path to retrieve the appropriate\n\t\t// cookies\n\t\tURL url = conn.getURL();\n\t\tString domain = getDomainFromHost(url.getHost());\n\t\tString path = url.getPath();\n\n\t\tMap<String, Map<String, String>> domainStore = store.get(domain);\n\t\tif (domainStore == null)\n\t\t\treturn;\n\t\tStringBuffer cookieStringBuffer = new StringBuffer();\n\n\t\tIterator<String> cookieNames = domainStore.keySet().iterator();\n\t\twhile (cookieNames.hasNext()) {\n\t\t\tString cookieName = cookieNames.next();\n\t\t\tMap<String, String> cookie = (Map<String, String>) domainStore\n\t\t\t\t\t.get(cookieName);\n\t\t\t// check cookie to ensure path matches and cookie is not expired\n\t\t\t// if all is cool, add cookie to header string\n\t\t\tif (comparePaths((String) cookie.get(PATH), path)\n\t\t\t\t\t&& isNotExpired((String) cookie.get(EXPIRES))) {\n\t\t\t\tcookieStringBuffer.append(cookieName);\n\t\t\t\tcookieStringBuffer.append(\"=\");\n\t\t\t\tcookieStringBuffer.append((String) cookie.get(cookieName));\n\t\t\t\tif (cookieNames.hasNext())\n\t\t\t\t\tcookieStringBuffer.append(SET_COOKIE_SEPARATOR);\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\tconn.setRequestProperty(COOKIE, cookieStringBuffer.toString());\n\t\t} catch (java.lang.IllegalStateException ise) {\n\t\t\tIOException ioe = new IOException(\n\t\t\t\t\t\"Illegal State! Cookies cannot be set on a URLConnection that is already connected. \"\n\t\t\t\t\t\t\t+ \"Only call setCookies(java.net.URLConnection) AFTER calling java.net.URLConnection.connect().\");\n\t\t\tthrow ioe;\n\t\t}\n\t}",
"@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:32:41.967 -0500\", hash_original_method = \"D5A9FC7DDB356B7F9D175C82B50A2AF1\", hash_generated_method = \"24C7574FF957618A543446AAAEE4BC4D\")\n \nprivate void setCookies(String url, String value) {\n if (value.contains(\"\\r\") || value.contains(\"\\n\")) {\n // for security reason, filter out '\\r' and '\\n' from the cookie\n int size = value.length();\n StringBuilder buffer = new StringBuilder(size);\n int i = 0;\n while (i != -1 && i < size) {\n int ir = value.indexOf('\\r', i);\n int in = value.indexOf('\\n', i);\n int newi = (ir == -1) ? in : (in == -1 ? ir : (ir < in ? ir\n : in));\n if (newi > i) {\n buffer.append(value.subSequence(i, newi));\n } else if (newi == -1) {\n buffer.append(value.subSequence(i, size));\n break;\n }\n i = newi + 1;\n }\n value = buffer.toString();\n }\n CookieManager.getInstance().setCookie(url, value);\n }",
"protected void addSaveCookie() {\n if (getLookup().lookup(SaveCookie.class) == null) {\n getCookieSet().add(this.saveCookie);\n }\n }",
"public void put(Object key, Object value) throws AspException\n {\n throw new AspReadOnlyException(\"Request.Cookies\");\n }",
"@Override\n\t\tpublic boolean isRequestedSessionIdFromCookie() {\n\t\t\treturn false;\n\t\t}",
"private void removeAppCookie(HttpServletResponse response) {\n Cookie cookie = new Cookie(\"costsManager\", \"\");\n cookie.setMaxAge(0);\n response.addCookie(cookie);\n }",
"private void authorize(){\n\t\t\n\t\tURL authURL = null;\n\t\tURL homeURL = null;\n\t\tURLConnection homeCon = null;\n\t\t\n\t\tString loginPage = GG.GG_LOGIN+\"?ACCOUNT=\"+GG.GG_UID\n\t\t\t+\"&PASSWORD=\"+GG.GG_PASS;\n\t\tString cookieString = \"\";\n\t\tString cookieString1 = \"\";\n\t\t\n\t\ttry{\n\t\t\thomeURL = new URL(GG.GG_HOME);\n\t\t\thomeCon = homeURL.openConnection();\n\t\t\t\n\t\t\t// Look At the headers\n\t\t\tMap headerMap = homeCon.getHeaderFields();\n\t\t\t\n\t\t\t// Look for the Cookie\n\t\t\tif(headerMap.containsKey(\"Set-Cookie\")){\n\t\t\t\t\n\t\t\t\t// this gets the exact value of the header\n\t\t\t\t// otherwise gets some formatted string\n\t\t\t\tcookieString = homeCon.getHeaderField(\"Set-Cookie\");\n\t\t\t\t//log.finest(\"cookie1: \"+cookieString);\n\t\t\t\t\n\t\t\t\tauthURL = new URL(loginPage);\n\t\t\t\tHttpURLConnection.setFollowRedirects(false);\n\t\t\t\tHttpURLConnection loginCon = (HttpURLConnection) authURL.openConnection();\n\t\t\t\t\n\t\t\t\t// doOutput must be set before connecting\n\t\t\t\tloginCon.setAllowUserInteraction(true);\n\t\t\t\tloginCon.setUseCaches(false);\n\t\t\t\tloginCon.setDoOutput(true);\n\t\t\t\tloginCon.setRequestProperty(\"Cookie\", cookieString);\n\t\t\t\tloginCon.connect();\n\t\t\t\t\n\t\t\t\t// Look At the headers\n\t\t\t\tMap headerMap1 = loginCon.getHeaderFields();\n\t\t\t\t\n\t\t\t\tcookieString1 = loginCon.getHeaderField(\"Set-Cookie\");\n\t\t\t\t//log.finest(\"cookie2: \"+cookieString1);\n\t\t\t\tif(!Pattern.matches(\".*\\\\.\"+GG.GG_UID+\"\\\\.\\\\d+.*\", cookieString1)){\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tString location = loginCon.getHeaderField(\"Location\");\n\t\t\t\tURL gotURL = new URL(location);\n\t\t\t\tHttpURLConnection gotCon = (HttpURLConnection) gotURL.openConnection();\n\t\t\t\t// doOutput must be set before connecting\n\t\t\t\tgotCon.setAllowUserInteraction(true);\n\t\t\t\tgotCon.setUseCaches(false);\n\t\t\t\tgotCon.setDoOutput(true);\n\t\t\t\tgotCon.setRequestProperty(\"Cookie\", cookieString);\n\t\t\t\tgotCon.setRequestProperty(\"Cookie\", cookieString1);\n\t\t\t\t\n\t\t\t\tgotCon.connect();\n\t\t\t\t\n\t\t\t\t// Got the Cookies\n\t\t\t\tcookies[0] = cookieString;\n\t\t\t\tcookies[1] = cookieString1;\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\tlog.info(\"Unable to find the Cookie\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t\tauthorized = true;\n\t}",
"public JsonResponse<?> addCookie(String name, String value) {\n return addCookie(new NewCookie(name, value));\n }",
"private void logout(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\tCookie[] theCookieLoop=request.getCookies();\n\t\t\tif(theCookieLoop !=null) {\n\t\t\t\tfor(Cookie tempCookie:theCookieLoop) {\n\t\t\t\t\tif(\"checkLoginPageAdmin\".equals(tempCookie.getName())) {\n\t\t\t\t\t\ttempCookie.setValue(\"false\");\n\t\t\t\t\t\tresponse.addCookie(tempCookie);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tresponse.sendRedirect(\"admin/loginPageAdmin.jsp\");\n\t}",
"private boolean loginUsingCookie(HttpServletRequest request, HttpServletResponse response, String userName, String password) {\n IUserDAO iUserDAOHibernate = UserDAOHibernate.getInstance();\n try {\n User user = iUserDAOHibernate.validateUserAndPassword(userName, password);\n if (user != null)\n {\n request.getSession().setAttribute(\"user\", user);\n response.sendRedirect(\"http://localhost:8010/CostsManagerHit/login/userLogged\");\n }\n else{\n removeAppCookie(response);\n response.sendRedirect(\"http://localhost:8010/CostsManagerHit/login\");\n }\n } catch (UserDAOException e) {\n System.out.println(e.getMessage());\n return false;\n } catch (IOException e) {\n e.printStackTrace();\n return false;\n }\n return true;\n }",
"public BladeController setCookie(String name, String value, int maxAgeInSeconds, String path, String domain, boolean isHttpOnly) {\n\t\treturn doSetCookie(name, value, maxAgeInSeconds, path, domain, isHttpOnly);\n\t}",
"public void checkAddAuthCookies(DnCxt cxt, DnRequestHandler handler) throws DnException {\n UserAuthHook.prepAuthCookies.callHook(cxt, this, handler);\n if (handler.setAuthCookie && handler.userAuthCookie != null) {\n var authCookie = handler.userAuthCookie;\n String cookieString = authCookie.toString();\n String cookieVal = coreNode.encryptString(cookieString);\n // Let old cookies hang out for 400 days, even if the cookie only provides a login\n // for day or so.\n Date cookieExpireDate = DnDateUtil.addDays(authCookie.modifiedDate, 400);\n handler.addResponseCookie(AUTH_COOKIE_NAME, cookieVal, cookieExpireDate);\n }\n }",
"public void setCacheControl(String cacheControl)\r\n/* 152: */ {\r\n/* 153:228 */ set(\"Cache-Control\", cacheControl);\r\n/* 154: */ }",
"public static void addCookieWebUser (HttpServletRequest request, HttpServletResponse response, String webUser)\n\t{\n\t\tCookie cookie = new Cookie(COOKIE_NAME, webUser);\n\t\tcookie.setComment(\"Compiere Web User\");\n\t\tcookie.setPath(request.getContextPath());\n\t\tcookie.setMaxAge(2592000); // 30 days in seconds 60*60*24*30\n\t\tresponse.addCookie(cookie);\n\t}",
"public static void addCookieWebUser (HttpServletRequest request, HttpServletResponse response, String webUser)\n\t{\n\t\tCookie cookie = new Cookie(COOKIE_NAME, webUser);\n\t\tcookie.setComment(\"Compiere Web User\");\n\t\tcookie.setPath(request.getContextPath());\n\t\tcookie.setMaxAge(2592000); // 30 days in seconds 60*60*24*30\n\t\tresponse.addCookie(cookie);\n\t}",
"public static void addCookieWebUser (HttpServletRequest request, HttpServletResponse response, String webUser)\n\t{\n\t\tCookie cookie = new Cookie(COOKIE_NAME, webUser);\n\t\tcookie.setComment(\"Compiere Web User\");\n\t\tcookie.setPath(request.getContextPath());\n\t\tcookie.setMaxAge(2592000); // 30 days in seconds 60*60*24*30\n\t\tresponse.addCookie(cookie);\n\t}",
"public static void addCookieWebUser (HttpServletRequest request, HttpServletResponse response, String webUser)\n\t{\n\t\tCookie cookie = new Cookie(COOKIE_NAME, webUser);\n\t\tcookie.setComment(\"Compiere Web User\");\n\t\tcookie.setPath(request.getContextPath());\n\t\tcookie.setMaxAge(2592000); // 30 days in seconds 60*60*24*30\n\t\tresponse.addCookie(cookie);\n\t}",
"public static void acceptCookies() {\n WebElement acceptButton = Browser.driver.findElement(ACCEPT_COOKIES_BUTTON);\n if(acceptButton.isDisplayed()){\n click(ACCEPT_COOKIES_BUTTON);\n }\n }",
"private void loginAdmin(HttpServletRequest request, HttpServletResponse response) throws IOException, SQLException {\n\t\tString username = request.getParameter(\"username\");\n\t\tString pass = request.getParameter(\"password\");\n\t\tCookie[] theCookieLoop=request.getCookies();\n\t\t\n\t\tif(username.equals(\"admin\") && pass.equals(\"123456\")) {\n\t\t\tif(theCookieLoop !=null) {\n\t\t\t\tfor(Cookie tempCookie:theCookieLoop) {\n\t\t\t\t\tif(\"checkLoginPageAdmin\".equals(tempCookie.getName())) {\n\t\t\t\t\t\ttempCookie.setValue(\"true\");\n\t\t\t\t\t\tresponse.addCookie(tempCookie);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor(Cookie tempCookie:theCookieLoop) {\n\t\t\t\t\tif(\"UserLoginAdmin\".equals(tempCookie.getName())) {\n\t\t\t\t\t\ttempCookie.setValue(request.getParameter(\"username\"));\n\t\t\t\t\t\tresponse.addCookie(tempCookie);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tresponse.sendRedirect(\"/WebBuyPhone/admin/darkboard.jsp\");\n\t\t}\n\t\tboolean check;\n\t\tcheck=daoPageAdmin.LoginPageAdmin(request.getParameter(\"username\"),MD5Encrypt.hashPass(request.getParameter(\"password\")));\n\t\tif(check) {\n\t\t\ttheCookieLoop=request.getCookies();\n\t\t\tif(theCookieLoop !=null) {\n\t\t\t\tfor(Cookie tempCookie:theCookieLoop) {\n\t\t\t\t\tif(\"checkLoginPageAdmin\".equals(tempCookie.getName())) {\n\t\t\t\t\t\ttempCookie.setValue(\"true\");\n\t\t\t\t\t\tresponse.addCookie(tempCookie);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor(Cookie tempCookie:theCookieLoop) {\n\t\t\t\t\tif(\"UserLoginAdmin\".equals(tempCookie.getName())) {\n\t\t\t\t\t\ttempCookie.setValue(request.getParameter(\"username\"));\n\t\t\t\t\t\tresponse.addCookie(tempCookie);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ttheCookie =new Cookie(\"userLoginPageAdmin\",request.getParameter(\"username\"));\n\t\t\ttheCookie.setMaxAge(60*60*24*365);\n\t\t\tresponse.addCookie(theCookie);\n\t\t\tresponse.sendRedirect(\"/WebBuyPhone/admin/darkboard.jsp\");\n\t\t}\n\t}",
"@Override\n\tpublic boolean isRequestedSessionIdFromCookie() {\n\t\treturn false;\n\t}",
"public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException\n\t\t\t {\n\n\t\tresponse.setContentType(\"text/html;charset=UTF-8\");\n\t\trequest.setCharacterEncoding(\"UTF-8\");\n\t\tHttpSession session=request.getSession();\n\t\tString id=request.getParameter(\"id\");\n\t\tString pwd=request.getParameter(\"pwd\");\n\t\tString rand = (String)session.getAttribute(\"rand\");\n\t\tString input = request.getParameter(\"rand\");\n\t\tString[] rem=request.getParameterValues(\"remember\");\n\t\tSystem.out.println(\"记住密码=\"+rem[0]);\n\t\tif (rand.equals(input)) {\n\t\t\tWebLoginDAO t=new WebLoginDAO();\n\t\t \tSystem.out.println(id+\"+\"+pwd);\n\t\t\tint ss=0;\n\t\t \ttry {\n\t\t\t\tss=t.checkid(id, pwd);\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t\tthrow new ServletException(e);\n\t\t\t}\n\t\t \tSystem.out.println(\"check=\"+ss);\n\t\t\tif(ss==1){\n\t\t\t\t//存入登陆的用户logname\n\t\t\t\tRegistUser ee=new RegistUser();\n\t\t\t\tee.setLogname(id);\n\t\t\t\t//登陆成功后根据ID取出用户全部信息,以方便用户修改界面预显示信息\n\t\t\t\ttry {\n\t\t\t\t\tee.get(id);\n\t\t\t\t} catch (Exception 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\tsession.setAttribute(\"user\", ee);\n<<<<<<< HEAD\n\t\t\t\tsession.setAttribute(\"logname\",id);\n\t\t\t\t\n=======\n\t\t\t\tsession.setAttribute(\"username\", id);\n>>>>>>> origin/master\n\t\t\t\t//检查“记住我”是否勾选;\n\t\t\t\tif(rem[0].equals(\"remember\")){\n\t\t\t\t//新建cookie对象\n\t\t \t\tCookie idcookie=new Cookie(\"id\", URLEncoder.encode(id, \"UTF-8\"));\n\t\t \t\tCookie pwdcookie=new Cookie(\"pwd\",pwd);\n\t\t \t\t//设置cookie的生命周期\n\t\t \t\tidcookie.setMaxAge(300);\n\t\t \t\tpwdcookie.setMaxAge(300);\n\t\t \t\t//将cookie写入客户端浏览器\n\t\t \t\tresponse.addCookie(idcookie);\n\t\t \t\tresponse.addCookie(pwdcookie);\n\t\t \t\tSystem.out.println(\"已记住\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\trequest.getRequestDispatcher(\"index2.jsp\").forward(request, response);\n\t\t\t}\n\t\t\telse if(ss==2){\n\t\t\t\tthrow new ServletException(\"密码错误!\");\n\t\t\t}\n\t\t\telse if(ss==3){\n\t\t\t\tthrow new ServletException(\"账号不存在!\");\n\t\t\t}\n\t\t}\n\t\telse{\n\n\t\t\t\tthrow new ServletException(\"验证码错误!\");\n\n\t\t\n\t\t}\n\t\t\n\t\t\n\t}",
"@Override\r\n public void delAllCookies()\r\n {\n\r\n }",
"public static boolean setCookie(Context pAppContext, String pNewCookie) {\n\t\t// Fail if either argument is null\n\t\tif (pAppContext == null || pNewCookie == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn setSharedPrefsString(pAppContext, R.string.sessionCookie,\n\t\t\t\tpNewCookie);\n\t}",
"public BladeController setCookie(String name, String value, int maxAgeInSeconds, String path, boolean isHttpOnly) {\n\t\treturn doSetCookie(name, value, maxAgeInSeconds, path, null, isHttpOnly);\n\t}",
"Builder withCookie(long cookie);",
"@Override\n public void onSuccess(int i, Header[] headers, byte[] bytes) {\n CookieManager cookieManager = new CookieManager();\n CookieHandler.setDefault(cookieManager);\n\n if (bytes != null)\n callback.onSuccess(i, new String(bytes));\n else\n callback.onSuccess(i, null);\n }",
"@Override\n\tpublic void saveUserCookieWithTx(UserCookieVO userCookie,HttpServletRequest req) {\n\n\t\tCacheUser cacheUser = (CacheUser) req.getAttribute(\"ut\");\n //设置有效时间\n // 生成失效时间\n Calendar timeout = Calendar.getInstance();\n timeout.setTime(new Date());\n timeout.add(Calendar.DAY_OF_YEAR, 30);\n userCookie.setExpirationTime(timeout.getTime());\n \n UserCookieDTO userCookieDTO = userCookieFacade.getbyUserId(userCookie.getUserId());\n if(userCookieDTO == null){\n\t\t\tuserCookie.setCreateTime(new Date());\t\t\n\t\t\tString ip = CommonUtils.getUserIp(req);\n\t\t\tuserCookie.setCreateUserip(ip);\n\t\t\tuserCookie.setCreateUsermac(CommonUtils.getMACAddress(ip));\n\t\t\tuserCookie.setCreateUsername(cacheUser.getName());\n \tuserCookieFacade.saveUserCookieWithTx(UserCookieConverter.toDTO(userCookie));\n }else{\n \tuserCookie.setUpdateTime(new Date());\n \tString ip = CommonUtils.getUserIp(req);\n \tuserCookie.setUpdateUserip(ip);\n \tuserCookie.setUpdateUsermac(CommonUtils.getMACAddress(ip));\n \tuserCookie.setUpdateUsername(cacheUser.getName());\n \tuserCookieFacade.saveUserCookieWithTx(UserCookieConverter.toDTO(userCookie));\n }\n\n \n \n\t\t\n\t}",
"@Override\n\tpublic void updateOrder(String ordernumber, String setCookie) {\n\t\t\n\t}",
"public void buildCookie(Map<String,String> map){\n map.put(\"PHPSESSID\", cookie);\n }",
"public ServerCookie() {\n\n }",
"@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tboolean isAuthenticated = false;\n\t\tString userName = request.getParameter(\"user\");\n\t\tString password = request.getParameter(\"password\");\n\t\tisAuthenticated = (userName .equals( \"demo\") && password .equals( \"demo\"));\n\n\t\t/**\n\t\t * If authentication succeeds, redirect to user page servlet\n\t\t */\n\t\tif (isAuthenticated) {\n\t\t\t/**\n\t\t\t * Create a new session each time user login successfully a secure page\n\t\t\t */\n\t\t\tHttpSession session = ((HttpServletRequest)request).getSession(true);\n\t\t\tsession.setMaxInactiveInterval(20);\n\t\t\tSystem.out.println(session.getId() + \" \" + session.isNew() + \" \" + session.getCreationTime() + \" \" + session.getLastAccessedTime() + \" \" + session.getMaxInactiveInterval());\n\n\t\t\tCookie authCookie = new Cookie(\"user\", userName);\n\t\t\tauthCookie.setMaxAge(cookie_expire_time);\n\t\t\tresponse.addCookie(authCookie);\n\t\t\ttry {\n\t\t\t\tsession.setAttribute(\"myname\", userName);\n\t\t\t}\n\t\t\tcatch(IllegalStateException ise) {\n\t\t\t\tise.printStackTrace();\n\t\t\t}\n\t\t\tresponse.sendRedirect(authenticated_redirect);\n\t\t\t//TODO: Redirect to the page user requested before forced to login\n\t\t}\n\t\telse {\n\t\t\trequest.getRequestDispatcher(noauthenticated_forward).forward(request, response);\n\t\t}\n\t}"
]
| [
"0.6737716",
"0.65515286",
"0.6424103",
"0.63472444",
"0.626732",
"0.6224651",
"0.6193522",
"0.61911637",
"0.6145395",
"0.6079308",
"0.59700316",
"0.59526724",
"0.5917791",
"0.58386624",
"0.58248633",
"0.58131784",
"0.5744305",
"0.57244337",
"0.5716918",
"0.567472",
"0.56630033",
"0.5653056",
"0.56468487",
"0.5635338",
"0.5629132",
"0.56114084",
"0.55867684",
"0.5553396",
"0.55019367",
"0.54992867",
"0.5492615",
"0.5484711",
"0.5459585",
"0.54521316",
"0.5452107",
"0.54256356",
"0.54098505",
"0.5401881",
"0.53913486",
"0.5389427",
"0.5380638",
"0.5364921",
"0.5364921",
"0.5339189",
"0.53263104",
"0.5319621",
"0.52763635",
"0.52741987",
"0.52741694",
"0.52516943",
"0.5245618",
"0.5232939",
"0.52316594",
"0.52313954",
"0.5225659",
"0.52241194",
"0.52201664",
"0.5216261",
"0.52115077",
"0.52060986",
"0.5166636",
"0.5160887",
"0.5160887",
"0.5160887",
"0.5160887",
"0.5156662",
"0.51558316",
"0.5154283",
"0.5151717",
"0.5133699",
"0.5133446",
"0.5115231",
"0.5099491",
"0.5098843",
"0.50953645",
"0.50943285",
"0.5092233",
"0.5090671",
"0.50870466",
"0.5085337",
"0.5077014",
"0.5075671",
"0.50727576",
"0.50727576",
"0.50727576",
"0.50727576",
"0.5053561",
"0.5050828",
"0.50327903",
"0.5032695",
"0.5010839",
"0.5010018",
"0.50098634",
"0.5001269",
"0.49718407",
"0.49630335",
"0.4955728",
"0.49493918",
"0.49445406",
"0.49158442"
]
| 0.56121904 | 25 |
renvoie l'adresse du premier objet de la freelist renvoie null ssi le freelist est vide | public Integer freelistHead() {
return freelist;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"SELLbeholder() {\n listehode = new Node(null, null);\n }",
"public LinkListPessoa() // constructor\r\n\t{\r\n\t\tfirst = null;\r\n\t}",
"public ListaEncadeada() {\n first = null;\n }",
"public void obrniListu() {\n if (prvi != null && prvi.veza != null) {\n Element preth = null;\n Element tek = prvi;\n \n while (tek != null) {\n Element sled = tek.veza;\n \n tek.veza = preth;\n preth = tek;\n tek = sled;\n }\n prvi = preth;\n }\n }",
"public DobbeltLenketListe() {\n this.hode= null;\n this.hale= null;\n antall=0; }",
"public ObjectListNode() {\n info = null;\n next = null;\n }",
"private Node<T> getFree() {\n Node<T> freeNode = head.get();\n int skipped = 0;\n // Stop when we hit the end of the list\n // ... or we successfully transit a node from free to not-free.\n while (skipped < capacity && !freeNode.free.compareAndSet(true, false)) {\n skipped += 1;\n freeNode = freeNode.next;\n }\n if (skipped < capacity) {\n // Put the head as next.\n // Doesn't matter if it fails. That would just mean someone else was doing the same.\n head.set(freeNode.next);\n } else {\n // We hit the end! No more free nodes.\n freeNode = null;\n }\n return freeNode;\n }",
"public void linkedListQueue(){\r\n\t\tfirst = null;\r\n\t\tlast = null;\r\n\t\tN = 0;\r\n\t}",
"@Override\n\tpublic List<EntidadeDominio> Frete(EntidadeDominio entidade) throws SQLException {\n\t\treturn null;\n\t}",
"public ListReferenceBased() {\r\n\t numItems = 0; // declares numItems is 0\r\n\t head = null; // declares head is null\r\n }",
"public WCLinkedList(){\n size=0;\n head = null;\n tail = null;\n }",
"public SinglyLinkedList(){\n this.first = null;\n }",
"public DLList() {\n head = null;\n tail = null;\n }",
"public boolean unreserve(Reservation res){\n //remove from internal lists\n listR.remove(res);\n //set that to null\n res = null;\n\n //return true if res is null\n if(res == null){\n return true;\n }\n return false;\n }",
"public UtillLinkList() {\n\t\tlist = new LinkedList<String>();\n\t}",
"public Lista()\n {\n empty=true;\n next = null;\n }",
"public LinkedList()\n { \n first = null;\n \n }",
"public List() {\n\t\tthis.head = null; \n\t}",
"@Override\r\n\tpublic List<CommandeDistri> Offre(List<CommandeDistri> o) {\n\t\treturn null;\r\n\t}",
"static void insAuxR(){\r\n\t\tObj aux2=aux;\r\n\t\twhile(aux2.next!=null){\r\n\t\t\taux2=aux2.next;\r\n\t\t}\r\n\t\taux2.next=lt.link;\r\n\t\tlt.link=aux;\r\n\t\t//aux=null; //Reseteamos la lista de variables!!\r\n\t}",
"public RoyaumeDuFeu() {\n this.lGeantDeFeu = new LinkedList<>();\n for (int i = 0; i < 12; i++) {\n lGeantDeFeu.add(new GeantDeFeu());\n }\n\n }",
"private int setFirstFree(final T element) {\r\n\t\tfinal int idx = firstFree;\r\n\t\tserializer.setRandomAccess(idx, element);\r\n\t\tfirstFree = getNextPointer(idx);\r\n\t\t// the pointer will be 0 if it was not unlinked before\r\n\t\tif (firstFree == 0) {\r\n\t\t\tfirstFree = idx + 1;\r\n\t\t}\r\n\t\treturn idx;\r\n\t}",
"@Override\r\n public BaseVO refer(BaseVO baseVO) {\n return null;\r\n }",
"BookList pop(){\n BookList l = this;\n if (!isEmpty()){\n //store value of book before replacing with next\n l= l.next;\n }\n else{\n System.out.println(\"Empty list\");\n l=null;\n }\n return l;\n }",
"public void setNull(){\n for (int i = 0; i < Nodes.size(); i++){\n this.References.add(null);\n }\n }",
"public Item removeFirst(){\n return this.doublyLinkedList.removeFirst();\n }",
"private E unlinkFirst(Node<E> f) {\r\n // assert f == first && f != null;\r\n final E element = f.item;\r\n final Node<E> next = f.next;\r\n f.item = null;\r\n f.next = null; // help GC\r\n first = next;\r\n if (next == null)\r\n last = null;\r\n else\r\n next.prev = null;\r\n size--;\r\n modCount++;\r\n return element;\r\n }",
"private T get() {\n Queue<T> h = head;\n Queue<T> first = h.next;\n h.next = h; // help GC\n\n head = first;\n T x = first.item;\n first.item = null;\n return x;\n }",
"public interface Link<T> extends ITable<T>, List<T>, RandomAccess {\r\n /**\r\n * Set number of the linked objects \r\n * @param newSize new number of linked objects (if it is greater than original number, \r\n * than extra elements will be set to null)\r\n */\r\n public void setSize(int newSize);\r\n \r\n /**\r\n * Returns <tt>true</tt> if there are no related object\r\n *\r\n * @return <tt>true</tt> if there are no related object\r\n */\r\n boolean isEmpty();\r\n\r\n /**\r\n * Get related object by index\r\n * @param i index of the object in the relation\r\n * @return referenced object\r\n */\r\n public T get(int i);\r\n\r\n /**\r\n * Get related object by index without loading it.\r\n * Returned object can be used only to get it OID or to compare with other objects using\r\n * <code>equals</code> method\r\n * @param i index of the object in the relation\r\n * @return stub representing referenced object\r\n */\r\n public Object getRaw(int i);\r\n\r\n /**\r\n * Replace i-th element of the relation\r\n * @param i index in the relartion\r\n * @param obj object to be included in the relation \r\n * @return the element previously at the specified position.\r\n */\r\n public T set(int i, T obj);\r\n\r\n /**\r\n * Assign value to i-th element of the relation.\r\n * Unlike Link.set methos this method doesn't return previous value of the element\r\n * and so is faster if previous element value is not needed (it has not to be fetched from the database)\r\n * @param i index in the relartion\r\n * @param obj object to be included in the relation \r\n */\r\n public void setObject(int i, T obj);\r\n\r\n /**\r\n * Remove object with specified index from the relation\r\n * Unlike Link.remove methos this method doesn't return removed element and so is faster \r\n * if it is not needed (it has not to be fetched from the database)\r\n * @param i index in the relartion\r\n */\r\n public void removeObject(int i);\r\n\r\n /**\r\n * Insert new object in the relation\r\n * @param i insert poistion, should be in [0,size()]\r\n * @param obj object inserted in the relation\r\n */\r\n public void insert(int i, T obj);\r\n\r\n /**\r\n * Add all elements of the array to the relation\r\n * @param arr array of obects which should be added to the relation\r\n */\r\n public void addAll(T[] arr);\r\n \r\n /**\r\n * Add specified elements of the array to the relation\r\n * @param arr array of obects which should be added to the relation\r\n * @param from index of the first element in the array to be added to the relation\r\n * @param length number of elements in the array to be added in the relation\r\n */\r\n public void addAll(T[] arr, int from, int length);\r\n\r\n /**\r\n * Add all object members of the other relation to this relation\r\n * @param link another relation\r\n */\r\n public boolean addAll(Link<T> link);\r\n\r\n /**\r\n * Return array with relation members. Members are not loaded and \r\n * size of the array can be greater than actual number of members. \r\n * @return array of object with relation members used in implementation of Link class\r\n */\r\n public Object[] toRawArray(); \r\n\r\n /**\r\n * Get all relation members as array.\r\n * The runtime type of the returned array is that of the specified array. \r\n * If the index fits in the specified array, it is returned therein. \r\n * Otherwise, a new array is allocated with the runtime type of the \r\n * specified array and the size of this index.<p>\r\n *\r\n * If this index fits in the specified array with room to spare\r\n * (i.e., the array has more elements than this index), the element\r\n * in the array immediately following the end of the index is set to\r\n * <tt>null</tt>. This is useful in determining the length of this\r\n * index <i>only</i> if the caller knows that this index does\r\n * not contain any <tt>null</tt> elements.)<p>\r\n * @return array of object with relation members\r\n */\r\n public <T> T[] toArray(T[] arr);\r\n\r\n /**\r\n * Checks if relation contains specified object instance\r\n * @param obj specified object\r\n * @return <code>true</code> if object is present in the collection, <code>false</code> otherwise\r\n */\r\n public boolean containsObject(T obj);\r\n\r\n /**\r\n * Check if i-th element of Link is the same as specified obj\r\n * @param i element index\r\n * @param obj object to compare with\r\n * @return <code>true</code> if i-th element of Link reference the same object as \"obj\"\r\n */\r\n public boolean containsElement(int i, T obj);\r\n\r\n /**\r\n * Get index of the specified object instance in the relation. \r\n * This method use comparison by object identity (instead of equals() method) and\r\n * is significantly faster than List.indexOf() method\r\n * @param obj specified object instance\r\n * @return zero based index of the object or -1 if object is not in the relation\r\n */\r\n public int indexOfObject(Object obj);\r\n\r\n /**\r\n * Get index of the specified object instance in the relation\r\n * This method use comparison by object identity (instead of equals() method) and\r\n * is significantly faster than List.indexOf() method\r\n * @param obj specified object instance\r\n * @return zero based index of the object or -1 if object is not in the relation\r\n */\r\n public int lastIndexOfObject(Object obj);\r\n\r\n /**\r\n * Remove all members from the relation\r\n */\r\n public void clear();\r\n\r\n /**\r\n * Get iterator through link members\r\n * This iterator supports remove() method.\r\n * @return iterator through linked objects\r\n */\r\n public Iterator<T> iterator();\r\n\r\n /**\r\n * Replace all direct references to linked objects with stubs. \r\n * This method is needed tyo avoid memory exhaustion in case when \r\n * there is a large numebr of objectys in databasse, mutually\r\n * refefencing each other (each object can directly or indirectly \r\n * be accessed from other objects).\r\n */\r\n public void unpin();\r\n \r\n /**\r\n * Replace references to elements with direct references.\r\n * It will impove spped of manipulations with links, but it can cause\r\n * recursive loading in memory large number of objects and as a result - memory\r\n * overflow, because garbage collector will not be able to collect them\r\n */\r\n public void pin(); \r\n}",
"@Override\n public void nullstill() {\n Node<T> curr= hode;\n while (curr!=null){\n Node<T> p= curr.neste;\n curr.forrige=curr.neste= null;\n curr.verdi= null;\n curr= p;\n }\n hode= hale= null;\n endringer++;\n antall=0;\n }",
"public LinkList() {\n this.head = null;\n this.tail = null;\n }",
"public void deleteWholeList()\n {\n head = null;\n }",
"public LinkedList() {\n\t\tfirst = null;\n\t}",
"public void Free_SSL(int k){\n // Link deleted element to a alternate link list\n // Let free element become the second element of alternate link list\n StaticLinkList[k].cur = StaticLinkList[0].cur;\n // Let the deleted element become the first element of alternate link list\n StaticLinkList[0].cur = k;\n }",
"Sporthall() {\n reservationsList = new ArrayList<>();\n }",
"public LinkedList(){\n this.size = 0;\n first = null;\n last = null;\n }",
"void Free();",
"public ListEntry() {\n this.data = null;\n this.next = null;\n this.prev = null;\n }",
"public DmcNamedObjectNontransportableREF(){\r\n\t\tobject = null;\r\n\t}",
"@Override\n public T dequeue() {\n if(inner_list == null){return null;}\n\n // else\n else{\n T ret = inner_list.getInfo();\n inner_list = inner_list.getNext();\n return ret;\n }\n }",
"protected void finalize()\r\n/* 364: */ throws Throwable\r\n/* 365: */ {\r\n/* 366: */ try\r\n/* 367: */ {\r\n/* 368:398 */ super.finalize();\r\n/* 369: */ \r\n/* 370: */ \r\n/* 371: */ \r\n/* 372: */ \r\n/* 373:403 */ Link link = this.head;\r\n/* 374:404 */ while (link != null)\r\n/* 375: */ {\r\n/* 376:405 */ reclaimSpace(Recycler.LINK_CAPACITY);\r\n/* 377:406 */ link = link.next;\r\n/* 378: */ }\r\n/* 379: */ }\r\n/* 380: */ finally\r\n/* 381: */ {\r\n/* 382:403 */ Link link = this.head;\r\n/* 383:404 */ while (link != null)\r\n/* 384: */ {\r\n/* 385:405 */ reclaimSpace(Recycler.LINK_CAPACITY);\r\n/* 386:406 */ link = link.next;\r\n/* 387: */ }\r\n/* 388: */ }\r\n/* 389: */ }",
"public void trimList(Man m) {\n if (list.person == m) {\r\n\t\t\tlist = null;\r\n\t\t} else {\r\n PersonList ls = list;\r\n while (ls.next.person != m) {\r\n\t\t\t\tls = ls.next;\r\n\t\t\t}\r\n ls.next = null; // drop m and all below him\r\n }\r\n }",
"public void dequeue() {\n if (!isEmpty()) { //se estiver vazia retorna -1\n\n No temp = inicio;\n // move o topo para o prox nó\n inicio = inicio.next;\n if (inicio == null) {\n fim = null;\n }\n size--;\n }\n\n }",
"public LinkedListStructureofaSinglyLinkedListClass() {\n\t\theadNode=null;\n\t\tsize=0;\n\t\t\n\t}",
"ListOfBooks(){\n \tlist = new LinkedList<Book>();\n }",
"public PartialTreeList() {\r\n \trear = null;\r\n \tsize = 0;\r\n }",
"public void chargeListe(){\n jCbListeEtablissement.removeAllItems();\n String sReq = \"From Etablissement\";\n Query q = jfPrincipal.getSession().createQuery(sReq);\n Iterator eta = q.iterate();\n while(eta.hasNext())\n {\n Etablissement unEtablissement = (Etablissement) eta.next();\n jCbListeEtablissement.addItem(unEtablissement.getEtaNom());\n }\n bChargeListe = true;\n }",
"public OrderBook () {\n\t\tbestBid=null;\n\t\tbestOffer=null;\n\t\tsize=0;\n\t\thead = new Node();\n tail = new Node();\n head.next = tail;\n tail.previous = head;\n\t}",
"public void fjernAlle() {\n listehode.neste = null;\n antall = 0;\n }",
"public DoubleLinked() {\n first = null;\n last = null;\n N = 0;\n }",
"@Override\n\tpublic void freeMe() {\n\n\t}",
"public DoubledList() {\r\n front = null;\r\n size = 0;\r\n }",
"public E removeFirst(){\r\n return null;\r\n }",
"public LinkedListOfEmployees() {\r\n\t\thead = null;\r\n\t}",
"public Boolean getFree() {\n return free;\n }",
"public Deque() {\n first = null;\n last = null;\n }",
"public WeakList() {\r\n }",
"private Node getRefTo(T item){\n Node n = first;\n while(n != null && !n.value.equals(item))\n n = n.next;\n return n;\n }",
"public void removefirst()\r\n {\r\n Item item = pre.item;\r\n pre = pre.next;\r\n n--;\r\n }",
"public Listas_simplemente_enlazada(){\r\n inicio=null; // este constructor me va servir para apuntar el elemento\r\n fin=null;\r\n }",
"public void Lista(){\n\t\tcabeza = null;\n\t\ttamanio = 0;\n\t}",
"myArrayList() {\n\t\thead = null;\n\t\ttail = null;\n\t}",
"public void dequeue() {\n if (!isEmpty()) { //caso esteja vazia retorna -1\n\n Node temp = first;\n // desloca o topo para o prox no\n first = first.next;\n if (first == null) {\n last = null;\n }\n iSize--;\n }\n\n }",
"public void setFree(Boolean free)\n\t{\n\t\tthis.free = free;\n\t}",
"public MyLinkedList() {\n first = null;\n n = 0;\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 }",
"public SinglyLinkedList() {\n this.head = null; \n }",
"public DoubleLinkedList()\n {\n \tfirst=last=null;\n }",
"public void addToFreeList(V value) {\n this.mFreeList.add(value);\n }",
"@Override\n public Object dequeue() {\n Object objeto;\n if (!isEmpty()){ // Pré-condição\n objeto = memo[head];\n if (++head >= MAX){\n head = 0; // MAX-1 é a ultima posição do vetor\n }\n \n total--;\n if (total == 0){\n head = -1;\n tail = -1;\n }\n \n return objeto; // Retor o objeto que estava na head\n }\n else{\n return null; // Não se retira elemento de FILA vazia\n }\n }",
"public SinglyLinkedList()\n {\n first = null; \n last = null;\n }",
"public SLL() {\n\t\tsuper();\n\t\tthis.head = null;\n\t\tthis.size = 0;\n\t}",
"public SortedLinkedList() {\n\t\thead = null;\n\t}",
"public void free(ItemReference ref);",
"public Paciente dequeue() {\r\n\t\tif (this.head == null) {\r\n\t\t\treturn null;\r\n\t\t} else {\r\n\t\t\tPaciente paciente = this.head.getPaciente();\r\n\t\t\tthis.head = this.head.getProximo();\r\n\t\t\treturn paciente;\r\n\t\t}\r\n\t}",
"public void revolver() {\n this.lista = Lista.escojerAleatorio(this, this.size()).lista;\n }",
"public Deque(){\n\t\tthis.first = null;\n\t\tthis.last = null;\n\t\tthis.n = 0;\n\t}",
"@Override\r\n\tpublic E removeFirst() {\n\t\treturn null;\r\n\t}",
"public void free() {\r\n\r\n\t}",
"public ListaDuplamenteEncadeada(){\r\n\t\t\r\n\t}",
"private void clearFriendList() {\n friendList_ = emptyProtobufList();\n }",
"public void agregarAlFinal(T v){\n\t\tNodo<T> nuevo = new Nodo<T>();\r\n\t\tnuevo.setInfo(v);\r\n\t\tnuevo.setRef(null);\r\n\t\t\r\n\t\t//si la lista aun no tiene elementos\r\n\t\tif(p == null){\r\n\t\t\t//el nuevo nodo sera el primero\r\n\t\t\tp=nuevo;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t//retorno la lista hasta que aux apunte al ultimo nodo\r\n\t\tNodo<T> aux;\r\n\t\tfor(aux=p; aux.getRef() != null; aux=aux.getRef()){\r\n\t\t\t//enlazo el nuevo nodo como el siguiente del ultimo\r\n\t\t\taux.setRef(nuevo);\r\n\t\t}\r\n\t\t\r\n\t}",
"PublicLinkedList() {\n\t\tfront = back = null;\n\t}",
"public LinkedQueue(){\n this.firstNode = null;\n this.lastNode = null;\n }",
"public int getFreeListSize() {\n return this.mFreeList.size();\n }",
"protected <ELEMENT> List<ELEMENT> newReferrerList() {\r\n return new ArrayList<ELEMENT>();\r\n }",
"public List() {\n this.list = new Object[MIN_CAPACITY];\n this.n = 0;\n }",
"eList()\r\n {\r\n head = null;\r\n keyword = new String();\r\n }",
"String deq() \n\t{\n\t\tif ( !isEmpty() )\n\t\t{\n\t\t\tString t = head.item;\n\t\t\thead = head.next;\n\n\t\t\tif (head == null)\n\t\t\t{\n\t\t\t\ttail = null;\n\t\t\t}\n\t\t\treturn t;\n\t\t}\n\t\treturn null;\n\t\t\n\t}",
"@Override\n public final void addWhenEmpty(final ET object) throws ConcurrentModificationException, UnsupportedOperationException {\n concurrencyCheck();\n emptyCheck();\n final Link<ET> newLink = new Link<>(object, null, null);\n newLink.left = newLink;\n newLink.right = newLink;\n list.voidLink.left = newLink;\n list.voidLink.right = newLink;\n pos++;\n expectedModCount++;\n list.size++;\n list.modCount++;\n }",
"public Object getDeletedObject(ABEDto object)\n\t{\n\t\t//Send this as return object when input object is null\n\t\tObject obj = new Object();\n\t\t if (object instanceof Hotel) {\n\t\t\t List<Hotel> hotelsList = new ArrayList<Hotel>();\n\t\t\t com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.hotel.v1.Hotel hotelBO = new com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.hotel.v1.Hotel();\n\t\t\t List<com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.hotel.v1.Hotel> hotelListBO = new ArrayList<com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.hotel.v1.Hotel>();\n\t\t\t\thotelsList.add((Hotel) object);\n\t\t\t\tif(hotelsList!=null && hotelsList.size()>0)\n\t\t\t\t{\n\t\t\t\t\tfor(int i=0;i<hotelsList.size();i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(hotelsList.get(i)!=null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\thotelBO = this.getHotelReq(hotelsList.get(i));\n\t\t\t\t\t\thotelListBO.add(hotelBO);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\treturn hotelListBO;\n\t\t }\n\t\t \n\t\t else if(object instanceof Service)\n\t\t {\n\t\t\t List<Service> servicesList = new ArrayList<Service>();\n\t\t\t com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.service.v1.Service serviceBO = new com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.service.v1.Service();\n\t\t\t List<com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.service.v1.Service> serviceListBO = new ArrayList<com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.service.v1.Service>();\n\t\t\t servicesList.add((Service) object); \n\t\t\t\tif(servicesList!=null && servicesList.size()>0)\n\t\t\t\t{\n\t\t\t\t\tfor(int i=0;i<servicesList.size();i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(servicesList.get(i)!=null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tserviceBO = this.getServiceReq(servicesList.get(i));\n\t\t\t\t\t\t\tserviceListBO.add(serviceBO);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\treturn serviceListBO;\n\t\t }\n\t\t \n\t\t else if(object instanceof Insurance)\n\t\t {\n\t\t\t List<Insurance> insuranceList = new ArrayList<Insurance>();\n\t\t\t\tinsuranceList.add((Insurance) object);\n\t\t\t\t\n\t\t\tcom.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.insurance.v1.Insurance insuranceBO = new com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.insurance.v1.Insurance();\n\t\t\tList<com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.insurance.v1.Insurance> insuranceListBO = new ArrayList<com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.insurance.v1.Insurance>();\n\t\t\tif(insuranceList!=null && insuranceList.size()>0)\n\t\t\t{\n\t\t\t\tfor(int i=0;i<insuranceList.size();i++)\n\t\t\t\t{\n\t\t\t\t\tif(insuranceList.get(i)!=null)\n\t\t\t\t\t{\n\t\t\t\t\t\tinsuranceBO = this.getInsuranceReq(insuranceList.get(i));\n\t\t\t\t\t\tinsuranceListBO.add(insuranceBO);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\treturn insuranceListBO;\n\t\t }\n\treturn obj;\t\n\t}",
"public void resetListaId()\r\n {\r\n this.listaId = null;\r\n }",
"public Deque() {\n first = null;\n last = null;\n len = 0;\n }",
"public Lista(){\n inicio=null;\n fin=null;\n }",
"public synchronized void resetOrdenDBList() {\n ordenDBList = null;\n }",
"@Override\r\n public void remove() {\r\n if (lastRetrieved == null) {\r\n throw new IllegalStateException();\r\n }\r\n lastRetrieved.prev.next = next;\r\n next = next.next;\r\n\r\n size--;\r\n }",
"public UserList(){\n\t\tthis.head = new User();\n\t\tthis.tail = this.head;\n\n\t}",
"@Override\r\n\tpublic List<CommandeDistri> offre(List<CommandeDistri> list) {\n\t\treturn null;\r\n\t}",
"public abstract void free();",
"public QueueLinkedList()\r\n {\r\n first = null; //assigning variables to null\r\n last = null;\r\n \r\n }"
]
| [
"0.61638665",
"0.58074474",
"0.56530017",
"0.5552302",
"0.55199933",
"0.55131054",
"0.54786074",
"0.54235464",
"0.5405921",
"0.53609395",
"0.5357186",
"0.53517",
"0.53463614",
"0.5312451",
"0.52864784",
"0.5278059",
"0.52652514",
"0.525374",
"0.5245144",
"0.52447826",
"0.5236359",
"0.5217363",
"0.52065873",
"0.51929295",
"0.5185479",
"0.5169727",
"0.5168044",
"0.51500976",
"0.51398534",
"0.51304424",
"0.5123473",
"0.51224303",
"0.5119207",
"0.51042384",
"0.51014256",
"0.5099443",
"0.50984764",
"0.50956213",
"0.5089137",
"0.508616",
"0.5084001",
"0.507227",
"0.50686514",
"0.50595725",
"0.5058124",
"0.50579107",
"0.5049971",
"0.50499344",
"0.5046762",
"0.50226754",
"0.5015801",
"0.50147957",
"0.5003823",
"0.49989507",
"0.49967954",
"0.49932882",
"0.4991819",
"0.49915278",
"0.49895543",
"0.49868155",
"0.49847162",
"0.49832875",
"0.4978669",
"0.49770156",
"0.4976295",
"0.496253",
"0.4956881",
"0.495002",
"0.49494952",
"0.49489138",
"0.49460667",
"0.49449143",
"0.4942878",
"0.49353516",
"0.4930976",
"0.4927933",
"0.49043182",
"0.48999792",
"0.48948452",
"0.48923853",
"0.48899207",
"0.48888746",
"0.4888355",
"0.488342",
"0.4880982",
"0.48808917",
"0.48707852",
"0.48677436",
"0.48649633",
"0.48639977",
"0.48550645",
"0.4853618",
"0.48528668",
"0.4851423",
"0.48493612",
"0.4846883",
"0.48445275",
"0.48444957",
"0.48424307",
"0.48421624"
]
| 0.5749836 | 2 |
skip to next word | private void nocompressedUnPack()throws UnpackException,ZipEndException{
skipByte();
//get the len
long LEN = 0x00;
byte byte0 = getByte();
byte byte1 = getByte();
byte byte2 = getByte();
byte byte3 = getByte();
LEN |= byte1;
LEN |= (byte0 << 8);
LEN &= 0X0000ffff;
// LEN |= (byte2<<24);
// LEN |= (byte3<<16);
int l = 0;
try{
for (long num = 0; num < LEN ; num ++){
outputStoredByte(getByte());
}
}catch (IOException e){
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void skip()\n {\n skip(1);\n }",
"void skip();",
"public void skipWhitespace() {\n while (this.index < this.input.length() && Character.isWhitespace(this.input.charAt(this.index)))\n this.index++;\n }",
"public void skipWhitespace() throws IOException {\n\t\twhile (CharacterIterator.DONE != current()\n\t\t\t\t&& Character.isWhitespace(current())) {\n\t\t\tnext();\n\t\t}\n\t}",
"@Override\n\tpublic void skip() {\n\t}",
"private void skip(int aSkip){\r\n \r\n assert aSkip>=0;\r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n\r\n iIndex+=aSkip;//advance index by the skip distance\r\n if (iIndex>=iMessage.length()) iIndex=iMessage.length();//if beyond end then set index at end of message\r\n \r\n }",
"@Test\n void step() {\n Fb2ConverterStateMachine state = new Fb2ConverterStateMachine();\n StringBuilder sb = new StringBuilder();\n WordsTokenizer wt = new WordsTokenizer(getOriginalText());\n while (wt.hasMoreTokens()) {\n String word = wt.nextToken();\n if (state.step(word)) {\n sb.append(word).append(\" \");\n }\n }\n assertEquals(\"test 1 . text- 2 text 0 text 6111 222 \", sb.toString());\n }",
"void getNextWord () \n\t\t\tthrows IOException, FileNotFoundException {\n \n\t\tcontext.word.setLength(0);\n \n // Build the next entity\n while ((context.entityCharCount > 0)\n && (! atEnd)) {\n getNextCharacter();\n }\n \n // See if the word starts with white space\n boolean startingWhiteSpaceForWord\n = (htmlChar.whiteSpace \n && (context.fieldType == HTMLContext.TEXT)\n && (! context.preformatted));\n \n // Capture leading whitespace if appropriate\n if (htmlChar.whiteSpace\n && context.fieldType == HTMLContext.TEXT\n && (context.field.length() > 0\n || context.preformatted)) {\n context.word.append (htmlChar.character);\n }\n \n // If we're dealing with preformatted text, \n // then capture all leading white space\n if (context.preformatted && context.fieldType == HTMLContext.TEXT) {\n while (htmlChar.whiteSpace && (! atEnd)) {\n context.word.append (htmlChar.character);\n getNextCharacter();\n }\n }\n \n // Now skip any remaining white space\n while (((htmlChar.whiteSpace) \n || context.entityCharCount > 0)\n && (! atEnd)) {\n getNextCharacter();\n }\n \n // See if we've got got a quoted attribute value\n\t\tif (context.fieldType == HTMLContext.ATTRIBUTE_VALUE\n && (! htmlChar.translatedEntity)) {\n if (htmlChar.character == GlobalConstants.DOUBLE_QUOTE) {\n context.quoted = true;\n context.startQuoteChar = GlobalConstants.DOUBLE_QUOTE;\n }\n else\n if (htmlChar.character == GlobalConstants.SINGLE_QUOTE) {\n context.quoted = true;\n context.startQuoteChar = GlobalConstants.SINGLE_QUOTE;\n }\n\t\t}\n \n // Now capture the word's content\n\t\twhile (! htmlChar.endsWord) {\n\t\t\tcontext.word.append (htmlChar.character);\n\t\t\tdo {\n getNextCharacter();\n } while ((context.entityCharCount > 0) && (! atEnd));\n\t\t}\n \n\t\tif (context.quoted\n && (! htmlChar.translatedEntity)\n\t\t\t\t&& htmlChar.character == context.startQuoteChar) {\n\t\t\tcontext.word.append (htmlChar.character);\n context.quoted = false;\n\t\t\tdo {\n getNextCharacter();\n } while ((context.entityCharCount > 0) && (! atEnd));\n\t\t}\n if (startingWhiteSpaceForWord\n && context.fieldType == HTMLContext.TEXT\n && context.word.length() > 0\n && (! Character.isWhitespace (context.word.charAt (0)))) {\n context.word.insert (0, ' ');\n }\n\t}",
"public void skipToken() {\t\t\n\t\t//remove token from line\n\t\tif (token != null)\n\t\t{\n\t\t\tline = line.substring(token.length());\n\t\t}\n\t\t//check if new token in line\n\t\tint pos = findFirstNotWhitespace(line.toCharArray());\n\t\t\n\t\t//read line until next token found\n\t\twhile (pos == -1 && s.hasNextLine())\n\t\t{\n\t\t\t//read next line\n\t\t\tline = s.nextLine();\n\t\t\t//check for start of token\n\t\t\tpos = findFirstNotWhitespace(line.toCharArray());\n\t\t}\n\t\t\n\t\t//no token found till eof\n\t\tif (pos == -1)\n\t\t{\n\t\t\t//set EOF tag\n\t\t\tline = null;\n\t\t}\n\t\t//reset token values\n\t\ttoken = null;\n\t\ttType = null;\n\t}",
"private void skipWhiteSpace() throws ScanErrorException\n {\n while (isWhiteSpace(currentChar))\n eat(currentChar);\n }",
"private String scan() {\n line = line.trim();\n if (line.length() == 0)\n return \"\";\n\n int i = 0;\n while (i < line.length() && line.charAt(i) != ' ' && line.charAt(i) != '\\t') {\n i = i + 1;\n }\n String word = line.substring(0, i);\n line = line.substring(i);\n return word;\n }",
"@Override\r\n\tpublic void skip() {\n\t\tSystem.out.println(\"Skip\");\r\n\t}",
"private void skipWhitespaces() {\n\t\twhile(currentIndex < data.length) {\n\t\t\tif (isWhitespace(data[currentIndex])) {\n\t\t\t\tcurrentIndex++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tbreak;\t\n\t\t}\n\t}",
"private void skipWhitespaces() {\n\t\twhile(currentIndex < data.length) {\n\t\t\tif (isWhitespace(data[currentIndex])) {\n\t\t\t\tcurrentIndex++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tbreak;\t\n\t\t}\n\t}",
"private void skipWhitespace() {\n while (currentPos < endPos && filterString.charAt(currentPos) == ' ') {\n currentPos++;\n }\n }",
"protected char skipTo(char... delims) throws java.io.IOException {\n char c = currentChar;\n while (true) {\n if (c == '\\n' || c == '\\r') throw error();\n for (char delim : delims) {\n if (c == delim) return delim;\n }\n c = next();\n }\n }",
"void highlightNextWord() {\n\t\tif(findIndex < finder.size()) {\n\t\t\ttextEditor.getHighlighter().removeAllHighlights();\n\t\t\ttry {\n\t\t\t\thighlighter.addHighlight(finder.get(findIndex).p1, \n\t\t\t\t\t\tfinder.get(findIndex).p2-1, painter);\n\t\t\t} catch (BadLocationException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tfindIndex++;\n\t\t}\n\t\telse {\n\t\t\tfindIndex = 0;\n\t\t}\n\t}",
"private void skipWhitespaces() {\n\t\twhile (currentIndex < data.length) {\n\t\t\tchar ch = data[currentIndex];\n\t\t\tif (Character.isWhitespace(ch)) {\n\t\t\t\t++currentIndex;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}",
"public void next() {\n\t\tif ((position == 0) && (pause != 3)) {\n\t\t\tpause++;\n\t\t} else {\n\t\t\tposition++;\n\t\t\tpause = 0;\n\t\t\tif (position == (origionalMessage.length() + 10)) {\n\t\t\t\tposition = 0;\n\t\t\t}\n\t\t}\n\n\t}",
"private Token extendedNextWordToken() {\n\t\t StringBuilder sb = new StringBuilder();\n\t\t \n\t\t while(currentIndex < data.length) {\n\t\t\t char c = data[currentIndex];\n\t\t\t \n\t\t\t if(c == '#') break;\n\t\t\t if(c == ' ' || c == '\\n' || c== '\\t' || c == '\\r') break;\n\t\t\t \n\t\t\t sb.append(c);\n\t\t\t currentIndex++;\n\t\t }\n\t\t return new Token(TokenType.WORD, sb.toString());\n\t }",
"protected void nextChar() {\r\n\t\t\r\n//\t\tif (index < text.length) {\r\n//\t\t\tlook = text[index++];\r\n//\t\t} else {\r\n//\t\t\tlook = ' ';\r\n//\t\t}\r\n\t\tlook = (index < text.length)?(text[index++]):(' ');\r\n\t}",
"java.lang.String getNextStep();",
"private void advanceUntilNL() throws BufferEndedException {\twhile (reader.getLastDelimiter()!='\\n') reader.nextToken();}",
"public void advance() {\n // Get the next instruction\n instruction = fileStream.next();\n removeWhitespace();\n // Split instruction apart\n instructionChunks = instruction.split(\" \");\n }",
"protected void skipWhitespace(CharArrayBuffer buffer, ParserCursor cursor) {\n/* 453 */ int pos = cursor.getPos();\n/* 454 */ int indexTo = cursor.getUpperBound();\n/* 455 */ while (pos < indexTo && HTTP.isWhitespace(buffer.charAt(pos)))\n/* */ {\n/* 457 */ pos++;\n/* */ }\n/* 459 */ cursor.updatePos(pos);\n/* */ }",
"public void advance(){\n\n if (hasMoreTokens()) {\n currentToken = tokens.get(pointer);\n pointer++;\n }else {\n throw new IllegalStateException(\"No more tokens\");\n }\n\n //System.out.println(currentToken);\n\n if (currentToken.matches(keyWordReg)){\n currentTokenType = TYPE.KEYWORD;\n }else if (currentToken.matches(symbolReg)){\n currentTokenType = TYPE.SYMBOL;\n }else if (currentToken.matches(intReg)){\n currentTokenType = TYPE.INT_CONST;\n }else if (currentToken.matches(strReg)){\n currentTokenType = TYPE.STRING_CONST;\n }else if (currentToken.matches(idReg)){\n currentTokenType = TYPE.IDENTIFIER;\n }else {\n\n throw new IllegalArgumentException(\"Unknown token:\" + currentToken);\n }\n\n }",
"private Token nextTokenExtended() throws LexerException {\n while(currentIndex < dataLength \n && !Character.isWhitespace( data[currentIndex] ) \n && data[currentIndex]!='#') {\n \n stringToken.append( data[ currentIndex++ ] );\n }\n \n token = new Token(TokenType.WORD, stringToken.toString());\n stringToken = new StringBuilder();\n \n return token;\n }",
"protected Word getNext()\n/* */ {\n/* 63 */ Word token = null;\n/* 64 */ if (this.lexer == null) {\n/* 65 */ return token;\n/* */ }\n/* */ try {\n/* 68 */ token = this.lexer.next();\n/* 69 */ while (token == WhitespaceLexer.crValue) {\n/* 70 */ if (this.eolIsSignificant) {\n/* 71 */ return token;\n/* */ }\n/* 73 */ token = this.lexer.next();\n/* */ }\n/* */ }\n/* */ catch (IOException e) {}\n/* */ \n/* */ \n/* 79 */ return token;\n/* */ }",
"@Override\n public void exec(TextAgentData data, IWord word) {\n checkForSeparatedNode(data.getTextState(), word);\n }",
"private void skipSpaces() {\r\n\t\twhile (currentIndex < expression.length && (expression[currentIndex] == ' ' || expression[currentIndex] == '\\t'\r\n\t\t\t\t|| expression[currentIndex] == '\\n' || expression[currentIndex] == '\\r')) {\r\n\t\t\tcurrentIndex++;\r\n\t\t}\r\n\t}",
"private void startNext() {\n \tresetGame();\n \tfor (int i = 0; i < 5; i++) {\n \t\tprintln();\n \t}\n \t\n \tprintln(\"The word now looks like this: \" + currentWord);\n \tprintln(\"You have \" + guessesLeft + \" guesses left.\");\n \tplayGame();\n }",
"final void advanceToNextTokenSilently()\n {\n try\n {\n getTokenizer().nextToken();\n }\n catch( Exception e )\n {\n // ignore\n }\n }",
"public boolean next() {\n\t\tif (done())\n\t\t\treturn false;\n\t\tmany(whitespace);\n\t\tString c=program.charAt(pos)+\"\";\n\t\tif (digits.contains(c))\n\t\t\tnextNumber();\n\t\telse if (letters.contains(c))\n\t\t\tnextKwId();\n\t\telse if (operators.contains(c))\n\t\t\tnextOp();\n\t\telse if (c.equals(\"#\")){\n\t\t\t//this is a comment, move past the first hashtag\n\t\t\tpast('#');\n\t\t\t//move past the second hastag, ignoring everything in between\n\t\t\tpast('#');\n\t\t\treturn next();\n\t\t} else {\n\t\t\tSystem.err.println(\"illegal character at position \"+pos);\n\t\t\tpos++;\n\t\t\treturn next();\n\t\t}\n\t\treturn true;\n }",
"private void computerTurn() {\n String text = txtWord.getText().toString();\n String nextWord;\n if (text.length() >= 4 && dictionary.isWord(text)){\n endGame(false, text + \" is a valid word\");\n return;\n } else {\n nextWord = dictionary.getGoodWordStartingWith(text);\n if (nextWord == null){\n endGame(false, text + \" is not a prefix of any word\");\n return;\n } else {\n addTextToGame(nextWord.charAt(text.length()));\n }\n }\n userTurn = true;\n txtLabel.setText(USER_TURN);\n }",
"static void doWords(String words, MorseAction action) throws InterruptedException{\n if (firstPass){\n action.doAction(MorseAction.morseAction.SILENCE);\n Thread.sleep(500);\n firstPass=false;\n }\n for (byte b: words.getBytes()){\n if (stop)\n return;\n if (b==blanc) {// word separator\n Thread.sleep(betweenWordDelay);\n continue;\n }\n doLetter(b, action);\n Thread.sleep(betweenLetterDelay);\n }\n Thread.sleep(betweenWordDelay);\n }",
"private void endWord() {\n\t\tinWord = false;\n\t\tcontentsField.addEndChar(getContentPosition());\n\t\tcontentsField.addValue(currentElementText);\n\n\t\t// Reset element text for the next word.\n\t\tcurrentElementText = null;\n\t}",
"@Override\n public String next() {\n return bikes[currentIndex++];\n }",
"private void skipBlankSpaces() {\n while (currentIndex < this.data.length) {\n if (!Character.isWhitespace(data[currentIndex])) {\n break;\n }\n currentIndex++;\n }\n }",
"public int skipWhitelines()\r\n {\r\n int i = 0;\r\n \r\n boolean success;\r\n do\r\n {\r\n String str = feed.findWithinHorizon( WHITELINE_PATTERN, 0 );\r\n \r\n if( (str != null) && (str.length() > 0) )\r\n {\r\n success = true;\r\n ++i;\r\n ++lineNum;\r\n }\r\n else\r\n success = false;\r\n }\r\n while( success );\r\n \r\n return i;\r\n }",
"private Token advance() {\n if(!isAtEnd()) current++;\n return previous();\n }",
"private void skipBlankSpaces() {\n\t\twhile(currentIndex < data.length) {\n\t\t\tchar c = data[currentIndex];\n\t\t\tif(c == ' ' || c == '\\t' || c =='\\n' || c == '\\r') {\n\t\t\t\tcurrentIndex++;\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}",
"public String skipToken() {\n return this.skipToken;\n }",
"void skip(int n);",
"public char[] nextToken() {\n\t\t// read and return the next word of the document\n\t\tif(loc<words.length){\n\n\t\t\tString res=words[loc];\n\t\t\tloc++;\n\t\t\treturn res.toCharArray();\n\t\t}\n\n\t\t// or return null if it reaches the end of the document\n\t\treturn null;\n\t}",
"private int nextNonText( List content, int start) {\r\n if (start < 0) {\r\n start = 0;\r\n }\r\n\r\n int index = start;\r\n int size = content.size();\r\n while( index < size) {\r\n if ( !(content.get( index) instanceof Text)) {\r\n return index;\r\n }\r\n index++;\r\n }\r\n return size;\r\n }",
"private int skipTrialingWhite( List content, int start) {\r\n int size = content.size();\r\n if (start > size) {\r\n start = size;\r\n }\r\n\r\n int index = start;\r\n if (currentFormat.trimAllWhite\r\n || currentFormat.textNormalize\r\n || currentFormat.textTrim) {\r\n while( index >= 0) {\r\n if ( !isAllWhitespace( content.get(index - 1)))\r\n break;\r\n --index;\r\n }\r\n }\r\n return index;\r\n }",
"public void moveFromHandToStartOfWord() {\n\t\t//check letters in hand\n\t\tif(hand.size() == 0) {\n\t\t\treturn;\n\t\t}\n\t\t// remove letter from hand\n\t\tLetter temp = hand.leftmost;\n\t\thand.remove();\n\t\ttemp.next = null;\n\n\t\t// add letter to start of word\n\t\tword.addToStart(temp);\n\t}",
"private void extendedNext() {\n\t\twhile (currentIndex < data.length\n\t\t\t\t&& Character.isWhitespace(data[currentIndex])) {\n\t\t\tcurrentIndex++;\n\t\t\tcontinue;\n\t\t} // we arw now on first non wmpty space\n\t\tif (data.length <= currentIndex) {\n\t\t\ttoken = new Token(TokenType.EOF, null); // null reference\n\t\t\treturn;\n\t\t}\n\t\tstart = currentIndex;\n\t\t// System.out.print(data);\n\t\t// System.out.println(\" \"+data[start]);;\n\t\tswitch (data[currentIndex]) {\n\t\tcase '@':\n\t\t\tcurrentIndex++;\n\t\t\tcreateFunctName();\n\t\t\treturn;\n\t\tcase '\"':// string\n\t\t\tcreateString();// \"\" are left\n\t\t\treturn;\n\t\tcase '*':\n\t\tcase '+':\n\t\tcase '/':\n\t\tcase '^':\n\t\t\ttoken = new Token(TokenType.Operator, data[currentIndex++]);\n\t\t\tbreak;\n\t\tcase '$':\n\t\t\tString value = \"\";\n\t\t\tif (currentIndex + 1 < data.length && data[currentIndex] == '$'\n\t\t\t\t\t&& data[currentIndex + 1] == '}') {\n\t\t\t\tvalue += data[currentIndex++];\n\t\t\t\tvalue += data[currentIndex++];\n\t\t\t\ttoken = new Token(TokenType.WORD, value);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase '=':\n\t\t\ttoken = new Token(TokenType.Name,\n\t\t\t\t\tString.valueOf(data[currentIndex++]));\n\t\t\treturn;\n\t\tcase '-':\n\t\t\tif (currentIndex + 1 >= data.length\n\t\t\t\t\t|| !Character.isDigit(data[currentIndex + 1])) {\n\t\t\t\ttoken = new Token(TokenType.Operator, data[currentIndex++]);\n\t\t\t\tbreak;\n\t\t\t}\n\t\tdefault:\n\t\t\t// if we get here,after - is definitely a number\n\t\t\tif (data[currentIndex] == '-'\n\t\t\t\t\t|| Character.isDigit(data[currentIndex])) {\n\t\t\t\t// if its decimal number ,it must starts with 0\n\t\t\t\tcreateNumber();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (Character.isLetter(data[currentIndex])) {\n\t\t\t\tvalue = name();\n\t\t\t\ttoken = new Token(TokenType.Name, value);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthrow new LexerException(\n\t\t\t\t\t\"No miningful tag starts with \" + data[currentIndex]);\n\t\t\t// createWord();\n\n\t\t}\n\t}",
"private int skipWhitespace() {\n int prev = '\\n';\n while (position < length) {\n int c = data.charAt(position);\n switch (c) {\n case '\\t': case ' ':\n prev = c;\n position++;\n break;\n case '\\n':\n // handle \\r\\n\n if (prev != '\\r') {\n lineNumber++;\n }\n prev = c;\n position++;\n break;\n case '\\r':\n prev = c;\n position++;\n lineNumber++;\n break;\n default:\n return prev;\n }\n }\n return prev;\n }",
"public boolean skip() {\n return skip;\n }",
"public boolean skip(String search, boolean ignoreCase) {\n try {\n return StreamUtils.skip(buffer, search, ignoreCase);\n } catch (IOException ioe) {\n return false;\n }\n }",
"public void skip(int steps)\n {\n _index = (_index + steps) % _pattern.length;\n }",
"public void advance() {\r\n this.command = in.nextLine();\r\n }",
"protected void readAhead() {\n if (! reader.hasNext()) {\n this.nextLine = null;\n } else {\n this.nextLine = reader.next();\n while (this.nextLine != null && this.nextLine.isEmpty() && reader.hasNext())\n this.nextLine = reader.next();\n }\n }",
"@Override\n public String nextString() {\n last = (last + 1) % str.length;\n return str[last];\n }",
"public Iterator<String> words();",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n //Ask\n System.out.print(\"Enter a word:\");\n //assign\n String word = scanner.next();\n\n int l = word.length();\n System.out.println(\"Length:\" + l);\n int i = 0;\n boolean shouldContinue = true;\n\n while (shouldContinue == true) {\n\n if (word.charAt(i) == 'a') {\n System.out.println(\"The First vowel was:\" + \"a\");\n shouldContinue = false;\n }\n if (word.charAt(i) == 'e') {\n System.out.println(\"The First vowel was:\" + \"e\");\n shouldContinue = false;\n }\n if (word.charAt(i) == 'i') {\n System.out.println(\"The First vowel was:\" + \"i\");\n shouldContinue = false;\n }\n if (word.charAt(i) == 'o') {\n System.out.println(\"The First vowel was:\" + \"o\");\n shouldContinue = false;\n }\n if (word.charAt(i) == 'u') {\n System.out.println(\"The First vowel was:\" + \"u\");\n shouldContinue = false;\n }\n i++;\n\n }\n\n System.out.println(\"Your word was:\" + word);\n }",
"public static void breakAndContinue() {\n char[] breakfast = {'b', 'r', 'e', 'a', 'k', 'f', 'a', 's', 't'};\n\n // In our world, the letter k has been outlawed. As a result, we have to\n // go through all words and sound the alarm for anything that has a k.\n // This character array containing the word breakfast will serve as our practice.\n for (int i = 0; i < breakfast.length; i++) {\n if (breakfast[i] == 'k') {\n System.out.println(\"Sound the alarm, we're in the danger zone!\");\n break;\n } else {\n System.out.println(\"So far so good...\");\n }\n }\n // You should notice that our code runs, but the moment we sound the alarm,\n // we're no longer printing out \"So far so good...\". This is because the\n // break statement is effectively a panic button, ending the loop no matter\n // the progress you've made.\n System.out.println(\"\\n\");\n\n // In this loop, we'll go through and print out the new word without the 'k'\n // and also print the length of that word using the continue statement.\n String newWord = \"\";\n int counter = 0;\n for (int i = 0; i < breakfast.length; i++) {\n if (breakfast[i] == 'k') {\n continue; // Continue will tell our code to go back to the top (where we i++)\n }\n newWord += breakfast[i];\n counter++;\n }\n System.out.println(newWord + \" is \" + counter + \" letters long.\");\n }",
"public String readNextText(final String name) {\r\n\t\tfinal StringBuilder result = new StringBuilder();\r\n\t\treturn result.toString();\r\n\t}",
"public void skip(int n)\n {\n position += n;\n }",
"private void wordBreakRecur(String word, String result) {\n\t\tint size = word.length();\n\n\t\tfor (int i = 1; i <= size; i++) {\n\t\t\tString prefix = word.substring(0, i);\n\n\t\t\tif (dictionaryContains(prefix)) {\n\t\t\t\tif (i == size) {\n\t\t\t\t\tresult += prefix;\n\t\t\t\t\tSystem.out.println(result);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\twordBreakRecur(word.substring(i), result + prefix + \" \");\n\t\t\t}\n\t\t}\n\t}",
"public void skipGram(int i,List<VocabWord> sentence, int b,AtomicLong nextRandom) {\n final VocabWord word = sentence.get(i);\n if(word == null || sentence.isEmpty())\n return;\n\n int end = window * 2 + 1 - b;\n\n for(int a = b; a < end; a++) {\n if(a != window) {\n int c = i - window + a;\n if(c >= 0 && c < sentence.size()) {\n VocabWord lastWord = sentence.get(c);\n iterate(word,lastWord,nextRandom);\n }\n }\n }\n\n }",
"private Token basicNextWordToken() {\n\t\t \n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\twhile(currentIndex < data.length) {\n\t\t\t\t\n\t\t\tif( Character.isLetter(data[currentIndex]) ) {\n\t\t\t\tsb.append(data[currentIndex]);\n\t\t\t\t\n\t\t\t} else if (data[currentIndex] == '\\\\') {\n\t\t\t\t\t\n\t\t\t\t//the following condition is here to ensure that the '\\' char is\n\t\t\t\t//not the last element in the data array, or that the char after\n\t\t\t\t//the '\\' is not a letter because that is the invalid escape\n\t\t\t\tif(currentIndex + 1 >= data.length || \n\t\t\t\t\t\tCharacter.isLetter(data[currentIndex + 1])) {\n\t\t\t\t\t\n\t\t\t\t\tthrow new LexerException(\"Invalid escape sequence!\");\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcurrentIndex++;\n\t\t\t\tsb.append(data[currentIndex]);\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t}\n\t\t\tcurrentIndex++;\n\t\t}\n\t\t\n\t\treturn new Token(TokenType.WORD, sb.toString());\n\t }",
"public final T next()\n {\n return skip(1);\n }",
"public String nextTo(String str) {\n char next;\n AppMethodBeat.m2504i(50194);\n StringBuffer stringBuffer = new StringBuffer();\n while (true) {\n next = next();\n if (str.indexOf(next) < 0 && next != 0 && next != 10 && next != 13) {\n stringBuffer.append(next);\n } else if (next != 0) {\n back();\n }\n }\n if (next != 0) {\n }\n String trim = stringBuffer.toString().trim();\n AppMethodBeat.m2505o(50194);\n return trim;\n }",
"public boolean containsTextThenSkip(String text) {\n int index = this.html.indexOf(text, this.position);\n if (index == -1) return false;\n this.position = index + text.length();\n return true;\n }",
"private Token nextTokenWithWhites() throws IOException {\n\t\tString lexemaActual = \"\";\n\t\t// Si hay lexemas en el buffer, leemos de ahi\n\t\tif (!bufferLocal.esVacia()) {\n\t\t\treturn bufferLocal.extraer();\n\t\t} else {\n\t\t\t// Si no, leemos del Stream\t\t\t\t\t\n\t\t\tint lexema = tokens.nextToken();\n\t\t\tswitch (lexema) {\n\t\t\t\tcase StreamTokenizer.TT_WORD: \n\t\t\t\t\tlexemaActual = tokens.sval; \n\t\t\t\t\tbreak;\n\t\t\t\tcase StreamTokenizer.TT_EOF:\n\t\t\t\t\tlexemaActual = \"fin\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tlexemaActual = String.valueOf((char)tokens.ttype);\n\t\t\t\t\tbreak;\n\t\t\t}\t\t\t\n\t\t\t// Sumamos una linea en caso de haber salto de linea\n\t\t\tif (lexemaActual.equals(\"\\n\")) \n\t\t\t\tnumeroLinea++;\t\t\t\n\t\t}\n\t\treturn new Token(lexemaActual,this.numeroLinea);\n\t}",
"@Override\n public String next() {\n assert(this.hasNext());\n Element currParagraphElement = this.paragraphs.get(this.paragraphIndex);\n String currParagraph = currParagraphElement.wholeText();\n\n ++this.paragraphIndex;\n\n return currParagraph;\n }",
"private boolean skipSpaceChars() {\r\n \t\tint ch;\r\n \t\twhile ((ch = readCharBackward()) != -1) {\r\n \t\t\tif (!Character.isSpaceChar(ch)) {\r\n \t\t\t\treleaseChar();\r\n \t\t\t\tbreak;\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn true;\r\n \t}",
"private void challengeHandler() {\n String word = txtWord.getText().toString();\n String nextWord;\n if (word.length() >= 4 && dictionary.isWord(word)){\n endGame(true, word + \" is a valid word\");\n } else {\n nextWord = dictionary.getAnyWordStartingWith(word);\n if (nextWord != null){\n endGame(false, word + \" is a prefix of word \\\"\" + nextWord + \"\\\"\");\n } else {\n endGame(true, word + \" is not a prefix of any word\");\n }\n }\n }",
"private static void\n eatWhite(ParseState state)\n {\n while(state.pos < state.data.length() && state.data.charAt(state.pos) == ' ')\n {\n ++state.pos;\n }\n }",
"String getNext();",
"String getNext();",
"@SuppressWarnings(\"unchecked\")\n public Q skip(int skip) {\n this.skip = skip > 0 ? skip : this.skip;\n return (Q) this;\n }",
"public void readWordRightToLeft(String word) {\n }",
"private int skipLeadingWhite( List content, int start) {\r\n if (start < 0) {\r\n start = 0;\r\n }\r\n\r\n int index = start;\r\n int size = content.size();\r\n if (currentFormat.trimAllWhite\r\n || currentFormat.textNormalize\r\n || currentFormat.textTrim) {\r\n while( index < size) {\r\n if ( !isAllWhitespace( content.get(index))) {\r\n return index;\r\n }\r\n index++;\r\n }\r\n }\r\n return index;\r\n }",
"private void checkForSeparatedNode(ITextState textState, IWord word) {\n if (word.getPosTag() != POSTag.FOREIGN_WORD && CommonUtilities.containsSeparator(word.getText())) {\n textState.addNounMapping(word, MappingKind.NAME, this, probability);\n }\n }",
"public String next() {\n return words[rng.nextInt(words.length)];\n }",
"public void skipPrint()\n {\n skipPrint(0);\n }",
"void getNextField () \n\t\t\tthrows IOException, FileNotFoundException {\n \n\t\tcontext.field.setLength(0);\n\t\twhile ((! htmlChar.endsField) && (! atEnd)) {\n\t\t\tgetNextWord();\n\t\t\tif (context.word.length() > 0) {\n\t\t\t\tcontext.field.append (context.word.toString());\n\t\t\t}\n\t\t} \n \n // remove multiple trailing spaces from field\n // if (! context.preformatted) {\n while (context.field.length() > 1\n && context.field.charAt (context.field.length() - 1) == ' '\n && context.field.charAt (context.field.length() - 2) == ' ') {\n context.field.deleteCharAt (context.field.length() - 1);\n }\n // }\n\t}",
"protected Word getNext()\n/* */ {\n/* 58 */ Word token = null;\n/* 59 */ if (this.lexer == null) {\n/* 60 */ return token;\n/* */ }\n/* */ try {\n/* 63 */ token = this.lexer.next();\n/* 64 */ while (token == ArabicLexer.crValue) {\n/* 65 */ if (this.eolIsSignificant) {\n/* 66 */ return token;\n/* */ }\n/* 68 */ token = this.lexer.next();\n/* */ }\n/* */ }\n/* */ catch (IOException e) {}\n/* */ \n/* */ \n/* 74 */ return token;\n/* */ }",
"public static int skipWhitespace(String s, int start) {\n\t\tint result = 0;\n\t\tfor (int i = start; i < s.length(); i++) {\n\t\t\tchar c = s.charAt(i);\n\t\t\tif (!Character.isWhitespace(c))\n\t\t\t\treturn result;\n\t\t\tresult++;\n\t\t}\n\t\treturn result;\n\t}",
"private void nextKwId() {\n\t\tint old=pos;\n\t\tmany(letters);\n\t\tmany(legits);\n\t\tString lexeme=program.substring(old,pos);\n\t\ttoken=new Token((keywords.contains(lexeme) ? lexeme : \"id\"),lexeme);\n }",
"public void skipToNext() {\n try {\n mSessionBinder.next(mContext.getPackageName(), mCbStub);\n } catch (RemoteException e) {\n Log.wtf(TAG, \"Error calling next.\", e);\n }\n }",
"public static int skipWS (String text, int posn, int end) {\n\t\twhile ((posn < end) && Character.isWhitespace(text.charAt(posn))) posn++;\n\t\treturn posn;\n\t}",
"public void skipTag(String tag) throws ParseException {\n goToTag(tag);\n movePositionToEndOfTag(tag);\n }",
"@Test\n public void noSpacesBetweenKeywordsTest() {\n tester.yields(\"LaLaLaLaLaaaLi\", lala.EXPRESSION);\n }",
"@Override\n\t\tpublic String next() {\n\n\t\t\tString token = super.next();\n\n\t\t\twhile (isJavaDocToken(token))\n\t\t\t\ttoken = super.next();\n\n\t\t\treturn token;\n\t\t}",
"public void skip(boolean b) {\n skip = b;\n }",
"public static void main(String[] args) {\n\r\n\r\n Scanner scan = new Scanner(System.in);\r\n String word = scan.next();\r\n String separator = scan.next();\r\n int count = scan.nextInt();\r\n\r\n\r\n String name = \"\";\r\n for (int i = 1; i <= count; i++) {\r\n\r\n name = name +word + separator ;\r\n\r\n if (i == count) {\r\n\r\n System.out.print(name.substring(0, name.length()-separator.length() ));\r\n } else {\r\n continue;\r\n }\r\n\r\n }\r\n }",
"public void goToNextTag(String tag) throws ParseException {\n // Get the text inside the column\n String open = \"<\" + tag;\n int pos = html.indexOf(open, position + 1);\n if (pos == -1) {\n throw new ParseException(\"Cannot skip tag because open \" + tag + \" doesnt exist.\", position);\n }\n position = pos;\n }",
"private char peekFurther(int distance) {\n if (current + distance >= source.length()) {\n return '\\0';\n }\n\n return source.charAt(current + distance);\n }",
"java.lang.String getWord();",
"public static void keepGoing() {\n System.out.println(\"Would you like to continue? \");\n char contin= sc.next().charAt(0); \n }",
"void skip(int index) throws NoSuchRecordException;",
"public void setSkip(boolean skip) {\n this.skip = skip;\n }",
"char skipSpaces () {\n char c = getChar ();\n while (c == ' ' || c == '\\t' || c == '\\n' || c == '\\r') {\n if (c == '\\n') { m_nbLines++; }\n c = getNextChar ();\n }\n return c;\n }",
"private int readSkipWs() throws IOException {\n for (;;) {\n int c = _in.read();\n if (c == -1 || c > ' ') {\n return c;\n }\n }\n }",
"public void advance() {\n if( mMatches.hasNext() ) {\n setCurrent( mMatches.next() );\n }\n }",
"private void forward() {\n index++;\n column++;\n if(column == linecount + 1) {\n line++;\n column = 0;\n linecount = content.getColumnCount(line);\n }\n }",
"public int skipText(String... textArr) throws ParseException {\n int index, i;\n String text;\n for (i = 0; i < textArr.length; i++) {\n text = textArr[i];\n index = html.indexOf(text, position);\n if (index == -1) {\n throw new ParseException(\"Cannot find \" + text + \" in html.\", position);\n }\n position = index + text.length();\n }\n return position;\n }"
]
| [
"0.65024865",
"0.6325893",
"0.6225052",
"0.6135569",
"0.5995545",
"0.5961962",
"0.5953523",
"0.5948891",
"0.59292346",
"0.59116185",
"0.5823205",
"0.5808325",
"0.5797231",
"0.5797231",
"0.5794901",
"0.5775014",
"0.5765143",
"0.5727727",
"0.5695091",
"0.5687633",
"0.56637454",
"0.56606436",
"0.56296015",
"0.5618606",
"0.56105787",
"0.5607842",
"0.56062603",
"0.55952513",
"0.5594277",
"0.55855983",
"0.5579627",
"0.5569982",
"0.55672187",
"0.5559194",
"0.555124",
"0.55120474",
"0.5508514",
"0.5502222",
"0.54912436",
"0.5474405",
"0.54731226",
"0.54709023",
"0.54699534",
"0.54581404",
"0.5452678",
"0.54309094",
"0.54241437",
"0.54182416",
"0.5391887",
"0.5387342",
"0.5383357",
"0.5377759",
"0.5370935",
"0.53646594",
"0.53513795",
"0.53404844",
"0.5336551",
"0.53129494",
"0.5312381",
"0.531238",
"0.5302724",
"0.5296729",
"0.52958643",
"0.5290963",
"0.5253837",
"0.5252146",
"0.5243893",
"0.5241571",
"0.52389514",
"0.5238567",
"0.5237766",
"0.523371",
"0.523371",
"0.52277553",
"0.5227612",
"0.52272534",
"0.5226044",
"0.52224284",
"0.52211964",
"0.52196044",
"0.521924",
"0.5210788",
"0.5210772",
"0.5202402",
"0.51985395",
"0.5192557",
"0.5189397",
"0.51881546",
"0.5184622",
"0.5182551",
"0.5179015",
"0.51778746",
"0.51693356",
"0.51641095",
"0.5160028",
"0.515892",
"0.51569283",
"0.51555485",
"0.51553667",
"0.5153806",
"0.51536876"
]
| 0.0 | -1 |
Convert String to a clause Currently only working for ImplicationClause!!! | public static ArrayDeque<String> parseSingle (String inputString) {
//using ArrayDeque here since it does everything and is flexible. Could do a linkedList though..?
ArrayDeque inputQueue = new ArrayDeque<String>();; //input queue. not sure if i really need this
ArrayDeque outputQueue = new ArrayDeque<String>();//output queue
ArrayDeque operatorStack = new ArrayDeque<String>(); //operator stack
//remove spaces
inputString = inputString.replaceAll("\\s+", "");
String inputArray[] = inputString.split("(?<==>|&|~|\\/|<=>)|(?==>|&|~|\\/|<=>)"); //TODO build this regex dynamically from Connective enum
for (String inputElement: inputArray) {
inputQueue.add(inputElement);
}
//convert to rpn form
//don't worry about parentheses, do later as part of research
while (!inputQueue.isEmpty()) {
//check if element is a operator
if (isOperator((String)inputQueue.peekFirst())) {
//add operator to stack if empty
if (operatorStack.isEmpty()) {
operatorStack.addLast(inputQueue.pollFirst());
//while there is an operator on the operatorStack with greater precedence than the current pop that one
} else if (compare((String)inputQueue.peekFirst(), (String)operatorStack.peekLast()) <= 0) {
outputQueue.add(operatorStack.pollLast());
continue; //need to restart loop since may be operatorStack.size() > 1
} else {
operatorStack.addLast(inputQueue.pollFirst());
}
//operands
} else {
outputQueue.add(inputQueue.pollFirst());
}
}
//once inputQueue is empty need to finish draining the operators
while (!operatorStack.isEmpty()) {
outputQueue.add(operatorStack.pollLast());
}
//TODO: maybe convert proposition symbol to Horn form
return (outputQueue);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String convertStatement (String oraStatement);",
"public String convertStatement (String oraStatement);",
"GeneralClause createGeneralClause();",
"static @NotNull StandardMethodContract fromText(@NotNull String clause) {\n try {\n return fromText(clause, 0, clause);\n }\n catch (ParseException e) {\n throw new RuntimeException(e);\n }\n }",
"String getWhereClause();",
"SQLCaseOperand createSQLCaseOperand();",
"public String visit(Clause n, String s) {\n n.f0.accept(this, null);\n return null;\n }",
"AnalyticClause createAnalyticClause();",
"public Expression determine(String s);",
"String toSql();",
"public IAverage whereClause(String whereClause);",
"private static final String toExpr(String s) {\n\t\tchar[] b = s.toCharArray();\n\t\tint i;\n\t\tfor (i=0; (i<b.length) && Character.isLetter(b[i]); i++) ;\n\t\tif (i<b.length) return(\"(\" + s + \")\");\n\t\treturn(s) ;\t\t// Just letters\n\t}",
"private static String adqlCharLiteral( String txt ) {\n return \"'\" + txt.replaceAll( \"'\", \"''\" ) + \"'\";\n }",
"private Clause make(Literal... e) {\n Clause c = new Clause();\n for (int i = 0; i < e.length; ++i) {\n c = c.add(e[i]);\n }\n return c;\n }",
"public GimmehStatement(String input) {\n this.input = input;\n }",
"public static MatHang_DTO selectCondition(String string) throws ClassNotFoundException, SQLException {\n\t\treturn dal.selectCondition(string);\n\t}",
"String getInsertDataLiteralQuery(String graph, String subject, String predicate, String object, String datatype);",
"public void buildPredicate(String s){\n\t\tint i = s.indexOf(\"(\");\n\t\tif(i>0){\n\t\t\tname = s.substring(0, i);\n\t\t\tStringTokenizer st = new StringTokenizer(s.substring(i),\"(),\");\n\t\t\twhile(st.hasMoreTokens()){\n\t\t\t\tString tok = st.nextToken();\n\t\t\t\tVarTerm vt = new VarTerm(tok);\n\t\t\t\taddTerm(vt);\n\t\t\t}\n\t\t}\n\t}",
"protected static MQLClause parseMQL(final String str, final String setmqlbits, final String mqlbits, final SelectMQLState startState) throws MQLException\r\n\t\t{\r\n\t\t\tif(cachedClauses.containsKey(mqlbits))\r\n\t\t\t\treturn cachedClauses.get(mqlbits);\r\n\t\t\tfinal MQLClause clause=new MQLClause();\r\n\t\t\tclause.parseInternalMQL(str, setmqlbits, mqlbits,startState);\r\n\t\t\tif(!CMSecurity.isDisabled(CMSecurity.DisFlag.MQLCACHE))\r\n\t\t\t\tcachedClauses.put(mqlbits, clause);\r\n\t\t\treturn clause;\r\n\t\t}",
"private void parseInternalMQL(final String str, final String setmqlbits, final String mqlbits, SelectMQLState state) throws MQLException\r\n\t\t{\r\n\t\t\tthis.mql=str;\r\n\t\t\tfinal StringBuilder curr=new StringBuilder(\"\");\r\n\t\t\tint pdepth=0;\r\n\t\t\tWhereClause wheres = new WhereClause();\r\n\t\t\tthis.wheres=wheres;\r\n\t\t\tString[] varer = new String[2];\r\n\t\t\tWhereComp\twcomp = new WhereComp();\r\n\t\t\tfor(int i=0;i<=mqlbits.length();i++)\r\n\t\t\t{\r\n\t\t\t\tfinal char c=(i==mqlbits.length())?' ':mqlbits.charAt(i);\r\n\t\t\t\tswitch(state)\r\n\t\t\t\t{\r\n\t\t\t\tcase STATE_SELECT0: // select state\r\n\t\t\t\t{\r\n\t\t\t\t\tif(Character.isWhitespace(c))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(curr.length()>0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(isTermProperlyEnded(curr))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t// we just got a name symbol, so go to state 1 and expect AS or FROM or ,\r\n\t\t\t\t\t\t\t\twhat.add(new WhatBit(WhereComp.parseHS(curr.toString()),curr.toString()));\r\n\t\t\t\t\t\t\t\tstate=SelectMQLState.STATE_SELECT1;\r\n\t\t\t\t\t\t\t\tcurr.setLength(0);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\tcurr.append(c);\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\tif(c==',')\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(curr.length()>0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(isTermProperlyEnded(curr))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\twhat.add(new WhatBit(WhereComp.parseHS(curr.toString()),curr.toString()));\r\n\t\t\t\t\t\t\t\tcurr.setLength(0);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\tcurr.append(c);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tthrow new MQLException(\"Unexpected , in Malformed mql: \"+str);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tcurr.append(c);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase STATE_SELECT1: // expect AS or FROM or ,\r\n\t\t\t\t{\r\n\t\t\t\t\tif(Character.isWhitespace(c))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(curr.length()>0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(curr.toString().equals(\"FROM\"))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tcurr.setLength(0);\r\n\t\t\t\t\t\t\t\tstate=SelectMQLState.STATE_FROM0;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tif(curr.toString().equals(\"AS\"))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tcurr.setLength(0);\r\n\t\t\t\t\t\t\t\tstate=SelectMQLState.STATE_AS0;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\tthrow new MQLException(\"Unexpected select string in Malformed mql: \"+str);\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\tif(c==',')\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(curr.length()==0)\r\n\t\t\t\t\t\t\tstate=SelectMQLState.STATE_SELECT0;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tthrow new MQLException(\"Unexpected , in Malformed mql: \"+str);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tcurr.append(c);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase STATE_UPDATE0: // update what start\r\n\t\t\t\t{\r\n\t\t\t\t\tif(Character.isWhitespace(c))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(curr.length()>0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(isTermProperlyEnded(curr))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t// we just got the update set\r\n\t\t\t\t\t\t\t\tupdate=cleanTermQuotes(curr);\r\n\t\t\t\t\t\t\t\tstate=SelectMQLState.STATE_UPDATE1;\r\n\t\t\t\t\t\t\t\tcurr.setLength(0);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\tcurr.append(c);\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\tcurr.append(c);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase STATE_UPDATE1: // update set\r\n\t\t\t\t{\r\n\t\t\t\t\tif(Character.isWhitespace(c))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(curr.length()>0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(isTermProperlyEnded(curr))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(!curr.toString().equalsIgnoreCase(\"SET\"))\r\n\t\t\t\t\t\t\t\t\tthrow new MQLException(\"Expected SET (not '\"+curr+\"') in Malformed mql: \"+str);\r\n\t\t\t\t\t\t\t\tstate=SelectMQLState.STATE_SET0;\r\n\t\t\t\t\t\t\t\tcurr.setLength(0);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\tcurr.append(c);\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\tcurr.append(c);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase STATE_SET1: // expect =\r\n\t\t\t\t{\r\n\t\t\t\t\tif(c=='=')\r\n\t\t\t\t\t\tstate=SelectMQLState.STATE_SET2;\r\n\t\t\t\t\telse\r\n\t\t\t\t\tif(!Character.isWhitespace(c))\r\n\t\t\t\t\t\tthrow new MQLException(\"Expected = (not '\"+c+\"') in Malformed mql: \"+str);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase STATE_SET0: // get the key\r\n\t\t\t\t{\r\n\t\t\t\t\tif(Character.isWhitespace(c))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(curr.length()>0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(isTermProperlyEnded(curr))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tvarer[0] = curr.toString().toUpperCase().trim();\r\n\t\t\t\t\t\t\t\tstate=SelectMQLState.STATE_SET1;\r\n\t\t\t\t\t\t\t\tcurr.setLength(0);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\tcurr.append(c);\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\tif((curr.length()>0)&&(c=='='))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(isTermProperlyEnded(curr))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tvarer[0] = curr.toString().toUpperCase().trim();\r\n\t\t\t\t\t\t\tstate=SelectMQLState.STATE_SET2;\r\n\t\t\t\t\t\t\tcurr.setLength(0);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tcurr.append(c);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\tif((curr.length()==0)&&((!Character.isLetter(c))))\r\n\t\t\t\t\t\tthrow new MQLException(\"Expected KEY (not '\"+c+\"') in Malformed mql: \"+str);\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tcurr.append(c);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase STATE_SET2: // get the new value\r\n\t\t\t\t{\r\n\t\t\t\t\tfinal char lc=(i>=setmqlbits.length())?' ':setmqlbits.charAt(i);\r\n\t\t\t\t\tif(Character.isWhitespace(c)\r\n\t\t\t\t\t||(i==mqlbits.length()-1)\r\n\t\t\t\t\t||((c=='\\'')||(c=='\\\"')||(c=='`')))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(curr.length()>0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(isTermProperlyEnded(curr))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(!Character.isWhitespace(lc))\r\n\t\t\t\t\t\t\t\t\tcurr.append(lc);\r\n\t\t\t\t\t\t\t\tString currStr = curr.toString().trim();\r\n\t\t\t\t\t\t\t\tfinal int x = currStr.toLowerCase().indexOf(\"select:\");\r\n\t\t\t\t\t\t\t\tif((x==0)||((x==1)&&(!Character.isLetter(curr.charAt(0)))))\r\n\t\t\t\t\t\t\t\t\tcurrStr = currStr.toUpperCase();\r\n\t\t\t\t\t\t\t\tvarer[1] = currStr;\r\n\t\t\t\t\t\t\t\tsets.add(varer);\r\n\t\t\t\t\t\t\t\tvarer = new String[2];\r\n\t\t\t\t\t\t\t\tstate=SelectMQLState.STATE_EXPECTCOMMAORWHEREOREND;\r\n\t\t\t\t\t\t\t\tcurr.setLength(0);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\tcurr.append(lc);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\tif(!Character.isWhitespace(lc))\r\n\t\t\t\t\t\t\tcurr.append(lc);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tcurr.append(lc);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase STATE_EXPECTCOMMAORWHEREOREND: // expect comma, where, or valid end\r\n\t\t\t\t{\r\n\t\t\t\t\tif(Character.isWhitespace(c)||(c==',')||(c==';'))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(curr.length()>0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(c==',')\r\n\t\t\t\t\t\t\t\tthrow new MQLException(\"Expected '\"+curr.toString()+\"' in Malformed mql: \"+str);\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tif(curr.toString().equals(\";\"))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tcurr.setLength(0);\r\n\t\t\t\t\t\t\t\tstate=SelectMQLState.STATE_EXPECTNOTHING;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tif(!curr.toString().equals(\"WHERE\"))\r\n\t\t\t\t\t\t\t\tthrow new MQLException(\"Expected WHERE in Malformed mql: \"+str);\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\tcurr.setLength(0);\r\n\t\t\t\t\t\t\t\tstate=SelectMQLState.STATE_WHERE0;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\tif(c==',')\r\n\t\t\t\t\t\t\tstate=SelectMQLState.STATE_SET0;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tcurr.append(c);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase STATE_AS0: // as name\r\n\t\t\t\t{\r\n\t\t\t\t\tif(Character.isWhitespace(c)\r\n\t\t\t\t\t||(c==','))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(curr.length()>0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(isTermProperlyEnded(curr))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(curr.toString().equals(\"FROM\"))\r\n\t\t\t\t\t\t\t\t\tthrow new MQLException(\"Unexpected FROM in Malformed mql: \"+str);\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\tif(curr.toString().equals(\"AS\"))\r\n\t\t\t\t\t\t\t\t\tthrow new MQLException(\"Unexpected AS in Malformed mql: \"+str);\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tstate=SelectMQLState.STATE_AS1; // expect from or , ONLY\r\n\t\t\t\t\t\t\t\t\twhat.get(what.size()-1).second = curr.toString();\r\n\t\t\t\t\t\t\t\t\tcurr.setLength(0);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\tcurr.append(c);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\tif(c==',')\r\n\t\t\t\t\t\t\tthrow new MQLException(\"Unexpected , in Malformed mql: \"+str);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tcurr.append(c);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase STATE_AS1: // expect FROM or , only\r\n\t\t\t\t{\r\n\t\t\t\t\tif(Character.isWhitespace(c))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(curr.length()>0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(curr.toString().equals(\"FROM\"))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tcurr.setLength(0);\r\n\t\t\t\t\t\t\t\tstate=SelectMQLState.STATE_FROM0;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\tthrow new MQLException(\"Unexpected name string in Malformed mql: \"+str);\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\tif(c==',')\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(curr.length()==0)\r\n\t\t\t\t\t\t\tstate=SelectMQLState.STATE_SELECT0;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tthrow new MQLException(\"Unexpected , in Malformed mql: \"+str);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tcurr.append(c);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase STATE_FROM0: // from state\r\n\t\t\t\t{\r\n\t\t\t\t\tif(Character.isWhitespace(c)||(c==','))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(curr.length()>0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(isTermProperlyEnded(curr))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(curr.toString().equals(\"WHERE\"))\r\n\t\t\t\t\t\t\t\t\tthrow new MQLException(\"Unexpected WHERE in Malformed mql: \"+str);\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tfroms.add(WhereComp.parseHS(curr.toString()));\r\n\t\t\t\t\t\t\t\t\tcurr.setLength(0);\r\n\t\t\t\t\t\t\t\t\tif(c!=',')\r\n\t\t\t\t\t\t\t\t\t\tstate=SelectMQLState.STATE_EXPECTWHEREOREND; // now expect where\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\tcurr.append(c);\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\tif(c=='(')\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(curr.length()==0)\r\n\t\t\t\t\t\t\tstate=SelectMQLState.STATE_FROM1;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tthrow new MQLException(\"Unexpected ( in Malformed mql: \"+str);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tcurr.append(c);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase STATE_FROM1: // from () state\r\n\t\t\t\t{\r\n\t\t\t\t\tif(c=='(')\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tcurr.append(c);\r\n\t\t\t\t\t\tpdepth++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\tif(c==')')\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(pdepth==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tfroms.add(WhereComp.parseHS(curr.toString()));\r\n\t\t\t\t\t\t\tstate=SelectMQLState.STATE_EXPECTWHEREOREND; // expect where\r\n\t\t\t\t\t\t\tcurr.setLength(0);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tcurr.append(c);\r\n\t\t\t\t\t\t\tpdepth--;\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\tcurr.append(c);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase STATE_EXPECTWHEREOREND: // expect where clause\r\n\t\t\t\t{\r\n\t\t\t\t\tif(Character.isWhitespace(c)||(c==',')||(c==';'))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(curr.length()>0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(c==',')\r\n\t\t\t\t\t\t\t\tthrow new MQLException(\"Expected '\"+curr.toString()+\"' in Malformed mql: \"+str);\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tif(curr.toString().equals(\";\"))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tcurr.setLength(0);\r\n\t\t\t\t\t\t\t\tstate=SelectMQLState.STATE_EXPECTNOTHING;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tif(!curr.toString().equals(\"WHERE\"))\r\n\t\t\t\t\t\t\t\tthrow new MQLException(\"Expected WHERE in Malformed mql: \"+str);\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\tcurr.setLength(0);\r\n\t\t\t\t\t\t\t\tstate=SelectMQLState.STATE_WHERE0;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\tif(c==',')\r\n\t\t\t\t\t\t\tstate=SelectMQLState.STATE_FROM0;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tcurr.append(c);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase STATE_WHERE0: // initial where state\r\n\t\t\t\t{\r\n\t\t\t\t\tif(Character.isWhitespace(c)\r\n\t\t\t\t\t||(\"<>!=\".indexOf(c)>=0))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(curr.length()>0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(isTermProperlyEnded(curr))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\twcomp=new WhereComp();\r\n\t\t\t\t\t\t\t\tif((wheres.lhs!=null)\r\n\t\t\t\t\t\t\t\t||(wheres.parent!=null))\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tfinal WhereClause newClause = new WhereClause();\r\n\t\t\t\t\t\t\t\t\tnewClause.prev=wheres;\r\n\t\t\t\t\t\t\t\t\twheres.next=newClause;\r\n\t\t\t\t\t\t\t\t\twheres=newClause;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\twheres.lhs=wcomp;\r\n\t\t\t\t\t\t\t\twcomp.lhs = WhereComp.parseHS(curr.toString());\r\n\t\t\t\t\t\t\t\tcurr.setLength(0);\r\n\t\t\t\t\t\t\t\tif(!Character.isWhitespace(c))\r\n\t\t\t\t\t\t\t\t\tcurr.append(c);\r\n\t\t\t\t\t\t\t\tstate=SelectMQLState.STATE_WHERE1; // now expect comparator\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\tcurr.append(c);\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\tif(c=='(')\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(curr.length()==0)\r\n\t\t\t\t\t\t\tstate=SelectMQLState.STATE_WHEREEMBEDLEFT0;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tthrow new MQLException(\"Unexpected ( in Malformed mql: \"+str);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\tif(c==')')\r\n\t\t\t\t\t\tthrow new MQLException(\"Unexpected ) in Malformed mql: \"+str);\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tcurr.append(c);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase STATE_WHEREEMBEDLEFT0:\r\n\t\t\t\t{\r\n\t\t\t\t\tif(c=='(')\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(curr.length()==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tfinal WhereClause priorityClause = new WhereClause();\r\n\t\t\t\t\t\t\tif((wheres.lhs!=null)\r\n\t\t\t\t\t\t\t||(wheres.parent!=null)\r\n\t\t\t\t\t\t\t||(wheres.conn!=null))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tfinal WhereClause dummyClause = new WhereClause();\r\n\t\t\t\t\t\t\t\twheres.next=dummyClause;\r\n\t\t\t\t\t\t\t\tdummyClause.prev=wheres;\r\n\t\t\t\t\t\t\t\twheres=dummyClause;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tpriorityClause.child=wheres;\r\n\t\t\t\t\t\t\twheres.parent=priorityClause;\r\n\t\t\t\t\t\t\twheres=priorityClause;\r\n\t\t\t\t\t\t\ti--;\r\n\t\t\t\t\t\t\tstate=SelectMQLState.STATE_WHERE0; // expect lhs of a comp\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tcurr.append(c);\r\n\t\t\t\t\t\t\tpdepth++;\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\tif(c==')')\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(pdepth==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\twcomp=new WhereComp();\r\n\t\t\t\t\t\t\tif((wheres.lhs!=null)\r\n\t\t\t\t\t\t\t||(wheres.parent!=null)\r\n\t\t\t\t\t\t\t||(wheres.conn!=null))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tfinal WhereClause newClause = new WhereClause();\r\n\t\t\t\t\t\t\t\twheres.next=newClause;\r\n\t\t\t\t\t\t\t\tnewClause.prev=wheres;\r\n\t\t\t\t\t\t\t\twheres=newClause;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\twheres.lhs=wcomp;\r\n\t\t\t\t\t\t\twcomp.lhs = WhereComp.parseHS(curr.toString());\r\n\t\t\t\t\t\t\tstate=SelectMQLState.STATE_WHERE1; // expect connector or endofclause\r\n\t\t\t\t\t\t\tcurr.setLength(0);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tcurr.append(c);\r\n\t\t\t\t\t\t\tpdepth--;\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\tif(Character.isWhitespace(c) && (curr.length()==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\tcurr.append(c);\r\n\t\t\t\t\t\tif((curr.length()<8)\r\n\t\t\t\t\t\t&&(!\"SELECT:\".startsWith(curr.toString())))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tfinal WhereClause priorityClause = new WhereClause();\r\n\t\t\t\t\t\t\tif((wheres.lhs!=null)\r\n\t\t\t\t\t\t\t||(wheres.parent!=null)\r\n\t\t\t\t\t\t\t||(wheres.conn!=null))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tfinal WhereClause dummyClause = new WhereClause();\r\n\t\t\t\t\t\t\t\twheres.next=dummyClause;\r\n\t\t\t\t\t\t\t\tdummyClause.prev=wheres;\r\n\t\t\t\t\t\t\t\twheres=dummyClause;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tpriorityClause.child=wheres;\r\n\t\t\t\t\t\t\twheres.parent=priorityClause;\r\n\t\t\t\t\t\t\twheres=priorityClause;\r\n\t\t\t\t\t\t\ti=mqlbits.lastIndexOf('(',i);\r\n\t\t\t\t\t\t\tcurr.setLength(0);\r\n\t\t\t\t\t\t\tstate=SelectMQLState.STATE_WHERE0; // expect lhs of a comp\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase STATE_WHERE1: // expect comparator\r\n\t\t\t\t{\r\n\t\t\t\t\tif(curr.length()==0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(!Character.isWhitespace(c))\r\n\t\t\t\t\t\t\tcurr.append(c);\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\tboolean saveC = false;\r\n\t\t\t\t\t\tboolean done=false;\r\n\t\t\t\t\t\tif(\"<>!=\".indexOf(c)>=0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(\"<>!=\".indexOf(curr.charAt(0))>=0)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tcurr.append(c);\r\n\t\t\t\t\t\t\t\tdone=curr.length()>=2;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\tthrow new MQLException(\"Unexpected '\"+c+\"' in Malformed mql: \"+str);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\tif(!Character.isWhitespace(c))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(\"<>!=\".indexOf(curr.charAt(0))>=0)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tsaveC=true;\r\n\t\t\t\t\t\t\t\tdone=true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\tcurr.append(c);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tdone=true;\r\n\t\t\t\t\t\tif(done)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tswitch((curr.length()==0)?'\\0':curr.charAt(0))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tcase '=':\r\n\t\t\t\t\t\t\t\tif(curr.length()==1)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\twcomp.comp=WhereComparator.EQ;\r\n\t\t\t\t\t\t\t\t\tcurr.setLength(0);\r\n\t\t\t\t\t\t\t\t\tstate=SelectMQLState.STATE_WHERE2; // now expect RHS\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tswitch(curr.charAt(1))\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tcase '>':\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\twcomp.comp=WhereComparator.GTEQ;\r\n\t\t\t\t\t\t\t\t\t\tcurr.setLength(0);\r\n\t\t\t\t\t\t\t\t\t\tstate=SelectMQLState.STATE_WHERE2; // now expect RHS\r\n\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tcase '<':\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\twcomp.comp=WhereComparator.LTEQ;\r\n\t\t\t\t\t\t\t\t\t\tcurr.setLength(0);\r\n\t\t\t\t\t\t\t\t\t\tstate=SelectMQLState.STATE_WHERE2; // now expect RHS\r\n\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\t\t\t\tthrow new MQLException(\"Unexpected '\"+curr+\"' in Malformed mql: \"+str);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase '!':\r\n\t\t\t\t\t\t\t\tif(curr.toString().equals(\"!=\"))\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\twcomp.comp=WhereComparator.NEQ;\r\n\t\t\t\t\t\t\t\t\tcurr.setLength(0);\r\n\t\t\t\t\t\t\t\t\tstate=SelectMQLState.STATE_WHERE2; // now expect RHS\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\tthrow new MQLException(\"Unexpected '\"+curr+\"' in Malformed mql: \"+str);\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase '<':\r\n\t\t\t\t\t\t\t\tif(curr.length()==1)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\twcomp.comp=WhereComparator.LT;\r\n\t\t\t\t\t\t\t\t\tcurr.setLength(0);\r\n\t\t\t\t\t\t\t\t\tstate=SelectMQLState.STATE_WHERE2; // now expect RHS\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tswitch(curr.charAt(1))\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tcase '>':\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\twcomp.comp=WhereComparator.NEQ;\r\n\t\t\t\t\t\t\t\t\t\tcurr.setLength(0);\r\n\t\t\t\t\t\t\t\t\t\tstate=SelectMQLState.STATE_WHERE2; // now expect RHS\r\n\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tcase '=':\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\twcomp.comp=WhereComparator.LTEQ;\r\n\t\t\t\t\t\t\t\t\t\tcurr.setLength(0);\r\n\t\t\t\t\t\t\t\t\t\tstate=SelectMQLState.STATE_WHERE2; // now expect RHS\r\n\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\t\t\t\tthrow new MQLException(\"Unexpected '\"+curr+\"' in Malformed mql: \"+str);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase '>':\r\n\t\t\t\t\t\t\t\tif(curr.length()==1)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\twcomp.comp=WhereComparator.GT;\r\n\t\t\t\t\t\t\t\t\tcurr.setLength(0);\r\n\t\t\t\t\t\t\t\t\tstate=SelectMQLState.STATE_WHERE2; // now expect RHS\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tswitch(curr.charAt(1))\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tcase '=':\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\twcomp.comp=WhereComparator.GTEQ;\r\n\t\t\t\t\t\t\t\t\t\tcurr.setLength(0);\r\n\t\t\t\t\t\t\t\t\t\tstate=SelectMQLState.STATE_WHERE2; // now expect RHS\r\n\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tcase '<':\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\twcomp.comp=WhereComparator.NEQ;\r\n\t\t\t\t\t\t\t\t\t\tcurr.setLength(0);\r\n\t\t\t\t\t\t\t\t\t\tstate=SelectMQLState.STATE_WHERE2; // now expect RHS\r\n\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\t\t\t\tthrow new MQLException(\"Unexpected '\"+curr+\"' in Malformed mql: \"+str);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tfinal WhereComparator comp = (WhereComparator)CMath.s_valueOf(WhereComparator.class, curr.toString());\r\n\t\t\t\t\t\t\t\t\tif(comp != null)\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\twcomp.comp=comp;\r\n\t\t\t\t\t\t\t\t\t\tcurr.setLength(0);\r\n\t\t\t\t\t\t\t\t\t\tstate=SelectMQLState.STATE_WHERE2; // now expect RHS\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\t\tthrow new MQLException(\"Unexpected '\"+curr+\"' in Malformed mql: \"+str);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif(saveC)\r\n\t\t\t\t\t\t\t\tcurr.append(c);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase STATE_WHERE2: // where rhs of clause\r\n\t\t\t\t{\r\n\t\t\t\t\tif(Character.isWhitespace(c)||(c==';'))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(curr.length()>0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(isTermProperlyEnded(curr))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\twcomp.rhs = WhereComp.parseHS(curr.toString());\r\n\t\t\t\t\t\t\t\tcurr.setLength(0);\r\n\t\t\t\t\t\t\t\tif(c==';')\r\n\t\t\t\t\t\t\t\t\tstate=SelectMQLState.STATE_EXPECTNOTHING;\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\tstate=SelectMQLState.STATE_EXPECTCONNOREND;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\tcurr.append(c);\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\tif((curr.length()>0)\r\n\t\t\t\t\t&&((curr.charAt(0)=='\\'')\r\n\t\t\t\t\t\t||(curr.charAt(0)=='\\\"')\r\n\t\t\t\t\t\t||(curr.charAt(0)=='`')))\r\n\t\t\t\t\t\tcurr.append(c);\r\n\t\t\t\t\telse\r\n\t\t\t\t\tif(c==')')\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(curr.length()==0)\r\n\t\t\t\t\t\t\tthrow new MQLException(\"Unexpected ): Malformed mql: \"+str);\r\n\t\t\t\t\t\twcomp.rhs = WhereComp.parseHS(curr.toString());\r\n\t\t\t\t\t\tcurr.setLength(0);\r\n\t\t\t\t\t\twhile(wheres.prev!=null)\r\n\t\t\t\t\t\t\twheres=wheres.prev;\r\n\t\t\t\t\t\tif(wheres.child==null)\r\n\t\t\t\t\t\t\tthrow new MQLException(\"Unexpected ): Malformed mql: \"+str);\r\n\t\t\t\t\t\twheres=wheres.child;\r\n\t\t\t\t\t\tstate=SelectMQLState.STATE_EXPECTCONNOREND;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\tif(c==';')\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(curr.length()==0)\r\n\t\t\t\t\t\t\tthrow new MQLException(\"Unexpected ; in Malformed mql: \"+str);\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\twcomp.rhs = WhereComp.parseHS(curr.toString());\r\n\t\t\t\t\t\t\tcurr.setLength(0);\r\n\t\t\t\t\t\t\tstate=SelectMQLState.STATE_EXPECTNOTHING;\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\tif(c=='(')\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(curr.length()==0)\r\n\t\t\t\t\t\t\tstate=SelectMQLState.STATE_WHEREEMBEDRIGHT0;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tthrow new MQLException(\"Unexpected ( in Malformed mql: \"+str);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tcurr.append(c);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase STATE_WHEREEMBEDRIGHT0:\r\n\t\t\t\t{\r\n\t\t\t\t\tif(c=='(')\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tcurr.append(c);\r\n\t\t\t\t\t\tpdepth++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\tif(c==')')\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(pdepth==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\twcomp.rhs = WhereComp.parseHS(curr.toString());\r\n\t\t\t\t\t\t\tstate=SelectMQLState.STATE_EXPECTCONNOREND; // expect connector or endofclause\r\n\t\t\t\t\t\t\tcurr.setLength(0);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tcurr.append(c);\r\n\t\t\t\t\t\t\tpdepth--;\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\tcurr.append(c);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase STATE_EXPECTCONNOREND: // expect connector or endofclause\r\n\t\t\t\t{\r\n\t\t\t\t\tif(c==';')\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tstate=SelectMQLState.STATE_EXPECTNOTHING;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\tif(Character.isWhitespace(c) || (c=='('))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(curr.length()>0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(curr.toString().equals(\"AND\"))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\twheres.conn = WhereConnector.AND;\r\n\t\t\t\t\t\t\t\tstate=SelectMQLState.STATE_WHERE0;\r\n\t\t\t\t\t\t\t\tcurr.setLength(0);\r\n\t\t\t\t\t\t\t\tif(c=='(')\r\n\t\t\t\t\t\t\t\t\ti--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tif(curr.toString().equals(\"OR\"))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\twheres.conn = WhereConnector.OR;\r\n\t\t\t\t\t\t\t\tstate=SelectMQLState.STATE_WHERE0;\r\n\t\t\t\t\t\t\t\tcurr.setLength(0);\r\n\t\t\t\t\t\t\t\tif(c=='(')\r\n\t\t\t\t\t\t\t\t\ti--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\tthrow new MQLException(\"Unexpected '\"+curr.toString()+\"': Malformed mql: \"+str);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\tif(c=='(')\r\n\t\t\t\t\t\t\tthrow new MQLException(\"Unexpected ): Malformed mql: \"+str);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\tif((c==')') && (curr.length()==0))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\twhile(wheres.prev!=null)\r\n\t\t\t\t\t\t\twheres=wheres.prev;\r\n\t\t\t\t\t\tif(wheres.child==null)\r\n\t\t\t\t\t\t\tthrow new MQLException(\"Unexpected ): Malformed mql: \"+str);\r\n\t\t\t\t\t\twheres=wheres.child;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tcurr.append(c);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tif(!Character.isWhitespace(c))\r\n\t\t\t\t\t\tthrow new MQLException(\"Unexpected '\"+c+\"': Malformed mql: \"+str);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif((state != SelectMQLState.STATE_EXPECTNOTHING)\r\n\t\t\t&&(state != SelectMQLState.STATE_EXPECTWHEREOREND)\r\n\t\t\t&&(state != SelectMQLState.STATE_EXPECTCOMMAORWHEREOREND)\r\n\t\t\t&&(state != SelectMQLState.STATE_EXPECTCONNOREND))\r\n\t\t\t\tthrow new MQLException(\"Unexpected end of clause in state \"+state.toString()+\" in mql: \"+str);\r\n\t\t\t// finally, parse the aggregators\r\n\t\t\tfor(final WhatBit W : this.what)\r\n\t\t\t{\r\n\t\t\t\tfinal String[] w=W.what();\r\n\t\t\t\tif(w.length<2)\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\tW.aggregator=(MQLClause.AggregatorFunctions)CMath.s_valueOf(MQLClause.AggregatorFunctions.class, w[0]);\r\n\t\t\t\tif(W.aggregator != null)\r\n\t\t\t\t\tW.first=Arrays.copyOfRange(W.first, 1, W.first.length);\r\n\t\t\t}\r\n\t\t}",
"@Override\n\tpublic String onPrepareStatement(String sql) {\n\t\tif(!sql.contains(INSERT)){\n\t\t\t// We have to handle criteria query bit differently since\n\t\t\t// Hibernate framework is adding extra comment (/* criteria query */) to the query.\n\t\t\tif(sql.contains(\"/* criteria query */\")){\n\t\t\t\tsql = sql.replace(\"/* criteria query */\", \"\");\n\t\t\t}\n\t\t\treturn sql;\n\t\t}\n\t\tif(sql.contains(SEPARATOR+INSERT)){\n\t\t\treturn sql;\n\t\t}\n\t\tString modelClass=\"\";\n\t\tString calComment = \"\";\n\t\t\n\t\tStringBuilder fullQuery = new StringBuilder(sql);\n\t\t// Manipulating the existing comment \n\t\ttry{\n\t\t\tif (sql.indexOf(\"/* \") != -1){\n\t\t\t\tString str = sql.substring(sql.indexOf(\"/*\")+2, sql.indexOf(\"*/\")-1);\n\t\t\t\tmodelClass = str.substring(str.lastIndexOf('.')+1,str.length());\n\t\t\t}\n\t\t\t\n\t\t\tcalComment = modelClass+SEPARATOR+INSERT ;\n\t\t\tsql = sql.substring(sql.indexOf(\"*/\")+2).trim();\n\t\t\tfullQuery = new StringBuilder(sql.length());\n\t\t\t\n\t\t\tfullQuery.append(\"/* \").append(calComment).append(\n\t\t\t\t\t\" */ \").append(sql);\n\t\t}catch (Exception e) {\n\t\t\t// No Operation -- Stick to original query and comment\n\t\t}\n\t\t\n\t\treturn fullQuery.toString();\n\t}",
"String getSqlForExplainPlan(String sql, SqlParser parser);",
"StringExpression createStringExpression();",
"public String wrapStatement(String statement);",
"private String processStatement() {\n StringBuilder result = new StringBuilder();\n //If the line is an instantiation or assignment statement\n if(line.contains(\"=\")) {\n //We get the parts of string before and after the '=' sign.\n String[] parts = line.split(\"=\");\n //Now we get the first and second part in separate strings.\n String firstPart = parts[0].trim();\n String secondPart = parts[1].trim();\n //Remove unnecessary spaces from the first part of the line.\n firstPart = removeUnnecessarySpaces(firstPart);\n //Split the parts further into single words.\n String[] firstPartWords = firstPart.split(\"\\\\s+\");\n\n //Now, process the first part of the line\n for(int i=0; i<firstPartWords.length; i++) {\n String word = firstPartWords[i];\n //Boolean value to check if this word is the last word\n boolean isLast = i==firstPartWords.length-1;\n //Now process each word\n processWordInFirstPart(word, result, isLast);\n }\n\n //Boolean value to check if this statement has anything to\n //do with objects. If secondPart contains 'new'.\n boolean relatedWithObject = secondPart.contains(\"new \");\n //Now adjust the value of secondPart for assigning.\n secondPart = secondPart.replace(\"new\", \"\");\n secondPart = secondPart.trim();\n\n //Now we have the result after processing the first part of\n //this statement.\n //If there are no spaces in the firstPart string, then this\n //is an assignment statement.\n if(firstPart.indexOf(' ')==-1) {\n if(relatedWithObject) {\n //If the second part of the string contains square and not round\n //brackets, this is not an object but an array.\n if(!secondPart.contains(\"(\") && secondPart.contains(\"[\"))\n result.insert(0,\"The array \").append(\" is initialized to value \").\n append(secondPart);\n //Else, this is obviously an object.\n else\n result.insert(0, \"The object \").append(\" is initialized to value \").\n append(secondPart);\n }\n else {\n //Now, we format the assignment statement.\n //Since there can be more than one assignments in the same\n //line, we add all the parts.\n //Here, \\u2190 is the left arrow in UTF-8.\n char arrow = '\\u2190';\n parts = line.split(\"\\\\s+\");\n result = new StringBuilder();\n for(String part : parts) {\n if(part.equals(\"=\")) {\n result.append(arrow).append(\" \");\n }\n else {\n result.append(part).append(\" \");\n }\n }\n }\n }\n //If this statement is not an assignment statement, then this\n //is an initialization statement.\n else {\n if(relatedWithObject) {\n result.append(\" is created with value \").append(secondPart).append(\".\");\n }\n //If the second part (the value) has something to do\n //with arrays, and not objects.\n else if(hasArrayAsMajorValue(secondPart)) {\n //Then process the second part according to array values.\n result.append(\" is instantiated to value in \").append(processArrayValue(secondPart));\n }\n else {\n result.append(\" is instantiated to value \").append(secondPart).append(\".\");\n }\n }\n }\n //If line does not contain \"=\" sign.\n else {\n //Incrementing statement.\n if(line.contains(\"++\")) {\n int index = line.indexOf('+');\n String variable = line.substring(0,index);\n result.append(\"Variable \").append(variable).append(\" is Incremented.\");\n }\n //Decrementing statement.\n else if(line.contains(\"--\")) {\n int index = line.indexOf('-');\n String variable = line.substring(0,index);\n result.append(\"Variable \").append(variable).append(\" is Decremented.\");\n }\n //If line has a dot operator, it means this line calls a function.\n else if(line.contains(\".\")) {\n String[] parts = line.split(\"\\\\.\");\n String object = parts[0].trim();\n String method = parts[1].trim();\n result.append(\"The function \").append(method).append(\" from object \").\n append(object).append(\" is called.\");\n if(parts.length>2) {\n result = new StringBuilder();\n result.append(removeUnnecessarySpaces(line)).append(\" is performed respectively.\");\n }\n }\n //If the line contains a bracket, it is calling a member method.\n else if(line.contains(\"(\")) {\n result.append(\"The member method \").append(line).append(\" is called.\");\n }\n else {\n String[] words = line.split(\"\\\\s+\");\n for(int i=0; i<words.length; i++) {\n String word = words[i];\n boolean isLast = i==words.length-1;\n processWordInFirstPart(word, result, isLast);\n }\n result.append(\" is declared.\");\n }\n }\n return result.toString();\n }",
"public String getWhereClause() {\n Object ref = whereClause_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n whereClause_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"protected abstract String assemble(Statement statement);",
"private String getIndiCriteria(String indiData){\n String result = \"(indicator_id = \"+indiData+\")\";\n return result;\n }",
"private String modifySqlString(String updateIdentity,Identity identity) {\r\n\t\t\r\n\t\tString modifiedSqlString=updateIdentity;\r\n\t\t\r\n\t\tif (identity.getDisplayName() != null && identity.getEmail() == null) {\r\n\t\t\tmodifiedSqlString=modifiedSqlString + Constants.SPACE+ SqlConstants.DISPLAY_NAME_CLAUSE+Constants.SPACE+ \r\n\t\t\t\t\tSqlConstants.WHERE_CLAUSE+Constants.SPACE+SqlConstants.UID_CLAUSE;\r\n\t\t}\r\n\r\n\t\tif (identity.getEmail() != null && identity.getDisplayName() == null) {\r\n\t\t\tmodifiedSqlString = modifiedSqlString + Constants.SPACE+ SqlConstants.EMAIL_CLAUSE+Constants.SPACE+\r\n\t\t\t\t\tSqlConstants.WHERE_CLAUSE+Constants.SPACE+SqlConstants.UID_CLAUSE;\r\n\t\t}\r\n\t\t\r\n\t\tif(identity.getEmail() != null && identity.getDisplayName() != null) {\r\n\t\t\t\r\n\t\t\tmodifiedSqlString = modifiedSqlString + Constants.SPACE + SqlConstants.DISPLAY_NAME_CLAUSE\r\n\t\t\t\t\t+ Constants.COMMA + Constants.SPACE + SqlConstants.EMAIL_CLAUSE + Constants.SPACE\r\n\t\t\t\t\t+ SqlConstants.WHERE_CLAUSE + Constants.SPACE + SqlConstants.UID_CLAUSE;\r\n\t\t}\r\n\t\treturn modifiedSqlString;\r\n\t}",
"public IAverage havingClause(String havingClause);",
"String getMetadataSelectClause();",
"protected Disjunction clause(Argument a) {\n\t\tDisjunction result = new Disjunction(\"clause_\" + a.getName());\n\t\tSet<Argument> attackers = this.CAF.getArgumentAttackers(this.instance, a);\n\t\tFormula accepted = this.isAccepted(a, attackers);\n\t\tFormula notAccepted = this.isNotAccepted(a, attackers);\n\t\tresult.addSubformula(accepted);\n\t\tif(notAccepted != null) {\n\t\t\tresult.addSubformula(notAccepted);\n\t\t}\n\t\treturn result;\n\t}",
"String getSafeSql(String name);",
"String getMetadataWhereClause();",
"String WHERE() { return yyline+\"/\"+yycolumn+\"(\"+yychar+\")\" ;}",
"@Override\n public String getWhereClause() {\n Object ref = whereClause_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n whereClause_ = s;\n return s;\n }\n }",
"public String solver(String name){\n name = name.toLowerCase();\n\n boolean b1 = name.startsWith(\"hydro\");\n boolean b2 = name.endsWith(\"ic\");\n String answer = \"\";\n if(b1 && b2){\n answer = \"non-metal acid\";\n }else if(b1==false && b2 ==true){\n answer = \"polyatomic acid\";\n }else if(b1 == false && b2 == false){\n answer = \"not an acid\";\n }\n return answer;\n }",
"private String getStatement(String argSqlMapId) {\r\n\t\tif (StringUtils.isEmpty(argSqlMapId)) {\r\n\t\t\treturn argSqlMapId;\r\n\t\t} else {\r\n\t\t\tint index = argSqlMapId.lastIndexOf(\".\");\r\n\t\t\tif (index > 0) {\r\n\t\t\t\treturn argSqlMapId.substring(index + 1);\r\n\t\t\t} else {\r\n\t\t\t\treturn argSqlMapId;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static String parseOperator(String operator) {\n\t\tif (StringUtils.isEmpty(operator))\n\t\t\treturn SqlBuilder.EQUAL;\n\t\telse if (\"Equals\".equals(operator))\n\t\t\treturn SqlBuilder.EQUAL;\n\t\telse if (\"Between\".equals(operator))\n\t\t\treturn SqlBuilder.BETWEEN;\n\t\telse if (\"LessThan\".equals(operator))\n\t\t\treturn SqlBuilder.LT;\n\t\telse if (\"GreaterThan\".equals(operator))\n\t\t\treturn SqlBuilder.GT;\n\t\telse if (\"IsNotNull\".equals(operator))\n\t\t\treturn SqlBuilder.NOT_NULL;\n\t\telse if (\"IsNull\".equals(operator))\n\t\t\treturn SqlBuilder.IS_NULL;\n\t\telse if (\"NotLike\".equals(operator))\n\t\t\treturn SqlBuilder.NOT_LIKE;\n\t\telse if (\"Like\".equals(operator))\n\t\t\treturn SqlBuilder.LIKE;\n\t\telse if (\"NotIn\".equals(operator))\n\t\t\treturn SqlBuilder.NOT_IN;\n\t\telse if (\"In\".equals(operator))\n\t\t\treturn SqlBuilder.IN;\n\t\telse if (\"NotNull\".equals(operator))\n\t\t\treturn SqlBuilder.NOT_NULL;\n\t\telse if (\"Not\".equals(operator))\n\t\t\treturn SqlBuilder.IS_NOT;\n\t\telse\n\t\t\tthrow new RuntimeException(\"无法识别该类过滤操作:\" + operator);\n\t}",
"public static String getParameterClause(String valueStr, IntrospectedColumn introspectedColumn) {\n StringBuilder sb = new StringBuilder();\n\n sb.append(\"#{\");\n sb.append(valueStr);\n sb.append(\",jdbcType=\");\n sb.append(introspectedColumn.getJdbcTypeName());\n\n if (stringHasValue(introspectedColumn.getTypeHandler())) {\n sb.append(\",typeHandler=\");\n sb.append(introspectedColumn.getTypeHandler());\n }\n\n sb.append('}');\n\n return sb.toString();\n }",
"private String buildSelect() {\r\n\t\tString select = \"select all_source.line, ' '||replace(all_source.TEXT,chr(9),' ')|| ' ' line from all_source where 2=2 \";\r\n\t\tString ownerCondition = \"\";\r\n\t\tString ownerInnerCondition = \"\";\r\n\t\tString beginProcedureCondition = \"\";\r\n\r\n\t\tif (!oraJdbcDTO.dbSchema.equals(\"\")) {\r\n\t\t\townerCondition = \" and all_source.OWNER = ? \";\r\n\t\t\townerInnerCondition = \" and all_source1.OWNER = ? \";\r\n\t\t}\r\n\t\tif (!oraJdbcDTO.packageName.equals(\"\")) {\r\n\t\t\t// Procedure in package\r\n\t\t\tbeginProcedureCondition = \"and all_source.name = ?\\n\"\r\n\t\t\t\t\t+ \"and all_source.TYPE = 'PACKAGE'\\n\"\r\n\t\t\t\t\t+ \"and all_source.line >=\\n\"\r\n\t\t\t\t\t+ \" (select min(all_source1.line)\\n\"\r\n\t\t\t\t\t+ \" from all_source all_source1 where 2=2 \"\r\n\t\t\t\t\t+ ownerInnerCondition\r\n\t\t\t\t\t+ \" and all_source1.name = ?\\n\"\r\n\t\t\t\t\t+ \" and all_source1.TYPE = 'PACKAGE'\\n\"\r\n\t\t\t\t\t+ \" and instr(upper(all_source1.TEXT), ?) > 0)\";\r\n\t\t\t;\r\n\t\t} else {\r\n\t\t\t// Single procedure or function\r\n\t\t\tbeginProcedureCondition = \"and all_source.name = ?\\n\"\r\n\t\t\t\t\t+ \"and all_source.TYPE in ('PROCEDURE','FUNCTION')\";\r\n\t\t}\r\n\t\tselect = select + beginProcedureCondition + \" and all_source.line >= ?\"\r\n\t\t\t\t+ ownerCondition + \" order by all_source.line\";\r\n\r\n\t\treturn select;\r\n\t}",
"public static String getConstraintsForConjuctExceptStringSelectionConds(GenerateCVC1 cvc, QueryBlockDetails queryBlock, Conjunct conjunct) throws Exception {\n\n\t\tString constraintString = \"\";\n\n\t\t/** If the given conjunct is null then no constraints need to be generated */\n\t\tif(conjunct == null)\n\t\t\treturn constraintString;\n\n\t\tconstraintString += \"\\n%---------------------------------\\n% EQUIVALENCE CLASS CONSTRAINTS\\n%---------------------------------\\n\";\n\n\t\t/** Get the equivalence class constraints for this conjunct*/\n\t\tVector<Vector<Node>> equivalenceClasses = conjunct.getEquivalenceClasses();\n\t\tfor(int k=0; k<equivalenceClasses.size(); k++){\n\t\t\tVector<Node> ec = equivalenceClasses.get(k);\n\t\t\tfor(int i=0;i<ec.size()-1;i++){\n\t\t\t\tNode n1 = ec.get(i);\n\t\t\t\tNode n2 = ec.get(i+1);\n\t\t\t\tconstraintString += GenerateJoinPredicateConstraints.getConstraintsForEquiJoins(cvc, queryBlock, n1,n2) +\"\\n\";\n\t\t\t}\n\t\t}\n\n\n\t\tconstraintString += \"\\n%---------------------------------\\n% SELECTION CLASS CONSTRAINTS\\n%---------------------------------\\n\";\n\n\t\t/** Get the constraints for the selection conditions of the form A.x = Constant of this conjunct */\n\t\tVector<Node> selectionConds = conjunct.getSelectionConds();\n\t\tfor(int k=0; k<selectionConds.size(); k++){\n\n\t\t\tString tableNo = selectionConds.get(k).getLeft().getTableNameNo();\n\t\t\tint offset = cvc.getRepeatedRelNextTuplePos().get(tableNo)[1];\n\n\t\t\tint count = cvc.getNoOfTuples().get(tableNo)* queryBlock.getNoOfGroups();/** We should generate the constraints across all groups */;;\n\t\t\tfor(int l=1;l<=count;l++)\n\t\t\t\tconstraintString += \"ASSERT \" + GenerateCVCConstraintForNode.genPositiveCondsForPred(queryBlock, selectionConds.get(k),l+offset-1)+\";\" +\"\\n\";\n\t\t}\n\n\n\n\t\tconstraintString += \"\\n%---------------------------------\\n% ALL CLASS CONSTRAINTS\\n%---------------------------------\\n\";\n\n\t\t/** Get the constraints for the non equi-join conditions */\n\t\tVector<Node> allConds = conjunct.getAllConds();\n\t\tfor(int k=0; k<allConds.size(); k++)\n\t\t\tconstraintString += GenerateJoinPredicateConstraints.getConstraintsForNonEquiJoins(cvc, queryBlock, allConds) +\"\\n\";\n\n\n\n\t\tconstraintString += \"\\n%---------------------------------\\n% LIKE CLAUSE CONSTRAINTS\\n%---------------------------------\\n\";\n\n\t\t/** Generate constraints for the like conditions of this conjunct*/\n\t\tVector<Node> likeConds = conjunct.getLikeConds();\n\t\tfor(int k=0; k<likeConds.size(); k++){\n\n\t\t\tString tableNo = likeConds.get(k).getLeft().getTableNameNo();\n\t\t\tint offset = cvc.getRepeatedRelNextTuplePos().get(tableNo)[1];\n\n\t\t\tint count = cvc.getNoOfTuples().get(tableNo)* queryBlock.getNoOfGroups();/** We should generate the constraints across all groups */;;\n\t\t\tfor(int l=1;l<=count;l++)\n\t\t\t\tcvc.getStringConstraints().add( \"ASSERT \" + GenerateCVCConstraintForNode.genPositiveCondsForPred(queryBlock, likeConds.get(k),l+offset-1)+\";\\n\" );\n\t\t}\n\n\n\t\tconstraintString += \"\\n%---------------------------------\\n% WHERE CLAUSE SUBQUERY BLOCK CONSTRAINTS\\n%---------------------------------\\n\";\n\t\tconstraintString += GenerateConstraintsForWhereClauseSubQueryBlock.getConstraintsForWhereClauseSubQueryBlock(cvc, queryBlock, conjunct);\n\t\tconstraintString += \"\\n%---------------------------------\\n% END OF WHERE CLAUSE SUBQUERY BLOCK CONSTRAINTS\\n%---------------------------------\\n\";\n\n\n\t\treturn constraintString;\n\t}",
"public String asWhereClause() {\r\n LinkedList<String> whereClause = new LinkedList<>();\r\n \r\n if (noInduk != null && !noInduk.isEmpty())\r\n whereClause.add(noIndukColName + \" LIKE '%\" + noInduk + \"%'\");\r\n \r\n if (currentLevel != null)\r\n whereClause.add(currentLevelColName + \" LIKE '%\" + currentLevel.asWhereClause() + \"%'\");\r\n \r\n if (biodata != null){\r\n String wc = biodata.asWhereClause();\r\n if(wc != null && !wc.isEmpty())\r\n whereClause.add(wc);\r\n }\r\n \r\n if (tanggalMasuk != null)\r\n whereClause.add(tanggalMasukColName + \" LIKE '%\" + tanggalMasuk.asWhereClause(true) + \"%'\");\r\n \r\n if (tanggalLulus != null)\r\n whereClause.add(tanggalLulusColName + \" LIKE '%\" + tanggalLulus.asWhereClause(true) + \"%'\");\r\n if (gelombang != null)\r\n whereClause.add(gelombangColName + \" = '\" + gelombang + \"'\");\r\n if (statusPendaftaran != null)\r\n whereClause.add(statusPendaftaranColName + \" = '\" + statusPendaftaran + \"'\");\r\n if (lastUpdateDate != null)\r\n whereClause.add(lastUpdateDateColName + \" LIKE '%\" + lastUpdateDate.asWhereClause(true) + \"%'\");\r\n return whereClause.isEmpty()? \"\" : StringUtils.join(whereClause, \" AND \");\r\n }",
"public QueryExecution createQueryExecution(String qryStr);",
"public String getStatement();",
"public Builder setWhereClause(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n whereClause_ = value;\n onChanged();\n return this;\n }",
"private String createANDClauses(final boolean isFirstANDClause, final String colPropName, final String colPropValue, final String operator, final String colName)\n\t{\n\t\tStringBuilder sql = new StringBuilder(\"\");\n\t\tif(!isFirstANDClause) \n\t\t{\n\t\t\tsql.append(\" AND\");\n\t\t}\n\t\tsql.append(AND_CLAUSE_COLPROPNAME).append(\"'\").append(colPropName).append(\"'\")\n\t\t\t .append(AND_CLAUSE_COLPROPVALUE).append(\"'\").append(colPropValue).append(\"'\");\n\t\t// add operator to sql string\n\t\tsql.append(AND_CLAUSE_COLNAME).append(operator).append(' ');\n\t\t// add colname to sql string\n\t\tsql.append(\"'\").append(colName).append(\"'\");\n\t\treturn sql.toString();\n\t}",
"void build(ISqlClauseBuilder builder);",
"public Formula addClause(Clause c) {\n\n\t\tFormula f2;\n\t\tf2=new Formula(c,this.clauses);\n\t\treturn f2;\n\t}",
"public interface Compound extends Clause {}",
"public Condition(Map<String, String> whereClause ) {\n ArrayList<String> list = new ArrayList<>(); //whereArgs里面的内容存入的list\n StringBuilder stringBuffer = new StringBuilder();\n stringBuffer.append(\"1=1\");\n //取得所有成员变量的名字\n Set<String> keys = whereClause.keySet();\n for (String key : keys) {\n String value = whereClause.get(key);\n if (value != null) {\n stringBuffer.append(\" and \").append(key).append(\"=?\");\n list.add(value);\n }\n }\n\n this.whereClause = stringBuffer.toString();\n this.whereArgs = list.toArray(new String[list.size()]);\n }",
"public String buildInClauseFromSelectedTypes() {\n String inClause = \"\";\n boolean isFirst = true;\n for (int i = 0; i < mExpenseTypesSelected.length; ++i) {\n if (mExpenseTypesSelected[i]) {\n inClause += (isFirst ? \"\" : \",\") + i;\n isFirst = false;\n }\n }\n for (int i = 0; i < mCreditTypesSelected.length; ++i) {\n if (mCreditTypesSelected[i]) {\n inClause += (isFirst ? \"\" : \",\") + (-i - 1);\n isFirst = false;\n }\n }\n\n return \"(\" + inClause + \")\";\n }",
"@Test\n public void testFromWithTernaryFollowedByQuery() throws Exception {\n final String text = \"rule X when Cheese() from (isFull ? $cheesery : $market) ?person( \\\"Mark\\\", 42; ) then end\";\n RuleDescr rule = ((RuleDescr) (parse(\"rule\", text)));\n TestCase.assertFalse(parser.getErrors().toString(), parser.hasErrors());\n PatternDescr pattern = ((PatternDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"Cheese\", pattern.getObjectType());\n TestCase.assertEquals(\"from (isFull ? $cheesery : $market)\", pattern.getSource().getText());\n TestCase.assertFalse(pattern.isQuery());\n pattern = ((PatternDescr) (getDescrs().get(1)));\n TestCase.assertEquals(\"person\", pattern.getObjectType());\n TestCase.assertTrue(pattern.isQuery());\n }",
"public IAverageClause or(String column);",
"StringLiteralExp createStringLiteralExp();",
"@Test\n public void testStringLiteral() throws Exception {\n String sql = \"SELECT 'abc' FROM a.g1\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n Node constantNode = verifyExpressionSymbol(selectNode, Select.SYMBOLS_REF_NAME, 1, Constant.ID);\n verifyProperty(constantNode, Constant.VALUE_PROP_NAME, \"abc\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 1, \"a.g1\");\n \n verifySql(sql, fileNode);\n }",
"protected StringBuilder generateQuery() {\n StringBuilder sb = new StringBuilder();\n sb.append(\" FROM \") \n .append(dao.getParameterClass(0).getName())\n .append(\" d WHERE (:incorrectEvent = '' OR d.incorrectEvent.id = :incorrectEvent) \")\n .append(\"AND (d.createDate BETWEEN :dateFrom AND :dateTo ) \")\n .append(\"AND ( ((:incorrectEvent ='' AND :incorrectEventName!='' AND UPPER(d.incorrectEvent.name) LIKE :incorrectEventName) \")\n .append(\" OR (:incorrectEvent ='' AND :incorrectEventName!='' AND UPPER(d.incorrectEvent.name) LIKE :incorrectEventName)) \")\n .append(\" OR (:search='' OR d.searchField LIKE :search) ) \");\n return sb;\n }",
"public String toSqlNotation(String umlName) {\r\n\t\tPattern p = Pattern.compile(\"(\\\\p{Lower})(\\\\p{Upper})\");\r\n\t\tMatcher m = p.matcher(umlName);\r\n\t\tString sqlName = m.replaceAll(\"$1_$2\");\r\n\t\tsqlName = sqlName.toUpperCase();\r\n\t\treturn sqlName;\r\n\t}",
"public ExpressionSolver(String s)\n\t{\n\t\tString[] ray = s.split(\" \");\n\t\tList<String> list = Arrays.asList(ray);\n\t\tfor (int i = 0; i < list.size()-1; i++) {\n\t\t\tif ( ray[i] == \"*\") {\n\t\t\t\tlist.remove(i + 1);\n\t\t\t\tlist.remove(i - 1);\n\t\t\t\tlist.set(i,Integer.parseInt(list.get(i-1)) * Integer.parseInt(list.get(i+1)) );\n\t\t\t}\n\t\t\tif ( ray[i] == \"/\") {\n\t\t\t\tlist.remove(i + 1);\n\t\t\t\tlist.remove(i - 1);\n\t\t\t\tlist.set(i,Integer.parseInt(list.get(i-1)) * Integer.parseInt(list.get(i+1)) );\n\t\t\t}\n\t\t}\n\t\tfor (int j = 0; j < list.size()-1; j++) {\n\t\t\tif (ray[j] == \"+\") {\n\t\t\t\tlist.remove(j + 1);\n\t\t\t\tlist.remove(j - 1);\n\t\t\t\tlist.set(j,Integer.parseInt(list.get(j-1)) * Integer.parseInt(list.get(j+1)) );\n\t\t\t}\n\t\t\tif ( ray[j] == \"-\") {\n\t\t\t\tlist.remove(j + 1);\n\t\t\t\tlist.remove(j - 1);\n\t\t\t\tlist.set(j,Integer.parseInt(list.get(j-1)) * Integer.parseInt(list.get(j+1)) );\n\t\t\t}\n\t\t}\n\t}",
"public Formula(Clause c) {\n\t\t// TODO: implement this.\n\t\t//throw new RuntimeException(\"not yet implemented.\");\n\t\tclauses=new NonEmptyImList<Clause>(c); \n\t}",
"String getExpressionDescription(String expression, ParseType parseType);",
"public String buildWhereSQL() throws Exception {\r\n if (!inputData.hasFilter()) {\r\n return null;\r\n }\r\n\r\n List<BasicFilter> filters = null;\r\n try {\r\n String filterString = inputData.getFilterString();\r\n Object filterObj = getFilterObject(filterString);\r\n\r\n filters = convertBasicFilterList(filterObj, filters);\r\n\r\n StringBuffer sb = new StringBuffer();\r\n String andDivisor = \"\";\r\n for (Object obj : filters) {\r\n BasicFilter filter = (BasicFilter) obj;\r\n\r\n sb.append(andDivisor);\r\n andDivisor = \" AND \";\r\n\r\n ColumnDescriptor column = inputData.getColumn(filter.getColumn().index());\r\n //the column name of filter\r\n sb.append(column.columnName());\r\n\r\n //the operation of filter\r\n FilterParser.Operation op = filter.getOperation();\r\n switch (op) {\r\n case HDOP_LT:\r\n sb.append(\"<\");\r\n break;\r\n case HDOP_GT:\r\n sb.append(\">\");\r\n break;\r\n case HDOP_LE:\r\n sb.append(\"<=\");\r\n break;\r\n case HDOP_GE:\r\n sb.append(\">=\");\r\n break;\r\n case HDOP_EQ:\r\n sb.append(\"=\");\r\n break;\r\n default:\r\n throw new UnsupportedFilterException(\"unsupported Filter operation : \" + op);\r\n }\r\n\r\n Object val = filter.getConstant().constant();\r\n switch (DataType.get(column.columnTypeCode())) {\r\n case SMALLINT:\r\n case INTEGER:\r\n case BIGINT:\r\n case FLOAT8:\r\n case REAL:\r\n case BOOLEAN:\r\n sb.append(val.toString());\r\n break;\r\n case TEXT:\r\n sb.append(\"'\").append(val.toString()).append(\"'\");\r\n break;\r\n case DATE:\r\n sb.append(\"'\" + val.toString() + \"'\");\r\n break;\r\n default:\r\n throw new UnsupportedFilterException(\"unsupported column type for filtering : \" + column.columnTypeCode());\r\n }\r\n\r\n }\r\n return sb.toString();\r\n } catch (UnsupportedFilterException ex) {\r\n // Do not throw exception, impose no constraints instead\r\n return null;\r\n }\r\n }",
"protected abstract String statementType();",
"public Builder<T> withClauses(String clauses) {\n this.clauses = clauses;\n return this;\n }",
"private String getInfixNotation(String query){\n Stack<Character> signs = new Stack<Character>();\n ArrayList<String> queryParts = new ArrayList<String>();\n String[] splitedQuery = query.split(\" \");\n String infixQuery;\n\n for(int i = 0; i < splitedQuery.length; i++){\n if(isSignOperator(splitedQuery[i]))\n signs.push(splitedQuery[i].charAt(0));\n else if(isOrderByCommand(splitedQuery[i]))\n queryParts.add(splitedQuery[i] + \" \" + splitedQuery[++i] + \" \" + splitedQuery[++i]);\n else {\n String word0 = splitedQuery[i];\n Character sign = signs.pop();\n String word1 = splitedQuery[++i];\n\n queryParts.add(\" ( \" + word0 + \" \" + sign + \" \" + word1 + \" ) \");\n this.subQueries.add(word0 + \" \" + sign + \" \" + word1);\n }\n }\n\n infixQuery = queryParts.get(0);\n\n for(int j = 1; j < queryParts.size(); j++){\n if(!signs.empty()) {\n infixQuery = \" ( \" + infixQuery + signs.pop() + queryParts.get(j) + \" ) \";\n }else\n infixQuery += \" \" + queryParts.get(j).toUpperCase();\n }\n\n return infixQuery;\n }",
"private String literal(String str) {\n StringBuffer buffer = new StringBuffer();\n \n buffer.append(\"'\");\n for (int i = 0; i < str.length(); i++) {\n switch (str.charAt(i)) {\n case '\\'':\n buffer.append(\"''\");\n break;\n default:\n buffer.append(str.charAt(i));\n break;\n }\n }\n buffer.append(\"'\");\n return buffer.toString();\n }",
"String getExpressionDescription(String expression, ParseType parseType, DataType dataType);",
"public PreparedSql generatePreparedSql(BoundString prefix);",
"public static String getConstraintsForConjuctExceptWhereClauseSubQueryBlock(GenerateCVC1 cvc, QueryBlockDetails queryBlock, Conjunct conjunct) throws Exception {\n\n\t\tString constraintString = \"\";\n\n\t\t/** If the given conjunct is null then no constraints need to be generated */\n\t\tif(conjunct == null)\n\t\t\treturn constraintString;\n\n\t\tconstraintString += \"\\n%---------------------------------\\n% EQUIVALENCE CLASS CONSTRAINTS\\n%---------------------------------\\n\";\n\n\t\t/** Get the equivalence class constraints for this conjunct*/\n\t\tVector<Vector<Node>> equivalenceClasses = conjunct.getEquivalenceClasses();\n\t\tfor(int k=0; k<equivalenceClasses.size(); k++){\n\t\t\tVector<Node> ec = equivalenceClasses.get(k);\n\t\t\tfor(int i=0;i<ec.size()-1;i++){\n\t\t\t\tNode n1 = ec.get(i);\n\t\t\t\tNode n2 = ec.get(i+1);\n\t\t\t\tconstraintString += GenerateJoinPredicateConstraints.getConstraintsForEquiJoins(cvc, queryBlock, n1,n2) +\"\\n\";\n\t\t\t}\n\t\t}\n\n\n\t\tconstraintString += \"\\n%---------------------------------\\n% SELECTION CLASS CONSTRAINTS\\n%---------------------------------\\n\";\n\n\t\t/** Get the constraints for the selection conditions of the form A.x = Constant of this conjunct */\n\t\tVector<Node> selectionConds = conjunct.getSelectionConds();\n\t\tfor(int k=0; k<selectionConds.size(); k++){\n\n\t\t\tString tableNo = selectionConds.get(k).getLeft().getTableNameNo();\n\t\t\tint offset = cvc.getRepeatedRelNextTuplePos().get(tableNo)[1];\n\n\t\t\tint count = cvc.getNoOfTuples().get(tableNo)* queryBlock.getNoOfGroups();/** We should generate the constraints across all groups */;;\n\t\t\tfor(int l=1;l<=count;l++)\n\t\t\t\tconstraintString += \"ASSERT \" + GenerateCVCConstraintForNode.genPositiveCondsForPred(queryBlock, selectionConds.get(k),l+offset-1)+\";\" +\"\\n\";\n\t\t}\n\n\n\n\t\tconstraintString += \"\\n%---------------------------------\\n% ALL CLASS CONSTRAINTS\\n%---------------------------------\\n\";\n\n\t\t/** Get the constraints for the non equi-join conditions */\n\t\tVector<Node> allConds = conjunct.getAllConds();\n\t\tfor(int k=0; k<allConds.size(); k++)\n\t\t\tconstraintString += GenerateJoinPredicateConstraints.getConstraintsForNonEquiJoins(cvc, queryBlock, allConds) +\"\\n\";\n\n\n\n\t\tconstraintString += \"\\n%---------------------------------\\n% STRING SELECTION CLASS CONSTRAINTS\\n%---------------------------------\\n\";\n\n\t\t/**get the constraints for the conditions of the form A.x=cons where cons is a string constant */\n\t\tVector<Node> stringSelectionConds = conjunct.getStringSelectionConds();\n\t\tfor(int k=0; k<stringSelectionConds.size(); k++){\n\n\t\t\tString tableNo = stringSelectionConds.get(k).getLeft().getTableNameNo();\n\t\t\tint offset = cvc.getRepeatedRelNextTuplePos().get(tableNo)[1];\n\n\t\t\tint count = cvc.getNoOfTuples().get(tableNo)* queryBlock.getNoOfGroups();/** We should generate the constraints across all groups */;;\n\t\t\tfor(int l=1;l<=count;l++)\n\t\t\t\tcvc.getStringConstraints().add( \"ASSERT \" + GenerateCVCConstraintForNode.genPositiveCondsForPred(queryBlock, stringSelectionConds.get(k),l+offset-1)+\";\" +\"\\n\" );\n\t\t}\n\n\n\t\tconstraintString += \"\\n%---------------------------------\\n% LIKE CLAUSE CONSTRAINTS\\n%---------------------------------\\n\";\n\n\t\t/** Generate constraints for the like conditions of this conjunct*/\n\t\tVector<Node> likeConds = conjunct.getLikeConds();\n\t\tfor(int k=0; k<likeConds.size(); k++){\n\n\t\t\tString tableNo = likeConds.get(k).getLeft().getTableNameNo();\n\t\t\tint offset = cvc.getRepeatedRelNextTuplePos().get(tableNo)[1];\n\n\t\t\tint count = cvc.getNoOfTuples().get(tableNo)* queryBlock.getNoOfGroups();/** We should generate the constraints across all groups */;;\n\t\t\tfor(int l=1;l<=count;l++)\n\t\t\t\tcvc.getStringConstraints().add( \"ASSERT \" + GenerateCVCConstraintForNode.genPositiveCondsForPred(queryBlock, likeConds.get(k),l+offset-1)+\";\\n\" );\n\t\t}\n\n\t\treturn constraintString;\n\t}",
"cn.infinivision.dataforce.busybee.pb.meta.Expr getCondition();",
"private static void loadConstraintFromString(String str) {\n Tokenizer tokenizer1 = new Tokenizer(str);\n ArrayList<String> items1 = tokenizer1.tokenize();\n removeQuotes(items1);\n loadConstraintFromArray(items1, 0, items1.size());\n }",
"SQLCaseWhens createSQLCaseWhens();",
"public IAverageClause and(String column);",
"public static Clause resolved(Clause clause, ClauseList clauseList, ImplicationDAG implicationDAG) {\n int size = clause.size();\n int length = clause.size();\n for(int i = 0; i < length; ++i) {\n int timestamp = ++clauseList.timestamp;\n clauseList.timestamp += size+1;\n for(int j = 0; j < length; ++j) {\n if(i == j) {continue;}\n clauseList.stream(clause.cliterals.get(j).literal,implicationDAG,false).\n forEach(clit -> {\n Clause otherClause = clit.clause;\n if(otherClause.size() > size) {return;}\n clit.timestamp = timestamp;\n if(otherClause.timestamp >= timestamp) {++otherClause.timestamp;}\n else {otherClause.timestamp = timestamp;}});}\n\n if(clauseList.streamContradicting(clause.cliterals.get(i).literal,implicationDAG).\n anyMatch(clit -> {\n clit.timestamp = timestamp;\n Clause otherClause = clit.clause;\n return otherClause.timestamp - timestamp >= otherClause.size()-2 && allMarked(otherClause,timestamp);})) {\n clause.removeLiteralAtPosition(i);\n --i;\n --length;}}\n return clause;}",
"private String getQuery(String attribute, String condition){\n String query= \"Select \" + attribute + \"\\n\";\n query += \"From \" + TABLE + \"\\n\";\n query += \"Where \" +condition + \";\";\n return query;\n }",
"private static StringBuffer generateProvenanceProcedure(String query,\n\t int qIndex) {\n\n\t/*\n\t * First, we need the list of the FROM clause atoms/aliases that we will\n\t * use to augment the SELECT clause with ROWIDs. assume the query is an\n\t * SPJ Select .... From... Where .\n\t */\n\tString uQuery = query.toUpperCase();\n\n\tint fromIndex = uQuery.indexOf(\"FROM\");\n\tint whereIndex = uQuery.indexOf(\"WHERE\");\n\n\tif (whereIndex == -1) {\n\t whereIndex = uQuery.length();\n\t}\n\tString fromClause = query.substring(fromIndex + 4, whereIndex - 1)\n\t\t.trim();\n\t// System.out.println(\"From: \"+fromClause);\n\tStringTokenizer st = new StringTokenizer(fromClause, \",\");\n\n\t// Keep the list of FROM clause atoms\n\tList<String> fromAtoms = new ArrayList<String>();\n\twhile (st.hasMoreTokens()) {\n\t String thisFromAtom = st.nextToken().trim();\n\n\t // System.out.println(\"Atom:\"+thisFromAtom);\n\n\t // bug fixed\n\t // bug: didn't consider \"as\"\n\t if (thisFromAtom.contains(\"as\")) {\n\t\tStringTokenizer atomTok = new StringTokenizer(thisFromAtom,\n\t\t\t\"as\");\n\t\tString atomAlias = atomTok.nextToken();\n\t\tif (atomTok.hasMoreTokens())\n\t\t atomAlias = atomTok.nextToken();\n\t\tfromAtoms.add(atomAlias);\n\t } else if (thisFromAtom.contains(\"AS\")) {\n\t\tStringTokenizer atomTok = new StringTokenizer(thisFromAtom,\n\t\t\t\"AS\");\n\t\tString atomAlias = atomTok.nextToken();\n\t\tif (atomTok.hasMoreTokens())\n\t\t atomAlias = atomTok.nextToken();\n\t\tfromAtoms.add(atomAlias);\n\t } else {\n\t\tStringTokenizer atomTok = new StringTokenizer(thisFromAtom, \" \");\n\t\tString atomAlias = atomTok.nextToken();\n\t\tif (atomTok.hasMoreTokens())\n\t\t atomAlias = atomTok.nextToken();\n\t\tfromAtoms.add(atomAlias);\n\t }\n\n\t // original code from Bogdan\n\t // StringTokenizer atomTok = new StringTokenizer(thisFromAtom,\" \");\n\t // String atomAlias = atomTok.nextToken();\n\t // if(atomTok.hasMoreTokens())\n\t // atomAlias=atomTok.nextToken();\n\t // fromAtoms.add(atomAlias);\n\n\t}\n\n\t// System.out.println(\"FROM atoms:\"+fromAtoms);\n\n\t/*\n\t * the extension to the SELECT clause which will be used to extract the\n\t * ROWIDs of the source tuples (why-provenance)\n\t */\n\tStringBuffer selectExtension = new StringBuffer();\n\tfor (int i = 1; i <= fromAtoms.size(); i++) {\n\t String fromAtom = fromAtoms.get(i - 1);\n\t selectExtension.append(\", \" + fromAtom + \".\"\n\t\t + Parameters.ROWID_ATT_NAME);\n\t selectExtension.append(\" as src\" + i + \"_ID\");\n\t}\n\tselectExtension.append(\"\\n\\t\\t \");\n\n\t// System.out.println(\"Select extension: \"+selectExtension);\n\tStringBuffer buffer = new StringBuffer();\n\t// buffer.append(\"DELIMITER !\\n\");\n\tbuffer.append(\"CREATE PROCEDURE \" + Parameters.TRACK_PROV_PROCNAME\n\t\t+ \"()\\n\");\n\tbuffer.append(\"BEGIN\\n\\n\");\n\tbuffer.append(\"\\t declare deriv_no int default 0;\\n\");\n\tbuffer.append(\"\\t declare done int default 0;\\n\\n\");\n\n\t// declare res_id_var, src1_id_var, src2_id_var int;\n\tbuffer.append(\"\\t declare res_id_var\");\n\tfor (int i = 1; i <= fromAtoms.size(); i++) {\n\t buffer.append(\", src\" + i + \"_id_var\");\n\t}\n\tbuffer.append(\" int;\\n\");\n\t// declare prov_cursor cursor for\n\t// select __ROWID, src1_ID, src2_ID\n\t// from Q1_RES q_result\n\t// natural join\n\t// (\n\t// select r1.A as A, r1.__ROWID as src1_ID, r2.__ROWID as src2_ID\n\t// from R r1, R r2\n\t// where r1.B=r2.A\n\t// ) prov_query;\n\tbuffer.append(\"\\t declare prov_cursor cursor for\\n\");\n\tbuffer.append(\"\\t\\t select \" + Parameters.ROWID_ATT_NAME);\n\tfor (int i = 1; i <= fromAtoms.size(); i++) {\n\t buffer.append(\", src\" + i + \"_ID\");\n\t}\n\tbuffer.append(\"\\n\");\n\tbuffer.append(\"\\t\\t from \" + Parameters.QUERY_RESULT_PREFIX + qIndex\n\t\t+ Parameters.QUERY_RESULT_SUFFIX);\n\tbuffer.append(\" q_result\\n\");\n\tbuffer.append(\"\\t\\t natural join\\n\");\n\tbuffer.append(\"\\t\\t (\\n\");\n\t// the augmented query here:\n\tStringBuffer queryBuf = new StringBuffer(query);\n\tqueryBuf.insert(fromIndex, selectExtension); // right before the FROM\n\t\t\t\t\t\t // clause\n\tbuffer.append(\"\\t\\t \" + queryBuf + \"\\n\");\n\tbuffer.append(\"\\t\\t ) prov_query;\\n\\n\");\n\tbuffer.append(\"\\t declare continue handler for not found set done = 1;\\n\\n\");\n\tbuffer.append(\"\\t open prov_cursor;\\n\\n\");\n\tbuffer.append(\"\\t read_loop: loop\\n\\n\");\n\tbuffer.append(\"\\t\\t fetch prov_cursor into res_id_var\");\n\t// , src1_id_var, src2_id_var;\n\tfor (int i = 1; i <= fromAtoms.size(); i++) {\n\t buffer.append(\", src\" + i + \"_id_var\");\n\t}\n\tbuffer.append(\";\\n\\n\");\n\tbuffer.append(\"\\t\\t if done then leave read_loop;\\n\");\n\tbuffer.append(\"\\t\\t end if;\\n\\n\");\n\tfor (int i = 1; i <= fromAtoms.size(); i++) {\n\t buffer.append(\"\\t\\t insert ignore into PROV values (res_id_var,deriv_no,src\"\n\t\t + i + \"_id_var);\\n\");\n\t}\n\t// insert ignore into PROV values (res_id_var,deriv_no,src1_id_var);\n\t// insert ignore into PROV values (res_id_var,deriv_no,src2_id_var);\n\tbuffer.append(\"\\n\\t\\t set deriv_no = deriv_no + 1;\\n\\n\");\n\tbuffer.append(\"\\t end loop;\\n\\n\");\n\tbuffer.append(\"\\t close prov_cursor;\\n\\n\");\n\tbuffer.append(\"END\\n\");\n\treturn buffer;\n }",
"protected void visitImpl(final UrlClause clause) {\n \n if(!isEmptyLeaf(clause)){\n appendToQueryRepresentation(getContext().escape(getContext().getTransformedTerm(clause).toLowerCase()));\n }\n }",
"java.lang.String getQueryLogicName();",
"RewrittenStatement rewrite(String sql, Binding params);",
"public String getSql() {\r\n String[] splitSql = this.origSql.split(\"\\\\Q\" + IN_PARAM_ESC + \"\\\\E\");\r\n StringBuffer compSql = new StringBuffer(splitSql[0]);\r\n Integer key = null;\r\n String value = IN_PARAM_ESC;\r\n for (int i = 1; i < splitSql.length && this.inMaxSqlLength(compSql.length()); i++) {\r\n key = new Integer(i);\r\n value = IN_PARAM_ESC;\r\n if (this.paramMap.containsKey(key)) {\r\n Object x = this.paramMap.get(key);\r\n value = getSqlString(x);\r\n }\r\n compSql.append(value);\r\n compSql.append(splitSql[i]);\r\n }\r\n key = new Integer(splitSql.length);\r\n value = this.origSql.lastIndexOf(IN_PARAM_ESC) == (this.origSql.length() - 1) ?\r\n IN_PARAM_ESC : \"\";\r\n if (this.paramMap.containsKey(key) && this.inMaxSqlLength(compSql.length())) {\r\n Object x = this.paramMap.get(key);\r\n value = getSqlString(x);\r\n }\r\n compSql.append(value);\r\n \r\n if (!this.inMaxSqlLength(compSql.length())) {\r\n compSql.delete(this.maxSqlLength, compSql.length());\r\n compSql.append(INCOMPLETE);\r\n }\r\n \r\n return compSql.toString();\r\n }",
"PackageClause getPackageClause();",
"public static boolean premiseContains(String clause, String p){\n\tString premise = clause.split(\"=>\")[0];\n\tString[] conjuncts = premise.split(\"&\");\n\t// check if p is in the premise\n\tif (conjuncts.length==1)\n\t\treturn premise.equals(p);\n\telse\n\t\treturn Arrays.asList(conjuncts).contains(p);\n}",
"AliasStatement createAliasStatement();",
"public static String normalizeQuery(String txt) {\n if (txt == null) {\n return null;\n }\n\n return normalize(txt)\n .replaceAll(\" or \", \" OR \")\n .replaceAll(\" and \", \" AND \");\n }",
"protected void applyWhere(SQL sql, MaterialTypeExample example, boolean includeExamplePhrase) {\r\n if (example == null) {\r\n return;\r\n }\r\n \r\n String parmPhrase1;\r\n String parmPhrase1_th;\r\n String parmPhrase2;\r\n String parmPhrase2_th;\r\n String parmPhrase3;\r\n String parmPhrase3_th;\r\n if (includeExamplePhrase) {\r\n parmPhrase1 = \"%s #{example.oredCriteria[%d].allCriteria[%d].value}\";\r\n parmPhrase1_th = \"%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}\";\r\n parmPhrase2 = \"%s #{example.oredCriteria[%d].allCriteria[%d].value} and #{example.oredCriteria[%d].criteria[%d].secondValue}\";\r\n parmPhrase2_th = \"%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{example.oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}\";\r\n parmPhrase3 = \"#{example.oredCriteria[%d].allCriteria[%d].value[%d]}\";\r\n parmPhrase3_th = \"#{example.oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}\";\r\n } else {\r\n parmPhrase1 = \"%s #{oredCriteria[%d].allCriteria[%d].value}\";\r\n parmPhrase1_th = \"%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}\";\r\n parmPhrase2 = \"%s #{oredCriteria[%d].allCriteria[%d].value} and #{oredCriteria[%d].criteria[%d].secondValue}\";\r\n parmPhrase2_th = \"%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}\";\r\n parmPhrase3 = \"#{oredCriteria[%d].allCriteria[%d].value[%d]}\";\r\n parmPhrase3_th = \"#{oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}\";\r\n }\r\n \r\n StringBuilder sb = new StringBuilder();\r\n List<Criteria> oredCriteria = example.getOredCriteria();\r\n boolean firstCriteria = true;\r\n for (int i = 0; i < oredCriteria.size(); i++) {\r\n Criteria criteria = oredCriteria.get(i);\r\n if (criteria.isValid()) {\r\n if (firstCriteria) {\r\n firstCriteria = false;\r\n } else {\r\n sb.append(\" or \");\r\n }\r\n \r\n sb.append('(');\r\n List<Criterion> criterions = criteria.getAllCriteria();\r\n boolean firstCriterion = true;\r\n for (int j = 0; j < criterions.size(); j++) {\r\n Criterion criterion = criterions.get(j);\r\n if (firstCriterion) {\r\n firstCriterion = false;\r\n } else {\r\n sb.append(\" and \");\r\n }\r\n \r\n if (criterion.isNoValue()) {\r\n sb.append(criterion.getCondition());\r\n } else if (criterion.isSingleValue()) {\r\n if (criterion.getTypeHandler() == null) {\r\n sb.append(String.format(parmPhrase1, criterion.getCondition(), i, j));\r\n } else {\r\n sb.append(String.format(parmPhrase1_th, criterion.getCondition(), i, j,criterion.getTypeHandler()));\r\n }\r\n } else if (criterion.isBetweenValue()) {\r\n if (criterion.getTypeHandler() == null) {\r\n sb.append(String.format(parmPhrase2, criterion.getCondition(), i, j, i, j));\r\n } else {\r\n sb.append(String.format(parmPhrase2_th, criterion.getCondition(), i, j, criterion.getTypeHandler(), i, j, criterion.getTypeHandler()));\r\n }\r\n } else if (criterion.isListValue()) {\r\n sb.append(criterion.getCondition());\r\n sb.append(\" (\");\r\n List<?> listItems = (List<?>) criterion.getValue();\r\n boolean comma = false;\r\n for (int k = 0; k < listItems.size(); k++) {\r\n if (comma) {\r\n sb.append(\", \");\r\n } else {\r\n comma = true;\r\n }\r\n if (criterion.getTypeHandler() == null) {\r\n sb.append(String.format(parmPhrase3, i, j, k));\r\n } else {\r\n sb.append(String.format(parmPhrase3_th, i, j, k, criterion.getTypeHandler()));\r\n }\r\n }\r\n sb.append(')');\r\n }\r\n }\r\n sb.append(')');\r\n }\r\n }\r\n \r\n if (sb.length() > 0) {\r\n sql.WHERE(sb.toString());\r\n }\r\n }",
"public final AstValidator.define_clause_return define_clause() throws RecognitionException {\n AstValidator.define_clause_return retval = new AstValidator.define_clause_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree DEFINE47=null;\n AstValidator.alias_return alias48 =null;\n\n AstValidator.cmd_return cmd49 =null;\n\n AstValidator.func_clause_return func_clause50 =null;\n\n\n CommonTree DEFINE47_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:184:15: ( ^( DEFINE alias ( cmd | func_clause ) ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:184:17: ^( DEFINE alias ( cmd | func_clause ) )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n DEFINE47=(CommonTree)match(input,DEFINE,FOLLOW_DEFINE_in_define_clause573); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n DEFINE47_tree = (CommonTree)adaptor.dupNode(DEFINE47);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(DEFINE47_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_alias_in_define_clause575);\n alias48=alias();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, alias48.getTree());\n\n\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:184:33: ( cmd | func_clause )\n int alt7=2;\n int LA7_0 = input.LA(1);\n\n if ( (LA7_0==EXECCOMMAND) ) {\n alt7=1;\n }\n else if ( (LA7_0==FUNC||LA7_0==FUNC_REF) ) {\n alt7=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 7, 0, input);\n\n throw nvae;\n\n }\n switch (alt7) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:184:35: cmd\n {\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_cmd_in_define_clause579);\n cmd49=cmd();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, cmd49.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 2 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:184:41: func_clause\n {\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_func_clause_in_define_clause583);\n func_clause50=func_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, func_clause50.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }",
"private String parseConjunction(Expression<String> exp) throws Exception{\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\tfor (Expression<String> keyword : exp.getChildren()) {\r\n \t\tif(builder.length() > 0) {\r\n \t\t\tbuilder.append(\" \");\r\n\t\t\t}\r\n \t\tString kw = keyword.getAllK().toArray()[0].toString();\r\n \t\tif (kw.length() > KEYWORD_LENGTH_MAX) {\r\n \t\t\tthrow new KeywordLengthViolationException(KEYWORD_LENGTH_MAX_ERROR);\r\n \t\t}\r\n \t\tif (keyword.getExprType() == \"variable\") {\r\n \t\t\tbuilder.append(kw);\r\n \t\t} else if (keyword.getExprType() == \"not\") {\r\n \t\t\tbuilder.append(\"-\" + kw);\r\n \t\t}\r\n \t}\r\n\t\treturn builder.toString();\r\n\t}",
"@Test void testCaseExpressionDialect1() {\n sql(\"case x when 2, 4 then 3 ^when^ then 5 else 4 end\")\n .fails(\"(?s)Encountered \\\"when then\\\" at .*\");\n }",
"String getExpression();",
"String getExpression();",
"@Override\r\n\tpublic String getCondition(String[] sql) {\n\t\treturn sql[4];\r\n\t}",
"protected String getSql(MethylDbQuerier params, String chr) \n\tthrows Exception{\n\t\tString methTable = tablePrefix + chr;\n\t\t//String methTable = params.methylTablePrefix;\n\t\tString sql = String.format(\"select * from %s WHERE \", methTable);\n\t\tsql += \"ABaseRefUpperCase != '0'\";\n\t\tsql += \" AND BBaseRefUpperCase != '0'\";\n\t\t\n\t\tsql += \" AND (ACReads != 0 OR BCReads != 0)\";\n\t\tsql += \" AND (ATReads != 0 OR BTReads != 0)\";\n\t\t//sql += \" AND (ACReads + ATReads)/totalReads >= \" + minAlleleFreq;\n\t\t//sql += \" AND (BCReads + BTReads)/totalReads >= \" + minAlleleFreq;\n\t\t//sql += \" AND (ACReads + ATReads >= \" + minAlleleCount + \")\";\n\t\t//sql += \" AND (BCReads + BTReads >= \" + minAlleleCount + \")\";\n\t\tsql += \" AND aReadsOpposite/totalReadsOpposite <= \" + minOppoAFreq;\n\t\tif (Cpg){\n\t\t\tsql += \" AND nextBaseRefUpperCase = 'G'\";\n\t\t}\n\t\t\t\n\t\t//sql += \" GROUP BY chromPos \"; // If you don't do this, you get multiple instances of the same CpG if it overlaps multiple features.\n\t\tsql += \" ORDER BY chromPos,alleleChromPos ;\";\n\t\t\n\t\treturn sql;\n\t}",
"SqlCaseWhen createSqlCaseWhen();",
"public void createQuery(String s) throws HibException;",
"public T caseClause(Clause object)\n {\n return null;\n }",
"protected void generateFromClause( WrqInfo wrqInfo, SQLStatementWithParams sqlStatement ) throws BindingException\n {\n sqlStatement.append(\" FROM \");\n WrqBindingSet bs = wrqInfo.getResultingBindingSet();\n resolvedBindingSets.addAll(bs.getResolvedBindingSets());\n sqlStatement.append(wrqInfo.getSQLSelectWithParams()); \n }",
"String getCallSql(String name);",
"public String getConstraintClauseNumber() {\n return clause;\n }",
"protected void visitImpl(final EmailClause clause) {\n \n if(!isEmptyLeaf(clause)){\n appendToQueryRepresentation(getContext().escape(getContext().getTransformedTerm(clause).toLowerCase()));\n }\n }",
"java.lang.String getCondition();",
"public Query parseQuery(String query) {\n\t\tint start = 0;\n\n\t\t// General routine: scan the query to identify a literal, and put that literal into a list.\n\t\t//\tRepeat until a + or the end of the query is encountered; build an AND query with each\n\t\t//\tof the literals found. Repeat the scan-and-build-AND-query phase for each segment of the\n\t\t// query separated by + signs. In the end, build a single OR query that composes all of the built\n\t\t// AND subqueries.\n\n\t\tList<Query> allSubqueries = new ArrayList<>();\n\t\tdo {\n\t\t\t// Identify the next subquery: a portion of the query up to the next + sign.\n\t\t\tStringBounds nextSubquery = findNextSubquery(query, start);\n\t\t\t// Extract the identified subquery into its own string.\n\t\t\tString subquery = query.substring(nextSubquery.start, nextSubquery.start + nextSubquery.length);\n\n\t\t\tint subStart = 0;\n\n\t\t\t// Store all the individual components of this subquery.\n\t\t\tList<Query> subqueryLiterals = new ArrayList<>(0);\n\n\t\t\tdo {\n\t\t\t\t// Extract the next literal from the subquery.\n\t\t\t\tLiteral lit = findNextLiteral(subquery, subStart);\n\n\t\t\t\t// Add the literal component to the conjunctive list.\n\t\t\t\tsubqueryLiterals.add(lit.literalComponent);\n\n\t\t\t\t// Set the next index to start searching for a literal.\n\t\t\t\tsubStart = lit.bounds.start + lit.bounds.length;\n\n\t\t\t} while (subStart < subquery.length()-1);\n\n\t\t\t// After processing all literals, we are left with a conjunctive list\n\t\t\t// of query components, and must fold that list into the final disjunctive list\n\t\t\t// of components.\n\n\t\t\t// If there was only one literal in the subquery, we don't need to AND it with anything --\n\t\t\t// its component can go straight into the list.\n\t\t\tif (subqueryLiterals.size() == 1) {\n\t\t\t\tallSubqueries.add(subqueryLiterals.get(0));\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// With more than one literal, we must wrap them in an AndQuery component.\n\t\t\t\tallSubqueries.add(new AndQuery(subqueryLiterals));\n\t\t\t}\n\t\t\tstart = nextSubquery.start + nextSubquery.length;\n\t\t} while (start < query.length());\n\n\t\t// After processing all subqueries, we either have a single component or multiple components\n\t\t// that must be combined with an OrQuery.\n\t\tif (allSubqueries.size() == 1) {\n\t\t\treturn allSubqueries.get(0);\n\t\t}\n\t\telse if (allSubqueries.size() > 1) {\n\t\t\treturn new OrQuery(allSubqueries);\n\t\t}\n\t\telse {\n\t\t\treturn null;\n\t\t}\n\t}"
]
| [
"0.6371254",
"0.6371254",
"0.554105",
"0.55285907",
"0.5509327",
"0.5391444",
"0.5333151",
"0.5276164",
"0.5212917",
"0.51626897",
"0.5157493",
"0.5131782",
"0.51034254",
"0.5089558",
"0.50534266",
"0.5039065",
"0.501003",
"0.4990501",
"0.49639356",
"0.4963585",
"0.49329492",
"0.4928281",
"0.49155712",
"0.48785704",
"0.48723286",
"0.48651677",
"0.48622882",
"0.48405594",
"0.48334342",
"0.4811212",
"0.48002112",
"0.47983924",
"0.47983778",
"0.47982395",
"0.4787907",
"0.47652188",
"0.47635248",
"0.4761174",
"0.47597915",
"0.47526255",
"0.47478858",
"0.4723304",
"0.47167805",
"0.47141054",
"0.47100797",
"0.46935308",
"0.468976",
"0.4686917",
"0.46864536",
"0.46764344",
"0.46667242",
"0.4664741",
"0.46544445",
"0.46491286",
"0.46477666",
"0.46463326",
"0.4644655",
"0.46442223",
"0.46441862",
"0.4643822",
"0.4618619",
"0.46064878",
"0.4605574",
"0.45869157",
"0.45864782",
"0.45766297",
"0.45711678",
"0.4570373",
"0.45623758",
"0.45597997",
"0.45528093",
"0.45512956",
"0.45497853",
"0.45475405",
"0.4545778",
"0.45417005",
"0.4538021",
"0.45364565",
"0.45308447",
"0.45256105",
"0.45220405",
"0.45193222",
"0.45180392",
"0.45168558",
"0.45113948",
"0.45110825",
"0.45089203",
"0.4499937",
"0.44995087",
"0.44995087",
"0.44990644",
"0.44976088",
"0.4485099",
"0.44785863",
"0.44767106",
"0.44745237",
"0.44733945",
"0.4473288",
"0.4473288",
"0.4464218",
"0.44626215"
]
| 0.0 | -1 |
Check if token is an operator | public static boolean isOperator(String token) {
if (Connective.getValueFromSymbol(token) == null) {
return false;
} else {
return true;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static boolean isOperator(String token) {\n\t\treturn OPERATORS.containsKey(token);\n\t}",
"boolean hasOperator();",
"private boolean isOperator(String op){\n return (op.equals(\"+\") || op.equals(\"-\") || op.equals(\"*\") || op.equals(\"/\"));\n }",
"public boolean isOperator(char operator) {\r\n \tif (operator == '+' || operator == '-' ||\r\n \t\t\t\toperator == '*' || operator == '/' || \r\n \t\t\t\toperator == '^' || operator == '%') {\r\n \t\t\r\n \t\treturn true;\r\n \t} else {\r\n \t\treturn false;\r\n \t}\r\n \r\n }",
"private boolean isOperator(String operator)\n {\n switch(operator)\n {\n case \"+\":\n case \"-\":\n case \"*\":\n case \"/\":\n case \"%\":\n return true;\n default:\n return false;\n }\n }",
"public boolean isOperator() {\n\t\treturn (letter == '+') || (letter == '*') ||\n\t\t\t (letter == '%') || (letter == '-') ? true : false;\n\t}",
"private void processOperator() {\r\n\t\tif (expression[currentIndex] == '*') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.AND_STRING);\r\n\t\t} else if (expression[currentIndex] == '+') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.OR_STRING);\r\n\t\t} else if (expression[currentIndex] == '!') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.NOT_STRING);\r\n\t\t} else {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.XOR_STRING);\r\n\t\t\t// xor operator has 2 characters more than any other operator.\r\n\t\t\tcurrentIndex += 2;\r\n\t\t}\r\n\r\n\t\tcurrentIndex++;\r\n\t}",
"private boolean isOperator(char ch)\n {\n if (ch == '+' || ch == '-' || ch == '*' || ch == '/' || ch == '^')\n//returns true if either of the operator is found\n return true;\n//else returns false\n return false;\n }",
"public boolean validOperator(char op){\n switch(op){\n case '+':\n case '-':\n case '*':\n case '/':\n case '^':\n case ')':\n case '(':\n return true;\n }\n\n return false;\n }",
"private boolean isOperator(String input) {\n return new String(this.operator).contains(input);\n }",
"private boolean isOperator(char input) {\n\t\tboolean isOperator = false;\n\t\t\n\t\tif((input == '+') || (input == '-') || (input == '*') || (input == '/'))\n\t\t{\n\t\t\tisOperator = true;\n\t\t}\n\t\t\n\t\treturn isOperator;\n\t}",
"private boolean isOperator(char x) {\n return (x == '^' ||\n x == '*' ||\n x == '/' ||\n x == '+' ||\n x == '-');\n }",
"private boolean isOperator(String s) {\n\t\treturn (s.equals(\"+\") || s.equals(\"-\") || s.equals(\"*\") || s.equals(\"/\") || s.equals(\"^\"));\n\t}",
"private boolean isOperator(char c) {\n\t\treturn c == '<' || c == '=' || c == '>' || c == '!';\n\t}",
"private boolean isOperator(String value) {\r\n return value.equals(\"*\") || value.equals(\"/\") || value.equals(\"-\") || value.equals(\"+\") || value.equals(\"(\") || value.equals(\")\");\r\n }",
"public boolean isOperator(){\n return true;\n }",
"private boolean isOperator(char ch) {\r\n\t\treturn (ch == '+' || ch == '-' || ch == '*' || ch == '/');\r\n\t}",
"public static boolean isOperator(String name) {\n if (name.length() == 0) {\n return false;\n }\n // Pieced together from various sources (JsYaccLexer, DefaultJsParser, ...)\n switch (name.charAt(0)) {\n case '+':\n return name.equals(\"+\") || name.equals(\"+@\");\n case '-':\n return name.equals(\"-\") || name.equals(\"-@\");\n case '*':\n return name.equals(\"*\") || name.equals(\"**\");\n case '<':\n return name.equals(\"<\") || name.equals(\"<<\") || name.equals(\"<=\") || name.equals(\"<=>\");\n case '>':\n return name.equals(\">\") || name.equals(\">>\") || name.equals(\">=\");\n case '=':\n return name.equals(\"=\") || name.equals(\"==\") || name.equals(\"===\") || name.equals(\"=~\");\n case '!':\n return name.equals(\"!=\") || name.equals(\"!~\");\n case '&':\n return name.equals(\"&\") || name.equals(\"&&\");\n case '|':\n return name.equals(\"|\") || name.equals(\"||\");\n case '[':\n return name.equals(\"[]\") || name.equals(\"[]=\");\n case '%':\n return name.equals(\"%\");\n case '/':\n return name.equals(\"/\");\n case '~':\n return name.equals(\"~\");\n case '^':\n return name.equals(\"^\");\n case '`':\n return name.equals(\"`\");\n default:\n return false;\n }\n }",
"public boolean isOperator(char ch) {\n if (ch == '+' || ch == '-' || ch == '*' || ch == '/' || ch == '^' || ch == '(' || ch == ')') {\n return true;\n }\n else {\n return false;\n }\n }",
"private static boolean isOperator(String value){\r\n\t\tif (value.equals(\"+\") ||value.equals(\"-\")|| value.equals(\"*\")|| value.equals(\"/\"))\r\n\t\t\treturn true;\r\n\t\telse return false;\r\n\t}",
"public static boolean isOperator(char c){\n return c == '+' || c == '-' || c == '*' || c == '/' || c == '%' \n || c == '(' || c == ')';\n }",
"public boolean isOperator(char c){\n char[] operator = { '+', '-', '*', '/','^', ')', '(' };\r\n int temp = 0;\r\n for (int i = 0; i < operator.length; i++) {\r\n if (c == operator[i])\r\n temp +=1;\r\n }\r\n return temp != 0;\r\n }",
"private static boolean isOperator(char c) {\n return c == '+' ||\n c == '-' ||\n c == '*' ||\n c == '/';\n }",
"public boolean isOperator(final char ch) {\n return (ch == '+' || ch == '-' \n || ch == '*' || ch == '/' \n || ch == '^');\n }",
"boolean operator(Character input){\r\n //detects operands\r\n if(input == '^'||input == '-'||input == '+'||input == '/'||input == '*'|| input =='('|| input ==')'){\r\n return true;\r\n }\r\n else\r\n return false;\r\n }",
"private static boolean isOperator(String c)\n\t\t{\t\n\t\t\tif (c.equals(\"+\") || c.equals(\"-\") || c.equals(\"*\") || c.equals(\"/\") ) \n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\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}",
"private boolean isSymbolOperatorAhead() {\r\n\t\treturn expression[currentIndex] == '*' || expression[currentIndex] == '+' || expression[currentIndex] == '!'\r\n\t\t\t\t|| (currentIndex + 2 < expression.length && expression[currentIndex] == ':'\r\n\t\t\t\t\t\t&& expression[currentIndex + 1] == '+' && expression[currentIndex + 2] == ':');\r\n\t}",
"private static char getOperator() throws ParseError {\n TextIO.skipBlanks(); // Skip past any blanks in the input.\n\n char op = TextIO.peek();\n\n if ( op == '+' || op == '-' || op == '*' || op == '/' )\n TextIO.getAnyChar(); // Read the operator.\n else\n throw new ParseError( \"Found \" + op + \" instead of an operator.\" );\n\n return op;\n\n }",
"static boolean isOperator(char c) {\n return \"+\\u2212\\u00d7\\u00f7/*\".indexOf(c) != -1;\n }",
"public boolean isOperator(char character) {\n\t\tfor (int index= 0; index < JAVA_OPERATORS.length; index++) {\n\t\t\tif (JAVA_OPERATORS[index] == character)\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"private boolean isOperator (String s){ \n for (int i = 0; i<operators.length; i++){\n if (s.equals(operators[i])){\n return true;\n }\n }\n return false;\n }",
"private static boolean check_if_operator(char c)\n {\n return c == '+' || c == '-' || c == '*' || c == '/' || c == '^'|| c == 'r'\n || c == '(' || c == ')'|| c == 's' || c == 'c' || c == 't' || c == 'l';\n }",
"public boolean isOperator(char ch) {\n\t\tString operatorPrefixes = \"=<>+*-/\";\n\t\tif (operatorPrefixes.indexOf(ch) != -1) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isValidOperator(String op)\n {\n return (normalizeOperator(op) != null);\n }",
"private void setOperatorToken() {\n\t\t\n\t\tif (currentIndex + 1 >= data.length)\n\t\t\tthrow new QueryLexerException(\"Invalid input. After operator must come text\");\n\t\t\n\t\tif (isOperator(data[currentIndex + 1])) {\n\t\t\t// two symbol operator\n\t\t\t\tif(data[currentIndex + 1] != '=') \n\t\t\t\t\tthrow new QueryLexerException(\"Invalid operator.\");\n\t\t\t\t\n\t\t\t\tif(data[currentIndex] == '=')\n\t\t\t\t\tthrow new QueryLexerException(\"Invalid operator.\");\n\t\t\t\t\n\t\t\t\tString operator = new String(data, currentIndex, 2);\n\t\t\t\ttoken = new Token(TokenType.OPERATOR, operator);\n\t\t\t\tcurrentIndex += 2;\n\t\t} else {\n\t\t\t// just one symbol operator\n\t\t\tif (data[currentIndex] == '!')\n\t\t\t\tthrow new QueryLexerException(\"Invalid operator.\");\n\t\t\t\n\t\t\ttoken = new Token(TokenType.OPERATOR, String.valueOf(data[currentIndex]));\n\t\t\tcurrentIndex++;\n\t\t}\n\t}",
"public static boolean checkOperator(String inputChar){\r\n\t\tchar tempChar = inputChar.charAt(0);\r\n\t\t\r\n\t\tswitch(tempChar){\r\n\t\t\tcase '+': return true;\r\n\t\t\tcase '-': return true;\r\n\t\t\tcase '*': return true;\r\n\t\t\tcase '/': return true;\r\n\t\t\tcase '%': return true;\r\n\t\t\tcase '&': return true;\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}",
"java.lang.String getOperator();",
"public void checkOperator (TextView tv){\n String s = tv.getText().toString().substring(tv.getText().length() - 1);\n if (s.equals(\")\") || s.equals(\"!\")) {\n //int a = 1;\n isOperator = false;\n } else if (Character.isDigit(tv.getText().toString().charAt(tv.getText().toString().length() - 1)))\n isOperator = false;\n else\n isOperator = true;\n }",
"String getOperator();",
"private Token getNextOperator() {\n char currChar = this.data[currentIndex];\n\n if (currChar == '+' || currChar == '-' || currChar == '*' || currChar == '/' || currChar == '^') {\n currentIndex++;\n return new Token(TokenType.OPERATOR, currChar);\n } else {\n throw new LexerException(\"Invalid character in tags\");\n }\n }",
"private boolean isArithOp() throws IOException\n\t{\n\t\tboolean isValid = false;\n\t\t\n\t\tif(isRelation())\n\t\t{\n\t\t\tif(theNextToken.TokenType == TokenType.PLUS)\n\t\t\t{\n\t\t\t\tupdateToken();\n\t\t\t\tupdateToken();\n\t\t\t\t\n\t\t\t\tif(isArithOp())\n\t\t\t\t{\n\t\t\t\t\tisValid = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(theNextToken.TokenType == TokenType.MINUS)\n\t\t\t{\n\t\t\t\tupdateToken();\n\t\t\t\tupdateToken();\n\t\t\t\t\n\t\t\t\tif(isArithOp())\n\t\t\t\t{\n\t\t\t\t\tisValid = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tisValid = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn isValid;\n\t}",
"public final SymbolNode getOperator() { return this.operator; }",
"public String operator( String op);",
"boolean isOp();",
"public String getOperator() {\n return operator;\n }",
"public String getOperator()\r\n {\r\n return operator;\r\n }",
"public String operator() {\n return this.operator;\n }",
"private boolean dividingByZero(String operator){\n if (numStack.peek() == 0 && operator.equals(\"/\")){\n return true;\n }\n return false;\n }",
"public String getOperator() {\n return operator;\n }",
"public String getOperator() {\n return operator;\n }",
"public String getOperator() {\n return operator;\n }",
"public String getOperator() {\n return operator;\n }",
"public String getOperator() {\n return operator;\n }",
"public String getOperator() {\n return operator;\n }",
"private boolean hasPrecedence(char op1, char op2) {\n if (op1 == '(' || op1 == ')') {\n return false;\n }\n if ((op1 == '+' || op1 == '-') && (op2 == '*' || op2 == '/')) {\n return false;\n }\n return true;\n }",
"public boolean checkOperation(char operation) {\n boolean result = false;\n if (operation == '+' | operation == '-' | operation == '/' | operation == '*') {\n result = true;\n }\n return result;\n }",
"public void processSingleToken(String[] token){\n for (int i =0; i<token.length; i++){ \n\n if (isOperator(token[i])){ //Checks if token[i] is an operator by calling isOperator()\n processOperator(token[i]); //Method on line 52\n }\n else if (token[i].equals(\"d\")){\n printStack();//method on line \n }\n else if (token[i].equals(\"r\")){\n addRValueToStack();\n }\n else if (token[i].equals(\"=\")){\n printOutResult();\n }\n else if(isInteger(token[i])){ //Checks if token[i] is an integer by calling isInteger()\n addToStack(token[i]);\n }\n else{\n System.out.println(\"Unrecognised operator or operand \\\"\" + token[i] + \"\\\".\");\n } \n }\n }",
"public String getOperator()\r\n\t{\r\n\t\tSystem.out.println(\"Choose the any operation from the following operations:\");\r\n System.out.println(\"1.+\");\r\n System.out.println(\"2.-\");\r\n System.out.println(\"3.*\");\r\n System.out.println(\"4./\");\r\n \r\n\t\tString op=sc.next();\r\n\t\treturn op;\r\n\t}",
"public String getOperator() {\n\t\treturn operator;\n\t}",
"public String getOperator() {\n\t\treturn operator;\n\t}",
"public BSJRuleJavaOperators(IToken token) {\n\t\tfToken= token;\n\t}",
"@Test\r\n\tpublic void testTokenizeOperator() {\r\n\r\n\t\t// Enter the code\r\n\r\n\t\tdriver.findElement(By.name(\"code[code]\"))\r\n\t\t\t\t.sendKeys(\"the_best_cat = \\\"Noogie Cat\\\"\\nputs \\\"The best cat is: \\\" + the_best_cat\");\r\n\r\n\t\t// Look for the \"Tokenize\" button and click\r\n\r\n\t\tdriver.findElements(By.name(\"commit\")).get(0).click();\r\n\r\n\t\t// Check that there is corresponding quantity of the word \":on_op\"\r\n\r\n\t\ttry {\r\n\t\t\tWebElement code = driver.findElement(By.tagName(\"code\"));\r\n\t\t\tString res = code.getText();\r\n\t\t\tint count = 0;\r\n\t\t\tfor (int i = 0; i <= res.length() - 6; i++) {\r\n\t\t\t\tString sub = res.substring(i, i + 6);\r\n\t\t\t\tif (sub.equals(\":on_op\"))\r\n\t\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t\tassertEquals(count, 2);\r\n\t\t} catch (NoSuchElementException nseex) {\r\n\t\t\tfail();\r\n\t\t}\r\n\t}",
"public boolean isOp ( ) {\n\t\treturn extract ( handle -> handle.isOp ( ) );\n\t}",
"Object findOperatorNeedCheck();",
"private Operator checkOperator(char c){\n if (c == '+'){\n return new AddOperator(); \n }\n else if (c == '-'){\n return new SubOperator(); \n }\n else if (c == '*'){\n return new MulOperator(); \n }\n else if (c == '/'){\n return new DivOperator(); \n }\n else \n return null;\n }",
"public boolean isOp(){\n return opSet.contains(symbol());\n }",
"static boolean isaNonMinusOperator(char s){\n boolean nonMinusOperator = false;\n switch (s){\n case '+':nonMinusOperator = true; break;\n case '*':nonMinusOperator = true; break;\n case '/':nonMinusOperator = true; break;\n case '^':nonMinusOperator = true; break;\n }\n return nonMinusOperator;\n }",
"private static boolean checkValidTokenSequence(String curToken, String lastToken){\n\t\t//If an operand or right bracket comes directly before an operand return false\n\t\tif(curToken.equals(\"operand\") && (lastToken.equals(\"operand\") || lastToken.equals(\"right bracket\"))){\n\t\t\treturn false;\n\t\t}\n\t\t//If an operator or left bracket comes directly before an operator, return false\n\t\telse if(curToken.equals(\"operator\") && (lastToken.equals(\"operator\") || lastToken.equals(\"left bracket\"))){\n\t\t\treturn false;\n\t\t}\n\t\t//If a left bracket or operator comes directly before a right bracket return false\n\t\telse if(curToken.equals(\"right bracket\") && (lastToken.equals(\"left bracket\") || lastToken.equals(\"operator\"))){\n\t\t\treturn false;\n\t\t}\n\t\t//If an operand or right bracket comes directly before a left bracket, return false\n\t\telse if(curToken.equals(\"left bracket\") && (lastToken.equals(\"operand\") || lastToken.equals(\"right bracket\"))){\n\t\t\treturn false;\n\t\t}\n\n\t\t//Otherwise the sequence is valid\n\t\treturn true;\n\t}",
"private static boolean checkPrecedence(String operator1, String operator2){\n\n\t\tif((operator1.equals(\"*\") || operator1.equals(\"/\")) && (operator2.equals(\"*\") || operator2.equals(\"/\"))){\n\t\t\treturn true;\n\t\t}\n\t\telse if((operator1.equals(\"*\") || operator1.equals(\"/\")) && (operator2.equals(\"+\") || operator2.equals(\"-\"))){\n\t\t\treturn true;\n\t\t}\n\t\telse if((operator1.equals(\"+\") || operator1.equals(\"-\")) && (operator2.equals(\"+\") || operator2.equals(\"-\"))){\n\t\t\treturn true;\n\t\t}\n\t\telse if((operator1.equals(\"+\") || operator1.equals(\"-\")) && (operator2.equals(\"*\") || operator2.equals(\"/\"))){\n\t\t\treturn false;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}",
"public void visit(Operator operator);",
"private Token negationCheck(Token pToken, Token pPrevToken) {\n if (pPrevToken == null || pPrevToken instanceof BinaryOperator || pPrevToken instanceof LeftParen) {\n pToken = new NegOperator();\n }\n return pToken;\n }",
"private final boolean IsBinaryOp(String expression, String symbol, String leftExpression, String rightExpression) {\r\n boolean isBinaryOp = false;\r\n if (expression.contains(symbol)) {\r\n int openParanthesisCount = 0;\r\n int closeParanthesisCount = 0;\r\n for (int i = 0; (i < expression.length()); i++) {\r\n String currentChar = expression.substring(i, 1);\r\n if ((currentChar.equals(symbol) \r\n && (openParanthesisCount == closeParanthesisCount))) {\r\n leftExpression = expression.substring(0, i);\r\n rightExpression = expression.substring((i + 1), (expression.length() - (i - 1)));\r\n isBinaryOp = true;\r\n break;\r\n }\r\n else if (currentChar.equals(\"(\")) {\r\n openParanthesisCount++;\r\n }\r\n else if (currentChar.equals(\")\")) {\r\n closeParanthesisCount++;\r\n }\r\n \r\n }\r\n \r\n }\r\n \r\n return isBinaryOp;\r\n }",
"private static boolean validOperation(String op) {\n\t\tfor (String goodOp : validOps) {\n\t\t\tif (goodOp.equalsIgnoreCase(op)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public InvalidOperatorException(char op){\n super(LocalizationHelper.getMessage(LocalizationHelper.Message.INVALID_OPERATOR, Character.toString(op)));\n }",
"public void setOperator(String operator) {\n this.operator = operator;\n }",
"public Code visitOperatorNode(ExpNode.OperatorNode node) {\n beginGen(\"Operator\");\n Code code;\n ExpNode args = node.getArg();\n switch (node.getOp()) {\n case ADD_OP:\n code = args.genCode(this);\n code.generateOp(Operation.ADD);\n break;\n case SUB_OP:\n code = args.genCode(this);\n code.generateOp(Operation.NEGATE);\n code.generateOp(Operation.ADD);\n break;\n case MUL_OP:\n code = args.genCode(this);\n code.generateOp(Operation.MPY);\n break;\n case DIV_OP:\n code = args.genCode(this);\n code.generateOp(Operation.DIV);\n break;\n case EQUALS_OP:\n code = args.genCode(this);\n code.generateOp(Operation.EQUAL);\n break;\n case LESS_OP:\n code = args.genCode(this);\n code.generateOp(Operation.LESS);\n break;\n case NEQUALS_OP:\n code = args.genCode(this);\n code.generateOp(Operation.EQUAL);\n code.genBoolNot();\n break;\n case LEQUALS_OP:\n code = args.genCode(this);\n code.generateOp(Operation.LESSEQ);\n break;\n case GREATER_OP:\n /* Generate argument values in reverse order and use LESS */\n code = genArgsInReverse((ExpNode.ArgumentsNode)args);\n code.generateOp(Operation.LESS);\n break;\n case GEQUALS_OP:\n /* Generate argument values in reverse order and use LESSEQ */\n code = genArgsInReverse((ExpNode.ArgumentsNode)args);\n code.generateOp(Operation.LESSEQ);\n break;\n case NEG_OP:\n code = args.genCode(this);\n code.generateOp(Operation.NEGATE);\n break;\n default:\n errors.fatal(\"PL0 Internal error: Unknown operator\",\n node.getLocation());\n code = null;\n }\n endGen(\"Operator\");\n return code;\n }",
"public static boolean isArithmeticOperand(char c)\n {\n return (c == '+') || (c == '-') || \n (c == '*') || (c == '/');\n }",
"private IMathExpr parseOperator(String expr, MathBinOper operator,\r\n boolean processLeft2Right) throws InvalidMathExprException {\r\n int startPos, endPos, step;\r\n \r\n if (processLeft2Right) { // Parse expression forwards.\r\n startPos = 0;\r\n endPos = expr.length();\r\n step = 1;\r\n } else { // Parse expression backwards.\r\n startPos = expr.length() - 1;\r\n endPos = -1; // Going backwards, even 0 index counts.\r\n step = -1;\r\n }\r\n \r\n int i = startPos;\r\n while (i != endPos) {\r\n if (this.isOutsideOfBracket(expr, i)) {\r\n char c = expr.charAt(i);\r\n \r\n if (c == operator.getSign()) {\r\n IMathExpr left = new MathExpr(expr.substring(0, i));\r\n IMathExpr right = new MathExpr(expr.substring(i + 1,\r\n expr.length()));\r\n \r\n return MathBinOper.buildBinaryOper(operator, left, right);\r\n }\r\n }\r\n \r\n i += step;\r\n }\r\n \r\n return null;\r\n }",
"void isToken(String p) {\r\n\t\tint n = 0;\r\n\t\t// switch statement that finds lexemes and tokens and add them to an arrayList\r\n\t\tString x = p;\r\n\t\tswitch (x) {\r\n\r\n\t\tcase \"int\":\r\n\t\t\tlexemes.add(\"int\");\r\n\t\t\ttokens.add(\"DATA_TYPE\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"double\":\r\n\t\t\tlexemes.add(\"double\");\r\n\t\t\ttokens.add(\"DATA_TYPE\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"<\":\r\n\t\t\tlexemes.add(\"<\");\r\n\t\t\ttokens.add(\"LESS_OP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"{\":\r\n\t\t\tlexemes.add(\"{\");\r\n\t\t\ttokens.add(\"OPEN_CURLB\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"String\":\r\n\t\t\tlexemes.add(\"String\");\r\n\t\t\ttokens.add(\"DATA_TYPE\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"char\":\r\n\t\t\tlexemes.add(\"char\");\r\n\t\t\ttokens.add(\"DATA_TYPE\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"=\":\r\n\t\t\tlexemes.add(\"=\");\r\n\t\t\ttokens.add(\"ASSIGN_OP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"float\":\r\n\t\t\tlexemes.add(\"float\");\r\n\t\t\ttokens.add(\"DATA_TYPE\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"-\":\r\n\t\t\tlexemes.add(\"-\");\r\n\t\t\ttokens.add(\"SUB_OP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"+\":\r\n\t\t\tlexemes.add(\"+\");\r\n\t\t\ttokens.add(\"ADD_OPP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"*\":\r\n\t\t\tlexemes.add(\"*\");\r\n\t\t\ttokens.add(\"MUL_OP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"/\":\r\n\t\t\tlexemes.add(\"/\");\r\n\t\t\ttokens.add(\"DIV_OP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"%\":\r\n\t\t\tlexemes.add(\"%\");\r\n\t\t\ttokens.add(\"MOD_OP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \">\":\r\n\t\t\tlexemes.add(\">\");\r\n\t\t\ttokens.add(\"GREAT_OP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"}\":\r\n\t\t\tlexemes.add(\"}\");\r\n\t\t\ttokens.add(\"CLOSE_CULRB\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"[\":\r\n\t\t\tlexemes.add(\"[\");\r\n\t\t\ttokens.add(\"OPEN_BRACK\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \":\":\r\n\t\t\tlexemes.add(\":\");\r\n\t\t\ttokens.add(\"COLON\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"]\":\r\n\t\t\tlexemes.add(\"]\");\r\n\t\t\ttokens.add(\"CLOSED_BRACK\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"(\":\r\n\t\t\tlexemes.add(\"(\");\r\n\t\t\ttokens.add(\"OPEN_PAR\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \",\":\r\n\t\t\tlexemes.add(\",\");\r\n\t\t\ttokens.add(\"COMMA\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \")\":\r\n\t\t\tlexemes.add(\")\");\r\n\t\t\ttokens.add(\"CLOSED_PAR\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \";\":\r\n\t\t\tlexemes.add(\";\");\r\n\t\t\ttokens.add(\"SEMICOLON\");\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tlexemes.add(x);\r\n\t\t\ttokens.add(\"IDENT\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}",
"public static boolean hasPrecedence(char op1, char op2) {\n\n\t\tif (op2 == '(' || op2 == ')') {\n\t\t\treturn false;\n\t\t}\n\n\t\tif ((op1 == '*' || op1 == '/') && (op2 == '+' || op2 == '-')){\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}",
"protected boolean supportsOperator(ColumnMetadata indexedColumn, Operator operator)\n {\n return operator.equals(Operator.EQ);\n }",
"public List<Character> getOperator() {\r\n\t\treturn operator;\r\n\t}",
"boolean tokenCanStart(Token token)\r\n {\r\n\r\n int type = token.getType();\r\n switch (type) {\r\n case MExprANTLRParserTokenTypes.NOT:\r\n case MExprANTLRParserTokenTypes.PLUS:\r\n case MExprANTLRParserTokenTypes.MINUS:\r\n case MExprANTLRParserTokenTypes.PLUSPLUS:\r\n case MExprANTLRParserTokenTypes.MINUSMINUS:\r\n case MExprANTLRParserTokenTypes.LBRACE:\r\n case MExprANTLRParserTokenTypes.LPAREN:\r\n case MExprANTLRParserTokenTypes.INT:\r\n case MExprANTLRParserTokenTypes.REAL:\r\n case MExprANTLRParserTokenTypes.ID:\r\n case MExprANTLRParserTokenTypes.STRING:\r\n case MExprANTLRParserTokenTypes.BLANK1:\r\n case MExprANTLRParserTokenTypes.IDBLANK1:\r\n case MExprANTLRParserTokenTypes.BLANKID1:\r\n case MExprANTLRParserTokenTypes.IDBLANKID1:\r\n case MExprANTLRParserTokenTypes.BLANK2:\r\n case MExprANTLRParserTokenTypes.IDBLANK2:\r\n case MExprANTLRParserTokenTypes.BLANKID2:\r\n case MExprANTLRParserTokenTypes.IDBLANKID2:\r\n case MExprANTLRParserTokenTypes.BLANK3:\r\n case MExprANTLRParserTokenTypes.IDBLANK3:\r\n case MExprANTLRParserTokenTypes.BLANKID3:\r\n case MExprANTLRParserTokenTypes.IDBLANKID3:\r\n case MExprANTLRParserTokenTypes.SLOT:\r\n case MExprANTLRParserTokenTypes.TYPESETEXPR:\r\n case MExprANTLRParserTokenTypes.PERCENT:\r\n case MExprANTLRParserTokenTypes.PERCENTNUMBER:\r\n case MExprANTLRParserTokenTypes.GET:\r\n return true;\r\n }\r\n\r\n return false;\r\n }",
"public static boolean operator(PsiBuilder builder_, int level_) {\n if (!recursion_guard_(builder_, level_, \"operator\")) return false;\n boolean result_ = false;\n Marker marker_ = builder_.mark();\n enterErrorRecordingSection(builder_, level_, _SECTION_GENERAL_, \"<operator>\");\n result_ = consumeToken(builder_, \"+\");\n if (!result_) result_ = consumeToken(builder_, \"-\");\n if (result_) {\n marker_.done(OPERATOR);\n }\n else {\n marker_.rollbackTo();\n }\n result_ = exitErrorRecordingSection(builder_, level_, result_, false, _SECTION_GENERAL_, null);\n return result_;\n }",
"private void getToken(){\n\t\tboolean primaryFirst=false;\t\t\t// determines whether the current token is a primary (true) or an operator (false)\n\t\tboolean primaryIsReal=false;\t\t// determines whether the current primary is a numerical number (true) or a name (false)\n\t\tboolean checkedPrimaryType=false;\t// determine whether the primary type has already been checked (true) or not (false)\n\t\t\n\t\twhile(true){\n\t\t\tcurr_pos++;\n\t\t\tif(curr_pos>input.length()-1){\n\t\t\t\tcurr_tok=token_value.END;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(\n\t\t\t\tinput.charAt(curr_pos)=='+' ||\n\t\t\t\tinput.charAt(curr_pos)=='-' ||\n\t\t\t\tinput.charAt(curr_pos)=='*'\t||\t\n\t\t\t\tinput.charAt(curr_pos)=='/'\t||\n\t\t\t\tinput.charAt(curr_pos)=='('\t||\n\t\t\t\tinput.charAt(curr_pos)==')'\t||\n\t\t\t\tinput.charAt(curr_pos)=='^'\t||\n\t\t\t\tinput.charAt(curr_pos)=='_'\t||\n\t\t\t\tinput.charAt(curr_pos)=='='\n\t\t\t){\n\t\t\t\tif(!primaryFirst){\n\t\t\t\t\tfor(int i=0; i<charToEnum.length; i++){\n\t\t\t\t\t\tif(input.charAt(curr_pos) == charToEnum[i]){\n\t\t\t\t\t\t\tcurr_tok=token_value.values()[i];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tcurr_pos--;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(!checkedPrimaryType){\n\t\t\t\t\tcheckedPrimaryType=true;\n\t\t\t\t\tint num = (int)input.charAt(curr_pos);\n\t\t\t\t\tif(num > 47 && num < 58){ // number case\n\t\t\t\t\t\tprimaryIsReal=true;\n\t\t\t\t\t}\n\t\t\t\t\tstring_value=\"\";\n\t\t\t\t}\n\t\t\t\tprimaryFirst=true;\n\t\t\t\tstring_value+=input.charAt(curr_pos);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(primaryFirst){\n\t\t\tif(primaryIsReal){\n\t\t\t\tnumber_value = Double.parseDouble(string_value);\n\t\t\t\tcurr_tok=token_value.NUMBER;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tcurr_tok=token_value.NAME;\n\t\t\t}\n\t\t}\n\t}",
"public boolean isToken(Type token){\n if(currentToken == -1) return false;\n return tokens.get(currentToken).type.equals(token);\n }",
"public boolean isOperand(String s)\n {\n return !Operator.isOperator(s) && !Brackets.isLeftBracket(s) && !Brackets.isRightBracket(s);\n }",
"public boolean isOprBiner() /*const*/{\n\t\treturn Tkn!=TipeToken.Not && Tkn!=TipeToken.Bilangan && !isPunctuator();\n\t}",
"public Operator getOperator() {\n return this.operator;\n }",
"@Test\r\n\tpublic void testParseOperator() {\r\n\r\n\t\t// find the number of operators in the input\r\n\r\n\t\tint add = 0;\r\n\t\tint minus = 0;\r\n\t\tint multiply = 0;\r\n\t\tint divide = 0;\r\n\t\tString input = \"a = 5\\nb = a - 1\\nc = a + (b / 2 * 4)\";\r\n\t\tfor (int i = 0; i < input.length(); i++) {\r\n\t\t\tif (input.charAt(i) == '+')\r\n\t\t\t\tadd++;\r\n\t\t\tif (input.charAt(i) == '-')\r\n\t\t\t\tminus++;\r\n\t\t\tif (input.charAt(i) == '*')\r\n\t\t\t\tmultiply++;\r\n\t\t\tif (input.charAt(i) == '/')\r\n\t\t\t\tdivide++;\r\n\t\t}\r\n\r\n\t\t// Enter the code\r\n\r\n\t\tdriver.findElement(By.name(\"code[code]\")).sendKeys(input);\r\n\r\n\t\t// Look for the \"Parse\" button and click\r\n\r\n\t\tdriver.findElements(By.name(\"commit\")).get(1).click();\r\n\r\n\t\t// Check that there contains corresponding quantity of operators\r\n\r\n\t\ttry {\r\n\t\t\tWebElement code = driver.findElement(By.tagName(\"code\"));\r\n\t\t\tString res = code.getText();\r\n\t\t\tint add1 = 0, minus1 = 0, multiply1 = 0, divide1 = 0;\r\n\t\t\tfor (int i = 0; i < res.length(); i++) {\r\n\t\t\t\tif (res.charAt(i) == '+')\r\n\t\t\t\t\tadd1++;\r\n\t\t\t\tif (res.charAt(i) == '-')\r\n\t\t\t\t\tminus1++;\r\n\t\t\t\tif (res.charAt(i) == '*')\r\n\t\t\t\t\tmultiply1++;\r\n\t\t\t\tif (res.charAt(i) == '/')\r\n\t\t\t\t\tdivide1++;\r\n\t\t\t}\r\n\t\t\tassertEquals(add, add1);\r\n\t\t\tassertEquals(minus, minus1);\r\n\t\t\tassertEquals(multiply, multiply1);\r\n\t\t\tassertEquals(divide, divide1);\r\n\t\t} catch (NoSuchElementException nseex) {\r\n\t\t\tfail();\r\n\t\t}\r\n\t}",
"@Override\n\tpublic String getOperator() {\n\t\treturn \"?\";\n\t}",
"final public void PendingOperatorBool() throws ParseException {String o, op1, op2, r;\n// Si la pila no esta vacía\n if( !pOperators.empty()) {\n\n // Y el tope de la pila es > < <> o ==\n if ( pOperators.peek() == \">\" || pOperators.peek() == \"<\" ||\n pOperators.peek() == \"<>\" || pOperators.peek() == \"==\" ) {\n\n // Sacar los operandos y el operador de las pilas\n op2 = (String)pOperands.pop();\n op1 = (String)pOperands.pop();\n o = (String)pOperators.pop();\n r = \"t\" + currentTemporal;\n\n currentTemporal++;\n\n // Crear un cuadruplo y meterlos\n Cuadruplo quad = new Cuadruplo(o, op1, op2, r);\n quadCounter++;\n pOperands.push(r);\n cuadruplos.addElement(quad);\n }\n }\n }",
"public void addop() {\n if (lexer.token != Symbol.PLUS && lexer.token != Symbol.MINUS) {\n error.signal(\"Wrong operator for addop. Using not a plus or not a minus.\");\n }\n lexer.nextToken();\n }",
"private static boolean isOperand(char ch) {\n return (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z');\n }",
"@Test\r\n\t\tpublic void testParseOperator() {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\tdriver.findElement(By.id(\"code_code\")).sendKeys(\"a = 5\\nb = 6\\nc = a + (b * 4)\");;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\tWebElement submitButton = driver.findElement(By.xpath(\"(//input[@name='commit'])[2]\"));\r\n\t\t\tsubmitButton.click();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tWebElement e = driver.findElement(By.tagName(\"code\"));\r\n\t\t\t\tString elementText = e.getText();\r\n\t\t\t\tassertTrue(elementText.contains(\"*\"));\r\n\t\t\t} catch (NoSuchElementException nseex) {\r\n\t\t\t\tfail();\r\n\t\t\t}\r\n\t\t}",
"public boolean isNotOperator(String substring) {\n\t\tString[] Operators = { \"*\", \"-\", \"+\", \"/\" };\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tif (substring.equals(Operators[i]))\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"private boolean isExpression() throws IOException\n\t{\n\t\tboolean isValid = false;\n\t\t\n\t\tif(isArithOp())\n\t\t{\n\t\t\tif(theNextToken.TokenType == TokenType.AND)\n\t\t\t{\n\t\t\t\tupdateToken();\n\t\t\t\tupdateToken();\n\t\t\t\t\n\t\t\t\tif(isExpression())\n\t\t\t\t{\n\t\t\t\t\tisValid = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(theNextToken.TokenType == TokenType.OR)\n\t\t\t{\n\t\t\t\tupdateToken();\n\t\t\t\tupdateToken();\n\t\t\t\t\n\t\t\t\tif(isExpression())\n\t\t\t\t{\n\t\t\t\t\tisValid = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tisValid = true;\n\t\t\t}\n\t\t}\n\t\telse if(theCurrentToken.TokenType == TokenType.NOT)\n\t\t{\n\t\t\tupdateToken();\n\t\t\tif(isArithOp())\n\t\t\t{\n\t\t\t\tisValid = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn isValid;\n\t}",
"public boolean usesExternalOperator()\n {\n return m_extOperator.trim().length() > 0;\n }",
"static boolean binaryOperator(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"binaryOperator\")) return false;\n boolean r;\n r = multiplicativeOperator(b, l + 1);\n if (!r) r = additiveOperator(b, l + 1);\n if (!r) r = shiftOperator(b, l + 1);\n if (!r) r = relationalOperator(b, l + 1);\n if (!r) r = consumeToken(b, EQ_EQ);\n if (!r) r = bitwiseOperator(b, l + 1);\n return r;\n }",
"@JsonProperty(\"operator\")\n public String getOperator() {\n return operator;\n }"
]
| [
"0.83493143",
"0.7944489",
"0.79354",
"0.78201604",
"0.78094715",
"0.779517",
"0.7688405",
"0.7637184",
"0.76070386",
"0.7598517",
"0.753938",
"0.7533456",
"0.75099313",
"0.7451475",
"0.74398994",
"0.74197227",
"0.74113333",
"0.74074674",
"0.7384716",
"0.73148495",
"0.73048544",
"0.7265495",
"0.7252218",
"0.7196558",
"0.719084",
"0.71568567",
"0.7117004",
"0.70703447",
"0.706502",
"0.7033613",
"0.7027119",
"0.7008901",
"0.6986897",
"0.69748956",
"0.69581616",
"0.68499774",
"0.67775804",
"0.6772709",
"0.671261",
"0.65448326",
"0.65273553",
"0.6513967",
"0.64601827",
"0.6330924",
"0.6270511",
"0.6262166",
"0.62353826",
"0.62319094",
"0.6228639",
"0.6228639",
"0.6228639",
"0.6228639",
"0.6228639",
"0.6228639",
"0.622549",
"0.61521584",
"0.6146459",
"0.6126731",
"0.6113784",
"0.6113784",
"0.60994536",
"0.60594594",
"0.6057495",
"0.6046762",
"0.60297596",
"0.602613",
"0.6020171",
"0.602009",
"0.60081863",
"0.5999113",
"0.5990579",
"0.5989494",
"0.5986246",
"0.5947212",
"0.5936437",
"0.592696",
"0.59231937",
"0.5918866",
"0.5905401",
"0.5898808",
"0.58876485",
"0.5885467",
"0.58815795",
"0.58729607",
"0.58711845",
"0.5864574",
"0.58332765",
"0.5829532",
"0.58287907",
"0.5827837",
"0.5826573",
"0.5824342",
"0.57990605",
"0.5797345",
"0.5792752",
"0.57806736",
"0.5770921",
"0.57620907",
"0.57549524",
"0.57504696"
]
| 0.82779986 | 1 |
/ If idCreateIfLessZero is negative, a new id is generated. | public PersistentShopkeeper newShopkeeper(long idCreateIfLessZero) throws PersistenceException {
if(idCreateIfLessZero > 0) return (PersistentShopkeeper)PersistentProxi.createProxi(idCreateIfLessZero, 192);
long id = ConnectionHandler.getTheConnectionHandler().theShopkeeperFacade.getNextId();
Shopkeeper result = new Shopkeeper(null,null,null,null,null,null,id);
Cache.getTheCache().put(result);
return (PersistentShopkeeper)PersistentProxi.createProxi(id, 192);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Long createId() {\n return System.currentTimeMillis() % 1000;\n }",
"private static Integer generateID() {\n Integer uniqueID = -1;\n while (setOfIDs.contains(uniqueID) || !Employee.isPositive(uniqueID)) {\n uniqueID += 1;\n }\n return uniqueID;\n }",
"private static int generateId() {\n\t\treturn ++sId;\n\t}",
"public int generateUniqueID(){\n\n int uniqueID = 100; \n int maxID =getMaxId() ;\n \n uniqueID = uniqueID + maxID;\n\n return uniqueID;\n }",
"private long generateID() {\n\t\treturn ++lastID;\n\t}",
"public static int getNewId() {\n int id;\n\n do {\n id = randomId.nextInt(Integer.MAX_VALUE);\n } while (generatedId.contains(id));\n\n generatedId.add(id);\n return id;\n }",
"private int generateNewId() {\n int size = userListCtrl.getUsers().size();\n \n if (size == 0) {\n return 1;\n } else {\n return userListCtrl.getUsers().get(size-1).getUserID()+1;\n }\n }",
"protected int generateUniqueId() {\n\t\tint id = super.getUniqueId();\n\t\tsuper.setUniqueId(getUniqueId() + 1);\n\t\treturn id;\n\t}",
"Id createId();",
"@PrePersist\n public void generateId() {\n if (this.id == null) {\n this.id = UUID.randomUUID().toString();\n }\n }",
"public int generateId() {\n if (allMessage.size() ==0) {\n return 1000;\n }\n return allMessage.get(allMessage.size() - 1).getId() + 1;\n }",
"public static int generateViewId() {\n\t\tdo {\n\t\t\tfinal int result = sNextGeneratedId.get();\n\t\t\t// aapt-generated IDs have the high byte nonzero; clamp to the range under that.\n\t\t\tint newValue = result + 1;\n\t\t\tif (newValue > 0x00FFFFFF){\n\t\t\t\tnewValue = 1; // Roll over to 1, not 0.\n\t\t\t}\n\t\t\tif (sNextGeneratedId.compareAndSet(result, newValue)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}while(true);\n\t}",
"@Override\n public long generateNewContractId() {\n return idCounter++;\n }",
"private static int generateViewId() {\n for (;;) {\n final int result = sNextGeneratedId.get();\n // aapt-generated IDs have the high byte nonzero; clamp to the range under that.\n int newValue = result + 1;\n if (newValue > 0x00FFFFFF) newValue = 1; // Roll over to 1, not 0.\n if (sNextGeneratedId.compareAndSet(result, newValue)) {\n return result;\n }\n }\n }",
"static String generateId() {\r\n\t\treturn UUID.randomUUID().toString().replaceAll(\"-\", \"\");\r\n\t}",
"private String creatUniqueID(){\n long ID = System.currentTimeMillis();\n return Long.toString(ID).substring(9,13);\n }",
"private static long newId() {\n return REQUEST_ID.getAndIncrement();\n }",
"public static int generateUniqueId(){\r\n String returnme = GregorianCalendar.getInstance().getTimeInMillis() + \"\";\r\n return Integer.parseInt(returnme.substring(returnme.length() - 9, returnme.length()));\r\n }",
"public void generateID()\n {\n ID = this.hashCode();\n }",
"public static int genID(){\n Random rand = new Random();\n\n int theID = rand.nextInt(999)+1;\n\n return theID;\n\n }",
"public int generateId(){\n return repository.getCount()+1;\n }",
"II addId();",
"private String nextID(String id) throws ConstraintViolationException {\r\n\t if (id == null) { // generate a new id\r\n\t if (idCounter == 0) {\r\n\t idCounter = Calendar.getInstance().get(Calendar.YEAR);\r\n\t } else {\r\n\t idCounter++;\r\n\t }\r\n\t return \"S\" + idCounter;\r\n\t } else {\r\n\t // update id\r\n\t int num;\r\n\t try {\r\n\t num = Integer.parseInt(id.substring(1));\r\n\t } catch (RuntimeException e) {\r\n\t throw new ConstraintViolationException(\r\n\t ConstraintViolationException.Code.INVALID_VALUE, e, new Object[] { id });\r\n\t }\r\n\t \r\n\t if (num > idCounter) {\r\n\t idCounter = num;\r\n\t }\r\n\t \r\n\t return id;\r\n\t }\r\n\t \r\n\t \r\n\t \r\n\t \r\n\t \r\n}",
"public int genID() {\n int uid = this.hashCode();\n if (uid < 0) {\n uid = Math.abs(uid);\n uid = uid * 15551;\n }\n return uid;\n }",
"private int nextValidID() {\n return nextId++;\n }",
"public int make() { return this.atomicId.incrementAndGet(); }",
"private void generateObjIdIfRequired(T obj) {\n Field idField = Arrays.stream(entityClass.getDeclaredFields())\n .filter(f -> f.isAnnotationPresent(Id.class) &&\n f.isAnnotationPresent(GeneratedValue.class) &&\n f.getType().equals(Long.TYPE)) //Refers to primitive type long\n .findFirst().orElse(null);\n \n if(idField == null) return;\n\n try {\n idField.setAccessible(true);\n idField.set(obj, idCounter);\n idField.setAccessible(false);\n idCounter++;\n } catch (IllegalAccessException e) {\n throw new DBException(\"Problem generating and setting id of object: \" + entityClass.getSimpleName() + \" : \" + obj.toString(), e);\n }\n\n }",
"int nextId();",
"private String nextID(String id) throws ConstraintViolationException {\n\t\tif (id == null) { // generate a new id\n//\t\t\tif (idCounter == 0) {\n//\t\t\t\tidCounter = Calendar.getInstance().get(Calendar.YEAR);\n//\t\t\t} else {\n\t\t\t\tidCounter++;\n\t\t\t\tString stringIdCounter = String.format(\"%06d\", idCounter);\n//\t\t\t}\n\t\t\treturn \"CUS\"+ stringIdCounter;\n\t\t} else {\n\t\t\t// update id\n\t\t\tint num;\n\t\t\ttry {\n\t\t\t\tnum = Integer.parseInt(id.substring(3));\n\t\t\t} catch (RuntimeException e) {\n\t\t\t\tthrow new ConstraintViolationException(ConstraintViolationException.Code.INVALID_VALUE, e,\n\t\t\t\t\t\tnew Object[] { id });\n\t\t\t}\n\n\t\t\tif (num > idCounter) {\n\t\t\t\tidCounter = num;\n\t\t\t}\n\n\t\t\treturn id;\n\t\t}\n\t}",
"public static void resetValidID() {\n nextId = 0;\n }",
"@Override\r\n\tpublic String createID() {\r\n\t\t \r\n\t\t\t\treturn transCode.toString();\r\n\t\t\t\t}",
"@Test\n public void testIdDoesNotExist() throws Exception {\n\n // login with sufficient rights\n shop.login(admin.getUsername(), admin.getPassword());\n\n // generate ID not assigned to any transaction in the shop\n int nonExistentId = generateId(shop.getCreditsAndDebits(null, null).stream()\n .map(BalanceOperation::getBalanceId)\n .collect(Collectors.toList()));\n\n // if ID does not exist -1 is returned\n assertEquals(-1, shop.receiveCashPayment(nonExistentId, 10), 0.001);\n }",
"String createUniqueID(String n){\n String uniqueID =UUID.randomUUID().toString();\n return n + uniqueID;\n }",
"public String generateID() {\n return IDPREFIX + nextidint++;\n }",
"public static String generateId(String s){\n\t\tString date = LocalDate.now().format(DateTimeFormatter.ofPattern(\"yyMMdd\"));\n\t\tString key = s +\"_\" + date;\n\t\t//com.incr(key);\n\t\tredisTemplate.opsForValue().increment(key);\n\t\tInteger num = redisTemplate.opsForValue().get(key);\n\t\treturn date + \"-\" + String.format(\"%08d\",num);\n\t}",
"private String generateNewCallId()\n {\n\n\t\t// Generate the variant number\n\t\tint variable = NumberUtils.getIntRandom();\n\n\t\t// Convert to hex value\n\t\tString hex = NumberUtils.toHexValue(variable);\n\n\t\t// Compose the final call id\n\t\treturn \"{2B073406-65D8-A7B2-5B13-B287\" + hex + \"}\";\n\t}",
"@Override\n\tpublic native final String createUniqueId() /*-{\n // In order to force uid's to be document-unique across multiple modules,\n // we hang a counter from the document.\n if (!this.gwt_uid) {\n this.gwt_uid = 1;\n }\n\n return \"gwt-uid-\" + this.gwt_uid++;\n\t}-*/;",
"public String GenerateID()\n\t{\n\t\tRandom randomGenerator = new Random();\n\t\treturn Integer.toString(randomGenerator.nextInt(Integer.MAX_VALUE));\n\t}",
"public static String createPID()\r\n\t{\r\n\t\tunique_count++;\r\n\t\tif(unique_count >= 100) unique_count = 0;\r\n\t\tString str_num = String.format(\"%02d\", unique_count);\r\n\t\t\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"yyMMddHHmmss\");\r\n\t\tString pid = dateFormat.format(new Date()) + str_num;\r\n\t\treturn pid;\r\n\t}",
"@Override\n public String getNewId()throws DVDLibraryPersistenceException{\n \n int intId = 0;\n for (String key : dvds.keySet()){\n if (Integer.valueOf(key) > intId){\n intId = Integer.valueOf(key);\n }\n }\n return String.valueOf(intId + 1);\n }",
"private static int generateCircleId(){\n return snextCircleId.incrementAndGet();\n\n }",
"private static String getUniqueId()\n\t{\n\t\tfinal int limit = 100000000;\n\t\tint current;\n\t\tsynchronized (DiskFileItem.class)\n\t\t{\n\t\t\tcurrent = counter.nextInt();\n\t\t}\n\t\tString id = Integer.toString(current);\n\n\t\t// If you manage to get more than 100 million of ids, you'll\n\t\t// start getting ids longer than 8 characters.\n\t\tif (current < limit)\n\t\t{\n\t\t\tid = (\"00000000\" + id).substring(id.length());\n\t\t}\n\t\treturn id;\n\t}",
"public UUID createMsgId() {\r\n return UUIDFactory.newSeqUUID();\r\n }",
"private String createId() {\n int idLength = 5;\n String possibleChars = \"1234567890\";\n Random random = new Random();\n StringBuilder newString = new StringBuilder();\n\n for (int i = 0; i < idLength; i++) {\n int randomInt = random.nextInt(10);\n newString.append(possibleChars.charAt(randomInt));\n }\n\n return newString.toString();\n }",
"private String generatePurchaseId() {\n\t\tint purchaseId = purchaseIdCounter.incrementAndGet();\n\t\treturn Integer.toString(purchaseId);\n\t}",
"protected void NewIdentity()\n\t{\n\t\tthis.identity=0L;\n\t\tNodeReference nodeRef = getNodeReference();\n\t\tnodeRef.appendSubscript(0L);\n\t\tnodeRef.appendSubscript(\"id\");\n\t\tthis.identity=nodeRef.increment(1);\n\t}",
"public static String generateNewUserId() {\r\n\t\tDate date = new Date();\r\n\t\treturn String.format(\"%s-%s\", UUID.randomUUID().toString(),\r\n\t\t\t\tString.valueOf(date.getTime()));\r\n\t}",
"private int IdRandom() {\n\t\tRandom random = new Random();\n\t\tint id = random.nextInt(899999) + 100000;\n\t\treturn id;\n\t}",
"public int createWithNewId(AirspaceObject aircraft)\n\t{\n\t\tcounter += 1;\n\t\tcreate(counter, aircraft);\n\t\treturn counter;\n\t}",
"public long incrementAndGetID() {\n return ++id;\n }",
"public long getNextID() throws IDGenerationException;",
"public StructuredId createSubId()\r\n {\r\n return new StructuredId(this, id + \".\" + numSubIds.incrementAndGet());\r\n }",
"public com.walgreens.rxit.ch.cda.II addNewId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.II target = null;\n target = (com.walgreens.rxit.ch.cda.II)get_store().add_element_user(ID$6);\n return target;\n }\n }",
"private static int generateMarkerId(){\n return snextMarkerId.incrementAndGet();\n\n }",
"public abstract ID nextId();",
"public static int makeSegID() {\n int newID = (int) (Math.random() * 100000000);\n return newID;\n }",
"id(int id) {}",
"public int idGenerator() {\n Random random = new Random();\n int id;\n return id = random.nextInt(10000);\n }",
"public static int genID(LinkedList<Stamp> stamps){\n Random rand = new Random();\n boolean ok = false;\n int theID = rand.nextInt(999)+1;\n do{\n\n if(Stamp.isIDUsed(stamps,theID) == true){\n theID = rand.nextInt(999)+1;\n\n }else{\n ok = true;\n }\n }while(!ok);\n\n return theID;\n }",
"public static synchronized int getNewID() {\r\n\t\treturn Entity.IDCount++;\r\n\t}",
"public String generatePlayerID() {\n List<Player> players = getAllOrdered();\n int idNum;\n \n if (players == null || players.isEmpty())\n idNum = 0;\n else {\n String idStr = players.get(players.size() - 1).getPlayerID();\n idNum = Integer.parseInt(idStr.substring(2, idStr.length()));\n }\n \n String playerID;\n int newIdNum = idNum + 1;\n if (newIdNum <= 9)\n playerID = \"P_000\" + newIdNum;\n else if (newIdNum <= 99) \n playerID = \"P_00\" + newIdNum;\n else if (newIdNum <= 999)\n playerID = \"P_0\" + newIdNum;\n else \n playerID = \"P_\" + newIdNum;\n \n return playerID;\n }",
"private void generateID(){\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (String t : terms.keySet())\n\t\t\tsb.append(t.replaceAll(\"\\\\W\", \"\")\n\t\t\t\t\t.substring(0, Math.min(4, t.replaceAll(\"\\\\W\", \"\").length())) + \"-\");\n\t\tfor (String s : sources)\n\t\t\tsb.append(s.replaceAll(\"\\\\W\", \"\")\n\t\t\t\t\t.substring(0, Math.min(4, s.replaceAll(\"\\\\W\", \"\").length())) + \"-\");\n\t\tsb.deleteCharAt(sb.length()-1);\n\t\tif (yearFrom > -1) sb.append(\"_\" + yearFrom);\n\t\tif (yearTo > -1) sb.append(\"_\" + yearTo);\n\t\tif (useCompounds) sb.append(\"_COMP\");\n\t\tif (useStopwords) sb.append(\"_STOP\");\n\t\tsb.append(\"_CNT\" + contextSize);\n\t\tsb.append(\"_\" + System.currentTimeMillis());\n\t\tthis.id = sb.toString();\n\t}",
"public static void resetId() {\r\n nextid=1;\r\n }",
"String getExistingId();",
"static Integer generateID() {\n int count = 0;\n for (int i = 1; i-1 <= setOfAssignedIDs.size(); i++) {\n count++;\n if (setOfAssignedIDs.size() == 0) {\n return 1;\n }\n\n else if (setOfAssignedIDs.contains(i)) {\n continue;\n }\n\n else {\n return count;\n }\n\n }\n return count;\n }",
"public int getUniqueID() { \n return -1;\n }",
"public static String generateReverseTimestampId() {\r\n\t\tString sTs = Str.leftPad(String.valueOf(Long.MAX_VALUE-System.currentTimeMillis()),'0',20);\r\n\t\tString sRd = Str.leftPad(String.valueOf(new Random().nextInt(Integer.MAX_VALUE)),'0',10);\r\n\t\treturn Str.leftPad(sTs+sRd,'0',32);\r\n\t }",
"id(int id, id id, int id) {}",
"public static int createFileID(String fileName) {\n\n int fileID;\n\n fileID = 0;\n\n // checks to see if the curent fileID is in database. If yes, then it generates a random new one until a new one is found. \n while (containsFileID(fileID)) {\n fileID = (int) (Math.random() * 100000000);\n }\n // adds this id/name pairing to the database\n addOrUpdateFileName(fileID, fileName);\n System.out.println(\"CreateFileID: \" + fileID + \", \" + fileName);\n // returns the id so the TranslationFile object can store it.\n\n return fileID;\n }",
"protected String generateRandomId(String prefix) {\n int nextInt = RANDOM.nextInt();\n nextInt = nextInt == Integer.MIN_VALUE ? Integer.MAX_VALUE : Math.abs(nextInt);\n return prefix + \"_\" + String.valueOf(nextInt);\n }",
"public void generarId() {\n try{\n int numAleatorio = (int)(Math.random()*99999);\n boolean resultado = dgt.generarIdAutomatico(numAleatorio);\n tfid.setText(String.valueOf(numAleatorio));\n }catch(Exception e){\n System.out.println(e.getMessage());\n }\n }",
"public int allocate_pid() {\r\n\t\tif (idnum == idSize)\r\n\t\t\treturn -1;\r\n\t\tfor (int i = 0; i < idSize; i++) {\r\n\t\t\tif (p_id[i] == 0) {\r\n\t\t\t\tp_id[i] = 1;\r\n\t\t\t\tidnum++;\r\n\t\t\t\treturn i + MIN_PID;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\r\n\t}",
"private Integer getNewId(){\n List<Integer> allIds = new ArrayList<>();\n for (T entity : allEntities) {\n allIds.add(entity.getId());\n }\n return allIds.size() > 0 ? Collections.max(allIds) + 1 : 1;\n }",
"private int generateSessionId(){\n int id;\n do{\n id = smIdGenerator.nextInt(50000);\n }while(mSessionMap.containsKey(id));\n\n Log.i(TAG, \"generating session id:\" + id);\n return id;\n }",
"public static String createId(CalendarDB db) {\n char[] skipChars = {\n 34, 39, 64, 91, 92, 93, 123, 125\n };\n \n int len = 10;\n char[] cArray = new char[len];\n\n for (int i = 0; i < len; i++) {\n\n boolean isAllowed = false;\n\n Random rand = new Random();\n char r = '0';\n// char test = 53;\n// System.out.println(\"Test char(\"+test+\")\");\n\n //[0] 48-57 0-9\n //[1] 65-90 A-Z\n //[2] 97- 122 a-z\n char[] valids = new char[3];\n \n //checkif the char is valid\n while (!isAllowed) {\n /*\n only takes valid chars. The fourth random just chooses one of the\n three in valids[]. \n */\n valids[0] = (char) RandomHandler.createIntegerFromRange(48, 57, rand);\n valids[1] = (char) RandomHandler.createIntegerFromRange(65, 90, rand);\n valids[2] = (char) RandomHandler.createIntegerFromRange(97, 122, rand);\n int start = 0;\n \n //the first char must not be a number\n if(i == 0)\n start += 1;\n \n r = valids[RandomHandler.createIntegerFromRange(start, 2, rand)];\n\n for (char ch : skipChars) {\n if (r != ch) {\n isAllowed = true;\n } else {\n isAllowed = false;\n }\n }\n }\n\n cArray[i] = r;\n }\n String s = new String(cArray);\n \n //retry creating id when the same is already used in database\n if(db.isIdAvailable(s))\n createId(db);\n \n System.out.println(\"ID created: \" + s);\n return s;\n }",
"private String generateUniqueIdString() {\r\n return TimeBasedUUID.getUUIDAsString();\r\n }",
"private void AutoID() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"public String generateId() {\n return Utils.generateKey();\n }",
"public static int getDuplicateId() {\n if (generatedId.isEmpty()) {\n return -1;\n } else {\n return generatedId.get(randomDuplicateId.nextInt(generatedId.size()));\n }\n }",
"public final Integer getNewId(final String key){\r\n\t\tmaxId++;\r\n\t\twhile (idKeyMap.containsKey(maxId)){\r\n\t\t\tmaxId++; // probably not going to happen...\r\n\t\t}\r\n\t\tidKeyMap.put(maxId, key);\r\n\t\tkeyIdMap.put(key, maxId);\r\n\t\treturn maxId;\r\n\t}",
"public String nextAvalibleID()\r\n\t{\r\n\t\t//creates a blank string as all Id's have to be 3 digits and if it was an itger it would remove the leading 0's\r\n\t\tString id = \"\";\r\n\t\t//If the pointer is 0 then the id needs to be 001\r\n\t\tif(nextPatientLocation == 0)\r\n\t\t{\r\n\t\t\tid = \"001\";\r\n\t\t}\r\n\t\t//otherwise it is the existing length + howver many 0's needed to make it 3 digits + the pointer data + 1 to make the first one not overlap any leaing id's\r\n\t\telse if(nextPatientLocation < 10)\r\n\t\t{\r\n\t\t\tid = \"00\"+(nextPatientLocation+1);\r\n\t\t}\r\n\t\telse if(nextPatientLocation < 100)\r\n\t\t{\r\n\t\t\tid = \"0\"+(nextPatientLocation+1);\r\n\t\t}\r\n\t\telse if(nextPatientLocation < 999)\r\n\t\t{\r\n\t\t\tid = \"\"+(nextPatientLocation+1);\r\n\t\t}\r\n\t\treturn id;//Id is returned\r\n\t}",
"String uniqueId();",
"private long createCid(CharSequence csp) {\n\n final long newCid = cid.incrementAndGet();\n final Long aLong = cspToCid.putIfAbsent(csp, newCid);\n\n if (aLong != null)\n return aLong;\n\n cidToCsp.put(newCid, csp.toString());\n return newCid;\n\n }",
"@Nullable\n @SuppressLint(\"HardwareIds\")\n private String createId(Context context) {\n String id = Settings.Secure.getString(\n context.getContentResolver(),\n Settings.Secure.ANDROID_ID);\n String device = Build.DEVICE;\n id += device;\n\n try {\n MessageDigest md = MessageDigest.getInstance(\"SHA-256\");\n return HexCoder.toHex(md.digest(id.getBytes(\"UTF-8\")));\n } catch (NoSuchAlgorithmException | UnsupportedEncodingException e) {\n Log.e(TAG, \"createId: \"+e.toString());\n }\n return null;\n }",
"private static int nextID() {\r\n\t\treturn ID++;\r\n\t}",
"public static long generateUniqueId() {\n // A UUID represents a 128-bit value, that is 16 bytes long value.\n final UUID uuid = UUID.randomUUID();\n return Math.abs(uuid.getMostSignificantBits());\n }",
"@Test\n public void testGenerateIdExpectedValue() {\n Monkey monkey = new Monkey();\n int id = monkey.generateIdRefactored(100);\n assertEquals(id,223592);\n }",
"private void setId() {\n id = count++;\n }",
"private void GenerateTxId() {\n Random random = new Random();\n final String txId = String.valueOf(10000000 + random.nextInt(90000000));\n transactionModel.txId = txId;\n }",
"private static int nextInstanceID()\n {\n return baseID.incrementAndGet();\n }",
"protected UniqueID() {\n UUID newID = UUID.randomUUID();\n this.mostSigBits = newID.getMostSignificantBits();\n this.leastSigBits = newID.getLeastSignificantBits();\n }",
"public long newPeriodID() {\n long id;\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(COLUMN_PERIOD_INCOMES, 0);\n values.put(COLUMN_PERIOD_OUTCOMES, 0);\n values.put(COLUMN_PERIOD_BALANCE, 0);\n values.put(COLUMN_PERIOD_TRANSACTIONS, 0);\n // Inserting Row\n id = db.insert(TABLE_PERIOD, null, values);\n db.close();\n return id;\n }",
"public static int getUnsavedId() {\n int id;\n\n do {\n id = randomId.nextInt(Integer.MAX_VALUE);\n } while (generatedId.contains(id));\n\n return id;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"public String generateCustomer_Id() {\n\t\tString customer_Id = \"C\" + String.valueOf(rand.genRandomDigits(7));\n\t\twhile (registerDao.checkCustomerIdIfExist(customer_Id)) {\n\t\t\tcustomer_Id = \"C\" + String.valueOf(rand.genRandomDigits(7));\n\t\t}\n\t\treturn customer_Id;\n\t}",
"public Long getCreateId() {\n\t\treturn createId;\n\t}",
"long getNoId();",
"private Integer getUniqueId(Object object) {\n/* 89 */ Integer id = this.idCache.get(object);\n/* 90 */ if (id == null) {\n/* 91 */ id = Integer.valueOf(this.uidGenerator.incrementAndGet());\n/* 92 */ Integer existing = this.idCache.putIfAbsent(object, id);\n/* 93 */ if (existing != null) {\n/* 94 */ return existing;\n/* */ }\n/* */ } \n/* 97 */ return id;\n/* */ }",
"String generateUID();",
"@Override\r\n\tpublic int selectNewId() {\n\t\treturn messageMapper.selectNewId();\r\n\t}"
]
| [
"0.69807535",
"0.689084",
"0.68705297",
"0.65920454",
"0.6518035",
"0.63658535",
"0.6318653",
"0.6256387",
"0.61024976",
"0.60915095",
"0.6086561",
"0.6046908",
"0.6025654",
"0.6020851",
"0.599919",
"0.59808314",
"0.5959303",
"0.5953019",
"0.59338605",
"0.5882105",
"0.58793664",
"0.58625543",
"0.5828261",
"0.58202106",
"0.58140934",
"0.5806983",
"0.5805205",
"0.57779974",
"0.5777874",
"0.57466716",
"0.5742792",
"0.5701826",
"0.57004243",
"0.5685698",
"0.56653",
"0.56541324",
"0.56509584",
"0.5635206",
"0.5633828",
"0.56299084",
"0.56225157",
"0.56058866",
"0.5591404",
"0.558477",
"0.5580595",
"0.55762774",
"0.55757254",
"0.5556805",
"0.5549667",
"0.55339086",
"0.55143476",
"0.55061454",
"0.5502058",
"0.54931515",
"0.5489005",
"0.5488212",
"0.5482938",
"0.5481202",
"0.54726887",
"0.54722065",
"0.5470172",
"0.5469973",
"0.5467633",
"0.5449239",
"0.5442393",
"0.5437845",
"0.54214543",
"0.5418769",
"0.5417725",
"0.5392744",
"0.53890103",
"0.5382985",
"0.53821117",
"0.53797597",
"0.5362925",
"0.5358572",
"0.5357469",
"0.53552324",
"0.5353355",
"0.5347893",
"0.53445536",
"0.5341335",
"0.5336705",
"0.5332216",
"0.5331238",
"0.5319293",
"0.5318857",
"0.531543",
"0.53091156",
"0.5294155",
"0.529028",
"0.52881753",
"0.52876186",
"0.52841735",
"0.52783906",
"0.5276699",
"0.52761084",
"0.52758455",
"0.5274057",
"0.5270099"
]
| 0.5759707 | 29 |
/ my shutdown code here | public void run() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void shutdown();",
"void shutdown();",
"void shutdown();",
"void shutdown();",
"void shutdown();",
"void shutdown();",
"void shutdown();",
"void shutdown();",
"void shutdown();",
"void shutdown();",
"void shutdown();",
"void shutdown();",
"void shutdown();",
"void shutdown();",
"void shutdown();",
"void shutdown();",
"void shutdown();",
"protected abstract void shutdown();",
"public void shutdown();",
"public void shutdown();",
"public void shutdown();",
"public void shutdown();",
"public void shutdown() {\n/* 188 */ this.shutdown = true;\n/* */ }",
"public void shutdown() {\n\t\t\n\t}",
"public static void shutdown() {\n\t}",
"public abstract void shutdown();",
"public abstract void shutdown();",
"public abstract void shutdown();",
"public abstract void shutdown();",
"public void shutdown()\n {\n // todo\n }",
"protected void shutdown() {\n\r\n }",
"void shutdown() throws Exception;",
"public void shutdown() {\n }",
"@Override\n\tpublic void shutdown() {\n\t\t\n\t}",
"public void shutdown()\n {\n // nothing to do here\n }",
"@Override\n public void shutdownNow() {\n }",
"@Override\n public void shutdown() {\n }",
"@Override\n public void shutdown() {\n }",
"@Override\n public void shutdown() {\n }",
"@Override\n\t\tprotected void shutdown() {\n\n\t\t}",
"public void shutdownNow() {\n }",
"public void abnormalShutDown() {\n\t}",
"@Override\n\tpublic void shutdown()\n\t{\n\t}",
"public void shutdown(){\n \tSystem.out.println(\"SHUTTING DOWN..\");\n \tSystem.exit(0);\n }",
"@Override\r\n\tprotected void shutdownSpecific() {\n\r\n\t}",
"@Override\n\tpublic void shutdown() {\n\t}",
"@Override\n\tpublic void shutdown() {\n\t}",
"@Override\n public void shutdown() {\n }",
"@Override\n\tpublic void shutdown() {\n\n\t}",
"@Override\n protected void shutdown() {\n super.shutdown();\n // Now perform any other shutdown tasks you need.\n // ...\n }",
"@Override\n public void shutdown()\n {\n // nothing to do\n }",
"public void shutDown();",
"public void shutdown() {\n // no-op\n }",
"public static void shutdown() {\n\t\t// Ignore\n\t}",
"void shutDown();",
"void prepareForShutdown();",
"public void shutdown() {\n // For now, do nothing\n }",
"public void shutdown() {\r\n System.exit(0);\r\n }",
"public void shutdown() {\n shutdown(false);\n }",
"@Override\n protected void shutDown() {\n }",
"public void cleanShutDown () {\n shutdown = true;\n }",
"@Override\n public void shutDown() {\n }",
"public static void systemShutdown() throws IOException {\n\t\t/*Runtime runtime = Runtime.getRuntime();\n\t\tProcess proc = runtime.exec(\"shutdown -l -t 30\");//.exec(\"shutdown -l\");//.exec(\"shutdown -l -t 0\").exec(\"shutdown -r\");\t\t\n\t\tSystem.out.println(\"\"+proc);\n\t\tSystem.exit(0);*/\n\t}",
"@Override\n\tprotected void shutdown() throws Throwable {\n\t\t\n\t}",
"public void shutdown() {\n this.isShutdown = true;\n }",
"public void shutdown()\n\t{\n\t\t; // do nothing\n\t}",
"void shutdown() throws IOException;",
"void shutdown() throws IOException;",
"@Override\n public void shutdown() {\n // Do nothing.\n }",
"public void shutDown()\n {\n // Runtime.getRuntime().removeShutdownHook(shutdownListener);\n //shutdownListener.run();\n }",
"public void ShutDown()\n {\n bRunning = false;\n \n LaunchLog.Log(COMMS, LOG_NAME, \"Shut down instruction received...\");\n\n for(LaunchServerSession session : Sessions.values())\n {\n LaunchLog.Log(COMMS, LOG_NAME, \"Closing session...\");\n session.Close();\n }\n \n LaunchLog.Log(COMMS, LOG_NAME, \"...All sessions are closed.\");\n }",
"public void shutdown()\n {\n shutdown = true;\n cil.shutdown();\n }",
"public synchronized void terminate () {\n shutdown = true;\n }",
"@Override\n protected void shutdownService() {\n }",
"public void shutdown()\n\t{\n\t\ttry\n\t\t{\n\t\t\tsave();\n\t\t\tgetPreparedStatement(\"SHUTDOWN\").executeUpdate();\n\t\t\tgetConnection().close();\n\t\t} \n\t\tcatch (SQLException e)\n\t\t{\n\t\t\tm_logger.error(\"Couldn't cleanly shutdown.\", e);\n\t\t}\n\t}",
"public synchronized void shutdown() {\n try {\n stop();\n } catch (Exception ex) {\n }\n \n try {\n cleanup();\n } catch (Exception ex) {\n }\n }",
"@Override\n public String shutdown() {\n instance.shutdown();\n return \"ok\";\n }",
"public synchronized void shutDown() {\n\t state.shutDown();\n\t}",
"private void shutdown()\n\t\t{\n\t\tif (myChannelGroup != null)\n\t\t\t{\n\t\t\tmyChannelGroup.close();\n\t\t\t}\n\t\tif (myHttpServer != null)\n\t\t\t{\n\t\t\ttry { myHttpServer.close(); } catch (IOException exc) {}\n\t\t\t}\n\t\tmyLog.log (\"Stopped\");\n\t\t}",
"public void shutdown() {\n this.dontStop = false;\n }",
"private void shutdown() {\n\t\ttry {\n\t\t\tsock.close();\n\t\t\tgame.handleExit(this);\n\t\t\tstopped = true;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t}",
"void shutdown() throws IOException, SoapException;",
"private void shutDown() {\r\n\t\t\r\n\t\t// send shutdown to children\r\n\t\tlogger.debug(\"BagCheck \"+ this.lineNumber+\" has sent an EndOfDay message to it's Security.\");\r\n\t\tthis.securityActor.tell(new EndOfDay(1));\r\n\r\n\t\t// clear all references\r\n\t\tthis.securityActor = null;\r\n\t}",
"@Override\r\n protected void shutdownInternal() {\r\n service.stop();\r\n }",
"@Override\n\tpublic void shutdown() throws IOException\n\t{\n\t\t\n\t}",
"public void shutdown() {\n fsManager.getOpenFileSystems().forEach(JGitFileSystem::close);\n shutdownSSH();\n forceStopDaemon();\n fsManager.clear();\n }",
"void shutdown() {\n\t\t\tshutdown = true;\n\t\t\tsel.wakeup();\n\t\t}",
"public void shutdown()\n {\n this.running = false;\n }",
"public void shutdown() {\n YbkService.stop(ErrorDialog.this);\r\n System.runFinalizersOnExit(true);\r\n // schedule actual shutdown request on a background thread to give the service a chance to stop on the\r\n // foreground thread\r\n new Thread(new Runnable() {\r\n\r\n public void run() {\r\n try {\r\n Thread.sleep(500);\r\n } catch (InterruptedException e) {\r\n }\r\n System.exit(-1);\r\n }\r\n }).start();\r\n }",
"public void shutdownSilently() {\n shutdownSilently(true);\n }",
"private void shutdown() {\n log.info(\"Shutting down\");\n kafka.shutdown();\n zookeeper.shutdown();\n }",
"public static void bgfx_shutdown() {\n long __functionAddress = Functions.shutdown;\n invokeV(__functionAddress);\n }",
"@Override\n\tpublic void shutdown() throws IOException {\n\n\t}",
"public void shutdown() {\n this.shallRun = false;\n this.interrupt();\n Log.getLog().info(\"catched caretaker termination signal\");\n }",
"public void shutdownForUpdate();",
"public void shutdown()\r\n {\r\n debug(\"shutdown() the application module\");\r\n\r\n // Shutdown all the Timers\r\n shutdownWatchListTimers();\r\n // Save Our WatchLists\r\n saveAllVectorData();\r\n // Our Container vectors need to be emptied and clear. \r\n modelVector.removeAllElements();\r\n modelVector = null;\r\n\r\n tableVector.removeAllElements();\r\n tableVector = null;\r\n\r\n // Delete any additional Historic Data that is Serialized to disk\r\n expungeAllHistoricFiles();\r\n\r\n // Shutdown the task that monitors the update tasks\r\n if ( this.monitorTask != null )\r\n {\r\n this.monitorTask.cancel();\r\n this.monitorTask = null;\r\n }\r\n // Null out any reference to this data that may be present\r\n stockData = null;\r\n debug(\"shutdown() the application module - complete\");\r\n\r\n }",
"@Override\n\tpublic void shutDown() {\n\t\tSystem.out.println(\"disk shutdown!\");\n\t}",
"public void runShutdown() {\n readCharacteristic(blecharMap, GattAttributes.SHUTDOWN);\n }",
"@Override\n public void shutdown() {\n debugLogger.finest(\"enter\");\n userLogger.info(\"Initiating shutdown\");\n\n if (state == SMState.RUNNING) {\n debugLogger.info(\"state == RUNNING\");\n state = SMState.STARTED;\n interruptThread(runThread);\n }\n\n if (state == SMState.STARTED) {\n debugLogger.info(\"state == STARTED\");\n sessionPool.empty();\n\n state = SMState.STOPPED;\n }\n\n debugLogger.info(\"state == STOPPED\");\n\n userLogger.info(\"Shutdown complete\");\n debugLogger.finest(\"exit\");\n }",
"@Override\n public void shutdown() {\n log.debug(\"Shutting down Ebean ..\");\n\n // TODO: Verificar si es necesario des-registrar el driver\n this.ebeanServer.shutdown(true, false);\n }",
"public void shutdown() {\n mGameHandler.shutdown();\n mTerminalNetwork.terminate();\n }"
]
| [
"0.8462973",
"0.8462973",
"0.8462973",
"0.8462973",
"0.8462973",
"0.8462973",
"0.8462973",
"0.8462973",
"0.8462973",
"0.8462973",
"0.8462973",
"0.8462973",
"0.8462973",
"0.8462973",
"0.8462973",
"0.8462973",
"0.8462973",
"0.8378951",
"0.8363803",
"0.8363803",
"0.8363803",
"0.8363803",
"0.8360701",
"0.83578163",
"0.832111",
"0.8268411",
"0.8268411",
"0.8268411",
"0.8268411",
"0.8243812",
"0.82412106",
"0.8186066",
"0.81627905",
"0.81608003",
"0.8141923",
"0.8101187",
"0.80953926",
"0.80953926",
"0.80953926",
"0.8085895",
"0.80783385",
"0.8075402",
"0.8050238",
"0.8027336",
"0.8021873",
"0.80166",
"0.80166",
"0.8007485",
"0.798734",
"0.7896169",
"0.78736126",
"0.7861919",
"0.7852067",
"0.78423065",
"0.7839377",
"0.78139526",
"0.7807762",
"0.77123034",
"0.76944077",
"0.7689016",
"0.76668626",
"0.76534855",
"0.7615808",
"0.75662625",
"0.75318766",
"0.7491178",
"0.7379114",
"0.7379114",
"0.7362913",
"0.7319083",
"0.72877073",
"0.7276993",
"0.7260366",
"0.7258548",
"0.7211885",
"0.7200064",
"0.7198934",
"0.71765286",
"0.71704745",
"0.71439993",
"0.71400255",
"0.7106856",
"0.71041626",
"0.7069544",
"0.7066656",
"0.705101",
"0.70343953",
"0.7023417",
"0.7016662",
"0.70140165",
"0.70105827",
"0.70014507",
"0.7000489",
"0.69896936",
"0.69889444",
"0.69824123",
"0.6978229",
"0.6965191",
"0.69559467",
"0.69481564",
"0.6947329"
]
| 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table post_information | public PostInformationExample() {
oredCriteria = new ArrayList<Criteria>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getPostSQL()\n {\n return _get_imfObject().getPostSQL();\n }",
"public PostRecord() {\n super(PostTable.POST);\n }",
"Forumpost selectByPrimaryKey(Integer postid);",
"PostSaveDTO queryDetailById(String postId);",
"public ArrayList<PostInfo> getPost() throws SQLException {\n ArrayList<PostInfo> postInfoList = new ArrayList<>();\n String sql = \"SELECT * FROM `post` WHERE `status` = 1 ORDER BY `post_time` DESC\";\n statement = connection.createStatement();\n resultSet = statement.executeQuery(sql);\n while (resultSet.next()) {\n postInfoList.add(new PostInfo(resultSet.getInt(\"post_id\"), resultSet.getInt(\"place_id\"), resultSet.getString(\"post_text\"),\n resultSet.getDate(\"post_time\"), resultSet.getInt(\"status\"), resultSet.getInt(\"user_id\"), resultSet.getInt(\"editor_id\")));\n }\n return postInfoList;\n }",
"@SuppressWarnings(\"deprecation\")\n\tpublic void writeTable()\n\t{\n\t\tIterator<WPPost> itr = readValues.iterator();\n\t\t\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\tWPPost post = itr.next();\n\t\t\tPreparedStatement prStm;\n\t\t\tint res = 0;\n\t\t\t\n\t\t\ttry \n\t\t\t{\n\t\t\t\tif(post.getPostDateGMT() == null)\n\t\t\t\t{\n\t\t\t\t\tpost.setPostDateGMT(new Timestamp(0));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(post.getPostModifiedGMT() == null)\n\t\t\t\t{\n\t\t\t\t\tpost.setPostModifiedGMT(new Timestamp(0));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tprStm = conn.prepareStatement(WRITE_STATEMENT);\n\t\t\t\tprStm.setInt(1, post.getId());\n\t\t\t\tprStm.setInt(2, post.getPostAuthor());\n\t\t\t\tprStm.setTimestamp(3, post.getPostDate());\n\t\t\t\tprStm.setTimestamp(4, post.getPostDateGMT());\n\t\t\t\tprStm.setString(5, post.getPostContent());\n\t\t\t\tprStm.setString(6, post.getPostTitle());\n\t\t\t\tprStm.setString(7, post.getPostExcerpt());\n\t\t\t\tprStm.setString(8, post.getPostStatus());\n\t\t\t\tprStm.setString(9, post.getCommentStatus());\n\t\t\t\tprStm.setString(10, post.getPingStatus());\n\t\t\t\tprStm.setString(11, post.getPostPassword());\n\t\t\t\tprStm.setString(12, post.getPostName());\n\t\t\t\tprStm.setString(13, post.getToPing());\n\t\t\t\tprStm.setString(14, post.getPinged());\n\t\t\t\tprStm.setTimestamp(15, post.getPostModified());\n\t\t\t\tprStm.setTimestamp(16, post.getPostModifiedGMT());\n\t\t\t\tprStm.setString(17, post.getPostContentFiltered());\n\t\t\t\tprStm.setInt(18, post.getPostParent());\n\t\t\t\tprStm.setString(19, post.getGuid());\n\t\t\t\tprStm.setInt(20, post.getMenuOrder());\n\t\t\t\tprStm.setString(21, post.getPostType());\n\t\t\t\tprStm.setString(22, post.getPostMimeType());\n\t\t\t\tprStm.setInt(23, post.getCommentCount());\n\t\t\t\t\n\t\t\t\tres = prStm.executeUpdate();\n\t\t\t\t\n\t\t\t\tif(res == 0)\n\t\t\t\t{\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new WriteWPPostException(post.toString());\n\t\t\t\t\t} \n\t\t\t\t\tcatch (WriteWPPostException e) \n\t\t\t\t\t{\n\t\t\t\t\t\t//e.printStackTrace(); // TODO Debug Mode! Delete This!\n\t\t\t\t\t\tthis.rowsWithErrors.add(post);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\t\t\tcatch (SQLException e1) \n\t\t\t{\n\t\t\t\t//e1.printStackTrace(); // TODO Debug Mode! Delete This!\n\t\t\t\tthis.rowsWithErrors.add(post);\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\tpublic List<Post> getAllPost() {\n\t\tString hql = \"from Post\";\r\n\t\treturn (List<Post>) getHibernateTemplate().find(hql);\r\n\t}",
"PmPost selectByPrimaryKey(String postId);",
"public void setPostId(Integer postId) {\n this.postId = postId;\n }",
"public Integer getPostId() {\n return postId;\n }",
"@Override\n\tpublic void getAll() {\n\t\tArrayList<Post> list = new ArrayList<Post>();\n\t\tlist = dao.selectAll();\n\t\t\n\t\tfor (Post p : list) {\n\t\t\tSystem.out.println(p.getPostId() + \".\" + p.getPostName() + \" 작성자:\" + p.getMemberId());\n\t\t}\n\t}",
"public List<detailsofpassengerpost> seedetailslist() throws IOException{\n//connect database\nString resource = \"orm/configuration.xml\";\nReader reader = Resources.getResourceAsReader(resource);\nSqlSessionFactory sessionFactory = new SqlSessionFactoryBuilder().build(reader);\nSqlSession session = sessionFactory.openSession();\n\ntry{\n\tSystem.out.println(\"postID in seeDetails=\"+postID);\npostlist=session.selectList(\"selectPassengerPostByID\",postID);\nSystem.out.println(\"postlist size in seeDetails=\"+postlist.size());\n\n//find passenger's name through his email address\nnumberofapplieddrivers=postlist.get(0).getNumberofapplieddrivers();\npassengeremail=postlist.get(0).getEmail();\npassengerlist=session.selectList(\"selectuserbyemail\", passengeremail);\n\npassengername=passengerlist.get(0).getName();\npassengersex=passengerlist.get(0).getSex();\npassengerdob=passengerlist.get(0).getDob();\n\ndd=new detailsofpassengerpost();\ndetaillist=new ArrayList<detailsofpassengerpost>();\n\ndd.setNeedseats(postlist.get(0).getNeedseats());\ndd.setExpectedcartype(postlist.get(0).getExpectedcartype());\ndd.setDeparture(postlist.get(0).getDeparture());\ndd.setDeparturedate(postlist.get(0).getDeparturedate());\ndd.setDestination(postlist.get(0).getDestination());\ndd.setDob(passengerdob);\ndd.setEmail(passengeremail);\ndd.setEstimatedleavingtime(postlist.get(0).getEstimatedleavingtime());\ndd.setExpectedcost(postlist.get(0).getExpectedcost());\ndd.setMemo(postlist.get(0).getMemo());\ndd.setName(passengername);\ndd.setPostID(postID);\ndd.setSex(passengersex);\ndd.setPhone(postlist.get(0).getPhone());\ndd.setNumberofapplieddrivers(numberofapplieddrivers);\ndetaillist.add(dd);\n\nreturn detaillist;\n\n}finally{\nsession.close();\n}\n}",
"public List<Post> all() throws DataAccessException{\n String sql = \"select posts.id, posts.user_id, users.name, posts.title, posts.content, posts.create_date from posts join users on posts.user_id=users.id\";\n List<Post> posts = this.jdbcTemplate.query(sql, mapper);\n return posts;\n }",
"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}",
"@Override\r\n\tpublic void addPost(Post post) {\n\t\tgetHibernateTemplate().save(post);\r\n\t}",
"@Override\n public HashMap<Integer,_DefaultMessage> loadPost() throws IOException, SQLException, ClassNotFoundException {\n return _DbConnectionManager.getHMPosts(this.dbConnection, this.getName());\n }",
"public String getPostTableName() {\r\n\t\treturn postTableName;\r\n\t}",
"public void setPostId(long postId);",
"public interface CommentMapper {\n\n @Insert(\"insert comment(productId,userId,text,createdAt) values(#{productId},#{userId},#{text},now())\" )\n @Options(useGeneratedKeys = true,keyProperty = \"id\")\n void insertComment(Comment comment);\n\n @Select(\"select * from comment where productId=#{productId}\")\n List<Comment> getCommentByProductId(int productId);\n\n @Delete(\"delete from comment where id = #{id}\")\n void deleteComment(int id);\n\n\n}",
"public interface Post {\n\n\tpublic Long getId();\n\n\tpublic void setId(Long id);\n\n\tpublic Date getDate();\n\n\tpublic void setDate(Date date);\n\n\tpublic String getMessage();\n\n\tpublic void setMessage(String message);\n\n}",
"@Override\r\n\t\tpublic DatabaseMetaData getMetaData() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"public void updatePost(PostInfo postInfo) throws SQLException {\n String sql = \"UPDATE `post` SET `place_id`=?,`post_text`=?,`post_time`=?,`status`=?,`user_id`=?,`editor_id`=? WHERE `post_id` = ?\";\n preparedStatement = connection.prepareStatement(sql);\n preparedStatement.setInt(1, postInfo.getPlace_id());\n preparedStatement.setString(2, postInfo.getPost_text());\n preparedStatement.setDate(3, postInfo.getPost_time());\n preparedStatement.setInt(4, postInfo.getStatus());\n preparedStatement.setInt(5, postInfo.getUser_id());\n preparedStatement.setInt(6, postInfo.getEditor_id());\n preparedStatement.setInt(7, postInfo.getPost_id());\n\n preparedStatement.executeUpdate();\n }",
"public int getPostId() {\r\n\t\treturn postId;\r\n\t}",
"public void deletePost(PostInfo postInfo) throws SQLException {\n String sql = \"UPDATE `post` SET `status`=0 WHERE `post_id` = ?\";\n preparedStatement = connection.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);\n preparedStatement.setInt(1, postInfo.getPost_id());\n\n preparedStatement.executeUpdate();\n }",
"@Override\n\tpublic Map<String, String> toSqlMap() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Collection<Tmly> getTmlyInfo() {\n\t\tString sql = \"select ID_,TITLE,CONTENT,state from tmly\";\n\t\tList<Tmly> list = this.jdbcTemplate.query(sql, new RowMapper<Tmly>() {\n\n\t\t\t@Override\n\t\t\tpublic Tmly mapRow(ResultSet result, int i) throws SQLException {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tTmly tmly = new Tmly();\n\t\t\t\ttmly.setId(result.getInt(\"id_\"));\n\t\t\t\ttmly.setTitle(result.getString(\"title\"));\n\t\t\t\ttmly.setContent(result.getString(\"content\"));\n\t\t\t\treturn tmly;\n\t\t\t}\n\n\t\t});\n\t\treturn list;\n\t}",
"public long getPostId() {\n return postId;\n }",
"public long getPostId();",
"public static ResultSet getPosts(){\n ResultSet result = null;\n try {\n conn = ConnectionProvider.getCon();\n pst = conn.prepareStatement(\"select * from normalposts\");\n result = pst.executeQuery();\n\n System.out.println(\"PostDAO: getting posts\");\n } catch(Exception e) {\n System.out.println(\"PostDAO: unsuccessful query\");\n System.out.println(e);\n }\n return result;\n }",
"@Mapper\npublic interface BlogDAO {\n @Insert(\"INSERT INTO blog(title,uniq,markdown,html, create_time,update_time) \" +\n \"VALUES(#{item.title},#{item.uniq},#{item.markdown},#{item.html},#{item.createTime}, #{item.updateTime})\")\n int insert(\n @Param(\"item\") Blog blog\n );\n\n @Select(\"SELECT id,uniq,title,markdown,html,\" +\n \" create_time as createTime,update_time as updateTime \" +\n \" FROM blog WHERE id = #{id}\")\n Blog getBlogById(@Param(\"id\") String id);\n\n @Insert(\"replace into blog(id,title,uniq,markdown,html, create_time,update_time) \" +\n \"VALUES(#{item.id},#{item.title},#{item.uniq},#{item.markdown},#{item.html},#{item.createTime}, #{item.updateTime})\")\n int update(@Param(\"item\")Blog blog);\n\n @Select(\"SELECT id,uniq,title,\" +\n \" create_time as createTime,update_time as updateTime \" +\n \" FROM blog order by id desc limit #{offset}, #{limit}\")\n List<Blog> getBlogList(@Param(\"offset\")long offset,\n @Param(\"limit\")long limit,\n @Param(\"sort\") String sort);\n}",
"@Test\n public void metaDataExample1() throws SQLException {\n Connection connection = DriverManager.getConnection(dbUrl, dbUsername, dbPassword);\n // 2. Create statement\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n // Run sql query and get the result in resultSet object\n String sqlQuery= \"Select * From departments\";\n //String sqlQuery= \"Select first_name, last_name, salary From employees\";\n ResultSet resultSet = statement.executeQuery(sqlQuery);\n\n // we use resultSet metadata to get information about the tables\n // get the resultSet object metadata\n ResultSetMetaData rsMetadata = resultSet.getMetaData();\n\n // List for keeping all rows as a map\n List<Map<String, Object>> queryData = new ArrayList<>();\n\n // while(resultSet.next()) helps to iterate through columns\n while (resultSet.next()) {\n // key(columns) will be string but value can be any type of data. That's why we choose <String, Object>\n Map<String, Object> row = new HashMap<>(); // creating empty Map\n // number of columns\n int colCount = rsMetadata.getColumnCount();\n // for loop helps to iterate through columns\n for (int i = 1; i <= colCount; i++) {\n row.put(rsMetadata.getColumnName(i), resultSet.getObject(i));\n }\n\n queryData.add(row); // adding a Map to the List of Maps\n }\n\n // Printing the rows\n for (Map<String, Object> row: queryData) {\n System.out.println(row.toString());\n\n }\n\n\n\n\n // close all connections\n resultSet.close();\n statement.close();\n connection.close();\n }",
"public String toSql() {\t\n int n;\t\n void a;\t\n StringBuilder a2 = new StringBuilder();\t\n Table table = MapperHelper.getTable(this.entity);\t\n a2.append(MapperHelper.getTableName((Table)a, this.entity) + \" \" + a.alias());\t\n JoinTable[] arrjoinTable = a.joinTable();\t\n int n2 = arrjoinTable.length;\t\n int n3 = n = 0;\t\n while (n3 < n2) {\t\n JoinTable a3 = arrjoinTable[n];\t\n Table a4 = MapperHelper.getTable(a3.entity());\t\n a2.append(new StringBuilder().insert(0, \" \").append(a3.type().value()).append(\" \").toString());\t\n a2.append(new StringBuilder().insert(0, MapperHelper.getTableName(a4, this.entity)).append(\" \").append(a3.alias()).toString());\t\n a2.append(new StringBuilder().insert(0, \" ON \").append(a3.on()).toString());\t\n n3 = ++n;\t\n }\t\n StringBuilder stringBuilder = a2;\t\n stringBuilder.append(MapperHelper.getSqlMapValue(this.entity, a.extFromKeys()));\t\n return stringBuilder.toString();\t\n }",
"List<PostInfo> getPostList();",
"TypedKeyValue<String, Integer> getDestinationInfo(String sql);",
"public void setPostId(int postId) {\r\n\t\tthis.postId = postId;\r\n\t}",
"public List<PostEntry> savePost(String username, int postid, String title, String body){\n Connection c = null;\n PreparedStatement ps = null; \n ResultSet rs = null;\n\n boolean ret = true;\n\n //check if postid exists.\n if(postid>0 && findPost(username, postid)==null){\n return null;\n }\n try {\n //Get connection\n c = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/CS144\", \"cs144\", \"\");\n int changed;\n if(postid>0){\n //UPDATE\n System.out.println(\"update post!\");\n ps = c.prepareStatement(\"UPDATE Posts SET title=?, body=?, modified=? WHERE username=? AND postid=?\");\n ps.setString(1, title);\n ps.setString(2, body);\n ps.setTimestamp(3, new Timestamp(System.currentTimeMillis())); //set modified to current time\n ps.setString(4, username);\n ps.setInt(5, postid);\n\n changed = ps.executeUpdate();\n }\n else {\n //get largest postid and add 1 to get newID\n\n System.out.println(\"new post!\");\n ps = c.prepareStatement(\"SELECT MAX(postid) FROM Posts WHERE username=?\");\n ps.setString(1, username);\n\n rs = ps.executeQuery();\n int newID = 1;\n if(rs.next()){\n newID = rs.getInt(1) + 1;\n }\n ps.close();\n\n ps = c.prepareStatement(\"INSERT INTO Posts (username, postid, title, body, modified, created) VALUES(?,?,?,?,?,?)\");\n ps.setString(1, username);\n ps.setInt(2, newID);\n ps.setString(3, title);\n ps.setString(4, body);\n ps.setTimestamp(5, new Timestamp(System.currentTimeMillis())); //set modified to current time\n ps.setTimestamp(6, new Timestamp(System.currentTimeMillis())); //set created to current time\n \n changed = ps.executeUpdate();\n }\n\n if(changed==0){\n ret = false;\n }\n\n } catch(SQLException e){\n //error handling\n System.out.println(\"SQLException caught.\");\n e.printStackTrace();\n } finally {\n //just need to close all\n try { rs.close(); } catch (Exception e) { /* ignored */ }\n try { ps.close(); } catch (Exception e) { /* ignored */ }\n try { c.close(); } catch (Exception e) { /* ignored */ }\n }\n\n //return list data\n if(ret)\n return findList(username);\n else\n return null;\n }",
"public long ashirPostCreating(AshirBlogPostingHelper post) {\n long result;\n\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(Col_2, post.getPost());\n values.put(Col_3, post.getImage());\n //inserting valuse into table columns\n result = db.insert(NAME_OF_TABLE, null, values);\n db.close();\n return result;\n\n }",
"public void setPostTableName(String postTableName) {\r\n\t\tthis.postTableName = postTableName;\r\n\t}",
"@Override\n\t\tprotected void postUpdate(EspStatusDTO t) throws SQLException {\n\t\t\t\n\t\t}",
"String getPostDeclareSql();",
"@Override\n public Entity configuracion(Entity e) throws SQLException {\n return null;\n }",
"public void setPostId(int postId) {\n\t\tthis.postId = postId;\n\t}",
"int getPostId();",
"void setPostId(int postId);",
"@Mapper\npublic interface QuestionDAO {\n String TABLE_NAME = \" question \";\n String INSERT_FIELDS = \" title, content, created_date, user_id, comment_count \";\n String SELECT_FIELDS = \" id, \" + INSERT_FIELDS;\n\n @Insert({\"insert into \", TABLE_NAME, \"(\", INSERT_FIELDS,\n \") values (#{title},#{content},#{createdDate},#{userId},#{commentCount})\"})\n int addQuestion(Question question);\n\n // 使用 xml 配置文件进行 数据库查询语句与程序接口的映射。\n // 对应的 QuestionDAO.xml 文件位于 resources 文件夹 -》com.mattLearn.dao 文件夹中。\n List<Question> selectLatestQuestions(@Param(\"userId\") int userId, @Param(\"offset\") int offset,\n @Param(\"limit\") int limit);\n\n @Select({\"select \", SELECT_FIELDS, \" from \", TABLE_NAME, \" where id=#{id}\"})\n Question SelectById(int id);\n\n @Update(\" update question set comment_count=#{commentCount} where id = #{id}\")\n int updateCommentCount(@Param(\"commentCount\") int commentCount,\n @Param(\"id\") int id);\n\n}",
"@Override\r\n\tpublic Post searchInfById(Post post2) {\n\t\tpostDao=new PostDaoImpl(TransactionManager.connection);\r\n\t\tResultSet resultSet=postDao.selectById(post2);\r\n\t\tPost post=new Post();\r\n\t\ttry {\r\n\t\t\tif(resultSet.next()) {\r\n\t\t\t\tpost.setPostId(resultSet.getInt(1));\r\n\t\t\t\tpost.setPostName(resultSet.getString(3));\r\n\t\t\t\tpost.setUserId(resultSet.getInt(2));\r\n\t\t\t\tpost.setPostProperty(resultSet.getInt(4));\r\n\t\t\t\tpost.setPostEnterNum(resultSet.getInt(5));\r\n\t\t\t\tpost.setPostTime(resultSet.getDate(6));\r\n\t\t\t\tpost.setPostScore(resultSet.getDouble(7));\r\n\t\t\t\tpost.setScoreCount(resultSet.getInt(8));\r\n\t\t\t\tpost.setLastComTime(resultSet.getDate(9));\r\n\t\t\t\tpost.setResId(resultSet.getInt(10));\r\n\t\t\t\tpost.setResPath(resultSet.getString(12));\r\n\t\t\t\tpost.setUserName(resultSet.getString(14));\r\n\t\t\t\tpost.setUserLevel(resultSet.getInt(16));\r\n\t\t\t\tpost.setUserStatus(resultSet.getInt(17));\r\n\t\t\t\tpost.setPropertyName(resultSet.getString(19));\r\n\t\t\t\tpost.setLocation(resultSet.getString(22));\r\n\t\t\t\tpost.setPhone(resultSet.getString(23));\r\n\t\t\t\tpost.setPostCode(resultSet.getInt(24));\r\n\t\t\t\tpost.setEmail(resultSet.getString(25));\r\n\t\t\t\tpost.setGender(resultSet.getString(26));\r\n\t\t\t\tpost.setHobby(resultSet.getString(27));\r\n\t\t\t\tpost.setMajor(resultSet.getString(28));\r\n\t\t\t\tpost.setScore(resultSet.getInt(29));\r\n\t\t\t\tpost.setNickName(resultSet.getString(30));\r\n\t\t\t\tpost.setUserRegion(resultSet.getString(31));\r\n\t\t\t\tpost.setUserPhoto(resultSet.getString(32));\r\n\t\t\t\tpost.setComCount(resultSet.getInt(39));\r\n\t\t\t\t\r\n\t\t\t\treturn post;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\treturn null;\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\treturn null;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n public ColumnInfo getColumnInfo() {\n return columnInfo;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<Post> getPostsOf(int postId){\n \t\tList<Post> postList = null;\n\t\tCriteria query = null;\n\t\ttry {\n\t\t\t\n\t\t\t query = getCurrentSession().createCriteria(Post.class);\n\t\t\t \n\t\t\t query.createAlias(\"this.orgperson\", \"author\") \n\t\t\t .createAlias(\"author.personid\",\"authorPerson\")\n\t\t\t \t .createAlias(\"this.postcategories\", \"postcategories\")\n\t\t\t \t .createAlias(\"postcategories.category\", \"category\")\n\t\t\t \t .createAlias(\"this.postskills\", \"postskills\")\n\t\t\t \t .createAlias(\"postskills.skill\", \"skill\")\n\t\t\t \t .createAlias(\"this.posttags\", \"posttags\")\n\t\t\t \t .createAlias(\"posttags.tag\", \"tag\");\n\t\t\t \n\t\t\t query.add(Restrictions.eq(\"this.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"author.orgpersonstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"authorPerson.personstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"postcategories.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"category.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"postskills.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"skill.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"posttags.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"tag.status\", \"A\")) \n\t\t\t \t .add(Restrictions.eq(\"this.id\", postId));\n\t\t\t \n\t\t\t query.setProjection(Projections.projectionList()\n\t\t\t\t\t \n\t\t\t\t\t //post\n\t\t\t\t\t .add(Projections.property(\"this.id\").as(\"post_id\"))\n\t\t\t\t\t .add(Projections.property(\"this.title\").as(\"post_title\"))\n\t\t\t\t\t .add(Projections.property(\"this.content\").as(\"post_content\")) \n\t\t\t\t\t .add(Projections.property(\"this.bannerpath\").as(\"post_bannerpath\"))\n\t\t\t\t\t .add(Projections.property(\"this.commentable\").as(\"post_commentable\"))\n\t\t\t\t\t .add(Projections.property(\"this.date\").as(\"post_date\"))\n\t\t\t\t\t .add(Projections.property(\"this.media\").as(\"post_media\")) \n\t\t\t\t\t .add(Projections.property(\"this.status\").as(\"post_status\")) \n\t\t\t\t\t //authorperson\n\t\t\t\t\t .add(Projections.property(\"authorPerson.personid\").as(\"authorPersonPersonId\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.firstName\").as(\"authorPersonFirstName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.lastName\").as(\"authorPersonLastName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.middleName\").as(\"authorPersonmiddleName\")) \n\t\t\t\t\t //category\n\t\t\t\t\t .add(Projections.property(\"category.id\").as(\"categoryId\")) \n\t\t\t\t\t .add(Projections.property(\"category.name\").as(\"categoryName\")) \n\t\t\t\t\t //skill\n\t\t\t\t\t .add(Projections.property(\"skill.id\").as(\"skillId\")) \n\t\t\t\t\t .add(Projections.property(\"skill.name\").as(\"skillName\")) \n\t\t\t\t\t//tag\n\t\t\t\t\t .add(Projections.property(\"tag.id\").as(\"tagId\")) \n\t\t\t\t\t .add(Projections.property(\"tag.name\").as(\"tagName\")) \n\t\t\t\t\t \n\t\t\t\t\t ); \n\t\t\t \n\t\t\t postList = query.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP).list(); \n\t\t\t \t \t \n\t\t} catch (Exception e) {\n\t\t\tpostServiceLogger.error(\"error in PostService for getPostsOf()\",e);\n\t\t} \n\t\treturn postList;\n\t}",
"public Integer getPostType() {\n return postType;\n }",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n response.setCharacterEncoding(\"UTF-8\");\n request.setCharacterEncoding(\"UTF-8\");\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"Ghosttales_PU\");\n EntityManager em = emf.createEntityManager();\n HttpSession session = request.getSession();\n \n \n //String file = request.getParameter(\"file\");\n \n \n String content = request.getParameter(\"content\");\n // String content = \"oiadjioajdoiajdiajsi\";\n System.out.println(\"---1---\");\n String title = request.getParameter(\"title\");\n String author = (String) session.getAttribute(\"userr\");\n UserInfo u = em.find(UserInfo.class, author);\n LocalDate today = LocalDate.now();\n \n System.out.println(u.getUsername());\n \n// if(content != null && title !=null) {\n\n // String sql2 = \"SELECT COUNT(p) FROM Post p\";\n String sql2 =\"SELECT p.postId FROM Post p\";\n Query q = em.createQuery(sql2);\n \n List <Post>ps =q.getResultList() ;\n \n \n \n// long countt = (long)q.getSingleResult();\n// int count = (int) countt+1;\n \n \n Post post = new Post(); \n int num = ps.size();\n if(num==0){\n int countt = num+1 ;\n int count = countt;\n post.setPostId(count);\n session.setAttribute(\"num\",count);\n }else{\n int countt = (int) q.getResultList().get(num-1);\n int count = countt+1;\n System.out.println(num);\n System.out.println(countt);\n System.out.println(count);\n post.setPostId(count);\n session.setAttribute(\"num\",count);\n }\n \n post.setTitle(title);\n post.setContent(content);\n post.setCreateTime(java.sql.Date.valueOf(today));\n post.setUpdateTime(null);\n post.setTotallike(0);\n post.setTotalcomment(0);\n post.setUserinfousername(u);\n System.out.println(\"-----2-----\");\n \n \n \n em.getTransaction().begin();\n em.persist(post);\n em.getTransaction().commit();\n \n \n \n \n \n session.setAttribute(\"show\", post);\n \n \n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"post\", post.getContent());\n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"title\", post.getTitle());\n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"author\", post.getUserinfousername().toString());\n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"day\", post.getCreateTime());\n \n \n\n request.getRequestDispatcher(\"/addimage.jsp\").forward(request, response);\n\n }",
"Achievements getPostDetails();",
"public CustomSql getCustomSqlInsert();",
"public int getDataid_postingBisnis() {\r\n return Dataid_postingBisnis;\r\n }",
"@Override\n\tpublic Post createPost(Post post) {\n\t\treturn postDao.createPost(post);\n\t}",
"int insert(PmPost record);",
"@Override\n\tpublic JDBCMetaData getMetaData() throws SQLException {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic void updatePost(Post post) {\n\t\tPost p = getPostById(post.getPost_id());\r\n\t\tp.setDepartment(post.getDepartment());\r\n\t\tp.setDescription(post.getDescription());\r\n\t\tp.setEmployeeSet(post.getEmployeeSet());\r\n\t\tp.setPost_id(post.getPost_id());\r\n\t\tp.setPost_name(post.getPost_name());\r\n\t\tp.setPost_wage(post.getPost_wage());\r\n\t\tgetHibernateTemplate().update(p);\r\n\t}",
"public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}",
"private void writeMetaData(ResultSet resultSet) throws SQLException {\n\t System.out.println(\"The columns in the table are: \");\r\n\t System.out.println(\"Table: \" + resultSet.getMetaData().getTableName(1));\r\n\t for (int i = 1; i<= resultSet.getMetaData().getColumnCount(); i++){\r\n\t System.out.println(\"Column \" +i + \" \"+ resultSet.getMetaData().getColumnName(i));\r\n\t }\r\n\t }",
"Integer getDomainTemplateColumn();",
"@SuppressWarnings(\"HardCodedStringLiteral\")\npublic interface MyPostsColumn {\n @DataType(INTEGER)\n @PrimaryKey\n String KEY_SQL_ID = \"sql_id\";\n\n @DataType(TEXT)\n @NotNull @Unique\n String KEY_ID = \"_id\";\n\n @DataType(TEXT)\n String KEY_AUTHOR = \"author\";\n\n @DataType(TEXT)\n @NotNull\n String KEY_SUBREDDIT_ID = \"subreddit_id\";\n\n @DataType(TEXT)\n @NotNull\n String KEY_SUBREDDIT = \"subreddit\";\n\n @DataType(INTEGER)\n String KEY_UPS = \"ups\";\n\n @DataType(TEXT)\n String KEY_TITLE = \"title\";\n\n @DataType(INTEGER)\n String KEY_COMMENTS_COUNT = \"comments_count\";\n\n @DataType(INTEGER)\n String KEY_CREATED_UTC = \"created_utc\";\n\n @DataType(INTEGER)\n String KEY_CREATED = \"created\";\n\n @DataType(TEXT)\n @NotNull\n String KEY_NAME = \"name\";\n\n @DataType(INTEGER)\n @NotNull\n String KEY_CLICKED = \"clicked\";\n\n @DataType(INTEGER)\n String KEY_LIKES = \"likes\"; //CAN BE NULL\n\n @DataType(TEXT)\n String KEY_DOMAIN = \"domain\";\n\n @DataType(INTEGER)\n String KEY_IS_SELF = \"is_self\";\n\n @DataType(INTEGER)\n @NotNull\n String KEY_OVER_18 = \"over_18\";\n\n @DataType(TEXT)\n String KEY_PERMALINK = \"permalink\";\n\n @DataType(TEXT)\n String KEY_POST_HINT = \"post_hint\";\n\n @DataType(INTEGER)\n String KEY_SCORE = \"score\";\n\n @DataType(TEXT)\n String KEY_THUMBNAIL = \"thumbnail\";\n\n @DataType(TEXT)\n String KEY_URL = \"url\";\n\n @DataType(INTEGER)\n String KEY_VISITED = \"visited\";\n\n @DataType(INTEGER)\n String KEY_LOCKED = \"locked\";\n\n @DataType(TEXT)\n String KEY_MEDIA_OEMBED_TYPE = \"media_oembed_type\";\n\n @DataType(TEXT)\n String KEY_BIG_IMAGE_URL = \"big_image_url\";\n\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_POST = \"type_post\";\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_SEARCH = \"type_search\";\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_WIDGET = \"type_widget\";\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_TEMP = \"type_temp\";\n\n\n\n}",
"@Override\n\tpublic void updateAllPostNowTipBySid(String Id, CodeInfo codeInfo) {\n\t\tQuery query = this.currentSession().createQuery(\"update com.wondersgroup.human.bo.pubinst.PtPost set tenureStatus = :nowPostSign where publicInstitution.id = :Id\");\n\t\tquery.setParameter(\"nowPostSign\", codeInfo);\n\t\tquery.setParameter(\"Id\",Id);\n\t\tquery.executeUpdate();\n\t\t\n\t}",
"public void queryPostTable(Context activityContext, String postTableName) {\n new GetCursorTablePost(activityContext).execute(postTableName);\n }",
"public interface IBasicPost {\n Long getId();\n String getTitle();\n String getDescription();\n long getCreatedDate();\n long getUpdatedDate();\n Integer getCityId();\n Long getUserId();\n Integer getUserLikeCount();\n Integer getUserCommentCount();\n String getUserFirstName();\n}",
"@RequestMapping(value = \"fetch-health-tips\", method = RequestMethod.POST)\n private List<HealthPost> fetchHealthTips() {\n SessionService.sessionBuilder(session -> {\n healthPostList = session.createQuery(\"from HealthPost order by id desc\", HealthPost.class).list();\n });\n return healthPostList;\n }",
"@Override\n public DatabaseMetaData getMetaData() throws SQLException\n {\n logger.debug(\n \" public DatabaseMetaData getMetaData() throws SQLException\");\n\n return new SnowflakeDatabaseMetaData(this);\n }",
"@Override\n\tpublic void getPost(Scanner sc) {\n\t\tPost p;\n\t\tgetAll();\n\t\tSystem.out.print(\"보고 싶은 리뷰의 번호를 입력해 주세요 >>\");\n\t\tp = dao.selectPost(sc.nextInt());\n\t\tSystem.out.println(p.getPostName());\n\t\tSystem.out.println(p.getContent());\n\t}",
"public interface BasePostPoMapper extends feihua.jdbc.api.dao.CrudDao<BasePostPo, String> {\n\n java.util.List<BasePostPo> searchBasePosts(SearchPostsConditionDsfDto dto);\n}",
"public List<MediumBean> populatemediam(String sql ){\n\t\t\t\tList<MediumBean> retlist = jdbcTemplate.query(sql,ParameterizedBeanPropertyRowMapper.newInstance(MediumBean.class));\n\t\t\t\t\treturn retlist;\n\t\t }",
"@Query(\"SELECT * FROM \" + TABLE_NAME)\n List<Note> getNotes();",
"public boolean addPost(Post post) throws SQLException\n {\n boolean isAdded=false;\n try\n {\n database = dbH.getReadableDatabase();\n dbH.openDataBase();\n ContentValues values = new ContentValues();\n values.put(\"postBody\", post.getPostBody());\n values.put(\"postedBy\", post.getPostedBy());\n values.put(\"postedAt\", post.getPostedAt());\n values.put(\"postID\", post.getPostID());\n values.put(\"image\" , post.getBitmap());\n\n isAdded=database.insert(\"Post\", null, values)>0;\n\n }\n catch(SQLException e)\n {\n e.printStackTrace();\n }\n finally{\n if(database!=null && database.isOpen())\n dbH.close();\n }\n return isAdded;}",
"@Override\r\n\tprotected Entity getEntityByFields() throws SQLException {\n\t\t\r\n\t\tint id = rs.getInt(\"id\");\r\n\t\tint productId = rs.getInt(\"id_product\");\r\n\t\tString productName = super.getString(\"productName\");\t// From INNER JOIN\r\n\t\tString productUnit = super.getString(\"productUnit\");\t// From INNER JOIN\r\n\t\tfloat quantity = rs.getFloat(\"quantity\");\r\n\t\tfloat price = rs.getFloat(\"price\");\r\n\t\tfloat summa = rs.getFloat(\"summa\");\r\n\t\t\r\n\t\treturn new DocInvoiceItem(id, productId, productName, productUnit, quantity, price, summa);\r\n\t}",
"public String getGeneratedSql() {\n/* 142 */ return this.sql;\n/* */ }",
"@Override\r\n\tpublic BaseBean insertSQL(String sql, Connection con) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic void insertIPODetail(IPODetail ipo) throws SQLException {\n\t\t\n\t}",
"@Override\n\tpublic Map<String, String[]> loadColumnMetas(String databaseName) throws SQLException {\n\t\tString sql=\"select utc.*,UCC.comments from user_tab_columns utc\\n\" + \n\t\t\t\t\"left join user_col_comments ucc on UCC.table_name=UTC.table_name and UCC.column_name=UTC.column_name\";\n\t\tMap<String, String[]> ret=new HashMap<>();\n\t\t try(PreparedStatement preparedStatement= connection.prepareStatement(sql);\n\t \t\tResultSet resultSet=preparedStatement.executeQuery();){\n\t\t\twhile(resultSet.next()) {\n\t\t\t\tString tableName=resultSet.getString(\"TABLE_NAME\")\n\t\t\t\t\t\t,columnName=resultSet.getString(\"COLUMN_NAME\")\n\t\t\t\t\t\t,dataLength=resultSet.getString(\"DATA_LENGTH\")\n\t\t ,nullable=resultSet.getString(\"NULLABLE\")\n\t\t ,comments=resultSet.getString(\"COMMENTS\")\n\t\t\t\t\t\t;\n\t\t\t\tString key=tableName+\":\"+columnName;\n\t\t\t\tret.put(key, new String[] {dataLength,nullable,comments});\n\t\t\t\t\n\t\t\t}\n\t }\n\t\t\n\t\treturn ret;\n\t}",
"@Override\r\n\tpublic List<Post> getPostByName(String name) {\n\t\tString hql = \"from Post p where p.post_name =?\";\r\n\t\treturn (List<Post>) getHibernateTemplate().find(hql, name);\r\n\t}",
"void processMetaData(ResultSet rs) throws SQLException;",
"@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }",
"@Dao\npublic interface PostDao {\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n void insertPost(iPost iPosts);\n\n @Update\n void updatePost(iPost iPost);\n\n @Delete\n void deletePost(iPost iPost);\n\n @Query(\"SELECT * FROM iPost\")\n List<iPost> getAllPosts();\n\n @Query(\"SELECT * FROM iPost WHERE idThread=:threadId\")\n List<iPost> findPostsByThread(final int threadId);\n\n @Transaction\n @Query(\"SELECT * FROM iPost WHERE idThread=:threadId\")\n Single<List<PostsHelper>> getPostsFromThread(String threadId);\n}",
"protected String getSqlTable() {\n\t\treturn \"Project\";\n\t}",
"public void formDatabaseTable() {\n }",
"public CustomSql getCustomSqlUpdate();",
"void savePost(Post post);",
"@Override\n\tprotected String getCreateSql() {\n\t\treturn null;\n\t}",
"public interface AlmacenMapper {\n @Select(value = \"select tipo,descripcion from tipoproducto\")\n @Results(value = {\n @Result(javaType = Producto.class),\n @Result(property = \"tipo\",column = \"tipo\"),\n @Result(property = \"descripcion\",column = \"descripcion\"),\n })\n List<Producto> listarTipoProducto();\n\n @Insert(value = \"INSERT \" +\n \"INTO producto \" +\n \" ( \" +\n \" codigo, \" +\n \" nombre, \" +\n \" tipo, \" +\n \" porc_precio, \" +\n \" uni_medida, \" +\n \" cantidad \" +\n \" ) \" +\n \" VALUES \" +\n \" ( \" +\n \" producto_seq.nextval, \" +\n \" #{produ.nombre}, \" +\n \" #{produ.tipo}, \" +\n \" #{produ.porc_precio}, \" +\n \" #{produ.uni_medida}, \" +\n \" #{produ.cantidad} \" +\n \" )\")\n void GuardarProducto(@Param(\"produ\") Producto producto);\n\n @Select(value = \"SELECT codigo, \" +\n \" nombre, \" +\n \" p.tipo, \" +\n \" tp.descripcion, \" +\n \" porc_precio, \" +\n \" uni_medida, \" +\n \" cantidad \" +\n \"FROM producto p \" +\n \"INNER JOIN tipoproducto tp \" +\n \"ON(p.tipo=tp.tipo)\")\n @Results(value = {\n @Result(javaType = Producto.class),\n @Result(property = \"codigo\",column = \"codigo\"),\n @Result(property = \"nombre\",column = \"nombre\"),\n @Result(property = \"tipo\",column = \"tipo\"),\n @Result(property = \"descripcion\",column = \"descripcion\"),\n @Result(property = \"porc_precio\",column = \"porc_precio\"),\n @Result(property = \"uni_medida\",column = \"uni_medida\"),\n @Result(property = \"cantidad\",column = \"cantidad\"),\n })\n List<Producto> listarProductos();\n\n @Update(value =\"UPDATE producto \" +\n \"SET nombre =#{produ.nombre}, \" +\n \" porc_precio=#{produ.porc_precio}, \" +\n \" tipo= \" +\n \" #{produ.tipo} \" +\n \"WHERE codigo=#{produ.codigo}\" )\n void ActualizarProducto(@Param(\"produ\") Producto producto);\n\n @Delete(value=\"DELETE FROM PRODUCTO WHERE codigo=#{id}\")\n void EliminarProducto(@Param(\"id\") Integer id);\n\n @Select(value = \"SELECT codigo, \" +\n \" nombre \" +\n \"FROM producto p where tipo=#{id} \")\n @Results(value = {\n @Result(javaType = Producto.class),\n @Result(property = \"codigo\",column = \"codigo\"),\n @Result(property = \"nombre\",column = \"nombre\"),\n })\n List<Producto> ListarProductosxCategoria(@Param(\"id\") Integer id);\n\n @Insert(value = \"INSERT \" +\n \"INTO entrada_productos \" +\n \" ( \" +\n \" n_entrada, \" +\n \" fecha, \" +\n \" costo_total \" +\n \" ) \" +\n \" VALUES \" +\n \" ( \" +\n \" entrada_seq.nextval , \" +\n \" sysdate, \" +\n \" #{entrada.costo_total} \" +\n \" )\")\n void insertEntradaProducto(@Param(\"entrada\") EntradaProducto entrada);\n\n @Insert(value = \"INSERT \" +\n \"INTO detalle_entrada_productos \" +\n \" ( \" +\n \" N_ENTRADA, \" +\n \" COD_PRODUCTO, \" +\n \" COD_PROVEEDOR, \" +\n \" CANTIDAD, \" +\n \" PRECIO_COMPRA, \" +\n \" COSTO_TOTAL_PRODUCTO \" +\n \" ) \" +\n \" VALUES \" +\n \" ( \" +\n \" (select max(n_entrada) from entrada_productos), \" +\n \" #{entrada.cod_producto}, \" +\n \" #{entrada.cod_proveedor}, \" +\n \" #{entrada.cantidad}, \" +\n \" #{entrada.precio_compra}, \" +\n \" #{entrada.costo_total_producto} \" +\n \" )\")\n void inserDetalleEntradaProductos(@Param(\"entrada\") EntradaProducto entrada);\n\n @Update(value =\"UPDATE producto \" +\n \"SET cantidad=(select cantidad+#{entrada.cantidad} from producto where codigo=#{entrada.cod_producto}) \"+\n \"WHERE codigo=#{entrada.cod_producto}\" )\n void updateStockProducto(@Param(\"entrada\")EntradaProducto entrada);\n}",
"private static void showsSqlSelectOnNormalEntityBean() {\n\n\t\tQuery<Bug> query = Ebean.createQuery(Bug.class, \"simple\");\n\t\tquery.where().eq(\"status.code\", \"ACTIVE\");\n\n\t\tList<Bug> list = query.findList();\n\n\t\tSystem.out.println(list);\n\t\t\n\t\tfor (Bug bug : list) {\n\t\t\tString body = bug.getBody();\n\t\t\tSystem.out.println(body);\n\t\t}\n\n\t}",
"@Override //插入通知\n\tpublic void insertPoInfo(PageData pd) throws Exception {\n\t\tdao.save(\"PoInfoMapper.insertPoInfo\", pd);\n\t}",
"public interface BugsActivityDAO {\n\n @Insert(\"insert into firefox_bugs_activity \" +\n \"(`bugId`,`who`,`when`,`what`,`removed`,`added`,`crawledTime`) \" +\n \"values (#{bugId},#{who},#{when},#{what},#{removed},#{added},#{crawledTime})\")\n public int add(BugsActivity fireFoxBugsActivity);\n\n @Insert(\"insert into firefox_bugs_activity_html (`bugId`,`html`) \" +\"values (#{bugId},#{html})\")\n public int addHtml(BugsActivity fireFoxBugsActivity);\n}",
"@Override\n\tpublic List<Map<String, Object>> getNoticeLast() {\n\t\tStringBuffer querySQL = new StringBuffer(\n\t\t\t\t\"select ifnull(title,'') title,ifnull(static_page,'') static_page from notice where status = 1 order by crdate desc limit 4\");\n\t\t// StringBuffer querySQL2 = new StringBuffer(\n\t\t// \"select count(1) from notice where status = 1 order by crdate desc limit 1\");\n\t\t// if (jdbcTemplate.queryForInt(querySQL2.toString()) > 0) {\n\t\treturn jdbcTemplate.queryForList(querySQL.toString());\n\t\t// }\n\t\t// return null;\n\n\t}",
"public PostRecord(Integer id, Integer userId, String title, String body, String date) {\n super(PostTable.POST);\n\n set(0, id);\n set(1, userId);\n set(2, title);\n set(3, body);\n set(4, date);\n }",
"@Override\n public Jurusan mapRow(ResultSet rs, int rowNum) throws SQLException {\n Jurusan jurusan=new Jurusan();\n jurusan.setId(rs.getInt(\"id\"));\n jurusan.setNama(rs.getString(\"nama\"));\n jurusan.setIdFakultas(rs.getInt(\"idFakultas\"));\n\n\n Fakultas fakultas=new Fakultas();\n fakultas.setId(rs.getInt(\"idFakultas\"));\n fakultas.setNama(rs.getString(\"namaFakultas\"));\n jurusan.setFakultas(fakultas);\n return jurusan;\n }",
"public interface BugPlatformMapper {\n\n\n @Select(\"SELECT js.pname as bugResolutionStatus, COUNT(js.pname) as bugNum FROM jiraissue ji INNER JOIN project pr ON pr.ID = ji.PROJECT LEFT JOIN issuestatus js ON ji.issuestatus = js.ID where pr.ID in (#{2}) and issuetype = 1 AND CREATED between #{0} and #{1} group by js.pname\")\n List<BugPlatformObject> getList(String startDate,String endDate,String project);\n}",
"@Override\n @Transactional\n public void onSubmit() {\n ValueMap values = getModelObject();\n\n // check if the honey pot is filled\n if (StringUtils.isNotBlank((String)values.get(\"comment\")))\n {\n error(\"Caught a spammer!!!\");\n return;\n }\n // Construct a copy of the edited comment\n Snip snip = new Snip();\n SnipMeta meta= new SnipMeta();\n\n logger.info(this.getDefaultModel().toString());\n\n logger.info(((List<String>) values.get(\"select_all\")).toString());\n\n meta.setTags((ArrayList<String>)values.get(\"select_all\"));\n meta.setDescription((String) values.get(\"meta\"));\n\n\n // Set date of comment to add\n snip.setDate(new Date());\n snip.setCode((String)values.get(\"code\"));\n snipList.add(0, snip); //TODO: eliminare lo show di tutti gli snipp da snipList magari con una FIFO\n meta.setSnip(snip);\n\n\n //--------- get session ad manager ------\n MyAuthenticatedWebSession app_session = MyAuthenticatedWebSession.getYourAppSession();\n logger.info(\"web session is: \"+app_session.toString());\n EntityManager em = app_session.getEntityManager();\n //---------------------------------------------------\n\n Users tmp_id = em.find(Users.class ,app_session.getAttribute(\"user\"));\n //snip.setUser(app_session.getCurrentUser()); --less network more backend\n snip.setUser(tmp_id);\n em.getTransaction().begin();\n em.setFlushMode(COMMIT);\n em.persist(snip);\n em.persist(meta);\n em.flush();\n em.getTransaction().commit();\n\n\n // Clear out the text component\n values.put(\"code\", \"\");\n }",
"@Override\n\tpublic String addOrUpdate(Map<String, Object> entityMap)\n\t\t\tthrows DataAccessException {\n\t\treturn null;\n\t}",
"@Insert({\n \"insert into kd_user_medal (id, userid, \",\n \"medalId, bindUserid, \",\n \"remark, createTime)\",\n \"values (#{id,jdbcType=BIGINT}, #{userid,jdbcType=BIGINT}, \",\n \"#{medalid,jdbcType=BIGINT}, #{binduserid,jdbcType=BIGINT}, \",\n \"#{remark,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP})\"\n })\n int insert(KDUserMedal record);",
"public interface GradeMapper {\n @Select(\"select * from grade\")\n public List<Grade> getByGradeNm();\n\n @Insert(\"insert into grade(grade_nm,teacher_id) values(#{gradeNm},#{teacherId})\")\n @Options(useGeneratedKeys=true,keyColumn=\"id\",keyProperty=\"id\")//设置id自增长\n public void save(Grade grade);\n}",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<Post> getPostsOf(int postId , int userId){\n\t\t\n\t\tList<Post> postList = null;\n\t\tCriteria query = null;\n\t\ttry {\n\t\t\t\n\t\t\t query = getCurrentSession().createCriteria(Post.class);\n\t\t\t \n\t\t\t query.createAlias(\"this.orgperson\", \"author\") \n\t\t\t .createAlias(\"author.personid\",\"authorPerson\")\n\t\t\t \t .createAlias(\"this.postcategories\", \"postcategories\")\n\t\t\t \t .createAlias(\"postcategories.category\", \"category\")\n\t\t\t \t .createAlias(\"this.postskills\", \"postskills\")\n\t\t\t \t .createAlias(\"postskills.skill\", \"skill\")\n\t\t\t \t .createAlias(\"this.posttags\", \"posttags\")\n\t\t\t \t .createAlias(\"posttags.tag\", \"tag\");\n\t\t\t \n\t\t\t query.add(Restrictions.eq(\"this.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"author.orgpersonstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"authorPerson.personstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"postcategories.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"category.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"postskills.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"skill.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"posttags.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"tag.status\", \"A\")) \n\t\t\t \t .add(Restrictions.eq(\"this.id\", postId))\n\t\t\t \t .add(Restrictions.eq(\"author.orgpersonid\", userId));\n\t\t\t \n\t\t\t query.setProjection(Projections.projectionList()\n\t\t\t\t\t \n\t\t\t\t\t //post\n\t\t\t\t\t .add(Projections.property(\"this.id\").as(\"post_id\"))\n\t\t\t\t\t .add(Projections.property(\"this.title\").as(\"post_title\"))\n\t\t\t\t\t .add(Projections.property(\"this.content\").as(\"post_content\")) \n\t\t\t\t\t .add(Projections.property(\"this.bannerpath\").as(\"post_bannerpath\"))\n\t\t\t\t\t .add(Projections.property(\"this.commentable\").as(\"post_commentable\"))\n\t\t\t\t\t .add(Projections.property(\"this.date\").as(\"post_date\"))\n\t\t\t\t\t .add(Projections.property(\"this.media\").as(\"post_media\")) \n\t\t\t\t\t .add(Projections.property(\"this.status\").as(\"post_status\")) \n\t\t\t\t\t //authorperson\n\t\t\t\t\t .add(Projections.property(\"authorPerson.personid\").as(\"authorPersonPersonId\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.firstName\").as(\"authorPersonFirstName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.lastName\").as(\"authorPersonLastName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.middleName\").as(\"authorPersonmiddleName\")) \n\t\t\t\t\t //category \n\t\t\t\t\t .add(Projections.property(\"postcategories.id\").as(\"postCategoryId\"))\n\t\t\t\t\t .add(Projections.property(\"postcategories.status\").as(\"postCategoryStatus\"))\n\t\t\t\t\t .add(Projections.property(\"category.id\").as(\"categoryId\")) \n\t\t\t\t\t .add(Projections.property(\"category.name\").as(\"categoryName\")) \n\t\t\t\t\t //skill\n\t\t\t\t\t .add(Projections.property(\"postskills.id\").as(\"postSkillsId\"))\n\t\t\t\t\t .add(Projections.property(\"postskills.status\").as(\"postSkillsStatus\"))\n\t\t\t\t\t .add(Projections.property(\"skill.id\").as(\"skillId\")) \n\t\t\t\t\t .add(Projections.property(\"skill.name\").as(\"skillName\")) \n\t\t\t\t\t//tag\n\t\t\t\t\t .add(Projections.property(\"posttags.id\").as(\"postTagsId\"))\n\t\t\t\t\t .add(Projections.property(\"posttags.status\").as(\"postTagsStatus\"))\n\t\t\t\t\t .add(Projections.property(\"tag.id\").as(\"tagId\")) \n\t\t\t\t\t .add(Projections.property(\"tag.name\").as(\"tagName\")) \n\t\t\t\t\t \n\t\t\t\t\t ); \n\t\t\t \n\t\t\t postList = query.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP).list();\n\t\t\t \n\t\t\t \t \t \n\t\t} catch (Exception e) {\n\t\t\tpostServiceLogger.error(\"error in PostService for getPostsOf()\",e);\n\t\t}\n\t\treturn postList;\n\t}",
"public void insert() throws SQLException {\n Statement stmtIn = DatabaseConnector.getInstance().getStatementIn();\n\n int check = BusinessFacade.getInstance().checkIDinDB(this.productRelation.getID(),\n this.post.getID(), \"goods\", \"product_type_id\", \"post_id\");\n if (check == -1){\n stmtIn.executeUpdate(\"INSERT INTO ngaccount.goods (goods_id , product_type_id, post_id) \" +\n \"VALUES ('\" + this.goodID + \"', '\" + this.productRelation.getID() +\n \"', '\" + this.post.getID() + \"');\");\n }\n }",
"public void savePost(VBeatPostModel post) {\n AppLocalDB.getInstance().db.postDao().insertAll(post);\n }"
]
| [
"0.5986511",
"0.57343584",
"0.5698853",
"0.56634164",
"0.56359017",
"0.5495471",
"0.54766834",
"0.5443607",
"0.54186773",
"0.540675",
"0.5376697",
"0.53740305",
"0.5356344",
"0.5313168",
"0.5307734",
"0.52856094",
"0.5266923",
"0.5225843",
"0.5206651",
"0.51996106",
"0.51923144",
"0.51611745",
"0.51532006",
"0.51422745",
"0.513571",
"0.51353717",
"0.5134549",
"0.5105684",
"0.5074469",
"0.5057113",
"0.5056853",
"0.5055585",
"0.5049771",
"0.502594",
"0.50159794",
"0.499411",
"0.49642175",
"0.49531126",
"0.49521723",
"0.4947493",
"0.49395558",
"0.49384743",
"0.49324217",
"0.4932038",
"0.4923745",
"0.4923715",
"0.49205098",
"0.49137557",
"0.49134496",
"0.49100736",
"0.4908896",
"0.48664138",
"0.48659784",
"0.48588654",
"0.48575795",
"0.4856264",
"0.4849936",
"0.48469815",
"0.48342496",
"0.48333818",
"0.4814589",
"0.4807359",
"0.48047185",
"0.47946662",
"0.4789952",
"0.4779272",
"0.4777647",
"0.47775498",
"0.47705945",
"0.47551864",
"0.47544068",
"0.4752167",
"0.47486997",
"0.47481894",
"0.47462088",
"0.47452283",
"0.4744978",
"0.47447786",
"0.47446957",
"0.47380137",
"0.47270015",
"0.4726089",
"0.47204205",
"0.47192907",
"0.47117898",
"0.4707037",
"0.47054353",
"0.47028366",
"0.4699353",
"0.46976545",
"0.46958038",
"0.46956462",
"0.469355",
"0.46908292",
"0.4689735",
"0.46892476",
"0.46826327",
"0.46822074",
"0.4677628",
"0.46771917"
]
| 0.47501215 | 72 |
This method was generated by MyBatis Generator. This method corresponds to the database table post_information | public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getPostSQL()\n {\n return _get_imfObject().getPostSQL();\n }",
"public PostRecord() {\n super(PostTable.POST);\n }",
"Forumpost selectByPrimaryKey(Integer postid);",
"PostSaveDTO queryDetailById(String postId);",
"public ArrayList<PostInfo> getPost() throws SQLException {\n ArrayList<PostInfo> postInfoList = new ArrayList<>();\n String sql = \"SELECT * FROM `post` WHERE `status` = 1 ORDER BY `post_time` DESC\";\n statement = connection.createStatement();\n resultSet = statement.executeQuery(sql);\n while (resultSet.next()) {\n postInfoList.add(new PostInfo(resultSet.getInt(\"post_id\"), resultSet.getInt(\"place_id\"), resultSet.getString(\"post_text\"),\n resultSet.getDate(\"post_time\"), resultSet.getInt(\"status\"), resultSet.getInt(\"user_id\"), resultSet.getInt(\"editor_id\")));\n }\n return postInfoList;\n }",
"@SuppressWarnings(\"deprecation\")\n\tpublic void writeTable()\n\t{\n\t\tIterator<WPPost> itr = readValues.iterator();\n\t\t\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\tWPPost post = itr.next();\n\t\t\tPreparedStatement prStm;\n\t\t\tint res = 0;\n\t\t\t\n\t\t\ttry \n\t\t\t{\n\t\t\t\tif(post.getPostDateGMT() == null)\n\t\t\t\t{\n\t\t\t\t\tpost.setPostDateGMT(new Timestamp(0));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(post.getPostModifiedGMT() == null)\n\t\t\t\t{\n\t\t\t\t\tpost.setPostModifiedGMT(new Timestamp(0));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tprStm = conn.prepareStatement(WRITE_STATEMENT);\n\t\t\t\tprStm.setInt(1, post.getId());\n\t\t\t\tprStm.setInt(2, post.getPostAuthor());\n\t\t\t\tprStm.setTimestamp(3, post.getPostDate());\n\t\t\t\tprStm.setTimestamp(4, post.getPostDateGMT());\n\t\t\t\tprStm.setString(5, post.getPostContent());\n\t\t\t\tprStm.setString(6, post.getPostTitle());\n\t\t\t\tprStm.setString(7, post.getPostExcerpt());\n\t\t\t\tprStm.setString(8, post.getPostStatus());\n\t\t\t\tprStm.setString(9, post.getCommentStatus());\n\t\t\t\tprStm.setString(10, post.getPingStatus());\n\t\t\t\tprStm.setString(11, post.getPostPassword());\n\t\t\t\tprStm.setString(12, post.getPostName());\n\t\t\t\tprStm.setString(13, post.getToPing());\n\t\t\t\tprStm.setString(14, post.getPinged());\n\t\t\t\tprStm.setTimestamp(15, post.getPostModified());\n\t\t\t\tprStm.setTimestamp(16, post.getPostModifiedGMT());\n\t\t\t\tprStm.setString(17, post.getPostContentFiltered());\n\t\t\t\tprStm.setInt(18, post.getPostParent());\n\t\t\t\tprStm.setString(19, post.getGuid());\n\t\t\t\tprStm.setInt(20, post.getMenuOrder());\n\t\t\t\tprStm.setString(21, post.getPostType());\n\t\t\t\tprStm.setString(22, post.getPostMimeType());\n\t\t\t\tprStm.setInt(23, post.getCommentCount());\n\t\t\t\t\n\t\t\t\tres = prStm.executeUpdate();\n\t\t\t\t\n\t\t\t\tif(res == 0)\n\t\t\t\t{\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new WriteWPPostException(post.toString());\n\t\t\t\t\t} \n\t\t\t\t\tcatch (WriteWPPostException e) \n\t\t\t\t\t{\n\t\t\t\t\t\t//e.printStackTrace(); // TODO Debug Mode! Delete This!\n\t\t\t\t\t\tthis.rowsWithErrors.add(post);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\t\t\tcatch (SQLException e1) \n\t\t\t{\n\t\t\t\t//e1.printStackTrace(); // TODO Debug Mode! Delete This!\n\t\t\t\tthis.rowsWithErrors.add(post);\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\tpublic List<Post> getAllPost() {\n\t\tString hql = \"from Post\";\r\n\t\treturn (List<Post>) getHibernateTemplate().find(hql);\r\n\t}",
"PmPost selectByPrimaryKey(String postId);",
"public void setPostId(Integer postId) {\n this.postId = postId;\n }",
"public Integer getPostId() {\n return postId;\n }",
"@Override\n\tpublic void getAll() {\n\t\tArrayList<Post> list = new ArrayList<Post>();\n\t\tlist = dao.selectAll();\n\t\t\n\t\tfor (Post p : list) {\n\t\t\tSystem.out.println(p.getPostId() + \".\" + p.getPostName() + \" 작성자:\" + p.getMemberId());\n\t\t}\n\t}",
"public List<detailsofpassengerpost> seedetailslist() throws IOException{\n//connect database\nString resource = \"orm/configuration.xml\";\nReader reader = Resources.getResourceAsReader(resource);\nSqlSessionFactory sessionFactory = new SqlSessionFactoryBuilder().build(reader);\nSqlSession session = sessionFactory.openSession();\n\ntry{\n\tSystem.out.println(\"postID in seeDetails=\"+postID);\npostlist=session.selectList(\"selectPassengerPostByID\",postID);\nSystem.out.println(\"postlist size in seeDetails=\"+postlist.size());\n\n//find passenger's name through his email address\nnumberofapplieddrivers=postlist.get(0).getNumberofapplieddrivers();\npassengeremail=postlist.get(0).getEmail();\npassengerlist=session.selectList(\"selectuserbyemail\", passengeremail);\n\npassengername=passengerlist.get(0).getName();\npassengersex=passengerlist.get(0).getSex();\npassengerdob=passengerlist.get(0).getDob();\n\ndd=new detailsofpassengerpost();\ndetaillist=new ArrayList<detailsofpassengerpost>();\n\ndd.setNeedseats(postlist.get(0).getNeedseats());\ndd.setExpectedcartype(postlist.get(0).getExpectedcartype());\ndd.setDeparture(postlist.get(0).getDeparture());\ndd.setDeparturedate(postlist.get(0).getDeparturedate());\ndd.setDestination(postlist.get(0).getDestination());\ndd.setDob(passengerdob);\ndd.setEmail(passengeremail);\ndd.setEstimatedleavingtime(postlist.get(0).getEstimatedleavingtime());\ndd.setExpectedcost(postlist.get(0).getExpectedcost());\ndd.setMemo(postlist.get(0).getMemo());\ndd.setName(passengername);\ndd.setPostID(postID);\ndd.setSex(passengersex);\ndd.setPhone(postlist.get(0).getPhone());\ndd.setNumberofapplieddrivers(numberofapplieddrivers);\ndetaillist.add(dd);\n\nreturn detaillist;\n\n}finally{\nsession.close();\n}\n}",
"public List<Post> all() throws DataAccessException{\n String sql = \"select posts.id, posts.user_id, users.name, posts.title, posts.content, posts.create_date from posts join users on posts.user_id=users.id\";\n List<Post> posts = this.jdbcTemplate.query(sql, mapper);\n return posts;\n }",
"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}",
"@Override\r\n\tpublic void addPost(Post post) {\n\t\tgetHibernateTemplate().save(post);\r\n\t}",
"@Override\n public HashMap<Integer,_DefaultMessage> loadPost() throws IOException, SQLException, ClassNotFoundException {\n return _DbConnectionManager.getHMPosts(this.dbConnection, this.getName());\n }",
"public String getPostTableName() {\r\n\t\treturn postTableName;\r\n\t}",
"public void setPostId(long postId);",
"public interface CommentMapper {\n\n @Insert(\"insert comment(productId,userId,text,createdAt) values(#{productId},#{userId},#{text},now())\" )\n @Options(useGeneratedKeys = true,keyProperty = \"id\")\n void insertComment(Comment comment);\n\n @Select(\"select * from comment where productId=#{productId}\")\n List<Comment> getCommentByProductId(int productId);\n\n @Delete(\"delete from comment where id = #{id}\")\n void deleteComment(int id);\n\n\n}",
"public interface Post {\n\n\tpublic Long getId();\n\n\tpublic void setId(Long id);\n\n\tpublic Date getDate();\n\n\tpublic void setDate(Date date);\n\n\tpublic String getMessage();\n\n\tpublic void setMessage(String message);\n\n}",
"@Override\r\n\t\tpublic DatabaseMetaData getMetaData() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"public void updatePost(PostInfo postInfo) throws SQLException {\n String sql = \"UPDATE `post` SET `place_id`=?,`post_text`=?,`post_time`=?,`status`=?,`user_id`=?,`editor_id`=? WHERE `post_id` = ?\";\n preparedStatement = connection.prepareStatement(sql);\n preparedStatement.setInt(1, postInfo.getPlace_id());\n preparedStatement.setString(2, postInfo.getPost_text());\n preparedStatement.setDate(3, postInfo.getPost_time());\n preparedStatement.setInt(4, postInfo.getStatus());\n preparedStatement.setInt(5, postInfo.getUser_id());\n preparedStatement.setInt(6, postInfo.getEditor_id());\n preparedStatement.setInt(7, postInfo.getPost_id());\n\n preparedStatement.executeUpdate();\n }",
"public int getPostId() {\r\n\t\treturn postId;\r\n\t}",
"public void deletePost(PostInfo postInfo) throws SQLException {\n String sql = \"UPDATE `post` SET `status`=0 WHERE `post_id` = ?\";\n preparedStatement = connection.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);\n preparedStatement.setInt(1, postInfo.getPost_id());\n\n preparedStatement.executeUpdate();\n }",
"@Override\n\tpublic Map<String, String> toSqlMap() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Collection<Tmly> getTmlyInfo() {\n\t\tString sql = \"select ID_,TITLE,CONTENT,state from tmly\";\n\t\tList<Tmly> list = this.jdbcTemplate.query(sql, new RowMapper<Tmly>() {\n\n\t\t\t@Override\n\t\t\tpublic Tmly mapRow(ResultSet result, int i) throws SQLException {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tTmly tmly = new Tmly();\n\t\t\t\ttmly.setId(result.getInt(\"id_\"));\n\t\t\t\ttmly.setTitle(result.getString(\"title\"));\n\t\t\t\ttmly.setContent(result.getString(\"content\"));\n\t\t\t\treturn tmly;\n\t\t\t}\n\n\t\t});\n\t\treturn list;\n\t}",
"public long getPostId() {\n return postId;\n }",
"public long getPostId();",
"public static ResultSet getPosts(){\n ResultSet result = null;\n try {\n conn = ConnectionProvider.getCon();\n pst = conn.prepareStatement(\"select * from normalposts\");\n result = pst.executeQuery();\n\n System.out.println(\"PostDAO: getting posts\");\n } catch(Exception e) {\n System.out.println(\"PostDAO: unsuccessful query\");\n System.out.println(e);\n }\n return result;\n }",
"@Mapper\npublic interface BlogDAO {\n @Insert(\"INSERT INTO blog(title,uniq,markdown,html, create_time,update_time) \" +\n \"VALUES(#{item.title},#{item.uniq},#{item.markdown},#{item.html},#{item.createTime}, #{item.updateTime})\")\n int insert(\n @Param(\"item\") Blog blog\n );\n\n @Select(\"SELECT id,uniq,title,markdown,html,\" +\n \" create_time as createTime,update_time as updateTime \" +\n \" FROM blog WHERE id = #{id}\")\n Blog getBlogById(@Param(\"id\") String id);\n\n @Insert(\"replace into blog(id,title,uniq,markdown,html, create_time,update_time) \" +\n \"VALUES(#{item.id},#{item.title},#{item.uniq},#{item.markdown},#{item.html},#{item.createTime}, #{item.updateTime})\")\n int update(@Param(\"item\")Blog blog);\n\n @Select(\"SELECT id,uniq,title,\" +\n \" create_time as createTime,update_time as updateTime \" +\n \" FROM blog order by id desc limit #{offset}, #{limit}\")\n List<Blog> getBlogList(@Param(\"offset\")long offset,\n @Param(\"limit\")long limit,\n @Param(\"sort\") String sort);\n}",
"@Test\n public void metaDataExample1() throws SQLException {\n Connection connection = DriverManager.getConnection(dbUrl, dbUsername, dbPassword);\n // 2. Create statement\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n // Run sql query and get the result in resultSet object\n String sqlQuery= \"Select * From departments\";\n //String sqlQuery= \"Select first_name, last_name, salary From employees\";\n ResultSet resultSet = statement.executeQuery(sqlQuery);\n\n // we use resultSet metadata to get information about the tables\n // get the resultSet object metadata\n ResultSetMetaData rsMetadata = resultSet.getMetaData();\n\n // List for keeping all rows as a map\n List<Map<String, Object>> queryData = new ArrayList<>();\n\n // while(resultSet.next()) helps to iterate through columns\n while (resultSet.next()) {\n // key(columns) will be string but value can be any type of data. That's why we choose <String, Object>\n Map<String, Object> row = new HashMap<>(); // creating empty Map\n // number of columns\n int colCount = rsMetadata.getColumnCount();\n // for loop helps to iterate through columns\n for (int i = 1; i <= colCount; i++) {\n row.put(rsMetadata.getColumnName(i), resultSet.getObject(i));\n }\n\n queryData.add(row); // adding a Map to the List of Maps\n }\n\n // Printing the rows\n for (Map<String, Object> row: queryData) {\n System.out.println(row.toString());\n\n }\n\n\n\n\n // close all connections\n resultSet.close();\n statement.close();\n connection.close();\n }",
"public String toSql() {\t\n int n;\t\n void a;\t\n StringBuilder a2 = new StringBuilder();\t\n Table table = MapperHelper.getTable(this.entity);\t\n a2.append(MapperHelper.getTableName((Table)a, this.entity) + \" \" + a.alias());\t\n JoinTable[] arrjoinTable = a.joinTable();\t\n int n2 = arrjoinTable.length;\t\n int n3 = n = 0;\t\n while (n3 < n2) {\t\n JoinTable a3 = arrjoinTable[n];\t\n Table a4 = MapperHelper.getTable(a3.entity());\t\n a2.append(new StringBuilder().insert(0, \" \").append(a3.type().value()).append(\" \").toString());\t\n a2.append(new StringBuilder().insert(0, MapperHelper.getTableName(a4, this.entity)).append(\" \").append(a3.alias()).toString());\t\n a2.append(new StringBuilder().insert(0, \" ON \").append(a3.on()).toString());\t\n n3 = ++n;\t\n }\t\n StringBuilder stringBuilder = a2;\t\n stringBuilder.append(MapperHelper.getSqlMapValue(this.entity, a.extFromKeys()));\t\n return stringBuilder.toString();\t\n }",
"List<PostInfo> getPostList();",
"TypedKeyValue<String, Integer> getDestinationInfo(String sql);",
"public void setPostId(int postId) {\r\n\t\tthis.postId = postId;\r\n\t}",
"public List<PostEntry> savePost(String username, int postid, String title, String body){\n Connection c = null;\n PreparedStatement ps = null; \n ResultSet rs = null;\n\n boolean ret = true;\n\n //check if postid exists.\n if(postid>0 && findPost(username, postid)==null){\n return null;\n }\n try {\n //Get connection\n c = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/CS144\", \"cs144\", \"\");\n int changed;\n if(postid>0){\n //UPDATE\n System.out.println(\"update post!\");\n ps = c.prepareStatement(\"UPDATE Posts SET title=?, body=?, modified=? WHERE username=? AND postid=?\");\n ps.setString(1, title);\n ps.setString(2, body);\n ps.setTimestamp(3, new Timestamp(System.currentTimeMillis())); //set modified to current time\n ps.setString(4, username);\n ps.setInt(5, postid);\n\n changed = ps.executeUpdate();\n }\n else {\n //get largest postid and add 1 to get newID\n\n System.out.println(\"new post!\");\n ps = c.prepareStatement(\"SELECT MAX(postid) FROM Posts WHERE username=?\");\n ps.setString(1, username);\n\n rs = ps.executeQuery();\n int newID = 1;\n if(rs.next()){\n newID = rs.getInt(1) + 1;\n }\n ps.close();\n\n ps = c.prepareStatement(\"INSERT INTO Posts (username, postid, title, body, modified, created) VALUES(?,?,?,?,?,?)\");\n ps.setString(1, username);\n ps.setInt(2, newID);\n ps.setString(3, title);\n ps.setString(4, body);\n ps.setTimestamp(5, new Timestamp(System.currentTimeMillis())); //set modified to current time\n ps.setTimestamp(6, new Timestamp(System.currentTimeMillis())); //set created to current time\n \n changed = ps.executeUpdate();\n }\n\n if(changed==0){\n ret = false;\n }\n\n } catch(SQLException e){\n //error handling\n System.out.println(\"SQLException caught.\");\n e.printStackTrace();\n } finally {\n //just need to close all\n try { rs.close(); } catch (Exception e) { /* ignored */ }\n try { ps.close(); } catch (Exception e) { /* ignored */ }\n try { c.close(); } catch (Exception e) { /* ignored */ }\n }\n\n //return list data\n if(ret)\n return findList(username);\n else\n return null;\n }",
"public long ashirPostCreating(AshirBlogPostingHelper post) {\n long result;\n\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(Col_2, post.getPost());\n values.put(Col_3, post.getImage());\n //inserting valuse into table columns\n result = db.insert(NAME_OF_TABLE, null, values);\n db.close();\n return result;\n\n }",
"public void setPostTableName(String postTableName) {\r\n\t\tthis.postTableName = postTableName;\r\n\t}",
"@Override\n\t\tprotected void postUpdate(EspStatusDTO t) throws SQLException {\n\t\t\t\n\t\t}",
"String getPostDeclareSql();",
"@Override\n public Entity configuracion(Entity e) throws SQLException {\n return null;\n }",
"public void setPostId(int postId) {\n\t\tthis.postId = postId;\n\t}",
"int getPostId();",
"void setPostId(int postId);",
"@Mapper\npublic interface QuestionDAO {\n String TABLE_NAME = \" question \";\n String INSERT_FIELDS = \" title, content, created_date, user_id, comment_count \";\n String SELECT_FIELDS = \" id, \" + INSERT_FIELDS;\n\n @Insert({\"insert into \", TABLE_NAME, \"(\", INSERT_FIELDS,\n \") values (#{title},#{content},#{createdDate},#{userId},#{commentCount})\"})\n int addQuestion(Question question);\n\n // 使用 xml 配置文件进行 数据库查询语句与程序接口的映射。\n // 对应的 QuestionDAO.xml 文件位于 resources 文件夹 -》com.mattLearn.dao 文件夹中。\n List<Question> selectLatestQuestions(@Param(\"userId\") int userId, @Param(\"offset\") int offset,\n @Param(\"limit\") int limit);\n\n @Select({\"select \", SELECT_FIELDS, \" from \", TABLE_NAME, \" where id=#{id}\"})\n Question SelectById(int id);\n\n @Update(\" update question set comment_count=#{commentCount} where id = #{id}\")\n int updateCommentCount(@Param(\"commentCount\") int commentCount,\n @Param(\"id\") int id);\n\n}",
"@Override\r\n\tpublic Post searchInfById(Post post2) {\n\t\tpostDao=new PostDaoImpl(TransactionManager.connection);\r\n\t\tResultSet resultSet=postDao.selectById(post2);\r\n\t\tPost post=new Post();\r\n\t\ttry {\r\n\t\t\tif(resultSet.next()) {\r\n\t\t\t\tpost.setPostId(resultSet.getInt(1));\r\n\t\t\t\tpost.setPostName(resultSet.getString(3));\r\n\t\t\t\tpost.setUserId(resultSet.getInt(2));\r\n\t\t\t\tpost.setPostProperty(resultSet.getInt(4));\r\n\t\t\t\tpost.setPostEnterNum(resultSet.getInt(5));\r\n\t\t\t\tpost.setPostTime(resultSet.getDate(6));\r\n\t\t\t\tpost.setPostScore(resultSet.getDouble(7));\r\n\t\t\t\tpost.setScoreCount(resultSet.getInt(8));\r\n\t\t\t\tpost.setLastComTime(resultSet.getDate(9));\r\n\t\t\t\tpost.setResId(resultSet.getInt(10));\r\n\t\t\t\tpost.setResPath(resultSet.getString(12));\r\n\t\t\t\tpost.setUserName(resultSet.getString(14));\r\n\t\t\t\tpost.setUserLevel(resultSet.getInt(16));\r\n\t\t\t\tpost.setUserStatus(resultSet.getInt(17));\r\n\t\t\t\tpost.setPropertyName(resultSet.getString(19));\r\n\t\t\t\tpost.setLocation(resultSet.getString(22));\r\n\t\t\t\tpost.setPhone(resultSet.getString(23));\r\n\t\t\t\tpost.setPostCode(resultSet.getInt(24));\r\n\t\t\t\tpost.setEmail(resultSet.getString(25));\r\n\t\t\t\tpost.setGender(resultSet.getString(26));\r\n\t\t\t\tpost.setHobby(resultSet.getString(27));\r\n\t\t\t\tpost.setMajor(resultSet.getString(28));\r\n\t\t\t\tpost.setScore(resultSet.getInt(29));\r\n\t\t\t\tpost.setNickName(resultSet.getString(30));\r\n\t\t\t\tpost.setUserRegion(resultSet.getString(31));\r\n\t\t\t\tpost.setUserPhoto(resultSet.getString(32));\r\n\t\t\t\tpost.setComCount(resultSet.getInt(39));\r\n\t\t\t\t\r\n\t\t\t\treturn post;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\treturn null;\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\treturn null;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n public ColumnInfo getColumnInfo() {\n return columnInfo;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<Post> getPostsOf(int postId){\n \t\tList<Post> postList = null;\n\t\tCriteria query = null;\n\t\ttry {\n\t\t\t\n\t\t\t query = getCurrentSession().createCriteria(Post.class);\n\t\t\t \n\t\t\t query.createAlias(\"this.orgperson\", \"author\") \n\t\t\t .createAlias(\"author.personid\",\"authorPerson\")\n\t\t\t \t .createAlias(\"this.postcategories\", \"postcategories\")\n\t\t\t \t .createAlias(\"postcategories.category\", \"category\")\n\t\t\t \t .createAlias(\"this.postskills\", \"postskills\")\n\t\t\t \t .createAlias(\"postskills.skill\", \"skill\")\n\t\t\t \t .createAlias(\"this.posttags\", \"posttags\")\n\t\t\t \t .createAlias(\"posttags.tag\", \"tag\");\n\t\t\t \n\t\t\t query.add(Restrictions.eq(\"this.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"author.orgpersonstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"authorPerson.personstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"postcategories.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"category.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"postskills.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"skill.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"posttags.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"tag.status\", \"A\")) \n\t\t\t \t .add(Restrictions.eq(\"this.id\", postId));\n\t\t\t \n\t\t\t query.setProjection(Projections.projectionList()\n\t\t\t\t\t \n\t\t\t\t\t //post\n\t\t\t\t\t .add(Projections.property(\"this.id\").as(\"post_id\"))\n\t\t\t\t\t .add(Projections.property(\"this.title\").as(\"post_title\"))\n\t\t\t\t\t .add(Projections.property(\"this.content\").as(\"post_content\")) \n\t\t\t\t\t .add(Projections.property(\"this.bannerpath\").as(\"post_bannerpath\"))\n\t\t\t\t\t .add(Projections.property(\"this.commentable\").as(\"post_commentable\"))\n\t\t\t\t\t .add(Projections.property(\"this.date\").as(\"post_date\"))\n\t\t\t\t\t .add(Projections.property(\"this.media\").as(\"post_media\")) \n\t\t\t\t\t .add(Projections.property(\"this.status\").as(\"post_status\")) \n\t\t\t\t\t //authorperson\n\t\t\t\t\t .add(Projections.property(\"authorPerson.personid\").as(\"authorPersonPersonId\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.firstName\").as(\"authorPersonFirstName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.lastName\").as(\"authorPersonLastName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.middleName\").as(\"authorPersonmiddleName\")) \n\t\t\t\t\t //category\n\t\t\t\t\t .add(Projections.property(\"category.id\").as(\"categoryId\")) \n\t\t\t\t\t .add(Projections.property(\"category.name\").as(\"categoryName\")) \n\t\t\t\t\t //skill\n\t\t\t\t\t .add(Projections.property(\"skill.id\").as(\"skillId\")) \n\t\t\t\t\t .add(Projections.property(\"skill.name\").as(\"skillName\")) \n\t\t\t\t\t//tag\n\t\t\t\t\t .add(Projections.property(\"tag.id\").as(\"tagId\")) \n\t\t\t\t\t .add(Projections.property(\"tag.name\").as(\"tagName\")) \n\t\t\t\t\t \n\t\t\t\t\t ); \n\t\t\t \n\t\t\t postList = query.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP).list(); \n\t\t\t \t \t \n\t\t} catch (Exception e) {\n\t\t\tpostServiceLogger.error(\"error in PostService for getPostsOf()\",e);\n\t\t} \n\t\treturn postList;\n\t}",
"public Integer getPostType() {\n return postType;\n }",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n response.setCharacterEncoding(\"UTF-8\");\n request.setCharacterEncoding(\"UTF-8\");\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"Ghosttales_PU\");\n EntityManager em = emf.createEntityManager();\n HttpSession session = request.getSession();\n \n \n //String file = request.getParameter(\"file\");\n \n \n String content = request.getParameter(\"content\");\n // String content = \"oiadjioajdoiajdiajsi\";\n System.out.println(\"---1---\");\n String title = request.getParameter(\"title\");\n String author = (String) session.getAttribute(\"userr\");\n UserInfo u = em.find(UserInfo.class, author);\n LocalDate today = LocalDate.now();\n \n System.out.println(u.getUsername());\n \n// if(content != null && title !=null) {\n\n // String sql2 = \"SELECT COUNT(p) FROM Post p\";\n String sql2 =\"SELECT p.postId FROM Post p\";\n Query q = em.createQuery(sql2);\n \n List <Post>ps =q.getResultList() ;\n \n \n \n// long countt = (long)q.getSingleResult();\n// int count = (int) countt+1;\n \n \n Post post = new Post(); \n int num = ps.size();\n if(num==0){\n int countt = num+1 ;\n int count = countt;\n post.setPostId(count);\n session.setAttribute(\"num\",count);\n }else{\n int countt = (int) q.getResultList().get(num-1);\n int count = countt+1;\n System.out.println(num);\n System.out.println(countt);\n System.out.println(count);\n post.setPostId(count);\n session.setAttribute(\"num\",count);\n }\n \n post.setTitle(title);\n post.setContent(content);\n post.setCreateTime(java.sql.Date.valueOf(today));\n post.setUpdateTime(null);\n post.setTotallike(0);\n post.setTotalcomment(0);\n post.setUserinfousername(u);\n System.out.println(\"-----2-----\");\n \n \n \n em.getTransaction().begin();\n em.persist(post);\n em.getTransaction().commit();\n \n \n \n \n \n session.setAttribute(\"show\", post);\n \n \n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"post\", post.getContent());\n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"title\", post.getTitle());\n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"author\", post.getUserinfousername().toString());\n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"day\", post.getCreateTime());\n \n \n\n request.getRequestDispatcher(\"/addimage.jsp\").forward(request, response);\n\n }",
"Achievements getPostDetails();",
"public CustomSql getCustomSqlInsert();",
"public int getDataid_postingBisnis() {\r\n return Dataid_postingBisnis;\r\n }",
"@Override\n\tpublic Post createPost(Post post) {\n\t\treturn postDao.createPost(post);\n\t}",
"int insert(PmPost record);",
"@Override\n\tpublic JDBCMetaData getMetaData() throws SQLException {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic void updatePost(Post post) {\n\t\tPost p = getPostById(post.getPost_id());\r\n\t\tp.setDepartment(post.getDepartment());\r\n\t\tp.setDescription(post.getDescription());\r\n\t\tp.setEmployeeSet(post.getEmployeeSet());\r\n\t\tp.setPost_id(post.getPost_id());\r\n\t\tp.setPost_name(post.getPost_name());\r\n\t\tp.setPost_wage(post.getPost_wage());\r\n\t\tgetHibernateTemplate().update(p);\r\n\t}",
"public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}",
"private void writeMetaData(ResultSet resultSet) throws SQLException {\n\t System.out.println(\"The columns in the table are: \");\r\n\t System.out.println(\"Table: \" + resultSet.getMetaData().getTableName(1));\r\n\t for (int i = 1; i<= resultSet.getMetaData().getColumnCount(); i++){\r\n\t System.out.println(\"Column \" +i + \" \"+ resultSet.getMetaData().getColumnName(i));\r\n\t }\r\n\t }",
"Integer getDomainTemplateColumn();",
"@SuppressWarnings(\"HardCodedStringLiteral\")\npublic interface MyPostsColumn {\n @DataType(INTEGER)\n @PrimaryKey\n String KEY_SQL_ID = \"sql_id\";\n\n @DataType(TEXT)\n @NotNull @Unique\n String KEY_ID = \"_id\";\n\n @DataType(TEXT)\n String KEY_AUTHOR = \"author\";\n\n @DataType(TEXT)\n @NotNull\n String KEY_SUBREDDIT_ID = \"subreddit_id\";\n\n @DataType(TEXT)\n @NotNull\n String KEY_SUBREDDIT = \"subreddit\";\n\n @DataType(INTEGER)\n String KEY_UPS = \"ups\";\n\n @DataType(TEXT)\n String KEY_TITLE = \"title\";\n\n @DataType(INTEGER)\n String KEY_COMMENTS_COUNT = \"comments_count\";\n\n @DataType(INTEGER)\n String KEY_CREATED_UTC = \"created_utc\";\n\n @DataType(INTEGER)\n String KEY_CREATED = \"created\";\n\n @DataType(TEXT)\n @NotNull\n String KEY_NAME = \"name\";\n\n @DataType(INTEGER)\n @NotNull\n String KEY_CLICKED = \"clicked\";\n\n @DataType(INTEGER)\n String KEY_LIKES = \"likes\"; //CAN BE NULL\n\n @DataType(TEXT)\n String KEY_DOMAIN = \"domain\";\n\n @DataType(INTEGER)\n String KEY_IS_SELF = \"is_self\";\n\n @DataType(INTEGER)\n @NotNull\n String KEY_OVER_18 = \"over_18\";\n\n @DataType(TEXT)\n String KEY_PERMALINK = \"permalink\";\n\n @DataType(TEXT)\n String KEY_POST_HINT = \"post_hint\";\n\n @DataType(INTEGER)\n String KEY_SCORE = \"score\";\n\n @DataType(TEXT)\n String KEY_THUMBNAIL = \"thumbnail\";\n\n @DataType(TEXT)\n String KEY_URL = \"url\";\n\n @DataType(INTEGER)\n String KEY_VISITED = \"visited\";\n\n @DataType(INTEGER)\n String KEY_LOCKED = \"locked\";\n\n @DataType(TEXT)\n String KEY_MEDIA_OEMBED_TYPE = \"media_oembed_type\";\n\n @DataType(TEXT)\n String KEY_BIG_IMAGE_URL = \"big_image_url\";\n\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_POST = \"type_post\";\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_SEARCH = \"type_search\";\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_WIDGET = \"type_widget\";\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_TEMP = \"type_temp\";\n\n\n\n}",
"@Override\n\tpublic void updateAllPostNowTipBySid(String Id, CodeInfo codeInfo) {\n\t\tQuery query = this.currentSession().createQuery(\"update com.wondersgroup.human.bo.pubinst.PtPost set tenureStatus = :nowPostSign where publicInstitution.id = :Id\");\n\t\tquery.setParameter(\"nowPostSign\", codeInfo);\n\t\tquery.setParameter(\"Id\",Id);\n\t\tquery.executeUpdate();\n\t\t\n\t}",
"public void queryPostTable(Context activityContext, String postTableName) {\n new GetCursorTablePost(activityContext).execute(postTableName);\n }",
"public interface IBasicPost {\n Long getId();\n String getTitle();\n String getDescription();\n long getCreatedDate();\n long getUpdatedDate();\n Integer getCityId();\n Long getUserId();\n Integer getUserLikeCount();\n Integer getUserCommentCount();\n String getUserFirstName();\n}",
"@RequestMapping(value = \"fetch-health-tips\", method = RequestMethod.POST)\n private List<HealthPost> fetchHealthTips() {\n SessionService.sessionBuilder(session -> {\n healthPostList = session.createQuery(\"from HealthPost order by id desc\", HealthPost.class).list();\n });\n return healthPostList;\n }",
"@Override\n public DatabaseMetaData getMetaData() throws SQLException\n {\n logger.debug(\n \" public DatabaseMetaData getMetaData() throws SQLException\");\n\n return new SnowflakeDatabaseMetaData(this);\n }",
"@Override\n\tpublic void getPost(Scanner sc) {\n\t\tPost p;\n\t\tgetAll();\n\t\tSystem.out.print(\"보고 싶은 리뷰의 번호를 입력해 주세요 >>\");\n\t\tp = dao.selectPost(sc.nextInt());\n\t\tSystem.out.println(p.getPostName());\n\t\tSystem.out.println(p.getContent());\n\t}",
"public interface BasePostPoMapper extends feihua.jdbc.api.dao.CrudDao<BasePostPo, String> {\n\n java.util.List<BasePostPo> searchBasePosts(SearchPostsConditionDsfDto dto);\n}",
"public List<MediumBean> populatemediam(String sql ){\n\t\t\t\tList<MediumBean> retlist = jdbcTemplate.query(sql,ParameterizedBeanPropertyRowMapper.newInstance(MediumBean.class));\n\t\t\t\t\treturn retlist;\n\t\t }",
"@Query(\"SELECT * FROM \" + TABLE_NAME)\n List<Note> getNotes();",
"public boolean addPost(Post post) throws SQLException\n {\n boolean isAdded=false;\n try\n {\n database = dbH.getReadableDatabase();\n dbH.openDataBase();\n ContentValues values = new ContentValues();\n values.put(\"postBody\", post.getPostBody());\n values.put(\"postedBy\", post.getPostedBy());\n values.put(\"postedAt\", post.getPostedAt());\n values.put(\"postID\", post.getPostID());\n values.put(\"image\" , post.getBitmap());\n\n isAdded=database.insert(\"Post\", null, values)>0;\n\n }\n catch(SQLException e)\n {\n e.printStackTrace();\n }\n finally{\n if(database!=null && database.isOpen())\n dbH.close();\n }\n return isAdded;}",
"@Override\r\n\tprotected Entity getEntityByFields() throws SQLException {\n\t\t\r\n\t\tint id = rs.getInt(\"id\");\r\n\t\tint productId = rs.getInt(\"id_product\");\r\n\t\tString productName = super.getString(\"productName\");\t// From INNER JOIN\r\n\t\tString productUnit = super.getString(\"productUnit\");\t// From INNER JOIN\r\n\t\tfloat quantity = rs.getFloat(\"quantity\");\r\n\t\tfloat price = rs.getFloat(\"price\");\r\n\t\tfloat summa = rs.getFloat(\"summa\");\r\n\t\t\r\n\t\treturn new DocInvoiceItem(id, productId, productName, productUnit, quantity, price, summa);\r\n\t}",
"public PostInformationExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public String getGeneratedSql() {\n/* 142 */ return this.sql;\n/* */ }",
"@Override\r\n\tpublic BaseBean insertSQL(String sql, Connection con) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic void insertIPODetail(IPODetail ipo) throws SQLException {\n\t\t\n\t}",
"@Override\n\tpublic Map<String, String[]> loadColumnMetas(String databaseName) throws SQLException {\n\t\tString sql=\"select utc.*,UCC.comments from user_tab_columns utc\\n\" + \n\t\t\t\t\"left join user_col_comments ucc on UCC.table_name=UTC.table_name and UCC.column_name=UTC.column_name\";\n\t\tMap<String, String[]> ret=new HashMap<>();\n\t\t try(PreparedStatement preparedStatement= connection.prepareStatement(sql);\n\t \t\tResultSet resultSet=preparedStatement.executeQuery();){\n\t\t\twhile(resultSet.next()) {\n\t\t\t\tString tableName=resultSet.getString(\"TABLE_NAME\")\n\t\t\t\t\t\t,columnName=resultSet.getString(\"COLUMN_NAME\")\n\t\t\t\t\t\t,dataLength=resultSet.getString(\"DATA_LENGTH\")\n\t\t ,nullable=resultSet.getString(\"NULLABLE\")\n\t\t ,comments=resultSet.getString(\"COMMENTS\")\n\t\t\t\t\t\t;\n\t\t\t\tString key=tableName+\":\"+columnName;\n\t\t\t\tret.put(key, new String[] {dataLength,nullable,comments});\n\t\t\t\t\n\t\t\t}\n\t }\n\t\t\n\t\treturn ret;\n\t}",
"@Override\r\n\tpublic List<Post> getPostByName(String name) {\n\t\tString hql = \"from Post p where p.post_name =?\";\r\n\t\treturn (List<Post>) getHibernateTemplate().find(hql, name);\r\n\t}",
"void processMetaData(ResultSet rs) throws SQLException;",
"@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }",
"@Dao\npublic interface PostDao {\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n void insertPost(iPost iPosts);\n\n @Update\n void updatePost(iPost iPost);\n\n @Delete\n void deletePost(iPost iPost);\n\n @Query(\"SELECT * FROM iPost\")\n List<iPost> getAllPosts();\n\n @Query(\"SELECT * FROM iPost WHERE idThread=:threadId\")\n List<iPost> findPostsByThread(final int threadId);\n\n @Transaction\n @Query(\"SELECT * FROM iPost WHERE idThread=:threadId\")\n Single<List<PostsHelper>> getPostsFromThread(String threadId);\n}",
"protected String getSqlTable() {\n\t\treturn \"Project\";\n\t}",
"public void formDatabaseTable() {\n }",
"public CustomSql getCustomSqlUpdate();",
"void savePost(Post post);",
"@Override\n\tprotected String getCreateSql() {\n\t\treturn null;\n\t}",
"public interface AlmacenMapper {\n @Select(value = \"select tipo,descripcion from tipoproducto\")\n @Results(value = {\n @Result(javaType = Producto.class),\n @Result(property = \"tipo\",column = \"tipo\"),\n @Result(property = \"descripcion\",column = \"descripcion\"),\n })\n List<Producto> listarTipoProducto();\n\n @Insert(value = \"INSERT \" +\n \"INTO producto \" +\n \" ( \" +\n \" codigo, \" +\n \" nombre, \" +\n \" tipo, \" +\n \" porc_precio, \" +\n \" uni_medida, \" +\n \" cantidad \" +\n \" ) \" +\n \" VALUES \" +\n \" ( \" +\n \" producto_seq.nextval, \" +\n \" #{produ.nombre}, \" +\n \" #{produ.tipo}, \" +\n \" #{produ.porc_precio}, \" +\n \" #{produ.uni_medida}, \" +\n \" #{produ.cantidad} \" +\n \" )\")\n void GuardarProducto(@Param(\"produ\") Producto producto);\n\n @Select(value = \"SELECT codigo, \" +\n \" nombre, \" +\n \" p.tipo, \" +\n \" tp.descripcion, \" +\n \" porc_precio, \" +\n \" uni_medida, \" +\n \" cantidad \" +\n \"FROM producto p \" +\n \"INNER JOIN tipoproducto tp \" +\n \"ON(p.tipo=tp.tipo)\")\n @Results(value = {\n @Result(javaType = Producto.class),\n @Result(property = \"codigo\",column = \"codigo\"),\n @Result(property = \"nombre\",column = \"nombre\"),\n @Result(property = \"tipo\",column = \"tipo\"),\n @Result(property = \"descripcion\",column = \"descripcion\"),\n @Result(property = \"porc_precio\",column = \"porc_precio\"),\n @Result(property = \"uni_medida\",column = \"uni_medida\"),\n @Result(property = \"cantidad\",column = \"cantidad\"),\n })\n List<Producto> listarProductos();\n\n @Update(value =\"UPDATE producto \" +\n \"SET nombre =#{produ.nombre}, \" +\n \" porc_precio=#{produ.porc_precio}, \" +\n \" tipo= \" +\n \" #{produ.tipo} \" +\n \"WHERE codigo=#{produ.codigo}\" )\n void ActualizarProducto(@Param(\"produ\") Producto producto);\n\n @Delete(value=\"DELETE FROM PRODUCTO WHERE codigo=#{id}\")\n void EliminarProducto(@Param(\"id\") Integer id);\n\n @Select(value = \"SELECT codigo, \" +\n \" nombre \" +\n \"FROM producto p where tipo=#{id} \")\n @Results(value = {\n @Result(javaType = Producto.class),\n @Result(property = \"codigo\",column = \"codigo\"),\n @Result(property = \"nombre\",column = \"nombre\"),\n })\n List<Producto> ListarProductosxCategoria(@Param(\"id\") Integer id);\n\n @Insert(value = \"INSERT \" +\n \"INTO entrada_productos \" +\n \" ( \" +\n \" n_entrada, \" +\n \" fecha, \" +\n \" costo_total \" +\n \" ) \" +\n \" VALUES \" +\n \" ( \" +\n \" entrada_seq.nextval , \" +\n \" sysdate, \" +\n \" #{entrada.costo_total} \" +\n \" )\")\n void insertEntradaProducto(@Param(\"entrada\") EntradaProducto entrada);\n\n @Insert(value = \"INSERT \" +\n \"INTO detalle_entrada_productos \" +\n \" ( \" +\n \" N_ENTRADA, \" +\n \" COD_PRODUCTO, \" +\n \" COD_PROVEEDOR, \" +\n \" CANTIDAD, \" +\n \" PRECIO_COMPRA, \" +\n \" COSTO_TOTAL_PRODUCTO \" +\n \" ) \" +\n \" VALUES \" +\n \" ( \" +\n \" (select max(n_entrada) from entrada_productos), \" +\n \" #{entrada.cod_producto}, \" +\n \" #{entrada.cod_proveedor}, \" +\n \" #{entrada.cantidad}, \" +\n \" #{entrada.precio_compra}, \" +\n \" #{entrada.costo_total_producto} \" +\n \" )\")\n void inserDetalleEntradaProductos(@Param(\"entrada\") EntradaProducto entrada);\n\n @Update(value =\"UPDATE producto \" +\n \"SET cantidad=(select cantidad+#{entrada.cantidad} from producto where codigo=#{entrada.cod_producto}) \"+\n \"WHERE codigo=#{entrada.cod_producto}\" )\n void updateStockProducto(@Param(\"entrada\")EntradaProducto entrada);\n}",
"private static void showsSqlSelectOnNormalEntityBean() {\n\n\t\tQuery<Bug> query = Ebean.createQuery(Bug.class, \"simple\");\n\t\tquery.where().eq(\"status.code\", \"ACTIVE\");\n\n\t\tList<Bug> list = query.findList();\n\n\t\tSystem.out.println(list);\n\t\t\n\t\tfor (Bug bug : list) {\n\t\t\tString body = bug.getBody();\n\t\t\tSystem.out.println(body);\n\t\t}\n\n\t}",
"@Override //插入通知\n\tpublic void insertPoInfo(PageData pd) throws Exception {\n\t\tdao.save(\"PoInfoMapper.insertPoInfo\", pd);\n\t}",
"public interface BugsActivityDAO {\n\n @Insert(\"insert into firefox_bugs_activity \" +\n \"(`bugId`,`who`,`when`,`what`,`removed`,`added`,`crawledTime`) \" +\n \"values (#{bugId},#{who},#{when},#{what},#{removed},#{added},#{crawledTime})\")\n public int add(BugsActivity fireFoxBugsActivity);\n\n @Insert(\"insert into firefox_bugs_activity_html (`bugId`,`html`) \" +\"values (#{bugId},#{html})\")\n public int addHtml(BugsActivity fireFoxBugsActivity);\n}",
"@Override\n\tpublic List<Map<String, Object>> getNoticeLast() {\n\t\tStringBuffer querySQL = new StringBuffer(\n\t\t\t\t\"select ifnull(title,'') title,ifnull(static_page,'') static_page from notice where status = 1 order by crdate desc limit 4\");\n\t\t// StringBuffer querySQL2 = new StringBuffer(\n\t\t// \"select count(1) from notice where status = 1 order by crdate desc limit 1\");\n\t\t// if (jdbcTemplate.queryForInt(querySQL2.toString()) > 0) {\n\t\treturn jdbcTemplate.queryForList(querySQL.toString());\n\t\t// }\n\t\t// return null;\n\n\t}",
"public PostRecord(Integer id, Integer userId, String title, String body, String date) {\n super(PostTable.POST);\n\n set(0, id);\n set(1, userId);\n set(2, title);\n set(3, body);\n set(4, date);\n }",
"@Override\n public Jurusan mapRow(ResultSet rs, int rowNum) throws SQLException {\n Jurusan jurusan=new Jurusan();\n jurusan.setId(rs.getInt(\"id\"));\n jurusan.setNama(rs.getString(\"nama\"));\n jurusan.setIdFakultas(rs.getInt(\"idFakultas\"));\n\n\n Fakultas fakultas=new Fakultas();\n fakultas.setId(rs.getInt(\"idFakultas\"));\n fakultas.setNama(rs.getString(\"namaFakultas\"));\n jurusan.setFakultas(fakultas);\n return jurusan;\n }",
"public interface BugPlatformMapper {\n\n\n @Select(\"SELECT js.pname as bugResolutionStatus, COUNT(js.pname) as bugNum FROM jiraissue ji INNER JOIN project pr ON pr.ID = ji.PROJECT LEFT JOIN issuestatus js ON ji.issuestatus = js.ID where pr.ID in (#{2}) and issuetype = 1 AND CREATED between #{0} and #{1} group by js.pname\")\n List<BugPlatformObject> getList(String startDate,String endDate,String project);\n}",
"@Override\n @Transactional\n public void onSubmit() {\n ValueMap values = getModelObject();\n\n // check if the honey pot is filled\n if (StringUtils.isNotBlank((String)values.get(\"comment\")))\n {\n error(\"Caught a spammer!!!\");\n return;\n }\n // Construct a copy of the edited comment\n Snip snip = new Snip();\n SnipMeta meta= new SnipMeta();\n\n logger.info(this.getDefaultModel().toString());\n\n logger.info(((List<String>) values.get(\"select_all\")).toString());\n\n meta.setTags((ArrayList<String>)values.get(\"select_all\"));\n meta.setDescription((String) values.get(\"meta\"));\n\n\n // Set date of comment to add\n snip.setDate(new Date());\n snip.setCode((String)values.get(\"code\"));\n snipList.add(0, snip); //TODO: eliminare lo show di tutti gli snipp da snipList magari con una FIFO\n meta.setSnip(snip);\n\n\n //--------- get session ad manager ------\n MyAuthenticatedWebSession app_session = MyAuthenticatedWebSession.getYourAppSession();\n logger.info(\"web session is: \"+app_session.toString());\n EntityManager em = app_session.getEntityManager();\n //---------------------------------------------------\n\n Users tmp_id = em.find(Users.class ,app_session.getAttribute(\"user\"));\n //snip.setUser(app_session.getCurrentUser()); --less network more backend\n snip.setUser(tmp_id);\n em.getTransaction().begin();\n em.setFlushMode(COMMIT);\n em.persist(snip);\n em.persist(meta);\n em.flush();\n em.getTransaction().commit();\n\n\n // Clear out the text component\n values.put(\"code\", \"\");\n }",
"@Override\n\tpublic String addOrUpdate(Map<String, Object> entityMap)\n\t\t\tthrows DataAccessException {\n\t\treturn null;\n\t}",
"@Insert({\n \"insert into kd_user_medal (id, userid, \",\n \"medalId, bindUserid, \",\n \"remark, createTime)\",\n \"values (#{id,jdbcType=BIGINT}, #{userid,jdbcType=BIGINT}, \",\n \"#{medalid,jdbcType=BIGINT}, #{binduserid,jdbcType=BIGINT}, \",\n \"#{remark,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP})\"\n })\n int insert(KDUserMedal record);",
"public interface GradeMapper {\n @Select(\"select * from grade\")\n public List<Grade> getByGradeNm();\n\n @Insert(\"insert into grade(grade_nm,teacher_id) values(#{gradeNm},#{teacherId})\")\n @Options(useGeneratedKeys=true,keyColumn=\"id\",keyProperty=\"id\")//设置id自增长\n public void save(Grade grade);\n}",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<Post> getPostsOf(int postId , int userId){\n\t\t\n\t\tList<Post> postList = null;\n\t\tCriteria query = null;\n\t\ttry {\n\t\t\t\n\t\t\t query = getCurrentSession().createCriteria(Post.class);\n\t\t\t \n\t\t\t query.createAlias(\"this.orgperson\", \"author\") \n\t\t\t .createAlias(\"author.personid\",\"authorPerson\")\n\t\t\t \t .createAlias(\"this.postcategories\", \"postcategories\")\n\t\t\t \t .createAlias(\"postcategories.category\", \"category\")\n\t\t\t \t .createAlias(\"this.postskills\", \"postskills\")\n\t\t\t \t .createAlias(\"postskills.skill\", \"skill\")\n\t\t\t \t .createAlias(\"this.posttags\", \"posttags\")\n\t\t\t \t .createAlias(\"posttags.tag\", \"tag\");\n\t\t\t \n\t\t\t query.add(Restrictions.eq(\"this.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"author.orgpersonstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"authorPerson.personstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"postcategories.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"category.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"postskills.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"skill.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"posttags.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"tag.status\", \"A\")) \n\t\t\t \t .add(Restrictions.eq(\"this.id\", postId))\n\t\t\t \t .add(Restrictions.eq(\"author.orgpersonid\", userId));\n\t\t\t \n\t\t\t query.setProjection(Projections.projectionList()\n\t\t\t\t\t \n\t\t\t\t\t //post\n\t\t\t\t\t .add(Projections.property(\"this.id\").as(\"post_id\"))\n\t\t\t\t\t .add(Projections.property(\"this.title\").as(\"post_title\"))\n\t\t\t\t\t .add(Projections.property(\"this.content\").as(\"post_content\")) \n\t\t\t\t\t .add(Projections.property(\"this.bannerpath\").as(\"post_bannerpath\"))\n\t\t\t\t\t .add(Projections.property(\"this.commentable\").as(\"post_commentable\"))\n\t\t\t\t\t .add(Projections.property(\"this.date\").as(\"post_date\"))\n\t\t\t\t\t .add(Projections.property(\"this.media\").as(\"post_media\")) \n\t\t\t\t\t .add(Projections.property(\"this.status\").as(\"post_status\")) \n\t\t\t\t\t //authorperson\n\t\t\t\t\t .add(Projections.property(\"authorPerson.personid\").as(\"authorPersonPersonId\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.firstName\").as(\"authorPersonFirstName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.lastName\").as(\"authorPersonLastName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.middleName\").as(\"authorPersonmiddleName\")) \n\t\t\t\t\t //category \n\t\t\t\t\t .add(Projections.property(\"postcategories.id\").as(\"postCategoryId\"))\n\t\t\t\t\t .add(Projections.property(\"postcategories.status\").as(\"postCategoryStatus\"))\n\t\t\t\t\t .add(Projections.property(\"category.id\").as(\"categoryId\")) \n\t\t\t\t\t .add(Projections.property(\"category.name\").as(\"categoryName\")) \n\t\t\t\t\t //skill\n\t\t\t\t\t .add(Projections.property(\"postskills.id\").as(\"postSkillsId\"))\n\t\t\t\t\t .add(Projections.property(\"postskills.status\").as(\"postSkillsStatus\"))\n\t\t\t\t\t .add(Projections.property(\"skill.id\").as(\"skillId\")) \n\t\t\t\t\t .add(Projections.property(\"skill.name\").as(\"skillName\")) \n\t\t\t\t\t//tag\n\t\t\t\t\t .add(Projections.property(\"posttags.id\").as(\"postTagsId\"))\n\t\t\t\t\t .add(Projections.property(\"posttags.status\").as(\"postTagsStatus\"))\n\t\t\t\t\t .add(Projections.property(\"tag.id\").as(\"tagId\")) \n\t\t\t\t\t .add(Projections.property(\"tag.name\").as(\"tagName\")) \n\t\t\t\t\t \n\t\t\t\t\t ); \n\t\t\t \n\t\t\t postList = query.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP).list();\n\t\t\t \n\t\t\t \t \t \n\t\t} catch (Exception e) {\n\t\t\tpostServiceLogger.error(\"error in PostService for getPostsOf()\",e);\n\t\t}\n\t\treturn postList;\n\t}",
"public void insert() throws SQLException {\n Statement stmtIn = DatabaseConnector.getInstance().getStatementIn();\n\n int check = BusinessFacade.getInstance().checkIDinDB(this.productRelation.getID(),\n this.post.getID(), \"goods\", \"product_type_id\", \"post_id\");\n if (check == -1){\n stmtIn.executeUpdate(\"INSERT INTO ngaccount.goods (goods_id , product_type_id, post_id) \" +\n \"VALUES ('\" + this.goodID + \"', '\" + this.productRelation.getID() +\n \"', '\" + this.post.getID() + \"');\");\n }\n }",
"public void savePost(VBeatPostModel post) {\n AppLocalDB.getInstance().db.postDao().insertAll(post);\n }"
]
| [
"0.5986511",
"0.57343584",
"0.5698853",
"0.56634164",
"0.56359017",
"0.5495471",
"0.54766834",
"0.5443607",
"0.54186773",
"0.540675",
"0.5376697",
"0.53740305",
"0.5356344",
"0.5313168",
"0.5307734",
"0.52856094",
"0.5266923",
"0.5225843",
"0.5206651",
"0.51996106",
"0.51923144",
"0.51611745",
"0.51532006",
"0.51422745",
"0.513571",
"0.51353717",
"0.5134549",
"0.5105684",
"0.5074469",
"0.5057113",
"0.5056853",
"0.5055585",
"0.5049771",
"0.502594",
"0.50159794",
"0.499411",
"0.49642175",
"0.49531126",
"0.49521723",
"0.4947493",
"0.49395558",
"0.49384743",
"0.49324217",
"0.4932038",
"0.4923745",
"0.4923715",
"0.49205098",
"0.49137557",
"0.49134496",
"0.49100736",
"0.4908896",
"0.48664138",
"0.48659784",
"0.48588654",
"0.48575795",
"0.4856264",
"0.4849936",
"0.48469815",
"0.48342496",
"0.48333818",
"0.4814589",
"0.4807359",
"0.48047185",
"0.47946662",
"0.4789952",
"0.4779272",
"0.4777647",
"0.47775498",
"0.47705945",
"0.47551864",
"0.47544068",
"0.4752167",
"0.47501215",
"0.47486997",
"0.47481894",
"0.47462088",
"0.47452283",
"0.4744978",
"0.47447786",
"0.47446957",
"0.47380137",
"0.47270015",
"0.4726089",
"0.47204205",
"0.47192907",
"0.47117898",
"0.4707037",
"0.47054353",
"0.47028366",
"0.4699353",
"0.46976545",
"0.46958038",
"0.46956462",
"0.469355",
"0.46908292",
"0.4689735",
"0.46892476",
"0.46826327",
"0.46822074",
"0.4677628",
"0.46771917"
]
| 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table post_information | public String getOrderByClause() {
return orderByClause;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getPostSQL()\n {\n return _get_imfObject().getPostSQL();\n }",
"public PostRecord() {\n super(PostTable.POST);\n }",
"Forumpost selectByPrimaryKey(Integer postid);",
"PostSaveDTO queryDetailById(String postId);",
"public ArrayList<PostInfo> getPost() throws SQLException {\n ArrayList<PostInfo> postInfoList = new ArrayList<>();\n String sql = \"SELECT * FROM `post` WHERE `status` = 1 ORDER BY `post_time` DESC\";\n statement = connection.createStatement();\n resultSet = statement.executeQuery(sql);\n while (resultSet.next()) {\n postInfoList.add(new PostInfo(resultSet.getInt(\"post_id\"), resultSet.getInt(\"place_id\"), resultSet.getString(\"post_text\"),\n resultSet.getDate(\"post_time\"), resultSet.getInt(\"status\"), resultSet.getInt(\"user_id\"), resultSet.getInt(\"editor_id\")));\n }\n return postInfoList;\n }",
"@SuppressWarnings(\"deprecation\")\n\tpublic void writeTable()\n\t{\n\t\tIterator<WPPost> itr = readValues.iterator();\n\t\t\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\tWPPost post = itr.next();\n\t\t\tPreparedStatement prStm;\n\t\t\tint res = 0;\n\t\t\t\n\t\t\ttry \n\t\t\t{\n\t\t\t\tif(post.getPostDateGMT() == null)\n\t\t\t\t{\n\t\t\t\t\tpost.setPostDateGMT(new Timestamp(0));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(post.getPostModifiedGMT() == null)\n\t\t\t\t{\n\t\t\t\t\tpost.setPostModifiedGMT(new Timestamp(0));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tprStm = conn.prepareStatement(WRITE_STATEMENT);\n\t\t\t\tprStm.setInt(1, post.getId());\n\t\t\t\tprStm.setInt(2, post.getPostAuthor());\n\t\t\t\tprStm.setTimestamp(3, post.getPostDate());\n\t\t\t\tprStm.setTimestamp(4, post.getPostDateGMT());\n\t\t\t\tprStm.setString(5, post.getPostContent());\n\t\t\t\tprStm.setString(6, post.getPostTitle());\n\t\t\t\tprStm.setString(7, post.getPostExcerpt());\n\t\t\t\tprStm.setString(8, post.getPostStatus());\n\t\t\t\tprStm.setString(9, post.getCommentStatus());\n\t\t\t\tprStm.setString(10, post.getPingStatus());\n\t\t\t\tprStm.setString(11, post.getPostPassword());\n\t\t\t\tprStm.setString(12, post.getPostName());\n\t\t\t\tprStm.setString(13, post.getToPing());\n\t\t\t\tprStm.setString(14, post.getPinged());\n\t\t\t\tprStm.setTimestamp(15, post.getPostModified());\n\t\t\t\tprStm.setTimestamp(16, post.getPostModifiedGMT());\n\t\t\t\tprStm.setString(17, post.getPostContentFiltered());\n\t\t\t\tprStm.setInt(18, post.getPostParent());\n\t\t\t\tprStm.setString(19, post.getGuid());\n\t\t\t\tprStm.setInt(20, post.getMenuOrder());\n\t\t\t\tprStm.setString(21, post.getPostType());\n\t\t\t\tprStm.setString(22, post.getPostMimeType());\n\t\t\t\tprStm.setInt(23, post.getCommentCount());\n\t\t\t\t\n\t\t\t\tres = prStm.executeUpdate();\n\t\t\t\t\n\t\t\t\tif(res == 0)\n\t\t\t\t{\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new WriteWPPostException(post.toString());\n\t\t\t\t\t} \n\t\t\t\t\tcatch (WriteWPPostException e) \n\t\t\t\t\t{\n\t\t\t\t\t\t//e.printStackTrace(); // TODO Debug Mode! Delete This!\n\t\t\t\t\t\tthis.rowsWithErrors.add(post);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\t\t\tcatch (SQLException e1) \n\t\t\t{\n\t\t\t\t//e1.printStackTrace(); // TODO Debug Mode! Delete This!\n\t\t\t\tthis.rowsWithErrors.add(post);\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\tpublic List<Post> getAllPost() {\n\t\tString hql = \"from Post\";\r\n\t\treturn (List<Post>) getHibernateTemplate().find(hql);\r\n\t}",
"PmPost selectByPrimaryKey(String postId);",
"public void setPostId(Integer postId) {\n this.postId = postId;\n }",
"public Integer getPostId() {\n return postId;\n }",
"@Override\n\tpublic void getAll() {\n\t\tArrayList<Post> list = new ArrayList<Post>();\n\t\tlist = dao.selectAll();\n\t\t\n\t\tfor (Post p : list) {\n\t\t\tSystem.out.println(p.getPostId() + \".\" + p.getPostName() + \" 작성자:\" + p.getMemberId());\n\t\t}\n\t}",
"public List<detailsofpassengerpost> seedetailslist() throws IOException{\n//connect database\nString resource = \"orm/configuration.xml\";\nReader reader = Resources.getResourceAsReader(resource);\nSqlSessionFactory sessionFactory = new SqlSessionFactoryBuilder().build(reader);\nSqlSession session = sessionFactory.openSession();\n\ntry{\n\tSystem.out.println(\"postID in seeDetails=\"+postID);\npostlist=session.selectList(\"selectPassengerPostByID\",postID);\nSystem.out.println(\"postlist size in seeDetails=\"+postlist.size());\n\n//find passenger's name through his email address\nnumberofapplieddrivers=postlist.get(0).getNumberofapplieddrivers();\npassengeremail=postlist.get(0).getEmail();\npassengerlist=session.selectList(\"selectuserbyemail\", passengeremail);\n\npassengername=passengerlist.get(0).getName();\npassengersex=passengerlist.get(0).getSex();\npassengerdob=passengerlist.get(0).getDob();\n\ndd=new detailsofpassengerpost();\ndetaillist=new ArrayList<detailsofpassengerpost>();\n\ndd.setNeedseats(postlist.get(0).getNeedseats());\ndd.setExpectedcartype(postlist.get(0).getExpectedcartype());\ndd.setDeparture(postlist.get(0).getDeparture());\ndd.setDeparturedate(postlist.get(0).getDeparturedate());\ndd.setDestination(postlist.get(0).getDestination());\ndd.setDob(passengerdob);\ndd.setEmail(passengeremail);\ndd.setEstimatedleavingtime(postlist.get(0).getEstimatedleavingtime());\ndd.setExpectedcost(postlist.get(0).getExpectedcost());\ndd.setMemo(postlist.get(0).getMemo());\ndd.setName(passengername);\ndd.setPostID(postID);\ndd.setSex(passengersex);\ndd.setPhone(postlist.get(0).getPhone());\ndd.setNumberofapplieddrivers(numberofapplieddrivers);\ndetaillist.add(dd);\n\nreturn detaillist;\n\n}finally{\nsession.close();\n}\n}",
"public List<Post> all() throws DataAccessException{\n String sql = \"select posts.id, posts.user_id, users.name, posts.title, posts.content, posts.create_date from posts join users on posts.user_id=users.id\";\n List<Post> posts = this.jdbcTemplate.query(sql, mapper);\n return posts;\n }",
"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}",
"@Override\r\n\tpublic void addPost(Post post) {\n\t\tgetHibernateTemplate().save(post);\r\n\t}",
"@Override\n public HashMap<Integer,_DefaultMessage> loadPost() throws IOException, SQLException, ClassNotFoundException {\n return _DbConnectionManager.getHMPosts(this.dbConnection, this.getName());\n }",
"public String getPostTableName() {\r\n\t\treturn postTableName;\r\n\t}",
"public void setPostId(long postId);",
"public interface CommentMapper {\n\n @Insert(\"insert comment(productId,userId,text,createdAt) values(#{productId},#{userId},#{text},now())\" )\n @Options(useGeneratedKeys = true,keyProperty = \"id\")\n void insertComment(Comment comment);\n\n @Select(\"select * from comment where productId=#{productId}\")\n List<Comment> getCommentByProductId(int productId);\n\n @Delete(\"delete from comment where id = #{id}\")\n void deleteComment(int id);\n\n\n}",
"public interface Post {\n\n\tpublic Long getId();\n\n\tpublic void setId(Long id);\n\n\tpublic Date getDate();\n\n\tpublic void setDate(Date date);\n\n\tpublic String getMessage();\n\n\tpublic void setMessage(String message);\n\n}",
"@Override\r\n\t\tpublic DatabaseMetaData getMetaData() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"public void updatePost(PostInfo postInfo) throws SQLException {\n String sql = \"UPDATE `post` SET `place_id`=?,`post_text`=?,`post_time`=?,`status`=?,`user_id`=?,`editor_id`=? WHERE `post_id` = ?\";\n preparedStatement = connection.prepareStatement(sql);\n preparedStatement.setInt(1, postInfo.getPlace_id());\n preparedStatement.setString(2, postInfo.getPost_text());\n preparedStatement.setDate(3, postInfo.getPost_time());\n preparedStatement.setInt(4, postInfo.getStatus());\n preparedStatement.setInt(5, postInfo.getUser_id());\n preparedStatement.setInt(6, postInfo.getEditor_id());\n preparedStatement.setInt(7, postInfo.getPost_id());\n\n preparedStatement.executeUpdate();\n }",
"public int getPostId() {\r\n\t\treturn postId;\r\n\t}",
"public void deletePost(PostInfo postInfo) throws SQLException {\n String sql = \"UPDATE `post` SET `status`=0 WHERE `post_id` = ?\";\n preparedStatement = connection.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);\n preparedStatement.setInt(1, postInfo.getPost_id());\n\n preparedStatement.executeUpdate();\n }",
"public long getPostId() {\n return postId;\n }",
"@Override\n\tpublic Map<String, String> toSqlMap() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Collection<Tmly> getTmlyInfo() {\n\t\tString sql = \"select ID_,TITLE,CONTENT,state from tmly\";\n\t\tList<Tmly> list = this.jdbcTemplate.query(sql, new RowMapper<Tmly>() {\n\n\t\t\t@Override\n\t\t\tpublic Tmly mapRow(ResultSet result, int i) throws SQLException {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tTmly tmly = new Tmly();\n\t\t\t\ttmly.setId(result.getInt(\"id_\"));\n\t\t\t\ttmly.setTitle(result.getString(\"title\"));\n\t\t\t\ttmly.setContent(result.getString(\"content\"));\n\t\t\t\treturn tmly;\n\t\t\t}\n\n\t\t});\n\t\treturn list;\n\t}",
"public long getPostId();",
"public static ResultSet getPosts(){\n ResultSet result = null;\n try {\n conn = ConnectionProvider.getCon();\n pst = conn.prepareStatement(\"select * from normalposts\");\n result = pst.executeQuery();\n\n System.out.println(\"PostDAO: getting posts\");\n } catch(Exception e) {\n System.out.println(\"PostDAO: unsuccessful query\");\n System.out.println(e);\n }\n return result;\n }",
"@Mapper\npublic interface BlogDAO {\n @Insert(\"INSERT INTO blog(title,uniq,markdown,html, create_time,update_time) \" +\n \"VALUES(#{item.title},#{item.uniq},#{item.markdown},#{item.html},#{item.createTime}, #{item.updateTime})\")\n int insert(\n @Param(\"item\") Blog blog\n );\n\n @Select(\"SELECT id,uniq,title,markdown,html,\" +\n \" create_time as createTime,update_time as updateTime \" +\n \" FROM blog WHERE id = #{id}\")\n Blog getBlogById(@Param(\"id\") String id);\n\n @Insert(\"replace into blog(id,title,uniq,markdown,html, create_time,update_time) \" +\n \"VALUES(#{item.id},#{item.title},#{item.uniq},#{item.markdown},#{item.html},#{item.createTime}, #{item.updateTime})\")\n int update(@Param(\"item\")Blog blog);\n\n @Select(\"SELECT id,uniq,title,\" +\n \" create_time as createTime,update_time as updateTime \" +\n \" FROM blog order by id desc limit #{offset}, #{limit}\")\n List<Blog> getBlogList(@Param(\"offset\")long offset,\n @Param(\"limit\")long limit,\n @Param(\"sort\") String sort);\n}",
"@Test\n public void metaDataExample1() throws SQLException {\n Connection connection = DriverManager.getConnection(dbUrl, dbUsername, dbPassword);\n // 2. Create statement\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n // Run sql query and get the result in resultSet object\n String sqlQuery= \"Select * From departments\";\n //String sqlQuery= \"Select first_name, last_name, salary From employees\";\n ResultSet resultSet = statement.executeQuery(sqlQuery);\n\n // we use resultSet metadata to get information about the tables\n // get the resultSet object metadata\n ResultSetMetaData rsMetadata = resultSet.getMetaData();\n\n // List for keeping all rows as a map\n List<Map<String, Object>> queryData = new ArrayList<>();\n\n // while(resultSet.next()) helps to iterate through columns\n while (resultSet.next()) {\n // key(columns) will be string but value can be any type of data. That's why we choose <String, Object>\n Map<String, Object> row = new HashMap<>(); // creating empty Map\n // number of columns\n int colCount = rsMetadata.getColumnCount();\n // for loop helps to iterate through columns\n for (int i = 1; i <= colCount; i++) {\n row.put(rsMetadata.getColumnName(i), resultSet.getObject(i));\n }\n\n queryData.add(row); // adding a Map to the List of Maps\n }\n\n // Printing the rows\n for (Map<String, Object> row: queryData) {\n System.out.println(row.toString());\n\n }\n\n\n\n\n // close all connections\n resultSet.close();\n statement.close();\n connection.close();\n }",
"public String toSql() {\t\n int n;\t\n void a;\t\n StringBuilder a2 = new StringBuilder();\t\n Table table = MapperHelper.getTable(this.entity);\t\n a2.append(MapperHelper.getTableName((Table)a, this.entity) + \" \" + a.alias());\t\n JoinTable[] arrjoinTable = a.joinTable();\t\n int n2 = arrjoinTable.length;\t\n int n3 = n = 0;\t\n while (n3 < n2) {\t\n JoinTable a3 = arrjoinTable[n];\t\n Table a4 = MapperHelper.getTable(a3.entity());\t\n a2.append(new StringBuilder().insert(0, \" \").append(a3.type().value()).append(\" \").toString());\t\n a2.append(new StringBuilder().insert(0, MapperHelper.getTableName(a4, this.entity)).append(\" \").append(a3.alias()).toString());\t\n a2.append(new StringBuilder().insert(0, \" ON \").append(a3.on()).toString());\t\n n3 = ++n;\t\n }\t\n StringBuilder stringBuilder = a2;\t\n stringBuilder.append(MapperHelper.getSqlMapValue(this.entity, a.extFromKeys()));\t\n return stringBuilder.toString();\t\n }",
"List<PostInfo> getPostList();",
"TypedKeyValue<String, Integer> getDestinationInfo(String sql);",
"public void setPostId(int postId) {\r\n\t\tthis.postId = postId;\r\n\t}",
"public List<PostEntry> savePost(String username, int postid, String title, String body){\n Connection c = null;\n PreparedStatement ps = null; \n ResultSet rs = null;\n\n boolean ret = true;\n\n //check if postid exists.\n if(postid>0 && findPost(username, postid)==null){\n return null;\n }\n try {\n //Get connection\n c = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/CS144\", \"cs144\", \"\");\n int changed;\n if(postid>0){\n //UPDATE\n System.out.println(\"update post!\");\n ps = c.prepareStatement(\"UPDATE Posts SET title=?, body=?, modified=? WHERE username=? AND postid=?\");\n ps.setString(1, title);\n ps.setString(2, body);\n ps.setTimestamp(3, new Timestamp(System.currentTimeMillis())); //set modified to current time\n ps.setString(4, username);\n ps.setInt(5, postid);\n\n changed = ps.executeUpdate();\n }\n else {\n //get largest postid and add 1 to get newID\n\n System.out.println(\"new post!\");\n ps = c.prepareStatement(\"SELECT MAX(postid) FROM Posts WHERE username=?\");\n ps.setString(1, username);\n\n rs = ps.executeQuery();\n int newID = 1;\n if(rs.next()){\n newID = rs.getInt(1) + 1;\n }\n ps.close();\n\n ps = c.prepareStatement(\"INSERT INTO Posts (username, postid, title, body, modified, created) VALUES(?,?,?,?,?,?)\");\n ps.setString(1, username);\n ps.setInt(2, newID);\n ps.setString(3, title);\n ps.setString(4, body);\n ps.setTimestamp(5, new Timestamp(System.currentTimeMillis())); //set modified to current time\n ps.setTimestamp(6, new Timestamp(System.currentTimeMillis())); //set created to current time\n \n changed = ps.executeUpdate();\n }\n\n if(changed==0){\n ret = false;\n }\n\n } catch(SQLException e){\n //error handling\n System.out.println(\"SQLException caught.\");\n e.printStackTrace();\n } finally {\n //just need to close all\n try { rs.close(); } catch (Exception e) { /* ignored */ }\n try { ps.close(); } catch (Exception e) { /* ignored */ }\n try { c.close(); } catch (Exception e) { /* ignored */ }\n }\n\n //return list data\n if(ret)\n return findList(username);\n else\n return null;\n }",
"public long ashirPostCreating(AshirBlogPostingHelper post) {\n long result;\n\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(Col_2, post.getPost());\n values.put(Col_3, post.getImage());\n //inserting valuse into table columns\n result = db.insert(NAME_OF_TABLE, null, values);\n db.close();\n return result;\n\n }",
"public void setPostTableName(String postTableName) {\r\n\t\tthis.postTableName = postTableName;\r\n\t}",
"@Override\n\t\tprotected void postUpdate(EspStatusDTO t) throws SQLException {\n\t\t\t\n\t\t}",
"String getPostDeclareSql();",
"public void setPostId(int postId) {\n\t\tthis.postId = postId;\n\t}",
"@Override\n public Entity configuracion(Entity e) throws SQLException {\n return null;\n }",
"void setPostId(int postId);",
"int getPostId();",
"@Override\r\n\tpublic Post searchInfById(Post post2) {\n\t\tpostDao=new PostDaoImpl(TransactionManager.connection);\r\n\t\tResultSet resultSet=postDao.selectById(post2);\r\n\t\tPost post=new Post();\r\n\t\ttry {\r\n\t\t\tif(resultSet.next()) {\r\n\t\t\t\tpost.setPostId(resultSet.getInt(1));\r\n\t\t\t\tpost.setPostName(resultSet.getString(3));\r\n\t\t\t\tpost.setUserId(resultSet.getInt(2));\r\n\t\t\t\tpost.setPostProperty(resultSet.getInt(4));\r\n\t\t\t\tpost.setPostEnterNum(resultSet.getInt(5));\r\n\t\t\t\tpost.setPostTime(resultSet.getDate(6));\r\n\t\t\t\tpost.setPostScore(resultSet.getDouble(7));\r\n\t\t\t\tpost.setScoreCount(resultSet.getInt(8));\r\n\t\t\t\tpost.setLastComTime(resultSet.getDate(9));\r\n\t\t\t\tpost.setResId(resultSet.getInt(10));\r\n\t\t\t\tpost.setResPath(resultSet.getString(12));\r\n\t\t\t\tpost.setUserName(resultSet.getString(14));\r\n\t\t\t\tpost.setUserLevel(resultSet.getInt(16));\r\n\t\t\t\tpost.setUserStatus(resultSet.getInt(17));\r\n\t\t\t\tpost.setPropertyName(resultSet.getString(19));\r\n\t\t\t\tpost.setLocation(resultSet.getString(22));\r\n\t\t\t\tpost.setPhone(resultSet.getString(23));\r\n\t\t\t\tpost.setPostCode(resultSet.getInt(24));\r\n\t\t\t\tpost.setEmail(resultSet.getString(25));\r\n\t\t\t\tpost.setGender(resultSet.getString(26));\r\n\t\t\t\tpost.setHobby(resultSet.getString(27));\r\n\t\t\t\tpost.setMajor(resultSet.getString(28));\r\n\t\t\t\tpost.setScore(resultSet.getInt(29));\r\n\t\t\t\tpost.setNickName(resultSet.getString(30));\r\n\t\t\t\tpost.setUserRegion(resultSet.getString(31));\r\n\t\t\t\tpost.setUserPhoto(resultSet.getString(32));\r\n\t\t\t\tpost.setComCount(resultSet.getInt(39));\r\n\t\t\t\t\r\n\t\t\t\treturn post;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\treturn null;\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\treturn null;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"@Mapper\npublic interface QuestionDAO {\n String TABLE_NAME = \" question \";\n String INSERT_FIELDS = \" title, content, created_date, user_id, comment_count \";\n String SELECT_FIELDS = \" id, \" + INSERT_FIELDS;\n\n @Insert({\"insert into \", TABLE_NAME, \"(\", INSERT_FIELDS,\n \") values (#{title},#{content},#{createdDate},#{userId},#{commentCount})\"})\n int addQuestion(Question question);\n\n // 使用 xml 配置文件进行 数据库查询语句与程序接口的映射。\n // 对应的 QuestionDAO.xml 文件位于 resources 文件夹 -》com.mattLearn.dao 文件夹中。\n List<Question> selectLatestQuestions(@Param(\"userId\") int userId, @Param(\"offset\") int offset,\n @Param(\"limit\") int limit);\n\n @Select({\"select \", SELECT_FIELDS, \" from \", TABLE_NAME, \" where id=#{id}\"})\n Question SelectById(int id);\n\n @Update(\" update question set comment_count=#{commentCount} where id = #{id}\")\n int updateCommentCount(@Param(\"commentCount\") int commentCount,\n @Param(\"id\") int id);\n\n}",
"@Override\n public ColumnInfo getColumnInfo() {\n return columnInfo;\n }",
"public Integer getPostType() {\n return postType;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<Post> getPostsOf(int postId){\n \t\tList<Post> postList = null;\n\t\tCriteria query = null;\n\t\ttry {\n\t\t\t\n\t\t\t query = getCurrentSession().createCriteria(Post.class);\n\t\t\t \n\t\t\t query.createAlias(\"this.orgperson\", \"author\") \n\t\t\t .createAlias(\"author.personid\",\"authorPerson\")\n\t\t\t \t .createAlias(\"this.postcategories\", \"postcategories\")\n\t\t\t \t .createAlias(\"postcategories.category\", \"category\")\n\t\t\t \t .createAlias(\"this.postskills\", \"postskills\")\n\t\t\t \t .createAlias(\"postskills.skill\", \"skill\")\n\t\t\t \t .createAlias(\"this.posttags\", \"posttags\")\n\t\t\t \t .createAlias(\"posttags.tag\", \"tag\");\n\t\t\t \n\t\t\t query.add(Restrictions.eq(\"this.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"author.orgpersonstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"authorPerson.personstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"postcategories.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"category.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"postskills.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"skill.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"posttags.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"tag.status\", \"A\")) \n\t\t\t \t .add(Restrictions.eq(\"this.id\", postId));\n\t\t\t \n\t\t\t query.setProjection(Projections.projectionList()\n\t\t\t\t\t \n\t\t\t\t\t //post\n\t\t\t\t\t .add(Projections.property(\"this.id\").as(\"post_id\"))\n\t\t\t\t\t .add(Projections.property(\"this.title\").as(\"post_title\"))\n\t\t\t\t\t .add(Projections.property(\"this.content\").as(\"post_content\")) \n\t\t\t\t\t .add(Projections.property(\"this.bannerpath\").as(\"post_bannerpath\"))\n\t\t\t\t\t .add(Projections.property(\"this.commentable\").as(\"post_commentable\"))\n\t\t\t\t\t .add(Projections.property(\"this.date\").as(\"post_date\"))\n\t\t\t\t\t .add(Projections.property(\"this.media\").as(\"post_media\")) \n\t\t\t\t\t .add(Projections.property(\"this.status\").as(\"post_status\")) \n\t\t\t\t\t //authorperson\n\t\t\t\t\t .add(Projections.property(\"authorPerson.personid\").as(\"authorPersonPersonId\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.firstName\").as(\"authorPersonFirstName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.lastName\").as(\"authorPersonLastName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.middleName\").as(\"authorPersonmiddleName\")) \n\t\t\t\t\t //category\n\t\t\t\t\t .add(Projections.property(\"category.id\").as(\"categoryId\")) \n\t\t\t\t\t .add(Projections.property(\"category.name\").as(\"categoryName\")) \n\t\t\t\t\t //skill\n\t\t\t\t\t .add(Projections.property(\"skill.id\").as(\"skillId\")) \n\t\t\t\t\t .add(Projections.property(\"skill.name\").as(\"skillName\")) \n\t\t\t\t\t//tag\n\t\t\t\t\t .add(Projections.property(\"tag.id\").as(\"tagId\")) \n\t\t\t\t\t .add(Projections.property(\"tag.name\").as(\"tagName\")) \n\t\t\t\t\t \n\t\t\t\t\t ); \n\t\t\t \n\t\t\t postList = query.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP).list(); \n\t\t\t \t \t \n\t\t} catch (Exception e) {\n\t\t\tpostServiceLogger.error(\"error in PostService for getPostsOf()\",e);\n\t\t} \n\t\treturn postList;\n\t}",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n response.setCharacterEncoding(\"UTF-8\");\n request.setCharacterEncoding(\"UTF-8\");\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"Ghosttales_PU\");\n EntityManager em = emf.createEntityManager();\n HttpSession session = request.getSession();\n \n \n //String file = request.getParameter(\"file\");\n \n \n String content = request.getParameter(\"content\");\n // String content = \"oiadjioajdoiajdiajsi\";\n System.out.println(\"---1---\");\n String title = request.getParameter(\"title\");\n String author = (String) session.getAttribute(\"userr\");\n UserInfo u = em.find(UserInfo.class, author);\n LocalDate today = LocalDate.now();\n \n System.out.println(u.getUsername());\n \n// if(content != null && title !=null) {\n\n // String sql2 = \"SELECT COUNT(p) FROM Post p\";\n String sql2 =\"SELECT p.postId FROM Post p\";\n Query q = em.createQuery(sql2);\n \n List <Post>ps =q.getResultList() ;\n \n \n \n// long countt = (long)q.getSingleResult();\n// int count = (int) countt+1;\n \n \n Post post = new Post(); \n int num = ps.size();\n if(num==0){\n int countt = num+1 ;\n int count = countt;\n post.setPostId(count);\n session.setAttribute(\"num\",count);\n }else{\n int countt = (int) q.getResultList().get(num-1);\n int count = countt+1;\n System.out.println(num);\n System.out.println(countt);\n System.out.println(count);\n post.setPostId(count);\n session.setAttribute(\"num\",count);\n }\n \n post.setTitle(title);\n post.setContent(content);\n post.setCreateTime(java.sql.Date.valueOf(today));\n post.setUpdateTime(null);\n post.setTotallike(0);\n post.setTotalcomment(0);\n post.setUserinfousername(u);\n System.out.println(\"-----2-----\");\n \n \n \n em.getTransaction().begin();\n em.persist(post);\n em.getTransaction().commit();\n \n \n \n \n \n session.setAttribute(\"show\", post);\n \n \n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"post\", post.getContent());\n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"title\", post.getTitle());\n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"author\", post.getUserinfousername().toString());\n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"day\", post.getCreateTime());\n \n \n\n request.getRequestDispatcher(\"/addimage.jsp\").forward(request, response);\n\n }",
"Achievements getPostDetails();",
"public int getDataid_postingBisnis() {\r\n return Dataid_postingBisnis;\r\n }",
"public CustomSql getCustomSqlInsert();",
"@Override\n\tpublic Post createPost(Post post) {\n\t\treturn postDao.createPost(post);\n\t}",
"int insert(PmPost record);",
"@Override\r\n\tpublic void updatePost(Post post) {\n\t\tPost p = getPostById(post.getPost_id());\r\n\t\tp.setDepartment(post.getDepartment());\r\n\t\tp.setDescription(post.getDescription());\r\n\t\tp.setEmployeeSet(post.getEmployeeSet());\r\n\t\tp.setPost_id(post.getPost_id());\r\n\t\tp.setPost_name(post.getPost_name());\r\n\t\tp.setPost_wage(post.getPost_wage());\r\n\t\tgetHibernateTemplate().update(p);\r\n\t}",
"@Override\n\tpublic JDBCMetaData getMetaData() throws SQLException {\n\t\treturn null;\n\t}",
"public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}",
"Integer getDomainTemplateColumn();",
"private void writeMetaData(ResultSet resultSet) throws SQLException {\n\t System.out.println(\"The columns in the table are: \");\r\n\t System.out.println(\"Table: \" + resultSet.getMetaData().getTableName(1));\r\n\t for (int i = 1; i<= resultSet.getMetaData().getColumnCount(); i++){\r\n\t System.out.println(\"Column \" +i + \" \"+ resultSet.getMetaData().getColumnName(i));\r\n\t }\r\n\t }",
"@SuppressWarnings(\"HardCodedStringLiteral\")\npublic interface MyPostsColumn {\n @DataType(INTEGER)\n @PrimaryKey\n String KEY_SQL_ID = \"sql_id\";\n\n @DataType(TEXT)\n @NotNull @Unique\n String KEY_ID = \"_id\";\n\n @DataType(TEXT)\n String KEY_AUTHOR = \"author\";\n\n @DataType(TEXT)\n @NotNull\n String KEY_SUBREDDIT_ID = \"subreddit_id\";\n\n @DataType(TEXT)\n @NotNull\n String KEY_SUBREDDIT = \"subreddit\";\n\n @DataType(INTEGER)\n String KEY_UPS = \"ups\";\n\n @DataType(TEXT)\n String KEY_TITLE = \"title\";\n\n @DataType(INTEGER)\n String KEY_COMMENTS_COUNT = \"comments_count\";\n\n @DataType(INTEGER)\n String KEY_CREATED_UTC = \"created_utc\";\n\n @DataType(INTEGER)\n String KEY_CREATED = \"created\";\n\n @DataType(TEXT)\n @NotNull\n String KEY_NAME = \"name\";\n\n @DataType(INTEGER)\n @NotNull\n String KEY_CLICKED = \"clicked\";\n\n @DataType(INTEGER)\n String KEY_LIKES = \"likes\"; //CAN BE NULL\n\n @DataType(TEXT)\n String KEY_DOMAIN = \"domain\";\n\n @DataType(INTEGER)\n String KEY_IS_SELF = \"is_self\";\n\n @DataType(INTEGER)\n @NotNull\n String KEY_OVER_18 = \"over_18\";\n\n @DataType(TEXT)\n String KEY_PERMALINK = \"permalink\";\n\n @DataType(TEXT)\n String KEY_POST_HINT = \"post_hint\";\n\n @DataType(INTEGER)\n String KEY_SCORE = \"score\";\n\n @DataType(TEXT)\n String KEY_THUMBNAIL = \"thumbnail\";\n\n @DataType(TEXT)\n String KEY_URL = \"url\";\n\n @DataType(INTEGER)\n String KEY_VISITED = \"visited\";\n\n @DataType(INTEGER)\n String KEY_LOCKED = \"locked\";\n\n @DataType(TEXT)\n String KEY_MEDIA_OEMBED_TYPE = \"media_oembed_type\";\n\n @DataType(TEXT)\n String KEY_BIG_IMAGE_URL = \"big_image_url\";\n\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_POST = \"type_post\";\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_SEARCH = \"type_search\";\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_WIDGET = \"type_widget\";\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_TEMP = \"type_temp\";\n\n\n\n}",
"public void queryPostTable(Context activityContext, String postTableName) {\n new GetCursorTablePost(activityContext).execute(postTableName);\n }",
"@Override\n\tpublic void updateAllPostNowTipBySid(String Id, CodeInfo codeInfo) {\n\t\tQuery query = this.currentSession().createQuery(\"update com.wondersgroup.human.bo.pubinst.PtPost set tenureStatus = :nowPostSign where publicInstitution.id = :Id\");\n\t\tquery.setParameter(\"nowPostSign\", codeInfo);\n\t\tquery.setParameter(\"Id\",Id);\n\t\tquery.executeUpdate();\n\t\t\n\t}",
"public interface IBasicPost {\n Long getId();\n String getTitle();\n String getDescription();\n long getCreatedDate();\n long getUpdatedDate();\n Integer getCityId();\n Long getUserId();\n Integer getUserLikeCount();\n Integer getUserCommentCount();\n String getUserFirstName();\n}",
"@RequestMapping(value = \"fetch-health-tips\", method = RequestMethod.POST)\n private List<HealthPost> fetchHealthTips() {\n SessionService.sessionBuilder(session -> {\n healthPostList = session.createQuery(\"from HealthPost order by id desc\", HealthPost.class).list();\n });\n return healthPostList;\n }",
"@Override\n\tpublic void getPost(Scanner sc) {\n\t\tPost p;\n\t\tgetAll();\n\t\tSystem.out.print(\"보고 싶은 리뷰의 번호를 입력해 주세요 >>\");\n\t\tp = dao.selectPost(sc.nextInt());\n\t\tSystem.out.println(p.getPostName());\n\t\tSystem.out.println(p.getContent());\n\t}",
"public interface BasePostPoMapper extends feihua.jdbc.api.dao.CrudDao<BasePostPo, String> {\n\n java.util.List<BasePostPo> searchBasePosts(SearchPostsConditionDsfDto dto);\n}",
"@Override\n public DatabaseMetaData getMetaData() throws SQLException\n {\n logger.debug(\n \" public DatabaseMetaData getMetaData() throws SQLException\");\n\n return new SnowflakeDatabaseMetaData(this);\n }",
"public List<MediumBean> populatemediam(String sql ){\n\t\t\t\tList<MediumBean> retlist = jdbcTemplate.query(sql,ParameterizedBeanPropertyRowMapper.newInstance(MediumBean.class));\n\t\t\t\t\treturn retlist;\n\t\t }",
"public boolean addPost(Post post) throws SQLException\n {\n boolean isAdded=false;\n try\n {\n database = dbH.getReadableDatabase();\n dbH.openDataBase();\n ContentValues values = new ContentValues();\n values.put(\"postBody\", post.getPostBody());\n values.put(\"postedBy\", post.getPostedBy());\n values.put(\"postedAt\", post.getPostedAt());\n values.put(\"postID\", post.getPostID());\n values.put(\"image\" , post.getBitmap());\n\n isAdded=database.insert(\"Post\", null, values)>0;\n\n }\n catch(SQLException e)\n {\n e.printStackTrace();\n }\n finally{\n if(database!=null && database.isOpen())\n dbH.close();\n }\n return isAdded;}",
"@Query(\"SELECT * FROM \" + TABLE_NAME)\n List<Note> getNotes();",
"@Override\r\n\tprotected Entity getEntityByFields() throws SQLException {\n\t\t\r\n\t\tint id = rs.getInt(\"id\");\r\n\t\tint productId = rs.getInt(\"id_product\");\r\n\t\tString productName = super.getString(\"productName\");\t// From INNER JOIN\r\n\t\tString productUnit = super.getString(\"productUnit\");\t// From INNER JOIN\r\n\t\tfloat quantity = rs.getFloat(\"quantity\");\r\n\t\tfloat price = rs.getFloat(\"price\");\r\n\t\tfloat summa = rs.getFloat(\"summa\");\r\n\t\t\r\n\t\treturn new DocInvoiceItem(id, productId, productName, productUnit, quantity, price, summa);\r\n\t}",
"public PostInformationExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"@Override\r\n\tpublic BaseBean insertSQL(String sql, Connection con) {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic List<Post> getPostByName(String name) {\n\t\tString hql = \"from Post p where p.post_name =?\";\r\n\t\treturn (List<Post>) getHibernateTemplate().find(hql, name);\r\n\t}",
"public String getGeneratedSql() {\n/* 142 */ return this.sql;\n/* */ }",
"@Override\n\tpublic void insertIPODetail(IPODetail ipo) throws SQLException {\n\t\t\n\t}",
"@Override\n\tpublic Map<String, String[]> loadColumnMetas(String databaseName) throws SQLException {\n\t\tString sql=\"select utc.*,UCC.comments from user_tab_columns utc\\n\" + \n\t\t\t\t\"left join user_col_comments ucc on UCC.table_name=UTC.table_name and UCC.column_name=UTC.column_name\";\n\t\tMap<String, String[]> ret=new HashMap<>();\n\t\t try(PreparedStatement preparedStatement= connection.prepareStatement(sql);\n\t \t\tResultSet resultSet=preparedStatement.executeQuery();){\n\t\t\twhile(resultSet.next()) {\n\t\t\t\tString tableName=resultSet.getString(\"TABLE_NAME\")\n\t\t\t\t\t\t,columnName=resultSet.getString(\"COLUMN_NAME\")\n\t\t\t\t\t\t,dataLength=resultSet.getString(\"DATA_LENGTH\")\n\t\t ,nullable=resultSet.getString(\"NULLABLE\")\n\t\t ,comments=resultSet.getString(\"COMMENTS\")\n\t\t\t\t\t\t;\n\t\t\t\tString key=tableName+\":\"+columnName;\n\t\t\t\tret.put(key, new String[] {dataLength,nullable,comments});\n\t\t\t\t\n\t\t\t}\n\t }\n\t\t\n\t\treturn ret;\n\t}",
"void processMetaData(ResultSet rs) throws SQLException;",
"@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }",
"@Dao\npublic interface PostDao {\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n void insertPost(iPost iPosts);\n\n @Update\n void updatePost(iPost iPost);\n\n @Delete\n void deletePost(iPost iPost);\n\n @Query(\"SELECT * FROM iPost\")\n List<iPost> getAllPosts();\n\n @Query(\"SELECT * FROM iPost WHERE idThread=:threadId\")\n List<iPost> findPostsByThread(final int threadId);\n\n @Transaction\n @Query(\"SELECT * FROM iPost WHERE idThread=:threadId\")\n Single<List<PostsHelper>> getPostsFromThread(String threadId);\n}",
"protected String getSqlTable() {\n\t\treturn \"Project\";\n\t}",
"public void formDatabaseTable() {\n }",
"void savePost(Post post);",
"public CustomSql getCustomSqlUpdate();",
"@Override\n\tprotected String getCreateSql() {\n\t\treturn null;\n\t}",
"private static void showsSqlSelectOnNormalEntityBean() {\n\n\t\tQuery<Bug> query = Ebean.createQuery(Bug.class, \"simple\");\n\t\tquery.where().eq(\"status.code\", \"ACTIVE\");\n\n\t\tList<Bug> list = query.findList();\n\n\t\tSystem.out.println(list);\n\t\t\n\t\tfor (Bug bug : list) {\n\t\t\tString body = bug.getBody();\n\t\t\tSystem.out.println(body);\n\t\t}\n\n\t}",
"public interface AlmacenMapper {\n @Select(value = \"select tipo,descripcion from tipoproducto\")\n @Results(value = {\n @Result(javaType = Producto.class),\n @Result(property = \"tipo\",column = \"tipo\"),\n @Result(property = \"descripcion\",column = \"descripcion\"),\n })\n List<Producto> listarTipoProducto();\n\n @Insert(value = \"INSERT \" +\n \"INTO producto \" +\n \" ( \" +\n \" codigo, \" +\n \" nombre, \" +\n \" tipo, \" +\n \" porc_precio, \" +\n \" uni_medida, \" +\n \" cantidad \" +\n \" ) \" +\n \" VALUES \" +\n \" ( \" +\n \" producto_seq.nextval, \" +\n \" #{produ.nombre}, \" +\n \" #{produ.tipo}, \" +\n \" #{produ.porc_precio}, \" +\n \" #{produ.uni_medida}, \" +\n \" #{produ.cantidad} \" +\n \" )\")\n void GuardarProducto(@Param(\"produ\") Producto producto);\n\n @Select(value = \"SELECT codigo, \" +\n \" nombre, \" +\n \" p.tipo, \" +\n \" tp.descripcion, \" +\n \" porc_precio, \" +\n \" uni_medida, \" +\n \" cantidad \" +\n \"FROM producto p \" +\n \"INNER JOIN tipoproducto tp \" +\n \"ON(p.tipo=tp.tipo)\")\n @Results(value = {\n @Result(javaType = Producto.class),\n @Result(property = \"codigo\",column = \"codigo\"),\n @Result(property = \"nombre\",column = \"nombre\"),\n @Result(property = \"tipo\",column = \"tipo\"),\n @Result(property = \"descripcion\",column = \"descripcion\"),\n @Result(property = \"porc_precio\",column = \"porc_precio\"),\n @Result(property = \"uni_medida\",column = \"uni_medida\"),\n @Result(property = \"cantidad\",column = \"cantidad\"),\n })\n List<Producto> listarProductos();\n\n @Update(value =\"UPDATE producto \" +\n \"SET nombre =#{produ.nombre}, \" +\n \" porc_precio=#{produ.porc_precio}, \" +\n \" tipo= \" +\n \" #{produ.tipo} \" +\n \"WHERE codigo=#{produ.codigo}\" )\n void ActualizarProducto(@Param(\"produ\") Producto producto);\n\n @Delete(value=\"DELETE FROM PRODUCTO WHERE codigo=#{id}\")\n void EliminarProducto(@Param(\"id\") Integer id);\n\n @Select(value = \"SELECT codigo, \" +\n \" nombre \" +\n \"FROM producto p where tipo=#{id} \")\n @Results(value = {\n @Result(javaType = Producto.class),\n @Result(property = \"codigo\",column = \"codigo\"),\n @Result(property = \"nombre\",column = \"nombre\"),\n })\n List<Producto> ListarProductosxCategoria(@Param(\"id\") Integer id);\n\n @Insert(value = \"INSERT \" +\n \"INTO entrada_productos \" +\n \" ( \" +\n \" n_entrada, \" +\n \" fecha, \" +\n \" costo_total \" +\n \" ) \" +\n \" VALUES \" +\n \" ( \" +\n \" entrada_seq.nextval , \" +\n \" sysdate, \" +\n \" #{entrada.costo_total} \" +\n \" )\")\n void insertEntradaProducto(@Param(\"entrada\") EntradaProducto entrada);\n\n @Insert(value = \"INSERT \" +\n \"INTO detalle_entrada_productos \" +\n \" ( \" +\n \" N_ENTRADA, \" +\n \" COD_PRODUCTO, \" +\n \" COD_PROVEEDOR, \" +\n \" CANTIDAD, \" +\n \" PRECIO_COMPRA, \" +\n \" COSTO_TOTAL_PRODUCTO \" +\n \" ) \" +\n \" VALUES \" +\n \" ( \" +\n \" (select max(n_entrada) from entrada_productos), \" +\n \" #{entrada.cod_producto}, \" +\n \" #{entrada.cod_proveedor}, \" +\n \" #{entrada.cantidad}, \" +\n \" #{entrada.precio_compra}, \" +\n \" #{entrada.costo_total_producto} \" +\n \" )\")\n void inserDetalleEntradaProductos(@Param(\"entrada\") EntradaProducto entrada);\n\n @Update(value =\"UPDATE producto \" +\n \"SET cantidad=(select cantidad+#{entrada.cantidad} from producto where codigo=#{entrada.cod_producto}) \"+\n \"WHERE codigo=#{entrada.cod_producto}\" )\n void updateStockProducto(@Param(\"entrada\")EntradaProducto entrada);\n}",
"@Override //插入通知\n\tpublic void insertPoInfo(PageData pd) throws Exception {\n\t\tdao.save(\"PoInfoMapper.insertPoInfo\", pd);\n\t}",
"public PostRecord(Integer id, Integer userId, String title, String body, String date) {\n super(PostTable.POST);\n\n set(0, id);\n set(1, userId);\n set(2, title);\n set(3, body);\n set(4, date);\n }",
"public interface BugsActivityDAO {\n\n @Insert(\"insert into firefox_bugs_activity \" +\n \"(`bugId`,`who`,`when`,`what`,`removed`,`added`,`crawledTime`) \" +\n \"values (#{bugId},#{who},#{when},#{what},#{removed},#{added},#{crawledTime})\")\n public int add(BugsActivity fireFoxBugsActivity);\n\n @Insert(\"insert into firefox_bugs_activity_html (`bugId`,`html`) \" +\"values (#{bugId},#{html})\")\n public int addHtml(BugsActivity fireFoxBugsActivity);\n}",
"@Override\n\tpublic List<Map<String, Object>> getNoticeLast() {\n\t\tStringBuffer querySQL = new StringBuffer(\n\t\t\t\t\"select ifnull(title,'') title,ifnull(static_page,'') static_page from notice where status = 1 order by crdate desc limit 4\");\n\t\t// StringBuffer querySQL2 = new StringBuffer(\n\t\t// \"select count(1) from notice where status = 1 order by crdate desc limit 1\");\n\t\t// if (jdbcTemplate.queryForInt(querySQL2.toString()) > 0) {\n\t\treturn jdbcTemplate.queryForList(querySQL.toString());\n\t\t// }\n\t\t// return null;\n\n\t}",
"@Override\n public Jurusan mapRow(ResultSet rs, int rowNum) throws SQLException {\n Jurusan jurusan=new Jurusan();\n jurusan.setId(rs.getInt(\"id\"));\n jurusan.setNama(rs.getString(\"nama\"));\n jurusan.setIdFakultas(rs.getInt(\"idFakultas\"));\n\n\n Fakultas fakultas=new Fakultas();\n fakultas.setId(rs.getInt(\"idFakultas\"));\n fakultas.setNama(rs.getString(\"namaFakultas\"));\n jurusan.setFakultas(fakultas);\n return jurusan;\n }",
"public interface BugPlatformMapper {\n\n\n @Select(\"SELECT js.pname as bugResolutionStatus, COUNT(js.pname) as bugNum FROM jiraissue ji INNER JOIN project pr ON pr.ID = ji.PROJECT LEFT JOIN issuestatus js ON ji.issuestatus = js.ID where pr.ID in (#{2}) and issuetype = 1 AND CREATED between #{0} and #{1} group by js.pname\")\n List<BugPlatformObject> getList(String startDate,String endDate,String project);\n}",
"@Override\n @Transactional\n public void onSubmit() {\n ValueMap values = getModelObject();\n\n // check if the honey pot is filled\n if (StringUtils.isNotBlank((String)values.get(\"comment\")))\n {\n error(\"Caught a spammer!!!\");\n return;\n }\n // Construct a copy of the edited comment\n Snip snip = new Snip();\n SnipMeta meta= new SnipMeta();\n\n logger.info(this.getDefaultModel().toString());\n\n logger.info(((List<String>) values.get(\"select_all\")).toString());\n\n meta.setTags((ArrayList<String>)values.get(\"select_all\"));\n meta.setDescription((String) values.get(\"meta\"));\n\n\n // Set date of comment to add\n snip.setDate(new Date());\n snip.setCode((String)values.get(\"code\"));\n snipList.add(0, snip); //TODO: eliminare lo show di tutti gli snipp da snipList magari con una FIFO\n meta.setSnip(snip);\n\n\n //--------- get session ad manager ------\n MyAuthenticatedWebSession app_session = MyAuthenticatedWebSession.getYourAppSession();\n logger.info(\"web session is: \"+app_session.toString());\n EntityManager em = app_session.getEntityManager();\n //---------------------------------------------------\n\n Users tmp_id = em.find(Users.class ,app_session.getAttribute(\"user\"));\n //snip.setUser(app_session.getCurrentUser()); --less network more backend\n snip.setUser(tmp_id);\n em.getTransaction().begin();\n em.setFlushMode(COMMIT);\n em.persist(snip);\n em.persist(meta);\n em.flush();\n em.getTransaction().commit();\n\n\n // Clear out the text component\n values.put(\"code\", \"\");\n }",
"@Insert({\n \"insert into kd_user_medal (id, userid, \",\n \"medalId, bindUserid, \",\n \"remark, createTime)\",\n \"values (#{id,jdbcType=BIGINT}, #{userid,jdbcType=BIGINT}, \",\n \"#{medalid,jdbcType=BIGINT}, #{binduserid,jdbcType=BIGINT}, \",\n \"#{remark,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP})\"\n })\n int insert(KDUserMedal record);",
"@Override\n\tpublic String addOrUpdate(Map<String, Object> entityMap)\n\t\t\tthrows DataAccessException {\n\t\treturn null;\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<Post> getPostsOf(int postId , int userId){\n\t\t\n\t\tList<Post> postList = null;\n\t\tCriteria query = null;\n\t\ttry {\n\t\t\t\n\t\t\t query = getCurrentSession().createCriteria(Post.class);\n\t\t\t \n\t\t\t query.createAlias(\"this.orgperson\", \"author\") \n\t\t\t .createAlias(\"author.personid\",\"authorPerson\")\n\t\t\t \t .createAlias(\"this.postcategories\", \"postcategories\")\n\t\t\t \t .createAlias(\"postcategories.category\", \"category\")\n\t\t\t \t .createAlias(\"this.postskills\", \"postskills\")\n\t\t\t \t .createAlias(\"postskills.skill\", \"skill\")\n\t\t\t \t .createAlias(\"this.posttags\", \"posttags\")\n\t\t\t \t .createAlias(\"posttags.tag\", \"tag\");\n\t\t\t \n\t\t\t query.add(Restrictions.eq(\"this.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"author.orgpersonstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"authorPerson.personstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"postcategories.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"category.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"postskills.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"skill.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"posttags.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"tag.status\", \"A\")) \n\t\t\t \t .add(Restrictions.eq(\"this.id\", postId))\n\t\t\t \t .add(Restrictions.eq(\"author.orgpersonid\", userId));\n\t\t\t \n\t\t\t query.setProjection(Projections.projectionList()\n\t\t\t\t\t \n\t\t\t\t\t //post\n\t\t\t\t\t .add(Projections.property(\"this.id\").as(\"post_id\"))\n\t\t\t\t\t .add(Projections.property(\"this.title\").as(\"post_title\"))\n\t\t\t\t\t .add(Projections.property(\"this.content\").as(\"post_content\")) \n\t\t\t\t\t .add(Projections.property(\"this.bannerpath\").as(\"post_bannerpath\"))\n\t\t\t\t\t .add(Projections.property(\"this.commentable\").as(\"post_commentable\"))\n\t\t\t\t\t .add(Projections.property(\"this.date\").as(\"post_date\"))\n\t\t\t\t\t .add(Projections.property(\"this.media\").as(\"post_media\")) \n\t\t\t\t\t .add(Projections.property(\"this.status\").as(\"post_status\")) \n\t\t\t\t\t //authorperson\n\t\t\t\t\t .add(Projections.property(\"authorPerson.personid\").as(\"authorPersonPersonId\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.firstName\").as(\"authorPersonFirstName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.lastName\").as(\"authorPersonLastName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.middleName\").as(\"authorPersonmiddleName\")) \n\t\t\t\t\t //category \n\t\t\t\t\t .add(Projections.property(\"postcategories.id\").as(\"postCategoryId\"))\n\t\t\t\t\t .add(Projections.property(\"postcategories.status\").as(\"postCategoryStatus\"))\n\t\t\t\t\t .add(Projections.property(\"category.id\").as(\"categoryId\")) \n\t\t\t\t\t .add(Projections.property(\"category.name\").as(\"categoryName\")) \n\t\t\t\t\t //skill\n\t\t\t\t\t .add(Projections.property(\"postskills.id\").as(\"postSkillsId\"))\n\t\t\t\t\t .add(Projections.property(\"postskills.status\").as(\"postSkillsStatus\"))\n\t\t\t\t\t .add(Projections.property(\"skill.id\").as(\"skillId\")) \n\t\t\t\t\t .add(Projections.property(\"skill.name\").as(\"skillName\")) \n\t\t\t\t\t//tag\n\t\t\t\t\t .add(Projections.property(\"posttags.id\").as(\"postTagsId\"))\n\t\t\t\t\t .add(Projections.property(\"posttags.status\").as(\"postTagsStatus\"))\n\t\t\t\t\t .add(Projections.property(\"tag.id\").as(\"tagId\")) \n\t\t\t\t\t .add(Projections.property(\"tag.name\").as(\"tagName\")) \n\t\t\t\t\t \n\t\t\t\t\t ); \n\t\t\t \n\t\t\t postList = query.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP).list();\n\t\t\t \n\t\t\t \t \t \n\t\t} catch (Exception e) {\n\t\t\tpostServiceLogger.error(\"error in PostService for getPostsOf()\",e);\n\t\t}\n\t\treturn postList;\n\t}",
"public void savePost(VBeatPostModel post) {\n AppLocalDB.getInstance().db.postDao().insertAll(post);\n }",
"public interface GradeMapper {\n @Select(\"select * from grade\")\n public List<Grade> getByGradeNm();\n\n @Insert(\"insert into grade(grade_nm,teacher_id) values(#{gradeNm},#{teacherId})\")\n @Options(useGeneratedKeys=true,keyColumn=\"id\",keyProperty=\"id\")//设置id自增长\n public void save(Grade grade);\n}",
"public void insert() throws SQLException {\n Statement stmtIn = DatabaseConnector.getInstance().getStatementIn();\n\n int check = BusinessFacade.getInstance().checkIDinDB(this.productRelation.getID(),\n this.post.getID(), \"goods\", \"product_type_id\", \"post_id\");\n if (check == -1){\n stmtIn.executeUpdate(\"INSERT INTO ngaccount.goods (goods_id , product_type_id, post_id) \" +\n \"VALUES ('\" + this.goodID + \"', '\" + this.productRelation.getID() +\n \"', '\" + this.post.getID() + \"');\");\n }\n }"
]
| [
"0.59889555",
"0.57390594",
"0.570231",
"0.5665071",
"0.563877",
"0.54984266",
"0.5481363",
"0.54466987",
"0.5425114",
"0.54112184",
"0.5379956",
"0.53751487",
"0.5359197",
"0.53162086",
"0.5312936",
"0.528954",
"0.52719784",
"0.5232329",
"0.5205044",
"0.5203752",
"0.51913637",
"0.51644903",
"0.5158612",
"0.51456964",
"0.5139534",
"0.51339734",
"0.5133906",
"0.51099247",
"0.5079191",
"0.5056655",
"0.50562364",
"0.50553346",
"0.505261",
"0.5023909",
"0.5022968",
"0.49978197",
"0.49690282",
"0.49589097",
"0.49544036",
"0.4950202",
"0.49453658",
"0.4939361",
"0.49377412",
"0.49362096",
"0.4925293",
"0.49227697",
"0.49181008",
"0.4917835",
"0.49169457",
"0.4913101",
"0.49100274",
"0.48689047",
"0.48656505",
"0.4864679",
"0.48603308",
"0.48549676",
"0.48547435",
"0.4844339",
"0.48340806",
"0.4833405",
"0.4817286",
"0.48095027",
"0.48090166",
"0.47975355",
"0.4792431",
"0.47820842",
"0.47786596",
"0.47786534",
"0.47704196",
"0.4758565",
"0.47556996",
"0.47526348",
"0.47519997",
"0.47490165",
"0.4748695",
"0.4748518",
"0.4746258",
"0.47447923",
"0.47441265",
"0.4743084",
"0.47414175",
"0.4727179",
"0.4726927",
"0.47241473",
"0.4719419",
"0.47125748",
"0.47068906",
"0.47059047",
"0.4703528",
"0.47008115",
"0.46991017",
"0.46971655",
"0.46955362",
"0.46926337",
"0.46912578",
"0.46898603",
"0.46894318",
"0.46860006",
"0.4683632",
"0.46812797",
"0.4678808"
]
| 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table post_information | public void setDistinct(boolean distinct) {
this.distinct = distinct;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getPostSQL()\n {\n return _get_imfObject().getPostSQL();\n }",
"public PostRecord() {\n super(PostTable.POST);\n }",
"Forumpost selectByPrimaryKey(Integer postid);",
"PostSaveDTO queryDetailById(String postId);",
"public ArrayList<PostInfo> getPost() throws SQLException {\n ArrayList<PostInfo> postInfoList = new ArrayList<>();\n String sql = \"SELECT * FROM `post` WHERE `status` = 1 ORDER BY `post_time` DESC\";\n statement = connection.createStatement();\n resultSet = statement.executeQuery(sql);\n while (resultSet.next()) {\n postInfoList.add(new PostInfo(resultSet.getInt(\"post_id\"), resultSet.getInt(\"place_id\"), resultSet.getString(\"post_text\"),\n resultSet.getDate(\"post_time\"), resultSet.getInt(\"status\"), resultSet.getInt(\"user_id\"), resultSet.getInt(\"editor_id\")));\n }\n return postInfoList;\n }",
"@SuppressWarnings(\"deprecation\")\n\tpublic void writeTable()\n\t{\n\t\tIterator<WPPost> itr = readValues.iterator();\n\t\t\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\tWPPost post = itr.next();\n\t\t\tPreparedStatement prStm;\n\t\t\tint res = 0;\n\t\t\t\n\t\t\ttry \n\t\t\t{\n\t\t\t\tif(post.getPostDateGMT() == null)\n\t\t\t\t{\n\t\t\t\t\tpost.setPostDateGMT(new Timestamp(0));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(post.getPostModifiedGMT() == null)\n\t\t\t\t{\n\t\t\t\t\tpost.setPostModifiedGMT(new Timestamp(0));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tprStm = conn.prepareStatement(WRITE_STATEMENT);\n\t\t\t\tprStm.setInt(1, post.getId());\n\t\t\t\tprStm.setInt(2, post.getPostAuthor());\n\t\t\t\tprStm.setTimestamp(3, post.getPostDate());\n\t\t\t\tprStm.setTimestamp(4, post.getPostDateGMT());\n\t\t\t\tprStm.setString(5, post.getPostContent());\n\t\t\t\tprStm.setString(6, post.getPostTitle());\n\t\t\t\tprStm.setString(7, post.getPostExcerpt());\n\t\t\t\tprStm.setString(8, post.getPostStatus());\n\t\t\t\tprStm.setString(9, post.getCommentStatus());\n\t\t\t\tprStm.setString(10, post.getPingStatus());\n\t\t\t\tprStm.setString(11, post.getPostPassword());\n\t\t\t\tprStm.setString(12, post.getPostName());\n\t\t\t\tprStm.setString(13, post.getToPing());\n\t\t\t\tprStm.setString(14, post.getPinged());\n\t\t\t\tprStm.setTimestamp(15, post.getPostModified());\n\t\t\t\tprStm.setTimestamp(16, post.getPostModifiedGMT());\n\t\t\t\tprStm.setString(17, post.getPostContentFiltered());\n\t\t\t\tprStm.setInt(18, post.getPostParent());\n\t\t\t\tprStm.setString(19, post.getGuid());\n\t\t\t\tprStm.setInt(20, post.getMenuOrder());\n\t\t\t\tprStm.setString(21, post.getPostType());\n\t\t\t\tprStm.setString(22, post.getPostMimeType());\n\t\t\t\tprStm.setInt(23, post.getCommentCount());\n\t\t\t\t\n\t\t\t\tres = prStm.executeUpdate();\n\t\t\t\t\n\t\t\t\tif(res == 0)\n\t\t\t\t{\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new WriteWPPostException(post.toString());\n\t\t\t\t\t} \n\t\t\t\t\tcatch (WriteWPPostException e) \n\t\t\t\t\t{\n\t\t\t\t\t\t//e.printStackTrace(); // TODO Debug Mode! Delete This!\n\t\t\t\t\t\tthis.rowsWithErrors.add(post);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\t\t\tcatch (SQLException e1) \n\t\t\t{\n\t\t\t\t//e1.printStackTrace(); // TODO Debug Mode! Delete This!\n\t\t\t\tthis.rowsWithErrors.add(post);\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\tpublic List<Post> getAllPost() {\n\t\tString hql = \"from Post\";\r\n\t\treturn (List<Post>) getHibernateTemplate().find(hql);\r\n\t}",
"PmPost selectByPrimaryKey(String postId);",
"public void setPostId(Integer postId) {\n this.postId = postId;\n }",
"public Integer getPostId() {\n return postId;\n }",
"@Override\n\tpublic void getAll() {\n\t\tArrayList<Post> list = new ArrayList<Post>();\n\t\tlist = dao.selectAll();\n\t\t\n\t\tfor (Post p : list) {\n\t\t\tSystem.out.println(p.getPostId() + \".\" + p.getPostName() + \" 작성자:\" + p.getMemberId());\n\t\t}\n\t}",
"public List<detailsofpassengerpost> seedetailslist() throws IOException{\n//connect database\nString resource = \"orm/configuration.xml\";\nReader reader = Resources.getResourceAsReader(resource);\nSqlSessionFactory sessionFactory = new SqlSessionFactoryBuilder().build(reader);\nSqlSession session = sessionFactory.openSession();\n\ntry{\n\tSystem.out.println(\"postID in seeDetails=\"+postID);\npostlist=session.selectList(\"selectPassengerPostByID\",postID);\nSystem.out.println(\"postlist size in seeDetails=\"+postlist.size());\n\n//find passenger's name through his email address\nnumberofapplieddrivers=postlist.get(0).getNumberofapplieddrivers();\npassengeremail=postlist.get(0).getEmail();\npassengerlist=session.selectList(\"selectuserbyemail\", passengeremail);\n\npassengername=passengerlist.get(0).getName();\npassengersex=passengerlist.get(0).getSex();\npassengerdob=passengerlist.get(0).getDob();\n\ndd=new detailsofpassengerpost();\ndetaillist=new ArrayList<detailsofpassengerpost>();\n\ndd.setNeedseats(postlist.get(0).getNeedseats());\ndd.setExpectedcartype(postlist.get(0).getExpectedcartype());\ndd.setDeparture(postlist.get(0).getDeparture());\ndd.setDeparturedate(postlist.get(0).getDeparturedate());\ndd.setDestination(postlist.get(0).getDestination());\ndd.setDob(passengerdob);\ndd.setEmail(passengeremail);\ndd.setEstimatedleavingtime(postlist.get(0).getEstimatedleavingtime());\ndd.setExpectedcost(postlist.get(0).getExpectedcost());\ndd.setMemo(postlist.get(0).getMemo());\ndd.setName(passengername);\ndd.setPostID(postID);\ndd.setSex(passengersex);\ndd.setPhone(postlist.get(0).getPhone());\ndd.setNumberofapplieddrivers(numberofapplieddrivers);\ndetaillist.add(dd);\n\nreturn detaillist;\n\n}finally{\nsession.close();\n}\n}",
"public List<Post> all() throws DataAccessException{\n String sql = \"select posts.id, posts.user_id, users.name, posts.title, posts.content, posts.create_date from posts join users on posts.user_id=users.id\";\n List<Post> posts = this.jdbcTemplate.query(sql, mapper);\n return posts;\n }",
"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}",
"@Override\r\n\tpublic void addPost(Post post) {\n\t\tgetHibernateTemplate().save(post);\r\n\t}",
"@Override\n public HashMap<Integer,_DefaultMessage> loadPost() throws IOException, SQLException, ClassNotFoundException {\n return _DbConnectionManager.getHMPosts(this.dbConnection, this.getName());\n }",
"public String getPostTableName() {\r\n\t\treturn postTableName;\r\n\t}",
"public void setPostId(long postId);",
"public interface CommentMapper {\n\n @Insert(\"insert comment(productId,userId,text,createdAt) values(#{productId},#{userId},#{text},now())\" )\n @Options(useGeneratedKeys = true,keyProperty = \"id\")\n void insertComment(Comment comment);\n\n @Select(\"select * from comment where productId=#{productId}\")\n List<Comment> getCommentByProductId(int productId);\n\n @Delete(\"delete from comment where id = #{id}\")\n void deleteComment(int id);\n\n\n}",
"public interface Post {\n\n\tpublic Long getId();\n\n\tpublic void setId(Long id);\n\n\tpublic Date getDate();\n\n\tpublic void setDate(Date date);\n\n\tpublic String getMessage();\n\n\tpublic void setMessage(String message);\n\n}",
"@Override\r\n\t\tpublic DatabaseMetaData getMetaData() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"public void updatePost(PostInfo postInfo) throws SQLException {\n String sql = \"UPDATE `post` SET `place_id`=?,`post_text`=?,`post_time`=?,`status`=?,`user_id`=?,`editor_id`=? WHERE `post_id` = ?\";\n preparedStatement = connection.prepareStatement(sql);\n preparedStatement.setInt(1, postInfo.getPlace_id());\n preparedStatement.setString(2, postInfo.getPost_text());\n preparedStatement.setDate(3, postInfo.getPost_time());\n preparedStatement.setInt(4, postInfo.getStatus());\n preparedStatement.setInt(5, postInfo.getUser_id());\n preparedStatement.setInt(6, postInfo.getEditor_id());\n preparedStatement.setInt(7, postInfo.getPost_id());\n\n preparedStatement.executeUpdate();\n }",
"public int getPostId() {\r\n\t\treturn postId;\r\n\t}",
"public void deletePost(PostInfo postInfo) throws SQLException {\n String sql = \"UPDATE `post` SET `status`=0 WHERE `post_id` = ?\";\n preparedStatement = connection.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);\n preparedStatement.setInt(1, postInfo.getPost_id());\n\n preparedStatement.executeUpdate();\n }",
"public long getPostId() {\n return postId;\n }",
"@Override\n\tpublic Map<String, String> toSqlMap() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Collection<Tmly> getTmlyInfo() {\n\t\tString sql = \"select ID_,TITLE,CONTENT,state from tmly\";\n\t\tList<Tmly> list = this.jdbcTemplate.query(sql, new RowMapper<Tmly>() {\n\n\t\t\t@Override\n\t\t\tpublic Tmly mapRow(ResultSet result, int i) throws SQLException {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tTmly tmly = new Tmly();\n\t\t\t\ttmly.setId(result.getInt(\"id_\"));\n\t\t\t\ttmly.setTitle(result.getString(\"title\"));\n\t\t\t\ttmly.setContent(result.getString(\"content\"));\n\t\t\t\treturn tmly;\n\t\t\t}\n\n\t\t});\n\t\treturn list;\n\t}",
"public long getPostId();",
"public static ResultSet getPosts(){\n ResultSet result = null;\n try {\n conn = ConnectionProvider.getCon();\n pst = conn.prepareStatement(\"select * from normalposts\");\n result = pst.executeQuery();\n\n System.out.println(\"PostDAO: getting posts\");\n } catch(Exception e) {\n System.out.println(\"PostDAO: unsuccessful query\");\n System.out.println(e);\n }\n return result;\n }",
"@Mapper\npublic interface BlogDAO {\n @Insert(\"INSERT INTO blog(title,uniq,markdown,html, create_time,update_time) \" +\n \"VALUES(#{item.title},#{item.uniq},#{item.markdown},#{item.html},#{item.createTime}, #{item.updateTime})\")\n int insert(\n @Param(\"item\") Blog blog\n );\n\n @Select(\"SELECT id,uniq,title,markdown,html,\" +\n \" create_time as createTime,update_time as updateTime \" +\n \" FROM blog WHERE id = #{id}\")\n Blog getBlogById(@Param(\"id\") String id);\n\n @Insert(\"replace into blog(id,title,uniq,markdown,html, create_time,update_time) \" +\n \"VALUES(#{item.id},#{item.title},#{item.uniq},#{item.markdown},#{item.html},#{item.createTime}, #{item.updateTime})\")\n int update(@Param(\"item\")Blog blog);\n\n @Select(\"SELECT id,uniq,title,\" +\n \" create_time as createTime,update_time as updateTime \" +\n \" FROM blog order by id desc limit #{offset}, #{limit}\")\n List<Blog> getBlogList(@Param(\"offset\")long offset,\n @Param(\"limit\")long limit,\n @Param(\"sort\") String sort);\n}",
"public String toSql() {\t\n int n;\t\n void a;\t\n StringBuilder a2 = new StringBuilder();\t\n Table table = MapperHelper.getTable(this.entity);\t\n a2.append(MapperHelper.getTableName((Table)a, this.entity) + \" \" + a.alias());\t\n JoinTable[] arrjoinTable = a.joinTable();\t\n int n2 = arrjoinTable.length;\t\n int n3 = n = 0;\t\n while (n3 < n2) {\t\n JoinTable a3 = arrjoinTable[n];\t\n Table a4 = MapperHelper.getTable(a3.entity());\t\n a2.append(new StringBuilder().insert(0, \" \").append(a3.type().value()).append(\" \").toString());\t\n a2.append(new StringBuilder().insert(0, MapperHelper.getTableName(a4, this.entity)).append(\" \").append(a3.alias()).toString());\t\n a2.append(new StringBuilder().insert(0, \" ON \").append(a3.on()).toString());\t\n n3 = ++n;\t\n }\t\n StringBuilder stringBuilder = a2;\t\n stringBuilder.append(MapperHelper.getSqlMapValue(this.entity, a.extFromKeys()));\t\n return stringBuilder.toString();\t\n }",
"@Test\n public void metaDataExample1() throws SQLException {\n Connection connection = DriverManager.getConnection(dbUrl, dbUsername, dbPassword);\n // 2. Create statement\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n // Run sql query and get the result in resultSet object\n String sqlQuery= \"Select * From departments\";\n //String sqlQuery= \"Select first_name, last_name, salary From employees\";\n ResultSet resultSet = statement.executeQuery(sqlQuery);\n\n // we use resultSet metadata to get information about the tables\n // get the resultSet object metadata\n ResultSetMetaData rsMetadata = resultSet.getMetaData();\n\n // List for keeping all rows as a map\n List<Map<String, Object>> queryData = new ArrayList<>();\n\n // while(resultSet.next()) helps to iterate through columns\n while (resultSet.next()) {\n // key(columns) will be string but value can be any type of data. That's why we choose <String, Object>\n Map<String, Object> row = new HashMap<>(); // creating empty Map\n // number of columns\n int colCount = rsMetadata.getColumnCount();\n // for loop helps to iterate through columns\n for (int i = 1; i <= colCount; i++) {\n row.put(rsMetadata.getColumnName(i), resultSet.getObject(i));\n }\n\n queryData.add(row); // adding a Map to the List of Maps\n }\n\n // Printing the rows\n for (Map<String, Object> row: queryData) {\n System.out.println(row.toString());\n\n }\n\n\n\n\n // close all connections\n resultSet.close();\n statement.close();\n connection.close();\n }",
"List<PostInfo> getPostList();",
"public void setPostId(int postId) {\r\n\t\tthis.postId = postId;\r\n\t}",
"TypedKeyValue<String, Integer> getDestinationInfo(String sql);",
"public List<PostEntry> savePost(String username, int postid, String title, String body){\n Connection c = null;\n PreparedStatement ps = null; \n ResultSet rs = null;\n\n boolean ret = true;\n\n //check if postid exists.\n if(postid>0 && findPost(username, postid)==null){\n return null;\n }\n try {\n //Get connection\n c = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/CS144\", \"cs144\", \"\");\n int changed;\n if(postid>0){\n //UPDATE\n System.out.println(\"update post!\");\n ps = c.prepareStatement(\"UPDATE Posts SET title=?, body=?, modified=? WHERE username=? AND postid=?\");\n ps.setString(1, title);\n ps.setString(2, body);\n ps.setTimestamp(3, new Timestamp(System.currentTimeMillis())); //set modified to current time\n ps.setString(4, username);\n ps.setInt(5, postid);\n\n changed = ps.executeUpdate();\n }\n else {\n //get largest postid and add 1 to get newID\n\n System.out.println(\"new post!\");\n ps = c.prepareStatement(\"SELECT MAX(postid) FROM Posts WHERE username=?\");\n ps.setString(1, username);\n\n rs = ps.executeQuery();\n int newID = 1;\n if(rs.next()){\n newID = rs.getInt(1) + 1;\n }\n ps.close();\n\n ps = c.prepareStatement(\"INSERT INTO Posts (username, postid, title, body, modified, created) VALUES(?,?,?,?,?,?)\");\n ps.setString(1, username);\n ps.setInt(2, newID);\n ps.setString(3, title);\n ps.setString(4, body);\n ps.setTimestamp(5, new Timestamp(System.currentTimeMillis())); //set modified to current time\n ps.setTimestamp(6, new Timestamp(System.currentTimeMillis())); //set created to current time\n \n changed = ps.executeUpdate();\n }\n\n if(changed==0){\n ret = false;\n }\n\n } catch(SQLException e){\n //error handling\n System.out.println(\"SQLException caught.\");\n e.printStackTrace();\n } finally {\n //just need to close all\n try { rs.close(); } catch (Exception e) { /* ignored */ }\n try { ps.close(); } catch (Exception e) { /* ignored */ }\n try { c.close(); } catch (Exception e) { /* ignored */ }\n }\n\n //return list data\n if(ret)\n return findList(username);\n else\n return null;\n }",
"public long ashirPostCreating(AshirBlogPostingHelper post) {\n long result;\n\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(Col_2, post.getPost());\n values.put(Col_3, post.getImage());\n //inserting valuse into table columns\n result = db.insert(NAME_OF_TABLE, null, values);\n db.close();\n return result;\n\n }",
"public void setPostTableName(String postTableName) {\r\n\t\tthis.postTableName = postTableName;\r\n\t}",
"@Override\n\t\tprotected void postUpdate(EspStatusDTO t) throws SQLException {\n\t\t\t\n\t\t}",
"String getPostDeclareSql();",
"public void setPostId(int postId) {\n\t\tthis.postId = postId;\n\t}",
"@Override\n public Entity configuracion(Entity e) throws SQLException {\n return null;\n }",
"void setPostId(int postId);",
"int getPostId();",
"@Override\r\n\tpublic Post searchInfById(Post post2) {\n\t\tpostDao=new PostDaoImpl(TransactionManager.connection);\r\n\t\tResultSet resultSet=postDao.selectById(post2);\r\n\t\tPost post=new Post();\r\n\t\ttry {\r\n\t\t\tif(resultSet.next()) {\r\n\t\t\t\tpost.setPostId(resultSet.getInt(1));\r\n\t\t\t\tpost.setPostName(resultSet.getString(3));\r\n\t\t\t\tpost.setUserId(resultSet.getInt(2));\r\n\t\t\t\tpost.setPostProperty(resultSet.getInt(4));\r\n\t\t\t\tpost.setPostEnterNum(resultSet.getInt(5));\r\n\t\t\t\tpost.setPostTime(resultSet.getDate(6));\r\n\t\t\t\tpost.setPostScore(resultSet.getDouble(7));\r\n\t\t\t\tpost.setScoreCount(resultSet.getInt(8));\r\n\t\t\t\tpost.setLastComTime(resultSet.getDate(9));\r\n\t\t\t\tpost.setResId(resultSet.getInt(10));\r\n\t\t\t\tpost.setResPath(resultSet.getString(12));\r\n\t\t\t\tpost.setUserName(resultSet.getString(14));\r\n\t\t\t\tpost.setUserLevel(resultSet.getInt(16));\r\n\t\t\t\tpost.setUserStatus(resultSet.getInt(17));\r\n\t\t\t\tpost.setPropertyName(resultSet.getString(19));\r\n\t\t\t\tpost.setLocation(resultSet.getString(22));\r\n\t\t\t\tpost.setPhone(resultSet.getString(23));\r\n\t\t\t\tpost.setPostCode(resultSet.getInt(24));\r\n\t\t\t\tpost.setEmail(resultSet.getString(25));\r\n\t\t\t\tpost.setGender(resultSet.getString(26));\r\n\t\t\t\tpost.setHobby(resultSet.getString(27));\r\n\t\t\t\tpost.setMajor(resultSet.getString(28));\r\n\t\t\t\tpost.setScore(resultSet.getInt(29));\r\n\t\t\t\tpost.setNickName(resultSet.getString(30));\r\n\t\t\t\tpost.setUserRegion(resultSet.getString(31));\r\n\t\t\t\tpost.setUserPhoto(resultSet.getString(32));\r\n\t\t\t\tpost.setComCount(resultSet.getInt(39));\r\n\t\t\t\t\r\n\t\t\t\treturn post;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\treturn null;\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\treturn null;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"@Mapper\npublic interface QuestionDAO {\n String TABLE_NAME = \" question \";\n String INSERT_FIELDS = \" title, content, created_date, user_id, comment_count \";\n String SELECT_FIELDS = \" id, \" + INSERT_FIELDS;\n\n @Insert({\"insert into \", TABLE_NAME, \"(\", INSERT_FIELDS,\n \") values (#{title},#{content},#{createdDate},#{userId},#{commentCount})\"})\n int addQuestion(Question question);\n\n // 使用 xml 配置文件进行 数据库查询语句与程序接口的映射。\n // 对应的 QuestionDAO.xml 文件位于 resources 文件夹 -》com.mattLearn.dao 文件夹中。\n List<Question> selectLatestQuestions(@Param(\"userId\") int userId, @Param(\"offset\") int offset,\n @Param(\"limit\") int limit);\n\n @Select({\"select \", SELECT_FIELDS, \" from \", TABLE_NAME, \" where id=#{id}\"})\n Question SelectById(int id);\n\n @Update(\" update question set comment_count=#{commentCount} where id = #{id}\")\n int updateCommentCount(@Param(\"commentCount\") int commentCount,\n @Param(\"id\") int id);\n\n}",
"public Integer getPostType() {\n return postType;\n }",
"@Override\n public ColumnInfo getColumnInfo() {\n return columnInfo;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<Post> getPostsOf(int postId){\n \t\tList<Post> postList = null;\n\t\tCriteria query = null;\n\t\ttry {\n\t\t\t\n\t\t\t query = getCurrentSession().createCriteria(Post.class);\n\t\t\t \n\t\t\t query.createAlias(\"this.orgperson\", \"author\") \n\t\t\t .createAlias(\"author.personid\",\"authorPerson\")\n\t\t\t \t .createAlias(\"this.postcategories\", \"postcategories\")\n\t\t\t \t .createAlias(\"postcategories.category\", \"category\")\n\t\t\t \t .createAlias(\"this.postskills\", \"postskills\")\n\t\t\t \t .createAlias(\"postskills.skill\", \"skill\")\n\t\t\t \t .createAlias(\"this.posttags\", \"posttags\")\n\t\t\t \t .createAlias(\"posttags.tag\", \"tag\");\n\t\t\t \n\t\t\t query.add(Restrictions.eq(\"this.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"author.orgpersonstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"authorPerson.personstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"postcategories.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"category.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"postskills.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"skill.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"posttags.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"tag.status\", \"A\")) \n\t\t\t \t .add(Restrictions.eq(\"this.id\", postId));\n\t\t\t \n\t\t\t query.setProjection(Projections.projectionList()\n\t\t\t\t\t \n\t\t\t\t\t //post\n\t\t\t\t\t .add(Projections.property(\"this.id\").as(\"post_id\"))\n\t\t\t\t\t .add(Projections.property(\"this.title\").as(\"post_title\"))\n\t\t\t\t\t .add(Projections.property(\"this.content\").as(\"post_content\")) \n\t\t\t\t\t .add(Projections.property(\"this.bannerpath\").as(\"post_bannerpath\"))\n\t\t\t\t\t .add(Projections.property(\"this.commentable\").as(\"post_commentable\"))\n\t\t\t\t\t .add(Projections.property(\"this.date\").as(\"post_date\"))\n\t\t\t\t\t .add(Projections.property(\"this.media\").as(\"post_media\")) \n\t\t\t\t\t .add(Projections.property(\"this.status\").as(\"post_status\")) \n\t\t\t\t\t //authorperson\n\t\t\t\t\t .add(Projections.property(\"authorPerson.personid\").as(\"authorPersonPersonId\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.firstName\").as(\"authorPersonFirstName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.lastName\").as(\"authorPersonLastName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.middleName\").as(\"authorPersonmiddleName\")) \n\t\t\t\t\t //category\n\t\t\t\t\t .add(Projections.property(\"category.id\").as(\"categoryId\")) \n\t\t\t\t\t .add(Projections.property(\"category.name\").as(\"categoryName\")) \n\t\t\t\t\t //skill\n\t\t\t\t\t .add(Projections.property(\"skill.id\").as(\"skillId\")) \n\t\t\t\t\t .add(Projections.property(\"skill.name\").as(\"skillName\")) \n\t\t\t\t\t//tag\n\t\t\t\t\t .add(Projections.property(\"tag.id\").as(\"tagId\")) \n\t\t\t\t\t .add(Projections.property(\"tag.name\").as(\"tagName\")) \n\t\t\t\t\t \n\t\t\t\t\t ); \n\t\t\t \n\t\t\t postList = query.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP).list(); \n\t\t\t \t \t \n\t\t} catch (Exception e) {\n\t\t\tpostServiceLogger.error(\"error in PostService for getPostsOf()\",e);\n\t\t} \n\t\treturn postList;\n\t}",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n response.setCharacterEncoding(\"UTF-8\");\n request.setCharacterEncoding(\"UTF-8\");\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"Ghosttales_PU\");\n EntityManager em = emf.createEntityManager();\n HttpSession session = request.getSession();\n \n \n //String file = request.getParameter(\"file\");\n \n \n String content = request.getParameter(\"content\");\n // String content = \"oiadjioajdoiajdiajsi\";\n System.out.println(\"---1---\");\n String title = request.getParameter(\"title\");\n String author = (String) session.getAttribute(\"userr\");\n UserInfo u = em.find(UserInfo.class, author);\n LocalDate today = LocalDate.now();\n \n System.out.println(u.getUsername());\n \n// if(content != null && title !=null) {\n\n // String sql2 = \"SELECT COUNT(p) FROM Post p\";\n String sql2 =\"SELECT p.postId FROM Post p\";\n Query q = em.createQuery(sql2);\n \n List <Post>ps =q.getResultList() ;\n \n \n \n// long countt = (long)q.getSingleResult();\n// int count = (int) countt+1;\n \n \n Post post = new Post(); \n int num = ps.size();\n if(num==0){\n int countt = num+1 ;\n int count = countt;\n post.setPostId(count);\n session.setAttribute(\"num\",count);\n }else{\n int countt = (int) q.getResultList().get(num-1);\n int count = countt+1;\n System.out.println(num);\n System.out.println(countt);\n System.out.println(count);\n post.setPostId(count);\n session.setAttribute(\"num\",count);\n }\n \n post.setTitle(title);\n post.setContent(content);\n post.setCreateTime(java.sql.Date.valueOf(today));\n post.setUpdateTime(null);\n post.setTotallike(0);\n post.setTotalcomment(0);\n post.setUserinfousername(u);\n System.out.println(\"-----2-----\");\n \n \n \n em.getTransaction().begin();\n em.persist(post);\n em.getTransaction().commit();\n \n \n \n \n \n session.setAttribute(\"show\", post);\n \n \n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"post\", post.getContent());\n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"title\", post.getTitle());\n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"author\", post.getUserinfousername().toString());\n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"day\", post.getCreateTime());\n \n \n\n request.getRequestDispatcher(\"/addimage.jsp\").forward(request, response);\n\n }",
"Achievements getPostDetails();",
"public int getDataid_postingBisnis() {\r\n return Dataid_postingBisnis;\r\n }",
"@Override\n\tpublic Post createPost(Post post) {\n\t\treturn postDao.createPost(post);\n\t}",
"public CustomSql getCustomSqlInsert();",
"int insert(PmPost record);",
"@Override\r\n\tpublic void updatePost(Post post) {\n\t\tPost p = getPostById(post.getPost_id());\r\n\t\tp.setDepartment(post.getDepartment());\r\n\t\tp.setDescription(post.getDescription());\r\n\t\tp.setEmployeeSet(post.getEmployeeSet());\r\n\t\tp.setPost_id(post.getPost_id());\r\n\t\tp.setPost_name(post.getPost_name());\r\n\t\tp.setPost_wage(post.getPost_wage());\r\n\t\tgetHibernateTemplate().update(p);\r\n\t}",
"@Override\n\tpublic JDBCMetaData getMetaData() throws SQLException {\n\t\treturn null;\n\t}",
"public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}",
"private void writeMetaData(ResultSet resultSet) throws SQLException {\n\t System.out.println(\"The columns in the table are: \");\r\n\t System.out.println(\"Table: \" + resultSet.getMetaData().getTableName(1));\r\n\t for (int i = 1; i<= resultSet.getMetaData().getColumnCount(); i++){\r\n\t System.out.println(\"Column \" +i + \" \"+ resultSet.getMetaData().getColumnName(i));\r\n\t }\r\n\t }",
"Integer getDomainTemplateColumn();",
"@SuppressWarnings(\"HardCodedStringLiteral\")\npublic interface MyPostsColumn {\n @DataType(INTEGER)\n @PrimaryKey\n String KEY_SQL_ID = \"sql_id\";\n\n @DataType(TEXT)\n @NotNull @Unique\n String KEY_ID = \"_id\";\n\n @DataType(TEXT)\n String KEY_AUTHOR = \"author\";\n\n @DataType(TEXT)\n @NotNull\n String KEY_SUBREDDIT_ID = \"subreddit_id\";\n\n @DataType(TEXT)\n @NotNull\n String KEY_SUBREDDIT = \"subreddit\";\n\n @DataType(INTEGER)\n String KEY_UPS = \"ups\";\n\n @DataType(TEXT)\n String KEY_TITLE = \"title\";\n\n @DataType(INTEGER)\n String KEY_COMMENTS_COUNT = \"comments_count\";\n\n @DataType(INTEGER)\n String KEY_CREATED_UTC = \"created_utc\";\n\n @DataType(INTEGER)\n String KEY_CREATED = \"created\";\n\n @DataType(TEXT)\n @NotNull\n String KEY_NAME = \"name\";\n\n @DataType(INTEGER)\n @NotNull\n String KEY_CLICKED = \"clicked\";\n\n @DataType(INTEGER)\n String KEY_LIKES = \"likes\"; //CAN BE NULL\n\n @DataType(TEXT)\n String KEY_DOMAIN = \"domain\";\n\n @DataType(INTEGER)\n String KEY_IS_SELF = \"is_self\";\n\n @DataType(INTEGER)\n @NotNull\n String KEY_OVER_18 = \"over_18\";\n\n @DataType(TEXT)\n String KEY_PERMALINK = \"permalink\";\n\n @DataType(TEXT)\n String KEY_POST_HINT = \"post_hint\";\n\n @DataType(INTEGER)\n String KEY_SCORE = \"score\";\n\n @DataType(TEXT)\n String KEY_THUMBNAIL = \"thumbnail\";\n\n @DataType(TEXT)\n String KEY_URL = \"url\";\n\n @DataType(INTEGER)\n String KEY_VISITED = \"visited\";\n\n @DataType(INTEGER)\n String KEY_LOCKED = \"locked\";\n\n @DataType(TEXT)\n String KEY_MEDIA_OEMBED_TYPE = \"media_oembed_type\";\n\n @DataType(TEXT)\n String KEY_BIG_IMAGE_URL = \"big_image_url\";\n\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_POST = \"type_post\";\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_SEARCH = \"type_search\";\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_WIDGET = \"type_widget\";\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_TEMP = \"type_temp\";\n\n\n\n}",
"public void queryPostTable(Context activityContext, String postTableName) {\n new GetCursorTablePost(activityContext).execute(postTableName);\n }",
"@Override\n\tpublic void updateAllPostNowTipBySid(String Id, CodeInfo codeInfo) {\n\t\tQuery query = this.currentSession().createQuery(\"update com.wondersgroup.human.bo.pubinst.PtPost set tenureStatus = :nowPostSign where publicInstitution.id = :Id\");\n\t\tquery.setParameter(\"nowPostSign\", codeInfo);\n\t\tquery.setParameter(\"Id\",Id);\n\t\tquery.executeUpdate();\n\t\t\n\t}",
"public interface IBasicPost {\n Long getId();\n String getTitle();\n String getDescription();\n long getCreatedDate();\n long getUpdatedDate();\n Integer getCityId();\n Long getUserId();\n Integer getUserLikeCount();\n Integer getUserCommentCount();\n String getUserFirstName();\n}",
"@RequestMapping(value = \"fetch-health-tips\", method = RequestMethod.POST)\n private List<HealthPost> fetchHealthTips() {\n SessionService.sessionBuilder(session -> {\n healthPostList = session.createQuery(\"from HealthPost order by id desc\", HealthPost.class).list();\n });\n return healthPostList;\n }",
"@Override\n\tpublic void getPost(Scanner sc) {\n\t\tPost p;\n\t\tgetAll();\n\t\tSystem.out.print(\"보고 싶은 리뷰의 번호를 입력해 주세요 >>\");\n\t\tp = dao.selectPost(sc.nextInt());\n\t\tSystem.out.println(p.getPostName());\n\t\tSystem.out.println(p.getContent());\n\t}",
"@Override\n public DatabaseMetaData getMetaData() throws SQLException\n {\n logger.debug(\n \" public DatabaseMetaData getMetaData() throws SQLException\");\n\n return new SnowflakeDatabaseMetaData(this);\n }",
"public interface BasePostPoMapper extends feihua.jdbc.api.dao.CrudDao<BasePostPo, String> {\n\n java.util.List<BasePostPo> searchBasePosts(SearchPostsConditionDsfDto dto);\n}",
"public List<MediumBean> populatemediam(String sql ){\n\t\t\t\tList<MediumBean> retlist = jdbcTemplate.query(sql,ParameterizedBeanPropertyRowMapper.newInstance(MediumBean.class));\n\t\t\t\t\treturn retlist;\n\t\t }",
"public boolean addPost(Post post) throws SQLException\n {\n boolean isAdded=false;\n try\n {\n database = dbH.getReadableDatabase();\n dbH.openDataBase();\n ContentValues values = new ContentValues();\n values.put(\"postBody\", post.getPostBody());\n values.put(\"postedBy\", post.getPostedBy());\n values.put(\"postedAt\", post.getPostedAt());\n values.put(\"postID\", post.getPostID());\n values.put(\"image\" , post.getBitmap());\n\n isAdded=database.insert(\"Post\", null, values)>0;\n\n }\n catch(SQLException e)\n {\n e.printStackTrace();\n }\n finally{\n if(database!=null && database.isOpen())\n dbH.close();\n }\n return isAdded;}",
"@Query(\"SELECT * FROM \" + TABLE_NAME)\n List<Note> getNotes();",
"@Override\r\n\tprotected Entity getEntityByFields() throws SQLException {\n\t\t\r\n\t\tint id = rs.getInt(\"id\");\r\n\t\tint productId = rs.getInt(\"id_product\");\r\n\t\tString productName = super.getString(\"productName\");\t// From INNER JOIN\r\n\t\tString productUnit = super.getString(\"productUnit\");\t// From INNER JOIN\r\n\t\tfloat quantity = rs.getFloat(\"quantity\");\r\n\t\tfloat price = rs.getFloat(\"price\");\r\n\t\tfloat summa = rs.getFloat(\"summa\");\r\n\t\t\r\n\t\treturn new DocInvoiceItem(id, productId, productName, productUnit, quantity, price, summa);\r\n\t}",
"public PostInformationExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"@Override\r\n\tpublic List<Post> getPostByName(String name) {\n\t\tString hql = \"from Post p where p.post_name =?\";\r\n\t\treturn (List<Post>) getHibernateTemplate().find(hql, name);\r\n\t}",
"@Override\r\n\tpublic BaseBean insertSQL(String sql, Connection con) {\n\t\treturn null;\r\n\t}",
"public String getGeneratedSql() {\n/* 142 */ return this.sql;\n/* */ }",
"@Override\n\tpublic void insertIPODetail(IPODetail ipo) throws SQLException {\n\t\t\n\t}",
"@Override\n\tpublic Map<String, String[]> loadColumnMetas(String databaseName) throws SQLException {\n\t\tString sql=\"select utc.*,UCC.comments from user_tab_columns utc\\n\" + \n\t\t\t\t\"left join user_col_comments ucc on UCC.table_name=UTC.table_name and UCC.column_name=UTC.column_name\";\n\t\tMap<String, String[]> ret=new HashMap<>();\n\t\t try(PreparedStatement preparedStatement= connection.prepareStatement(sql);\n\t \t\tResultSet resultSet=preparedStatement.executeQuery();){\n\t\t\twhile(resultSet.next()) {\n\t\t\t\tString tableName=resultSet.getString(\"TABLE_NAME\")\n\t\t\t\t\t\t,columnName=resultSet.getString(\"COLUMN_NAME\")\n\t\t\t\t\t\t,dataLength=resultSet.getString(\"DATA_LENGTH\")\n\t\t ,nullable=resultSet.getString(\"NULLABLE\")\n\t\t ,comments=resultSet.getString(\"COMMENTS\")\n\t\t\t\t\t\t;\n\t\t\t\tString key=tableName+\":\"+columnName;\n\t\t\t\tret.put(key, new String[] {dataLength,nullable,comments});\n\t\t\t\t\n\t\t\t}\n\t }\n\t\t\n\t\treturn ret;\n\t}",
"void processMetaData(ResultSet rs) throws SQLException;",
"@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }",
"@Dao\npublic interface PostDao {\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n void insertPost(iPost iPosts);\n\n @Update\n void updatePost(iPost iPost);\n\n @Delete\n void deletePost(iPost iPost);\n\n @Query(\"SELECT * FROM iPost\")\n List<iPost> getAllPosts();\n\n @Query(\"SELECT * FROM iPost WHERE idThread=:threadId\")\n List<iPost> findPostsByThread(final int threadId);\n\n @Transaction\n @Query(\"SELECT * FROM iPost WHERE idThread=:threadId\")\n Single<List<PostsHelper>> getPostsFromThread(String threadId);\n}",
"protected String getSqlTable() {\n\t\treturn \"Project\";\n\t}",
"void savePost(Post post);",
"public void formDatabaseTable() {\n }",
"public CustomSql getCustomSqlUpdate();",
"@Override\n\tprotected String getCreateSql() {\n\t\treturn null;\n\t}",
"private static void showsSqlSelectOnNormalEntityBean() {\n\n\t\tQuery<Bug> query = Ebean.createQuery(Bug.class, \"simple\");\n\t\tquery.where().eq(\"status.code\", \"ACTIVE\");\n\n\t\tList<Bug> list = query.findList();\n\n\t\tSystem.out.println(list);\n\t\t\n\t\tfor (Bug bug : list) {\n\t\t\tString body = bug.getBody();\n\t\t\tSystem.out.println(body);\n\t\t}\n\n\t}",
"public interface AlmacenMapper {\n @Select(value = \"select tipo,descripcion from tipoproducto\")\n @Results(value = {\n @Result(javaType = Producto.class),\n @Result(property = \"tipo\",column = \"tipo\"),\n @Result(property = \"descripcion\",column = \"descripcion\"),\n })\n List<Producto> listarTipoProducto();\n\n @Insert(value = \"INSERT \" +\n \"INTO producto \" +\n \" ( \" +\n \" codigo, \" +\n \" nombre, \" +\n \" tipo, \" +\n \" porc_precio, \" +\n \" uni_medida, \" +\n \" cantidad \" +\n \" ) \" +\n \" VALUES \" +\n \" ( \" +\n \" producto_seq.nextval, \" +\n \" #{produ.nombre}, \" +\n \" #{produ.tipo}, \" +\n \" #{produ.porc_precio}, \" +\n \" #{produ.uni_medida}, \" +\n \" #{produ.cantidad} \" +\n \" )\")\n void GuardarProducto(@Param(\"produ\") Producto producto);\n\n @Select(value = \"SELECT codigo, \" +\n \" nombre, \" +\n \" p.tipo, \" +\n \" tp.descripcion, \" +\n \" porc_precio, \" +\n \" uni_medida, \" +\n \" cantidad \" +\n \"FROM producto p \" +\n \"INNER JOIN tipoproducto tp \" +\n \"ON(p.tipo=tp.tipo)\")\n @Results(value = {\n @Result(javaType = Producto.class),\n @Result(property = \"codigo\",column = \"codigo\"),\n @Result(property = \"nombre\",column = \"nombre\"),\n @Result(property = \"tipo\",column = \"tipo\"),\n @Result(property = \"descripcion\",column = \"descripcion\"),\n @Result(property = \"porc_precio\",column = \"porc_precio\"),\n @Result(property = \"uni_medida\",column = \"uni_medida\"),\n @Result(property = \"cantidad\",column = \"cantidad\"),\n })\n List<Producto> listarProductos();\n\n @Update(value =\"UPDATE producto \" +\n \"SET nombre =#{produ.nombre}, \" +\n \" porc_precio=#{produ.porc_precio}, \" +\n \" tipo= \" +\n \" #{produ.tipo} \" +\n \"WHERE codigo=#{produ.codigo}\" )\n void ActualizarProducto(@Param(\"produ\") Producto producto);\n\n @Delete(value=\"DELETE FROM PRODUCTO WHERE codigo=#{id}\")\n void EliminarProducto(@Param(\"id\") Integer id);\n\n @Select(value = \"SELECT codigo, \" +\n \" nombre \" +\n \"FROM producto p where tipo=#{id} \")\n @Results(value = {\n @Result(javaType = Producto.class),\n @Result(property = \"codigo\",column = \"codigo\"),\n @Result(property = \"nombre\",column = \"nombre\"),\n })\n List<Producto> ListarProductosxCategoria(@Param(\"id\") Integer id);\n\n @Insert(value = \"INSERT \" +\n \"INTO entrada_productos \" +\n \" ( \" +\n \" n_entrada, \" +\n \" fecha, \" +\n \" costo_total \" +\n \" ) \" +\n \" VALUES \" +\n \" ( \" +\n \" entrada_seq.nextval , \" +\n \" sysdate, \" +\n \" #{entrada.costo_total} \" +\n \" )\")\n void insertEntradaProducto(@Param(\"entrada\") EntradaProducto entrada);\n\n @Insert(value = \"INSERT \" +\n \"INTO detalle_entrada_productos \" +\n \" ( \" +\n \" N_ENTRADA, \" +\n \" COD_PRODUCTO, \" +\n \" COD_PROVEEDOR, \" +\n \" CANTIDAD, \" +\n \" PRECIO_COMPRA, \" +\n \" COSTO_TOTAL_PRODUCTO \" +\n \" ) \" +\n \" VALUES \" +\n \" ( \" +\n \" (select max(n_entrada) from entrada_productos), \" +\n \" #{entrada.cod_producto}, \" +\n \" #{entrada.cod_proveedor}, \" +\n \" #{entrada.cantidad}, \" +\n \" #{entrada.precio_compra}, \" +\n \" #{entrada.costo_total_producto} \" +\n \" )\")\n void inserDetalleEntradaProductos(@Param(\"entrada\") EntradaProducto entrada);\n\n @Update(value =\"UPDATE producto \" +\n \"SET cantidad=(select cantidad+#{entrada.cantidad} from producto where codigo=#{entrada.cod_producto}) \"+\n \"WHERE codigo=#{entrada.cod_producto}\" )\n void updateStockProducto(@Param(\"entrada\")EntradaProducto entrada);\n}",
"@Override //插入通知\n\tpublic void insertPoInfo(PageData pd) throws Exception {\n\t\tdao.save(\"PoInfoMapper.insertPoInfo\", pd);\n\t}",
"public PostRecord(Integer id, Integer userId, String title, String body, String date) {\n super(PostTable.POST);\n\n set(0, id);\n set(1, userId);\n set(2, title);\n set(3, body);\n set(4, date);\n }",
"public interface BugsActivityDAO {\n\n @Insert(\"insert into firefox_bugs_activity \" +\n \"(`bugId`,`who`,`when`,`what`,`removed`,`added`,`crawledTime`) \" +\n \"values (#{bugId},#{who},#{when},#{what},#{removed},#{added},#{crawledTime})\")\n public int add(BugsActivity fireFoxBugsActivity);\n\n @Insert(\"insert into firefox_bugs_activity_html (`bugId`,`html`) \" +\"values (#{bugId},#{html})\")\n public int addHtml(BugsActivity fireFoxBugsActivity);\n}",
"@Override\n\tpublic List<Map<String, Object>> getNoticeLast() {\n\t\tStringBuffer querySQL = new StringBuffer(\n\t\t\t\t\"select ifnull(title,'') title,ifnull(static_page,'') static_page from notice where status = 1 order by crdate desc limit 4\");\n\t\t// StringBuffer querySQL2 = new StringBuffer(\n\t\t// \"select count(1) from notice where status = 1 order by crdate desc limit 1\");\n\t\t// if (jdbcTemplate.queryForInt(querySQL2.toString()) > 0) {\n\t\treturn jdbcTemplate.queryForList(querySQL.toString());\n\t\t// }\n\t\t// return null;\n\n\t}",
"@Override\n public Jurusan mapRow(ResultSet rs, int rowNum) throws SQLException {\n Jurusan jurusan=new Jurusan();\n jurusan.setId(rs.getInt(\"id\"));\n jurusan.setNama(rs.getString(\"nama\"));\n jurusan.setIdFakultas(rs.getInt(\"idFakultas\"));\n\n\n Fakultas fakultas=new Fakultas();\n fakultas.setId(rs.getInt(\"idFakultas\"));\n fakultas.setNama(rs.getString(\"namaFakultas\"));\n jurusan.setFakultas(fakultas);\n return jurusan;\n }",
"public interface BugPlatformMapper {\n\n\n @Select(\"SELECT js.pname as bugResolutionStatus, COUNT(js.pname) as bugNum FROM jiraissue ji INNER JOIN project pr ON pr.ID = ji.PROJECT LEFT JOIN issuestatus js ON ji.issuestatus = js.ID where pr.ID in (#{2}) and issuetype = 1 AND CREATED between #{0} and #{1} group by js.pname\")\n List<BugPlatformObject> getList(String startDate,String endDate,String project);\n}",
"@Override\n @Transactional\n public void onSubmit() {\n ValueMap values = getModelObject();\n\n // check if the honey pot is filled\n if (StringUtils.isNotBlank((String)values.get(\"comment\")))\n {\n error(\"Caught a spammer!!!\");\n return;\n }\n // Construct a copy of the edited comment\n Snip snip = new Snip();\n SnipMeta meta= new SnipMeta();\n\n logger.info(this.getDefaultModel().toString());\n\n logger.info(((List<String>) values.get(\"select_all\")).toString());\n\n meta.setTags((ArrayList<String>)values.get(\"select_all\"));\n meta.setDescription((String) values.get(\"meta\"));\n\n\n // Set date of comment to add\n snip.setDate(new Date());\n snip.setCode((String)values.get(\"code\"));\n snipList.add(0, snip); //TODO: eliminare lo show di tutti gli snipp da snipList magari con una FIFO\n meta.setSnip(snip);\n\n\n //--------- get session ad manager ------\n MyAuthenticatedWebSession app_session = MyAuthenticatedWebSession.getYourAppSession();\n logger.info(\"web session is: \"+app_session.toString());\n EntityManager em = app_session.getEntityManager();\n //---------------------------------------------------\n\n Users tmp_id = em.find(Users.class ,app_session.getAttribute(\"user\"));\n //snip.setUser(app_session.getCurrentUser()); --less network more backend\n snip.setUser(tmp_id);\n em.getTransaction().begin();\n em.setFlushMode(COMMIT);\n em.persist(snip);\n em.persist(meta);\n em.flush();\n em.getTransaction().commit();\n\n\n // Clear out the text component\n values.put(\"code\", \"\");\n }",
"@Override\n\tpublic String addOrUpdate(Map<String, Object> entityMap)\n\t\t\tthrows DataAccessException {\n\t\treturn null;\n\t}",
"@Insert({\n \"insert into kd_user_medal (id, userid, \",\n \"medalId, bindUserid, \",\n \"remark, createTime)\",\n \"values (#{id,jdbcType=BIGINT}, #{userid,jdbcType=BIGINT}, \",\n \"#{medalid,jdbcType=BIGINT}, #{binduserid,jdbcType=BIGINT}, \",\n \"#{remark,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP})\"\n })\n int insert(KDUserMedal record);",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<Post> getPostsOf(int postId , int userId){\n\t\t\n\t\tList<Post> postList = null;\n\t\tCriteria query = null;\n\t\ttry {\n\t\t\t\n\t\t\t query = getCurrentSession().createCriteria(Post.class);\n\t\t\t \n\t\t\t query.createAlias(\"this.orgperson\", \"author\") \n\t\t\t .createAlias(\"author.personid\",\"authorPerson\")\n\t\t\t \t .createAlias(\"this.postcategories\", \"postcategories\")\n\t\t\t \t .createAlias(\"postcategories.category\", \"category\")\n\t\t\t \t .createAlias(\"this.postskills\", \"postskills\")\n\t\t\t \t .createAlias(\"postskills.skill\", \"skill\")\n\t\t\t \t .createAlias(\"this.posttags\", \"posttags\")\n\t\t\t \t .createAlias(\"posttags.tag\", \"tag\");\n\t\t\t \n\t\t\t query.add(Restrictions.eq(\"this.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"author.orgpersonstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"authorPerson.personstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"postcategories.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"category.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"postskills.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"skill.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"posttags.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"tag.status\", \"A\")) \n\t\t\t \t .add(Restrictions.eq(\"this.id\", postId))\n\t\t\t \t .add(Restrictions.eq(\"author.orgpersonid\", userId));\n\t\t\t \n\t\t\t query.setProjection(Projections.projectionList()\n\t\t\t\t\t \n\t\t\t\t\t //post\n\t\t\t\t\t .add(Projections.property(\"this.id\").as(\"post_id\"))\n\t\t\t\t\t .add(Projections.property(\"this.title\").as(\"post_title\"))\n\t\t\t\t\t .add(Projections.property(\"this.content\").as(\"post_content\")) \n\t\t\t\t\t .add(Projections.property(\"this.bannerpath\").as(\"post_bannerpath\"))\n\t\t\t\t\t .add(Projections.property(\"this.commentable\").as(\"post_commentable\"))\n\t\t\t\t\t .add(Projections.property(\"this.date\").as(\"post_date\"))\n\t\t\t\t\t .add(Projections.property(\"this.media\").as(\"post_media\")) \n\t\t\t\t\t .add(Projections.property(\"this.status\").as(\"post_status\")) \n\t\t\t\t\t //authorperson\n\t\t\t\t\t .add(Projections.property(\"authorPerson.personid\").as(\"authorPersonPersonId\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.firstName\").as(\"authorPersonFirstName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.lastName\").as(\"authorPersonLastName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.middleName\").as(\"authorPersonmiddleName\")) \n\t\t\t\t\t //category \n\t\t\t\t\t .add(Projections.property(\"postcategories.id\").as(\"postCategoryId\"))\n\t\t\t\t\t .add(Projections.property(\"postcategories.status\").as(\"postCategoryStatus\"))\n\t\t\t\t\t .add(Projections.property(\"category.id\").as(\"categoryId\")) \n\t\t\t\t\t .add(Projections.property(\"category.name\").as(\"categoryName\")) \n\t\t\t\t\t //skill\n\t\t\t\t\t .add(Projections.property(\"postskills.id\").as(\"postSkillsId\"))\n\t\t\t\t\t .add(Projections.property(\"postskills.status\").as(\"postSkillsStatus\"))\n\t\t\t\t\t .add(Projections.property(\"skill.id\").as(\"skillId\")) \n\t\t\t\t\t .add(Projections.property(\"skill.name\").as(\"skillName\")) \n\t\t\t\t\t//tag\n\t\t\t\t\t .add(Projections.property(\"posttags.id\").as(\"postTagsId\"))\n\t\t\t\t\t .add(Projections.property(\"posttags.status\").as(\"postTagsStatus\"))\n\t\t\t\t\t .add(Projections.property(\"tag.id\").as(\"tagId\")) \n\t\t\t\t\t .add(Projections.property(\"tag.name\").as(\"tagName\")) \n\t\t\t\t\t \n\t\t\t\t\t ); \n\t\t\t \n\t\t\t postList = query.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP).list();\n\t\t\t \n\t\t\t \t \t \n\t\t} catch (Exception e) {\n\t\t\tpostServiceLogger.error(\"error in PostService for getPostsOf()\",e);\n\t\t}\n\t\treturn postList;\n\t}",
"public void savePost(VBeatPostModel post) {\n AppLocalDB.getInstance().db.postDao().insertAll(post);\n }",
"public interface GradeMapper {\n @Select(\"select * from grade\")\n public List<Grade> getByGradeNm();\n\n @Insert(\"insert into grade(grade_nm,teacher_id) values(#{gradeNm},#{teacherId})\")\n @Options(useGeneratedKeys=true,keyColumn=\"id\",keyProperty=\"id\")//设置id自增长\n public void save(Grade grade);\n}",
"public void insert() throws SQLException {\n Statement stmtIn = DatabaseConnector.getInstance().getStatementIn();\n\n int check = BusinessFacade.getInstance().checkIDinDB(this.productRelation.getID(),\n this.post.getID(), \"goods\", \"product_type_id\", \"post_id\");\n if (check == -1){\n stmtIn.executeUpdate(\"INSERT INTO ngaccount.goods (goods_id , product_type_id, post_id) \" +\n \"VALUES ('\" + this.goodID + \"', '\" + this.productRelation.getID() +\n \"', '\" + this.post.getID() + \"');\");\n }\n }"
]
| [
"0.5987747",
"0.57387984",
"0.570264",
"0.5665812",
"0.56388885",
"0.5496917",
"0.5480753",
"0.54475796",
"0.542511",
"0.541118",
"0.53788257",
"0.53745884",
"0.5357548",
"0.531441",
"0.5312663",
"0.52880096",
"0.5271237",
"0.5232208",
"0.5204402",
"0.52036",
"0.5190716",
"0.5164564",
"0.51584005",
"0.51461047",
"0.51395005",
"0.51333934",
"0.5131714",
"0.51095587",
"0.507775",
"0.50547725",
"0.50543284",
"0.50530183",
"0.50521994",
"0.50227416",
"0.5022606",
"0.4996463",
"0.49677274",
"0.49584132",
"0.4954131",
"0.49478868",
"0.4945241",
"0.493899",
"0.49376565",
"0.49356884",
"0.492559",
"0.49199983",
"0.49177086",
"0.4917517",
"0.4917175",
"0.49117333",
"0.49109006",
"0.48670542",
"0.48650646",
"0.48643374",
"0.48597986",
"0.48547024",
"0.48538104",
"0.484278",
"0.4831888",
"0.4831375",
"0.48160303",
"0.48101673",
"0.4808711",
"0.47961777",
"0.47906703",
"0.4780888",
"0.47775683",
"0.47775483",
"0.47690153",
"0.4758756",
"0.47543126",
"0.47521386",
"0.47520313",
"0.47480384",
"0.4748019",
"0.47464097",
"0.47458306",
"0.47433534",
"0.47422633",
"0.47421616",
"0.474097",
"0.47254854",
"0.47245285",
"0.47240764",
"0.47173744",
"0.47109172",
"0.47057825",
"0.47042465",
"0.47031894",
"0.47000033",
"0.46973717",
"0.4695783",
"0.46926624",
"0.46912488",
"0.46910432",
"0.46895215",
"0.46885744",
"0.4686088",
"0.46839145",
"0.4680186",
"0.46794552"
]
| 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table post_information | public boolean isDistinct() {
return distinct;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getPostSQL()\n {\n return _get_imfObject().getPostSQL();\n }",
"public PostRecord() {\n super(PostTable.POST);\n }",
"Forumpost selectByPrimaryKey(Integer postid);",
"PostSaveDTO queryDetailById(String postId);",
"public ArrayList<PostInfo> getPost() throws SQLException {\n ArrayList<PostInfo> postInfoList = new ArrayList<>();\n String sql = \"SELECT * FROM `post` WHERE `status` = 1 ORDER BY `post_time` DESC\";\n statement = connection.createStatement();\n resultSet = statement.executeQuery(sql);\n while (resultSet.next()) {\n postInfoList.add(new PostInfo(resultSet.getInt(\"post_id\"), resultSet.getInt(\"place_id\"), resultSet.getString(\"post_text\"),\n resultSet.getDate(\"post_time\"), resultSet.getInt(\"status\"), resultSet.getInt(\"user_id\"), resultSet.getInt(\"editor_id\")));\n }\n return postInfoList;\n }",
"@SuppressWarnings(\"deprecation\")\n\tpublic void writeTable()\n\t{\n\t\tIterator<WPPost> itr = readValues.iterator();\n\t\t\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\tWPPost post = itr.next();\n\t\t\tPreparedStatement prStm;\n\t\t\tint res = 0;\n\t\t\t\n\t\t\ttry \n\t\t\t{\n\t\t\t\tif(post.getPostDateGMT() == null)\n\t\t\t\t{\n\t\t\t\t\tpost.setPostDateGMT(new Timestamp(0));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(post.getPostModifiedGMT() == null)\n\t\t\t\t{\n\t\t\t\t\tpost.setPostModifiedGMT(new Timestamp(0));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tprStm = conn.prepareStatement(WRITE_STATEMENT);\n\t\t\t\tprStm.setInt(1, post.getId());\n\t\t\t\tprStm.setInt(2, post.getPostAuthor());\n\t\t\t\tprStm.setTimestamp(3, post.getPostDate());\n\t\t\t\tprStm.setTimestamp(4, post.getPostDateGMT());\n\t\t\t\tprStm.setString(5, post.getPostContent());\n\t\t\t\tprStm.setString(6, post.getPostTitle());\n\t\t\t\tprStm.setString(7, post.getPostExcerpt());\n\t\t\t\tprStm.setString(8, post.getPostStatus());\n\t\t\t\tprStm.setString(9, post.getCommentStatus());\n\t\t\t\tprStm.setString(10, post.getPingStatus());\n\t\t\t\tprStm.setString(11, post.getPostPassword());\n\t\t\t\tprStm.setString(12, post.getPostName());\n\t\t\t\tprStm.setString(13, post.getToPing());\n\t\t\t\tprStm.setString(14, post.getPinged());\n\t\t\t\tprStm.setTimestamp(15, post.getPostModified());\n\t\t\t\tprStm.setTimestamp(16, post.getPostModifiedGMT());\n\t\t\t\tprStm.setString(17, post.getPostContentFiltered());\n\t\t\t\tprStm.setInt(18, post.getPostParent());\n\t\t\t\tprStm.setString(19, post.getGuid());\n\t\t\t\tprStm.setInt(20, post.getMenuOrder());\n\t\t\t\tprStm.setString(21, post.getPostType());\n\t\t\t\tprStm.setString(22, post.getPostMimeType());\n\t\t\t\tprStm.setInt(23, post.getCommentCount());\n\t\t\t\t\n\t\t\t\tres = prStm.executeUpdate();\n\t\t\t\t\n\t\t\t\tif(res == 0)\n\t\t\t\t{\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new WriteWPPostException(post.toString());\n\t\t\t\t\t} \n\t\t\t\t\tcatch (WriteWPPostException e) \n\t\t\t\t\t{\n\t\t\t\t\t\t//e.printStackTrace(); // TODO Debug Mode! Delete This!\n\t\t\t\t\t\tthis.rowsWithErrors.add(post);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\t\t\tcatch (SQLException e1) \n\t\t\t{\n\t\t\t\t//e1.printStackTrace(); // TODO Debug Mode! Delete This!\n\t\t\t\tthis.rowsWithErrors.add(post);\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\tpublic List<Post> getAllPost() {\n\t\tString hql = \"from Post\";\r\n\t\treturn (List<Post>) getHibernateTemplate().find(hql);\r\n\t}",
"PmPost selectByPrimaryKey(String postId);",
"public void setPostId(Integer postId) {\n this.postId = postId;\n }",
"public Integer getPostId() {\n return postId;\n }",
"@Override\n\tpublic void getAll() {\n\t\tArrayList<Post> list = new ArrayList<Post>();\n\t\tlist = dao.selectAll();\n\t\t\n\t\tfor (Post p : list) {\n\t\t\tSystem.out.println(p.getPostId() + \".\" + p.getPostName() + \" 작성자:\" + p.getMemberId());\n\t\t}\n\t}",
"public List<detailsofpassengerpost> seedetailslist() throws IOException{\n//connect database\nString resource = \"orm/configuration.xml\";\nReader reader = Resources.getResourceAsReader(resource);\nSqlSessionFactory sessionFactory = new SqlSessionFactoryBuilder().build(reader);\nSqlSession session = sessionFactory.openSession();\n\ntry{\n\tSystem.out.println(\"postID in seeDetails=\"+postID);\npostlist=session.selectList(\"selectPassengerPostByID\",postID);\nSystem.out.println(\"postlist size in seeDetails=\"+postlist.size());\n\n//find passenger's name through his email address\nnumberofapplieddrivers=postlist.get(0).getNumberofapplieddrivers();\npassengeremail=postlist.get(0).getEmail();\npassengerlist=session.selectList(\"selectuserbyemail\", passengeremail);\n\npassengername=passengerlist.get(0).getName();\npassengersex=passengerlist.get(0).getSex();\npassengerdob=passengerlist.get(0).getDob();\n\ndd=new detailsofpassengerpost();\ndetaillist=new ArrayList<detailsofpassengerpost>();\n\ndd.setNeedseats(postlist.get(0).getNeedseats());\ndd.setExpectedcartype(postlist.get(0).getExpectedcartype());\ndd.setDeparture(postlist.get(0).getDeparture());\ndd.setDeparturedate(postlist.get(0).getDeparturedate());\ndd.setDestination(postlist.get(0).getDestination());\ndd.setDob(passengerdob);\ndd.setEmail(passengeremail);\ndd.setEstimatedleavingtime(postlist.get(0).getEstimatedleavingtime());\ndd.setExpectedcost(postlist.get(0).getExpectedcost());\ndd.setMemo(postlist.get(0).getMemo());\ndd.setName(passengername);\ndd.setPostID(postID);\ndd.setSex(passengersex);\ndd.setPhone(postlist.get(0).getPhone());\ndd.setNumberofapplieddrivers(numberofapplieddrivers);\ndetaillist.add(dd);\n\nreturn detaillist;\n\n}finally{\nsession.close();\n}\n}",
"public List<Post> all() throws DataAccessException{\n String sql = \"select posts.id, posts.user_id, users.name, posts.title, posts.content, posts.create_date from posts join users on posts.user_id=users.id\";\n List<Post> posts = this.jdbcTemplate.query(sql, mapper);\n return posts;\n }",
"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}",
"@Override\r\n\tpublic void addPost(Post post) {\n\t\tgetHibernateTemplate().save(post);\r\n\t}",
"@Override\n public HashMap<Integer,_DefaultMessage> loadPost() throws IOException, SQLException, ClassNotFoundException {\n return _DbConnectionManager.getHMPosts(this.dbConnection, this.getName());\n }",
"public String getPostTableName() {\r\n\t\treturn postTableName;\r\n\t}",
"public void setPostId(long postId);",
"public interface CommentMapper {\n\n @Insert(\"insert comment(productId,userId,text,createdAt) values(#{productId},#{userId},#{text},now())\" )\n @Options(useGeneratedKeys = true,keyProperty = \"id\")\n void insertComment(Comment comment);\n\n @Select(\"select * from comment where productId=#{productId}\")\n List<Comment> getCommentByProductId(int productId);\n\n @Delete(\"delete from comment where id = #{id}\")\n void deleteComment(int id);\n\n\n}",
"public interface Post {\n\n\tpublic Long getId();\n\n\tpublic void setId(Long id);\n\n\tpublic Date getDate();\n\n\tpublic void setDate(Date date);\n\n\tpublic String getMessage();\n\n\tpublic void setMessage(String message);\n\n}",
"@Override\r\n\t\tpublic DatabaseMetaData getMetaData() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"public void updatePost(PostInfo postInfo) throws SQLException {\n String sql = \"UPDATE `post` SET `place_id`=?,`post_text`=?,`post_time`=?,`status`=?,`user_id`=?,`editor_id`=? WHERE `post_id` = ?\";\n preparedStatement = connection.prepareStatement(sql);\n preparedStatement.setInt(1, postInfo.getPlace_id());\n preparedStatement.setString(2, postInfo.getPost_text());\n preparedStatement.setDate(3, postInfo.getPost_time());\n preparedStatement.setInt(4, postInfo.getStatus());\n preparedStatement.setInt(5, postInfo.getUser_id());\n preparedStatement.setInt(6, postInfo.getEditor_id());\n preparedStatement.setInt(7, postInfo.getPost_id());\n\n preparedStatement.executeUpdate();\n }",
"public int getPostId() {\r\n\t\treturn postId;\r\n\t}",
"public void deletePost(PostInfo postInfo) throws SQLException {\n String sql = \"UPDATE `post` SET `status`=0 WHERE `post_id` = ?\";\n preparedStatement = connection.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);\n preparedStatement.setInt(1, postInfo.getPost_id());\n\n preparedStatement.executeUpdate();\n }",
"@Override\n\tpublic Map<String, String> toSqlMap() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Collection<Tmly> getTmlyInfo() {\n\t\tString sql = \"select ID_,TITLE,CONTENT,state from tmly\";\n\t\tList<Tmly> list = this.jdbcTemplate.query(sql, new RowMapper<Tmly>() {\n\n\t\t\t@Override\n\t\t\tpublic Tmly mapRow(ResultSet result, int i) throws SQLException {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tTmly tmly = new Tmly();\n\t\t\t\ttmly.setId(result.getInt(\"id_\"));\n\t\t\t\ttmly.setTitle(result.getString(\"title\"));\n\t\t\t\ttmly.setContent(result.getString(\"content\"));\n\t\t\t\treturn tmly;\n\t\t\t}\n\n\t\t});\n\t\treturn list;\n\t}",
"public long getPostId() {\n return postId;\n }",
"public long getPostId();",
"public static ResultSet getPosts(){\n ResultSet result = null;\n try {\n conn = ConnectionProvider.getCon();\n pst = conn.prepareStatement(\"select * from normalposts\");\n result = pst.executeQuery();\n\n System.out.println(\"PostDAO: getting posts\");\n } catch(Exception e) {\n System.out.println(\"PostDAO: unsuccessful query\");\n System.out.println(e);\n }\n return result;\n }",
"@Mapper\npublic interface BlogDAO {\n @Insert(\"INSERT INTO blog(title,uniq,markdown,html, create_time,update_time) \" +\n \"VALUES(#{item.title},#{item.uniq},#{item.markdown},#{item.html},#{item.createTime}, #{item.updateTime})\")\n int insert(\n @Param(\"item\") Blog blog\n );\n\n @Select(\"SELECT id,uniq,title,markdown,html,\" +\n \" create_time as createTime,update_time as updateTime \" +\n \" FROM blog WHERE id = #{id}\")\n Blog getBlogById(@Param(\"id\") String id);\n\n @Insert(\"replace into blog(id,title,uniq,markdown,html, create_time,update_time) \" +\n \"VALUES(#{item.id},#{item.title},#{item.uniq},#{item.markdown},#{item.html},#{item.createTime}, #{item.updateTime})\")\n int update(@Param(\"item\")Blog blog);\n\n @Select(\"SELECT id,uniq,title,\" +\n \" create_time as createTime,update_time as updateTime \" +\n \" FROM blog order by id desc limit #{offset}, #{limit}\")\n List<Blog> getBlogList(@Param(\"offset\")long offset,\n @Param(\"limit\")long limit,\n @Param(\"sort\") String sort);\n}",
"@Test\n public void metaDataExample1() throws SQLException {\n Connection connection = DriverManager.getConnection(dbUrl, dbUsername, dbPassword);\n // 2. Create statement\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n // Run sql query and get the result in resultSet object\n String sqlQuery= \"Select * From departments\";\n //String sqlQuery= \"Select first_name, last_name, salary From employees\";\n ResultSet resultSet = statement.executeQuery(sqlQuery);\n\n // we use resultSet metadata to get information about the tables\n // get the resultSet object metadata\n ResultSetMetaData rsMetadata = resultSet.getMetaData();\n\n // List for keeping all rows as a map\n List<Map<String, Object>> queryData = new ArrayList<>();\n\n // while(resultSet.next()) helps to iterate through columns\n while (resultSet.next()) {\n // key(columns) will be string but value can be any type of data. That's why we choose <String, Object>\n Map<String, Object> row = new HashMap<>(); // creating empty Map\n // number of columns\n int colCount = rsMetadata.getColumnCount();\n // for loop helps to iterate through columns\n for (int i = 1; i <= colCount; i++) {\n row.put(rsMetadata.getColumnName(i), resultSet.getObject(i));\n }\n\n queryData.add(row); // adding a Map to the List of Maps\n }\n\n // Printing the rows\n for (Map<String, Object> row: queryData) {\n System.out.println(row.toString());\n\n }\n\n\n\n\n // close all connections\n resultSet.close();\n statement.close();\n connection.close();\n }",
"public String toSql() {\t\n int n;\t\n void a;\t\n StringBuilder a2 = new StringBuilder();\t\n Table table = MapperHelper.getTable(this.entity);\t\n a2.append(MapperHelper.getTableName((Table)a, this.entity) + \" \" + a.alias());\t\n JoinTable[] arrjoinTable = a.joinTable();\t\n int n2 = arrjoinTable.length;\t\n int n3 = n = 0;\t\n while (n3 < n2) {\t\n JoinTable a3 = arrjoinTable[n];\t\n Table a4 = MapperHelper.getTable(a3.entity());\t\n a2.append(new StringBuilder().insert(0, \" \").append(a3.type().value()).append(\" \").toString());\t\n a2.append(new StringBuilder().insert(0, MapperHelper.getTableName(a4, this.entity)).append(\" \").append(a3.alias()).toString());\t\n a2.append(new StringBuilder().insert(0, \" ON \").append(a3.on()).toString());\t\n n3 = ++n;\t\n }\t\n StringBuilder stringBuilder = a2;\t\n stringBuilder.append(MapperHelper.getSqlMapValue(this.entity, a.extFromKeys()));\t\n return stringBuilder.toString();\t\n }",
"List<PostInfo> getPostList();",
"TypedKeyValue<String, Integer> getDestinationInfo(String sql);",
"public void setPostId(int postId) {\r\n\t\tthis.postId = postId;\r\n\t}",
"public List<PostEntry> savePost(String username, int postid, String title, String body){\n Connection c = null;\n PreparedStatement ps = null; \n ResultSet rs = null;\n\n boolean ret = true;\n\n //check if postid exists.\n if(postid>0 && findPost(username, postid)==null){\n return null;\n }\n try {\n //Get connection\n c = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/CS144\", \"cs144\", \"\");\n int changed;\n if(postid>0){\n //UPDATE\n System.out.println(\"update post!\");\n ps = c.prepareStatement(\"UPDATE Posts SET title=?, body=?, modified=? WHERE username=? AND postid=?\");\n ps.setString(1, title);\n ps.setString(2, body);\n ps.setTimestamp(3, new Timestamp(System.currentTimeMillis())); //set modified to current time\n ps.setString(4, username);\n ps.setInt(5, postid);\n\n changed = ps.executeUpdate();\n }\n else {\n //get largest postid and add 1 to get newID\n\n System.out.println(\"new post!\");\n ps = c.prepareStatement(\"SELECT MAX(postid) FROM Posts WHERE username=?\");\n ps.setString(1, username);\n\n rs = ps.executeQuery();\n int newID = 1;\n if(rs.next()){\n newID = rs.getInt(1) + 1;\n }\n ps.close();\n\n ps = c.prepareStatement(\"INSERT INTO Posts (username, postid, title, body, modified, created) VALUES(?,?,?,?,?,?)\");\n ps.setString(1, username);\n ps.setInt(2, newID);\n ps.setString(3, title);\n ps.setString(4, body);\n ps.setTimestamp(5, new Timestamp(System.currentTimeMillis())); //set modified to current time\n ps.setTimestamp(6, new Timestamp(System.currentTimeMillis())); //set created to current time\n \n changed = ps.executeUpdate();\n }\n\n if(changed==0){\n ret = false;\n }\n\n } catch(SQLException e){\n //error handling\n System.out.println(\"SQLException caught.\");\n e.printStackTrace();\n } finally {\n //just need to close all\n try { rs.close(); } catch (Exception e) { /* ignored */ }\n try { ps.close(); } catch (Exception e) { /* ignored */ }\n try { c.close(); } catch (Exception e) { /* ignored */ }\n }\n\n //return list data\n if(ret)\n return findList(username);\n else\n return null;\n }",
"public long ashirPostCreating(AshirBlogPostingHelper post) {\n long result;\n\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(Col_2, post.getPost());\n values.put(Col_3, post.getImage());\n //inserting valuse into table columns\n result = db.insert(NAME_OF_TABLE, null, values);\n db.close();\n return result;\n\n }",
"public void setPostTableName(String postTableName) {\r\n\t\tthis.postTableName = postTableName;\r\n\t}",
"@Override\n\t\tprotected void postUpdate(EspStatusDTO t) throws SQLException {\n\t\t\t\n\t\t}",
"String getPostDeclareSql();",
"@Override\n public Entity configuracion(Entity e) throws SQLException {\n return null;\n }",
"public void setPostId(int postId) {\n\t\tthis.postId = postId;\n\t}",
"int getPostId();",
"void setPostId(int postId);",
"@Mapper\npublic interface QuestionDAO {\n String TABLE_NAME = \" question \";\n String INSERT_FIELDS = \" title, content, created_date, user_id, comment_count \";\n String SELECT_FIELDS = \" id, \" + INSERT_FIELDS;\n\n @Insert({\"insert into \", TABLE_NAME, \"(\", INSERT_FIELDS,\n \") values (#{title},#{content},#{createdDate},#{userId},#{commentCount})\"})\n int addQuestion(Question question);\n\n // 使用 xml 配置文件进行 数据库查询语句与程序接口的映射。\n // 对应的 QuestionDAO.xml 文件位于 resources 文件夹 -》com.mattLearn.dao 文件夹中。\n List<Question> selectLatestQuestions(@Param(\"userId\") int userId, @Param(\"offset\") int offset,\n @Param(\"limit\") int limit);\n\n @Select({\"select \", SELECT_FIELDS, \" from \", TABLE_NAME, \" where id=#{id}\"})\n Question SelectById(int id);\n\n @Update(\" update question set comment_count=#{commentCount} where id = #{id}\")\n int updateCommentCount(@Param(\"commentCount\") int commentCount,\n @Param(\"id\") int id);\n\n}",
"@Override\r\n\tpublic Post searchInfById(Post post2) {\n\t\tpostDao=new PostDaoImpl(TransactionManager.connection);\r\n\t\tResultSet resultSet=postDao.selectById(post2);\r\n\t\tPost post=new Post();\r\n\t\ttry {\r\n\t\t\tif(resultSet.next()) {\r\n\t\t\t\tpost.setPostId(resultSet.getInt(1));\r\n\t\t\t\tpost.setPostName(resultSet.getString(3));\r\n\t\t\t\tpost.setUserId(resultSet.getInt(2));\r\n\t\t\t\tpost.setPostProperty(resultSet.getInt(4));\r\n\t\t\t\tpost.setPostEnterNum(resultSet.getInt(5));\r\n\t\t\t\tpost.setPostTime(resultSet.getDate(6));\r\n\t\t\t\tpost.setPostScore(resultSet.getDouble(7));\r\n\t\t\t\tpost.setScoreCount(resultSet.getInt(8));\r\n\t\t\t\tpost.setLastComTime(resultSet.getDate(9));\r\n\t\t\t\tpost.setResId(resultSet.getInt(10));\r\n\t\t\t\tpost.setResPath(resultSet.getString(12));\r\n\t\t\t\tpost.setUserName(resultSet.getString(14));\r\n\t\t\t\tpost.setUserLevel(resultSet.getInt(16));\r\n\t\t\t\tpost.setUserStatus(resultSet.getInt(17));\r\n\t\t\t\tpost.setPropertyName(resultSet.getString(19));\r\n\t\t\t\tpost.setLocation(resultSet.getString(22));\r\n\t\t\t\tpost.setPhone(resultSet.getString(23));\r\n\t\t\t\tpost.setPostCode(resultSet.getInt(24));\r\n\t\t\t\tpost.setEmail(resultSet.getString(25));\r\n\t\t\t\tpost.setGender(resultSet.getString(26));\r\n\t\t\t\tpost.setHobby(resultSet.getString(27));\r\n\t\t\t\tpost.setMajor(resultSet.getString(28));\r\n\t\t\t\tpost.setScore(resultSet.getInt(29));\r\n\t\t\t\tpost.setNickName(resultSet.getString(30));\r\n\t\t\t\tpost.setUserRegion(resultSet.getString(31));\r\n\t\t\t\tpost.setUserPhoto(resultSet.getString(32));\r\n\t\t\t\tpost.setComCount(resultSet.getInt(39));\r\n\t\t\t\t\r\n\t\t\t\treturn post;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\treturn null;\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\treturn null;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n public ColumnInfo getColumnInfo() {\n return columnInfo;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<Post> getPostsOf(int postId){\n \t\tList<Post> postList = null;\n\t\tCriteria query = null;\n\t\ttry {\n\t\t\t\n\t\t\t query = getCurrentSession().createCriteria(Post.class);\n\t\t\t \n\t\t\t query.createAlias(\"this.orgperson\", \"author\") \n\t\t\t .createAlias(\"author.personid\",\"authorPerson\")\n\t\t\t \t .createAlias(\"this.postcategories\", \"postcategories\")\n\t\t\t \t .createAlias(\"postcategories.category\", \"category\")\n\t\t\t \t .createAlias(\"this.postskills\", \"postskills\")\n\t\t\t \t .createAlias(\"postskills.skill\", \"skill\")\n\t\t\t \t .createAlias(\"this.posttags\", \"posttags\")\n\t\t\t \t .createAlias(\"posttags.tag\", \"tag\");\n\t\t\t \n\t\t\t query.add(Restrictions.eq(\"this.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"author.orgpersonstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"authorPerson.personstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"postcategories.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"category.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"postskills.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"skill.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"posttags.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"tag.status\", \"A\")) \n\t\t\t \t .add(Restrictions.eq(\"this.id\", postId));\n\t\t\t \n\t\t\t query.setProjection(Projections.projectionList()\n\t\t\t\t\t \n\t\t\t\t\t //post\n\t\t\t\t\t .add(Projections.property(\"this.id\").as(\"post_id\"))\n\t\t\t\t\t .add(Projections.property(\"this.title\").as(\"post_title\"))\n\t\t\t\t\t .add(Projections.property(\"this.content\").as(\"post_content\")) \n\t\t\t\t\t .add(Projections.property(\"this.bannerpath\").as(\"post_bannerpath\"))\n\t\t\t\t\t .add(Projections.property(\"this.commentable\").as(\"post_commentable\"))\n\t\t\t\t\t .add(Projections.property(\"this.date\").as(\"post_date\"))\n\t\t\t\t\t .add(Projections.property(\"this.media\").as(\"post_media\")) \n\t\t\t\t\t .add(Projections.property(\"this.status\").as(\"post_status\")) \n\t\t\t\t\t //authorperson\n\t\t\t\t\t .add(Projections.property(\"authorPerson.personid\").as(\"authorPersonPersonId\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.firstName\").as(\"authorPersonFirstName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.lastName\").as(\"authorPersonLastName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.middleName\").as(\"authorPersonmiddleName\")) \n\t\t\t\t\t //category\n\t\t\t\t\t .add(Projections.property(\"category.id\").as(\"categoryId\")) \n\t\t\t\t\t .add(Projections.property(\"category.name\").as(\"categoryName\")) \n\t\t\t\t\t //skill\n\t\t\t\t\t .add(Projections.property(\"skill.id\").as(\"skillId\")) \n\t\t\t\t\t .add(Projections.property(\"skill.name\").as(\"skillName\")) \n\t\t\t\t\t//tag\n\t\t\t\t\t .add(Projections.property(\"tag.id\").as(\"tagId\")) \n\t\t\t\t\t .add(Projections.property(\"tag.name\").as(\"tagName\")) \n\t\t\t\t\t \n\t\t\t\t\t ); \n\t\t\t \n\t\t\t postList = query.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP).list(); \n\t\t\t \t \t \n\t\t} catch (Exception e) {\n\t\t\tpostServiceLogger.error(\"error in PostService for getPostsOf()\",e);\n\t\t} \n\t\treturn postList;\n\t}",
"public Integer getPostType() {\n return postType;\n }",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n response.setCharacterEncoding(\"UTF-8\");\n request.setCharacterEncoding(\"UTF-8\");\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"Ghosttales_PU\");\n EntityManager em = emf.createEntityManager();\n HttpSession session = request.getSession();\n \n \n //String file = request.getParameter(\"file\");\n \n \n String content = request.getParameter(\"content\");\n // String content = \"oiadjioajdoiajdiajsi\";\n System.out.println(\"---1---\");\n String title = request.getParameter(\"title\");\n String author = (String) session.getAttribute(\"userr\");\n UserInfo u = em.find(UserInfo.class, author);\n LocalDate today = LocalDate.now();\n \n System.out.println(u.getUsername());\n \n// if(content != null && title !=null) {\n\n // String sql2 = \"SELECT COUNT(p) FROM Post p\";\n String sql2 =\"SELECT p.postId FROM Post p\";\n Query q = em.createQuery(sql2);\n \n List <Post>ps =q.getResultList() ;\n \n \n \n// long countt = (long)q.getSingleResult();\n// int count = (int) countt+1;\n \n \n Post post = new Post(); \n int num = ps.size();\n if(num==0){\n int countt = num+1 ;\n int count = countt;\n post.setPostId(count);\n session.setAttribute(\"num\",count);\n }else{\n int countt = (int) q.getResultList().get(num-1);\n int count = countt+1;\n System.out.println(num);\n System.out.println(countt);\n System.out.println(count);\n post.setPostId(count);\n session.setAttribute(\"num\",count);\n }\n \n post.setTitle(title);\n post.setContent(content);\n post.setCreateTime(java.sql.Date.valueOf(today));\n post.setUpdateTime(null);\n post.setTotallike(0);\n post.setTotalcomment(0);\n post.setUserinfousername(u);\n System.out.println(\"-----2-----\");\n \n \n \n em.getTransaction().begin();\n em.persist(post);\n em.getTransaction().commit();\n \n \n \n \n \n session.setAttribute(\"show\", post);\n \n \n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"post\", post.getContent());\n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"title\", post.getTitle());\n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"author\", post.getUserinfousername().toString());\n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"day\", post.getCreateTime());\n \n \n\n request.getRequestDispatcher(\"/addimage.jsp\").forward(request, response);\n\n }",
"Achievements getPostDetails();",
"public CustomSql getCustomSqlInsert();",
"public int getDataid_postingBisnis() {\r\n return Dataid_postingBisnis;\r\n }",
"@Override\n\tpublic Post createPost(Post post) {\n\t\treturn postDao.createPost(post);\n\t}",
"int insert(PmPost record);",
"@Override\n\tpublic JDBCMetaData getMetaData() throws SQLException {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic void updatePost(Post post) {\n\t\tPost p = getPostById(post.getPost_id());\r\n\t\tp.setDepartment(post.getDepartment());\r\n\t\tp.setDescription(post.getDescription());\r\n\t\tp.setEmployeeSet(post.getEmployeeSet());\r\n\t\tp.setPost_id(post.getPost_id());\r\n\t\tp.setPost_name(post.getPost_name());\r\n\t\tp.setPost_wage(post.getPost_wage());\r\n\t\tgetHibernateTemplate().update(p);\r\n\t}",
"public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}",
"private void writeMetaData(ResultSet resultSet) throws SQLException {\n\t System.out.println(\"The columns in the table are: \");\r\n\t System.out.println(\"Table: \" + resultSet.getMetaData().getTableName(1));\r\n\t for (int i = 1; i<= resultSet.getMetaData().getColumnCount(); i++){\r\n\t System.out.println(\"Column \" +i + \" \"+ resultSet.getMetaData().getColumnName(i));\r\n\t }\r\n\t }",
"Integer getDomainTemplateColumn();",
"@SuppressWarnings(\"HardCodedStringLiteral\")\npublic interface MyPostsColumn {\n @DataType(INTEGER)\n @PrimaryKey\n String KEY_SQL_ID = \"sql_id\";\n\n @DataType(TEXT)\n @NotNull @Unique\n String KEY_ID = \"_id\";\n\n @DataType(TEXT)\n String KEY_AUTHOR = \"author\";\n\n @DataType(TEXT)\n @NotNull\n String KEY_SUBREDDIT_ID = \"subreddit_id\";\n\n @DataType(TEXT)\n @NotNull\n String KEY_SUBREDDIT = \"subreddit\";\n\n @DataType(INTEGER)\n String KEY_UPS = \"ups\";\n\n @DataType(TEXT)\n String KEY_TITLE = \"title\";\n\n @DataType(INTEGER)\n String KEY_COMMENTS_COUNT = \"comments_count\";\n\n @DataType(INTEGER)\n String KEY_CREATED_UTC = \"created_utc\";\n\n @DataType(INTEGER)\n String KEY_CREATED = \"created\";\n\n @DataType(TEXT)\n @NotNull\n String KEY_NAME = \"name\";\n\n @DataType(INTEGER)\n @NotNull\n String KEY_CLICKED = \"clicked\";\n\n @DataType(INTEGER)\n String KEY_LIKES = \"likes\"; //CAN BE NULL\n\n @DataType(TEXT)\n String KEY_DOMAIN = \"domain\";\n\n @DataType(INTEGER)\n String KEY_IS_SELF = \"is_self\";\n\n @DataType(INTEGER)\n @NotNull\n String KEY_OVER_18 = \"over_18\";\n\n @DataType(TEXT)\n String KEY_PERMALINK = \"permalink\";\n\n @DataType(TEXT)\n String KEY_POST_HINT = \"post_hint\";\n\n @DataType(INTEGER)\n String KEY_SCORE = \"score\";\n\n @DataType(TEXT)\n String KEY_THUMBNAIL = \"thumbnail\";\n\n @DataType(TEXT)\n String KEY_URL = \"url\";\n\n @DataType(INTEGER)\n String KEY_VISITED = \"visited\";\n\n @DataType(INTEGER)\n String KEY_LOCKED = \"locked\";\n\n @DataType(TEXT)\n String KEY_MEDIA_OEMBED_TYPE = \"media_oembed_type\";\n\n @DataType(TEXT)\n String KEY_BIG_IMAGE_URL = \"big_image_url\";\n\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_POST = \"type_post\";\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_SEARCH = \"type_search\";\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_WIDGET = \"type_widget\";\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_TEMP = \"type_temp\";\n\n\n\n}",
"@Override\n\tpublic void updateAllPostNowTipBySid(String Id, CodeInfo codeInfo) {\n\t\tQuery query = this.currentSession().createQuery(\"update com.wondersgroup.human.bo.pubinst.PtPost set tenureStatus = :nowPostSign where publicInstitution.id = :Id\");\n\t\tquery.setParameter(\"nowPostSign\", codeInfo);\n\t\tquery.setParameter(\"Id\",Id);\n\t\tquery.executeUpdate();\n\t\t\n\t}",
"public void queryPostTable(Context activityContext, String postTableName) {\n new GetCursorTablePost(activityContext).execute(postTableName);\n }",
"public interface IBasicPost {\n Long getId();\n String getTitle();\n String getDescription();\n long getCreatedDate();\n long getUpdatedDate();\n Integer getCityId();\n Long getUserId();\n Integer getUserLikeCount();\n Integer getUserCommentCount();\n String getUserFirstName();\n}",
"@RequestMapping(value = \"fetch-health-tips\", method = RequestMethod.POST)\n private List<HealthPost> fetchHealthTips() {\n SessionService.sessionBuilder(session -> {\n healthPostList = session.createQuery(\"from HealthPost order by id desc\", HealthPost.class).list();\n });\n return healthPostList;\n }",
"@Override\n public DatabaseMetaData getMetaData() throws SQLException\n {\n logger.debug(\n \" public DatabaseMetaData getMetaData() throws SQLException\");\n\n return new SnowflakeDatabaseMetaData(this);\n }",
"@Override\n\tpublic void getPost(Scanner sc) {\n\t\tPost p;\n\t\tgetAll();\n\t\tSystem.out.print(\"보고 싶은 리뷰의 번호를 입력해 주세요 >>\");\n\t\tp = dao.selectPost(sc.nextInt());\n\t\tSystem.out.println(p.getPostName());\n\t\tSystem.out.println(p.getContent());\n\t}",
"public interface BasePostPoMapper extends feihua.jdbc.api.dao.CrudDao<BasePostPo, String> {\n\n java.util.List<BasePostPo> searchBasePosts(SearchPostsConditionDsfDto dto);\n}",
"public List<MediumBean> populatemediam(String sql ){\n\t\t\t\tList<MediumBean> retlist = jdbcTemplate.query(sql,ParameterizedBeanPropertyRowMapper.newInstance(MediumBean.class));\n\t\t\t\t\treturn retlist;\n\t\t }",
"@Query(\"SELECT * FROM \" + TABLE_NAME)\n List<Note> getNotes();",
"public boolean addPost(Post post) throws SQLException\n {\n boolean isAdded=false;\n try\n {\n database = dbH.getReadableDatabase();\n dbH.openDataBase();\n ContentValues values = new ContentValues();\n values.put(\"postBody\", post.getPostBody());\n values.put(\"postedBy\", post.getPostedBy());\n values.put(\"postedAt\", post.getPostedAt());\n values.put(\"postID\", post.getPostID());\n values.put(\"image\" , post.getBitmap());\n\n isAdded=database.insert(\"Post\", null, values)>0;\n\n }\n catch(SQLException e)\n {\n e.printStackTrace();\n }\n finally{\n if(database!=null && database.isOpen())\n dbH.close();\n }\n return isAdded;}",
"@Override\r\n\tprotected Entity getEntityByFields() throws SQLException {\n\t\t\r\n\t\tint id = rs.getInt(\"id\");\r\n\t\tint productId = rs.getInt(\"id_product\");\r\n\t\tString productName = super.getString(\"productName\");\t// From INNER JOIN\r\n\t\tString productUnit = super.getString(\"productUnit\");\t// From INNER JOIN\r\n\t\tfloat quantity = rs.getFloat(\"quantity\");\r\n\t\tfloat price = rs.getFloat(\"price\");\r\n\t\tfloat summa = rs.getFloat(\"summa\");\r\n\t\t\r\n\t\treturn new DocInvoiceItem(id, productId, productName, productUnit, quantity, price, summa);\r\n\t}",
"public PostInformationExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public String getGeneratedSql() {\n/* 142 */ return this.sql;\n/* */ }",
"@Override\r\n\tpublic BaseBean insertSQL(String sql, Connection con) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic void insertIPODetail(IPODetail ipo) throws SQLException {\n\t\t\n\t}",
"@Override\n\tpublic Map<String, String[]> loadColumnMetas(String databaseName) throws SQLException {\n\t\tString sql=\"select utc.*,UCC.comments from user_tab_columns utc\\n\" + \n\t\t\t\t\"left join user_col_comments ucc on UCC.table_name=UTC.table_name and UCC.column_name=UTC.column_name\";\n\t\tMap<String, String[]> ret=new HashMap<>();\n\t\t try(PreparedStatement preparedStatement= connection.prepareStatement(sql);\n\t \t\tResultSet resultSet=preparedStatement.executeQuery();){\n\t\t\twhile(resultSet.next()) {\n\t\t\t\tString tableName=resultSet.getString(\"TABLE_NAME\")\n\t\t\t\t\t\t,columnName=resultSet.getString(\"COLUMN_NAME\")\n\t\t\t\t\t\t,dataLength=resultSet.getString(\"DATA_LENGTH\")\n\t\t ,nullable=resultSet.getString(\"NULLABLE\")\n\t\t ,comments=resultSet.getString(\"COMMENTS\")\n\t\t\t\t\t\t;\n\t\t\t\tString key=tableName+\":\"+columnName;\n\t\t\t\tret.put(key, new String[] {dataLength,nullable,comments});\n\t\t\t\t\n\t\t\t}\n\t }\n\t\t\n\t\treturn ret;\n\t}",
"@Override\r\n\tpublic List<Post> getPostByName(String name) {\n\t\tString hql = \"from Post p where p.post_name =?\";\r\n\t\treturn (List<Post>) getHibernateTemplate().find(hql, name);\r\n\t}",
"void processMetaData(ResultSet rs) throws SQLException;",
"@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }",
"@Dao\npublic interface PostDao {\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n void insertPost(iPost iPosts);\n\n @Update\n void updatePost(iPost iPost);\n\n @Delete\n void deletePost(iPost iPost);\n\n @Query(\"SELECT * FROM iPost\")\n List<iPost> getAllPosts();\n\n @Query(\"SELECT * FROM iPost WHERE idThread=:threadId\")\n List<iPost> findPostsByThread(final int threadId);\n\n @Transaction\n @Query(\"SELECT * FROM iPost WHERE idThread=:threadId\")\n Single<List<PostsHelper>> getPostsFromThread(String threadId);\n}",
"protected String getSqlTable() {\n\t\treturn \"Project\";\n\t}",
"public void formDatabaseTable() {\n }",
"public CustomSql getCustomSqlUpdate();",
"void savePost(Post post);",
"@Override\n\tprotected String getCreateSql() {\n\t\treturn null;\n\t}",
"public interface AlmacenMapper {\n @Select(value = \"select tipo,descripcion from tipoproducto\")\n @Results(value = {\n @Result(javaType = Producto.class),\n @Result(property = \"tipo\",column = \"tipo\"),\n @Result(property = \"descripcion\",column = \"descripcion\"),\n })\n List<Producto> listarTipoProducto();\n\n @Insert(value = \"INSERT \" +\n \"INTO producto \" +\n \" ( \" +\n \" codigo, \" +\n \" nombre, \" +\n \" tipo, \" +\n \" porc_precio, \" +\n \" uni_medida, \" +\n \" cantidad \" +\n \" ) \" +\n \" VALUES \" +\n \" ( \" +\n \" producto_seq.nextval, \" +\n \" #{produ.nombre}, \" +\n \" #{produ.tipo}, \" +\n \" #{produ.porc_precio}, \" +\n \" #{produ.uni_medida}, \" +\n \" #{produ.cantidad} \" +\n \" )\")\n void GuardarProducto(@Param(\"produ\") Producto producto);\n\n @Select(value = \"SELECT codigo, \" +\n \" nombre, \" +\n \" p.tipo, \" +\n \" tp.descripcion, \" +\n \" porc_precio, \" +\n \" uni_medida, \" +\n \" cantidad \" +\n \"FROM producto p \" +\n \"INNER JOIN tipoproducto tp \" +\n \"ON(p.tipo=tp.tipo)\")\n @Results(value = {\n @Result(javaType = Producto.class),\n @Result(property = \"codigo\",column = \"codigo\"),\n @Result(property = \"nombre\",column = \"nombre\"),\n @Result(property = \"tipo\",column = \"tipo\"),\n @Result(property = \"descripcion\",column = \"descripcion\"),\n @Result(property = \"porc_precio\",column = \"porc_precio\"),\n @Result(property = \"uni_medida\",column = \"uni_medida\"),\n @Result(property = \"cantidad\",column = \"cantidad\"),\n })\n List<Producto> listarProductos();\n\n @Update(value =\"UPDATE producto \" +\n \"SET nombre =#{produ.nombre}, \" +\n \" porc_precio=#{produ.porc_precio}, \" +\n \" tipo= \" +\n \" #{produ.tipo} \" +\n \"WHERE codigo=#{produ.codigo}\" )\n void ActualizarProducto(@Param(\"produ\") Producto producto);\n\n @Delete(value=\"DELETE FROM PRODUCTO WHERE codigo=#{id}\")\n void EliminarProducto(@Param(\"id\") Integer id);\n\n @Select(value = \"SELECT codigo, \" +\n \" nombre \" +\n \"FROM producto p where tipo=#{id} \")\n @Results(value = {\n @Result(javaType = Producto.class),\n @Result(property = \"codigo\",column = \"codigo\"),\n @Result(property = \"nombre\",column = \"nombre\"),\n })\n List<Producto> ListarProductosxCategoria(@Param(\"id\") Integer id);\n\n @Insert(value = \"INSERT \" +\n \"INTO entrada_productos \" +\n \" ( \" +\n \" n_entrada, \" +\n \" fecha, \" +\n \" costo_total \" +\n \" ) \" +\n \" VALUES \" +\n \" ( \" +\n \" entrada_seq.nextval , \" +\n \" sysdate, \" +\n \" #{entrada.costo_total} \" +\n \" )\")\n void insertEntradaProducto(@Param(\"entrada\") EntradaProducto entrada);\n\n @Insert(value = \"INSERT \" +\n \"INTO detalle_entrada_productos \" +\n \" ( \" +\n \" N_ENTRADA, \" +\n \" COD_PRODUCTO, \" +\n \" COD_PROVEEDOR, \" +\n \" CANTIDAD, \" +\n \" PRECIO_COMPRA, \" +\n \" COSTO_TOTAL_PRODUCTO \" +\n \" ) \" +\n \" VALUES \" +\n \" ( \" +\n \" (select max(n_entrada) from entrada_productos), \" +\n \" #{entrada.cod_producto}, \" +\n \" #{entrada.cod_proveedor}, \" +\n \" #{entrada.cantidad}, \" +\n \" #{entrada.precio_compra}, \" +\n \" #{entrada.costo_total_producto} \" +\n \" )\")\n void inserDetalleEntradaProductos(@Param(\"entrada\") EntradaProducto entrada);\n\n @Update(value =\"UPDATE producto \" +\n \"SET cantidad=(select cantidad+#{entrada.cantidad} from producto where codigo=#{entrada.cod_producto}) \"+\n \"WHERE codigo=#{entrada.cod_producto}\" )\n void updateStockProducto(@Param(\"entrada\")EntradaProducto entrada);\n}",
"private static void showsSqlSelectOnNormalEntityBean() {\n\n\t\tQuery<Bug> query = Ebean.createQuery(Bug.class, \"simple\");\n\t\tquery.where().eq(\"status.code\", \"ACTIVE\");\n\n\t\tList<Bug> list = query.findList();\n\n\t\tSystem.out.println(list);\n\t\t\n\t\tfor (Bug bug : list) {\n\t\t\tString body = bug.getBody();\n\t\t\tSystem.out.println(body);\n\t\t}\n\n\t}",
"@Override //插入通知\n\tpublic void insertPoInfo(PageData pd) throws Exception {\n\t\tdao.save(\"PoInfoMapper.insertPoInfo\", pd);\n\t}",
"public interface BugsActivityDAO {\n\n @Insert(\"insert into firefox_bugs_activity \" +\n \"(`bugId`,`who`,`when`,`what`,`removed`,`added`,`crawledTime`) \" +\n \"values (#{bugId},#{who},#{when},#{what},#{removed},#{added},#{crawledTime})\")\n public int add(BugsActivity fireFoxBugsActivity);\n\n @Insert(\"insert into firefox_bugs_activity_html (`bugId`,`html`) \" +\"values (#{bugId},#{html})\")\n public int addHtml(BugsActivity fireFoxBugsActivity);\n}",
"@Override\n\tpublic List<Map<String, Object>> getNoticeLast() {\n\t\tStringBuffer querySQL = new StringBuffer(\n\t\t\t\t\"select ifnull(title,'') title,ifnull(static_page,'') static_page from notice where status = 1 order by crdate desc limit 4\");\n\t\t// StringBuffer querySQL2 = new StringBuffer(\n\t\t// \"select count(1) from notice where status = 1 order by crdate desc limit 1\");\n\t\t// if (jdbcTemplate.queryForInt(querySQL2.toString()) > 0) {\n\t\treturn jdbcTemplate.queryForList(querySQL.toString());\n\t\t// }\n\t\t// return null;\n\n\t}",
"public PostRecord(Integer id, Integer userId, String title, String body, String date) {\n super(PostTable.POST);\n\n set(0, id);\n set(1, userId);\n set(2, title);\n set(3, body);\n set(4, date);\n }",
"@Override\n public Jurusan mapRow(ResultSet rs, int rowNum) throws SQLException {\n Jurusan jurusan=new Jurusan();\n jurusan.setId(rs.getInt(\"id\"));\n jurusan.setNama(rs.getString(\"nama\"));\n jurusan.setIdFakultas(rs.getInt(\"idFakultas\"));\n\n\n Fakultas fakultas=new Fakultas();\n fakultas.setId(rs.getInt(\"idFakultas\"));\n fakultas.setNama(rs.getString(\"namaFakultas\"));\n jurusan.setFakultas(fakultas);\n return jurusan;\n }",
"public interface BugPlatformMapper {\n\n\n @Select(\"SELECT js.pname as bugResolutionStatus, COUNT(js.pname) as bugNum FROM jiraissue ji INNER JOIN project pr ON pr.ID = ji.PROJECT LEFT JOIN issuestatus js ON ji.issuestatus = js.ID where pr.ID in (#{2}) and issuetype = 1 AND CREATED between #{0} and #{1} group by js.pname\")\n List<BugPlatformObject> getList(String startDate,String endDate,String project);\n}",
"@Override\n @Transactional\n public void onSubmit() {\n ValueMap values = getModelObject();\n\n // check if the honey pot is filled\n if (StringUtils.isNotBlank((String)values.get(\"comment\")))\n {\n error(\"Caught a spammer!!!\");\n return;\n }\n // Construct a copy of the edited comment\n Snip snip = new Snip();\n SnipMeta meta= new SnipMeta();\n\n logger.info(this.getDefaultModel().toString());\n\n logger.info(((List<String>) values.get(\"select_all\")).toString());\n\n meta.setTags((ArrayList<String>)values.get(\"select_all\"));\n meta.setDescription((String) values.get(\"meta\"));\n\n\n // Set date of comment to add\n snip.setDate(new Date());\n snip.setCode((String)values.get(\"code\"));\n snipList.add(0, snip); //TODO: eliminare lo show di tutti gli snipp da snipList magari con una FIFO\n meta.setSnip(snip);\n\n\n //--------- get session ad manager ------\n MyAuthenticatedWebSession app_session = MyAuthenticatedWebSession.getYourAppSession();\n logger.info(\"web session is: \"+app_session.toString());\n EntityManager em = app_session.getEntityManager();\n //---------------------------------------------------\n\n Users tmp_id = em.find(Users.class ,app_session.getAttribute(\"user\"));\n //snip.setUser(app_session.getCurrentUser()); --less network more backend\n snip.setUser(tmp_id);\n em.getTransaction().begin();\n em.setFlushMode(COMMIT);\n em.persist(snip);\n em.persist(meta);\n em.flush();\n em.getTransaction().commit();\n\n\n // Clear out the text component\n values.put(\"code\", \"\");\n }",
"@Override\n\tpublic String addOrUpdate(Map<String, Object> entityMap)\n\t\t\tthrows DataAccessException {\n\t\treturn null;\n\t}",
"@Insert({\n \"insert into kd_user_medal (id, userid, \",\n \"medalId, bindUserid, \",\n \"remark, createTime)\",\n \"values (#{id,jdbcType=BIGINT}, #{userid,jdbcType=BIGINT}, \",\n \"#{medalid,jdbcType=BIGINT}, #{binduserid,jdbcType=BIGINT}, \",\n \"#{remark,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP})\"\n })\n int insert(KDUserMedal record);",
"public interface GradeMapper {\n @Select(\"select * from grade\")\n public List<Grade> getByGradeNm();\n\n @Insert(\"insert into grade(grade_nm,teacher_id) values(#{gradeNm},#{teacherId})\")\n @Options(useGeneratedKeys=true,keyColumn=\"id\",keyProperty=\"id\")//设置id自增长\n public void save(Grade grade);\n}",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<Post> getPostsOf(int postId , int userId){\n\t\t\n\t\tList<Post> postList = null;\n\t\tCriteria query = null;\n\t\ttry {\n\t\t\t\n\t\t\t query = getCurrentSession().createCriteria(Post.class);\n\t\t\t \n\t\t\t query.createAlias(\"this.orgperson\", \"author\") \n\t\t\t .createAlias(\"author.personid\",\"authorPerson\")\n\t\t\t \t .createAlias(\"this.postcategories\", \"postcategories\")\n\t\t\t \t .createAlias(\"postcategories.category\", \"category\")\n\t\t\t \t .createAlias(\"this.postskills\", \"postskills\")\n\t\t\t \t .createAlias(\"postskills.skill\", \"skill\")\n\t\t\t \t .createAlias(\"this.posttags\", \"posttags\")\n\t\t\t \t .createAlias(\"posttags.tag\", \"tag\");\n\t\t\t \n\t\t\t query.add(Restrictions.eq(\"this.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"author.orgpersonstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"authorPerson.personstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"postcategories.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"category.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"postskills.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"skill.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"posttags.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"tag.status\", \"A\")) \n\t\t\t \t .add(Restrictions.eq(\"this.id\", postId))\n\t\t\t \t .add(Restrictions.eq(\"author.orgpersonid\", userId));\n\t\t\t \n\t\t\t query.setProjection(Projections.projectionList()\n\t\t\t\t\t \n\t\t\t\t\t //post\n\t\t\t\t\t .add(Projections.property(\"this.id\").as(\"post_id\"))\n\t\t\t\t\t .add(Projections.property(\"this.title\").as(\"post_title\"))\n\t\t\t\t\t .add(Projections.property(\"this.content\").as(\"post_content\")) \n\t\t\t\t\t .add(Projections.property(\"this.bannerpath\").as(\"post_bannerpath\"))\n\t\t\t\t\t .add(Projections.property(\"this.commentable\").as(\"post_commentable\"))\n\t\t\t\t\t .add(Projections.property(\"this.date\").as(\"post_date\"))\n\t\t\t\t\t .add(Projections.property(\"this.media\").as(\"post_media\")) \n\t\t\t\t\t .add(Projections.property(\"this.status\").as(\"post_status\")) \n\t\t\t\t\t //authorperson\n\t\t\t\t\t .add(Projections.property(\"authorPerson.personid\").as(\"authorPersonPersonId\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.firstName\").as(\"authorPersonFirstName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.lastName\").as(\"authorPersonLastName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.middleName\").as(\"authorPersonmiddleName\")) \n\t\t\t\t\t //category \n\t\t\t\t\t .add(Projections.property(\"postcategories.id\").as(\"postCategoryId\"))\n\t\t\t\t\t .add(Projections.property(\"postcategories.status\").as(\"postCategoryStatus\"))\n\t\t\t\t\t .add(Projections.property(\"category.id\").as(\"categoryId\")) \n\t\t\t\t\t .add(Projections.property(\"category.name\").as(\"categoryName\")) \n\t\t\t\t\t //skill\n\t\t\t\t\t .add(Projections.property(\"postskills.id\").as(\"postSkillsId\"))\n\t\t\t\t\t .add(Projections.property(\"postskills.status\").as(\"postSkillsStatus\"))\n\t\t\t\t\t .add(Projections.property(\"skill.id\").as(\"skillId\")) \n\t\t\t\t\t .add(Projections.property(\"skill.name\").as(\"skillName\")) \n\t\t\t\t\t//tag\n\t\t\t\t\t .add(Projections.property(\"posttags.id\").as(\"postTagsId\"))\n\t\t\t\t\t .add(Projections.property(\"posttags.status\").as(\"postTagsStatus\"))\n\t\t\t\t\t .add(Projections.property(\"tag.id\").as(\"tagId\")) \n\t\t\t\t\t .add(Projections.property(\"tag.name\").as(\"tagName\")) \n\t\t\t\t\t \n\t\t\t\t\t ); \n\t\t\t \n\t\t\t postList = query.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP).list();\n\t\t\t \n\t\t\t \t \t \n\t\t} catch (Exception e) {\n\t\t\tpostServiceLogger.error(\"error in PostService for getPostsOf()\",e);\n\t\t}\n\t\treturn postList;\n\t}",
"public void insert() throws SQLException {\n Statement stmtIn = DatabaseConnector.getInstance().getStatementIn();\n\n int check = BusinessFacade.getInstance().checkIDinDB(this.productRelation.getID(),\n this.post.getID(), \"goods\", \"product_type_id\", \"post_id\");\n if (check == -1){\n stmtIn.executeUpdate(\"INSERT INTO ngaccount.goods (goods_id , product_type_id, post_id) \" +\n \"VALUES ('\" + this.goodID + \"', '\" + this.productRelation.getID() +\n \"', '\" + this.post.getID() + \"');\");\n }\n }",
"public void savePost(VBeatPostModel post) {\n AppLocalDB.getInstance().db.postDao().insertAll(post);\n }"
]
| [
"0.5986511",
"0.57343584",
"0.5698853",
"0.56634164",
"0.56359017",
"0.5495471",
"0.54766834",
"0.5443607",
"0.54186773",
"0.540675",
"0.5376697",
"0.53740305",
"0.5356344",
"0.5313168",
"0.5307734",
"0.52856094",
"0.5266923",
"0.5225843",
"0.5206651",
"0.51996106",
"0.51923144",
"0.51611745",
"0.51532006",
"0.51422745",
"0.513571",
"0.51353717",
"0.5134549",
"0.5105684",
"0.5074469",
"0.5057113",
"0.5056853",
"0.5055585",
"0.5049771",
"0.502594",
"0.50159794",
"0.499411",
"0.49642175",
"0.49531126",
"0.49521723",
"0.4947493",
"0.49395558",
"0.49384743",
"0.49324217",
"0.4932038",
"0.4923745",
"0.4923715",
"0.49205098",
"0.49137557",
"0.49134496",
"0.49100736",
"0.4908896",
"0.48664138",
"0.48659784",
"0.48588654",
"0.48575795",
"0.4856264",
"0.4849936",
"0.48469815",
"0.48342496",
"0.48333818",
"0.4814589",
"0.4807359",
"0.48047185",
"0.47946662",
"0.4789952",
"0.4779272",
"0.4777647",
"0.47775498",
"0.47705945",
"0.47551864",
"0.47544068",
"0.4752167",
"0.47501215",
"0.47486997",
"0.47481894",
"0.47462088",
"0.47452283",
"0.4744978",
"0.47447786",
"0.47446957",
"0.47380137",
"0.47270015",
"0.4726089",
"0.47204205",
"0.47192907",
"0.47117898",
"0.4707037",
"0.47054353",
"0.47028366",
"0.4699353",
"0.46976545",
"0.46958038",
"0.46956462",
"0.469355",
"0.46908292",
"0.4689735",
"0.46892476",
"0.46826327",
"0.46822074",
"0.4677628",
"0.46771917"
]
| 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table post_information | public List<Criteria> getOredCriteria() {
return oredCriteria;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getPostSQL()\n {\n return _get_imfObject().getPostSQL();\n }",
"public PostRecord() {\n super(PostTable.POST);\n }",
"Forumpost selectByPrimaryKey(Integer postid);",
"PostSaveDTO queryDetailById(String postId);",
"public ArrayList<PostInfo> getPost() throws SQLException {\n ArrayList<PostInfo> postInfoList = new ArrayList<>();\n String sql = \"SELECT * FROM `post` WHERE `status` = 1 ORDER BY `post_time` DESC\";\n statement = connection.createStatement();\n resultSet = statement.executeQuery(sql);\n while (resultSet.next()) {\n postInfoList.add(new PostInfo(resultSet.getInt(\"post_id\"), resultSet.getInt(\"place_id\"), resultSet.getString(\"post_text\"),\n resultSet.getDate(\"post_time\"), resultSet.getInt(\"status\"), resultSet.getInt(\"user_id\"), resultSet.getInt(\"editor_id\")));\n }\n return postInfoList;\n }",
"@SuppressWarnings(\"deprecation\")\n\tpublic void writeTable()\n\t{\n\t\tIterator<WPPost> itr = readValues.iterator();\n\t\t\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\tWPPost post = itr.next();\n\t\t\tPreparedStatement prStm;\n\t\t\tint res = 0;\n\t\t\t\n\t\t\ttry \n\t\t\t{\n\t\t\t\tif(post.getPostDateGMT() == null)\n\t\t\t\t{\n\t\t\t\t\tpost.setPostDateGMT(new Timestamp(0));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(post.getPostModifiedGMT() == null)\n\t\t\t\t{\n\t\t\t\t\tpost.setPostModifiedGMT(new Timestamp(0));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tprStm = conn.prepareStatement(WRITE_STATEMENT);\n\t\t\t\tprStm.setInt(1, post.getId());\n\t\t\t\tprStm.setInt(2, post.getPostAuthor());\n\t\t\t\tprStm.setTimestamp(3, post.getPostDate());\n\t\t\t\tprStm.setTimestamp(4, post.getPostDateGMT());\n\t\t\t\tprStm.setString(5, post.getPostContent());\n\t\t\t\tprStm.setString(6, post.getPostTitle());\n\t\t\t\tprStm.setString(7, post.getPostExcerpt());\n\t\t\t\tprStm.setString(8, post.getPostStatus());\n\t\t\t\tprStm.setString(9, post.getCommentStatus());\n\t\t\t\tprStm.setString(10, post.getPingStatus());\n\t\t\t\tprStm.setString(11, post.getPostPassword());\n\t\t\t\tprStm.setString(12, post.getPostName());\n\t\t\t\tprStm.setString(13, post.getToPing());\n\t\t\t\tprStm.setString(14, post.getPinged());\n\t\t\t\tprStm.setTimestamp(15, post.getPostModified());\n\t\t\t\tprStm.setTimestamp(16, post.getPostModifiedGMT());\n\t\t\t\tprStm.setString(17, post.getPostContentFiltered());\n\t\t\t\tprStm.setInt(18, post.getPostParent());\n\t\t\t\tprStm.setString(19, post.getGuid());\n\t\t\t\tprStm.setInt(20, post.getMenuOrder());\n\t\t\t\tprStm.setString(21, post.getPostType());\n\t\t\t\tprStm.setString(22, post.getPostMimeType());\n\t\t\t\tprStm.setInt(23, post.getCommentCount());\n\t\t\t\t\n\t\t\t\tres = prStm.executeUpdate();\n\t\t\t\t\n\t\t\t\tif(res == 0)\n\t\t\t\t{\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new WriteWPPostException(post.toString());\n\t\t\t\t\t} \n\t\t\t\t\tcatch (WriteWPPostException e) \n\t\t\t\t\t{\n\t\t\t\t\t\t//e.printStackTrace(); // TODO Debug Mode! Delete This!\n\t\t\t\t\t\tthis.rowsWithErrors.add(post);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\t\t\tcatch (SQLException e1) \n\t\t\t{\n\t\t\t\t//e1.printStackTrace(); // TODO Debug Mode! Delete This!\n\t\t\t\tthis.rowsWithErrors.add(post);\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\tpublic List<Post> getAllPost() {\n\t\tString hql = \"from Post\";\r\n\t\treturn (List<Post>) getHibernateTemplate().find(hql);\r\n\t}",
"PmPost selectByPrimaryKey(String postId);",
"public void setPostId(Integer postId) {\n this.postId = postId;\n }",
"public Integer getPostId() {\n return postId;\n }",
"@Override\n\tpublic void getAll() {\n\t\tArrayList<Post> list = new ArrayList<Post>();\n\t\tlist = dao.selectAll();\n\t\t\n\t\tfor (Post p : list) {\n\t\t\tSystem.out.println(p.getPostId() + \".\" + p.getPostName() + \" 작성자:\" + p.getMemberId());\n\t\t}\n\t}",
"public List<detailsofpassengerpost> seedetailslist() throws IOException{\n//connect database\nString resource = \"orm/configuration.xml\";\nReader reader = Resources.getResourceAsReader(resource);\nSqlSessionFactory sessionFactory = new SqlSessionFactoryBuilder().build(reader);\nSqlSession session = sessionFactory.openSession();\n\ntry{\n\tSystem.out.println(\"postID in seeDetails=\"+postID);\npostlist=session.selectList(\"selectPassengerPostByID\",postID);\nSystem.out.println(\"postlist size in seeDetails=\"+postlist.size());\n\n//find passenger's name through his email address\nnumberofapplieddrivers=postlist.get(0).getNumberofapplieddrivers();\npassengeremail=postlist.get(0).getEmail();\npassengerlist=session.selectList(\"selectuserbyemail\", passengeremail);\n\npassengername=passengerlist.get(0).getName();\npassengersex=passengerlist.get(0).getSex();\npassengerdob=passengerlist.get(0).getDob();\n\ndd=new detailsofpassengerpost();\ndetaillist=new ArrayList<detailsofpassengerpost>();\n\ndd.setNeedseats(postlist.get(0).getNeedseats());\ndd.setExpectedcartype(postlist.get(0).getExpectedcartype());\ndd.setDeparture(postlist.get(0).getDeparture());\ndd.setDeparturedate(postlist.get(0).getDeparturedate());\ndd.setDestination(postlist.get(0).getDestination());\ndd.setDob(passengerdob);\ndd.setEmail(passengeremail);\ndd.setEstimatedleavingtime(postlist.get(0).getEstimatedleavingtime());\ndd.setExpectedcost(postlist.get(0).getExpectedcost());\ndd.setMemo(postlist.get(0).getMemo());\ndd.setName(passengername);\ndd.setPostID(postID);\ndd.setSex(passengersex);\ndd.setPhone(postlist.get(0).getPhone());\ndd.setNumberofapplieddrivers(numberofapplieddrivers);\ndetaillist.add(dd);\n\nreturn detaillist;\n\n}finally{\nsession.close();\n}\n}",
"public List<Post> all() throws DataAccessException{\n String sql = \"select posts.id, posts.user_id, users.name, posts.title, posts.content, posts.create_date from posts join users on posts.user_id=users.id\";\n List<Post> posts = this.jdbcTemplate.query(sql, mapper);\n return posts;\n }",
"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}",
"@Override\r\n\tpublic void addPost(Post post) {\n\t\tgetHibernateTemplate().save(post);\r\n\t}",
"@Override\n public HashMap<Integer,_DefaultMessage> loadPost() throws IOException, SQLException, ClassNotFoundException {\n return _DbConnectionManager.getHMPosts(this.dbConnection, this.getName());\n }",
"public String getPostTableName() {\r\n\t\treturn postTableName;\r\n\t}",
"public void setPostId(long postId);",
"public interface CommentMapper {\n\n @Insert(\"insert comment(productId,userId,text,createdAt) values(#{productId},#{userId},#{text},now())\" )\n @Options(useGeneratedKeys = true,keyProperty = \"id\")\n void insertComment(Comment comment);\n\n @Select(\"select * from comment where productId=#{productId}\")\n List<Comment> getCommentByProductId(int productId);\n\n @Delete(\"delete from comment where id = #{id}\")\n void deleteComment(int id);\n\n\n}",
"public interface Post {\n\n\tpublic Long getId();\n\n\tpublic void setId(Long id);\n\n\tpublic Date getDate();\n\n\tpublic void setDate(Date date);\n\n\tpublic String getMessage();\n\n\tpublic void setMessage(String message);\n\n}",
"@Override\r\n\t\tpublic DatabaseMetaData getMetaData() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"public void updatePost(PostInfo postInfo) throws SQLException {\n String sql = \"UPDATE `post` SET `place_id`=?,`post_text`=?,`post_time`=?,`status`=?,`user_id`=?,`editor_id`=? WHERE `post_id` = ?\";\n preparedStatement = connection.prepareStatement(sql);\n preparedStatement.setInt(1, postInfo.getPlace_id());\n preparedStatement.setString(2, postInfo.getPost_text());\n preparedStatement.setDate(3, postInfo.getPost_time());\n preparedStatement.setInt(4, postInfo.getStatus());\n preparedStatement.setInt(5, postInfo.getUser_id());\n preparedStatement.setInt(6, postInfo.getEditor_id());\n preparedStatement.setInt(7, postInfo.getPost_id());\n\n preparedStatement.executeUpdate();\n }",
"public int getPostId() {\r\n\t\treturn postId;\r\n\t}",
"public void deletePost(PostInfo postInfo) throws SQLException {\n String sql = \"UPDATE `post` SET `status`=0 WHERE `post_id` = ?\";\n preparedStatement = connection.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);\n preparedStatement.setInt(1, postInfo.getPost_id());\n\n preparedStatement.executeUpdate();\n }",
"@Override\n\tpublic Map<String, String> toSqlMap() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Collection<Tmly> getTmlyInfo() {\n\t\tString sql = \"select ID_,TITLE,CONTENT,state from tmly\";\n\t\tList<Tmly> list = this.jdbcTemplate.query(sql, new RowMapper<Tmly>() {\n\n\t\t\t@Override\n\t\t\tpublic Tmly mapRow(ResultSet result, int i) throws SQLException {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tTmly tmly = new Tmly();\n\t\t\t\ttmly.setId(result.getInt(\"id_\"));\n\t\t\t\ttmly.setTitle(result.getString(\"title\"));\n\t\t\t\ttmly.setContent(result.getString(\"content\"));\n\t\t\t\treturn tmly;\n\t\t\t}\n\n\t\t});\n\t\treturn list;\n\t}",
"public long getPostId() {\n return postId;\n }",
"public long getPostId();",
"public static ResultSet getPosts(){\n ResultSet result = null;\n try {\n conn = ConnectionProvider.getCon();\n pst = conn.prepareStatement(\"select * from normalposts\");\n result = pst.executeQuery();\n\n System.out.println(\"PostDAO: getting posts\");\n } catch(Exception e) {\n System.out.println(\"PostDAO: unsuccessful query\");\n System.out.println(e);\n }\n return result;\n }",
"@Mapper\npublic interface BlogDAO {\n @Insert(\"INSERT INTO blog(title,uniq,markdown,html, create_time,update_time) \" +\n \"VALUES(#{item.title},#{item.uniq},#{item.markdown},#{item.html},#{item.createTime}, #{item.updateTime})\")\n int insert(\n @Param(\"item\") Blog blog\n );\n\n @Select(\"SELECT id,uniq,title,markdown,html,\" +\n \" create_time as createTime,update_time as updateTime \" +\n \" FROM blog WHERE id = #{id}\")\n Blog getBlogById(@Param(\"id\") String id);\n\n @Insert(\"replace into blog(id,title,uniq,markdown,html, create_time,update_time) \" +\n \"VALUES(#{item.id},#{item.title},#{item.uniq},#{item.markdown},#{item.html},#{item.createTime}, #{item.updateTime})\")\n int update(@Param(\"item\")Blog blog);\n\n @Select(\"SELECT id,uniq,title,\" +\n \" create_time as createTime,update_time as updateTime \" +\n \" FROM blog order by id desc limit #{offset}, #{limit}\")\n List<Blog> getBlogList(@Param(\"offset\")long offset,\n @Param(\"limit\")long limit,\n @Param(\"sort\") String sort);\n}",
"@Test\n public void metaDataExample1() throws SQLException {\n Connection connection = DriverManager.getConnection(dbUrl, dbUsername, dbPassword);\n // 2. Create statement\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n // Run sql query and get the result in resultSet object\n String sqlQuery= \"Select * From departments\";\n //String sqlQuery= \"Select first_name, last_name, salary From employees\";\n ResultSet resultSet = statement.executeQuery(sqlQuery);\n\n // we use resultSet metadata to get information about the tables\n // get the resultSet object metadata\n ResultSetMetaData rsMetadata = resultSet.getMetaData();\n\n // List for keeping all rows as a map\n List<Map<String, Object>> queryData = new ArrayList<>();\n\n // while(resultSet.next()) helps to iterate through columns\n while (resultSet.next()) {\n // key(columns) will be string but value can be any type of data. That's why we choose <String, Object>\n Map<String, Object> row = new HashMap<>(); // creating empty Map\n // number of columns\n int colCount = rsMetadata.getColumnCount();\n // for loop helps to iterate through columns\n for (int i = 1; i <= colCount; i++) {\n row.put(rsMetadata.getColumnName(i), resultSet.getObject(i));\n }\n\n queryData.add(row); // adding a Map to the List of Maps\n }\n\n // Printing the rows\n for (Map<String, Object> row: queryData) {\n System.out.println(row.toString());\n\n }\n\n\n\n\n // close all connections\n resultSet.close();\n statement.close();\n connection.close();\n }",
"public String toSql() {\t\n int n;\t\n void a;\t\n StringBuilder a2 = new StringBuilder();\t\n Table table = MapperHelper.getTable(this.entity);\t\n a2.append(MapperHelper.getTableName((Table)a, this.entity) + \" \" + a.alias());\t\n JoinTable[] arrjoinTable = a.joinTable();\t\n int n2 = arrjoinTable.length;\t\n int n3 = n = 0;\t\n while (n3 < n2) {\t\n JoinTable a3 = arrjoinTable[n];\t\n Table a4 = MapperHelper.getTable(a3.entity());\t\n a2.append(new StringBuilder().insert(0, \" \").append(a3.type().value()).append(\" \").toString());\t\n a2.append(new StringBuilder().insert(0, MapperHelper.getTableName(a4, this.entity)).append(\" \").append(a3.alias()).toString());\t\n a2.append(new StringBuilder().insert(0, \" ON \").append(a3.on()).toString());\t\n n3 = ++n;\t\n }\t\n StringBuilder stringBuilder = a2;\t\n stringBuilder.append(MapperHelper.getSqlMapValue(this.entity, a.extFromKeys()));\t\n return stringBuilder.toString();\t\n }",
"List<PostInfo> getPostList();",
"TypedKeyValue<String, Integer> getDestinationInfo(String sql);",
"public void setPostId(int postId) {\r\n\t\tthis.postId = postId;\r\n\t}",
"public List<PostEntry> savePost(String username, int postid, String title, String body){\n Connection c = null;\n PreparedStatement ps = null; \n ResultSet rs = null;\n\n boolean ret = true;\n\n //check if postid exists.\n if(postid>0 && findPost(username, postid)==null){\n return null;\n }\n try {\n //Get connection\n c = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/CS144\", \"cs144\", \"\");\n int changed;\n if(postid>0){\n //UPDATE\n System.out.println(\"update post!\");\n ps = c.prepareStatement(\"UPDATE Posts SET title=?, body=?, modified=? WHERE username=? AND postid=?\");\n ps.setString(1, title);\n ps.setString(2, body);\n ps.setTimestamp(3, new Timestamp(System.currentTimeMillis())); //set modified to current time\n ps.setString(4, username);\n ps.setInt(5, postid);\n\n changed = ps.executeUpdate();\n }\n else {\n //get largest postid and add 1 to get newID\n\n System.out.println(\"new post!\");\n ps = c.prepareStatement(\"SELECT MAX(postid) FROM Posts WHERE username=?\");\n ps.setString(1, username);\n\n rs = ps.executeQuery();\n int newID = 1;\n if(rs.next()){\n newID = rs.getInt(1) + 1;\n }\n ps.close();\n\n ps = c.prepareStatement(\"INSERT INTO Posts (username, postid, title, body, modified, created) VALUES(?,?,?,?,?,?)\");\n ps.setString(1, username);\n ps.setInt(2, newID);\n ps.setString(3, title);\n ps.setString(4, body);\n ps.setTimestamp(5, new Timestamp(System.currentTimeMillis())); //set modified to current time\n ps.setTimestamp(6, new Timestamp(System.currentTimeMillis())); //set created to current time\n \n changed = ps.executeUpdate();\n }\n\n if(changed==0){\n ret = false;\n }\n\n } catch(SQLException e){\n //error handling\n System.out.println(\"SQLException caught.\");\n e.printStackTrace();\n } finally {\n //just need to close all\n try { rs.close(); } catch (Exception e) { /* ignored */ }\n try { ps.close(); } catch (Exception e) { /* ignored */ }\n try { c.close(); } catch (Exception e) { /* ignored */ }\n }\n\n //return list data\n if(ret)\n return findList(username);\n else\n return null;\n }",
"public long ashirPostCreating(AshirBlogPostingHelper post) {\n long result;\n\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(Col_2, post.getPost());\n values.put(Col_3, post.getImage());\n //inserting valuse into table columns\n result = db.insert(NAME_OF_TABLE, null, values);\n db.close();\n return result;\n\n }",
"public void setPostTableName(String postTableName) {\r\n\t\tthis.postTableName = postTableName;\r\n\t}",
"@Override\n\t\tprotected void postUpdate(EspStatusDTO t) throws SQLException {\n\t\t\t\n\t\t}",
"String getPostDeclareSql();",
"@Override\n public Entity configuracion(Entity e) throws SQLException {\n return null;\n }",
"public void setPostId(int postId) {\n\t\tthis.postId = postId;\n\t}",
"int getPostId();",
"void setPostId(int postId);",
"@Mapper\npublic interface QuestionDAO {\n String TABLE_NAME = \" question \";\n String INSERT_FIELDS = \" title, content, created_date, user_id, comment_count \";\n String SELECT_FIELDS = \" id, \" + INSERT_FIELDS;\n\n @Insert({\"insert into \", TABLE_NAME, \"(\", INSERT_FIELDS,\n \") values (#{title},#{content},#{createdDate},#{userId},#{commentCount})\"})\n int addQuestion(Question question);\n\n // 使用 xml 配置文件进行 数据库查询语句与程序接口的映射。\n // 对应的 QuestionDAO.xml 文件位于 resources 文件夹 -》com.mattLearn.dao 文件夹中。\n List<Question> selectLatestQuestions(@Param(\"userId\") int userId, @Param(\"offset\") int offset,\n @Param(\"limit\") int limit);\n\n @Select({\"select \", SELECT_FIELDS, \" from \", TABLE_NAME, \" where id=#{id}\"})\n Question SelectById(int id);\n\n @Update(\" update question set comment_count=#{commentCount} where id = #{id}\")\n int updateCommentCount(@Param(\"commentCount\") int commentCount,\n @Param(\"id\") int id);\n\n}",
"@Override\r\n\tpublic Post searchInfById(Post post2) {\n\t\tpostDao=new PostDaoImpl(TransactionManager.connection);\r\n\t\tResultSet resultSet=postDao.selectById(post2);\r\n\t\tPost post=new Post();\r\n\t\ttry {\r\n\t\t\tif(resultSet.next()) {\r\n\t\t\t\tpost.setPostId(resultSet.getInt(1));\r\n\t\t\t\tpost.setPostName(resultSet.getString(3));\r\n\t\t\t\tpost.setUserId(resultSet.getInt(2));\r\n\t\t\t\tpost.setPostProperty(resultSet.getInt(4));\r\n\t\t\t\tpost.setPostEnterNum(resultSet.getInt(5));\r\n\t\t\t\tpost.setPostTime(resultSet.getDate(6));\r\n\t\t\t\tpost.setPostScore(resultSet.getDouble(7));\r\n\t\t\t\tpost.setScoreCount(resultSet.getInt(8));\r\n\t\t\t\tpost.setLastComTime(resultSet.getDate(9));\r\n\t\t\t\tpost.setResId(resultSet.getInt(10));\r\n\t\t\t\tpost.setResPath(resultSet.getString(12));\r\n\t\t\t\tpost.setUserName(resultSet.getString(14));\r\n\t\t\t\tpost.setUserLevel(resultSet.getInt(16));\r\n\t\t\t\tpost.setUserStatus(resultSet.getInt(17));\r\n\t\t\t\tpost.setPropertyName(resultSet.getString(19));\r\n\t\t\t\tpost.setLocation(resultSet.getString(22));\r\n\t\t\t\tpost.setPhone(resultSet.getString(23));\r\n\t\t\t\tpost.setPostCode(resultSet.getInt(24));\r\n\t\t\t\tpost.setEmail(resultSet.getString(25));\r\n\t\t\t\tpost.setGender(resultSet.getString(26));\r\n\t\t\t\tpost.setHobby(resultSet.getString(27));\r\n\t\t\t\tpost.setMajor(resultSet.getString(28));\r\n\t\t\t\tpost.setScore(resultSet.getInt(29));\r\n\t\t\t\tpost.setNickName(resultSet.getString(30));\r\n\t\t\t\tpost.setUserRegion(resultSet.getString(31));\r\n\t\t\t\tpost.setUserPhoto(resultSet.getString(32));\r\n\t\t\t\tpost.setComCount(resultSet.getInt(39));\r\n\t\t\t\t\r\n\t\t\t\treturn post;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\treturn null;\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\treturn null;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n public ColumnInfo getColumnInfo() {\n return columnInfo;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<Post> getPostsOf(int postId){\n \t\tList<Post> postList = null;\n\t\tCriteria query = null;\n\t\ttry {\n\t\t\t\n\t\t\t query = getCurrentSession().createCriteria(Post.class);\n\t\t\t \n\t\t\t query.createAlias(\"this.orgperson\", \"author\") \n\t\t\t .createAlias(\"author.personid\",\"authorPerson\")\n\t\t\t \t .createAlias(\"this.postcategories\", \"postcategories\")\n\t\t\t \t .createAlias(\"postcategories.category\", \"category\")\n\t\t\t \t .createAlias(\"this.postskills\", \"postskills\")\n\t\t\t \t .createAlias(\"postskills.skill\", \"skill\")\n\t\t\t \t .createAlias(\"this.posttags\", \"posttags\")\n\t\t\t \t .createAlias(\"posttags.tag\", \"tag\");\n\t\t\t \n\t\t\t query.add(Restrictions.eq(\"this.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"author.orgpersonstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"authorPerson.personstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"postcategories.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"category.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"postskills.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"skill.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"posttags.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"tag.status\", \"A\")) \n\t\t\t \t .add(Restrictions.eq(\"this.id\", postId));\n\t\t\t \n\t\t\t query.setProjection(Projections.projectionList()\n\t\t\t\t\t \n\t\t\t\t\t //post\n\t\t\t\t\t .add(Projections.property(\"this.id\").as(\"post_id\"))\n\t\t\t\t\t .add(Projections.property(\"this.title\").as(\"post_title\"))\n\t\t\t\t\t .add(Projections.property(\"this.content\").as(\"post_content\")) \n\t\t\t\t\t .add(Projections.property(\"this.bannerpath\").as(\"post_bannerpath\"))\n\t\t\t\t\t .add(Projections.property(\"this.commentable\").as(\"post_commentable\"))\n\t\t\t\t\t .add(Projections.property(\"this.date\").as(\"post_date\"))\n\t\t\t\t\t .add(Projections.property(\"this.media\").as(\"post_media\")) \n\t\t\t\t\t .add(Projections.property(\"this.status\").as(\"post_status\")) \n\t\t\t\t\t //authorperson\n\t\t\t\t\t .add(Projections.property(\"authorPerson.personid\").as(\"authorPersonPersonId\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.firstName\").as(\"authorPersonFirstName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.lastName\").as(\"authorPersonLastName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.middleName\").as(\"authorPersonmiddleName\")) \n\t\t\t\t\t //category\n\t\t\t\t\t .add(Projections.property(\"category.id\").as(\"categoryId\")) \n\t\t\t\t\t .add(Projections.property(\"category.name\").as(\"categoryName\")) \n\t\t\t\t\t //skill\n\t\t\t\t\t .add(Projections.property(\"skill.id\").as(\"skillId\")) \n\t\t\t\t\t .add(Projections.property(\"skill.name\").as(\"skillName\")) \n\t\t\t\t\t//tag\n\t\t\t\t\t .add(Projections.property(\"tag.id\").as(\"tagId\")) \n\t\t\t\t\t .add(Projections.property(\"tag.name\").as(\"tagName\")) \n\t\t\t\t\t \n\t\t\t\t\t ); \n\t\t\t \n\t\t\t postList = query.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP).list(); \n\t\t\t \t \t \n\t\t} catch (Exception e) {\n\t\t\tpostServiceLogger.error(\"error in PostService for getPostsOf()\",e);\n\t\t} \n\t\treturn postList;\n\t}",
"public Integer getPostType() {\n return postType;\n }",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n response.setCharacterEncoding(\"UTF-8\");\n request.setCharacterEncoding(\"UTF-8\");\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"Ghosttales_PU\");\n EntityManager em = emf.createEntityManager();\n HttpSession session = request.getSession();\n \n \n //String file = request.getParameter(\"file\");\n \n \n String content = request.getParameter(\"content\");\n // String content = \"oiadjioajdoiajdiajsi\";\n System.out.println(\"---1---\");\n String title = request.getParameter(\"title\");\n String author = (String) session.getAttribute(\"userr\");\n UserInfo u = em.find(UserInfo.class, author);\n LocalDate today = LocalDate.now();\n \n System.out.println(u.getUsername());\n \n// if(content != null && title !=null) {\n\n // String sql2 = \"SELECT COUNT(p) FROM Post p\";\n String sql2 =\"SELECT p.postId FROM Post p\";\n Query q = em.createQuery(sql2);\n \n List <Post>ps =q.getResultList() ;\n \n \n \n// long countt = (long)q.getSingleResult();\n// int count = (int) countt+1;\n \n \n Post post = new Post(); \n int num = ps.size();\n if(num==0){\n int countt = num+1 ;\n int count = countt;\n post.setPostId(count);\n session.setAttribute(\"num\",count);\n }else{\n int countt = (int) q.getResultList().get(num-1);\n int count = countt+1;\n System.out.println(num);\n System.out.println(countt);\n System.out.println(count);\n post.setPostId(count);\n session.setAttribute(\"num\",count);\n }\n \n post.setTitle(title);\n post.setContent(content);\n post.setCreateTime(java.sql.Date.valueOf(today));\n post.setUpdateTime(null);\n post.setTotallike(0);\n post.setTotalcomment(0);\n post.setUserinfousername(u);\n System.out.println(\"-----2-----\");\n \n \n \n em.getTransaction().begin();\n em.persist(post);\n em.getTransaction().commit();\n \n \n \n \n \n session.setAttribute(\"show\", post);\n \n \n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"post\", post.getContent());\n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"title\", post.getTitle());\n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"author\", post.getUserinfousername().toString());\n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"day\", post.getCreateTime());\n \n \n\n request.getRequestDispatcher(\"/addimage.jsp\").forward(request, response);\n\n }",
"Achievements getPostDetails();",
"public CustomSql getCustomSqlInsert();",
"public int getDataid_postingBisnis() {\r\n return Dataid_postingBisnis;\r\n }",
"@Override\n\tpublic Post createPost(Post post) {\n\t\treturn postDao.createPost(post);\n\t}",
"int insert(PmPost record);",
"@Override\n\tpublic JDBCMetaData getMetaData() throws SQLException {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic void updatePost(Post post) {\n\t\tPost p = getPostById(post.getPost_id());\r\n\t\tp.setDepartment(post.getDepartment());\r\n\t\tp.setDescription(post.getDescription());\r\n\t\tp.setEmployeeSet(post.getEmployeeSet());\r\n\t\tp.setPost_id(post.getPost_id());\r\n\t\tp.setPost_name(post.getPost_name());\r\n\t\tp.setPost_wage(post.getPost_wage());\r\n\t\tgetHibernateTemplate().update(p);\r\n\t}",
"public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}",
"private void writeMetaData(ResultSet resultSet) throws SQLException {\n\t System.out.println(\"The columns in the table are: \");\r\n\t System.out.println(\"Table: \" + resultSet.getMetaData().getTableName(1));\r\n\t for (int i = 1; i<= resultSet.getMetaData().getColumnCount(); i++){\r\n\t System.out.println(\"Column \" +i + \" \"+ resultSet.getMetaData().getColumnName(i));\r\n\t }\r\n\t }",
"Integer getDomainTemplateColumn();",
"@SuppressWarnings(\"HardCodedStringLiteral\")\npublic interface MyPostsColumn {\n @DataType(INTEGER)\n @PrimaryKey\n String KEY_SQL_ID = \"sql_id\";\n\n @DataType(TEXT)\n @NotNull @Unique\n String KEY_ID = \"_id\";\n\n @DataType(TEXT)\n String KEY_AUTHOR = \"author\";\n\n @DataType(TEXT)\n @NotNull\n String KEY_SUBREDDIT_ID = \"subreddit_id\";\n\n @DataType(TEXT)\n @NotNull\n String KEY_SUBREDDIT = \"subreddit\";\n\n @DataType(INTEGER)\n String KEY_UPS = \"ups\";\n\n @DataType(TEXT)\n String KEY_TITLE = \"title\";\n\n @DataType(INTEGER)\n String KEY_COMMENTS_COUNT = \"comments_count\";\n\n @DataType(INTEGER)\n String KEY_CREATED_UTC = \"created_utc\";\n\n @DataType(INTEGER)\n String KEY_CREATED = \"created\";\n\n @DataType(TEXT)\n @NotNull\n String KEY_NAME = \"name\";\n\n @DataType(INTEGER)\n @NotNull\n String KEY_CLICKED = \"clicked\";\n\n @DataType(INTEGER)\n String KEY_LIKES = \"likes\"; //CAN BE NULL\n\n @DataType(TEXT)\n String KEY_DOMAIN = \"domain\";\n\n @DataType(INTEGER)\n String KEY_IS_SELF = \"is_self\";\n\n @DataType(INTEGER)\n @NotNull\n String KEY_OVER_18 = \"over_18\";\n\n @DataType(TEXT)\n String KEY_PERMALINK = \"permalink\";\n\n @DataType(TEXT)\n String KEY_POST_HINT = \"post_hint\";\n\n @DataType(INTEGER)\n String KEY_SCORE = \"score\";\n\n @DataType(TEXT)\n String KEY_THUMBNAIL = \"thumbnail\";\n\n @DataType(TEXT)\n String KEY_URL = \"url\";\n\n @DataType(INTEGER)\n String KEY_VISITED = \"visited\";\n\n @DataType(INTEGER)\n String KEY_LOCKED = \"locked\";\n\n @DataType(TEXT)\n String KEY_MEDIA_OEMBED_TYPE = \"media_oembed_type\";\n\n @DataType(TEXT)\n String KEY_BIG_IMAGE_URL = \"big_image_url\";\n\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_POST = \"type_post\";\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_SEARCH = \"type_search\";\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_WIDGET = \"type_widget\";\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_TEMP = \"type_temp\";\n\n\n\n}",
"@Override\n\tpublic void updateAllPostNowTipBySid(String Id, CodeInfo codeInfo) {\n\t\tQuery query = this.currentSession().createQuery(\"update com.wondersgroup.human.bo.pubinst.PtPost set tenureStatus = :nowPostSign where publicInstitution.id = :Id\");\n\t\tquery.setParameter(\"nowPostSign\", codeInfo);\n\t\tquery.setParameter(\"Id\",Id);\n\t\tquery.executeUpdate();\n\t\t\n\t}",
"public void queryPostTable(Context activityContext, String postTableName) {\n new GetCursorTablePost(activityContext).execute(postTableName);\n }",
"public interface IBasicPost {\n Long getId();\n String getTitle();\n String getDescription();\n long getCreatedDate();\n long getUpdatedDate();\n Integer getCityId();\n Long getUserId();\n Integer getUserLikeCount();\n Integer getUserCommentCount();\n String getUserFirstName();\n}",
"@RequestMapping(value = \"fetch-health-tips\", method = RequestMethod.POST)\n private List<HealthPost> fetchHealthTips() {\n SessionService.sessionBuilder(session -> {\n healthPostList = session.createQuery(\"from HealthPost order by id desc\", HealthPost.class).list();\n });\n return healthPostList;\n }",
"@Override\n public DatabaseMetaData getMetaData() throws SQLException\n {\n logger.debug(\n \" public DatabaseMetaData getMetaData() throws SQLException\");\n\n return new SnowflakeDatabaseMetaData(this);\n }",
"@Override\n\tpublic void getPost(Scanner sc) {\n\t\tPost p;\n\t\tgetAll();\n\t\tSystem.out.print(\"보고 싶은 리뷰의 번호를 입력해 주세요 >>\");\n\t\tp = dao.selectPost(sc.nextInt());\n\t\tSystem.out.println(p.getPostName());\n\t\tSystem.out.println(p.getContent());\n\t}",
"public interface BasePostPoMapper extends feihua.jdbc.api.dao.CrudDao<BasePostPo, String> {\n\n java.util.List<BasePostPo> searchBasePosts(SearchPostsConditionDsfDto dto);\n}",
"public List<MediumBean> populatemediam(String sql ){\n\t\t\t\tList<MediumBean> retlist = jdbcTemplate.query(sql,ParameterizedBeanPropertyRowMapper.newInstance(MediumBean.class));\n\t\t\t\t\treturn retlist;\n\t\t }",
"@Query(\"SELECT * FROM \" + TABLE_NAME)\n List<Note> getNotes();",
"public boolean addPost(Post post) throws SQLException\n {\n boolean isAdded=false;\n try\n {\n database = dbH.getReadableDatabase();\n dbH.openDataBase();\n ContentValues values = new ContentValues();\n values.put(\"postBody\", post.getPostBody());\n values.put(\"postedBy\", post.getPostedBy());\n values.put(\"postedAt\", post.getPostedAt());\n values.put(\"postID\", post.getPostID());\n values.put(\"image\" , post.getBitmap());\n\n isAdded=database.insert(\"Post\", null, values)>0;\n\n }\n catch(SQLException e)\n {\n e.printStackTrace();\n }\n finally{\n if(database!=null && database.isOpen())\n dbH.close();\n }\n return isAdded;}",
"@Override\r\n\tprotected Entity getEntityByFields() throws SQLException {\n\t\t\r\n\t\tint id = rs.getInt(\"id\");\r\n\t\tint productId = rs.getInt(\"id_product\");\r\n\t\tString productName = super.getString(\"productName\");\t// From INNER JOIN\r\n\t\tString productUnit = super.getString(\"productUnit\");\t// From INNER JOIN\r\n\t\tfloat quantity = rs.getFloat(\"quantity\");\r\n\t\tfloat price = rs.getFloat(\"price\");\r\n\t\tfloat summa = rs.getFloat(\"summa\");\r\n\t\t\r\n\t\treturn new DocInvoiceItem(id, productId, productName, productUnit, quantity, price, summa);\r\n\t}",
"public PostInformationExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public String getGeneratedSql() {\n/* 142 */ return this.sql;\n/* */ }",
"@Override\r\n\tpublic BaseBean insertSQL(String sql, Connection con) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic void insertIPODetail(IPODetail ipo) throws SQLException {\n\t\t\n\t}",
"@Override\n\tpublic Map<String, String[]> loadColumnMetas(String databaseName) throws SQLException {\n\t\tString sql=\"select utc.*,UCC.comments from user_tab_columns utc\\n\" + \n\t\t\t\t\"left join user_col_comments ucc on UCC.table_name=UTC.table_name and UCC.column_name=UTC.column_name\";\n\t\tMap<String, String[]> ret=new HashMap<>();\n\t\t try(PreparedStatement preparedStatement= connection.prepareStatement(sql);\n\t \t\tResultSet resultSet=preparedStatement.executeQuery();){\n\t\t\twhile(resultSet.next()) {\n\t\t\t\tString tableName=resultSet.getString(\"TABLE_NAME\")\n\t\t\t\t\t\t,columnName=resultSet.getString(\"COLUMN_NAME\")\n\t\t\t\t\t\t,dataLength=resultSet.getString(\"DATA_LENGTH\")\n\t\t ,nullable=resultSet.getString(\"NULLABLE\")\n\t\t ,comments=resultSet.getString(\"COMMENTS\")\n\t\t\t\t\t\t;\n\t\t\t\tString key=tableName+\":\"+columnName;\n\t\t\t\tret.put(key, new String[] {dataLength,nullable,comments});\n\t\t\t\t\n\t\t\t}\n\t }\n\t\t\n\t\treturn ret;\n\t}",
"@Override\r\n\tpublic List<Post> getPostByName(String name) {\n\t\tString hql = \"from Post p where p.post_name =?\";\r\n\t\treturn (List<Post>) getHibernateTemplate().find(hql, name);\r\n\t}",
"void processMetaData(ResultSet rs) throws SQLException;",
"@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }",
"@Dao\npublic interface PostDao {\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n void insertPost(iPost iPosts);\n\n @Update\n void updatePost(iPost iPost);\n\n @Delete\n void deletePost(iPost iPost);\n\n @Query(\"SELECT * FROM iPost\")\n List<iPost> getAllPosts();\n\n @Query(\"SELECT * FROM iPost WHERE idThread=:threadId\")\n List<iPost> findPostsByThread(final int threadId);\n\n @Transaction\n @Query(\"SELECT * FROM iPost WHERE idThread=:threadId\")\n Single<List<PostsHelper>> getPostsFromThread(String threadId);\n}",
"protected String getSqlTable() {\n\t\treturn \"Project\";\n\t}",
"public void formDatabaseTable() {\n }",
"public CustomSql getCustomSqlUpdate();",
"void savePost(Post post);",
"@Override\n\tprotected String getCreateSql() {\n\t\treturn null;\n\t}",
"public interface AlmacenMapper {\n @Select(value = \"select tipo,descripcion from tipoproducto\")\n @Results(value = {\n @Result(javaType = Producto.class),\n @Result(property = \"tipo\",column = \"tipo\"),\n @Result(property = \"descripcion\",column = \"descripcion\"),\n })\n List<Producto> listarTipoProducto();\n\n @Insert(value = \"INSERT \" +\n \"INTO producto \" +\n \" ( \" +\n \" codigo, \" +\n \" nombre, \" +\n \" tipo, \" +\n \" porc_precio, \" +\n \" uni_medida, \" +\n \" cantidad \" +\n \" ) \" +\n \" VALUES \" +\n \" ( \" +\n \" producto_seq.nextval, \" +\n \" #{produ.nombre}, \" +\n \" #{produ.tipo}, \" +\n \" #{produ.porc_precio}, \" +\n \" #{produ.uni_medida}, \" +\n \" #{produ.cantidad} \" +\n \" )\")\n void GuardarProducto(@Param(\"produ\") Producto producto);\n\n @Select(value = \"SELECT codigo, \" +\n \" nombre, \" +\n \" p.tipo, \" +\n \" tp.descripcion, \" +\n \" porc_precio, \" +\n \" uni_medida, \" +\n \" cantidad \" +\n \"FROM producto p \" +\n \"INNER JOIN tipoproducto tp \" +\n \"ON(p.tipo=tp.tipo)\")\n @Results(value = {\n @Result(javaType = Producto.class),\n @Result(property = \"codigo\",column = \"codigo\"),\n @Result(property = \"nombre\",column = \"nombre\"),\n @Result(property = \"tipo\",column = \"tipo\"),\n @Result(property = \"descripcion\",column = \"descripcion\"),\n @Result(property = \"porc_precio\",column = \"porc_precio\"),\n @Result(property = \"uni_medida\",column = \"uni_medida\"),\n @Result(property = \"cantidad\",column = \"cantidad\"),\n })\n List<Producto> listarProductos();\n\n @Update(value =\"UPDATE producto \" +\n \"SET nombre =#{produ.nombre}, \" +\n \" porc_precio=#{produ.porc_precio}, \" +\n \" tipo= \" +\n \" #{produ.tipo} \" +\n \"WHERE codigo=#{produ.codigo}\" )\n void ActualizarProducto(@Param(\"produ\") Producto producto);\n\n @Delete(value=\"DELETE FROM PRODUCTO WHERE codigo=#{id}\")\n void EliminarProducto(@Param(\"id\") Integer id);\n\n @Select(value = \"SELECT codigo, \" +\n \" nombre \" +\n \"FROM producto p where tipo=#{id} \")\n @Results(value = {\n @Result(javaType = Producto.class),\n @Result(property = \"codigo\",column = \"codigo\"),\n @Result(property = \"nombre\",column = \"nombre\"),\n })\n List<Producto> ListarProductosxCategoria(@Param(\"id\") Integer id);\n\n @Insert(value = \"INSERT \" +\n \"INTO entrada_productos \" +\n \" ( \" +\n \" n_entrada, \" +\n \" fecha, \" +\n \" costo_total \" +\n \" ) \" +\n \" VALUES \" +\n \" ( \" +\n \" entrada_seq.nextval , \" +\n \" sysdate, \" +\n \" #{entrada.costo_total} \" +\n \" )\")\n void insertEntradaProducto(@Param(\"entrada\") EntradaProducto entrada);\n\n @Insert(value = \"INSERT \" +\n \"INTO detalle_entrada_productos \" +\n \" ( \" +\n \" N_ENTRADA, \" +\n \" COD_PRODUCTO, \" +\n \" COD_PROVEEDOR, \" +\n \" CANTIDAD, \" +\n \" PRECIO_COMPRA, \" +\n \" COSTO_TOTAL_PRODUCTO \" +\n \" ) \" +\n \" VALUES \" +\n \" ( \" +\n \" (select max(n_entrada) from entrada_productos), \" +\n \" #{entrada.cod_producto}, \" +\n \" #{entrada.cod_proveedor}, \" +\n \" #{entrada.cantidad}, \" +\n \" #{entrada.precio_compra}, \" +\n \" #{entrada.costo_total_producto} \" +\n \" )\")\n void inserDetalleEntradaProductos(@Param(\"entrada\") EntradaProducto entrada);\n\n @Update(value =\"UPDATE producto \" +\n \"SET cantidad=(select cantidad+#{entrada.cantidad} from producto where codigo=#{entrada.cod_producto}) \"+\n \"WHERE codigo=#{entrada.cod_producto}\" )\n void updateStockProducto(@Param(\"entrada\")EntradaProducto entrada);\n}",
"private static void showsSqlSelectOnNormalEntityBean() {\n\n\t\tQuery<Bug> query = Ebean.createQuery(Bug.class, \"simple\");\n\t\tquery.where().eq(\"status.code\", \"ACTIVE\");\n\n\t\tList<Bug> list = query.findList();\n\n\t\tSystem.out.println(list);\n\t\t\n\t\tfor (Bug bug : list) {\n\t\t\tString body = bug.getBody();\n\t\t\tSystem.out.println(body);\n\t\t}\n\n\t}",
"@Override //插入通知\n\tpublic void insertPoInfo(PageData pd) throws Exception {\n\t\tdao.save(\"PoInfoMapper.insertPoInfo\", pd);\n\t}",
"public interface BugsActivityDAO {\n\n @Insert(\"insert into firefox_bugs_activity \" +\n \"(`bugId`,`who`,`when`,`what`,`removed`,`added`,`crawledTime`) \" +\n \"values (#{bugId},#{who},#{when},#{what},#{removed},#{added},#{crawledTime})\")\n public int add(BugsActivity fireFoxBugsActivity);\n\n @Insert(\"insert into firefox_bugs_activity_html (`bugId`,`html`) \" +\"values (#{bugId},#{html})\")\n public int addHtml(BugsActivity fireFoxBugsActivity);\n}",
"@Override\n\tpublic List<Map<String, Object>> getNoticeLast() {\n\t\tStringBuffer querySQL = new StringBuffer(\n\t\t\t\t\"select ifnull(title,'') title,ifnull(static_page,'') static_page from notice where status = 1 order by crdate desc limit 4\");\n\t\t// StringBuffer querySQL2 = new StringBuffer(\n\t\t// \"select count(1) from notice where status = 1 order by crdate desc limit 1\");\n\t\t// if (jdbcTemplate.queryForInt(querySQL2.toString()) > 0) {\n\t\treturn jdbcTemplate.queryForList(querySQL.toString());\n\t\t// }\n\t\t// return null;\n\n\t}",
"public PostRecord(Integer id, Integer userId, String title, String body, String date) {\n super(PostTable.POST);\n\n set(0, id);\n set(1, userId);\n set(2, title);\n set(3, body);\n set(4, date);\n }",
"@Override\n public Jurusan mapRow(ResultSet rs, int rowNum) throws SQLException {\n Jurusan jurusan=new Jurusan();\n jurusan.setId(rs.getInt(\"id\"));\n jurusan.setNama(rs.getString(\"nama\"));\n jurusan.setIdFakultas(rs.getInt(\"idFakultas\"));\n\n\n Fakultas fakultas=new Fakultas();\n fakultas.setId(rs.getInt(\"idFakultas\"));\n fakultas.setNama(rs.getString(\"namaFakultas\"));\n jurusan.setFakultas(fakultas);\n return jurusan;\n }",
"public interface BugPlatformMapper {\n\n\n @Select(\"SELECT js.pname as bugResolutionStatus, COUNT(js.pname) as bugNum FROM jiraissue ji INNER JOIN project pr ON pr.ID = ji.PROJECT LEFT JOIN issuestatus js ON ji.issuestatus = js.ID where pr.ID in (#{2}) and issuetype = 1 AND CREATED between #{0} and #{1} group by js.pname\")\n List<BugPlatformObject> getList(String startDate,String endDate,String project);\n}",
"@Override\n @Transactional\n public void onSubmit() {\n ValueMap values = getModelObject();\n\n // check if the honey pot is filled\n if (StringUtils.isNotBlank((String)values.get(\"comment\")))\n {\n error(\"Caught a spammer!!!\");\n return;\n }\n // Construct a copy of the edited comment\n Snip snip = new Snip();\n SnipMeta meta= new SnipMeta();\n\n logger.info(this.getDefaultModel().toString());\n\n logger.info(((List<String>) values.get(\"select_all\")).toString());\n\n meta.setTags((ArrayList<String>)values.get(\"select_all\"));\n meta.setDescription((String) values.get(\"meta\"));\n\n\n // Set date of comment to add\n snip.setDate(new Date());\n snip.setCode((String)values.get(\"code\"));\n snipList.add(0, snip); //TODO: eliminare lo show di tutti gli snipp da snipList magari con una FIFO\n meta.setSnip(snip);\n\n\n //--------- get session ad manager ------\n MyAuthenticatedWebSession app_session = MyAuthenticatedWebSession.getYourAppSession();\n logger.info(\"web session is: \"+app_session.toString());\n EntityManager em = app_session.getEntityManager();\n //---------------------------------------------------\n\n Users tmp_id = em.find(Users.class ,app_session.getAttribute(\"user\"));\n //snip.setUser(app_session.getCurrentUser()); --less network more backend\n snip.setUser(tmp_id);\n em.getTransaction().begin();\n em.setFlushMode(COMMIT);\n em.persist(snip);\n em.persist(meta);\n em.flush();\n em.getTransaction().commit();\n\n\n // Clear out the text component\n values.put(\"code\", \"\");\n }",
"@Override\n\tpublic String addOrUpdate(Map<String, Object> entityMap)\n\t\t\tthrows DataAccessException {\n\t\treturn null;\n\t}",
"@Insert({\n \"insert into kd_user_medal (id, userid, \",\n \"medalId, bindUserid, \",\n \"remark, createTime)\",\n \"values (#{id,jdbcType=BIGINT}, #{userid,jdbcType=BIGINT}, \",\n \"#{medalid,jdbcType=BIGINT}, #{binduserid,jdbcType=BIGINT}, \",\n \"#{remark,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP})\"\n })\n int insert(KDUserMedal record);",
"public interface GradeMapper {\n @Select(\"select * from grade\")\n public List<Grade> getByGradeNm();\n\n @Insert(\"insert into grade(grade_nm,teacher_id) values(#{gradeNm},#{teacherId})\")\n @Options(useGeneratedKeys=true,keyColumn=\"id\",keyProperty=\"id\")//设置id自增长\n public void save(Grade grade);\n}",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<Post> getPostsOf(int postId , int userId){\n\t\t\n\t\tList<Post> postList = null;\n\t\tCriteria query = null;\n\t\ttry {\n\t\t\t\n\t\t\t query = getCurrentSession().createCriteria(Post.class);\n\t\t\t \n\t\t\t query.createAlias(\"this.orgperson\", \"author\") \n\t\t\t .createAlias(\"author.personid\",\"authorPerson\")\n\t\t\t \t .createAlias(\"this.postcategories\", \"postcategories\")\n\t\t\t \t .createAlias(\"postcategories.category\", \"category\")\n\t\t\t \t .createAlias(\"this.postskills\", \"postskills\")\n\t\t\t \t .createAlias(\"postskills.skill\", \"skill\")\n\t\t\t \t .createAlias(\"this.posttags\", \"posttags\")\n\t\t\t \t .createAlias(\"posttags.tag\", \"tag\");\n\t\t\t \n\t\t\t query.add(Restrictions.eq(\"this.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"author.orgpersonstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"authorPerson.personstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"postcategories.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"category.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"postskills.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"skill.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"posttags.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"tag.status\", \"A\")) \n\t\t\t \t .add(Restrictions.eq(\"this.id\", postId))\n\t\t\t \t .add(Restrictions.eq(\"author.orgpersonid\", userId));\n\t\t\t \n\t\t\t query.setProjection(Projections.projectionList()\n\t\t\t\t\t \n\t\t\t\t\t //post\n\t\t\t\t\t .add(Projections.property(\"this.id\").as(\"post_id\"))\n\t\t\t\t\t .add(Projections.property(\"this.title\").as(\"post_title\"))\n\t\t\t\t\t .add(Projections.property(\"this.content\").as(\"post_content\")) \n\t\t\t\t\t .add(Projections.property(\"this.bannerpath\").as(\"post_bannerpath\"))\n\t\t\t\t\t .add(Projections.property(\"this.commentable\").as(\"post_commentable\"))\n\t\t\t\t\t .add(Projections.property(\"this.date\").as(\"post_date\"))\n\t\t\t\t\t .add(Projections.property(\"this.media\").as(\"post_media\")) \n\t\t\t\t\t .add(Projections.property(\"this.status\").as(\"post_status\")) \n\t\t\t\t\t //authorperson\n\t\t\t\t\t .add(Projections.property(\"authorPerson.personid\").as(\"authorPersonPersonId\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.firstName\").as(\"authorPersonFirstName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.lastName\").as(\"authorPersonLastName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.middleName\").as(\"authorPersonmiddleName\")) \n\t\t\t\t\t //category \n\t\t\t\t\t .add(Projections.property(\"postcategories.id\").as(\"postCategoryId\"))\n\t\t\t\t\t .add(Projections.property(\"postcategories.status\").as(\"postCategoryStatus\"))\n\t\t\t\t\t .add(Projections.property(\"category.id\").as(\"categoryId\")) \n\t\t\t\t\t .add(Projections.property(\"category.name\").as(\"categoryName\")) \n\t\t\t\t\t //skill\n\t\t\t\t\t .add(Projections.property(\"postskills.id\").as(\"postSkillsId\"))\n\t\t\t\t\t .add(Projections.property(\"postskills.status\").as(\"postSkillsStatus\"))\n\t\t\t\t\t .add(Projections.property(\"skill.id\").as(\"skillId\")) \n\t\t\t\t\t .add(Projections.property(\"skill.name\").as(\"skillName\")) \n\t\t\t\t\t//tag\n\t\t\t\t\t .add(Projections.property(\"posttags.id\").as(\"postTagsId\"))\n\t\t\t\t\t .add(Projections.property(\"posttags.status\").as(\"postTagsStatus\"))\n\t\t\t\t\t .add(Projections.property(\"tag.id\").as(\"tagId\")) \n\t\t\t\t\t .add(Projections.property(\"tag.name\").as(\"tagName\")) \n\t\t\t\t\t \n\t\t\t\t\t ); \n\t\t\t \n\t\t\t postList = query.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP).list();\n\t\t\t \n\t\t\t \t \t \n\t\t} catch (Exception e) {\n\t\t\tpostServiceLogger.error(\"error in PostService for getPostsOf()\",e);\n\t\t}\n\t\treturn postList;\n\t}",
"public void insert() throws SQLException {\n Statement stmtIn = DatabaseConnector.getInstance().getStatementIn();\n\n int check = BusinessFacade.getInstance().checkIDinDB(this.productRelation.getID(),\n this.post.getID(), \"goods\", \"product_type_id\", \"post_id\");\n if (check == -1){\n stmtIn.executeUpdate(\"INSERT INTO ngaccount.goods (goods_id , product_type_id, post_id) \" +\n \"VALUES ('\" + this.goodID + \"', '\" + this.productRelation.getID() +\n \"', '\" + this.post.getID() + \"');\");\n }\n }",
"public void savePost(VBeatPostModel post) {\n AppLocalDB.getInstance().db.postDao().insertAll(post);\n }"
]
| [
"0.5986511",
"0.57343584",
"0.5698853",
"0.56634164",
"0.56359017",
"0.5495471",
"0.54766834",
"0.5443607",
"0.54186773",
"0.540675",
"0.5376697",
"0.53740305",
"0.5356344",
"0.5313168",
"0.5307734",
"0.52856094",
"0.5266923",
"0.5225843",
"0.5206651",
"0.51996106",
"0.51923144",
"0.51611745",
"0.51532006",
"0.51422745",
"0.513571",
"0.51353717",
"0.5134549",
"0.5105684",
"0.5074469",
"0.5057113",
"0.5056853",
"0.5055585",
"0.5049771",
"0.502594",
"0.50159794",
"0.499411",
"0.49642175",
"0.49531126",
"0.49521723",
"0.4947493",
"0.49395558",
"0.49384743",
"0.49324217",
"0.4932038",
"0.4923745",
"0.4923715",
"0.49205098",
"0.49137557",
"0.49134496",
"0.49100736",
"0.4908896",
"0.48664138",
"0.48659784",
"0.48588654",
"0.48575795",
"0.4856264",
"0.4849936",
"0.48469815",
"0.48342496",
"0.48333818",
"0.4814589",
"0.4807359",
"0.48047185",
"0.47946662",
"0.4789952",
"0.4779272",
"0.4777647",
"0.47775498",
"0.47705945",
"0.47551864",
"0.47544068",
"0.4752167",
"0.47501215",
"0.47486997",
"0.47481894",
"0.47462088",
"0.47452283",
"0.4744978",
"0.47447786",
"0.47446957",
"0.47380137",
"0.47270015",
"0.4726089",
"0.47204205",
"0.47192907",
"0.47117898",
"0.4707037",
"0.47054353",
"0.47028366",
"0.4699353",
"0.46976545",
"0.46958038",
"0.46956462",
"0.469355",
"0.46908292",
"0.4689735",
"0.46892476",
"0.46826327",
"0.46822074",
"0.4677628",
"0.46771917"
]
| 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table post_information | public void or(Criteria criteria) {
oredCriteria.add(criteria);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getPostSQL()\n {\n return _get_imfObject().getPostSQL();\n }",
"public PostRecord() {\n super(PostTable.POST);\n }",
"Forumpost selectByPrimaryKey(Integer postid);",
"PostSaveDTO queryDetailById(String postId);",
"public ArrayList<PostInfo> getPost() throws SQLException {\n ArrayList<PostInfo> postInfoList = new ArrayList<>();\n String sql = \"SELECT * FROM `post` WHERE `status` = 1 ORDER BY `post_time` DESC\";\n statement = connection.createStatement();\n resultSet = statement.executeQuery(sql);\n while (resultSet.next()) {\n postInfoList.add(new PostInfo(resultSet.getInt(\"post_id\"), resultSet.getInt(\"place_id\"), resultSet.getString(\"post_text\"),\n resultSet.getDate(\"post_time\"), resultSet.getInt(\"status\"), resultSet.getInt(\"user_id\"), resultSet.getInt(\"editor_id\")));\n }\n return postInfoList;\n }",
"@SuppressWarnings(\"deprecation\")\n\tpublic void writeTable()\n\t{\n\t\tIterator<WPPost> itr = readValues.iterator();\n\t\t\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\tWPPost post = itr.next();\n\t\t\tPreparedStatement prStm;\n\t\t\tint res = 0;\n\t\t\t\n\t\t\ttry \n\t\t\t{\n\t\t\t\tif(post.getPostDateGMT() == null)\n\t\t\t\t{\n\t\t\t\t\tpost.setPostDateGMT(new Timestamp(0));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(post.getPostModifiedGMT() == null)\n\t\t\t\t{\n\t\t\t\t\tpost.setPostModifiedGMT(new Timestamp(0));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tprStm = conn.prepareStatement(WRITE_STATEMENT);\n\t\t\t\tprStm.setInt(1, post.getId());\n\t\t\t\tprStm.setInt(2, post.getPostAuthor());\n\t\t\t\tprStm.setTimestamp(3, post.getPostDate());\n\t\t\t\tprStm.setTimestamp(4, post.getPostDateGMT());\n\t\t\t\tprStm.setString(5, post.getPostContent());\n\t\t\t\tprStm.setString(6, post.getPostTitle());\n\t\t\t\tprStm.setString(7, post.getPostExcerpt());\n\t\t\t\tprStm.setString(8, post.getPostStatus());\n\t\t\t\tprStm.setString(9, post.getCommentStatus());\n\t\t\t\tprStm.setString(10, post.getPingStatus());\n\t\t\t\tprStm.setString(11, post.getPostPassword());\n\t\t\t\tprStm.setString(12, post.getPostName());\n\t\t\t\tprStm.setString(13, post.getToPing());\n\t\t\t\tprStm.setString(14, post.getPinged());\n\t\t\t\tprStm.setTimestamp(15, post.getPostModified());\n\t\t\t\tprStm.setTimestamp(16, post.getPostModifiedGMT());\n\t\t\t\tprStm.setString(17, post.getPostContentFiltered());\n\t\t\t\tprStm.setInt(18, post.getPostParent());\n\t\t\t\tprStm.setString(19, post.getGuid());\n\t\t\t\tprStm.setInt(20, post.getMenuOrder());\n\t\t\t\tprStm.setString(21, post.getPostType());\n\t\t\t\tprStm.setString(22, post.getPostMimeType());\n\t\t\t\tprStm.setInt(23, post.getCommentCount());\n\t\t\t\t\n\t\t\t\tres = prStm.executeUpdate();\n\t\t\t\t\n\t\t\t\tif(res == 0)\n\t\t\t\t{\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new WriteWPPostException(post.toString());\n\t\t\t\t\t} \n\t\t\t\t\tcatch (WriteWPPostException e) \n\t\t\t\t\t{\n\t\t\t\t\t\t//e.printStackTrace(); // TODO Debug Mode! Delete This!\n\t\t\t\t\t\tthis.rowsWithErrors.add(post);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\t\t\tcatch (SQLException e1) \n\t\t\t{\n\t\t\t\t//e1.printStackTrace(); // TODO Debug Mode! Delete This!\n\t\t\t\tthis.rowsWithErrors.add(post);\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\tpublic List<Post> getAllPost() {\n\t\tString hql = \"from Post\";\r\n\t\treturn (List<Post>) getHibernateTemplate().find(hql);\r\n\t}",
"PmPost selectByPrimaryKey(String postId);",
"public void setPostId(Integer postId) {\n this.postId = postId;\n }",
"public Integer getPostId() {\n return postId;\n }",
"@Override\n\tpublic void getAll() {\n\t\tArrayList<Post> list = new ArrayList<Post>();\n\t\tlist = dao.selectAll();\n\t\t\n\t\tfor (Post p : list) {\n\t\t\tSystem.out.println(p.getPostId() + \".\" + p.getPostName() + \" 작성자:\" + p.getMemberId());\n\t\t}\n\t}",
"public List<detailsofpassengerpost> seedetailslist() throws IOException{\n//connect database\nString resource = \"orm/configuration.xml\";\nReader reader = Resources.getResourceAsReader(resource);\nSqlSessionFactory sessionFactory = new SqlSessionFactoryBuilder().build(reader);\nSqlSession session = sessionFactory.openSession();\n\ntry{\n\tSystem.out.println(\"postID in seeDetails=\"+postID);\npostlist=session.selectList(\"selectPassengerPostByID\",postID);\nSystem.out.println(\"postlist size in seeDetails=\"+postlist.size());\n\n//find passenger's name through his email address\nnumberofapplieddrivers=postlist.get(0).getNumberofapplieddrivers();\npassengeremail=postlist.get(0).getEmail();\npassengerlist=session.selectList(\"selectuserbyemail\", passengeremail);\n\npassengername=passengerlist.get(0).getName();\npassengersex=passengerlist.get(0).getSex();\npassengerdob=passengerlist.get(0).getDob();\n\ndd=new detailsofpassengerpost();\ndetaillist=new ArrayList<detailsofpassengerpost>();\n\ndd.setNeedseats(postlist.get(0).getNeedseats());\ndd.setExpectedcartype(postlist.get(0).getExpectedcartype());\ndd.setDeparture(postlist.get(0).getDeparture());\ndd.setDeparturedate(postlist.get(0).getDeparturedate());\ndd.setDestination(postlist.get(0).getDestination());\ndd.setDob(passengerdob);\ndd.setEmail(passengeremail);\ndd.setEstimatedleavingtime(postlist.get(0).getEstimatedleavingtime());\ndd.setExpectedcost(postlist.get(0).getExpectedcost());\ndd.setMemo(postlist.get(0).getMemo());\ndd.setName(passengername);\ndd.setPostID(postID);\ndd.setSex(passengersex);\ndd.setPhone(postlist.get(0).getPhone());\ndd.setNumberofapplieddrivers(numberofapplieddrivers);\ndetaillist.add(dd);\n\nreturn detaillist;\n\n}finally{\nsession.close();\n}\n}",
"public List<Post> all() throws DataAccessException{\n String sql = \"select posts.id, posts.user_id, users.name, posts.title, posts.content, posts.create_date from posts join users on posts.user_id=users.id\";\n List<Post> posts = this.jdbcTemplate.query(sql, mapper);\n return posts;\n }",
"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}",
"@Override\r\n\tpublic void addPost(Post post) {\n\t\tgetHibernateTemplate().save(post);\r\n\t}",
"@Override\n public HashMap<Integer,_DefaultMessage> loadPost() throws IOException, SQLException, ClassNotFoundException {\n return _DbConnectionManager.getHMPosts(this.dbConnection, this.getName());\n }",
"public String getPostTableName() {\r\n\t\treturn postTableName;\r\n\t}",
"public void setPostId(long postId);",
"public interface CommentMapper {\n\n @Insert(\"insert comment(productId,userId,text,createdAt) values(#{productId},#{userId},#{text},now())\" )\n @Options(useGeneratedKeys = true,keyProperty = \"id\")\n void insertComment(Comment comment);\n\n @Select(\"select * from comment where productId=#{productId}\")\n List<Comment> getCommentByProductId(int productId);\n\n @Delete(\"delete from comment where id = #{id}\")\n void deleteComment(int id);\n\n\n}",
"public interface Post {\n\n\tpublic Long getId();\n\n\tpublic void setId(Long id);\n\n\tpublic Date getDate();\n\n\tpublic void setDate(Date date);\n\n\tpublic String getMessage();\n\n\tpublic void setMessage(String message);\n\n}",
"@Override\r\n\t\tpublic DatabaseMetaData getMetaData() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"public void updatePost(PostInfo postInfo) throws SQLException {\n String sql = \"UPDATE `post` SET `place_id`=?,`post_text`=?,`post_time`=?,`status`=?,`user_id`=?,`editor_id`=? WHERE `post_id` = ?\";\n preparedStatement = connection.prepareStatement(sql);\n preparedStatement.setInt(1, postInfo.getPlace_id());\n preparedStatement.setString(2, postInfo.getPost_text());\n preparedStatement.setDate(3, postInfo.getPost_time());\n preparedStatement.setInt(4, postInfo.getStatus());\n preparedStatement.setInt(5, postInfo.getUser_id());\n preparedStatement.setInt(6, postInfo.getEditor_id());\n preparedStatement.setInt(7, postInfo.getPost_id());\n\n preparedStatement.executeUpdate();\n }",
"public int getPostId() {\r\n\t\treturn postId;\r\n\t}",
"public void deletePost(PostInfo postInfo) throws SQLException {\n String sql = \"UPDATE `post` SET `status`=0 WHERE `post_id` = ?\";\n preparedStatement = connection.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);\n preparedStatement.setInt(1, postInfo.getPost_id());\n\n preparedStatement.executeUpdate();\n }",
"public long getPostId() {\n return postId;\n }",
"@Override\n\tpublic Map<String, String> toSqlMap() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Collection<Tmly> getTmlyInfo() {\n\t\tString sql = \"select ID_,TITLE,CONTENT,state from tmly\";\n\t\tList<Tmly> list = this.jdbcTemplate.query(sql, new RowMapper<Tmly>() {\n\n\t\t\t@Override\n\t\t\tpublic Tmly mapRow(ResultSet result, int i) throws SQLException {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tTmly tmly = new Tmly();\n\t\t\t\ttmly.setId(result.getInt(\"id_\"));\n\t\t\t\ttmly.setTitle(result.getString(\"title\"));\n\t\t\t\ttmly.setContent(result.getString(\"content\"));\n\t\t\t\treturn tmly;\n\t\t\t}\n\n\t\t});\n\t\treturn list;\n\t}",
"public long getPostId();",
"public static ResultSet getPosts(){\n ResultSet result = null;\n try {\n conn = ConnectionProvider.getCon();\n pst = conn.prepareStatement(\"select * from normalposts\");\n result = pst.executeQuery();\n\n System.out.println(\"PostDAO: getting posts\");\n } catch(Exception e) {\n System.out.println(\"PostDAO: unsuccessful query\");\n System.out.println(e);\n }\n return result;\n }",
"@Mapper\npublic interface BlogDAO {\n @Insert(\"INSERT INTO blog(title,uniq,markdown,html, create_time,update_time) \" +\n \"VALUES(#{item.title},#{item.uniq},#{item.markdown},#{item.html},#{item.createTime}, #{item.updateTime})\")\n int insert(\n @Param(\"item\") Blog blog\n );\n\n @Select(\"SELECT id,uniq,title,markdown,html,\" +\n \" create_time as createTime,update_time as updateTime \" +\n \" FROM blog WHERE id = #{id}\")\n Blog getBlogById(@Param(\"id\") String id);\n\n @Insert(\"replace into blog(id,title,uniq,markdown,html, create_time,update_time) \" +\n \"VALUES(#{item.id},#{item.title},#{item.uniq},#{item.markdown},#{item.html},#{item.createTime}, #{item.updateTime})\")\n int update(@Param(\"item\")Blog blog);\n\n @Select(\"SELECT id,uniq,title,\" +\n \" create_time as createTime,update_time as updateTime \" +\n \" FROM blog order by id desc limit #{offset}, #{limit}\")\n List<Blog> getBlogList(@Param(\"offset\")long offset,\n @Param(\"limit\")long limit,\n @Param(\"sort\") String sort);\n}",
"@Test\n public void metaDataExample1() throws SQLException {\n Connection connection = DriverManager.getConnection(dbUrl, dbUsername, dbPassword);\n // 2. Create statement\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n // Run sql query and get the result in resultSet object\n String sqlQuery= \"Select * From departments\";\n //String sqlQuery= \"Select first_name, last_name, salary From employees\";\n ResultSet resultSet = statement.executeQuery(sqlQuery);\n\n // we use resultSet metadata to get information about the tables\n // get the resultSet object metadata\n ResultSetMetaData rsMetadata = resultSet.getMetaData();\n\n // List for keeping all rows as a map\n List<Map<String, Object>> queryData = new ArrayList<>();\n\n // while(resultSet.next()) helps to iterate through columns\n while (resultSet.next()) {\n // key(columns) will be string but value can be any type of data. That's why we choose <String, Object>\n Map<String, Object> row = new HashMap<>(); // creating empty Map\n // number of columns\n int colCount = rsMetadata.getColumnCount();\n // for loop helps to iterate through columns\n for (int i = 1; i <= colCount; i++) {\n row.put(rsMetadata.getColumnName(i), resultSet.getObject(i));\n }\n\n queryData.add(row); // adding a Map to the List of Maps\n }\n\n // Printing the rows\n for (Map<String, Object> row: queryData) {\n System.out.println(row.toString());\n\n }\n\n\n\n\n // close all connections\n resultSet.close();\n statement.close();\n connection.close();\n }",
"public String toSql() {\t\n int n;\t\n void a;\t\n StringBuilder a2 = new StringBuilder();\t\n Table table = MapperHelper.getTable(this.entity);\t\n a2.append(MapperHelper.getTableName((Table)a, this.entity) + \" \" + a.alias());\t\n JoinTable[] arrjoinTable = a.joinTable();\t\n int n2 = arrjoinTable.length;\t\n int n3 = n = 0;\t\n while (n3 < n2) {\t\n JoinTable a3 = arrjoinTable[n];\t\n Table a4 = MapperHelper.getTable(a3.entity());\t\n a2.append(new StringBuilder().insert(0, \" \").append(a3.type().value()).append(\" \").toString());\t\n a2.append(new StringBuilder().insert(0, MapperHelper.getTableName(a4, this.entity)).append(\" \").append(a3.alias()).toString());\t\n a2.append(new StringBuilder().insert(0, \" ON \").append(a3.on()).toString());\t\n n3 = ++n;\t\n }\t\n StringBuilder stringBuilder = a2;\t\n stringBuilder.append(MapperHelper.getSqlMapValue(this.entity, a.extFromKeys()));\t\n return stringBuilder.toString();\t\n }",
"List<PostInfo> getPostList();",
"TypedKeyValue<String, Integer> getDestinationInfo(String sql);",
"public void setPostId(int postId) {\r\n\t\tthis.postId = postId;\r\n\t}",
"public List<PostEntry> savePost(String username, int postid, String title, String body){\n Connection c = null;\n PreparedStatement ps = null; \n ResultSet rs = null;\n\n boolean ret = true;\n\n //check if postid exists.\n if(postid>0 && findPost(username, postid)==null){\n return null;\n }\n try {\n //Get connection\n c = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/CS144\", \"cs144\", \"\");\n int changed;\n if(postid>0){\n //UPDATE\n System.out.println(\"update post!\");\n ps = c.prepareStatement(\"UPDATE Posts SET title=?, body=?, modified=? WHERE username=? AND postid=?\");\n ps.setString(1, title);\n ps.setString(2, body);\n ps.setTimestamp(3, new Timestamp(System.currentTimeMillis())); //set modified to current time\n ps.setString(4, username);\n ps.setInt(5, postid);\n\n changed = ps.executeUpdate();\n }\n else {\n //get largest postid and add 1 to get newID\n\n System.out.println(\"new post!\");\n ps = c.prepareStatement(\"SELECT MAX(postid) FROM Posts WHERE username=?\");\n ps.setString(1, username);\n\n rs = ps.executeQuery();\n int newID = 1;\n if(rs.next()){\n newID = rs.getInt(1) + 1;\n }\n ps.close();\n\n ps = c.prepareStatement(\"INSERT INTO Posts (username, postid, title, body, modified, created) VALUES(?,?,?,?,?,?)\");\n ps.setString(1, username);\n ps.setInt(2, newID);\n ps.setString(3, title);\n ps.setString(4, body);\n ps.setTimestamp(5, new Timestamp(System.currentTimeMillis())); //set modified to current time\n ps.setTimestamp(6, new Timestamp(System.currentTimeMillis())); //set created to current time\n \n changed = ps.executeUpdate();\n }\n\n if(changed==0){\n ret = false;\n }\n\n } catch(SQLException e){\n //error handling\n System.out.println(\"SQLException caught.\");\n e.printStackTrace();\n } finally {\n //just need to close all\n try { rs.close(); } catch (Exception e) { /* ignored */ }\n try { ps.close(); } catch (Exception e) { /* ignored */ }\n try { c.close(); } catch (Exception e) { /* ignored */ }\n }\n\n //return list data\n if(ret)\n return findList(username);\n else\n return null;\n }",
"public long ashirPostCreating(AshirBlogPostingHelper post) {\n long result;\n\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(Col_2, post.getPost());\n values.put(Col_3, post.getImage());\n //inserting valuse into table columns\n result = db.insert(NAME_OF_TABLE, null, values);\n db.close();\n return result;\n\n }",
"public void setPostTableName(String postTableName) {\r\n\t\tthis.postTableName = postTableName;\r\n\t}",
"@Override\n\t\tprotected void postUpdate(EspStatusDTO t) throws SQLException {\n\t\t\t\n\t\t}",
"String getPostDeclareSql();",
"public void setPostId(int postId) {\n\t\tthis.postId = postId;\n\t}",
"@Override\n public Entity configuracion(Entity e) throws SQLException {\n return null;\n }",
"void setPostId(int postId);",
"int getPostId();",
"@Override\r\n\tpublic Post searchInfById(Post post2) {\n\t\tpostDao=new PostDaoImpl(TransactionManager.connection);\r\n\t\tResultSet resultSet=postDao.selectById(post2);\r\n\t\tPost post=new Post();\r\n\t\ttry {\r\n\t\t\tif(resultSet.next()) {\r\n\t\t\t\tpost.setPostId(resultSet.getInt(1));\r\n\t\t\t\tpost.setPostName(resultSet.getString(3));\r\n\t\t\t\tpost.setUserId(resultSet.getInt(2));\r\n\t\t\t\tpost.setPostProperty(resultSet.getInt(4));\r\n\t\t\t\tpost.setPostEnterNum(resultSet.getInt(5));\r\n\t\t\t\tpost.setPostTime(resultSet.getDate(6));\r\n\t\t\t\tpost.setPostScore(resultSet.getDouble(7));\r\n\t\t\t\tpost.setScoreCount(resultSet.getInt(8));\r\n\t\t\t\tpost.setLastComTime(resultSet.getDate(9));\r\n\t\t\t\tpost.setResId(resultSet.getInt(10));\r\n\t\t\t\tpost.setResPath(resultSet.getString(12));\r\n\t\t\t\tpost.setUserName(resultSet.getString(14));\r\n\t\t\t\tpost.setUserLevel(resultSet.getInt(16));\r\n\t\t\t\tpost.setUserStatus(resultSet.getInt(17));\r\n\t\t\t\tpost.setPropertyName(resultSet.getString(19));\r\n\t\t\t\tpost.setLocation(resultSet.getString(22));\r\n\t\t\t\tpost.setPhone(resultSet.getString(23));\r\n\t\t\t\tpost.setPostCode(resultSet.getInt(24));\r\n\t\t\t\tpost.setEmail(resultSet.getString(25));\r\n\t\t\t\tpost.setGender(resultSet.getString(26));\r\n\t\t\t\tpost.setHobby(resultSet.getString(27));\r\n\t\t\t\tpost.setMajor(resultSet.getString(28));\r\n\t\t\t\tpost.setScore(resultSet.getInt(29));\r\n\t\t\t\tpost.setNickName(resultSet.getString(30));\r\n\t\t\t\tpost.setUserRegion(resultSet.getString(31));\r\n\t\t\t\tpost.setUserPhoto(resultSet.getString(32));\r\n\t\t\t\tpost.setComCount(resultSet.getInt(39));\r\n\t\t\t\t\r\n\t\t\t\treturn post;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\treturn null;\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\treturn null;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"@Mapper\npublic interface QuestionDAO {\n String TABLE_NAME = \" question \";\n String INSERT_FIELDS = \" title, content, created_date, user_id, comment_count \";\n String SELECT_FIELDS = \" id, \" + INSERT_FIELDS;\n\n @Insert({\"insert into \", TABLE_NAME, \"(\", INSERT_FIELDS,\n \") values (#{title},#{content},#{createdDate},#{userId},#{commentCount})\"})\n int addQuestion(Question question);\n\n // 使用 xml 配置文件进行 数据库查询语句与程序接口的映射。\n // 对应的 QuestionDAO.xml 文件位于 resources 文件夹 -》com.mattLearn.dao 文件夹中。\n List<Question> selectLatestQuestions(@Param(\"userId\") int userId, @Param(\"offset\") int offset,\n @Param(\"limit\") int limit);\n\n @Select({\"select \", SELECT_FIELDS, \" from \", TABLE_NAME, \" where id=#{id}\"})\n Question SelectById(int id);\n\n @Update(\" update question set comment_count=#{commentCount} where id = #{id}\")\n int updateCommentCount(@Param(\"commentCount\") int commentCount,\n @Param(\"id\") int id);\n\n}",
"@Override\n public ColumnInfo getColumnInfo() {\n return columnInfo;\n }",
"public Integer getPostType() {\n return postType;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<Post> getPostsOf(int postId){\n \t\tList<Post> postList = null;\n\t\tCriteria query = null;\n\t\ttry {\n\t\t\t\n\t\t\t query = getCurrentSession().createCriteria(Post.class);\n\t\t\t \n\t\t\t query.createAlias(\"this.orgperson\", \"author\") \n\t\t\t .createAlias(\"author.personid\",\"authorPerson\")\n\t\t\t \t .createAlias(\"this.postcategories\", \"postcategories\")\n\t\t\t \t .createAlias(\"postcategories.category\", \"category\")\n\t\t\t \t .createAlias(\"this.postskills\", \"postskills\")\n\t\t\t \t .createAlias(\"postskills.skill\", \"skill\")\n\t\t\t \t .createAlias(\"this.posttags\", \"posttags\")\n\t\t\t \t .createAlias(\"posttags.tag\", \"tag\");\n\t\t\t \n\t\t\t query.add(Restrictions.eq(\"this.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"author.orgpersonstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"authorPerson.personstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"postcategories.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"category.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"postskills.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"skill.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"posttags.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"tag.status\", \"A\")) \n\t\t\t \t .add(Restrictions.eq(\"this.id\", postId));\n\t\t\t \n\t\t\t query.setProjection(Projections.projectionList()\n\t\t\t\t\t \n\t\t\t\t\t //post\n\t\t\t\t\t .add(Projections.property(\"this.id\").as(\"post_id\"))\n\t\t\t\t\t .add(Projections.property(\"this.title\").as(\"post_title\"))\n\t\t\t\t\t .add(Projections.property(\"this.content\").as(\"post_content\")) \n\t\t\t\t\t .add(Projections.property(\"this.bannerpath\").as(\"post_bannerpath\"))\n\t\t\t\t\t .add(Projections.property(\"this.commentable\").as(\"post_commentable\"))\n\t\t\t\t\t .add(Projections.property(\"this.date\").as(\"post_date\"))\n\t\t\t\t\t .add(Projections.property(\"this.media\").as(\"post_media\")) \n\t\t\t\t\t .add(Projections.property(\"this.status\").as(\"post_status\")) \n\t\t\t\t\t //authorperson\n\t\t\t\t\t .add(Projections.property(\"authorPerson.personid\").as(\"authorPersonPersonId\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.firstName\").as(\"authorPersonFirstName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.lastName\").as(\"authorPersonLastName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.middleName\").as(\"authorPersonmiddleName\")) \n\t\t\t\t\t //category\n\t\t\t\t\t .add(Projections.property(\"category.id\").as(\"categoryId\")) \n\t\t\t\t\t .add(Projections.property(\"category.name\").as(\"categoryName\")) \n\t\t\t\t\t //skill\n\t\t\t\t\t .add(Projections.property(\"skill.id\").as(\"skillId\")) \n\t\t\t\t\t .add(Projections.property(\"skill.name\").as(\"skillName\")) \n\t\t\t\t\t//tag\n\t\t\t\t\t .add(Projections.property(\"tag.id\").as(\"tagId\")) \n\t\t\t\t\t .add(Projections.property(\"tag.name\").as(\"tagName\")) \n\t\t\t\t\t \n\t\t\t\t\t ); \n\t\t\t \n\t\t\t postList = query.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP).list(); \n\t\t\t \t \t \n\t\t} catch (Exception e) {\n\t\t\tpostServiceLogger.error(\"error in PostService for getPostsOf()\",e);\n\t\t} \n\t\treturn postList;\n\t}",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n response.setCharacterEncoding(\"UTF-8\");\n request.setCharacterEncoding(\"UTF-8\");\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"Ghosttales_PU\");\n EntityManager em = emf.createEntityManager();\n HttpSession session = request.getSession();\n \n \n //String file = request.getParameter(\"file\");\n \n \n String content = request.getParameter(\"content\");\n // String content = \"oiadjioajdoiajdiajsi\";\n System.out.println(\"---1---\");\n String title = request.getParameter(\"title\");\n String author = (String) session.getAttribute(\"userr\");\n UserInfo u = em.find(UserInfo.class, author);\n LocalDate today = LocalDate.now();\n \n System.out.println(u.getUsername());\n \n// if(content != null && title !=null) {\n\n // String sql2 = \"SELECT COUNT(p) FROM Post p\";\n String sql2 =\"SELECT p.postId FROM Post p\";\n Query q = em.createQuery(sql2);\n \n List <Post>ps =q.getResultList() ;\n \n \n \n// long countt = (long)q.getSingleResult();\n// int count = (int) countt+1;\n \n \n Post post = new Post(); \n int num = ps.size();\n if(num==0){\n int countt = num+1 ;\n int count = countt;\n post.setPostId(count);\n session.setAttribute(\"num\",count);\n }else{\n int countt = (int) q.getResultList().get(num-1);\n int count = countt+1;\n System.out.println(num);\n System.out.println(countt);\n System.out.println(count);\n post.setPostId(count);\n session.setAttribute(\"num\",count);\n }\n \n post.setTitle(title);\n post.setContent(content);\n post.setCreateTime(java.sql.Date.valueOf(today));\n post.setUpdateTime(null);\n post.setTotallike(0);\n post.setTotalcomment(0);\n post.setUserinfousername(u);\n System.out.println(\"-----2-----\");\n \n \n \n em.getTransaction().begin();\n em.persist(post);\n em.getTransaction().commit();\n \n \n \n \n \n session.setAttribute(\"show\", post);\n \n \n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"post\", post.getContent());\n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"title\", post.getTitle());\n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"author\", post.getUserinfousername().toString());\n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"day\", post.getCreateTime());\n \n \n\n request.getRequestDispatcher(\"/addimage.jsp\").forward(request, response);\n\n }",
"Achievements getPostDetails();",
"public int getDataid_postingBisnis() {\r\n return Dataid_postingBisnis;\r\n }",
"public CustomSql getCustomSqlInsert();",
"@Override\n\tpublic Post createPost(Post post) {\n\t\treturn postDao.createPost(post);\n\t}",
"int insert(PmPost record);",
"@Override\r\n\tpublic void updatePost(Post post) {\n\t\tPost p = getPostById(post.getPost_id());\r\n\t\tp.setDepartment(post.getDepartment());\r\n\t\tp.setDescription(post.getDescription());\r\n\t\tp.setEmployeeSet(post.getEmployeeSet());\r\n\t\tp.setPost_id(post.getPost_id());\r\n\t\tp.setPost_name(post.getPost_name());\r\n\t\tp.setPost_wage(post.getPost_wage());\r\n\t\tgetHibernateTemplate().update(p);\r\n\t}",
"@Override\n\tpublic JDBCMetaData getMetaData() throws SQLException {\n\t\treturn null;\n\t}",
"public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}",
"Integer getDomainTemplateColumn();",
"private void writeMetaData(ResultSet resultSet) throws SQLException {\n\t System.out.println(\"The columns in the table are: \");\r\n\t System.out.println(\"Table: \" + resultSet.getMetaData().getTableName(1));\r\n\t for (int i = 1; i<= resultSet.getMetaData().getColumnCount(); i++){\r\n\t System.out.println(\"Column \" +i + \" \"+ resultSet.getMetaData().getColumnName(i));\r\n\t }\r\n\t }",
"@SuppressWarnings(\"HardCodedStringLiteral\")\npublic interface MyPostsColumn {\n @DataType(INTEGER)\n @PrimaryKey\n String KEY_SQL_ID = \"sql_id\";\n\n @DataType(TEXT)\n @NotNull @Unique\n String KEY_ID = \"_id\";\n\n @DataType(TEXT)\n String KEY_AUTHOR = \"author\";\n\n @DataType(TEXT)\n @NotNull\n String KEY_SUBREDDIT_ID = \"subreddit_id\";\n\n @DataType(TEXT)\n @NotNull\n String KEY_SUBREDDIT = \"subreddit\";\n\n @DataType(INTEGER)\n String KEY_UPS = \"ups\";\n\n @DataType(TEXT)\n String KEY_TITLE = \"title\";\n\n @DataType(INTEGER)\n String KEY_COMMENTS_COUNT = \"comments_count\";\n\n @DataType(INTEGER)\n String KEY_CREATED_UTC = \"created_utc\";\n\n @DataType(INTEGER)\n String KEY_CREATED = \"created\";\n\n @DataType(TEXT)\n @NotNull\n String KEY_NAME = \"name\";\n\n @DataType(INTEGER)\n @NotNull\n String KEY_CLICKED = \"clicked\";\n\n @DataType(INTEGER)\n String KEY_LIKES = \"likes\"; //CAN BE NULL\n\n @DataType(TEXT)\n String KEY_DOMAIN = \"domain\";\n\n @DataType(INTEGER)\n String KEY_IS_SELF = \"is_self\";\n\n @DataType(INTEGER)\n @NotNull\n String KEY_OVER_18 = \"over_18\";\n\n @DataType(TEXT)\n String KEY_PERMALINK = \"permalink\";\n\n @DataType(TEXT)\n String KEY_POST_HINT = \"post_hint\";\n\n @DataType(INTEGER)\n String KEY_SCORE = \"score\";\n\n @DataType(TEXT)\n String KEY_THUMBNAIL = \"thumbnail\";\n\n @DataType(TEXT)\n String KEY_URL = \"url\";\n\n @DataType(INTEGER)\n String KEY_VISITED = \"visited\";\n\n @DataType(INTEGER)\n String KEY_LOCKED = \"locked\";\n\n @DataType(TEXT)\n String KEY_MEDIA_OEMBED_TYPE = \"media_oembed_type\";\n\n @DataType(TEXT)\n String KEY_BIG_IMAGE_URL = \"big_image_url\";\n\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_POST = \"type_post\";\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_SEARCH = \"type_search\";\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_WIDGET = \"type_widget\";\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_TEMP = \"type_temp\";\n\n\n\n}",
"public void queryPostTable(Context activityContext, String postTableName) {\n new GetCursorTablePost(activityContext).execute(postTableName);\n }",
"@Override\n\tpublic void updateAllPostNowTipBySid(String Id, CodeInfo codeInfo) {\n\t\tQuery query = this.currentSession().createQuery(\"update com.wondersgroup.human.bo.pubinst.PtPost set tenureStatus = :nowPostSign where publicInstitution.id = :Id\");\n\t\tquery.setParameter(\"nowPostSign\", codeInfo);\n\t\tquery.setParameter(\"Id\",Id);\n\t\tquery.executeUpdate();\n\t\t\n\t}",
"public interface IBasicPost {\n Long getId();\n String getTitle();\n String getDescription();\n long getCreatedDate();\n long getUpdatedDate();\n Integer getCityId();\n Long getUserId();\n Integer getUserLikeCount();\n Integer getUserCommentCount();\n String getUserFirstName();\n}",
"@RequestMapping(value = \"fetch-health-tips\", method = RequestMethod.POST)\n private List<HealthPost> fetchHealthTips() {\n SessionService.sessionBuilder(session -> {\n healthPostList = session.createQuery(\"from HealthPost order by id desc\", HealthPost.class).list();\n });\n return healthPostList;\n }",
"@Override\n\tpublic void getPost(Scanner sc) {\n\t\tPost p;\n\t\tgetAll();\n\t\tSystem.out.print(\"보고 싶은 리뷰의 번호를 입력해 주세요 >>\");\n\t\tp = dao.selectPost(sc.nextInt());\n\t\tSystem.out.println(p.getPostName());\n\t\tSystem.out.println(p.getContent());\n\t}",
"public interface BasePostPoMapper extends feihua.jdbc.api.dao.CrudDao<BasePostPo, String> {\n\n java.util.List<BasePostPo> searchBasePosts(SearchPostsConditionDsfDto dto);\n}",
"@Override\n public DatabaseMetaData getMetaData() throws SQLException\n {\n logger.debug(\n \" public DatabaseMetaData getMetaData() throws SQLException\");\n\n return new SnowflakeDatabaseMetaData(this);\n }",
"public List<MediumBean> populatemediam(String sql ){\n\t\t\t\tList<MediumBean> retlist = jdbcTemplate.query(sql,ParameterizedBeanPropertyRowMapper.newInstance(MediumBean.class));\n\t\t\t\t\treturn retlist;\n\t\t }",
"public boolean addPost(Post post) throws SQLException\n {\n boolean isAdded=false;\n try\n {\n database = dbH.getReadableDatabase();\n dbH.openDataBase();\n ContentValues values = new ContentValues();\n values.put(\"postBody\", post.getPostBody());\n values.put(\"postedBy\", post.getPostedBy());\n values.put(\"postedAt\", post.getPostedAt());\n values.put(\"postID\", post.getPostID());\n values.put(\"image\" , post.getBitmap());\n\n isAdded=database.insert(\"Post\", null, values)>0;\n\n }\n catch(SQLException e)\n {\n e.printStackTrace();\n }\n finally{\n if(database!=null && database.isOpen())\n dbH.close();\n }\n return isAdded;}",
"@Query(\"SELECT * FROM \" + TABLE_NAME)\n List<Note> getNotes();",
"@Override\r\n\tprotected Entity getEntityByFields() throws SQLException {\n\t\t\r\n\t\tint id = rs.getInt(\"id\");\r\n\t\tint productId = rs.getInt(\"id_product\");\r\n\t\tString productName = super.getString(\"productName\");\t// From INNER JOIN\r\n\t\tString productUnit = super.getString(\"productUnit\");\t// From INNER JOIN\r\n\t\tfloat quantity = rs.getFloat(\"quantity\");\r\n\t\tfloat price = rs.getFloat(\"price\");\r\n\t\tfloat summa = rs.getFloat(\"summa\");\r\n\t\t\r\n\t\treturn new DocInvoiceItem(id, productId, productName, productUnit, quantity, price, summa);\r\n\t}",
"public PostInformationExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"@Override\r\n\tpublic BaseBean insertSQL(String sql, Connection con) {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic List<Post> getPostByName(String name) {\n\t\tString hql = \"from Post p where p.post_name =?\";\r\n\t\treturn (List<Post>) getHibernateTemplate().find(hql, name);\r\n\t}",
"public String getGeneratedSql() {\n/* 142 */ return this.sql;\n/* */ }",
"@Override\n\tpublic void insertIPODetail(IPODetail ipo) throws SQLException {\n\t\t\n\t}",
"@Override\n\tpublic Map<String, String[]> loadColumnMetas(String databaseName) throws SQLException {\n\t\tString sql=\"select utc.*,UCC.comments from user_tab_columns utc\\n\" + \n\t\t\t\t\"left join user_col_comments ucc on UCC.table_name=UTC.table_name and UCC.column_name=UTC.column_name\";\n\t\tMap<String, String[]> ret=new HashMap<>();\n\t\t try(PreparedStatement preparedStatement= connection.prepareStatement(sql);\n\t \t\tResultSet resultSet=preparedStatement.executeQuery();){\n\t\t\twhile(resultSet.next()) {\n\t\t\t\tString tableName=resultSet.getString(\"TABLE_NAME\")\n\t\t\t\t\t\t,columnName=resultSet.getString(\"COLUMN_NAME\")\n\t\t\t\t\t\t,dataLength=resultSet.getString(\"DATA_LENGTH\")\n\t\t ,nullable=resultSet.getString(\"NULLABLE\")\n\t\t ,comments=resultSet.getString(\"COMMENTS\")\n\t\t\t\t\t\t;\n\t\t\t\tString key=tableName+\":\"+columnName;\n\t\t\t\tret.put(key, new String[] {dataLength,nullable,comments});\n\t\t\t\t\n\t\t\t}\n\t }\n\t\t\n\t\treturn ret;\n\t}",
"void processMetaData(ResultSet rs) throws SQLException;",
"@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }",
"@Dao\npublic interface PostDao {\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n void insertPost(iPost iPosts);\n\n @Update\n void updatePost(iPost iPost);\n\n @Delete\n void deletePost(iPost iPost);\n\n @Query(\"SELECT * FROM iPost\")\n List<iPost> getAllPosts();\n\n @Query(\"SELECT * FROM iPost WHERE idThread=:threadId\")\n List<iPost> findPostsByThread(final int threadId);\n\n @Transaction\n @Query(\"SELECT * FROM iPost WHERE idThread=:threadId\")\n Single<List<PostsHelper>> getPostsFromThread(String threadId);\n}",
"protected String getSqlTable() {\n\t\treturn \"Project\";\n\t}",
"public void formDatabaseTable() {\n }",
"void savePost(Post post);",
"public CustomSql getCustomSqlUpdate();",
"@Override\n\tprotected String getCreateSql() {\n\t\treturn null;\n\t}",
"private static void showsSqlSelectOnNormalEntityBean() {\n\n\t\tQuery<Bug> query = Ebean.createQuery(Bug.class, \"simple\");\n\t\tquery.where().eq(\"status.code\", \"ACTIVE\");\n\n\t\tList<Bug> list = query.findList();\n\n\t\tSystem.out.println(list);\n\t\t\n\t\tfor (Bug bug : list) {\n\t\t\tString body = bug.getBody();\n\t\t\tSystem.out.println(body);\n\t\t}\n\n\t}",
"public interface AlmacenMapper {\n @Select(value = \"select tipo,descripcion from tipoproducto\")\n @Results(value = {\n @Result(javaType = Producto.class),\n @Result(property = \"tipo\",column = \"tipo\"),\n @Result(property = \"descripcion\",column = \"descripcion\"),\n })\n List<Producto> listarTipoProducto();\n\n @Insert(value = \"INSERT \" +\n \"INTO producto \" +\n \" ( \" +\n \" codigo, \" +\n \" nombre, \" +\n \" tipo, \" +\n \" porc_precio, \" +\n \" uni_medida, \" +\n \" cantidad \" +\n \" ) \" +\n \" VALUES \" +\n \" ( \" +\n \" producto_seq.nextval, \" +\n \" #{produ.nombre}, \" +\n \" #{produ.tipo}, \" +\n \" #{produ.porc_precio}, \" +\n \" #{produ.uni_medida}, \" +\n \" #{produ.cantidad} \" +\n \" )\")\n void GuardarProducto(@Param(\"produ\") Producto producto);\n\n @Select(value = \"SELECT codigo, \" +\n \" nombre, \" +\n \" p.tipo, \" +\n \" tp.descripcion, \" +\n \" porc_precio, \" +\n \" uni_medida, \" +\n \" cantidad \" +\n \"FROM producto p \" +\n \"INNER JOIN tipoproducto tp \" +\n \"ON(p.tipo=tp.tipo)\")\n @Results(value = {\n @Result(javaType = Producto.class),\n @Result(property = \"codigo\",column = \"codigo\"),\n @Result(property = \"nombre\",column = \"nombre\"),\n @Result(property = \"tipo\",column = \"tipo\"),\n @Result(property = \"descripcion\",column = \"descripcion\"),\n @Result(property = \"porc_precio\",column = \"porc_precio\"),\n @Result(property = \"uni_medida\",column = \"uni_medida\"),\n @Result(property = \"cantidad\",column = \"cantidad\"),\n })\n List<Producto> listarProductos();\n\n @Update(value =\"UPDATE producto \" +\n \"SET nombre =#{produ.nombre}, \" +\n \" porc_precio=#{produ.porc_precio}, \" +\n \" tipo= \" +\n \" #{produ.tipo} \" +\n \"WHERE codigo=#{produ.codigo}\" )\n void ActualizarProducto(@Param(\"produ\") Producto producto);\n\n @Delete(value=\"DELETE FROM PRODUCTO WHERE codigo=#{id}\")\n void EliminarProducto(@Param(\"id\") Integer id);\n\n @Select(value = \"SELECT codigo, \" +\n \" nombre \" +\n \"FROM producto p where tipo=#{id} \")\n @Results(value = {\n @Result(javaType = Producto.class),\n @Result(property = \"codigo\",column = \"codigo\"),\n @Result(property = \"nombre\",column = \"nombre\"),\n })\n List<Producto> ListarProductosxCategoria(@Param(\"id\") Integer id);\n\n @Insert(value = \"INSERT \" +\n \"INTO entrada_productos \" +\n \" ( \" +\n \" n_entrada, \" +\n \" fecha, \" +\n \" costo_total \" +\n \" ) \" +\n \" VALUES \" +\n \" ( \" +\n \" entrada_seq.nextval , \" +\n \" sysdate, \" +\n \" #{entrada.costo_total} \" +\n \" )\")\n void insertEntradaProducto(@Param(\"entrada\") EntradaProducto entrada);\n\n @Insert(value = \"INSERT \" +\n \"INTO detalle_entrada_productos \" +\n \" ( \" +\n \" N_ENTRADA, \" +\n \" COD_PRODUCTO, \" +\n \" COD_PROVEEDOR, \" +\n \" CANTIDAD, \" +\n \" PRECIO_COMPRA, \" +\n \" COSTO_TOTAL_PRODUCTO \" +\n \" ) \" +\n \" VALUES \" +\n \" ( \" +\n \" (select max(n_entrada) from entrada_productos), \" +\n \" #{entrada.cod_producto}, \" +\n \" #{entrada.cod_proveedor}, \" +\n \" #{entrada.cantidad}, \" +\n \" #{entrada.precio_compra}, \" +\n \" #{entrada.costo_total_producto} \" +\n \" )\")\n void inserDetalleEntradaProductos(@Param(\"entrada\") EntradaProducto entrada);\n\n @Update(value =\"UPDATE producto \" +\n \"SET cantidad=(select cantidad+#{entrada.cantidad} from producto where codigo=#{entrada.cod_producto}) \"+\n \"WHERE codigo=#{entrada.cod_producto}\" )\n void updateStockProducto(@Param(\"entrada\")EntradaProducto entrada);\n}",
"@Override //插入通知\n\tpublic void insertPoInfo(PageData pd) throws Exception {\n\t\tdao.save(\"PoInfoMapper.insertPoInfo\", pd);\n\t}",
"public PostRecord(Integer id, Integer userId, String title, String body, String date) {\n super(PostTable.POST);\n\n set(0, id);\n set(1, userId);\n set(2, title);\n set(3, body);\n set(4, date);\n }",
"public interface BugsActivityDAO {\n\n @Insert(\"insert into firefox_bugs_activity \" +\n \"(`bugId`,`who`,`when`,`what`,`removed`,`added`,`crawledTime`) \" +\n \"values (#{bugId},#{who},#{when},#{what},#{removed},#{added},#{crawledTime})\")\n public int add(BugsActivity fireFoxBugsActivity);\n\n @Insert(\"insert into firefox_bugs_activity_html (`bugId`,`html`) \" +\"values (#{bugId},#{html})\")\n public int addHtml(BugsActivity fireFoxBugsActivity);\n}",
"@Override\n\tpublic List<Map<String, Object>> getNoticeLast() {\n\t\tStringBuffer querySQL = new StringBuffer(\n\t\t\t\t\"select ifnull(title,'') title,ifnull(static_page,'') static_page from notice where status = 1 order by crdate desc limit 4\");\n\t\t// StringBuffer querySQL2 = new StringBuffer(\n\t\t// \"select count(1) from notice where status = 1 order by crdate desc limit 1\");\n\t\t// if (jdbcTemplate.queryForInt(querySQL2.toString()) > 0) {\n\t\treturn jdbcTemplate.queryForList(querySQL.toString());\n\t\t// }\n\t\t// return null;\n\n\t}",
"@Override\n public Jurusan mapRow(ResultSet rs, int rowNum) throws SQLException {\n Jurusan jurusan=new Jurusan();\n jurusan.setId(rs.getInt(\"id\"));\n jurusan.setNama(rs.getString(\"nama\"));\n jurusan.setIdFakultas(rs.getInt(\"idFakultas\"));\n\n\n Fakultas fakultas=new Fakultas();\n fakultas.setId(rs.getInt(\"idFakultas\"));\n fakultas.setNama(rs.getString(\"namaFakultas\"));\n jurusan.setFakultas(fakultas);\n return jurusan;\n }",
"public interface BugPlatformMapper {\n\n\n @Select(\"SELECT js.pname as bugResolutionStatus, COUNT(js.pname) as bugNum FROM jiraissue ji INNER JOIN project pr ON pr.ID = ji.PROJECT LEFT JOIN issuestatus js ON ji.issuestatus = js.ID where pr.ID in (#{2}) and issuetype = 1 AND CREATED between #{0} and #{1} group by js.pname\")\n List<BugPlatformObject> getList(String startDate,String endDate,String project);\n}",
"@Override\n @Transactional\n public void onSubmit() {\n ValueMap values = getModelObject();\n\n // check if the honey pot is filled\n if (StringUtils.isNotBlank((String)values.get(\"comment\")))\n {\n error(\"Caught a spammer!!!\");\n return;\n }\n // Construct a copy of the edited comment\n Snip snip = new Snip();\n SnipMeta meta= new SnipMeta();\n\n logger.info(this.getDefaultModel().toString());\n\n logger.info(((List<String>) values.get(\"select_all\")).toString());\n\n meta.setTags((ArrayList<String>)values.get(\"select_all\"));\n meta.setDescription((String) values.get(\"meta\"));\n\n\n // Set date of comment to add\n snip.setDate(new Date());\n snip.setCode((String)values.get(\"code\"));\n snipList.add(0, snip); //TODO: eliminare lo show di tutti gli snipp da snipList magari con una FIFO\n meta.setSnip(snip);\n\n\n //--------- get session ad manager ------\n MyAuthenticatedWebSession app_session = MyAuthenticatedWebSession.getYourAppSession();\n logger.info(\"web session is: \"+app_session.toString());\n EntityManager em = app_session.getEntityManager();\n //---------------------------------------------------\n\n Users tmp_id = em.find(Users.class ,app_session.getAttribute(\"user\"));\n //snip.setUser(app_session.getCurrentUser()); --less network more backend\n snip.setUser(tmp_id);\n em.getTransaction().begin();\n em.setFlushMode(COMMIT);\n em.persist(snip);\n em.persist(meta);\n em.flush();\n em.getTransaction().commit();\n\n\n // Clear out the text component\n values.put(\"code\", \"\");\n }",
"@Insert({\n \"insert into kd_user_medal (id, userid, \",\n \"medalId, bindUserid, \",\n \"remark, createTime)\",\n \"values (#{id,jdbcType=BIGINT}, #{userid,jdbcType=BIGINT}, \",\n \"#{medalid,jdbcType=BIGINT}, #{binduserid,jdbcType=BIGINT}, \",\n \"#{remark,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP})\"\n })\n int insert(KDUserMedal record);",
"@Override\n\tpublic String addOrUpdate(Map<String, Object> entityMap)\n\t\t\tthrows DataAccessException {\n\t\treturn null;\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<Post> getPostsOf(int postId , int userId){\n\t\t\n\t\tList<Post> postList = null;\n\t\tCriteria query = null;\n\t\ttry {\n\t\t\t\n\t\t\t query = getCurrentSession().createCriteria(Post.class);\n\t\t\t \n\t\t\t query.createAlias(\"this.orgperson\", \"author\") \n\t\t\t .createAlias(\"author.personid\",\"authorPerson\")\n\t\t\t \t .createAlias(\"this.postcategories\", \"postcategories\")\n\t\t\t \t .createAlias(\"postcategories.category\", \"category\")\n\t\t\t \t .createAlias(\"this.postskills\", \"postskills\")\n\t\t\t \t .createAlias(\"postskills.skill\", \"skill\")\n\t\t\t \t .createAlias(\"this.posttags\", \"posttags\")\n\t\t\t \t .createAlias(\"posttags.tag\", \"tag\");\n\t\t\t \n\t\t\t query.add(Restrictions.eq(\"this.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"author.orgpersonstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"authorPerson.personstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"postcategories.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"category.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"postskills.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"skill.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"posttags.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"tag.status\", \"A\")) \n\t\t\t \t .add(Restrictions.eq(\"this.id\", postId))\n\t\t\t \t .add(Restrictions.eq(\"author.orgpersonid\", userId));\n\t\t\t \n\t\t\t query.setProjection(Projections.projectionList()\n\t\t\t\t\t \n\t\t\t\t\t //post\n\t\t\t\t\t .add(Projections.property(\"this.id\").as(\"post_id\"))\n\t\t\t\t\t .add(Projections.property(\"this.title\").as(\"post_title\"))\n\t\t\t\t\t .add(Projections.property(\"this.content\").as(\"post_content\")) \n\t\t\t\t\t .add(Projections.property(\"this.bannerpath\").as(\"post_bannerpath\"))\n\t\t\t\t\t .add(Projections.property(\"this.commentable\").as(\"post_commentable\"))\n\t\t\t\t\t .add(Projections.property(\"this.date\").as(\"post_date\"))\n\t\t\t\t\t .add(Projections.property(\"this.media\").as(\"post_media\")) \n\t\t\t\t\t .add(Projections.property(\"this.status\").as(\"post_status\")) \n\t\t\t\t\t //authorperson\n\t\t\t\t\t .add(Projections.property(\"authorPerson.personid\").as(\"authorPersonPersonId\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.firstName\").as(\"authorPersonFirstName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.lastName\").as(\"authorPersonLastName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.middleName\").as(\"authorPersonmiddleName\")) \n\t\t\t\t\t //category \n\t\t\t\t\t .add(Projections.property(\"postcategories.id\").as(\"postCategoryId\"))\n\t\t\t\t\t .add(Projections.property(\"postcategories.status\").as(\"postCategoryStatus\"))\n\t\t\t\t\t .add(Projections.property(\"category.id\").as(\"categoryId\")) \n\t\t\t\t\t .add(Projections.property(\"category.name\").as(\"categoryName\")) \n\t\t\t\t\t //skill\n\t\t\t\t\t .add(Projections.property(\"postskills.id\").as(\"postSkillsId\"))\n\t\t\t\t\t .add(Projections.property(\"postskills.status\").as(\"postSkillsStatus\"))\n\t\t\t\t\t .add(Projections.property(\"skill.id\").as(\"skillId\")) \n\t\t\t\t\t .add(Projections.property(\"skill.name\").as(\"skillName\")) \n\t\t\t\t\t//tag\n\t\t\t\t\t .add(Projections.property(\"posttags.id\").as(\"postTagsId\"))\n\t\t\t\t\t .add(Projections.property(\"posttags.status\").as(\"postTagsStatus\"))\n\t\t\t\t\t .add(Projections.property(\"tag.id\").as(\"tagId\")) \n\t\t\t\t\t .add(Projections.property(\"tag.name\").as(\"tagName\")) \n\t\t\t\t\t \n\t\t\t\t\t ); \n\t\t\t \n\t\t\t postList = query.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP).list();\n\t\t\t \n\t\t\t \t \t \n\t\t} catch (Exception e) {\n\t\t\tpostServiceLogger.error(\"error in PostService for getPostsOf()\",e);\n\t\t}\n\t\treturn postList;\n\t}",
"public void savePost(VBeatPostModel post) {\n AppLocalDB.getInstance().db.postDao().insertAll(post);\n }",
"public interface GradeMapper {\n @Select(\"select * from grade\")\n public List<Grade> getByGradeNm();\n\n @Insert(\"insert into grade(grade_nm,teacher_id) values(#{gradeNm},#{teacherId})\")\n @Options(useGeneratedKeys=true,keyColumn=\"id\",keyProperty=\"id\")//设置id自增长\n public void save(Grade grade);\n}",
"public void insert() throws SQLException {\n Statement stmtIn = DatabaseConnector.getInstance().getStatementIn();\n\n int check = BusinessFacade.getInstance().checkIDinDB(this.productRelation.getID(),\n this.post.getID(), \"goods\", \"product_type_id\", \"post_id\");\n if (check == -1){\n stmtIn.executeUpdate(\"INSERT INTO ngaccount.goods (goods_id , product_type_id, post_id) \" +\n \"VALUES ('\" + this.goodID + \"', '\" + this.productRelation.getID() +\n \"', '\" + this.post.getID() + \"');\");\n }\n }"
]
| [
"0.59889555",
"0.57390594",
"0.570231",
"0.5665071",
"0.563877",
"0.54984266",
"0.5481363",
"0.54466987",
"0.5425114",
"0.54112184",
"0.5379956",
"0.53751487",
"0.5359197",
"0.53162086",
"0.5312936",
"0.528954",
"0.52719784",
"0.5232329",
"0.5205044",
"0.5203752",
"0.51913637",
"0.51644903",
"0.5158612",
"0.51456964",
"0.5139534",
"0.51339734",
"0.5133906",
"0.51099247",
"0.5079191",
"0.5056655",
"0.50562364",
"0.50553346",
"0.505261",
"0.5023909",
"0.5022968",
"0.49978197",
"0.49690282",
"0.49589097",
"0.49544036",
"0.4950202",
"0.49453658",
"0.4939361",
"0.49377412",
"0.49362096",
"0.4925293",
"0.49227697",
"0.49181008",
"0.4917835",
"0.49169457",
"0.4913101",
"0.49100274",
"0.48689047",
"0.48656505",
"0.4864679",
"0.48603308",
"0.48549676",
"0.48547435",
"0.4844339",
"0.48340806",
"0.4833405",
"0.4817286",
"0.48095027",
"0.48090166",
"0.47975355",
"0.4792431",
"0.47820842",
"0.47786596",
"0.47786534",
"0.47704196",
"0.4758565",
"0.47556996",
"0.47526348",
"0.47519997",
"0.47490165",
"0.4748695",
"0.4748518",
"0.4746258",
"0.47447923",
"0.47441265",
"0.4743084",
"0.47414175",
"0.4727179",
"0.4726927",
"0.47241473",
"0.4719419",
"0.47125748",
"0.47068906",
"0.47059047",
"0.4703528",
"0.47008115",
"0.46991017",
"0.46971655",
"0.46955362",
"0.46926337",
"0.46912578",
"0.46898603",
"0.46894318",
"0.46860006",
"0.4683632",
"0.46812797",
"0.4678808"
]
| 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table post_information | public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getPostSQL()\n {\n return _get_imfObject().getPostSQL();\n }",
"public PostRecord() {\n super(PostTable.POST);\n }",
"Forumpost selectByPrimaryKey(Integer postid);",
"PostSaveDTO queryDetailById(String postId);",
"public ArrayList<PostInfo> getPost() throws SQLException {\n ArrayList<PostInfo> postInfoList = new ArrayList<>();\n String sql = \"SELECT * FROM `post` WHERE `status` = 1 ORDER BY `post_time` DESC\";\n statement = connection.createStatement();\n resultSet = statement.executeQuery(sql);\n while (resultSet.next()) {\n postInfoList.add(new PostInfo(resultSet.getInt(\"post_id\"), resultSet.getInt(\"place_id\"), resultSet.getString(\"post_text\"),\n resultSet.getDate(\"post_time\"), resultSet.getInt(\"status\"), resultSet.getInt(\"user_id\"), resultSet.getInt(\"editor_id\")));\n }\n return postInfoList;\n }",
"@SuppressWarnings(\"deprecation\")\n\tpublic void writeTable()\n\t{\n\t\tIterator<WPPost> itr = readValues.iterator();\n\t\t\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\tWPPost post = itr.next();\n\t\t\tPreparedStatement prStm;\n\t\t\tint res = 0;\n\t\t\t\n\t\t\ttry \n\t\t\t{\n\t\t\t\tif(post.getPostDateGMT() == null)\n\t\t\t\t{\n\t\t\t\t\tpost.setPostDateGMT(new Timestamp(0));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(post.getPostModifiedGMT() == null)\n\t\t\t\t{\n\t\t\t\t\tpost.setPostModifiedGMT(new Timestamp(0));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tprStm = conn.prepareStatement(WRITE_STATEMENT);\n\t\t\t\tprStm.setInt(1, post.getId());\n\t\t\t\tprStm.setInt(2, post.getPostAuthor());\n\t\t\t\tprStm.setTimestamp(3, post.getPostDate());\n\t\t\t\tprStm.setTimestamp(4, post.getPostDateGMT());\n\t\t\t\tprStm.setString(5, post.getPostContent());\n\t\t\t\tprStm.setString(6, post.getPostTitle());\n\t\t\t\tprStm.setString(7, post.getPostExcerpt());\n\t\t\t\tprStm.setString(8, post.getPostStatus());\n\t\t\t\tprStm.setString(9, post.getCommentStatus());\n\t\t\t\tprStm.setString(10, post.getPingStatus());\n\t\t\t\tprStm.setString(11, post.getPostPassword());\n\t\t\t\tprStm.setString(12, post.getPostName());\n\t\t\t\tprStm.setString(13, post.getToPing());\n\t\t\t\tprStm.setString(14, post.getPinged());\n\t\t\t\tprStm.setTimestamp(15, post.getPostModified());\n\t\t\t\tprStm.setTimestamp(16, post.getPostModifiedGMT());\n\t\t\t\tprStm.setString(17, post.getPostContentFiltered());\n\t\t\t\tprStm.setInt(18, post.getPostParent());\n\t\t\t\tprStm.setString(19, post.getGuid());\n\t\t\t\tprStm.setInt(20, post.getMenuOrder());\n\t\t\t\tprStm.setString(21, post.getPostType());\n\t\t\t\tprStm.setString(22, post.getPostMimeType());\n\t\t\t\tprStm.setInt(23, post.getCommentCount());\n\t\t\t\t\n\t\t\t\tres = prStm.executeUpdate();\n\t\t\t\t\n\t\t\t\tif(res == 0)\n\t\t\t\t{\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new WriteWPPostException(post.toString());\n\t\t\t\t\t} \n\t\t\t\t\tcatch (WriteWPPostException e) \n\t\t\t\t\t{\n\t\t\t\t\t\t//e.printStackTrace(); // TODO Debug Mode! Delete This!\n\t\t\t\t\t\tthis.rowsWithErrors.add(post);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\t\t\tcatch (SQLException e1) \n\t\t\t{\n\t\t\t\t//e1.printStackTrace(); // TODO Debug Mode! Delete This!\n\t\t\t\tthis.rowsWithErrors.add(post);\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\tpublic List<Post> getAllPost() {\n\t\tString hql = \"from Post\";\r\n\t\treturn (List<Post>) getHibernateTemplate().find(hql);\r\n\t}",
"PmPost selectByPrimaryKey(String postId);",
"public void setPostId(Integer postId) {\n this.postId = postId;\n }",
"public Integer getPostId() {\n return postId;\n }",
"@Override\n\tpublic void getAll() {\n\t\tArrayList<Post> list = new ArrayList<Post>();\n\t\tlist = dao.selectAll();\n\t\t\n\t\tfor (Post p : list) {\n\t\t\tSystem.out.println(p.getPostId() + \".\" + p.getPostName() + \" 작성자:\" + p.getMemberId());\n\t\t}\n\t}",
"public List<detailsofpassengerpost> seedetailslist() throws IOException{\n//connect database\nString resource = \"orm/configuration.xml\";\nReader reader = Resources.getResourceAsReader(resource);\nSqlSessionFactory sessionFactory = new SqlSessionFactoryBuilder().build(reader);\nSqlSession session = sessionFactory.openSession();\n\ntry{\n\tSystem.out.println(\"postID in seeDetails=\"+postID);\npostlist=session.selectList(\"selectPassengerPostByID\",postID);\nSystem.out.println(\"postlist size in seeDetails=\"+postlist.size());\n\n//find passenger's name through his email address\nnumberofapplieddrivers=postlist.get(0).getNumberofapplieddrivers();\npassengeremail=postlist.get(0).getEmail();\npassengerlist=session.selectList(\"selectuserbyemail\", passengeremail);\n\npassengername=passengerlist.get(0).getName();\npassengersex=passengerlist.get(0).getSex();\npassengerdob=passengerlist.get(0).getDob();\n\ndd=new detailsofpassengerpost();\ndetaillist=new ArrayList<detailsofpassengerpost>();\n\ndd.setNeedseats(postlist.get(0).getNeedseats());\ndd.setExpectedcartype(postlist.get(0).getExpectedcartype());\ndd.setDeparture(postlist.get(0).getDeparture());\ndd.setDeparturedate(postlist.get(0).getDeparturedate());\ndd.setDestination(postlist.get(0).getDestination());\ndd.setDob(passengerdob);\ndd.setEmail(passengeremail);\ndd.setEstimatedleavingtime(postlist.get(0).getEstimatedleavingtime());\ndd.setExpectedcost(postlist.get(0).getExpectedcost());\ndd.setMemo(postlist.get(0).getMemo());\ndd.setName(passengername);\ndd.setPostID(postID);\ndd.setSex(passengersex);\ndd.setPhone(postlist.get(0).getPhone());\ndd.setNumberofapplieddrivers(numberofapplieddrivers);\ndetaillist.add(dd);\n\nreturn detaillist;\n\n}finally{\nsession.close();\n}\n}",
"public List<Post> all() throws DataAccessException{\n String sql = \"select posts.id, posts.user_id, users.name, posts.title, posts.content, posts.create_date from posts join users on posts.user_id=users.id\";\n List<Post> posts = this.jdbcTemplate.query(sql, mapper);\n return posts;\n }",
"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}",
"@Override\r\n\tpublic void addPost(Post post) {\n\t\tgetHibernateTemplate().save(post);\r\n\t}",
"@Override\n public HashMap<Integer,_DefaultMessage> loadPost() throws IOException, SQLException, ClassNotFoundException {\n return _DbConnectionManager.getHMPosts(this.dbConnection, this.getName());\n }",
"public String getPostTableName() {\r\n\t\treturn postTableName;\r\n\t}",
"public void setPostId(long postId);",
"public interface CommentMapper {\n\n @Insert(\"insert comment(productId,userId,text,createdAt) values(#{productId},#{userId},#{text},now())\" )\n @Options(useGeneratedKeys = true,keyProperty = \"id\")\n void insertComment(Comment comment);\n\n @Select(\"select * from comment where productId=#{productId}\")\n List<Comment> getCommentByProductId(int productId);\n\n @Delete(\"delete from comment where id = #{id}\")\n void deleteComment(int id);\n\n\n}",
"public interface Post {\n\n\tpublic Long getId();\n\n\tpublic void setId(Long id);\n\n\tpublic Date getDate();\n\n\tpublic void setDate(Date date);\n\n\tpublic String getMessage();\n\n\tpublic void setMessage(String message);\n\n}",
"@Override\r\n\t\tpublic DatabaseMetaData getMetaData() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"public void updatePost(PostInfo postInfo) throws SQLException {\n String sql = \"UPDATE `post` SET `place_id`=?,`post_text`=?,`post_time`=?,`status`=?,`user_id`=?,`editor_id`=? WHERE `post_id` = ?\";\n preparedStatement = connection.prepareStatement(sql);\n preparedStatement.setInt(1, postInfo.getPlace_id());\n preparedStatement.setString(2, postInfo.getPost_text());\n preparedStatement.setDate(3, postInfo.getPost_time());\n preparedStatement.setInt(4, postInfo.getStatus());\n preparedStatement.setInt(5, postInfo.getUser_id());\n preparedStatement.setInt(6, postInfo.getEditor_id());\n preparedStatement.setInt(7, postInfo.getPost_id());\n\n preparedStatement.executeUpdate();\n }",
"public int getPostId() {\r\n\t\treturn postId;\r\n\t}",
"public void deletePost(PostInfo postInfo) throws SQLException {\n String sql = \"UPDATE `post` SET `status`=0 WHERE `post_id` = ?\";\n preparedStatement = connection.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);\n preparedStatement.setInt(1, postInfo.getPost_id());\n\n preparedStatement.executeUpdate();\n }",
"public long getPostId() {\n return postId;\n }",
"@Override\n\tpublic Map<String, String> toSqlMap() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Collection<Tmly> getTmlyInfo() {\n\t\tString sql = \"select ID_,TITLE,CONTENT,state from tmly\";\n\t\tList<Tmly> list = this.jdbcTemplate.query(sql, new RowMapper<Tmly>() {\n\n\t\t\t@Override\n\t\t\tpublic Tmly mapRow(ResultSet result, int i) throws SQLException {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tTmly tmly = new Tmly();\n\t\t\t\ttmly.setId(result.getInt(\"id_\"));\n\t\t\t\ttmly.setTitle(result.getString(\"title\"));\n\t\t\t\ttmly.setContent(result.getString(\"content\"));\n\t\t\t\treturn tmly;\n\t\t\t}\n\n\t\t});\n\t\treturn list;\n\t}",
"public long getPostId();",
"public static ResultSet getPosts(){\n ResultSet result = null;\n try {\n conn = ConnectionProvider.getCon();\n pst = conn.prepareStatement(\"select * from normalposts\");\n result = pst.executeQuery();\n\n System.out.println(\"PostDAO: getting posts\");\n } catch(Exception e) {\n System.out.println(\"PostDAO: unsuccessful query\");\n System.out.println(e);\n }\n return result;\n }",
"@Mapper\npublic interface BlogDAO {\n @Insert(\"INSERT INTO blog(title,uniq,markdown,html, create_time,update_time) \" +\n \"VALUES(#{item.title},#{item.uniq},#{item.markdown},#{item.html},#{item.createTime}, #{item.updateTime})\")\n int insert(\n @Param(\"item\") Blog blog\n );\n\n @Select(\"SELECT id,uniq,title,markdown,html,\" +\n \" create_time as createTime,update_time as updateTime \" +\n \" FROM blog WHERE id = #{id}\")\n Blog getBlogById(@Param(\"id\") String id);\n\n @Insert(\"replace into blog(id,title,uniq,markdown,html, create_time,update_time) \" +\n \"VALUES(#{item.id},#{item.title},#{item.uniq},#{item.markdown},#{item.html},#{item.createTime}, #{item.updateTime})\")\n int update(@Param(\"item\")Blog blog);\n\n @Select(\"SELECT id,uniq,title,\" +\n \" create_time as createTime,update_time as updateTime \" +\n \" FROM blog order by id desc limit #{offset}, #{limit}\")\n List<Blog> getBlogList(@Param(\"offset\")long offset,\n @Param(\"limit\")long limit,\n @Param(\"sort\") String sort);\n}",
"public String toSql() {\t\n int n;\t\n void a;\t\n StringBuilder a2 = new StringBuilder();\t\n Table table = MapperHelper.getTable(this.entity);\t\n a2.append(MapperHelper.getTableName((Table)a, this.entity) + \" \" + a.alias());\t\n JoinTable[] arrjoinTable = a.joinTable();\t\n int n2 = arrjoinTable.length;\t\n int n3 = n = 0;\t\n while (n3 < n2) {\t\n JoinTable a3 = arrjoinTable[n];\t\n Table a4 = MapperHelper.getTable(a3.entity());\t\n a2.append(new StringBuilder().insert(0, \" \").append(a3.type().value()).append(\" \").toString());\t\n a2.append(new StringBuilder().insert(0, MapperHelper.getTableName(a4, this.entity)).append(\" \").append(a3.alias()).toString());\t\n a2.append(new StringBuilder().insert(0, \" ON \").append(a3.on()).toString());\t\n n3 = ++n;\t\n }\t\n StringBuilder stringBuilder = a2;\t\n stringBuilder.append(MapperHelper.getSqlMapValue(this.entity, a.extFromKeys()));\t\n return stringBuilder.toString();\t\n }",
"@Test\n public void metaDataExample1() throws SQLException {\n Connection connection = DriverManager.getConnection(dbUrl, dbUsername, dbPassword);\n // 2. Create statement\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n // Run sql query and get the result in resultSet object\n String sqlQuery= \"Select * From departments\";\n //String sqlQuery= \"Select first_name, last_name, salary From employees\";\n ResultSet resultSet = statement.executeQuery(sqlQuery);\n\n // we use resultSet metadata to get information about the tables\n // get the resultSet object metadata\n ResultSetMetaData rsMetadata = resultSet.getMetaData();\n\n // List for keeping all rows as a map\n List<Map<String, Object>> queryData = new ArrayList<>();\n\n // while(resultSet.next()) helps to iterate through columns\n while (resultSet.next()) {\n // key(columns) will be string but value can be any type of data. That's why we choose <String, Object>\n Map<String, Object> row = new HashMap<>(); // creating empty Map\n // number of columns\n int colCount = rsMetadata.getColumnCount();\n // for loop helps to iterate through columns\n for (int i = 1; i <= colCount; i++) {\n row.put(rsMetadata.getColumnName(i), resultSet.getObject(i));\n }\n\n queryData.add(row); // adding a Map to the List of Maps\n }\n\n // Printing the rows\n for (Map<String, Object> row: queryData) {\n System.out.println(row.toString());\n\n }\n\n\n\n\n // close all connections\n resultSet.close();\n statement.close();\n connection.close();\n }",
"List<PostInfo> getPostList();",
"public void setPostId(int postId) {\r\n\t\tthis.postId = postId;\r\n\t}",
"TypedKeyValue<String, Integer> getDestinationInfo(String sql);",
"public List<PostEntry> savePost(String username, int postid, String title, String body){\n Connection c = null;\n PreparedStatement ps = null; \n ResultSet rs = null;\n\n boolean ret = true;\n\n //check if postid exists.\n if(postid>0 && findPost(username, postid)==null){\n return null;\n }\n try {\n //Get connection\n c = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/CS144\", \"cs144\", \"\");\n int changed;\n if(postid>0){\n //UPDATE\n System.out.println(\"update post!\");\n ps = c.prepareStatement(\"UPDATE Posts SET title=?, body=?, modified=? WHERE username=? AND postid=?\");\n ps.setString(1, title);\n ps.setString(2, body);\n ps.setTimestamp(3, new Timestamp(System.currentTimeMillis())); //set modified to current time\n ps.setString(4, username);\n ps.setInt(5, postid);\n\n changed = ps.executeUpdate();\n }\n else {\n //get largest postid and add 1 to get newID\n\n System.out.println(\"new post!\");\n ps = c.prepareStatement(\"SELECT MAX(postid) FROM Posts WHERE username=?\");\n ps.setString(1, username);\n\n rs = ps.executeQuery();\n int newID = 1;\n if(rs.next()){\n newID = rs.getInt(1) + 1;\n }\n ps.close();\n\n ps = c.prepareStatement(\"INSERT INTO Posts (username, postid, title, body, modified, created) VALUES(?,?,?,?,?,?)\");\n ps.setString(1, username);\n ps.setInt(2, newID);\n ps.setString(3, title);\n ps.setString(4, body);\n ps.setTimestamp(5, new Timestamp(System.currentTimeMillis())); //set modified to current time\n ps.setTimestamp(6, new Timestamp(System.currentTimeMillis())); //set created to current time\n \n changed = ps.executeUpdate();\n }\n\n if(changed==0){\n ret = false;\n }\n\n } catch(SQLException e){\n //error handling\n System.out.println(\"SQLException caught.\");\n e.printStackTrace();\n } finally {\n //just need to close all\n try { rs.close(); } catch (Exception e) { /* ignored */ }\n try { ps.close(); } catch (Exception e) { /* ignored */ }\n try { c.close(); } catch (Exception e) { /* ignored */ }\n }\n\n //return list data\n if(ret)\n return findList(username);\n else\n return null;\n }",
"public long ashirPostCreating(AshirBlogPostingHelper post) {\n long result;\n\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(Col_2, post.getPost());\n values.put(Col_3, post.getImage());\n //inserting valuse into table columns\n result = db.insert(NAME_OF_TABLE, null, values);\n db.close();\n return result;\n\n }",
"public void setPostTableName(String postTableName) {\r\n\t\tthis.postTableName = postTableName;\r\n\t}",
"@Override\n\t\tprotected void postUpdate(EspStatusDTO t) throws SQLException {\n\t\t\t\n\t\t}",
"String getPostDeclareSql();",
"public void setPostId(int postId) {\n\t\tthis.postId = postId;\n\t}",
"@Override\n public Entity configuracion(Entity e) throws SQLException {\n return null;\n }",
"void setPostId(int postId);",
"int getPostId();",
"@Override\r\n\tpublic Post searchInfById(Post post2) {\n\t\tpostDao=new PostDaoImpl(TransactionManager.connection);\r\n\t\tResultSet resultSet=postDao.selectById(post2);\r\n\t\tPost post=new Post();\r\n\t\ttry {\r\n\t\t\tif(resultSet.next()) {\r\n\t\t\t\tpost.setPostId(resultSet.getInt(1));\r\n\t\t\t\tpost.setPostName(resultSet.getString(3));\r\n\t\t\t\tpost.setUserId(resultSet.getInt(2));\r\n\t\t\t\tpost.setPostProperty(resultSet.getInt(4));\r\n\t\t\t\tpost.setPostEnterNum(resultSet.getInt(5));\r\n\t\t\t\tpost.setPostTime(resultSet.getDate(6));\r\n\t\t\t\tpost.setPostScore(resultSet.getDouble(7));\r\n\t\t\t\tpost.setScoreCount(resultSet.getInt(8));\r\n\t\t\t\tpost.setLastComTime(resultSet.getDate(9));\r\n\t\t\t\tpost.setResId(resultSet.getInt(10));\r\n\t\t\t\tpost.setResPath(resultSet.getString(12));\r\n\t\t\t\tpost.setUserName(resultSet.getString(14));\r\n\t\t\t\tpost.setUserLevel(resultSet.getInt(16));\r\n\t\t\t\tpost.setUserStatus(resultSet.getInt(17));\r\n\t\t\t\tpost.setPropertyName(resultSet.getString(19));\r\n\t\t\t\tpost.setLocation(resultSet.getString(22));\r\n\t\t\t\tpost.setPhone(resultSet.getString(23));\r\n\t\t\t\tpost.setPostCode(resultSet.getInt(24));\r\n\t\t\t\tpost.setEmail(resultSet.getString(25));\r\n\t\t\t\tpost.setGender(resultSet.getString(26));\r\n\t\t\t\tpost.setHobby(resultSet.getString(27));\r\n\t\t\t\tpost.setMajor(resultSet.getString(28));\r\n\t\t\t\tpost.setScore(resultSet.getInt(29));\r\n\t\t\t\tpost.setNickName(resultSet.getString(30));\r\n\t\t\t\tpost.setUserRegion(resultSet.getString(31));\r\n\t\t\t\tpost.setUserPhoto(resultSet.getString(32));\r\n\t\t\t\tpost.setComCount(resultSet.getInt(39));\r\n\t\t\t\t\r\n\t\t\t\treturn post;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\treturn null;\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\treturn null;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"@Mapper\npublic interface QuestionDAO {\n String TABLE_NAME = \" question \";\n String INSERT_FIELDS = \" title, content, created_date, user_id, comment_count \";\n String SELECT_FIELDS = \" id, \" + INSERT_FIELDS;\n\n @Insert({\"insert into \", TABLE_NAME, \"(\", INSERT_FIELDS,\n \") values (#{title},#{content},#{createdDate},#{userId},#{commentCount})\"})\n int addQuestion(Question question);\n\n // 使用 xml 配置文件进行 数据库查询语句与程序接口的映射。\n // 对应的 QuestionDAO.xml 文件位于 resources 文件夹 -》com.mattLearn.dao 文件夹中。\n List<Question> selectLatestQuestions(@Param(\"userId\") int userId, @Param(\"offset\") int offset,\n @Param(\"limit\") int limit);\n\n @Select({\"select \", SELECT_FIELDS, \" from \", TABLE_NAME, \" where id=#{id}\"})\n Question SelectById(int id);\n\n @Update(\" update question set comment_count=#{commentCount} where id = #{id}\")\n int updateCommentCount(@Param(\"commentCount\") int commentCount,\n @Param(\"id\") int id);\n\n}",
"public Integer getPostType() {\n return postType;\n }",
"@Override\n public ColumnInfo getColumnInfo() {\n return columnInfo;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<Post> getPostsOf(int postId){\n \t\tList<Post> postList = null;\n\t\tCriteria query = null;\n\t\ttry {\n\t\t\t\n\t\t\t query = getCurrentSession().createCriteria(Post.class);\n\t\t\t \n\t\t\t query.createAlias(\"this.orgperson\", \"author\") \n\t\t\t .createAlias(\"author.personid\",\"authorPerson\")\n\t\t\t \t .createAlias(\"this.postcategories\", \"postcategories\")\n\t\t\t \t .createAlias(\"postcategories.category\", \"category\")\n\t\t\t \t .createAlias(\"this.postskills\", \"postskills\")\n\t\t\t \t .createAlias(\"postskills.skill\", \"skill\")\n\t\t\t \t .createAlias(\"this.posttags\", \"posttags\")\n\t\t\t \t .createAlias(\"posttags.tag\", \"tag\");\n\t\t\t \n\t\t\t query.add(Restrictions.eq(\"this.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"author.orgpersonstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"authorPerson.personstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"postcategories.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"category.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"postskills.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"skill.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"posttags.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"tag.status\", \"A\")) \n\t\t\t \t .add(Restrictions.eq(\"this.id\", postId));\n\t\t\t \n\t\t\t query.setProjection(Projections.projectionList()\n\t\t\t\t\t \n\t\t\t\t\t //post\n\t\t\t\t\t .add(Projections.property(\"this.id\").as(\"post_id\"))\n\t\t\t\t\t .add(Projections.property(\"this.title\").as(\"post_title\"))\n\t\t\t\t\t .add(Projections.property(\"this.content\").as(\"post_content\")) \n\t\t\t\t\t .add(Projections.property(\"this.bannerpath\").as(\"post_bannerpath\"))\n\t\t\t\t\t .add(Projections.property(\"this.commentable\").as(\"post_commentable\"))\n\t\t\t\t\t .add(Projections.property(\"this.date\").as(\"post_date\"))\n\t\t\t\t\t .add(Projections.property(\"this.media\").as(\"post_media\")) \n\t\t\t\t\t .add(Projections.property(\"this.status\").as(\"post_status\")) \n\t\t\t\t\t //authorperson\n\t\t\t\t\t .add(Projections.property(\"authorPerson.personid\").as(\"authorPersonPersonId\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.firstName\").as(\"authorPersonFirstName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.lastName\").as(\"authorPersonLastName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.middleName\").as(\"authorPersonmiddleName\")) \n\t\t\t\t\t //category\n\t\t\t\t\t .add(Projections.property(\"category.id\").as(\"categoryId\")) \n\t\t\t\t\t .add(Projections.property(\"category.name\").as(\"categoryName\")) \n\t\t\t\t\t //skill\n\t\t\t\t\t .add(Projections.property(\"skill.id\").as(\"skillId\")) \n\t\t\t\t\t .add(Projections.property(\"skill.name\").as(\"skillName\")) \n\t\t\t\t\t//tag\n\t\t\t\t\t .add(Projections.property(\"tag.id\").as(\"tagId\")) \n\t\t\t\t\t .add(Projections.property(\"tag.name\").as(\"tagName\")) \n\t\t\t\t\t \n\t\t\t\t\t ); \n\t\t\t \n\t\t\t postList = query.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP).list(); \n\t\t\t \t \t \n\t\t} catch (Exception e) {\n\t\t\tpostServiceLogger.error(\"error in PostService for getPostsOf()\",e);\n\t\t} \n\t\treturn postList;\n\t}",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n response.setCharacterEncoding(\"UTF-8\");\n request.setCharacterEncoding(\"UTF-8\");\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"Ghosttales_PU\");\n EntityManager em = emf.createEntityManager();\n HttpSession session = request.getSession();\n \n \n //String file = request.getParameter(\"file\");\n \n \n String content = request.getParameter(\"content\");\n // String content = \"oiadjioajdoiajdiajsi\";\n System.out.println(\"---1---\");\n String title = request.getParameter(\"title\");\n String author = (String) session.getAttribute(\"userr\");\n UserInfo u = em.find(UserInfo.class, author);\n LocalDate today = LocalDate.now();\n \n System.out.println(u.getUsername());\n \n// if(content != null && title !=null) {\n\n // String sql2 = \"SELECT COUNT(p) FROM Post p\";\n String sql2 =\"SELECT p.postId FROM Post p\";\n Query q = em.createQuery(sql2);\n \n List <Post>ps =q.getResultList() ;\n \n \n \n// long countt = (long)q.getSingleResult();\n// int count = (int) countt+1;\n \n \n Post post = new Post(); \n int num = ps.size();\n if(num==0){\n int countt = num+1 ;\n int count = countt;\n post.setPostId(count);\n session.setAttribute(\"num\",count);\n }else{\n int countt = (int) q.getResultList().get(num-1);\n int count = countt+1;\n System.out.println(num);\n System.out.println(countt);\n System.out.println(count);\n post.setPostId(count);\n session.setAttribute(\"num\",count);\n }\n \n post.setTitle(title);\n post.setContent(content);\n post.setCreateTime(java.sql.Date.valueOf(today));\n post.setUpdateTime(null);\n post.setTotallike(0);\n post.setTotalcomment(0);\n post.setUserinfousername(u);\n System.out.println(\"-----2-----\");\n \n \n \n em.getTransaction().begin();\n em.persist(post);\n em.getTransaction().commit();\n \n \n \n \n \n session.setAttribute(\"show\", post);\n \n \n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"post\", post.getContent());\n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"title\", post.getTitle());\n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"author\", post.getUserinfousername().toString());\n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"day\", post.getCreateTime());\n \n \n\n request.getRequestDispatcher(\"/addimage.jsp\").forward(request, response);\n\n }",
"Achievements getPostDetails();",
"public int getDataid_postingBisnis() {\r\n return Dataid_postingBisnis;\r\n }",
"@Override\n\tpublic Post createPost(Post post) {\n\t\treturn postDao.createPost(post);\n\t}",
"public CustomSql getCustomSqlInsert();",
"int insert(PmPost record);",
"@Override\r\n\tpublic void updatePost(Post post) {\n\t\tPost p = getPostById(post.getPost_id());\r\n\t\tp.setDepartment(post.getDepartment());\r\n\t\tp.setDescription(post.getDescription());\r\n\t\tp.setEmployeeSet(post.getEmployeeSet());\r\n\t\tp.setPost_id(post.getPost_id());\r\n\t\tp.setPost_name(post.getPost_name());\r\n\t\tp.setPost_wage(post.getPost_wage());\r\n\t\tgetHibernateTemplate().update(p);\r\n\t}",
"@Override\n\tpublic JDBCMetaData getMetaData() throws SQLException {\n\t\treturn null;\n\t}",
"public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}",
"private void writeMetaData(ResultSet resultSet) throws SQLException {\n\t System.out.println(\"The columns in the table are: \");\r\n\t System.out.println(\"Table: \" + resultSet.getMetaData().getTableName(1));\r\n\t for (int i = 1; i<= resultSet.getMetaData().getColumnCount(); i++){\r\n\t System.out.println(\"Column \" +i + \" \"+ resultSet.getMetaData().getColumnName(i));\r\n\t }\r\n\t }",
"Integer getDomainTemplateColumn();",
"@SuppressWarnings(\"HardCodedStringLiteral\")\npublic interface MyPostsColumn {\n @DataType(INTEGER)\n @PrimaryKey\n String KEY_SQL_ID = \"sql_id\";\n\n @DataType(TEXT)\n @NotNull @Unique\n String KEY_ID = \"_id\";\n\n @DataType(TEXT)\n String KEY_AUTHOR = \"author\";\n\n @DataType(TEXT)\n @NotNull\n String KEY_SUBREDDIT_ID = \"subreddit_id\";\n\n @DataType(TEXT)\n @NotNull\n String KEY_SUBREDDIT = \"subreddit\";\n\n @DataType(INTEGER)\n String KEY_UPS = \"ups\";\n\n @DataType(TEXT)\n String KEY_TITLE = \"title\";\n\n @DataType(INTEGER)\n String KEY_COMMENTS_COUNT = \"comments_count\";\n\n @DataType(INTEGER)\n String KEY_CREATED_UTC = \"created_utc\";\n\n @DataType(INTEGER)\n String KEY_CREATED = \"created\";\n\n @DataType(TEXT)\n @NotNull\n String KEY_NAME = \"name\";\n\n @DataType(INTEGER)\n @NotNull\n String KEY_CLICKED = \"clicked\";\n\n @DataType(INTEGER)\n String KEY_LIKES = \"likes\"; //CAN BE NULL\n\n @DataType(TEXT)\n String KEY_DOMAIN = \"domain\";\n\n @DataType(INTEGER)\n String KEY_IS_SELF = \"is_self\";\n\n @DataType(INTEGER)\n @NotNull\n String KEY_OVER_18 = \"over_18\";\n\n @DataType(TEXT)\n String KEY_PERMALINK = \"permalink\";\n\n @DataType(TEXT)\n String KEY_POST_HINT = \"post_hint\";\n\n @DataType(INTEGER)\n String KEY_SCORE = \"score\";\n\n @DataType(TEXT)\n String KEY_THUMBNAIL = \"thumbnail\";\n\n @DataType(TEXT)\n String KEY_URL = \"url\";\n\n @DataType(INTEGER)\n String KEY_VISITED = \"visited\";\n\n @DataType(INTEGER)\n String KEY_LOCKED = \"locked\";\n\n @DataType(TEXT)\n String KEY_MEDIA_OEMBED_TYPE = \"media_oembed_type\";\n\n @DataType(TEXT)\n String KEY_BIG_IMAGE_URL = \"big_image_url\";\n\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_POST = \"type_post\";\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_SEARCH = \"type_search\";\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_WIDGET = \"type_widget\";\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_TEMP = \"type_temp\";\n\n\n\n}",
"public void queryPostTable(Context activityContext, String postTableName) {\n new GetCursorTablePost(activityContext).execute(postTableName);\n }",
"@Override\n\tpublic void updateAllPostNowTipBySid(String Id, CodeInfo codeInfo) {\n\t\tQuery query = this.currentSession().createQuery(\"update com.wondersgroup.human.bo.pubinst.PtPost set tenureStatus = :nowPostSign where publicInstitution.id = :Id\");\n\t\tquery.setParameter(\"nowPostSign\", codeInfo);\n\t\tquery.setParameter(\"Id\",Id);\n\t\tquery.executeUpdate();\n\t\t\n\t}",
"public interface IBasicPost {\n Long getId();\n String getTitle();\n String getDescription();\n long getCreatedDate();\n long getUpdatedDate();\n Integer getCityId();\n Long getUserId();\n Integer getUserLikeCount();\n Integer getUserCommentCount();\n String getUserFirstName();\n}",
"@RequestMapping(value = \"fetch-health-tips\", method = RequestMethod.POST)\n private List<HealthPost> fetchHealthTips() {\n SessionService.sessionBuilder(session -> {\n healthPostList = session.createQuery(\"from HealthPost order by id desc\", HealthPost.class).list();\n });\n return healthPostList;\n }",
"@Override\n\tpublic void getPost(Scanner sc) {\n\t\tPost p;\n\t\tgetAll();\n\t\tSystem.out.print(\"보고 싶은 리뷰의 번호를 입력해 주세요 >>\");\n\t\tp = dao.selectPost(sc.nextInt());\n\t\tSystem.out.println(p.getPostName());\n\t\tSystem.out.println(p.getContent());\n\t}",
"@Override\n public DatabaseMetaData getMetaData() throws SQLException\n {\n logger.debug(\n \" public DatabaseMetaData getMetaData() throws SQLException\");\n\n return new SnowflakeDatabaseMetaData(this);\n }",
"public interface BasePostPoMapper extends feihua.jdbc.api.dao.CrudDao<BasePostPo, String> {\n\n java.util.List<BasePostPo> searchBasePosts(SearchPostsConditionDsfDto dto);\n}",
"public List<MediumBean> populatemediam(String sql ){\n\t\t\t\tList<MediumBean> retlist = jdbcTemplate.query(sql,ParameterizedBeanPropertyRowMapper.newInstance(MediumBean.class));\n\t\t\t\t\treturn retlist;\n\t\t }",
"public boolean addPost(Post post) throws SQLException\n {\n boolean isAdded=false;\n try\n {\n database = dbH.getReadableDatabase();\n dbH.openDataBase();\n ContentValues values = new ContentValues();\n values.put(\"postBody\", post.getPostBody());\n values.put(\"postedBy\", post.getPostedBy());\n values.put(\"postedAt\", post.getPostedAt());\n values.put(\"postID\", post.getPostID());\n values.put(\"image\" , post.getBitmap());\n\n isAdded=database.insert(\"Post\", null, values)>0;\n\n }\n catch(SQLException e)\n {\n e.printStackTrace();\n }\n finally{\n if(database!=null && database.isOpen())\n dbH.close();\n }\n return isAdded;}",
"@Query(\"SELECT * FROM \" + TABLE_NAME)\n List<Note> getNotes();",
"@Override\r\n\tprotected Entity getEntityByFields() throws SQLException {\n\t\t\r\n\t\tint id = rs.getInt(\"id\");\r\n\t\tint productId = rs.getInt(\"id_product\");\r\n\t\tString productName = super.getString(\"productName\");\t// From INNER JOIN\r\n\t\tString productUnit = super.getString(\"productUnit\");\t// From INNER JOIN\r\n\t\tfloat quantity = rs.getFloat(\"quantity\");\r\n\t\tfloat price = rs.getFloat(\"price\");\r\n\t\tfloat summa = rs.getFloat(\"summa\");\r\n\t\t\r\n\t\treturn new DocInvoiceItem(id, productId, productName, productUnit, quantity, price, summa);\r\n\t}",
"public PostInformationExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"@Override\r\n\tpublic List<Post> getPostByName(String name) {\n\t\tString hql = \"from Post p where p.post_name =?\";\r\n\t\treturn (List<Post>) getHibernateTemplate().find(hql, name);\r\n\t}",
"@Override\r\n\tpublic BaseBean insertSQL(String sql, Connection con) {\n\t\treturn null;\r\n\t}",
"public String getGeneratedSql() {\n/* 142 */ return this.sql;\n/* */ }",
"@Override\n\tpublic void insertIPODetail(IPODetail ipo) throws SQLException {\n\t\t\n\t}",
"@Override\n\tpublic Map<String, String[]> loadColumnMetas(String databaseName) throws SQLException {\n\t\tString sql=\"select utc.*,UCC.comments from user_tab_columns utc\\n\" + \n\t\t\t\t\"left join user_col_comments ucc on UCC.table_name=UTC.table_name and UCC.column_name=UTC.column_name\";\n\t\tMap<String, String[]> ret=new HashMap<>();\n\t\t try(PreparedStatement preparedStatement= connection.prepareStatement(sql);\n\t \t\tResultSet resultSet=preparedStatement.executeQuery();){\n\t\t\twhile(resultSet.next()) {\n\t\t\t\tString tableName=resultSet.getString(\"TABLE_NAME\")\n\t\t\t\t\t\t,columnName=resultSet.getString(\"COLUMN_NAME\")\n\t\t\t\t\t\t,dataLength=resultSet.getString(\"DATA_LENGTH\")\n\t\t ,nullable=resultSet.getString(\"NULLABLE\")\n\t\t ,comments=resultSet.getString(\"COMMENTS\")\n\t\t\t\t\t\t;\n\t\t\t\tString key=tableName+\":\"+columnName;\n\t\t\t\tret.put(key, new String[] {dataLength,nullable,comments});\n\t\t\t\t\n\t\t\t}\n\t }\n\t\t\n\t\treturn ret;\n\t}",
"void processMetaData(ResultSet rs) throws SQLException;",
"@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }",
"@Dao\npublic interface PostDao {\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n void insertPost(iPost iPosts);\n\n @Update\n void updatePost(iPost iPost);\n\n @Delete\n void deletePost(iPost iPost);\n\n @Query(\"SELECT * FROM iPost\")\n List<iPost> getAllPosts();\n\n @Query(\"SELECT * FROM iPost WHERE idThread=:threadId\")\n List<iPost> findPostsByThread(final int threadId);\n\n @Transaction\n @Query(\"SELECT * FROM iPost WHERE idThread=:threadId\")\n Single<List<PostsHelper>> getPostsFromThread(String threadId);\n}",
"protected String getSqlTable() {\n\t\treturn \"Project\";\n\t}",
"void savePost(Post post);",
"public void formDatabaseTable() {\n }",
"public CustomSql getCustomSqlUpdate();",
"@Override\n\tprotected String getCreateSql() {\n\t\treturn null;\n\t}",
"private static void showsSqlSelectOnNormalEntityBean() {\n\n\t\tQuery<Bug> query = Ebean.createQuery(Bug.class, \"simple\");\n\t\tquery.where().eq(\"status.code\", \"ACTIVE\");\n\n\t\tList<Bug> list = query.findList();\n\n\t\tSystem.out.println(list);\n\t\t\n\t\tfor (Bug bug : list) {\n\t\t\tString body = bug.getBody();\n\t\t\tSystem.out.println(body);\n\t\t}\n\n\t}",
"public interface AlmacenMapper {\n @Select(value = \"select tipo,descripcion from tipoproducto\")\n @Results(value = {\n @Result(javaType = Producto.class),\n @Result(property = \"tipo\",column = \"tipo\"),\n @Result(property = \"descripcion\",column = \"descripcion\"),\n })\n List<Producto> listarTipoProducto();\n\n @Insert(value = \"INSERT \" +\n \"INTO producto \" +\n \" ( \" +\n \" codigo, \" +\n \" nombre, \" +\n \" tipo, \" +\n \" porc_precio, \" +\n \" uni_medida, \" +\n \" cantidad \" +\n \" ) \" +\n \" VALUES \" +\n \" ( \" +\n \" producto_seq.nextval, \" +\n \" #{produ.nombre}, \" +\n \" #{produ.tipo}, \" +\n \" #{produ.porc_precio}, \" +\n \" #{produ.uni_medida}, \" +\n \" #{produ.cantidad} \" +\n \" )\")\n void GuardarProducto(@Param(\"produ\") Producto producto);\n\n @Select(value = \"SELECT codigo, \" +\n \" nombre, \" +\n \" p.tipo, \" +\n \" tp.descripcion, \" +\n \" porc_precio, \" +\n \" uni_medida, \" +\n \" cantidad \" +\n \"FROM producto p \" +\n \"INNER JOIN tipoproducto tp \" +\n \"ON(p.tipo=tp.tipo)\")\n @Results(value = {\n @Result(javaType = Producto.class),\n @Result(property = \"codigo\",column = \"codigo\"),\n @Result(property = \"nombre\",column = \"nombre\"),\n @Result(property = \"tipo\",column = \"tipo\"),\n @Result(property = \"descripcion\",column = \"descripcion\"),\n @Result(property = \"porc_precio\",column = \"porc_precio\"),\n @Result(property = \"uni_medida\",column = \"uni_medida\"),\n @Result(property = \"cantidad\",column = \"cantidad\"),\n })\n List<Producto> listarProductos();\n\n @Update(value =\"UPDATE producto \" +\n \"SET nombre =#{produ.nombre}, \" +\n \" porc_precio=#{produ.porc_precio}, \" +\n \" tipo= \" +\n \" #{produ.tipo} \" +\n \"WHERE codigo=#{produ.codigo}\" )\n void ActualizarProducto(@Param(\"produ\") Producto producto);\n\n @Delete(value=\"DELETE FROM PRODUCTO WHERE codigo=#{id}\")\n void EliminarProducto(@Param(\"id\") Integer id);\n\n @Select(value = \"SELECT codigo, \" +\n \" nombre \" +\n \"FROM producto p where tipo=#{id} \")\n @Results(value = {\n @Result(javaType = Producto.class),\n @Result(property = \"codigo\",column = \"codigo\"),\n @Result(property = \"nombre\",column = \"nombre\"),\n })\n List<Producto> ListarProductosxCategoria(@Param(\"id\") Integer id);\n\n @Insert(value = \"INSERT \" +\n \"INTO entrada_productos \" +\n \" ( \" +\n \" n_entrada, \" +\n \" fecha, \" +\n \" costo_total \" +\n \" ) \" +\n \" VALUES \" +\n \" ( \" +\n \" entrada_seq.nextval , \" +\n \" sysdate, \" +\n \" #{entrada.costo_total} \" +\n \" )\")\n void insertEntradaProducto(@Param(\"entrada\") EntradaProducto entrada);\n\n @Insert(value = \"INSERT \" +\n \"INTO detalle_entrada_productos \" +\n \" ( \" +\n \" N_ENTRADA, \" +\n \" COD_PRODUCTO, \" +\n \" COD_PROVEEDOR, \" +\n \" CANTIDAD, \" +\n \" PRECIO_COMPRA, \" +\n \" COSTO_TOTAL_PRODUCTO \" +\n \" ) \" +\n \" VALUES \" +\n \" ( \" +\n \" (select max(n_entrada) from entrada_productos), \" +\n \" #{entrada.cod_producto}, \" +\n \" #{entrada.cod_proveedor}, \" +\n \" #{entrada.cantidad}, \" +\n \" #{entrada.precio_compra}, \" +\n \" #{entrada.costo_total_producto} \" +\n \" )\")\n void inserDetalleEntradaProductos(@Param(\"entrada\") EntradaProducto entrada);\n\n @Update(value =\"UPDATE producto \" +\n \"SET cantidad=(select cantidad+#{entrada.cantidad} from producto where codigo=#{entrada.cod_producto}) \"+\n \"WHERE codigo=#{entrada.cod_producto}\" )\n void updateStockProducto(@Param(\"entrada\")EntradaProducto entrada);\n}",
"@Override //插入通知\n\tpublic void insertPoInfo(PageData pd) throws Exception {\n\t\tdao.save(\"PoInfoMapper.insertPoInfo\", pd);\n\t}",
"public PostRecord(Integer id, Integer userId, String title, String body, String date) {\n super(PostTable.POST);\n\n set(0, id);\n set(1, userId);\n set(2, title);\n set(3, body);\n set(4, date);\n }",
"public interface BugsActivityDAO {\n\n @Insert(\"insert into firefox_bugs_activity \" +\n \"(`bugId`,`who`,`when`,`what`,`removed`,`added`,`crawledTime`) \" +\n \"values (#{bugId},#{who},#{when},#{what},#{removed},#{added},#{crawledTime})\")\n public int add(BugsActivity fireFoxBugsActivity);\n\n @Insert(\"insert into firefox_bugs_activity_html (`bugId`,`html`) \" +\"values (#{bugId},#{html})\")\n public int addHtml(BugsActivity fireFoxBugsActivity);\n}",
"@Override\n\tpublic List<Map<String, Object>> getNoticeLast() {\n\t\tStringBuffer querySQL = new StringBuffer(\n\t\t\t\t\"select ifnull(title,'') title,ifnull(static_page,'') static_page from notice where status = 1 order by crdate desc limit 4\");\n\t\t// StringBuffer querySQL2 = new StringBuffer(\n\t\t// \"select count(1) from notice where status = 1 order by crdate desc limit 1\");\n\t\t// if (jdbcTemplate.queryForInt(querySQL2.toString()) > 0) {\n\t\treturn jdbcTemplate.queryForList(querySQL.toString());\n\t\t// }\n\t\t// return null;\n\n\t}",
"@Override\n public Jurusan mapRow(ResultSet rs, int rowNum) throws SQLException {\n Jurusan jurusan=new Jurusan();\n jurusan.setId(rs.getInt(\"id\"));\n jurusan.setNama(rs.getString(\"nama\"));\n jurusan.setIdFakultas(rs.getInt(\"idFakultas\"));\n\n\n Fakultas fakultas=new Fakultas();\n fakultas.setId(rs.getInt(\"idFakultas\"));\n fakultas.setNama(rs.getString(\"namaFakultas\"));\n jurusan.setFakultas(fakultas);\n return jurusan;\n }",
"public interface BugPlatformMapper {\n\n\n @Select(\"SELECT js.pname as bugResolutionStatus, COUNT(js.pname) as bugNum FROM jiraissue ji INNER JOIN project pr ON pr.ID = ji.PROJECT LEFT JOIN issuestatus js ON ji.issuestatus = js.ID where pr.ID in (#{2}) and issuetype = 1 AND CREATED between #{0} and #{1} group by js.pname\")\n List<BugPlatformObject> getList(String startDate,String endDate,String project);\n}",
"@Override\n @Transactional\n public void onSubmit() {\n ValueMap values = getModelObject();\n\n // check if the honey pot is filled\n if (StringUtils.isNotBlank((String)values.get(\"comment\")))\n {\n error(\"Caught a spammer!!!\");\n return;\n }\n // Construct a copy of the edited comment\n Snip snip = new Snip();\n SnipMeta meta= new SnipMeta();\n\n logger.info(this.getDefaultModel().toString());\n\n logger.info(((List<String>) values.get(\"select_all\")).toString());\n\n meta.setTags((ArrayList<String>)values.get(\"select_all\"));\n meta.setDescription((String) values.get(\"meta\"));\n\n\n // Set date of comment to add\n snip.setDate(new Date());\n snip.setCode((String)values.get(\"code\"));\n snipList.add(0, snip); //TODO: eliminare lo show di tutti gli snipp da snipList magari con una FIFO\n meta.setSnip(snip);\n\n\n //--------- get session ad manager ------\n MyAuthenticatedWebSession app_session = MyAuthenticatedWebSession.getYourAppSession();\n logger.info(\"web session is: \"+app_session.toString());\n EntityManager em = app_session.getEntityManager();\n //---------------------------------------------------\n\n Users tmp_id = em.find(Users.class ,app_session.getAttribute(\"user\"));\n //snip.setUser(app_session.getCurrentUser()); --less network more backend\n snip.setUser(tmp_id);\n em.getTransaction().begin();\n em.setFlushMode(COMMIT);\n em.persist(snip);\n em.persist(meta);\n em.flush();\n em.getTransaction().commit();\n\n\n // Clear out the text component\n values.put(\"code\", \"\");\n }",
"@Override\n\tpublic String addOrUpdate(Map<String, Object> entityMap)\n\t\t\tthrows DataAccessException {\n\t\treturn null;\n\t}",
"@Insert({\n \"insert into kd_user_medal (id, userid, \",\n \"medalId, bindUserid, \",\n \"remark, createTime)\",\n \"values (#{id,jdbcType=BIGINT}, #{userid,jdbcType=BIGINT}, \",\n \"#{medalid,jdbcType=BIGINT}, #{binduserid,jdbcType=BIGINT}, \",\n \"#{remark,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP})\"\n })\n int insert(KDUserMedal record);",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<Post> getPostsOf(int postId , int userId){\n\t\t\n\t\tList<Post> postList = null;\n\t\tCriteria query = null;\n\t\ttry {\n\t\t\t\n\t\t\t query = getCurrentSession().createCriteria(Post.class);\n\t\t\t \n\t\t\t query.createAlias(\"this.orgperson\", \"author\") \n\t\t\t .createAlias(\"author.personid\",\"authorPerson\")\n\t\t\t \t .createAlias(\"this.postcategories\", \"postcategories\")\n\t\t\t \t .createAlias(\"postcategories.category\", \"category\")\n\t\t\t \t .createAlias(\"this.postskills\", \"postskills\")\n\t\t\t \t .createAlias(\"postskills.skill\", \"skill\")\n\t\t\t \t .createAlias(\"this.posttags\", \"posttags\")\n\t\t\t \t .createAlias(\"posttags.tag\", \"tag\");\n\t\t\t \n\t\t\t query.add(Restrictions.eq(\"this.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"author.orgpersonstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"authorPerson.personstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"postcategories.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"category.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"postskills.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"skill.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"posttags.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"tag.status\", \"A\")) \n\t\t\t \t .add(Restrictions.eq(\"this.id\", postId))\n\t\t\t \t .add(Restrictions.eq(\"author.orgpersonid\", userId));\n\t\t\t \n\t\t\t query.setProjection(Projections.projectionList()\n\t\t\t\t\t \n\t\t\t\t\t //post\n\t\t\t\t\t .add(Projections.property(\"this.id\").as(\"post_id\"))\n\t\t\t\t\t .add(Projections.property(\"this.title\").as(\"post_title\"))\n\t\t\t\t\t .add(Projections.property(\"this.content\").as(\"post_content\")) \n\t\t\t\t\t .add(Projections.property(\"this.bannerpath\").as(\"post_bannerpath\"))\n\t\t\t\t\t .add(Projections.property(\"this.commentable\").as(\"post_commentable\"))\n\t\t\t\t\t .add(Projections.property(\"this.date\").as(\"post_date\"))\n\t\t\t\t\t .add(Projections.property(\"this.media\").as(\"post_media\")) \n\t\t\t\t\t .add(Projections.property(\"this.status\").as(\"post_status\")) \n\t\t\t\t\t //authorperson\n\t\t\t\t\t .add(Projections.property(\"authorPerson.personid\").as(\"authorPersonPersonId\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.firstName\").as(\"authorPersonFirstName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.lastName\").as(\"authorPersonLastName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.middleName\").as(\"authorPersonmiddleName\")) \n\t\t\t\t\t //category \n\t\t\t\t\t .add(Projections.property(\"postcategories.id\").as(\"postCategoryId\"))\n\t\t\t\t\t .add(Projections.property(\"postcategories.status\").as(\"postCategoryStatus\"))\n\t\t\t\t\t .add(Projections.property(\"category.id\").as(\"categoryId\")) \n\t\t\t\t\t .add(Projections.property(\"category.name\").as(\"categoryName\")) \n\t\t\t\t\t //skill\n\t\t\t\t\t .add(Projections.property(\"postskills.id\").as(\"postSkillsId\"))\n\t\t\t\t\t .add(Projections.property(\"postskills.status\").as(\"postSkillsStatus\"))\n\t\t\t\t\t .add(Projections.property(\"skill.id\").as(\"skillId\")) \n\t\t\t\t\t .add(Projections.property(\"skill.name\").as(\"skillName\")) \n\t\t\t\t\t//tag\n\t\t\t\t\t .add(Projections.property(\"posttags.id\").as(\"postTagsId\"))\n\t\t\t\t\t .add(Projections.property(\"posttags.status\").as(\"postTagsStatus\"))\n\t\t\t\t\t .add(Projections.property(\"tag.id\").as(\"tagId\")) \n\t\t\t\t\t .add(Projections.property(\"tag.name\").as(\"tagName\")) \n\t\t\t\t\t \n\t\t\t\t\t ); \n\t\t\t \n\t\t\t postList = query.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP).list();\n\t\t\t \n\t\t\t \t \t \n\t\t} catch (Exception e) {\n\t\t\tpostServiceLogger.error(\"error in PostService for getPostsOf()\",e);\n\t\t}\n\t\treturn postList;\n\t}",
"public void savePost(VBeatPostModel post) {\n AppLocalDB.getInstance().db.postDao().insertAll(post);\n }",
"public interface GradeMapper {\n @Select(\"select * from grade\")\n public List<Grade> getByGradeNm();\n\n @Insert(\"insert into grade(grade_nm,teacher_id) values(#{gradeNm},#{teacherId})\")\n @Options(useGeneratedKeys=true,keyColumn=\"id\",keyProperty=\"id\")//设置id自增长\n public void save(Grade grade);\n}",
"public void insert() throws SQLException {\n Statement stmtIn = DatabaseConnector.getInstance().getStatementIn();\n\n int check = BusinessFacade.getInstance().checkIDinDB(this.productRelation.getID(),\n this.post.getID(), \"goods\", \"product_type_id\", \"post_id\");\n if (check == -1){\n stmtIn.executeUpdate(\"INSERT INTO ngaccount.goods (goods_id , product_type_id, post_id) \" +\n \"VALUES ('\" + this.goodID + \"', '\" + this.productRelation.getID() +\n \"', '\" + this.post.getID() + \"');\");\n }\n }"
]
| [
"0.5987747",
"0.57387984",
"0.570264",
"0.5665812",
"0.56388885",
"0.5496917",
"0.5480753",
"0.54475796",
"0.542511",
"0.541118",
"0.53788257",
"0.53745884",
"0.5357548",
"0.531441",
"0.5312663",
"0.52880096",
"0.5271237",
"0.5232208",
"0.5204402",
"0.52036",
"0.5190716",
"0.5164564",
"0.51584005",
"0.51461047",
"0.51395005",
"0.51333934",
"0.5131714",
"0.51095587",
"0.507775",
"0.50547725",
"0.50543284",
"0.50530183",
"0.50521994",
"0.50227416",
"0.5022606",
"0.4996463",
"0.49677274",
"0.49584132",
"0.4954131",
"0.49478868",
"0.4945241",
"0.493899",
"0.49376565",
"0.49356884",
"0.492559",
"0.49199983",
"0.49177086",
"0.4917517",
"0.4917175",
"0.49117333",
"0.49109006",
"0.48670542",
"0.48650646",
"0.48643374",
"0.48597986",
"0.48547024",
"0.48538104",
"0.484278",
"0.4831888",
"0.4831375",
"0.48160303",
"0.48101673",
"0.4808711",
"0.47961777",
"0.47906703",
"0.4780888",
"0.47775683",
"0.47775483",
"0.47690153",
"0.4758756",
"0.47543126",
"0.47521386",
"0.47520313",
"0.47480384",
"0.4748019",
"0.47464097",
"0.47458306",
"0.47433534",
"0.47422633",
"0.47421616",
"0.474097",
"0.47254854",
"0.47245285",
"0.47240764",
"0.47173744",
"0.47109172",
"0.47057825",
"0.47042465",
"0.47031894",
"0.47000033",
"0.46973717",
"0.4695783",
"0.46926624",
"0.46912488",
"0.46910432",
"0.46895215",
"0.46885744",
"0.4686088",
"0.46839145",
"0.4680186",
"0.46794552"
]
| 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table post_information | public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getPostSQL()\n {\n return _get_imfObject().getPostSQL();\n }",
"public PostRecord() {\n super(PostTable.POST);\n }",
"Forumpost selectByPrimaryKey(Integer postid);",
"PostSaveDTO queryDetailById(String postId);",
"public ArrayList<PostInfo> getPost() throws SQLException {\n ArrayList<PostInfo> postInfoList = new ArrayList<>();\n String sql = \"SELECT * FROM `post` WHERE `status` = 1 ORDER BY `post_time` DESC\";\n statement = connection.createStatement();\n resultSet = statement.executeQuery(sql);\n while (resultSet.next()) {\n postInfoList.add(new PostInfo(resultSet.getInt(\"post_id\"), resultSet.getInt(\"place_id\"), resultSet.getString(\"post_text\"),\n resultSet.getDate(\"post_time\"), resultSet.getInt(\"status\"), resultSet.getInt(\"user_id\"), resultSet.getInt(\"editor_id\")));\n }\n return postInfoList;\n }",
"@SuppressWarnings(\"deprecation\")\n\tpublic void writeTable()\n\t{\n\t\tIterator<WPPost> itr = readValues.iterator();\n\t\t\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\tWPPost post = itr.next();\n\t\t\tPreparedStatement prStm;\n\t\t\tint res = 0;\n\t\t\t\n\t\t\ttry \n\t\t\t{\n\t\t\t\tif(post.getPostDateGMT() == null)\n\t\t\t\t{\n\t\t\t\t\tpost.setPostDateGMT(new Timestamp(0));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(post.getPostModifiedGMT() == null)\n\t\t\t\t{\n\t\t\t\t\tpost.setPostModifiedGMT(new Timestamp(0));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tprStm = conn.prepareStatement(WRITE_STATEMENT);\n\t\t\t\tprStm.setInt(1, post.getId());\n\t\t\t\tprStm.setInt(2, post.getPostAuthor());\n\t\t\t\tprStm.setTimestamp(3, post.getPostDate());\n\t\t\t\tprStm.setTimestamp(4, post.getPostDateGMT());\n\t\t\t\tprStm.setString(5, post.getPostContent());\n\t\t\t\tprStm.setString(6, post.getPostTitle());\n\t\t\t\tprStm.setString(7, post.getPostExcerpt());\n\t\t\t\tprStm.setString(8, post.getPostStatus());\n\t\t\t\tprStm.setString(9, post.getCommentStatus());\n\t\t\t\tprStm.setString(10, post.getPingStatus());\n\t\t\t\tprStm.setString(11, post.getPostPassword());\n\t\t\t\tprStm.setString(12, post.getPostName());\n\t\t\t\tprStm.setString(13, post.getToPing());\n\t\t\t\tprStm.setString(14, post.getPinged());\n\t\t\t\tprStm.setTimestamp(15, post.getPostModified());\n\t\t\t\tprStm.setTimestamp(16, post.getPostModifiedGMT());\n\t\t\t\tprStm.setString(17, post.getPostContentFiltered());\n\t\t\t\tprStm.setInt(18, post.getPostParent());\n\t\t\t\tprStm.setString(19, post.getGuid());\n\t\t\t\tprStm.setInt(20, post.getMenuOrder());\n\t\t\t\tprStm.setString(21, post.getPostType());\n\t\t\t\tprStm.setString(22, post.getPostMimeType());\n\t\t\t\tprStm.setInt(23, post.getCommentCount());\n\t\t\t\t\n\t\t\t\tres = prStm.executeUpdate();\n\t\t\t\t\n\t\t\t\tif(res == 0)\n\t\t\t\t{\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new WriteWPPostException(post.toString());\n\t\t\t\t\t} \n\t\t\t\t\tcatch (WriteWPPostException e) \n\t\t\t\t\t{\n\t\t\t\t\t\t//e.printStackTrace(); // TODO Debug Mode! Delete This!\n\t\t\t\t\t\tthis.rowsWithErrors.add(post);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\t\t\tcatch (SQLException e1) \n\t\t\t{\n\t\t\t\t//e1.printStackTrace(); // TODO Debug Mode! Delete This!\n\t\t\t\tthis.rowsWithErrors.add(post);\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\tpublic List<Post> getAllPost() {\n\t\tString hql = \"from Post\";\r\n\t\treturn (List<Post>) getHibernateTemplate().find(hql);\r\n\t}",
"PmPost selectByPrimaryKey(String postId);",
"public void setPostId(Integer postId) {\n this.postId = postId;\n }",
"public Integer getPostId() {\n return postId;\n }",
"@Override\n\tpublic void getAll() {\n\t\tArrayList<Post> list = new ArrayList<Post>();\n\t\tlist = dao.selectAll();\n\t\t\n\t\tfor (Post p : list) {\n\t\t\tSystem.out.println(p.getPostId() + \".\" + p.getPostName() + \" 작성자:\" + p.getMemberId());\n\t\t}\n\t}",
"public List<detailsofpassengerpost> seedetailslist() throws IOException{\n//connect database\nString resource = \"orm/configuration.xml\";\nReader reader = Resources.getResourceAsReader(resource);\nSqlSessionFactory sessionFactory = new SqlSessionFactoryBuilder().build(reader);\nSqlSession session = sessionFactory.openSession();\n\ntry{\n\tSystem.out.println(\"postID in seeDetails=\"+postID);\npostlist=session.selectList(\"selectPassengerPostByID\",postID);\nSystem.out.println(\"postlist size in seeDetails=\"+postlist.size());\n\n//find passenger's name through his email address\nnumberofapplieddrivers=postlist.get(0).getNumberofapplieddrivers();\npassengeremail=postlist.get(0).getEmail();\npassengerlist=session.selectList(\"selectuserbyemail\", passengeremail);\n\npassengername=passengerlist.get(0).getName();\npassengersex=passengerlist.get(0).getSex();\npassengerdob=passengerlist.get(0).getDob();\n\ndd=new detailsofpassengerpost();\ndetaillist=new ArrayList<detailsofpassengerpost>();\n\ndd.setNeedseats(postlist.get(0).getNeedseats());\ndd.setExpectedcartype(postlist.get(0).getExpectedcartype());\ndd.setDeparture(postlist.get(0).getDeparture());\ndd.setDeparturedate(postlist.get(0).getDeparturedate());\ndd.setDestination(postlist.get(0).getDestination());\ndd.setDob(passengerdob);\ndd.setEmail(passengeremail);\ndd.setEstimatedleavingtime(postlist.get(0).getEstimatedleavingtime());\ndd.setExpectedcost(postlist.get(0).getExpectedcost());\ndd.setMemo(postlist.get(0).getMemo());\ndd.setName(passengername);\ndd.setPostID(postID);\ndd.setSex(passengersex);\ndd.setPhone(postlist.get(0).getPhone());\ndd.setNumberofapplieddrivers(numberofapplieddrivers);\ndetaillist.add(dd);\n\nreturn detaillist;\n\n}finally{\nsession.close();\n}\n}",
"public List<Post> all() throws DataAccessException{\n String sql = \"select posts.id, posts.user_id, users.name, posts.title, posts.content, posts.create_date from posts join users on posts.user_id=users.id\";\n List<Post> posts = this.jdbcTemplate.query(sql, mapper);\n return posts;\n }",
"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}",
"@Override\r\n\tpublic void addPost(Post post) {\n\t\tgetHibernateTemplate().save(post);\r\n\t}",
"@Override\n public HashMap<Integer,_DefaultMessage> loadPost() throws IOException, SQLException, ClassNotFoundException {\n return _DbConnectionManager.getHMPosts(this.dbConnection, this.getName());\n }",
"public String getPostTableName() {\r\n\t\treturn postTableName;\r\n\t}",
"public void setPostId(long postId);",
"public interface CommentMapper {\n\n @Insert(\"insert comment(productId,userId,text,createdAt) values(#{productId},#{userId},#{text},now())\" )\n @Options(useGeneratedKeys = true,keyProperty = \"id\")\n void insertComment(Comment comment);\n\n @Select(\"select * from comment where productId=#{productId}\")\n List<Comment> getCommentByProductId(int productId);\n\n @Delete(\"delete from comment where id = #{id}\")\n void deleteComment(int id);\n\n\n}",
"public interface Post {\n\n\tpublic Long getId();\n\n\tpublic void setId(Long id);\n\n\tpublic Date getDate();\n\n\tpublic void setDate(Date date);\n\n\tpublic String getMessage();\n\n\tpublic void setMessage(String message);\n\n}",
"@Override\r\n\t\tpublic DatabaseMetaData getMetaData() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"public void updatePost(PostInfo postInfo) throws SQLException {\n String sql = \"UPDATE `post` SET `place_id`=?,`post_text`=?,`post_time`=?,`status`=?,`user_id`=?,`editor_id`=? WHERE `post_id` = ?\";\n preparedStatement = connection.prepareStatement(sql);\n preparedStatement.setInt(1, postInfo.getPlace_id());\n preparedStatement.setString(2, postInfo.getPost_text());\n preparedStatement.setDate(3, postInfo.getPost_time());\n preparedStatement.setInt(4, postInfo.getStatus());\n preparedStatement.setInt(5, postInfo.getUser_id());\n preparedStatement.setInt(6, postInfo.getEditor_id());\n preparedStatement.setInt(7, postInfo.getPost_id());\n\n preparedStatement.executeUpdate();\n }",
"public int getPostId() {\r\n\t\treturn postId;\r\n\t}",
"public void deletePost(PostInfo postInfo) throws SQLException {\n String sql = \"UPDATE `post` SET `status`=0 WHERE `post_id` = ?\";\n preparedStatement = connection.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);\n preparedStatement.setInt(1, postInfo.getPost_id());\n\n preparedStatement.executeUpdate();\n }",
"@Override\n\tpublic Map<String, String> toSqlMap() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Collection<Tmly> getTmlyInfo() {\n\t\tString sql = \"select ID_,TITLE,CONTENT,state from tmly\";\n\t\tList<Tmly> list = this.jdbcTemplate.query(sql, new RowMapper<Tmly>() {\n\n\t\t\t@Override\n\t\t\tpublic Tmly mapRow(ResultSet result, int i) throws SQLException {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tTmly tmly = new Tmly();\n\t\t\t\ttmly.setId(result.getInt(\"id_\"));\n\t\t\t\ttmly.setTitle(result.getString(\"title\"));\n\t\t\t\ttmly.setContent(result.getString(\"content\"));\n\t\t\t\treturn tmly;\n\t\t\t}\n\n\t\t});\n\t\treturn list;\n\t}",
"public long getPostId() {\n return postId;\n }",
"public long getPostId();",
"public static ResultSet getPosts(){\n ResultSet result = null;\n try {\n conn = ConnectionProvider.getCon();\n pst = conn.prepareStatement(\"select * from normalposts\");\n result = pst.executeQuery();\n\n System.out.println(\"PostDAO: getting posts\");\n } catch(Exception e) {\n System.out.println(\"PostDAO: unsuccessful query\");\n System.out.println(e);\n }\n return result;\n }",
"@Mapper\npublic interface BlogDAO {\n @Insert(\"INSERT INTO blog(title,uniq,markdown,html, create_time,update_time) \" +\n \"VALUES(#{item.title},#{item.uniq},#{item.markdown},#{item.html},#{item.createTime}, #{item.updateTime})\")\n int insert(\n @Param(\"item\") Blog blog\n );\n\n @Select(\"SELECT id,uniq,title,markdown,html,\" +\n \" create_time as createTime,update_time as updateTime \" +\n \" FROM blog WHERE id = #{id}\")\n Blog getBlogById(@Param(\"id\") String id);\n\n @Insert(\"replace into blog(id,title,uniq,markdown,html, create_time,update_time) \" +\n \"VALUES(#{item.id},#{item.title},#{item.uniq},#{item.markdown},#{item.html},#{item.createTime}, #{item.updateTime})\")\n int update(@Param(\"item\")Blog blog);\n\n @Select(\"SELECT id,uniq,title,\" +\n \" create_time as createTime,update_time as updateTime \" +\n \" FROM blog order by id desc limit #{offset}, #{limit}\")\n List<Blog> getBlogList(@Param(\"offset\")long offset,\n @Param(\"limit\")long limit,\n @Param(\"sort\") String sort);\n}",
"@Test\n public void metaDataExample1() throws SQLException {\n Connection connection = DriverManager.getConnection(dbUrl, dbUsername, dbPassword);\n // 2. Create statement\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n // Run sql query and get the result in resultSet object\n String sqlQuery= \"Select * From departments\";\n //String sqlQuery= \"Select first_name, last_name, salary From employees\";\n ResultSet resultSet = statement.executeQuery(sqlQuery);\n\n // we use resultSet metadata to get information about the tables\n // get the resultSet object metadata\n ResultSetMetaData rsMetadata = resultSet.getMetaData();\n\n // List for keeping all rows as a map\n List<Map<String, Object>> queryData = new ArrayList<>();\n\n // while(resultSet.next()) helps to iterate through columns\n while (resultSet.next()) {\n // key(columns) will be string but value can be any type of data. That's why we choose <String, Object>\n Map<String, Object> row = new HashMap<>(); // creating empty Map\n // number of columns\n int colCount = rsMetadata.getColumnCount();\n // for loop helps to iterate through columns\n for (int i = 1; i <= colCount; i++) {\n row.put(rsMetadata.getColumnName(i), resultSet.getObject(i));\n }\n\n queryData.add(row); // adding a Map to the List of Maps\n }\n\n // Printing the rows\n for (Map<String, Object> row: queryData) {\n System.out.println(row.toString());\n\n }\n\n\n\n\n // close all connections\n resultSet.close();\n statement.close();\n connection.close();\n }",
"public String toSql() {\t\n int n;\t\n void a;\t\n StringBuilder a2 = new StringBuilder();\t\n Table table = MapperHelper.getTable(this.entity);\t\n a2.append(MapperHelper.getTableName((Table)a, this.entity) + \" \" + a.alias());\t\n JoinTable[] arrjoinTable = a.joinTable();\t\n int n2 = arrjoinTable.length;\t\n int n3 = n = 0;\t\n while (n3 < n2) {\t\n JoinTable a3 = arrjoinTable[n];\t\n Table a4 = MapperHelper.getTable(a3.entity());\t\n a2.append(new StringBuilder().insert(0, \" \").append(a3.type().value()).append(\" \").toString());\t\n a2.append(new StringBuilder().insert(0, MapperHelper.getTableName(a4, this.entity)).append(\" \").append(a3.alias()).toString());\t\n a2.append(new StringBuilder().insert(0, \" ON \").append(a3.on()).toString());\t\n n3 = ++n;\t\n }\t\n StringBuilder stringBuilder = a2;\t\n stringBuilder.append(MapperHelper.getSqlMapValue(this.entity, a.extFromKeys()));\t\n return stringBuilder.toString();\t\n }",
"List<PostInfo> getPostList();",
"TypedKeyValue<String, Integer> getDestinationInfo(String sql);",
"public void setPostId(int postId) {\r\n\t\tthis.postId = postId;\r\n\t}",
"public List<PostEntry> savePost(String username, int postid, String title, String body){\n Connection c = null;\n PreparedStatement ps = null; \n ResultSet rs = null;\n\n boolean ret = true;\n\n //check if postid exists.\n if(postid>0 && findPost(username, postid)==null){\n return null;\n }\n try {\n //Get connection\n c = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/CS144\", \"cs144\", \"\");\n int changed;\n if(postid>0){\n //UPDATE\n System.out.println(\"update post!\");\n ps = c.prepareStatement(\"UPDATE Posts SET title=?, body=?, modified=? WHERE username=? AND postid=?\");\n ps.setString(1, title);\n ps.setString(2, body);\n ps.setTimestamp(3, new Timestamp(System.currentTimeMillis())); //set modified to current time\n ps.setString(4, username);\n ps.setInt(5, postid);\n\n changed = ps.executeUpdate();\n }\n else {\n //get largest postid and add 1 to get newID\n\n System.out.println(\"new post!\");\n ps = c.prepareStatement(\"SELECT MAX(postid) FROM Posts WHERE username=?\");\n ps.setString(1, username);\n\n rs = ps.executeQuery();\n int newID = 1;\n if(rs.next()){\n newID = rs.getInt(1) + 1;\n }\n ps.close();\n\n ps = c.prepareStatement(\"INSERT INTO Posts (username, postid, title, body, modified, created) VALUES(?,?,?,?,?,?)\");\n ps.setString(1, username);\n ps.setInt(2, newID);\n ps.setString(3, title);\n ps.setString(4, body);\n ps.setTimestamp(5, new Timestamp(System.currentTimeMillis())); //set modified to current time\n ps.setTimestamp(6, new Timestamp(System.currentTimeMillis())); //set created to current time\n \n changed = ps.executeUpdate();\n }\n\n if(changed==0){\n ret = false;\n }\n\n } catch(SQLException e){\n //error handling\n System.out.println(\"SQLException caught.\");\n e.printStackTrace();\n } finally {\n //just need to close all\n try { rs.close(); } catch (Exception e) { /* ignored */ }\n try { ps.close(); } catch (Exception e) { /* ignored */ }\n try { c.close(); } catch (Exception e) { /* ignored */ }\n }\n\n //return list data\n if(ret)\n return findList(username);\n else\n return null;\n }",
"public long ashirPostCreating(AshirBlogPostingHelper post) {\n long result;\n\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(Col_2, post.getPost());\n values.put(Col_3, post.getImage());\n //inserting valuse into table columns\n result = db.insert(NAME_OF_TABLE, null, values);\n db.close();\n return result;\n\n }",
"public void setPostTableName(String postTableName) {\r\n\t\tthis.postTableName = postTableName;\r\n\t}",
"@Override\n\t\tprotected void postUpdate(EspStatusDTO t) throws SQLException {\n\t\t\t\n\t\t}",
"String getPostDeclareSql();",
"@Override\n public Entity configuracion(Entity e) throws SQLException {\n return null;\n }",
"public void setPostId(int postId) {\n\t\tthis.postId = postId;\n\t}",
"int getPostId();",
"void setPostId(int postId);",
"@Mapper\npublic interface QuestionDAO {\n String TABLE_NAME = \" question \";\n String INSERT_FIELDS = \" title, content, created_date, user_id, comment_count \";\n String SELECT_FIELDS = \" id, \" + INSERT_FIELDS;\n\n @Insert({\"insert into \", TABLE_NAME, \"(\", INSERT_FIELDS,\n \") values (#{title},#{content},#{createdDate},#{userId},#{commentCount})\"})\n int addQuestion(Question question);\n\n // 使用 xml 配置文件进行 数据库查询语句与程序接口的映射。\n // 对应的 QuestionDAO.xml 文件位于 resources 文件夹 -》com.mattLearn.dao 文件夹中。\n List<Question> selectLatestQuestions(@Param(\"userId\") int userId, @Param(\"offset\") int offset,\n @Param(\"limit\") int limit);\n\n @Select({\"select \", SELECT_FIELDS, \" from \", TABLE_NAME, \" where id=#{id}\"})\n Question SelectById(int id);\n\n @Update(\" update question set comment_count=#{commentCount} where id = #{id}\")\n int updateCommentCount(@Param(\"commentCount\") int commentCount,\n @Param(\"id\") int id);\n\n}",
"@Override\r\n\tpublic Post searchInfById(Post post2) {\n\t\tpostDao=new PostDaoImpl(TransactionManager.connection);\r\n\t\tResultSet resultSet=postDao.selectById(post2);\r\n\t\tPost post=new Post();\r\n\t\ttry {\r\n\t\t\tif(resultSet.next()) {\r\n\t\t\t\tpost.setPostId(resultSet.getInt(1));\r\n\t\t\t\tpost.setPostName(resultSet.getString(3));\r\n\t\t\t\tpost.setUserId(resultSet.getInt(2));\r\n\t\t\t\tpost.setPostProperty(resultSet.getInt(4));\r\n\t\t\t\tpost.setPostEnterNum(resultSet.getInt(5));\r\n\t\t\t\tpost.setPostTime(resultSet.getDate(6));\r\n\t\t\t\tpost.setPostScore(resultSet.getDouble(7));\r\n\t\t\t\tpost.setScoreCount(resultSet.getInt(8));\r\n\t\t\t\tpost.setLastComTime(resultSet.getDate(9));\r\n\t\t\t\tpost.setResId(resultSet.getInt(10));\r\n\t\t\t\tpost.setResPath(resultSet.getString(12));\r\n\t\t\t\tpost.setUserName(resultSet.getString(14));\r\n\t\t\t\tpost.setUserLevel(resultSet.getInt(16));\r\n\t\t\t\tpost.setUserStatus(resultSet.getInt(17));\r\n\t\t\t\tpost.setPropertyName(resultSet.getString(19));\r\n\t\t\t\tpost.setLocation(resultSet.getString(22));\r\n\t\t\t\tpost.setPhone(resultSet.getString(23));\r\n\t\t\t\tpost.setPostCode(resultSet.getInt(24));\r\n\t\t\t\tpost.setEmail(resultSet.getString(25));\r\n\t\t\t\tpost.setGender(resultSet.getString(26));\r\n\t\t\t\tpost.setHobby(resultSet.getString(27));\r\n\t\t\t\tpost.setMajor(resultSet.getString(28));\r\n\t\t\t\tpost.setScore(resultSet.getInt(29));\r\n\t\t\t\tpost.setNickName(resultSet.getString(30));\r\n\t\t\t\tpost.setUserRegion(resultSet.getString(31));\r\n\t\t\t\tpost.setUserPhoto(resultSet.getString(32));\r\n\t\t\t\tpost.setComCount(resultSet.getInt(39));\r\n\t\t\t\t\r\n\t\t\t\treturn post;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\treturn null;\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\treturn null;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n public ColumnInfo getColumnInfo() {\n return columnInfo;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<Post> getPostsOf(int postId){\n \t\tList<Post> postList = null;\n\t\tCriteria query = null;\n\t\ttry {\n\t\t\t\n\t\t\t query = getCurrentSession().createCriteria(Post.class);\n\t\t\t \n\t\t\t query.createAlias(\"this.orgperson\", \"author\") \n\t\t\t .createAlias(\"author.personid\",\"authorPerson\")\n\t\t\t \t .createAlias(\"this.postcategories\", \"postcategories\")\n\t\t\t \t .createAlias(\"postcategories.category\", \"category\")\n\t\t\t \t .createAlias(\"this.postskills\", \"postskills\")\n\t\t\t \t .createAlias(\"postskills.skill\", \"skill\")\n\t\t\t \t .createAlias(\"this.posttags\", \"posttags\")\n\t\t\t \t .createAlias(\"posttags.tag\", \"tag\");\n\t\t\t \n\t\t\t query.add(Restrictions.eq(\"this.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"author.orgpersonstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"authorPerson.personstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"postcategories.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"category.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"postskills.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"skill.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"posttags.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"tag.status\", \"A\")) \n\t\t\t \t .add(Restrictions.eq(\"this.id\", postId));\n\t\t\t \n\t\t\t query.setProjection(Projections.projectionList()\n\t\t\t\t\t \n\t\t\t\t\t //post\n\t\t\t\t\t .add(Projections.property(\"this.id\").as(\"post_id\"))\n\t\t\t\t\t .add(Projections.property(\"this.title\").as(\"post_title\"))\n\t\t\t\t\t .add(Projections.property(\"this.content\").as(\"post_content\")) \n\t\t\t\t\t .add(Projections.property(\"this.bannerpath\").as(\"post_bannerpath\"))\n\t\t\t\t\t .add(Projections.property(\"this.commentable\").as(\"post_commentable\"))\n\t\t\t\t\t .add(Projections.property(\"this.date\").as(\"post_date\"))\n\t\t\t\t\t .add(Projections.property(\"this.media\").as(\"post_media\")) \n\t\t\t\t\t .add(Projections.property(\"this.status\").as(\"post_status\")) \n\t\t\t\t\t //authorperson\n\t\t\t\t\t .add(Projections.property(\"authorPerson.personid\").as(\"authorPersonPersonId\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.firstName\").as(\"authorPersonFirstName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.lastName\").as(\"authorPersonLastName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.middleName\").as(\"authorPersonmiddleName\")) \n\t\t\t\t\t //category\n\t\t\t\t\t .add(Projections.property(\"category.id\").as(\"categoryId\")) \n\t\t\t\t\t .add(Projections.property(\"category.name\").as(\"categoryName\")) \n\t\t\t\t\t //skill\n\t\t\t\t\t .add(Projections.property(\"skill.id\").as(\"skillId\")) \n\t\t\t\t\t .add(Projections.property(\"skill.name\").as(\"skillName\")) \n\t\t\t\t\t//tag\n\t\t\t\t\t .add(Projections.property(\"tag.id\").as(\"tagId\")) \n\t\t\t\t\t .add(Projections.property(\"tag.name\").as(\"tagName\")) \n\t\t\t\t\t \n\t\t\t\t\t ); \n\t\t\t \n\t\t\t postList = query.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP).list(); \n\t\t\t \t \t \n\t\t} catch (Exception e) {\n\t\t\tpostServiceLogger.error(\"error in PostService for getPostsOf()\",e);\n\t\t} \n\t\treturn postList;\n\t}",
"public Integer getPostType() {\n return postType;\n }",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n response.setCharacterEncoding(\"UTF-8\");\n request.setCharacterEncoding(\"UTF-8\");\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"Ghosttales_PU\");\n EntityManager em = emf.createEntityManager();\n HttpSession session = request.getSession();\n \n \n //String file = request.getParameter(\"file\");\n \n \n String content = request.getParameter(\"content\");\n // String content = \"oiadjioajdoiajdiajsi\";\n System.out.println(\"---1---\");\n String title = request.getParameter(\"title\");\n String author = (String) session.getAttribute(\"userr\");\n UserInfo u = em.find(UserInfo.class, author);\n LocalDate today = LocalDate.now();\n \n System.out.println(u.getUsername());\n \n// if(content != null && title !=null) {\n\n // String sql2 = \"SELECT COUNT(p) FROM Post p\";\n String sql2 =\"SELECT p.postId FROM Post p\";\n Query q = em.createQuery(sql2);\n \n List <Post>ps =q.getResultList() ;\n \n \n \n// long countt = (long)q.getSingleResult();\n// int count = (int) countt+1;\n \n \n Post post = new Post(); \n int num = ps.size();\n if(num==0){\n int countt = num+1 ;\n int count = countt;\n post.setPostId(count);\n session.setAttribute(\"num\",count);\n }else{\n int countt = (int) q.getResultList().get(num-1);\n int count = countt+1;\n System.out.println(num);\n System.out.println(countt);\n System.out.println(count);\n post.setPostId(count);\n session.setAttribute(\"num\",count);\n }\n \n post.setTitle(title);\n post.setContent(content);\n post.setCreateTime(java.sql.Date.valueOf(today));\n post.setUpdateTime(null);\n post.setTotallike(0);\n post.setTotalcomment(0);\n post.setUserinfousername(u);\n System.out.println(\"-----2-----\");\n \n \n \n em.getTransaction().begin();\n em.persist(post);\n em.getTransaction().commit();\n \n \n \n \n \n session.setAttribute(\"show\", post);\n \n \n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"post\", post.getContent());\n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"title\", post.getTitle());\n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"author\", post.getUserinfousername().toString());\n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"day\", post.getCreateTime());\n \n \n\n request.getRequestDispatcher(\"/addimage.jsp\").forward(request, response);\n\n }",
"Achievements getPostDetails();",
"public CustomSql getCustomSqlInsert();",
"public int getDataid_postingBisnis() {\r\n return Dataid_postingBisnis;\r\n }",
"@Override\n\tpublic Post createPost(Post post) {\n\t\treturn postDao.createPost(post);\n\t}",
"int insert(PmPost record);",
"@Override\n\tpublic JDBCMetaData getMetaData() throws SQLException {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic void updatePost(Post post) {\n\t\tPost p = getPostById(post.getPost_id());\r\n\t\tp.setDepartment(post.getDepartment());\r\n\t\tp.setDescription(post.getDescription());\r\n\t\tp.setEmployeeSet(post.getEmployeeSet());\r\n\t\tp.setPost_id(post.getPost_id());\r\n\t\tp.setPost_name(post.getPost_name());\r\n\t\tp.setPost_wage(post.getPost_wage());\r\n\t\tgetHibernateTemplate().update(p);\r\n\t}",
"public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}",
"private void writeMetaData(ResultSet resultSet) throws SQLException {\n\t System.out.println(\"The columns in the table are: \");\r\n\t System.out.println(\"Table: \" + resultSet.getMetaData().getTableName(1));\r\n\t for (int i = 1; i<= resultSet.getMetaData().getColumnCount(); i++){\r\n\t System.out.println(\"Column \" +i + \" \"+ resultSet.getMetaData().getColumnName(i));\r\n\t }\r\n\t }",
"Integer getDomainTemplateColumn();",
"@SuppressWarnings(\"HardCodedStringLiteral\")\npublic interface MyPostsColumn {\n @DataType(INTEGER)\n @PrimaryKey\n String KEY_SQL_ID = \"sql_id\";\n\n @DataType(TEXT)\n @NotNull @Unique\n String KEY_ID = \"_id\";\n\n @DataType(TEXT)\n String KEY_AUTHOR = \"author\";\n\n @DataType(TEXT)\n @NotNull\n String KEY_SUBREDDIT_ID = \"subreddit_id\";\n\n @DataType(TEXT)\n @NotNull\n String KEY_SUBREDDIT = \"subreddit\";\n\n @DataType(INTEGER)\n String KEY_UPS = \"ups\";\n\n @DataType(TEXT)\n String KEY_TITLE = \"title\";\n\n @DataType(INTEGER)\n String KEY_COMMENTS_COUNT = \"comments_count\";\n\n @DataType(INTEGER)\n String KEY_CREATED_UTC = \"created_utc\";\n\n @DataType(INTEGER)\n String KEY_CREATED = \"created\";\n\n @DataType(TEXT)\n @NotNull\n String KEY_NAME = \"name\";\n\n @DataType(INTEGER)\n @NotNull\n String KEY_CLICKED = \"clicked\";\n\n @DataType(INTEGER)\n String KEY_LIKES = \"likes\"; //CAN BE NULL\n\n @DataType(TEXT)\n String KEY_DOMAIN = \"domain\";\n\n @DataType(INTEGER)\n String KEY_IS_SELF = \"is_self\";\n\n @DataType(INTEGER)\n @NotNull\n String KEY_OVER_18 = \"over_18\";\n\n @DataType(TEXT)\n String KEY_PERMALINK = \"permalink\";\n\n @DataType(TEXT)\n String KEY_POST_HINT = \"post_hint\";\n\n @DataType(INTEGER)\n String KEY_SCORE = \"score\";\n\n @DataType(TEXT)\n String KEY_THUMBNAIL = \"thumbnail\";\n\n @DataType(TEXT)\n String KEY_URL = \"url\";\n\n @DataType(INTEGER)\n String KEY_VISITED = \"visited\";\n\n @DataType(INTEGER)\n String KEY_LOCKED = \"locked\";\n\n @DataType(TEXT)\n String KEY_MEDIA_OEMBED_TYPE = \"media_oembed_type\";\n\n @DataType(TEXT)\n String KEY_BIG_IMAGE_URL = \"big_image_url\";\n\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_POST = \"type_post\";\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_SEARCH = \"type_search\";\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_WIDGET = \"type_widget\";\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_TEMP = \"type_temp\";\n\n\n\n}",
"@Override\n\tpublic void updateAllPostNowTipBySid(String Id, CodeInfo codeInfo) {\n\t\tQuery query = this.currentSession().createQuery(\"update com.wondersgroup.human.bo.pubinst.PtPost set tenureStatus = :nowPostSign where publicInstitution.id = :Id\");\n\t\tquery.setParameter(\"nowPostSign\", codeInfo);\n\t\tquery.setParameter(\"Id\",Id);\n\t\tquery.executeUpdate();\n\t\t\n\t}",
"public void queryPostTable(Context activityContext, String postTableName) {\n new GetCursorTablePost(activityContext).execute(postTableName);\n }",
"public interface IBasicPost {\n Long getId();\n String getTitle();\n String getDescription();\n long getCreatedDate();\n long getUpdatedDate();\n Integer getCityId();\n Long getUserId();\n Integer getUserLikeCount();\n Integer getUserCommentCount();\n String getUserFirstName();\n}",
"@RequestMapping(value = \"fetch-health-tips\", method = RequestMethod.POST)\n private List<HealthPost> fetchHealthTips() {\n SessionService.sessionBuilder(session -> {\n healthPostList = session.createQuery(\"from HealthPost order by id desc\", HealthPost.class).list();\n });\n return healthPostList;\n }",
"@Override\n public DatabaseMetaData getMetaData() throws SQLException\n {\n logger.debug(\n \" public DatabaseMetaData getMetaData() throws SQLException\");\n\n return new SnowflakeDatabaseMetaData(this);\n }",
"@Override\n\tpublic void getPost(Scanner sc) {\n\t\tPost p;\n\t\tgetAll();\n\t\tSystem.out.print(\"보고 싶은 리뷰의 번호를 입력해 주세요 >>\");\n\t\tp = dao.selectPost(sc.nextInt());\n\t\tSystem.out.println(p.getPostName());\n\t\tSystem.out.println(p.getContent());\n\t}",
"public interface BasePostPoMapper extends feihua.jdbc.api.dao.CrudDao<BasePostPo, String> {\n\n java.util.List<BasePostPo> searchBasePosts(SearchPostsConditionDsfDto dto);\n}",
"public List<MediumBean> populatemediam(String sql ){\n\t\t\t\tList<MediumBean> retlist = jdbcTemplate.query(sql,ParameterizedBeanPropertyRowMapper.newInstance(MediumBean.class));\n\t\t\t\t\treturn retlist;\n\t\t }",
"@Query(\"SELECT * FROM \" + TABLE_NAME)\n List<Note> getNotes();",
"public boolean addPost(Post post) throws SQLException\n {\n boolean isAdded=false;\n try\n {\n database = dbH.getReadableDatabase();\n dbH.openDataBase();\n ContentValues values = new ContentValues();\n values.put(\"postBody\", post.getPostBody());\n values.put(\"postedBy\", post.getPostedBy());\n values.put(\"postedAt\", post.getPostedAt());\n values.put(\"postID\", post.getPostID());\n values.put(\"image\" , post.getBitmap());\n\n isAdded=database.insert(\"Post\", null, values)>0;\n\n }\n catch(SQLException e)\n {\n e.printStackTrace();\n }\n finally{\n if(database!=null && database.isOpen())\n dbH.close();\n }\n return isAdded;}",
"@Override\r\n\tprotected Entity getEntityByFields() throws SQLException {\n\t\t\r\n\t\tint id = rs.getInt(\"id\");\r\n\t\tint productId = rs.getInt(\"id_product\");\r\n\t\tString productName = super.getString(\"productName\");\t// From INNER JOIN\r\n\t\tString productUnit = super.getString(\"productUnit\");\t// From INNER JOIN\r\n\t\tfloat quantity = rs.getFloat(\"quantity\");\r\n\t\tfloat price = rs.getFloat(\"price\");\r\n\t\tfloat summa = rs.getFloat(\"summa\");\r\n\t\t\r\n\t\treturn new DocInvoiceItem(id, productId, productName, productUnit, quantity, price, summa);\r\n\t}",
"public PostInformationExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public String getGeneratedSql() {\n/* 142 */ return this.sql;\n/* */ }",
"@Override\r\n\tpublic BaseBean insertSQL(String sql, Connection con) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic void insertIPODetail(IPODetail ipo) throws SQLException {\n\t\t\n\t}",
"@Override\n\tpublic Map<String, String[]> loadColumnMetas(String databaseName) throws SQLException {\n\t\tString sql=\"select utc.*,UCC.comments from user_tab_columns utc\\n\" + \n\t\t\t\t\"left join user_col_comments ucc on UCC.table_name=UTC.table_name and UCC.column_name=UTC.column_name\";\n\t\tMap<String, String[]> ret=new HashMap<>();\n\t\t try(PreparedStatement preparedStatement= connection.prepareStatement(sql);\n\t \t\tResultSet resultSet=preparedStatement.executeQuery();){\n\t\t\twhile(resultSet.next()) {\n\t\t\t\tString tableName=resultSet.getString(\"TABLE_NAME\")\n\t\t\t\t\t\t,columnName=resultSet.getString(\"COLUMN_NAME\")\n\t\t\t\t\t\t,dataLength=resultSet.getString(\"DATA_LENGTH\")\n\t\t ,nullable=resultSet.getString(\"NULLABLE\")\n\t\t ,comments=resultSet.getString(\"COMMENTS\")\n\t\t\t\t\t\t;\n\t\t\t\tString key=tableName+\":\"+columnName;\n\t\t\t\tret.put(key, new String[] {dataLength,nullable,comments});\n\t\t\t\t\n\t\t\t}\n\t }\n\t\t\n\t\treturn ret;\n\t}",
"@Override\r\n\tpublic List<Post> getPostByName(String name) {\n\t\tString hql = \"from Post p where p.post_name =?\";\r\n\t\treturn (List<Post>) getHibernateTemplate().find(hql, name);\r\n\t}",
"void processMetaData(ResultSet rs) throws SQLException;",
"@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }",
"@Dao\npublic interface PostDao {\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n void insertPost(iPost iPosts);\n\n @Update\n void updatePost(iPost iPost);\n\n @Delete\n void deletePost(iPost iPost);\n\n @Query(\"SELECT * FROM iPost\")\n List<iPost> getAllPosts();\n\n @Query(\"SELECT * FROM iPost WHERE idThread=:threadId\")\n List<iPost> findPostsByThread(final int threadId);\n\n @Transaction\n @Query(\"SELECT * FROM iPost WHERE idThread=:threadId\")\n Single<List<PostsHelper>> getPostsFromThread(String threadId);\n}",
"protected String getSqlTable() {\n\t\treturn \"Project\";\n\t}",
"public void formDatabaseTable() {\n }",
"public CustomSql getCustomSqlUpdate();",
"void savePost(Post post);",
"@Override\n\tprotected String getCreateSql() {\n\t\treturn null;\n\t}",
"public interface AlmacenMapper {\n @Select(value = \"select tipo,descripcion from tipoproducto\")\n @Results(value = {\n @Result(javaType = Producto.class),\n @Result(property = \"tipo\",column = \"tipo\"),\n @Result(property = \"descripcion\",column = \"descripcion\"),\n })\n List<Producto> listarTipoProducto();\n\n @Insert(value = \"INSERT \" +\n \"INTO producto \" +\n \" ( \" +\n \" codigo, \" +\n \" nombre, \" +\n \" tipo, \" +\n \" porc_precio, \" +\n \" uni_medida, \" +\n \" cantidad \" +\n \" ) \" +\n \" VALUES \" +\n \" ( \" +\n \" producto_seq.nextval, \" +\n \" #{produ.nombre}, \" +\n \" #{produ.tipo}, \" +\n \" #{produ.porc_precio}, \" +\n \" #{produ.uni_medida}, \" +\n \" #{produ.cantidad} \" +\n \" )\")\n void GuardarProducto(@Param(\"produ\") Producto producto);\n\n @Select(value = \"SELECT codigo, \" +\n \" nombre, \" +\n \" p.tipo, \" +\n \" tp.descripcion, \" +\n \" porc_precio, \" +\n \" uni_medida, \" +\n \" cantidad \" +\n \"FROM producto p \" +\n \"INNER JOIN tipoproducto tp \" +\n \"ON(p.tipo=tp.tipo)\")\n @Results(value = {\n @Result(javaType = Producto.class),\n @Result(property = \"codigo\",column = \"codigo\"),\n @Result(property = \"nombre\",column = \"nombre\"),\n @Result(property = \"tipo\",column = \"tipo\"),\n @Result(property = \"descripcion\",column = \"descripcion\"),\n @Result(property = \"porc_precio\",column = \"porc_precio\"),\n @Result(property = \"uni_medida\",column = \"uni_medida\"),\n @Result(property = \"cantidad\",column = \"cantidad\"),\n })\n List<Producto> listarProductos();\n\n @Update(value =\"UPDATE producto \" +\n \"SET nombre =#{produ.nombre}, \" +\n \" porc_precio=#{produ.porc_precio}, \" +\n \" tipo= \" +\n \" #{produ.tipo} \" +\n \"WHERE codigo=#{produ.codigo}\" )\n void ActualizarProducto(@Param(\"produ\") Producto producto);\n\n @Delete(value=\"DELETE FROM PRODUCTO WHERE codigo=#{id}\")\n void EliminarProducto(@Param(\"id\") Integer id);\n\n @Select(value = \"SELECT codigo, \" +\n \" nombre \" +\n \"FROM producto p where tipo=#{id} \")\n @Results(value = {\n @Result(javaType = Producto.class),\n @Result(property = \"codigo\",column = \"codigo\"),\n @Result(property = \"nombre\",column = \"nombre\"),\n })\n List<Producto> ListarProductosxCategoria(@Param(\"id\") Integer id);\n\n @Insert(value = \"INSERT \" +\n \"INTO entrada_productos \" +\n \" ( \" +\n \" n_entrada, \" +\n \" fecha, \" +\n \" costo_total \" +\n \" ) \" +\n \" VALUES \" +\n \" ( \" +\n \" entrada_seq.nextval , \" +\n \" sysdate, \" +\n \" #{entrada.costo_total} \" +\n \" )\")\n void insertEntradaProducto(@Param(\"entrada\") EntradaProducto entrada);\n\n @Insert(value = \"INSERT \" +\n \"INTO detalle_entrada_productos \" +\n \" ( \" +\n \" N_ENTRADA, \" +\n \" COD_PRODUCTO, \" +\n \" COD_PROVEEDOR, \" +\n \" CANTIDAD, \" +\n \" PRECIO_COMPRA, \" +\n \" COSTO_TOTAL_PRODUCTO \" +\n \" ) \" +\n \" VALUES \" +\n \" ( \" +\n \" (select max(n_entrada) from entrada_productos), \" +\n \" #{entrada.cod_producto}, \" +\n \" #{entrada.cod_proveedor}, \" +\n \" #{entrada.cantidad}, \" +\n \" #{entrada.precio_compra}, \" +\n \" #{entrada.costo_total_producto} \" +\n \" )\")\n void inserDetalleEntradaProductos(@Param(\"entrada\") EntradaProducto entrada);\n\n @Update(value =\"UPDATE producto \" +\n \"SET cantidad=(select cantidad+#{entrada.cantidad} from producto where codigo=#{entrada.cod_producto}) \"+\n \"WHERE codigo=#{entrada.cod_producto}\" )\n void updateStockProducto(@Param(\"entrada\")EntradaProducto entrada);\n}",
"private static void showsSqlSelectOnNormalEntityBean() {\n\n\t\tQuery<Bug> query = Ebean.createQuery(Bug.class, \"simple\");\n\t\tquery.where().eq(\"status.code\", \"ACTIVE\");\n\n\t\tList<Bug> list = query.findList();\n\n\t\tSystem.out.println(list);\n\t\t\n\t\tfor (Bug bug : list) {\n\t\t\tString body = bug.getBody();\n\t\t\tSystem.out.println(body);\n\t\t}\n\n\t}",
"@Override //插入通知\n\tpublic void insertPoInfo(PageData pd) throws Exception {\n\t\tdao.save(\"PoInfoMapper.insertPoInfo\", pd);\n\t}",
"public interface BugsActivityDAO {\n\n @Insert(\"insert into firefox_bugs_activity \" +\n \"(`bugId`,`who`,`when`,`what`,`removed`,`added`,`crawledTime`) \" +\n \"values (#{bugId},#{who},#{when},#{what},#{removed},#{added},#{crawledTime})\")\n public int add(BugsActivity fireFoxBugsActivity);\n\n @Insert(\"insert into firefox_bugs_activity_html (`bugId`,`html`) \" +\"values (#{bugId},#{html})\")\n public int addHtml(BugsActivity fireFoxBugsActivity);\n}",
"@Override\n\tpublic List<Map<String, Object>> getNoticeLast() {\n\t\tStringBuffer querySQL = new StringBuffer(\n\t\t\t\t\"select ifnull(title,'') title,ifnull(static_page,'') static_page from notice where status = 1 order by crdate desc limit 4\");\n\t\t// StringBuffer querySQL2 = new StringBuffer(\n\t\t// \"select count(1) from notice where status = 1 order by crdate desc limit 1\");\n\t\t// if (jdbcTemplate.queryForInt(querySQL2.toString()) > 0) {\n\t\treturn jdbcTemplate.queryForList(querySQL.toString());\n\t\t// }\n\t\t// return null;\n\n\t}",
"public PostRecord(Integer id, Integer userId, String title, String body, String date) {\n super(PostTable.POST);\n\n set(0, id);\n set(1, userId);\n set(2, title);\n set(3, body);\n set(4, date);\n }",
"@Override\n public Jurusan mapRow(ResultSet rs, int rowNum) throws SQLException {\n Jurusan jurusan=new Jurusan();\n jurusan.setId(rs.getInt(\"id\"));\n jurusan.setNama(rs.getString(\"nama\"));\n jurusan.setIdFakultas(rs.getInt(\"idFakultas\"));\n\n\n Fakultas fakultas=new Fakultas();\n fakultas.setId(rs.getInt(\"idFakultas\"));\n fakultas.setNama(rs.getString(\"namaFakultas\"));\n jurusan.setFakultas(fakultas);\n return jurusan;\n }",
"public interface BugPlatformMapper {\n\n\n @Select(\"SELECT js.pname as bugResolutionStatus, COUNT(js.pname) as bugNum FROM jiraissue ji INNER JOIN project pr ON pr.ID = ji.PROJECT LEFT JOIN issuestatus js ON ji.issuestatus = js.ID where pr.ID in (#{2}) and issuetype = 1 AND CREATED between #{0} and #{1} group by js.pname\")\n List<BugPlatformObject> getList(String startDate,String endDate,String project);\n}",
"@Override\n @Transactional\n public void onSubmit() {\n ValueMap values = getModelObject();\n\n // check if the honey pot is filled\n if (StringUtils.isNotBlank((String)values.get(\"comment\")))\n {\n error(\"Caught a spammer!!!\");\n return;\n }\n // Construct a copy of the edited comment\n Snip snip = new Snip();\n SnipMeta meta= new SnipMeta();\n\n logger.info(this.getDefaultModel().toString());\n\n logger.info(((List<String>) values.get(\"select_all\")).toString());\n\n meta.setTags((ArrayList<String>)values.get(\"select_all\"));\n meta.setDescription((String) values.get(\"meta\"));\n\n\n // Set date of comment to add\n snip.setDate(new Date());\n snip.setCode((String)values.get(\"code\"));\n snipList.add(0, snip); //TODO: eliminare lo show di tutti gli snipp da snipList magari con una FIFO\n meta.setSnip(snip);\n\n\n //--------- get session ad manager ------\n MyAuthenticatedWebSession app_session = MyAuthenticatedWebSession.getYourAppSession();\n logger.info(\"web session is: \"+app_session.toString());\n EntityManager em = app_session.getEntityManager();\n //---------------------------------------------------\n\n Users tmp_id = em.find(Users.class ,app_session.getAttribute(\"user\"));\n //snip.setUser(app_session.getCurrentUser()); --less network more backend\n snip.setUser(tmp_id);\n em.getTransaction().begin();\n em.setFlushMode(COMMIT);\n em.persist(snip);\n em.persist(meta);\n em.flush();\n em.getTransaction().commit();\n\n\n // Clear out the text component\n values.put(\"code\", \"\");\n }",
"@Override\n\tpublic String addOrUpdate(Map<String, Object> entityMap)\n\t\t\tthrows DataAccessException {\n\t\treturn null;\n\t}",
"@Insert({\n \"insert into kd_user_medal (id, userid, \",\n \"medalId, bindUserid, \",\n \"remark, createTime)\",\n \"values (#{id,jdbcType=BIGINT}, #{userid,jdbcType=BIGINT}, \",\n \"#{medalid,jdbcType=BIGINT}, #{binduserid,jdbcType=BIGINT}, \",\n \"#{remark,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP})\"\n })\n int insert(KDUserMedal record);",
"public interface GradeMapper {\n @Select(\"select * from grade\")\n public List<Grade> getByGradeNm();\n\n @Insert(\"insert into grade(grade_nm,teacher_id) values(#{gradeNm},#{teacherId})\")\n @Options(useGeneratedKeys=true,keyColumn=\"id\",keyProperty=\"id\")//设置id自增长\n public void save(Grade grade);\n}",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<Post> getPostsOf(int postId , int userId){\n\t\t\n\t\tList<Post> postList = null;\n\t\tCriteria query = null;\n\t\ttry {\n\t\t\t\n\t\t\t query = getCurrentSession().createCriteria(Post.class);\n\t\t\t \n\t\t\t query.createAlias(\"this.orgperson\", \"author\") \n\t\t\t .createAlias(\"author.personid\",\"authorPerson\")\n\t\t\t \t .createAlias(\"this.postcategories\", \"postcategories\")\n\t\t\t \t .createAlias(\"postcategories.category\", \"category\")\n\t\t\t \t .createAlias(\"this.postskills\", \"postskills\")\n\t\t\t \t .createAlias(\"postskills.skill\", \"skill\")\n\t\t\t \t .createAlias(\"this.posttags\", \"posttags\")\n\t\t\t \t .createAlias(\"posttags.tag\", \"tag\");\n\t\t\t \n\t\t\t query.add(Restrictions.eq(\"this.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"author.orgpersonstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"authorPerson.personstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"postcategories.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"category.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"postskills.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"skill.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"posttags.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"tag.status\", \"A\")) \n\t\t\t \t .add(Restrictions.eq(\"this.id\", postId))\n\t\t\t \t .add(Restrictions.eq(\"author.orgpersonid\", userId));\n\t\t\t \n\t\t\t query.setProjection(Projections.projectionList()\n\t\t\t\t\t \n\t\t\t\t\t //post\n\t\t\t\t\t .add(Projections.property(\"this.id\").as(\"post_id\"))\n\t\t\t\t\t .add(Projections.property(\"this.title\").as(\"post_title\"))\n\t\t\t\t\t .add(Projections.property(\"this.content\").as(\"post_content\")) \n\t\t\t\t\t .add(Projections.property(\"this.bannerpath\").as(\"post_bannerpath\"))\n\t\t\t\t\t .add(Projections.property(\"this.commentable\").as(\"post_commentable\"))\n\t\t\t\t\t .add(Projections.property(\"this.date\").as(\"post_date\"))\n\t\t\t\t\t .add(Projections.property(\"this.media\").as(\"post_media\")) \n\t\t\t\t\t .add(Projections.property(\"this.status\").as(\"post_status\")) \n\t\t\t\t\t //authorperson\n\t\t\t\t\t .add(Projections.property(\"authorPerson.personid\").as(\"authorPersonPersonId\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.firstName\").as(\"authorPersonFirstName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.lastName\").as(\"authorPersonLastName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.middleName\").as(\"authorPersonmiddleName\")) \n\t\t\t\t\t //category \n\t\t\t\t\t .add(Projections.property(\"postcategories.id\").as(\"postCategoryId\"))\n\t\t\t\t\t .add(Projections.property(\"postcategories.status\").as(\"postCategoryStatus\"))\n\t\t\t\t\t .add(Projections.property(\"category.id\").as(\"categoryId\")) \n\t\t\t\t\t .add(Projections.property(\"category.name\").as(\"categoryName\")) \n\t\t\t\t\t //skill\n\t\t\t\t\t .add(Projections.property(\"postskills.id\").as(\"postSkillsId\"))\n\t\t\t\t\t .add(Projections.property(\"postskills.status\").as(\"postSkillsStatus\"))\n\t\t\t\t\t .add(Projections.property(\"skill.id\").as(\"skillId\")) \n\t\t\t\t\t .add(Projections.property(\"skill.name\").as(\"skillName\")) \n\t\t\t\t\t//tag\n\t\t\t\t\t .add(Projections.property(\"posttags.id\").as(\"postTagsId\"))\n\t\t\t\t\t .add(Projections.property(\"posttags.status\").as(\"postTagsStatus\"))\n\t\t\t\t\t .add(Projections.property(\"tag.id\").as(\"tagId\")) \n\t\t\t\t\t .add(Projections.property(\"tag.name\").as(\"tagName\")) \n\t\t\t\t\t \n\t\t\t\t\t ); \n\t\t\t \n\t\t\t postList = query.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP).list();\n\t\t\t \n\t\t\t \t \t \n\t\t} catch (Exception e) {\n\t\t\tpostServiceLogger.error(\"error in PostService for getPostsOf()\",e);\n\t\t}\n\t\treturn postList;\n\t}",
"public void insert() throws SQLException {\n Statement stmtIn = DatabaseConnector.getInstance().getStatementIn();\n\n int check = BusinessFacade.getInstance().checkIDinDB(this.productRelation.getID(),\n this.post.getID(), \"goods\", \"product_type_id\", \"post_id\");\n if (check == -1){\n stmtIn.executeUpdate(\"INSERT INTO ngaccount.goods (goods_id , product_type_id, post_id) \" +\n \"VALUES ('\" + this.goodID + \"', '\" + this.productRelation.getID() +\n \"', '\" + this.post.getID() + \"');\");\n }\n }",
"public void savePost(VBeatPostModel post) {\n AppLocalDB.getInstance().db.postDao().insertAll(post);\n }"
]
| [
"0.5986511",
"0.57343584",
"0.5698853",
"0.56634164",
"0.56359017",
"0.5495471",
"0.54766834",
"0.5443607",
"0.54186773",
"0.540675",
"0.5376697",
"0.53740305",
"0.5356344",
"0.5313168",
"0.5307734",
"0.52856094",
"0.5266923",
"0.5225843",
"0.5206651",
"0.51996106",
"0.51923144",
"0.51611745",
"0.51532006",
"0.51422745",
"0.513571",
"0.51353717",
"0.5134549",
"0.5105684",
"0.5074469",
"0.5057113",
"0.5056853",
"0.5055585",
"0.5049771",
"0.502594",
"0.50159794",
"0.499411",
"0.49642175",
"0.49531126",
"0.49521723",
"0.4947493",
"0.49395558",
"0.49384743",
"0.49324217",
"0.4932038",
"0.4923745",
"0.4923715",
"0.49205098",
"0.49137557",
"0.49134496",
"0.49100736",
"0.4908896",
"0.48664138",
"0.48659784",
"0.48588654",
"0.48575795",
"0.4856264",
"0.4849936",
"0.48469815",
"0.48342496",
"0.48333818",
"0.4814589",
"0.4807359",
"0.48047185",
"0.47946662",
"0.4789952",
"0.4779272",
"0.4777647",
"0.47775498",
"0.47705945",
"0.47551864",
"0.47544068",
"0.4752167",
"0.47501215",
"0.47486997",
"0.47481894",
"0.47462088",
"0.47452283",
"0.4744978",
"0.47447786",
"0.47446957",
"0.47380137",
"0.47270015",
"0.4726089",
"0.47204205",
"0.47192907",
"0.47117898",
"0.4707037",
"0.47054353",
"0.47028366",
"0.4699353",
"0.46976545",
"0.46958038",
"0.46956462",
"0.469355",
"0.46908292",
"0.4689735",
"0.46892476",
"0.46826327",
"0.46822074",
"0.4677628",
"0.46771917"
]
| 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table post_information | protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getPostSQL()\n {\n return _get_imfObject().getPostSQL();\n }",
"public PostRecord() {\n super(PostTable.POST);\n }",
"Forumpost selectByPrimaryKey(Integer postid);",
"PostSaveDTO queryDetailById(String postId);",
"public ArrayList<PostInfo> getPost() throws SQLException {\n ArrayList<PostInfo> postInfoList = new ArrayList<>();\n String sql = \"SELECT * FROM `post` WHERE `status` = 1 ORDER BY `post_time` DESC\";\n statement = connection.createStatement();\n resultSet = statement.executeQuery(sql);\n while (resultSet.next()) {\n postInfoList.add(new PostInfo(resultSet.getInt(\"post_id\"), resultSet.getInt(\"place_id\"), resultSet.getString(\"post_text\"),\n resultSet.getDate(\"post_time\"), resultSet.getInt(\"status\"), resultSet.getInt(\"user_id\"), resultSet.getInt(\"editor_id\")));\n }\n return postInfoList;\n }",
"@SuppressWarnings(\"deprecation\")\n\tpublic void writeTable()\n\t{\n\t\tIterator<WPPost> itr = readValues.iterator();\n\t\t\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\tWPPost post = itr.next();\n\t\t\tPreparedStatement prStm;\n\t\t\tint res = 0;\n\t\t\t\n\t\t\ttry \n\t\t\t{\n\t\t\t\tif(post.getPostDateGMT() == null)\n\t\t\t\t{\n\t\t\t\t\tpost.setPostDateGMT(new Timestamp(0));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(post.getPostModifiedGMT() == null)\n\t\t\t\t{\n\t\t\t\t\tpost.setPostModifiedGMT(new Timestamp(0));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tprStm = conn.prepareStatement(WRITE_STATEMENT);\n\t\t\t\tprStm.setInt(1, post.getId());\n\t\t\t\tprStm.setInt(2, post.getPostAuthor());\n\t\t\t\tprStm.setTimestamp(3, post.getPostDate());\n\t\t\t\tprStm.setTimestamp(4, post.getPostDateGMT());\n\t\t\t\tprStm.setString(5, post.getPostContent());\n\t\t\t\tprStm.setString(6, post.getPostTitle());\n\t\t\t\tprStm.setString(7, post.getPostExcerpt());\n\t\t\t\tprStm.setString(8, post.getPostStatus());\n\t\t\t\tprStm.setString(9, post.getCommentStatus());\n\t\t\t\tprStm.setString(10, post.getPingStatus());\n\t\t\t\tprStm.setString(11, post.getPostPassword());\n\t\t\t\tprStm.setString(12, post.getPostName());\n\t\t\t\tprStm.setString(13, post.getToPing());\n\t\t\t\tprStm.setString(14, post.getPinged());\n\t\t\t\tprStm.setTimestamp(15, post.getPostModified());\n\t\t\t\tprStm.setTimestamp(16, post.getPostModifiedGMT());\n\t\t\t\tprStm.setString(17, post.getPostContentFiltered());\n\t\t\t\tprStm.setInt(18, post.getPostParent());\n\t\t\t\tprStm.setString(19, post.getGuid());\n\t\t\t\tprStm.setInt(20, post.getMenuOrder());\n\t\t\t\tprStm.setString(21, post.getPostType());\n\t\t\t\tprStm.setString(22, post.getPostMimeType());\n\t\t\t\tprStm.setInt(23, post.getCommentCount());\n\t\t\t\t\n\t\t\t\tres = prStm.executeUpdate();\n\t\t\t\t\n\t\t\t\tif(res == 0)\n\t\t\t\t{\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new WriteWPPostException(post.toString());\n\t\t\t\t\t} \n\t\t\t\t\tcatch (WriteWPPostException e) \n\t\t\t\t\t{\n\t\t\t\t\t\t//e.printStackTrace(); // TODO Debug Mode! Delete This!\n\t\t\t\t\t\tthis.rowsWithErrors.add(post);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\t\t\tcatch (SQLException e1) \n\t\t\t{\n\t\t\t\t//e1.printStackTrace(); // TODO Debug Mode! Delete This!\n\t\t\t\tthis.rowsWithErrors.add(post);\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\tpublic List<Post> getAllPost() {\n\t\tString hql = \"from Post\";\r\n\t\treturn (List<Post>) getHibernateTemplate().find(hql);\r\n\t}",
"PmPost selectByPrimaryKey(String postId);",
"public void setPostId(Integer postId) {\n this.postId = postId;\n }",
"public Integer getPostId() {\n return postId;\n }",
"@Override\n\tpublic void getAll() {\n\t\tArrayList<Post> list = new ArrayList<Post>();\n\t\tlist = dao.selectAll();\n\t\t\n\t\tfor (Post p : list) {\n\t\t\tSystem.out.println(p.getPostId() + \".\" + p.getPostName() + \" 작성자:\" + p.getMemberId());\n\t\t}\n\t}",
"public List<detailsofpassengerpost> seedetailslist() throws IOException{\n//connect database\nString resource = \"orm/configuration.xml\";\nReader reader = Resources.getResourceAsReader(resource);\nSqlSessionFactory sessionFactory = new SqlSessionFactoryBuilder().build(reader);\nSqlSession session = sessionFactory.openSession();\n\ntry{\n\tSystem.out.println(\"postID in seeDetails=\"+postID);\npostlist=session.selectList(\"selectPassengerPostByID\",postID);\nSystem.out.println(\"postlist size in seeDetails=\"+postlist.size());\n\n//find passenger's name through his email address\nnumberofapplieddrivers=postlist.get(0).getNumberofapplieddrivers();\npassengeremail=postlist.get(0).getEmail();\npassengerlist=session.selectList(\"selectuserbyemail\", passengeremail);\n\npassengername=passengerlist.get(0).getName();\npassengersex=passengerlist.get(0).getSex();\npassengerdob=passengerlist.get(0).getDob();\n\ndd=new detailsofpassengerpost();\ndetaillist=new ArrayList<detailsofpassengerpost>();\n\ndd.setNeedseats(postlist.get(0).getNeedseats());\ndd.setExpectedcartype(postlist.get(0).getExpectedcartype());\ndd.setDeparture(postlist.get(0).getDeparture());\ndd.setDeparturedate(postlist.get(0).getDeparturedate());\ndd.setDestination(postlist.get(0).getDestination());\ndd.setDob(passengerdob);\ndd.setEmail(passengeremail);\ndd.setEstimatedleavingtime(postlist.get(0).getEstimatedleavingtime());\ndd.setExpectedcost(postlist.get(0).getExpectedcost());\ndd.setMemo(postlist.get(0).getMemo());\ndd.setName(passengername);\ndd.setPostID(postID);\ndd.setSex(passengersex);\ndd.setPhone(postlist.get(0).getPhone());\ndd.setNumberofapplieddrivers(numberofapplieddrivers);\ndetaillist.add(dd);\n\nreturn detaillist;\n\n}finally{\nsession.close();\n}\n}",
"public List<Post> all() throws DataAccessException{\n String sql = \"select posts.id, posts.user_id, users.name, posts.title, posts.content, posts.create_date from posts join users on posts.user_id=users.id\";\n List<Post> posts = this.jdbcTemplate.query(sql, mapper);\n return posts;\n }",
"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}",
"@Override\r\n\tpublic void addPost(Post post) {\n\t\tgetHibernateTemplate().save(post);\r\n\t}",
"@Override\n public HashMap<Integer,_DefaultMessage> loadPost() throws IOException, SQLException, ClassNotFoundException {\n return _DbConnectionManager.getHMPosts(this.dbConnection, this.getName());\n }",
"public String getPostTableName() {\r\n\t\treturn postTableName;\r\n\t}",
"public void setPostId(long postId);",
"public interface CommentMapper {\n\n @Insert(\"insert comment(productId,userId,text,createdAt) values(#{productId},#{userId},#{text},now())\" )\n @Options(useGeneratedKeys = true,keyProperty = \"id\")\n void insertComment(Comment comment);\n\n @Select(\"select * from comment where productId=#{productId}\")\n List<Comment> getCommentByProductId(int productId);\n\n @Delete(\"delete from comment where id = #{id}\")\n void deleteComment(int id);\n\n\n}",
"public interface Post {\n\n\tpublic Long getId();\n\n\tpublic void setId(Long id);\n\n\tpublic Date getDate();\n\n\tpublic void setDate(Date date);\n\n\tpublic String getMessage();\n\n\tpublic void setMessage(String message);\n\n}",
"@Override\r\n\t\tpublic DatabaseMetaData getMetaData() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"public void updatePost(PostInfo postInfo) throws SQLException {\n String sql = \"UPDATE `post` SET `place_id`=?,`post_text`=?,`post_time`=?,`status`=?,`user_id`=?,`editor_id`=? WHERE `post_id` = ?\";\n preparedStatement = connection.prepareStatement(sql);\n preparedStatement.setInt(1, postInfo.getPlace_id());\n preparedStatement.setString(2, postInfo.getPost_text());\n preparedStatement.setDate(3, postInfo.getPost_time());\n preparedStatement.setInt(4, postInfo.getStatus());\n preparedStatement.setInt(5, postInfo.getUser_id());\n preparedStatement.setInt(6, postInfo.getEditor_id());\n preparedStatement.setInt(7, postInfo.getPost_id());\n\n preparedStatement.executeUpdate();\n }",
"public int getPostId() {\r\n\t\treturn postId;\r\n\t}",
"public void deletePost(PostInfo postInfo) throws SQLException {\n String sql = \"UPDATE `post` SET `status`=0 WHERE `post_id` = ?\";\n preparedStatement = connection.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);\n preparedStatement.setInt(1, postInfo.getPost_id());\n\n preparedStatement.executeUpdate();\n }",
"@Override\n\tpublic Map<String, String> toSqlMap() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Collection<Tmly> getTmlyInfo() {\n\t\tString sql = \"select ID_,TITLE,CONTENT,state from tmly\";\n\t\tList<Tmly> list = this.jdbcTemplate.query(sql, new RowMapper<Tmly>() {\n\n\t\t\t@Override\n\t\t\tpublic Tmly mapRow(ResultSet result, int i) throws SQLException {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tTmly tmly = new Tmly();\n\t\t\t\ttmly.setId(result.getInt(\"id_\"));\n\t\t\t\ttmly.setTitle(result.getString(\"title\"));\n\t\t\t\ttmly.setContent(result.getString(\"content\"));\n\t\t\t\treturn tmly;\n\t\t\t}\n\n\t\t});\n\t\treturn list;\n\t}",
"public long getPostId() {\n return postId;\n }",
"public long getPostId();",
"public static ResultSet getPosts(){\n ResultSet result = null;\n try {\n conn = ConnectionProvider.getCon();\n pst = conn.prepareStatement(\"select * from normalposts\");\n result = pst.executeQuery();\n\n System.out.println(\"PostDAO: getting posts\");\n } catch(Exception e) {\n System.out.println(\"PostDAO: unsuccessful query\");\n System.out.println(e);\n }\n return result;\n }",
"@Mapper\npublic interface BlogDAO {\n @Insert(\"INSERT INTO blog(title,uniq,markdown,html, create_time,update_time) \" +\n \"VALUES(#{item.title},#{item.uniq},#{item.markdown},#{item.html},#{item.createTime}, #{item.updateTime})\")\n int insert(\n @Param(\"item\") Blog blog\n );\n\n @Select(\"SELECT id,uniq,title,markdown,html,\" +\n \" create_time as createTime,update_time as updateTime \" +\n \" FROM blog WHERE id = #{id}\")\n Blog getBlogById(@Param(\"id\") String id);\n\n @Insert(\"replace into blog(id,title,uniq,markdown,html, create_time,update_time) \" +\n \"VALUES(#{item.id},#{item.title},#{item.uniq},#{item.markdown},#{item.html},#{item.createTime}, #{item.updateTime})\")\n int update(@Param(\"item\")Blog blog);\n\n @Select(\"SELECT id,uniq,title,\" +\n \" create_time as createTime,update_time as updateTime \" +\n \" FROM blog order by id desc limit #{offset}, #{limit}\")\n List<Blog> getBlogList(@Param(\"offset\")long offset,\n @Param(\"limit\")long limit,\n @Param(\"sort\") String sort);\n}",
"@Test\n public void metaDataExample1() throws SQLException {\n Connection connection = DriverManager.getConnection(dbUrl, dbUsername, dbPassword);\n // 2. Create statement\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n // Run sql query and get the result in resultSet object\n String sqlQuery= \"Select * From departments\";\n //String sqlQuery= \"Select first_name, last_name, salary From employees\";\n ResultSet resultSet = statement.executeQuery(sqlQuery);\n\n // we use resultSet metadata to get information about the tables\n // get the resultSet object metadata\n ResultSetMetaData rsMetadata = resultSet.getMetaData();\n\n // List for keeping all rows as a map\n List<Map<String, Object>> queryData = new ArrayList<>();\n\n // while(resultSet.next()) helps to iterate through columns\n while (resultSet.next()) {\n // key(columns) will be string but value can be any type of data. That's why we choose <String, Object>\n Map<String, Object> row = new HashMap<>(); // creating empty Map\n // number of columns\n int colCount = rsMetadata.getColumnCount();\n // for loop helps to iterate through columns\n for (int i = 1; i <= colCount; i++) {\n row.put(rsMetadata.getColumnName(i), resultSet.getObject(i));\n }\n\n queryData.add(row); // adding a Map to the List of Maps\n }\n\n // Printing the rows\n for (Map<String, Object> row: queryData) {\n System.out.println(row.toString());\n\n }\n\n\n\n\n // close all connections\n resultSet.close();\n statement.close();\n connection.close();\n }",
"public String toSql() {\t\n int n;\t\n void a;\t\n StringBuilder a2 = new StringBuilder();\t\n Table table = MapperHelper.getTable(this.entity);\t\n a2.append(MapperHelper.getTableName((Table)a, this.entity) + \" \" + a.alias());\t\n JoinTable[] arrjoinTable = a.joinTable();\t\n int n2 = arrjoinTable.length;\t\n int n3 = n = 0;\t\n while (n3 < n2) {\t\n JoinTable a3 = arrjoinTable[n];\t\n Table a4 = MapperHelper.getTable(a3.entity());\t\n a2.append(new StringBuilder().insert(0, \" \").append(a3.type().value()).append(\" \").toString());\t\n a2.append(new StringBuilder().insert(0, MapperHelper.getTableName(a4, this.entity)).append(\" \").append(a3.alias()).toString());\t\n a2.append(new StringBuilder().insert(0, \" ON \").append(a3.on()).toString());\t\n n3 = ++n;\t\n }\t\n StringBuilder stringBuilder = a2;\t\n stringBuilder.append(MapperHelper.getSqlMapValue(this.entity, a.extFromKeys()));\t\n return stringBuilder.toString();\t\n }",
"List<PostInfo> getPostList();",
"TypedKeyValue<String, Integer> getDestinationInfo(String sql);",
"public void setPostId(int postId) {\r\n\t\tthis.postId = postId;\r\n\t}",
"public List<PostEntry> savePost(String username, int postid, String title, String body){\n Connection c = null;\n PreparedStatement ps = null; \n ResultSet rs = null;\n\n boolean ret = true;\n\n //check if postid exists.\n if(postid>0 && findPost(username, postid)==null){\n return null;\n }\n try {\n //Get connection\n c = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/CS144\", \"cs144\", \"\");\n int changed;\n if(postid>0){\n //UPDATE\n System.out.println(\"update post!\");\n ps = c.prepareStatement(\"UPDATE Posts SET title=?, body=?, modified=? WHERE username=? AND postid=?\");\n ps.setString(1, title);\n ps.setString(2, body);\n ps.setTimestamp(3, new Timestamp(System.currentTimeMillis())); //set modified to current time\n ps.setString(4, username);\n ps.setInt(5, postid);\n\n changed = ps.executeUpdate();\n }\n else {\n //get largest postid and add 1 to get newID\n\n System.out.println(\"new post!\");\n ps = c.prepareStatement(\"SELECT MAX(postid) FROM Posts WHERE username=?\");\n ps.setString(1, username);\n\n rs = ps.executeQuery();\n int newID = 1;\n if(rs.next()){\n newID = rs.getInt(1) + 1;\n }\n ps.close();\n\n ps = c.prepareStatement(\"INSERT INTO Posts (username, postid, title, body, modified, created) VALUES(?,?,?,?,?,?)\");\n ps.setString(1, username);\n ps.setInt(2, newID);\n ps.setString(3, title);\n ps.setString(4, body);\n ps.setTimestamp(5, new Timestamp(System.currentTimeMillis())); //set modified to current time\n ps.setTimestamp(6, new Timestamp(System.currentTimeMillis())); //set created to current time\n \n changed = ps.executeUpdate();\n }\n\n if(changed==0){\n ret = false;\n }\n\n } catch(SQLException e){\n //error handling\n System.out.println(\"SQLException caught.\");\n e.printStackTrace();\n } finally {\n //just need to close all\n try { rs.close(); } catch (Exception e) { /* ignored */ }\n try { ps.close(); } catch (Exception e) { /* ignored */ }\n try { c.close(); } catch (Exception e) { /* ignored */ }\n }\n\n //return list data\n if(ret)\n return findList(username);\n else\n return null;\n }",
"public long ashirPostCreating(AshirBlogPostingHelper post) {\n long result;\n\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(Col_2, post.getPost());\n values.put(Col_3, post.getImage());\n //inserting valuse into table columns\n result = db.insert(NAME_OF_TABLE, null, values);\n db.close();\n return result;\n\n }",
"public void setPostTableName(String postTableName) {\r\n\t\tthis.postTableName = postTableName;\r\n\t}",
"@Override\n\t\tprotected void postUpdate(EspStatusDTO t) throws SQLException {\n\t\t\t\n\t\t}",
"String getPostDeclareSql();",
"@Override\n public Entity configuracion(Entity e) throws SQLException {\n return null;\n }",
"public void setPostId(int postId) {\n\t\tthis.postId = postId;\n\t}",
"int getPostId();",
"void setPostId(int postId);",
"@Mapper\npublic interface QuestionDAO {\n String TABLE_NAME = \" question \";\n String INSERT_FIELDS = \" title, content, created_date, user_id, comment_count \";\n String SELECT_FIELDS = \" id, \" + INSERT_FIELDS;\n\n @Insert({\"insert into \", TABLE_NAME, \"(\", INSERT_FIELDS,\n \") values (#{title},#{content},#{createdDate},#{userId},#{commentCount})\"})\n int addQuestion(Question question);\n\n // 使用 xml 配置文件进行 数据库查询语句与程序接口的映射。\n // 对应的 QuestionDAO.xml 文件位于 resources 文件夹 -》com.mattLearn.dao 文件夹中。\n List<Question> selectLatestQuestions(@Param(\"userId\") int userId, @Param(\"offset\") int offset,\n @Param(\"limit\") int limit);\n\n @Select({\"select \", SELECT_FIELDS, \" from \", TABLE_NAME, \" where id=#{id}\"})\n Question SelectById(int id);\n\n @Update(\" update question set comment_count=#{commentCount} where id = #{id}\")\n int updateCommentCount(@Param(\"commentCount\") int commentCount,\n @Param(\"id\") int id);\n\n}",
"@Override\r\n\tpublic Post searchInfById(Post post2) {\n\t\tpostDao=new PostDaoImpl(TransactionManager.connection);\r\n\t\tResultSet resultSet=postDao.selectById(post2);\r\n\t\tPost post=new Post();\r\n\t\ttry {\r\n\t\t\tif(resultSet.next()) {\r\n\t\t\t\tpost.setPostId(resultSet.getInt(1));\r\n\t\t\t\tpost.setPostName(resultSet.getString(3));\r\n\t\t\t\tpost.setUserId(resultSet.getInt(2));\r\n\t\t\t\tpost.setPostProperty(resultSet.getInt(4));\r\n\t\t\t\tpost.setPostEnterNum(resultSet.getInt(5));\r\n\t\t\t\tpost.setPostTime(resultSet.getDate(6));\r\n\t\t\t\tpost.setPostScore(resultSet.getDouble(7));\r\n\t\t\t\tpost.setScoreCount(resultSet.getInt(8));\r\n\t\t\t\tpost.setLastComTime(resultSet.getDate(9));\r\n\t\t\t\tpost.setResId(resultSet.getInt(10));\r\n\t\t\t\tpost.setResPath(resultSet.getString(12));\r\n\t\t\t\tpost.setUserName(resultSet.getString(14));\r\n\t\t\t\tpost.setUserLevel(resultSet.getInt(16));\r\n\t\t\t\tpost.setUserStatus(resultSet.getInt(17));\r\n\t\t\t\tpost.setPropertyName(resultSet.getString(19));\r\n\t\t\t\tpost.setLocation(resultSet.getString(22));\r\n\t\t\t\tpost.setPhone(resultSet.getString(23));\r\n\t\t\t\tpost.setPostCode(resultSet.getInt(24));\r\n\t\t\t\tpost.setEmail(resultSet.getString(25));\r\n\t\t\t\tpost.setGender(resultSet.getString(26));\r\n\t\t\t\tpost.setHobby(resultSet.getString(27));\r\n\t\t\t\tpost.setMajor(resultSet.getString(28));\r\n\t\t\t\tpost.setScore(resultSet.getInt(29));\r\n\t\t\t\tpost.setNickName(resultSet.getString(30));\r\n\t\t\t\tpost.setUserRegion(resultSet.getString(31));\r\n\t\t\t\tpost.setUserPhoto(resultSet.getString(32));\r\n\t\t\t\tpost.setComCount(resultSet.getInt(39));\r\n\t\t\t\t\r\n\t\t\t\treturn post;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\treturn null;\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\treturn null;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n public ColumnInfo getColumnInfo() {\n return columnInfo;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<Post> getPostsOf(int postId){\n \t\tList<Post> postList = null;\n\t\tCriteria query = null;\n\t\ttry {\n\t\t\t\n\t\t\t query = getCurrentSession().createCriteria(Post.class);\n\t\t\t \n\t\t\t query.createAlias(\"this.orgperson\", \"author\") \n\t\t\t .createAlias(\"author.personid\",\"authorPerson\")\n\t\t\t \t .createAlias(\"this.postcategories\", \"postcategories\")\n\t\t\t \t .createAlias(\"postcategories.category\", \"category\")\n\t\t\t \t .createAlias(\"this.postskills\", \"postskills\")\n\t\t\t \t .createAlias(\"postskills.skill\", \"skill\")\n\t\t\t \t .createAlias(\"this.posttags\", \"posttags\")\n\t\t\t \t .createAlias(\"posttags.tag\", \"tag\");\n\t\t\t \n\t\t\t query.add(Restrictions.eq(\"this.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"author.orgpersonstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"authorPerson.personstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"postcategories.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"category.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"postskills.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"skill.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"posttags.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"tag.status\", \"A\")) \n\t\t\t \t .add(Restrictions.eq(\"this.id\", postId));\n\t\t\t \n\t\t\t query.setProjection(Projections.projectionList()\n\t\t\t\t\t \n\t\t\t\t\t //post\n\t\t\t\t\t .add(Projections.property(\"this.id\").as(\"post_id\"))\n\t\t\t\t\t .add(Projections.property(\"this.title\").as(\"post_title\"))\n\t\t\t\t\t .add(Projections.property(\"this.content\").as(\"post_content\")) \n\t\t\t\t\t .add(Projections.property(\"this.bannerpath\").as(\"post_bannerpath\"))\n\t\t\t\t\t .add(Projections.property(\"this.commentable\").as(\"post_commentable\"))\n\t\t\t\t\t .add(Projections.property(\"this.date\").as(\"post_date\"))\n\t\t\t\t\t .add(Projections.property(\"this.media\").as(\"post_media\")) \n\t\t\t\t\t .add(Projections.property(\"this.status\").as(\"post_status\")) \n\t\t\t\t\t //authorperson\n\t\t\t\t\t .add(Projections.property(\"authorPerson.personid\").as(\"authorPersonPersonId\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.firstName\").as(\"authorPersonFirstName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.lastName\").as(\"authorPersonLastName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.middleName\").as(\"authorPersonmiddleName\")) \n\t\t\t\t\t //category\n\t\t\t\t\t .add(Projections.property(\"category.id\").as(\"categoryId\")) \n\t\t\t\t\t .add(Projections.property(\"category.name\").as(\"categoryName\")) \n\t\t\t\t\t //skill\n\t\t\t\t\t .add(Projections.property(\"skill.id\").as(\"skillId\")) \n\t\t\t\t\t .add(Projections.property(\"skill.name\").as(\"skillName\")) \n\t\t\t\t\t//tag\n\t\t\t\t\t .add(Projections.property(\"tag.id\").as(\"tagId\")) \n\t\t\t\t\t .add(Projections.property(\"tag.name\").as(\"tagName\")) \n\t\t\t\t\t \n\t\t\t\t\t ); \n\t\t\t \n\t\t\t postList = query.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP).list(); \n\t\t\t \t \t \n\t\t} catch (Exception e) {\n\t\t\tpostServiceLogger.error(\"error in PostService for getPostsOf()\",e);\n\t\t} \n\t\treturn postList;\n\t}",
"public Integer getPostType() {\n return postType;\n }",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n response.setCharacterEncoding(\"UTF-8\");\n request.setCharacterEncoding(\"UTF-8\");\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"Ghosttales_PU\");\n EntityManager em = emf.createEntityManager();\n HttpSession session = request.getSession();\n \n \n //String file = request.getParameter(\"file\");\n \n \n String content = request.getParameter(\"content\");\n // String content = \"oiadjioajdoiajdiajsi\";\n System.out.println(\"---1---\");\n String title = request.getParameter(\"title\");\n String author = (String) session.getAttribute(\"userr\");\n UserInfo u = em.find(UserInfo.class, author);\n LocalDate today = LocalDate.now();\n \n System.out.println(u.getUsername());\n \n// if(content != null && title !=null) {\n\n // String sql2 = \"SELECT COUNT(p) FROM Post p\";\n String sql2 =\"SELECT p.postId FROM Post p\";\n Query q = em.createQuery(sql2);\n \n List <Post>ps =q.getResultList() ;\n \n \n \n// long countt = (long)q.getSingleResult();\n// int count = (int) countt+1;\n \n \n Post post = new Post(); \n int num = ps.size();\n if(num==0){\n int countt = num+1 ;\n int count = countt;\n post.setPostId(count);\n session.setAttribute(\"num\",count);\n }else{\n int countt = (int) q.getResultList().get(num-1);\n int count = countt+1;\n System.out.println(num);\n System.out.println(countt);\n System.out.println(count);\n post.setPostId(count);\n session.setAttribute(\"num\",count);\n }\n \n post.setTitle(title);\n post.setContent(content);\n post.setCreateTime(java.sql.Date.valueOf(today));\n post.setUpdateTime(null);\n post.setTotallike(0);\n post.setTotalcomment(0);\n post.setUserinfousername(u);\n System.out.println(\"-----2-----\");\n \n \n \n em.getTransaction().begin();\n em.persist(post);\n em.getTransaction().commit();\n \n \n \n \n \n session.setAttribute(\"show\", post);\n \n \n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"post\", post.getContent());\n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"title\", post.getTitle());\n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"author\", post.getUserinfousername().toString());\n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"day\", post.getCreateTime());\n \n \n\n request.getRequestDispatcher(\"/addimage.jsp\").forward(request, response);\n\n }",
"Achievements getPostDetails();",
"public CustomSql getCustomSqlInsert();",
"public int getDataid_postingBisnis() {\r\n return Dataid_postingBisnis;\r\n }",
"@Override\n\tpublic Post createPost(Post post) {\n\t\treturn postDao.createPost(post);\n\t}",
"int insert(PmPost record);",
"@Override\n\tpublic JDBCMetaData getMetaData() throws SQLException {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic void updatePost(Post post) {\n\t\tPost p = getPostById(post.getPost_id());\r\n\t\tp.setDepartment(post.getDepartment());\r\n\t\tp.setDescription(post.getDescription());\r\n\t\tp.setEmployeeSet(post.getEmployeeSet());\r\n\t\tp.setPost_id(post.getPost_id());\r\n\t\tp.setPost_name(post.getPost_name());\r\n\t\tp.setPost_wage(post.getPost_wage());\r\n\t\tgetHibernateTemplate().update(p);\r\n\t}",
"public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}",
"private void writeMetaData(ResultSet resultSet) throws SQLException {\n\t System.out.println(\"The columns in the table are: \");\r\n\t System.out.println(\"Table: \" + resultSet.getMetaData().getTableName(1));\r\n\t for (int i = 1; i<= resultSet.getMetaData().getColumnCount(); i++){\r\n\t System.out.println(\"Column \" +i + \" \"+ resultSet.getMetaData().getColumnName(i));\r\n\t }\r\n\t }",
"Integer getDomainTemplateColumn();",
"@SuppressWarnings(\"HardCodedStringLiteral\")\npublic interface MyPostsColumn {\n @DataType(INTEGER)\n @PrimaryKey\n String KEY_SQL_ID = \"sql_id\";\n\n @DataType(TEXT)\n @NotNull @Unique\n String KEY_ID = \"_id\";\n\n @DataType(TEXT)\n String KEY_AUTHOR = \"author\";\n\n @DataType(TEXT)\n @NotNull\n String KEY_SUBREDDIT_ID = \"subreddit_id\";\n\n @DataType(TEXT)\n @NotNull\n String KEY_SUBREDDIT = \"subreddit\";\n\n @DataType(INTEGER)\n String KEY_UPS = \"ups\";\n\n @DataType(TEXT)\n String KEY_TITLE = \"title\";\n\n @DataType(INTEGER)\n String KEY_COMMENTS_COUNT = \"comments_count\";\n\n @DataType(INTEGER)\n String KEY_CREATED_UTC = \"created_utc\";\n\n @DataType(INTEGER)\n String KEY_CREATED = \"created\";\n\n @DataType(TEXT)\n @NotNull\n String KEY_NAME = \"name\";\n\n @DataType(INTEGER)\n @NotNull\n String KEY_CLICKED = \"clicked\";\n\n @DataType(INTEGER)\n String KEY_LIKES = \"likes\"; //CAN BE NULL\n\n @DataType(TEXT)\n String KEY_DOMAIN = \"domain\";\n\n @DataType(INTEGER)\n String KEY_IS_SELF = \"is_self\";\n\n @DataType(INTEGER)\n @NotNull\n String KEY_OVER_18 = \"over_18\";\n\n @DataType(TEXT)\n String KEY_PERMALINK = \"permalink\";\n\n @DataType(TEXT)\n String KEY_POST_HINT = \"post_hint\";\n\n @DataType(INTEGER)\n String KEY_SCORE = \"score\";\n\n @DataType(TEXT)\n String KEY_THUMBNAIL = \"thumbnail\";\n\n @DataType(TEXT)\n String KEY_URL = \"url\";\n\n @DataType(INTEGER)\n String KEY_VISITED = \"visited\";\n\n @DataType(INTEGER)\n String KEY_LOCKED = \"locked\";\n\n @DataType(TEXT)\n String KEY_MEDIA_OEMBED_TYPE = \"media_oembed_type\";\n\n @DataType(TEXT)\n String KEY_BIG_IMAGE_URL = \"big_image_url\";\n\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_POST = \"type_post\";\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_SEARCH = \"type_search\";\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_WIDGET = \"type_widget\";\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_TEMP = \"type_temp\";\n\n\n\n}",
"@Override\n\tpublic void updateAllPostNowTipBySid(String Id, CodeInfo codeInfo) {\n\t\tQuery query = this.currentSession().createQuery(\"update com.wondersgroup.human.bo.pubinst.PtPost set tenureStatus = :nowPostSign where publicInstitution.id = :Id\");\n\t\tquery.setParameter(\"nowPostSign\", codeInfo);\n\t\tquery.setParameter(\"Id\",Id);\n\t\tquery.executeUpdate();\n\t\t\n\t}",
"public void queryPostTable(Context activityContext, String postTableName) {\n new GetCursorTablePost(activityContext).execute(postTableName);\n }",
"public interface IBasicPost {\n Long getId();\n String getTitle();\n String getDescription();\n long getCreatedDate();\n long getUpdatedDate();\n Integer getCityId();\n Long getUserId();\n Integer getUserLikeCount();\n Integer getUserCommentCount();\n String getUserFirstName();\n}",
"@RequestMapping(value = \"fetch-health-tips\", method = RequestMethod.POST)\n private List<HealthPost> fetchHealthTips() {\n SessionService.sessionBuilder(session -> {\n healthPostList = session.createQuery(\"from HealthPost order by id desc\", HealthPost.class).list();\n });\n return healthPostList;\n }",
"@Override\n public DatabaseMetaData getMetaData() throws SQLException\n {\n logger.debug(\n \" public DatabaseMetaData getMetaData() throws SQLException\");\n\n return new SnowflakeDatabaseMetaData(this);\n }",
"@Override\n\tpublic void getPost(Scanner sc) {\n\t\tPost p;\n\t\tgetAll();\n\t\tSystem.out.print(\"보고 싶은 리뷰의 번호를 입력해 주세요 >>\");\n\t\tp = dao.selectPost(sc.nextInt());\n\t\tSystem.out.println(p.getPostName());\n\t\tSystem.out.println(p.getContent());\n\t}",
"public interface BasePostPoMapper extends feihua.jdbc.api.dao.CrudDao<BasePostPo, String> {\n\n java.util.List<BasePostPo> searchBasePosts(SearchPostsConditionDsfDto dto);\n}",
"public List<MediumBean> populatemediam(String sql ){\n\t\t\t\tList<MediumBean> retlist = jdbcTemplate.query(sql,ParameterizedBeanPropertyRowMapper.newInstance(MediumBean.class));\n\t\t\t\t\treturn retlist;\n\t\t }",
"@Query(\"SELECT * FROM \" + TABLE_NAME)\n List<Note> getNotes();",
"public boolean addPost(Post post) throws SQLException\n {\n boolean isAdded=false;\n try\n {\n database = dbH.getReadableDatabase();\n dbH.openDataBase();\n ContentValues values = new ContentValues();\n values.put(\"postBody\", post.getPostBody());\n values.put(\"postedBy\", post.getPostedBy());\n values.put(\"postedAt\", post.getPostedAt());\n values.put(\"postID\", post.getPostID());\n values.put(\"image\" , post.getBitmap());\n\n isAdded=database.insert(\"Post\", null, values)>0;\n\n }\n catch(SQLException e)\n {\n e.printStackTrace();\n }\n finally{\n if(database!=null && database.isOpen())\n dbH.close();\n }\n return isAdded;}",
"@Override\r\n\tprotected Entity getEntityByFields() throws SQLException {\n\t\t\r\n\t\tint id = rs.getInt(\"id\");\r\n\t\tint productId = rs.getInt(\"id_product\");\r\n\t\tString productName = super.getString(\"productName\");\t// From INNER JOIN\r\n\t\tString productUnit = super.getString(\"productUnit\");\t// From INNER JOIN\r\n\t\tfloat quantity = rs.getFloat(\"quantity\");\r\n\t\tfloat price = rs.getFloat(\"price\");\r\n\t\tfloat summa = rs.getFloat(\"summa\");\r\n\t\t\r\n\t\treturn new DocInvoiceItem(id, productId, productName, productUnit, quantity, price, summa);\r\n\t}",
"public PostInformationExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public String getGeneratedSql() {\n/* 142 */ return this.sql;\n/* */ }",
"@Override\r\n\tpublic BaseBean insertSQL(String sql, Connection con) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic void insertIPODetail(IPODetail ipo) throws SQLException {\n\t\t\n\t}",
"@Override\n\tpublic Map<String, String[]> loadColumnMetas(String databaseName) throws SQLException {\n\t\tString sql=\"select utc.*,UCC.comments from user_tab_columns utc\\n\" + \n\t\t\t\t\"left join user_col_comments ucc on UCC.table_name=UTC.table_name and UCC.column_name=UTC.column_name\";\n\t\tMap<String, String[]> ret=new HashMap<>();\n\t\t try(PreparedStatement preparedStatement= connection.prepareStatement(sql);\n\t \t\tResultSet resultSet=preparedStatement.executeQuery();){\n\t\t\twhile(resultSet.next()) {\n\t\t\t\tString tableName=resultSet.getString(\"TABLE_NAME\")\n\t\t\t\t\t\t,columnName=resultSet.getString(\"COLUMN_NAME\")\n\t\t\t\t\t\t,dataLength=resultSet.getString(\"DATA_LENGTH\")\n\t\t ,nullable=resultSet.getString(\"NULLABLE\")\n\t\t ,comments=resultSet.getString(\"COMMENTS\")\n\t\t\t\t\t\t;\n\t\t\t\tString key=tableName+\":\"+columnName;\n\t\t\t\tret.put(key, new String[] {dataLength,nullable,comments});\n\t\t\t\t\n\t\t\t}\n\t }\n\t\t\n\t\treturn ret;\n\t}",
"@Override\r\n\tpublic List<Post> getPostByName(String name) {\n\t\tString hql = \"from Post p where p.post_name =?\";\r\n\t\treturn (List<Post>) getHibernateTemplate().find(hql, name);\r\n\t}",
"void processMetaData(ResultSet rs) throws SQLException;",
"@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }",
"@Dao\npublic interface PostDao {\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n void insertPost(iPost iPosts);\n\n @Update\n void updatePost(iPost iPost);\n\n @Delete\n void deletePost(iPost iPost);\n\n @Query(\"SELECT * FROM iPost\")\n List<iPost> getAllPosts();\n\n @Query(\"SELECT * FROM iPost WHERE idThread=:threadId\")\n List<iPost> findPostsByThread(final int threadId);\n\n @Transaction\n @Query(\"SELECT * FROM iPost WHERE idThread=:threadId\")\n Single<List<PostsHelper>> getPostsFromThread(String threadId);\n}",
"protected String getSqlTable() {\n\t\treturn \"Project\";\n\t}",
"public void formDatabaseTable() {\n }",
"public CustomSql getCustomSqlUpdate();",
"void savePost(Post post);",
"@Override\n\tprotected String getCreateSql() {\n\t\treturn null;\n\t}",
"public interface AlmacenMapper {\n @Select(value = \"select tipo,descripcion from tipoproducto\")\n @Results(value = {\n @Result(javaType = Producto.class),\n @Result(property = \"tipo\",column = \"tipo\"),\n @Result(property = \"descripcion\",column = \"descripcion\"),\n })\n List<Producto> listarTipoProducto();\n\n @Insert(value = \"INSERT \" +\n \"INTO producto \" +\n \" ( \" +\n \" codigo, \" +\n \" nombre, \" +\n \" tipo, \" +\n \" porc_precio, \" +\n \" uni_medida, \" +\n \" cantidad \" +\n \" ) \" +\n \" VALUES \" +\n \" ( \" +\n \" producto_seq.nextval, \" +\n \" #{produ.nombre}, \" +\n \" #{produ.tipo}, \" +\n \" #{produ.porc_precio}, \" +\n \" #{produ.uni_medida}, \" +\n \" #{produ.cantidad} \" +\n \" )\")\n void GuardarProducto(@Param(\"produ\") Producto producto);\n\n @Select(value = \"SELECT codigo, \" +\n \" nombre, \" +\n \" p.tipo, \" +\n \" tp.descripcion, \" +\n \" porc_precio, \" +\n \" uni_medida, \" +\n \" cantidad \" +\n \"FROM producto p \" +\n \"INNER JOIN tipoproducto tp \" +\n \"ON(p.tipo=tp.tipo)\")\n @Results(value = {\n @Result(javaType = Producto.class),\n @Result(property = \"codigo\",column = \"codigo\"),\n @Result(property = \"nombre\",column = \"nombre\"),\n @Result(property = \"tipo\",column = \"tipo\"),\n @Result(property = \"descripcion\",column = \"descripcion\"),\n @Result(property = \"porc_precio\",column = \"porc_precio\"),\n @Result(property = \"uni_medida\",column = \"uni_medida\"),\n @Result(property = \"cantidad\",column = \"cantidad\"),\n })\n List<Producto> listarProductos();\n\n @Update(value =\"UPDATE producto \" +\n \"SET nombre =#{produ.nombre}, \" +\n \" porc_precio=#{produ.porc_precio}, \" +\n \" tipo= \" +\n \" #{produ.tipo} \" +\n \"WHERE codigo=#{produ.codigo}\" )\n void ActualizarProducto(@Param(\"produ\") Producto producto);\n\n @Delete(value=\"DELETE FROM PRODUCTO WHERE codigo=#{id}\")\n void EliminarProducto(@Param(\"id\") Integer id);\n\n @Select(value = \"SELECT codigo, \" +\n \" nombre \" +\n \"FROM producto p where tipo=#{id} \")\n @Results(value = {\n @Result(javaType = Producto.class),\n @Result(property = \"codigo\",column = \"codigo\"),\n @Result(property = \"nombre\",column = \"nombre\"),\n })\n List<Producto> ListarProductosxCategoria(@Param(\"id\") Integer id);\n\n @Insert(value = \"INSERT \" +\n \"INTO entrada_productos \" +\n \" ( \" +\n \" n_entrada, \" +\n \" fecha, \" +\n \" costo_total \" +\n \" ) \" +\n \" VALUES \" +\n \" ( \" +\n \" entrada_seq.nextval , \" +\n \" sysdate, \" +\n \" #{entrada.costo_total} \" +\n \" )\")\n void insertEntradaProducto(@Param(\"entrada\") EntradaProducto entrada);\n\n @Insert(value = \"INSERT \" +\n \"INTO detalle_entrada_productos \" +\n \" ( \" +\n \" N_ENTRADA, \" +\n \" COD_PRODUCTO, \" +\n \" COD_PROVEEDOR, \" +\n \" CANTIDAD, \" +\n \" PRECIO_COMPRA, \" +\n \" COSTO_TOTAL_PRODUCTO \" +\n \" ) \" +\n \" VALUES \" +\n \" ( \" +\n \" (select max(n_entrada) from entrada_productos), \" +\n \" #{entrada.cod_producto}, \" +\n \" #{entrada.cod_proveedor}, \" +\n \" #{entrada.cantidad}, \" +\n \" #{entrada.precio_compra}, \" +\n \" #{entrada.costo_total_producto} \" +\n \" )\")\n void inserDetalleEntradaProductos(@Param(\"entrada\") EntradaProducto entrada);\n\n @Update(value =\"UPDATE producto \" +\n \"SET cantidad=(select cantidad+#{entrada.cantidad} from producto where codigo=#{entrada.cod_producto}) \"+\n \"WHERE codigo=#{entrada.cod_producto}\" )\n void updateStockProducto(@Param(\"entrada\")EntradaProducto entrada);\n}",
"private static void showsSqlSelectOnNormalEntityBean() {\n\n\t\tQuery<Bug> query = Ebean.createQuery(Bug.class, \"simple\");\n\t\tquery.where().eq(\"status.code\", \"ACTIVE\");\n\n\t\tList<Bug> list = query.findList();\n\n\t\tSystem.out.println(list);\n\t\t\n\t\tfor (Bug bug : list) {\n\t\t\tString body = bug.getBody();\n\t\t\tSystem.out.println(body);\n\t\t}\n\n\t}",
"@Override //插入通知\n\tpublic void insertPoInfo(PageData pd) throws Exception {\n\t\tdao.save(\"PoInfoMapper.insertPoInfo\", pd);\n\t}",
"public interface BugsActivityDAO {\n\n @Insert(\"insert into firefox_bugs_activity \" +\n \"(`bugId`,`who`,`when`,`what`,`removed`,`added`,`crawledTime`) \" +\n \"values (#{bugId},#{who},#{when},#{what},#{removed},#{added},#{crawledTime})\")\n public int add(BugsActivity fireFoxBugsActivity);\n\n @Insert(\"insert into firefox_bugs_activity_html (`bugId`,`html`) \" +\"values (#{bugId},#{html})\")\n public int addHtml(BugsActivity fireFoxBugsActivity);\n}",
"@Override\n\tpublic List<Map<String, Object>> getNoticeLast() {\n\t\tStringBuffer querySQL = new StringBuffer(\n\t\t\t\t\"select ifnull(title,'') title,ifnull(static_page,'') static_page from notice where status = 1 order by crdate desc limit 4\");\n\t\t// StringBuffer querySQL2 = new StringBuffer(\n\t\t// \"select count(1) from notice where status = 1 order by crdate desc limit 1\");\n\t\t// if (jdbcTemplate.queryForInt(querySQL2.toString()) > 0) {\n\t\treturn jdbcTemplate.queryForList(querySQL.toString());\n\t\t// }\n\t\t// return null;\n\n\t}",
"public PostRecord(Integer id, Integer userId, String title, String body, String date) {\n super(PostTable.POST);\n\n set(0, id);\n set(1, userId);\n set(2, title);\n set(3, body);\n set(4, date);\n }",
"@Override\n public Jurusan mapRow(ResultSet rs, int rowNum) throws SQLException {\n Jurusan jurusan=new Jurusan();\n jurusan.setId(rs.getInt(\"id\"));\n jurusan.setNama(rs.getString(\"nama\"));\n jurusan.setIdFakultas(rs.getInt(\"idFakultas\"));\n\n\n Fakultas fakultas=new Fakultas();\n fakultas.setId(rs.getInt(\"idFakultas\"));\n fakultas.setNama(rs.getString(\"namaFakultas\"));\n jurusan.setFakultas(fakultas);\n return jurusan;\n }",
"public interface BugPlatformMapper {\n\n\n @Select(\"SELECT js.pname as bugResolutionStatus, COUNT(js.pname) as bugNum FROM jiraissue ji INNER JOIN project pr ON pr.ID = ji.PROJECT LEFT JOIN issuestatus js ON ji.issuestatus = js.ID where pr.ID in (#{2}) and issuetype = 1 AND CREATED between #{0} and #{1} group by js.pname\")\n List<BugPlatformObject> getList(String startDate,String endDate,String project);\n}",
"@Override\n @Transactional\n public void onSubmit() {\n ValueMap values = getModelObject();\n\n // check if the honey pot is filled\n if (StringUtils.isNotBlank((String)values.get(\"comment\")))\n {\n error(\"Caught a spammer!!!\");\n return;\n }\n // Construct a copy of the edited comment\n Snip snip = new Snip();\n SnipMeta meta= new SnipMeta();\n\n logger.info(this.getDefaultModel().toString());\n\n logger.info(((List<String>) values.get(\"select_all\")).toString());\n\n meta.setTags((ArrayList<String>)values.get(\"select_all\"));\n meta.setDescription((String) values.get(\"meta\"));\n\n\n // Set date of comment to add\n snip.setDate(new Date());\n snip.setCode((String)values.get(\"code\"));\n snipList.add(0, snip); //TODO: eliminare lo show di tutti gli snipp da snipList magari con una FIFO\n meta.setSnip(snip);\n\n\n //--------- get session ad manager ------\n MyAuthenticatedWebSession app_session = MyAuthenticatedWebSession.getYourAppSession();\n logger.info(\"web session is: \"+app_session.toString());\n EntityManager em = app_session.getEntityManager();\n //---------------------------------------------------\n\n Users tmp_id = em.find(Users.class ,app_session.getAttribute(\"user\"));\n //snip.setUser(app_session.getCurrentUser()); --less network more backend\n snip.setUser(tmp_id);\n em.getTransaction().begin();\n em.setFlushMode(COMMIT);\n em.persist(snip);\n em.persist(meta);\n em.flush();\n em.getTransaction().commit();\n\n\n // Clear out the text component\n values.put(\"code\", \"\");\n }",
"@Override\n\tpublic String addOrUpdate(Map<String, Object> entityMap)\n\t\t\tthrows DataAccessException {\n\t\treturn null;\n\t}",
"@Insert({\n \"insert into kd_user_medal (id, userid, \",\n \"medalId, bindUserid, \",\n \"remark, createTime)\",\n \"values (#{id,jdbcType=BIGINT}, #{userid,jdbcType=BIGINT}, \",\n \"#{medalid,jdbcType=BIGINT}, #{binduserid,jdbcType=BIGINT}, \",\n \"#{remark,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP})\"\n })\n int insert(KDUserMedal record);",
"public interface GradeMapper {\n @Select(\"select * from grade\")\n public List<Grade> getByGradeNm();\n\n @Insert(\"insert into grade(grade_nm,teacher_id) values(#{gradeNm},#{teacherId})\")\n @Options(useGeneratedKeys=true,keyColumn=\"id\",keyProperty=\"id\")//设置id自增长\n public void save(Grade grade);\n}",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<Post> getPostsOf(int postId , int userId){\n\t\t\n\t\tList<Post> postList = null;\n\t\tCriteria query = null;\n\t\ttry {\n\t\t\t\n\t\t\t query = getCurrentSession().createCriteria(Post.class);\n\t\t\t \n\t\t\t query.createAlias(\"this.orgperson\", \"author\") \n\t\t\t .createAlias(\"author.personid\",\"authorPerson\")\n\t\t\t \t .createAlias(\"this.postcategories\", \"postcategories\")\n\t\t\t \t .createAlias(\"postcategories.category\", \"category\")\n\t\t\t \t .createAlias(\"this.postskills\", \"postskills\")\n\t\t\t \t .createAlias(\"postskills.skill\", \"skill\")\n\t\t\t \t .createAlias(\"this.posttags\", \"posttags\")\n\t\t\t \t .createAlias(\"posttags.tag\", \"tag\");\n\t\t\t \n\t\t\t query.add(Restrictions.eq(\"this.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"author.orgpersonstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"authorPerson.personstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"postcategories.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"category.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"postskills.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"skill.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"posttags.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"tag.status\", \"A\")) \n\t\t\t \t .add(Restrictions.eq(\"this.id\", postId))\n\t\t\t \t .add(Restrictions.eq(\"author.orgpersonid\", userId));\n\t\t\t \n\t\t\t query.setProjection(Projections.projectionList()\n\t\t\t\t\t \n\t\t\t\t\t //post\n\t\t\t\t\t .add(Projections.property(\"this.id\").as(\"post_id\"))\n\t\t\t\t\t .add(Projections.property(\"this.title\").as(\"post_title\"))\n\t\t\t\t\t .add(Projections.property(\"this.content\").as(\"post_content\")) \n\t\t\t\t\t .add(Projections.property(\"this.bannerpath\").as(\"post_bannerpath\"))\n\t\t\t\t\t .add(Projections.property(\"this.commentable\").as(\"post_commentable\"))\n\t\t\t\t\t .add(Projections.property(\"this.date\").as(\"post_date\"))\n\t\t\t\t\t .add(Projections.property(\"this.media\").as(\"post_media\")) \n\t\t\t\t\t .add(Projections.property(\"this.status\").as(\"post_status\")) \n\t\t\t\t\t //authorperson\n\t\t\t\t\t .add(Projections.property(\"authorPerson.personid\").as(\"authorPersonPersonId\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.firstName\").as(\"authorPersonFirstName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.lastName\").as(\"authorPersonLastName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.middleName\").as(\"authorPersonmiddleName\")) \n\t\t\t\t\t //category \n\t\t\t\t\t .add(Projections.property(\"postcategories.id\").as(\"postCategoryId\"))\n\t\t\t\t\t .add(Projections.property(\"postcategories.status\").as(\"postCategoryStatus\"))\n\t\t\t\t\t .add(Projections.property(\"category.id\").as(\"categoryId\")) \n\t\t\t\t\t .add(Projections.property(\"category.name\").as(\"categoryName\")) \n\t\t\t\t\t //skill\n\t\t\t\t\t .add(Projections.property(\"postskills.id\").as(\"postSkillsId\"))\n\t\t\t\t\t .add(Projections.property(\"postskills.status\").as(\"postSkillsStatus\"))\n\t\t\t\t\t .add(Projections.property(\"skill.id\").as(\"skillId\")) \n\t\t\t\t\t .add(Projections.property(\"skill.name\").as(\"skillName\")) \n\t\t\t\t\t//tag\n\t\t\t\t\t .add(Projections.property(\"posttags.id\").as(\"postTagsId\"))\n\t\t\t\t\t .add(Projections.property(\"posttags.status\").as(\"postTagsStatus\"))\n\t\t\t\t\t .add(Projections.property(\"tag.id\").as(\"tagId\")) \n\t\t\t\t\t .add(Projections.property(\"tag.name\").as(\"tagName\")) \n\t\t\t\t\t \n\t\t\t\t\t ); \n\t\t\t \n\t\t\t postList = query.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP).list();\n\t\t\t \n\t\t\t \t \t \n\t\t} catch (Exception e) {\n\t\t\tpostServiceLogger.error(\"error in PostService for getPostsOf()\",e);\n\t\t}\n\t\treturn postList;\n\t}",
"public void insert() throws SQLException {\n Statement stmtIn = DatabaseConnector.getInstance().getStatementIn();\n\n int check = BusinessFacade.getInstance().checkIDinDB(this.productRelation.getID(),\n this.post.getID(), \"goods\", \"product_type_id\", \"post_id\");\n if (check == -1){\n stmtIn.executeUpdate(\"INSERT INTO ngaccount.goods (goods_id , product_type_id, post_id) \" +\n \"VALUES ('\" + this.goodID + \"', '\" + this.productRelation.getID() +\n \"', '\" + this.post.getID() + \"');\");\n }\n }",
"public void savePost(VBeatPostModel post) {\n AppLocalDB.getInstance().db.postDao().insertAll(post);\n }"
]
| [
"0.5986511",
"0.57343584",
"0.5698853",
"0.56634164",
"0.56359017",
"0.5495471",
"0.54766834",
"0.5443607",
"0.54186773",
"0.540675",
"0.5376697",
"0.53740305",
"0.5356344",
"0.5313168",
"0.5307734",
"0.52856094",
"0.5266923",
"0.5225843",
"0.5206651",
"0.51996106",
"0.51923144",
"0.51611745",
"0.51532006",
"0.51422745",
"0.513571",
"0.51353717",
"0.5134549",
"0.5105684",
"0.5074469",
"0.5057113",
"0.5056853",
"0.5055585",
"0.5049771",
"0.502594",
"0.50159794",
"0.499411",
"0.49642175",
"0.49531126",
"0.49521723",
"0.4947493",
"0.49395558",
"0.49384743",
"0.49324217",
"0.4932038",
"0.4923745",
"0.4923715",
"0.49205098",
"0.49137557",
"0.49134496",
"0.49100736",
"0.4908896",
"0.48664138",
"0.48659784",
"0.48588654",
"0.48575795",
"0.4856264",
"0.4849936",
"0.48469815",
"0.48342496",
"0.48333818",
"0.4814589",
"0.4807359",
"0.48047185",
"0.47946662",
"0.4789952",
"0.4779272",
"0.4777647",
"0.47775498",
"0.47705945",
"0.47551864",
"0.47544068",
"0.4752167",
"0.47501215",
"0.47486997",
"0.47481894",
"0.47462088",
"0.47452283",
"0.4744978",
"0.47447786",
"0.47446957",
"0.47380137",
"0.47270015",
"0.4726089",
"0.47204205",
"0.47192907",
"0.47117898",
"0.4707037",
"0.47054353",
"0.47028366",
"0.4699353",
"0.46976545",
"0.46958038",
"0.46956462",
"0.469355",
"0.46908292",
"0.4689735",
"0.46892476",
"0.46826327",
"0.46822074",
"0.4677628",
"0.46771917"
]
| 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table post_information | public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getPostSQL()\n {\n return _get_imfObject().getPostSQL();\n }",
"public PostRecord() {\n super(PostTable.POST);\n }",
"Forumpost selectByPrimaryKey(Integer postid);",
"PostSaveDTO queryDetailById(String postId);",
"public ArrayList<PostInfo> getPost() throws SQLException {\n ArrayList<PostInfo> postInfoList = new ArrayList<>();\n String sql = \"SELECT * FROM `post` WHERE `status` = 1 ORDER BY `post_time` DESC\";\n statement = connection.createStatement();\n resultSet = statement.executeQuery(sql);\n while (resultSet.next()) {\n postInfoList.add(new PostInfo(resultSet.getInt(\"post_id\"), resultSet.getInt(\"place_id\"), resultSet.getString(\"post_text\"),\n resultSet.getDate(\"post_time\"), resultSet.getInt(\"status\"), resultSet.getInt(\"user_id\"), resultSet.getInt(\"editor_id\")));\n }\n return postInfoList;\n }",
"@SuppressWarnings(\"deprecation\")\n\tpublic void writeTable()\n\t{\n\t\tIterator<WPPost> itr = readValues.iterator();\n\t\t\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\tWPPost post = itr.next();\n\t\t\tPreparedStatement prStm;\n\t\t\tint res = 0;\n\t\t\t\n\t\t\ttry \n\t\t\t{\n\t\t\t\tif(post.getPostDateGMT() == null)\n\t\t\t\t{\n\t\t\t\t\tpost.setPostDateGMT(new Timestamp(0));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(post.getPostModifiedGMT() == null)\n\t\t\t\t{\n\t\t\t\t\tpost.setPostModifiedGMT(new Timestamp(0));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tprStm = conn.prepareStatement(WRITE_STATEMENT);\n\t\t\t\tprStm.setInt(1, post.getId());\n\t\t\t\tprStm.setInt(2, post.getPostAuthor());\n\t\t\t\tprStm.setTimestamp(3, post.getPostDate());\n\t\t\t\tprStm.setTimestamp(4, post.getPostDateGMT());\n\t\t\t\tprStm.setString(5, post.getPostContent());\n\t\t\t\tprStm.setString(6, post.getPostTitle());\n\t\t\t\tprStm.setString(7, post.getPostExcerpt());\n\t\t\t\tprStm.setString(8, post.getPostStatus());\n\t\t\t\tprStm.setString(9, post.getCommentStatus());\n\t\t\t\tprStm.setString(10, post.getPingStatus());\n\t\t\t\tprStm.setString(11, post.getPostPassword());\n\t\t\t\tprStm.setString(12, post.getPostName());\n\t\t\t\tprStm.setString(13, post.getToPing());\n\t\t\t\tprStm.setString(14, post.getPinged());\n\t\t\t\tprStm.setTimestamp(15, post.getPostModified());\n\t\t\t\tprStm.setTimestamp(16, post.getPostModifiedGMT());\n\t\t\t\tprStm.setString(17, post.getPostContentFiltered());\n\t\t\t\tprStm.setInt(18, post.getPostParent());\n\t\t\t\tprStm.setString(19, post.getGuid());\n\t\t\t\tprStm.setInt(20, post.getMenuOrder());\n\t\t\t\tprStm.setString(21, post.getPostType());\n\t\t\t\tprStm.setString(22, post.getPostMimeType());\n\t\t\t\tprStm.setInt(23, post.getCommentCount());\n\t\t\t\t\n\t\t\t\tres = prStm.executeUpdate();\n\t\t\t\t\n\t\t\t\tif(res == 0)\n\t\t\t\t{\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new WriteWPPostException(post.toString());\n\t\t\t\t\t} \n\t\t\t\t\tcatch (WriteWPPostException e) \n\t\t\t\t\t{\n\t\t\t\t\t\t//e.printStackTrace(); // TODO Debug Mode! Delete This!\n\t\t\t\t\t\tthis.rowsWithErrors.add(post);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\t\t\tcatch (SQLException e1) \n\t\t\t{\n\t\t\t\t//e1.printStackTrace(); // TODO Debug Mode! Delete This!\n\t\t\t\tthis.rowsWithErrors.add(post);\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\tpublic List<Post> getAllPost() {\n\t\tString hql = \"from Post\";\r\n\t\treturn (List<Post>) getHibernateTemplate().find(hql);\r\n\t}",
"PmPost selectByPrimaryKey(String postId);",
"public void setPostId(Integer postId) {\n this.postId = postId;\n }",
"public Integer getPostId() {\n return postId;\n }",
"@Override\n\tpublic void getAll() {\n\t\tArrayList<Post> list = new ArrayList<Post>();\n\t\tlist = dao.selectAll();\n\t\t\n\t\tfor (Post p : list) {\n\t\t\tSystem.out.println(p.getPostId() + \".\" + p.getPostName() + \" 작성자:\" + p.getMemberId());\n\t\t}\n\t}",
"public List<detailsofpassengerpost> seedetailslist() throws IOException{\n//connect database\nString resource = \"orm/configuration.xml\";\nReader reader = Resources.getResourceAsReader(resource);\nSqlSessionFactory sessionFactory = new SqlSessionFactoryBuilder().build(reader);\nSqlSession session = sessionFactory.openSession();\n\ntry{\n\tSystem.out.println(\"postID in seeDetails=\"+postID);\npostlist=session.selectList(\"selectPassengerPostByID\",postID);\nSystem.out.println(\"postlist size in seeDetails=\"+postlist.size());\n\n//find passenger's name through his email address\nnumberofapplieddrivers=postlist.get(0).getNumberofapplieddrivers();\npassengeremail=postlist.get(0).getEmail();\npassengerlist=session.selectList(\"selectuserbyemail\", passengeremail);\n\npassengername=passengerlist.get(0).getName();\npassengersex=passengerlist.get(0).getSex();\npassengerdob=passengerlist.get(0).getDob();\n\ndd=new detailsofpassengerpost();\ndetaillist=new ArrayList<detailsofpassengerpost>();\n\ndd.setNeedseats(postlist.get(0).getNeedseats());\ndd.setExpectedcartype(postlist.get(0).getExpectedcartype());\ndd.setDeparture(postlist.get(0).getDeparture());\ndd.setDeparturedate(postlist.get(0).getDeparturedate());\ndd.setDestination(postlist.get(0).getDestination());\ndd.setDob(passengerdob);\ndd.setEmail(passengeremail);\ndd.setEstimatedleavingtime(postlist.get(0).getEstimatedleavingtime());\ndd.setExpectedcost(postlist.get(0).getExpectedcost());\ndd.setMemo(postlist.get(0).getMemo());\ndd.setName(passengername);\ndd.setPostID(postID);\ndd.setSex(passengersex);\ndd.setPhone(postlist.get(0).getPhone());\ndd.setNumberofapplieddrivers(numberofapplieddrivers);\ndetaillist.add(dd);\n\nreturn detaillist;\n\n}finally{\nsession.close();\n}\n}",
"public List<Post> all() throws DataAccessException{\n String sql = \"select posts.id, posts.user_id, users.name, posts.title, posts.content, posts.create_date from posts join users on posts.user_id=users.id\";\n List<Post> posts = this.jdbcTemplate.query(sql, mapper);\n return posts;\n }",
"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}",
"@Override\r\n\tpublic void addPost(Post post) {\n\t\tgetHibernateTemplate().save(post);\r\n\t}",
"@Override\n public HashMap<Integer,_DefaultMessage> loadPost() throws IOException, SQLException, ClassNotFoundException {\n return _DbConnectionManager.getHMPosts(this.dbConnection, this.getName());\n }",
"public String getPostTableName() {\r\n\t\treturn postTableName;\r\n\t}",
"public void setPostId(long postId);",
"public interface CommentMapper {\n\n @Insert(\"insert comment(productId,userId,text,createdAt) values(#{productId},#{userId},#{text},now())\" )\n @Options(useGeneratedKeys = true,keyProperty = \"id\")\n void insertComment(Comment comment);\n\n @Select(\"select * from comment where productId=#{productId}\")\n List<Comment> getCommentByProductId(int productId);\n\n @Delete(\"delete from comment where id = #{id}\")\n void deleteComment(int id);\n\n\n}",
"public interface Post {\n\n\tpublic Long getId();\n\n\tpublic void setId(Long id);\n\n\tpublic Date getDate();\n\n\tpublic void setDate(Date date);\n\n\tpublic String getMessage();\n\n\tpublic void setMessage(String message);\n\n}",
"@Override\r\n\t\tpublic DatabaseMetaData getMetaData() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"public void updatePost(PostInfo postInfo) throws SQLException {\n String sql = \"UPDATE `post` SET `place_id`=?,`post_text`=?,`post_time`=?,`status`=?,`user_id`=?,`editor_id`=? WHERE `post_id` = ?\";\n preparedStatement = connection.prepareStatement(sql);\n preparedStatement.setInt(1, postInfo.getPlace_id());\n preparedStatement.setString(2, postInfo.getPost_text());\n preparedStatement.setDate(3, postInfo.getPost_time());\n preparedStatement.setInt(4, postInfo.getStatus());\n preparedStatement.setInt(5, postInfo.getUser_id());\n preparedStatement.setInt(6, postInfo.getEditor_id());\n preparedStatement.setInt(7, postInfo.getPost_id());\n\n preparedStatement.executeUpdate();\n }",
"public int getPostId() {\r\n\t\treturn postId;\r\n\t}",
"public void deletePost(PostInfo postInfo) throws SQLException {\n String sql = \"UPDATE `post` SET `status`=0 WHERE `post_id` = ?\";\n preparedStatement = connection.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);\n preparedStatement.setInt(1, postInfo.getPost_id());\n\n preparedStatement.executeUpdate();\n }",
"public long getPostId() {\n return postId;\n }",
"@Override\n\tpublic Map<String, String> toSqlMap() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Collection<Tmly> getTmlyInfo() {\n\t\tString sql = \"select ID_,TITLE,CONTENT,state from tmly\";\n\t\tList<Tmly> list = this.jdbcTemplate.query(sql, new RowMapper<Tmly>() {\n\n\t\t\t@Override\n\t\t\tpublic Tmly mapRow(ResultSet result, int i) throws SQLException {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tTmly tmly = new Tmly();\n\t\t\t\ttmly.setId(result.getInt(\"id_\"));\n\t\t\t\ttmly.setTitle(result.getString(\"title\"));\n\t\t\t\ttmly.setContent(result.getString(\"content\"));\n\t\t\t\treturn tmly;\n\t\t\t}\n\n\t\t});\n\t\treturn list;\n\t}",
"public long getPostId();",
"public static ResultSet getPosts(){\n ResultSet result = null;\n try {\n conn = ConnectionProvider.getCon();\n pst = conn.prepareStatement(\"select * from normalposts\");\n result = pst.executeQuery();\n\n System.out.println(\"PostDAO: getting posts\");\n } catch(Exception e) {\n System.out.println(\"PostDAO: unsuccessful query\");\n System.out.println(e);\n }\n return result;\n }",
"@Mapper\npublic interface BlogDAO {\n @Insert(\"INSERT INTO blog(title,uniq,markdown,html, create_time,update_time) \" +\n \"VALUES(#{item.title},#{item.uniq},#{item.markdown},#{item.html},#{item.createTime}, #{item.updateTime})\")\n int insert(\n @Param(\"item\") Blog blog\n );\n\n @Select(\"SELECT id,uniq,title,markdown,html,\" +\n \" create_time as createTime,update_time as updateTime \" +\n \" FROM blog WHERE id = #{id}\")\n Blog getBlogById(@Param(\"id\") String id);\n\n @Insert(\"replace into blog(id,title,uniq,markdown,html, create_time,update_time) \" +\n \"VALUES(#{item.id},#{item.title},#{item.uniq},#{item.markdown},#{item.html},#{item.createTime}, #{item.updateTime})\")\n int update(@Param(\"item\")Blog blog);\n\n @Select(\"SELECT id,uniq,title,\" +\n \" create_time as createTime,update_time as updateTime \" +\n \" FROM blog order by id desc limit #{offset}, #{limit}\")\n List<Blog> getBlogList(@Param(\"offset\")long offset,\n @Param(\"limit\")long limit,\n @Param(\"sort\") String sort);\n}",
"@Test\n public void metaDataExample1() throws SQLException {\n Connection connection = DriverManager.getConnection(dbUrl, dbUsername, dbPassword);\n // 2. Create statement\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n // Run sql query and get the result in resultSet object\n String sqlQuery= \"Select * From departments\";\n //String sqlQuery= \"Select first_name, last_name, salary From employees\";\n ResultSet resultSet = statement.executeQuery(sqlQuery);\n\n // we use resultSet metadata to get information about the tables\n // get the resultSet object metadata\n ResultSetMetaData rsMetadata = resultSet.getMetaData();\n\n // List for keeping all rows as a map\n List<Map<String, Object>> queryData = new ArrayList<>();\n\n // while(resultSet.next()) helps to iterate through columns\n while (resultSet.next()) {\n // key(columns) will be string but value can be any type of data. That's why we choose <String, Object>\n Map<String, Object> row = new HashMap<>(); // creating empty Map\n // number of columns\n int colCount = rsMetadata.getColumnCount();\n // for loop helps to iterate through columns\n for (int i = 1; i <= colCount; i++) {\n row.put(rsMetadata.getColumnName(i), resultSet.getObject(i));\n }\n\n queryData.add(row); // adding a Map to the List of Maps\n }\n\n // Printing the rows\n for (Map<String, Object> row: queryData) {\n System.out.println(row.toString());\n\n }\n\n\n\n\n // close all connections\n resultSet.close();\n statement.close();\n connection.close();\n }",
"public String toSql() {\t\n int n;\t\n void a;\t\n StringBuilder a2 = new StringBuilder();\t\n Table table = MapperHelper.getTable(this.entity);\t\n a2.append(MapperHelper.getTableName((Table)a, this.entity) + \" \" + a.alias());\t\n JoinTable[] arrjoinTable = a.joinTable();\t\n int n2 = arrjoinTable.length;\t\n int n3 = n = 0;\t\n while (n3 < n2) {\t\n JoinTable a3 = arrjoinTable[n];\t\n Table a4 = MapperHelper.getTable(a3.entity());\t\n a2.append(new StringBuilder().insert(0, \" \").append(a3.type().value()).append(\" \").toString());\t\n a2.append(new StringBuilder().insert(0, MapperHelper.getTableName(a4, this.entity)).append(\" \").append(a3.alias()).toString());\t\n a2.append(new StringBuilder().insert(0, \" ON \").append(a3.on()).toString());\t\n n3 = ++n;\t\n }\t\n StringBuilder stringBuilder = a2;\t\n stringBuilder.append(MapperHelper.getSqlMapValue(this.entity, a.extFromKeys()));\t\n return stringBuilder.toString();\t\n }",
"List<PostInfo> getPostList();",
"TypedKeyValue<String, Integer> getDestinationInfo(String sql);",
"public void setPostId(int postId) {\r\n\t\tthis.postId = postId;\r\n\t}",
"public List<PostEntry> savePost(String username, int postid, String title, String body){\n Connection c = null;\n PreparedStatement ps = null; \n ResultSet rs = null;\n\n boolean ret = true;\n\n //check if postid exists.\n if(postid>0 && findPost(username, postid)==null){\n return null;\n }\n try {\n //Get connection\n c = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/CS144\", \"cs144\", \"\");\n int changed;\n if(postid>0){\n //UPDATE\n System.out.println(\"update post!\");\n ps = c.prepareStatement(\"UPDATE Posts SET title=?, body=?, modified=? WHERE username=? AND postid=?\");\n ps.setString(1, title);\n ps.setString(2, body);\n ps.setTimestamp(3, new Timestamp(System.currentTimeMillis())); //set modified to current time\n ps.setString(4, username);\n ps.setInt(5, postid);\n\n changed = ps.executeUpdate();\n }\n else {\n //get largest postid and add 1 to get newID\n\n System.out.println(\"new post!\");\n ps = c.prepareStatement(\"SELECT MAX(postid) FROM Posts WHERE username=?\");\n ps.setString(1, username);\n\n rs = ps.executeQuery();\n int newID = 1;\n if(rs.next()){\n newID = rs.getInt(1) + 1;\n }\n ps.close();\n\n ps = c.prepareStatement(\"INSERT INTO Posts (username, postid, title, body, modified, created) VALUES(?,?,?,?,?,?)\");\n ps.setString(1, username);\n ps.setInt(2, newID);\n ps.setString(3, title);\n ps.setString(4, body);\n ps.setTimestamp(5, new Timestamp(System.currentTimeMillis())); //set modified to current time\n ps.setTimestamp(6, new Timestamp(System.currentTimeMillis())); //set created to current time\n \n changed = ps.executeUpdate();\n }\n\n if(changed==0){\n ret = false;\n }\n\n } catch(SQLException e){\n //error handling\n System.out.println(\"SQLException caught.\");\n e.printStackTrace();\n } finally {\n //just need to close all\n try { rs.close(); } catch (Exception e) { /* ignored */ }\n try { ps.close(); } catch (Exception e) { /* ignored */ }\n try { c.close(); } catch (Exception e) { /* ignored */ }\n }\n\n //return list data\n if(ret)\n return findList(username);\n else\n return null;\n }",
"public long ashirPostCreating(AshirBlogPostingHelper post) {\n long result;\n\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(Col_2, post.getPost());\n values.put(Col_3, post.getImage());\n //inserting valuse into table columns\n result = db.insert(NAME_OF_TABLE, null, values);\n db.close();\n return result;\n\n }",
"public void setPostTableName(String postTableName) {\r\n\t\tthis.postTableName = postTableName;\r\n\t}",
"@Override\n\t\tprotected void postUpdate(EspStatusDTO t) throws SQLException {\n\t\t\t\n\t\t}",
"String getPostDeclareSql();",
"public void setPostId(int postId) {\n\t\tthis.postId = postId;\n\t}",
"@Override\n public Entity configuracion(Entity e) throws SQLException {\n return null;\n }",
"void setPostId(int postId);",
"int getPostId();",
"@Override\r\n\tpublic Post searchInfById(Post post2) {\n\t\tpostDao=new PostDaoImpl(TransactionManager.connection);\r\n\t\tResultSet resultSet=postDao.selectById(post2);\r\n\t\tPost post=new Post();\r\n\t\ttry {\r\n\t\t\tif(resultSet.next()) {\r\n\t\t\t\tpost.setPostId(resultSet.getInt(1));\r\n\t\t\t\tpost.setPostName(resultSet.getString(3));\r\n\t\t\t\tpost.setUserId(resultSet.getInt(2));\r\n\t\t\t\tpost.setPostProperty(resultSet.getInt(4));\r\n\t\t\t\tpost.setPostEnterNum(resultSet.getInt(5));\r\n\t\t\t\tpost.setPostTime(resultSet.getDate(6));\r\n\t\t\t\tpost.setPostScore(resultSet.getDouble(7));\r\n\t\t\t\tpost.setScoreCount(resultSet.getInt(8));\r\n\t\t\t\tpost.setLastComTime(resultSet.getDate(9));\r\n\t\t\t\tpost.setResId(resultSet.getInt(10));\r\n\t\t\t\tpost.setResPath(resultSet.getString(12));\r\n\t\t\t\tpost.setUserName(resultSet.getString(14));\r\n\t\t\t\tpost.setUserLevel(resultSet.getInt(16));\r\n\t\t\t\tpost.setUserStatus(resultSet.getInt(17));\r\n\t\t\t\tpost.setPropertyName(resultSet.getString(19));\r\n\t\t\t\tpost.setLocation(resultSet.getString(22));\r\n\t\t\t\tpost.setPhone(resultSet.getString(23));\r\n\t\t\t\tpost.setPostCode(resultSet.getInt(24));\r\n\t\t\t\tpost.setEmail(resultSet.getString(25));\r\n\t\t\t\tpost.setGender(resultSet.getString(26));\r\n\t\t\t\tpost.setHobby(resultSet.getString(27));\r\n\t\t\t\tpost.setMajor(resultSet.getString(28));\r\n\t\t\t\tpost.setScore(resultSet.getInt(29));\r\n\t\t\t\tpost.setNickName(resultSet.getString(30));\r\n\t\t\t\tpost.setUserRegion(resultSet.getString(31));\r\n\t\t\t\tpost.setUserPhoto(resultSet.getString(32));\r\n\t\t\t\tpost.setComCount(resultSet.getInt(39));\r\n\t\t\t\t\r\n\t\t\t\treturn post;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\treturn null;\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\treturn null;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"@Mapper\npublic interface QuestionDAO {\n String TABLE_NAME = \" question \";\n String INSERT_FIELDS = \" title, content, created_date, user_id, comment_count \";\n String SELECT_FIELDS = \" id, \" + INSERT_FIELDS;\n\n @Insert({\"insert into \", TABLE_NAME, \"(\", INSERT_FIELDS,\n \") values (#{title},#{content},#{createdDate},#{userId},#{commentCount})\"})\n int addQuestion(Question question);\n\n // 使用 xml 配置文件进行 数据库查询语句与程序接口的映射。\n // 对应的 QuestionDAO.xml 文件位于 resources 文件夹 -》com.mattLearn.dao 文件夹中。\n List<Question> selectLatestQuestions(@Param(\"userId\") int userId, @Param(\"offset\") int offset,\n @Param(\"limit\") int limit);\n\n @Select({\"select \", SELECT_FIELDS, \" from \", TABLE_NAME, \" where id=#{id}\"})\n Question SelectById(int id);\n\n @Update(\" update question set comment_count=#{commentCount} where id = #{id}\")\n int updateCommentCount(@Param(\"commentCount\") int commentCount,\n @Param(\"id\") int id);\n\n}",
"@Override\n public ColumnInfo getColumnInfo() {\n return columnInfo;\n }",
"public Integer getPostType() {\n return postType;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<Post> getPostsOf(int postId){\n \t\tList<Post> postList = null;\n\t\tCriteria query = null;\n\t\ttry {\n\t\t\t\n\t\t\t query = getCurrentSession().createCriteria(Post.class);\n\t\t\t \n\t\t\t query.createAlias(\"this.orgperson\", \"author\") \n\t\t\t .createAlias(\"author.personid\",\"authorPerson\")\n\t\t\t \t .createAlias(\"this.postcategories\", \"postcategories\")\n\t\t\t \t .createAlias(\"postcategories.category\", \"category\")\n\t\t\t \t .createAlias(\"this.postskills\", \"postskills\")\n\t\t\t \t .createAlias(\"postskills.skill\", \"skill\")\n\t\t\t \t .createAlias(\"this.posttags\", \"posttags\")\n\t\t\t \t .createAlias(\"posttags.tag\", \"tag\");\n\t\t\t \n\t\t\t query.add(Restrictions.eq(\"this.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"author.orgpersonstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"authorPerson.personstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"postcategories.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"category.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"postskills.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"skill.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"posttags.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"tag.status\", \"A\")) \n\t\t\t \t .add(Restrictions.eq(\"this.id\", postId));\n\t\t\t \n\t\t\t query.setProjection(Projections.projectionList()\n\t\t\t\t\t \n\t\t\t\t\t //post\n\t\t\t\t\t .add(Projections.property(\"this.id\").as(\"post_id\"))\n\t\t\t\t\t .add(Projections.property(\"this.title\").as(\"post_title\"))\n\t\t\t\t\t .add(Projections.property(\"this.content\").as(\"post_content\")) \n\t\t\t\t\t .add(Projections.property(\"this.bannerpath\").as(\"post_bannerpath\"))\n\t\t\t\t\t .add(Projections.property(\"this.commentable\").as(\"post_commentable\"))\n\t\t\t\t\t .add(Projections.property(\"this.date\").as(\"post_date\"))\n\t\t\t\t\t .add(Projections.property(\"this.media\").as(\"post_media\")) \n\t\t\t\t\t .add(Projections.property(\"this.status\").as(\"post_status\")) \n\t\t\t\t\t //authorperson\n\t\t\t\t\t .add(Projections.property(\"authorPerson.personid\").as(\"authorPersonPersonId\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.firstName\").as(\"authorPersonFirstName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.lastName\").as(\"authorPersonLastName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.middleName\").as(\"authorPersonmiddleName\")) \n\t\t\t\t\t //category\n\t\t\t\t\t .add(Projections.property(\"category.id\").as(\"categoryId\")) \n\t\t\t\t\t .add(Projections.property(\"category.name\").as(\"categoryName\")) \n\t\t\t\t\t //skill\n\t\t\t\t\t .add(Projections.property(\"skill.id\").as(\"skillId\")) \n\t\t\t\t\t .add(Projections.property(\"skill.name\").as(\"skillName\")) \n\t\t\t\t\t//tag\n\t\t\t\t\t .add(Projections.property(\"tag.id\").as(\"tagId\")) \n\t\t\t\t\t .add(Projections.property(\"tag.name\").as(\"tagName\")) \n\t\t\t\t\t \n\t\t\t\t\t ); \n\t\t\t \n\t\t\t postList = query.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP).list(); \n\t\t\t \t \t \n\t\t} catch (Exception e) {\n\t\t\tpostServiceLogger.error(\"error in PostService for getPostsOf()\",e);\n\t\t} \n\t\treturn postList;\n\t}",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n response.setCharacterEncoding(\"UTF-8\");\n request.setCharacterEncoding(\"UTF-8\");\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"Ghosttales_PU\");\n EntityManager em = emf.createEntityManager();\n HttpSession session = request.getSession();\n \n \n //String file = request.getParameter(\"file\");\n \n \n String content = request.getParameter(\"content\");\n // String content = \"oiadjioajdoiajdiajsi\";\n System.out.println(\"---1---\");\n String title = request.getParameter(\"title\");\n String author = (String) session.getAttribute(\"userr\");\n UserInfo u = em.find(UserInfo.class, author);\n LocalDate today = LocalDate.now();\n \n System.out.println(u.getUsername());\n \n// if(content != null && title !=null) {\n\n // String sql2 = \"SELECT COUNT(p) FROM Post p\";\n String sql2 =\"SELECT p.postId FROM Post p\";\n Query q = em.createQuery(sql2);\n \n List <Post>ps =q.getResultList() ;\n \n \n \n// long countt = (long)q.getSingleResult();\n// int count = (int) countt+1;\n \n \n Post post = new Post(); \n int num = ps.size();\n if(num==0){\n int countt = num+1 ;\n int count = countt;\n post.setPostId(count);\n session.setAttribute(\"num\",count);\n }else{\n int countt = (int) q.getResultList().get(num-1);\n int count = countt+1;\n System.out.println(num);\n System.out.println(countt);\n System.out.println(count);\n post.setPostId(count);\n session.setAttribute(\"num\",count);\n }\n \n post.setTitle(title);\n post.setContent(content);\n post.setCreateTime(java.sql.Date.valueOf(today));\n post.setUpdateTime(null);\n post.setTotallike(0);\n post.setTotalcomment(0);\n post.setUserinfousername(u);\n System.out.println(\"-----2-----\");\n \n \n \n em.getTransaction().begin();\n em.persist(post);\n em.getTransaction().commit();\n \n \n \n \n \n session.setAttribute(\"show\", post);\n \n \n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"post\", post.getContent());\n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"title\", post.getTitle());\n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"author\", post.getUserinfousername().toString());\n// post = em.find(Post.class, random_int);\n// session.setAttribute(\"day\", post.getCreateTime());\n \n \n\n request.getRequestDispatcher(\"/addimage.jsp\").forward(request, response);\n\n }",
"Achievements getPostDetails();",
"public int getDataid_postingBisnis() {\r\n return Dataid_postingBisnis;\r\n }",
"public CustomSql getCustomSqlInsert();",
"@Override\n\tpublic Post createPost(Post post) {\n\t\treturn postDao.createPost(post);\n\t}",
"int insert(PmPost record);",
"@Override\r\n\tpublic void updatePost(Post post) {\n\t\tPost p = getPostById(post.getPost_id());\r\n\t\tp.setDepartment(post.getDepartment());\r\n\t\tp.setDescription(post.getDescription());\r\n\t\tp.setEmployeeSet(post.getEmployeeSet());\r\n\t\tp.setPost_id(post.getPost_id());\r\n\t\tp.setPost_name(post.getPost_name());\r\n\t\tp.setPost_wage(post.getPost_wage());\r\n\t\tgetHibernateTemplate().update(p);\r\n\t}",
"@Override\n\tpublic JDBCMetaData getMetaData() throws SQLException {\n\t\treturn null;\n\t}",
"public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}",
"Integer getDomainTemplateColumn();",
"private void writeMetaData(ResultSet resultSet) throws SQLException {\n\t System.out.println(\"The columns in the table are: \");\r\n\t System.out.println(\"Table: \" + resultSet.getMetaData().getTableName(1));\r\n\t for (int i = 1; i<= resultSet.getMetaData().getColumnCount(); i++){\r\n\t System.out.println(\"Column \" +i + \" \"+ resultSet.getMetaData().getColumnName(i));\r\n\t }\r\n\t }",
"@SuppressWarnings(\"HardCodedStringLiteral\")\npublic interface MyPostsColumn {\n @DataType(INTEGER)\n @PrimaryKey\n String KEY_SQL_ID = \"sql_id\";\n\n @DataType(TEXT)\n @NotNull @Unique\n String KEY_ID = \"_id\";\n\n @DataType(TEXT)\n String KEY_AUTHOR = \"author\";\n\n @DataType(TEXT)\n @NotNull\n String KEY_SUBREDDIT_ID = \"subreddit_id\";\n\n @DataType(TEXT)\n @NotNull\n String KEY_SUBREDDIT = \"subreddit\";\n\n @DataType(INTEGER)\n String KEY_UPS = \"ups\";\n\n @DataType(TEXT)\n String KEY_TITLE = \"title\";\n\n @DataType(INTEGER)\n String KEY_COMMENTS_COUNT = \"comments_count\";\n\n @DataType(INTEGER)\n String KEY_CREATED_UTC = \"created_utc\";\n\n @DataType(INTEGER)\n String KEY_CREATED = \"created\";\n\n @DataType(TEXT)\n @NotNull\n String KEY_NAME = \"name\";\n\n @DataType(INTEGER)\n @NotNull\n String KEY_CLICKED = \"clicked\";\n\n @DataType(INTEGER)\n String KEY_LIKES = \"likes\"; //CAN BE NULL\n\n @DataType(TEXT)\n String KEY_DOMAIN = \"domain\";\n\n @DataType(INTEGER)\n String KEY_IS_SELF = \"is_self\";\n\n @DataType(INTEGER)\n @NotNull\n String KEY_OVER_18 = \"over_18\";\n\n @DataType(TEXT)\n String KEY_PERMALINK = \"permalink\";\n\n @DataType(TEXT)\n String KEY_POST_HINT = \"post_hint\";\n\n @DataType(INTEGER)\n String KEY_SCORE = \"score\";\n\n @DataType(TEXT)\n String KEY_THUMBNAIL = \"thumbnail\";\n\n @DataType(TEXT)\n String KEY_URL = \"url\";\n\n @DataType(INTEGER)\n String KEY_VISITED = \"visited\";\n\n @DataType(INTEGER)\n String KEY_LOCKED = \"locked\";\n\n @DataType(TEXT)\n String KEY_MEDIA_OEMBED_TYPE = \"media_oembed_type\";\n\n @DataType(TEXT)\n String KEY_BIG_IMAGE_URL = \"big_image_url\";\n\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_POST = \"type_post\";\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_SEARCH = \"type_search\";\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_WIDGET = \"type_widget\";\n @DataType(INTEGER)\n @NotNull @DefaultValue(\"-1\")\n String TYPE_TEMP = \"type_temp\";\n\n\n\n}",
"public void queryPostTable(Context activityContext, String postTableName) {\n new GetCursorTablePost(activityContext).execute(postTableName);\n }",
"@Override\n\tpublic void updateAllPostNowTipBySid(String Id, CodeInfo codeInfo) {\n\t\tQuery query = this.currentSession().createQuery(\"update com.wondersgroup.human.bo.pubinst.PtPost set tenureStatus = :nowPostSign where publicInstitution.id = :Id\");\n\t\tquery.setParameter(\"nowPostSign\", codeInfo);\n\t\tquery.setParameter(\"Id\",Id);\n\t\tquery.executeUpdate();\n\t\t\n\t}",
"public interface IBasicPost {\n Long getId();\n String getTitle();\n String getDescription();\n long getCreatedDate();\n long getUpdatedDate();\n Integer getCityId();\n Long getUserId();\n Integer getUserLikeCount();\n Integer getUserCommentCount();\n String getUserFirstName();\n}",
"@RequestMapping(value = \"fetch-health-tips\", method = RequestMethod.POST)\n private List<HealthPost> fetchHealthTips() {\n SessionService.sessionBuilder(session -> {\n healthPostList = session.createQuery(\"from HealthPost order by id desc\", HealthPost.class).list();\n });\n return healthPostList;\n }",
"@Override\n\tpublic void getPost(Scanner sc) {\n\t\tPost p;\n\t\tgetAll();\n\t\tSystem.out.print(\"보고 싶은 리뷰의 번호를 입력해 주세요 >>\");\n\t\tp = dao.selectPost(sc.nextInt());\n\t\tSystem.out.println(p.getPostName());\n\t\tSystem.out.println(p.getContent());\n\t}",
"public interface BasePostPoMapper extends feihua.jdbc.api.dao.CrudDao<BasePostPo, String> {\n\n java.util.List<BasePostPo> searchBasePosts(SearchPostsConditionDsfDto dto);\n}",
"@Override\n public DatabaseMetaData getMetaData() throws SQLException\n {\n logger.debug(\n \" public DatabaseMetaData getMetaData() throws SQLException\");\n\n return new SnowflakeDatabaseMetaData(this);\n }",
"public List<MediumBean> populatemediam(String sql ){\n\t\t\t\tList<MediumBean> retlist = jdbcTemplate.query(sql,ParameterizedBeanPropertyRowMapper.newInstance(MediumBean.class));\n\t\t\t\t\treturn retlist;\n\t\t }",
"public boolean addPost(Post post) throws SQLException\n {\n boolean isAdded=false;\n try\n {\n database = dbH.getReadableDatabase();\n dbH.openDataBase();\n ContentValues values = new ContentValues();\n values.put(\"postBody\", post.getPostBody());\n values.put(\"postedBy\", post.getPostedBy());\n values.put(\"postedAt\", post.getPostedAt());\n values.put(\"postID\", post.getPostID());\n values.put(\"image\" , post.getBitmap());\n\n isAdded=database.insert(\"Post\", null, values)>0;\n\n }\n catch(SQLException e)\n {\n e.printStackTrace();\n }\n finally{\n if(database!=null && database.isOpen())\n dbH.close();\n }\n return isAdded;}",
"@Query(\"SELECT * FROM \" + TABLE_NAME)\n List<Note> getNotes();",
"@Override\r\n\tprotected Entity getEntityByFields() throws SQLException {\n\t\t\r\n\t\tint id = rs.getInt(\"id\");\r\n\t\tint productId = rs.getInt(\"id_product\");\r\n\t\tString productName = super.getString(\"productName\");\t// From INNER JOIN\r\n\t\tString productUnit = super.getString(\"productUnit\");\t// From INNER JOIN\r\n\t\tfloat quantity = rs.getFloat(\"quantity\");\r\n\t\tfloat price = rs.getFloat(\"price\");\r\n\t\tfloat summa = rs.getFloat(\"summa\");\r\n\t\t\r\n\t\treturn new DocInvoiceItem(id, productId, productName, productUnit, quantity, price, summa);\r\n\t}",
"public PostInformationExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"@Override\r\n\tpublic BaseBean insertSQL(String sql, Connection con) {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic List<Post> getPostByName(String name) {\n\t\tString hql = \"from Post p where p.post_name =?\";\r\n\t\treturn (List<Post>) getHibernateTemplate().find(hql, name);\r\n\t}",
"public String getGeneratedSql() {\n/* 142 */ return this.sql;\n/* */ }",
"@Override\n\tpublic void insertIPODetail(IPODetail ipo) throws SQLException {\n\t\t\n\t}",
"@Override\n\tpublic Map<String, String[]> loadColumnMetas(String databaseName) throws SQLException {\n\t\tString sql=\"select utc.*,UCC.comments from user_tab_columns utc\\n\" + \n\t\t\t\t\"left join user_col_comments ucc on UCC.table_name=UTC.table_name and UCC.column_name=UTC.column_name\";\n\t\tMap<String, String[]> ret=new HashMap<>();\n\t\t try(PreparedStatement preparedStatement= connection.prepareStatement(sql);\n\t \t\tResultSet resultSet=preparedStatement.executeQuery();){\n\t\t\twhile(resultSet.next()) {\n\t\t\t\tString tableName=resultSet.getString(\"TABLE_NAME\")\n\t\t\t\t\t\t,columnName=resultSet.getString(\"COLUMN_NAME\")\n\t\t\t\t\t\t,dataLength=resultSet.getString(\"DATA_LENGTH\")\n\t\t ,nullable=resultSet.getString(\"NULLABLE\")\n\t\t ,comments=resultSet.getString(\"COMMENTS\")\n\t\t\t\t\t\t;\n\t\t\t\tString key=tableName+\":\"+columnName;\n\t\t\t\tret.put(key, new String[] {dataLength,nullable,comments});\n\t\t\t\t\n\t\t\t}\n\t }\n\t\t\n\t\treturn ret;\n\t}",
"void processMetaData(ResultSet rs) throws SQLException;",
"@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }",
"@Dao\npublic interface PostDao {\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n void insertPost(iPost iPosts);\n\n @Update\n void updatePost(iPost iPost);\n\n @Delete\n void deletePost(iPost iPost);\n\n @Query(\"SELECT * FROM iPost\")\n List<iPost> getAllPosts();\n\n @Query(\"SELECT * FROM iPost WHERE idThread=:threadId\")\n List<iPost> findPostsByThread(final int threadId);\n\n @Transaction\n @Query(\"SELECT * FROM iPost WHERE idThread=:threadId\")\n Single<List<PostsHelper>> getPostsFromThread(String threadId);\n}",
"protected String getSqlTable() {\n\t\treturn \"Project\";\n\t}",
"public void formDatabaseTable() {\n }",
"void savePost(Post post);",
"public CustomSql getCustomSqlUpdate();",
"@Override\n\tprotected String getCreateSql() {\n\t\treturn null;\n\t}",
"private static void showsSqlSelectOnNormalEntityBean() {\n\n\t\tQuery<Bug> query = Ebean.createQuery(Bug.class, \"simple\");\n\t\tquery.where().eq(\"status.code\", \"ACTIVE\");\n\n\t\tList<Bug> list = query.findList();\n\n\t\tSystem.out.println(list);\n\t\t\n\t\tfor (Bug bug : list) {\n\t\t\tString body = bug.getBody();\n\t\t\tSystem.out.println(body);\n\t\t}\n\n\t}",
"public interface AlmacenMapper {\n @Select(value = \"select tipo,descripcion from tipoproducto\")\n @Results(value = {\n @Result(javaType = Producto.class),\n @Result(property = \"tipo\",column = \"tipo\"),\n @Result(property = \"descripcion\",column = \"descripcion\"),\n })\n List<Producto> listarTipoProducto();\n\n @Insert(value = \"INSERT \" +\n \"INTO producto \" +\n \" ( \" +\n \" codigo, \" +\n \" nombre, \" +\n \" tipo, \" +\n \" porc_precio, \" +\n \" uni_medida, \" +\n \" cantidad \" +\n \" ) \" +\n \" VALUES \" +\n \" ( \" +\n \" producto_seq.nextval, \" +\n \" #{produ.nombre}, \" +\n \" #{produ.tipo}, \" +\n \" #{produ.porc_precio}, \" +\n \" #{produ.uni_medida}, \" +\n \" #{produ.cantidad} \" +\n \" )\")\n void GuardarProducto(@Param(\"produ\") Producto producto);\n\n @Select(value = \"SELECT codigo, \" +\n \" nombre, \" +\n \" p.tipo, \" +\n \" tp.descripcion, \" +\n \" porc_precio, \" +\n \" uni_medida, \" +\n \" cantidad \" +\n \"FROM producto p \" +\n \"INNER JOIN tipoproducto tp \" +\n \"ON(p.tipo=tp.tipo)\")\n @Results(value = {\n @Result(javaType = Producto.class),\n @Result(property = \"codigo\",column = \"codigo\"),\n @Result(property = \"nombre\",column = \"nombre\"),\n @Result(property = \"tipo\",column = \"tipo\"),\n @Result(property = \"descripcion\",column = \"descripcion\"),\n @Result(property = \"porc_precio\",column = \"porc_precio\"),\n @Result(property = \"uni_medida\",column = \"uni_medida\"),\n @Result(property = \"cantidad\",column = \"cantidad\"),\n })\n List<Producto> listarProductos();\n\n @Update(value =\"UPDATE producto \" +\n \"SET nombre =#{produ.nombre}, \" +\n \" porc_precio=#{produ.porc_precio}, \" +\n \" tipo= \" +\n \" #{produ.tipo} \" +\n \"WHERE codigo=#{produ.codigo}\" )\n void ActualizarProducto(@Param(\"produ\") Producto producto);\n\n @Delete(value=\"DELETE FROM PRODUCTO WHERE codigo=#{id}\")\n void EliminarProducto(@Param(\"id\") Integer id);\n\n @Select(value = \"SELECT codigo, \" +\n \" nombre \" +\n \"FROM producto p where tipo=#{id} \")\n @Results(value = {\n @Result(javaType = Producto.class),\n @Result(property = \"codigo\",column = \"codigo\"),\n @Result(property = \"nombre\",column = \"nombre\"),\n })\n List<Producto> ListarProductosxCategoria(@Param(\"id\") Integer id);\n\n @Insert(value = \"INSERT \" +\n \"INTO entrada_productos \" +\n \" ( \" +\n \" n_entrada, \" +\n \" fecha, \" +\n \" costo_total \" +\n \" ) \" +\n \" VALUES \" +\n \" ( \" +\n \" entrada_seq.nextval , \" +\n \" sysdate, \" +\n \" #{entrada.costo_total} \" +\n \" )\")\n void insertEntradaProducto(@Param(\"entrada\") EntradaProducto entrada);\n\n @Insert(value = \"INSERT \" +\n \"INTO detalle_entrada_productos \" +\n \" ( \" +\n \" N_ENTRADA, \" +\n \" COD_PRODUCTO, \" +\n \" COD_PROVEEDOR, \" +\n \" CANTIDAD, \" +\n \" PRECIO_COMPRA, \" +\n \" COSTO_TOTAL_PRODUCTO \" +\n \" ) \" +\n \" VALUES \" +\n \" ( \" +\n \" (select max(n_entrada) from entrada_productos), \" +\n \" #{entrada.cod_producto}, \" +\n \" #{entrada.cod_proveedor}, \" +\n \" #{entrada.cantidad}, \" +\n \" #{entrada.precio_compra}, \" +\n \" #{entrada.costo_total_producto} \" +\n \" )\")\n void inserDetalleEntradaProductos(@Param(\"entrada\") EntradaProducto entrada);\n\n @Update(value =\"UPDATE producto \" +\n \"SET cantidad=(select cantidad+#{entrada.cantidad} from producto where codigo=#{entrada.cod_producto}) \"+\n \"WHERE codigo=#{entrada.cod_producto}\" )\n void updateStockProducto(@Param(\"entrada\")EntradaProducto entrada);\n}",
"@Override //插入通知\n\tpublic void insertPoInfo(PageData pd) throws Exception {\n\t\tdao.save(\"PoInfoMapper.insertPoInfo\", pd);\n\t}",
"public PostRecord(Integer id, Integer userId, String title, String body, String date) {\n super(PostTable.POST);\n\n set(0, id);\n set(1, userId);\n set(2, title);\n set(3, body);\n set(4, date);\n }",
"public interface BugsActivityDAO {\n\n @Insert(\"insert into firefox_bugs_activity \" +\n \"(`bugId`,`who`,`when`,`what`,`removed`,`added`,`crawledTime`) \" +\n \"values (#{bugId},#{who},#{when},#{what},#{removed},#{added},#{crawledTime})\")\n public int add(BugsActivity fireFoxBugsActivity);\n\n @Insert(\"insert into firefox_bugs_activity_html (`bugId`,`html`) \" +\"values (#{bugId},#{html})\")\n public int addHtml(BugsActivity fireFoxBugsActivity);\n}",
"@Override\n\tpublic List<Map<String, Object>> getNoticeLast() {\n\t\tStringBuffer querySQL = new StringBuffer(\n\t\t\t\t\"select ifnull(title,'') title,ifnull(static_page,'') static_page from notice where status = 1 order by crdate desc limit 4\");\n\t\t// StringBuffer querySQL2 = new StringBuffer(\n\t\t// \"select count(1) from notice where status = 1 order by crdate desc limit 1\");\n\t\t// if (jdbcTemplate.queryForInt(querySQL2.toString()) > 0) {\n\t\treturn jdbcTemplate.queryForList(querySQL.toString());\n\t\t// }\n\t\t// return null;\n\n\t}",
"@Override\n public Jurusan mapRow(ResultSet rs, int rowNum) throws SQLException {\n Jurusan jurusan=new Jurusan();\n jurusan.setId(rs.getInt(\"id\"));\n jurusan.setNama(rs.getString(\"nama\"));\n jurusan.setIdFakultas(rs.getInt(\"idFakultas\"));\n\n\n Fakultas fakultas=new Fakultas();\n fakultas.setId(rs.getInt(\"idFakultas\"));\n fakultas.setNama(rs.getString(\"namaFakultas\"));\n jurusan.setFakultas(fakultas);\n return jurusan;\n }",
"public interface BugPlatformMapper {\n\n\n @Select(\"SELECT js.pname as bugResolutionStatus, COUNT(js.pname) as bugNum FROM jiraissue ji INNER JOIN project pr ON pr.ID = ji.PROJECT LEFT JOIN issuestatus js ON ji.issuestatus = js.ID where pr.ID in (#{2}) and issuetype = 1 AND CREATED between #{0} and #{1} group by js.pname\")\n List<BugPlatformObject> getList(String startDate,String endDate,String project);\n}",
"@Override\n @Transactional\n public void onSubmit() {\n ValueMap values = getModelObject();\n\n // check if the honey pot is filled\n if (StringUtils.isNotBlank((String)values.get(\"comment\")))\n {\n error(\"Caught a spammer!!!\");\n return;\n }\n // Construct a copy of the edited comment\n Snip snip = new Snip();\n SnipMeta meta= new SnipMeta();\n\n logger.info(this.getDefaultModel().toString());\n\n logger.info(((List<String>) values.get(\"select_all\")).toString());\n\n meta.setTags((ArrayList<String>)values.get(\"select_all\"));\n meta.setDescription((String) values.get(\"meta\"));\n\n\n // Set date of comment to add\n snip.setDate(new Date());\n snip.setCode((String)values.get(\"code\"));\n snipList.add(0, snip); //TODO: eliminare lo show di tutti gli snipp da snipList magari con una FIFO\n meta.setSnip(snip);\n\n\n //--------- get session ad manager ------\n MyAuthenticatedWebSession app_session = MyAuthenticatedWebSession.getYourAppSession();\n logger.info(\"web session is: \"+app_session.toString());\n EntityManager em = app_session.getEntityManager();\n //---------------------------------------------------\n\n Users tmp_id = em.find(Users.class ,app_session.getAttribute(\"user\"));\n //snip.setUser(app_session.getCurrentUser()); --less network more backend\n snip.setUser(tmp_id);\n em.getTransaction().begin();\n em.setFlushMode(COMMIT);\n em.persist(snip);\n em.persist(meta);\n em.flush();\n em.getTransaction().commit();\n\n\n // Clear out the text component\n values.put(\"code\", \"\");\n }",
"@Insert({\n \"insert into kd_user_medal (id, userid, \",\n \"medalId, bindUserid, \",\n \"remark, createTime)\",\n \"values (#{id,jdbcType=BIGINT}, #{userid,jdbcType=BIGINT}, \",\n \"#{medalid,jdbcType=BIGINT}, #{binduserid,jdbcType=BIGINT}, \",\n \"#{remark,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP})\"\n })\n int insert(KDUserMedal record);",
"@Override\n\tpublic String addOrUpdate(Map<String, Object> entityMap)\n\t\t\tthrows DataAccessException {\n\t\treturn null;\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<Post> getPostsOf(int postId , int userId){\n\t\t\n\t\tList<Post> postList = null;\n\t\tCriteria query = null;\n\t\ttry {\n\t\t\t\n\t\t\t query = getCurrentSession().createCriteria(Post.class);\n\t\t\t \n\t\t\t query.createAlias(\"this.orgperson\", \"author\") \n\t\t\t .createAlias(\"author.personid\",\"authorPerson\")\n\t\t\t \t .createAlias(\"this.postcategories\", \"postcategories\")\n\t\t\t \t .createAlias(\"postcategories.category\", \"category\")\n\t\t\t \t .createAlias(\"this.postskills\", \"postskills\")\n\t\t\t \t .createAlias(\"postskills.skill\", \"skill\")\n\t\t\t \t .createAlias(\"this.posttags\", \"posttags\")\n\t\t\t \t .createAlias(\"posttags.tag\", \"tag\");\n\t\t\t \n\t\t\t query.add(Restrictions.eq(\"this.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"author.orgpersonstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"authorPerson.personstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"postcategories.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"category.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"postskills.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"skill.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"posttags.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"tag.status\", \"A\")) \n\t\t\t \t .add(Restrictions.eq(\"this.id\", postId))\n\t\t\t \t .add(Restrictions.eq(\"author.orgpersonid\", userId));\n\t\t\t \n\t\t\t query.setProjection(Projections.projectionList()\n\t\t\t\t\t \n\t\t\t\t\t //post\n\t\t\t\t\t .add(Projections.property(\"this.id\").as(\"post_id\"))\n\t\t\t\t\t .add(Projections.property(\"this.title\").as(\"post_title\"))\n\t\t\t\t\t .add(Projections.property(\"this.content\").as(\"post_content\")) \n\t\t\t\t\t .add(Projections.property(\"this.bannerpath\").as(\"post_bannerpath\"))\n\t\t\t\t\t .add(Projections.property(\"this.commentable\").as(\"post_commentable\"))\n\t\t\t\t\t .add(Projections.property(\"this.date\").as(\"post_date\"))\n\t\t\t\t\t .add(Projections.property(\"this.media\").as(\"post_media\")) \n\t\t\t\t\t .add(Projections.property(\"this.status\").as(\"post_status\")) \n\t\t\t\t\t //authorperson\n\t\t\t\t\t .add(Projections.property(\"authorPerson.personid\").as(\"authorPersonPersonId\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.firstName\").as(\"authorPersonFirstName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.lastName\").as(\"authorPersonLastName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.middleName\").as(\"authorPersonmiddleName\")) \n\t\t\t\t\t //category \n\t\t\t\t\t .add(Projections.property(\"postcategories.id\").as(\"postCategoryId\"))\n\t\t\t\t\t .add(Projections.property(\"postcategories.status\").as(\"postCategoryStatus\"))\n\t\t\t\t\t .add(Projections.property(\"category.id\").as(\"categoryId\")) \n\t\t\t\t\t .add(Projections.property(\"category.name\").as(\"categoryName\")) \n\t\t\t\t\t //skill\n\t\t\t\t\t .add(Projections.property(\"postskills.id\").as(\"postSkillsId\"))\n\t\t\t\t\t .add(Projections.property(\"postskills.status\").as(\"postSkillsStatus\"))\n\t\t\t\t\t .add(Projections.property(\"skill.id\").as(\"skillId\")) \n\t\t\t\t\t .add(Projections.property(\"skill.name\").as(\"skillName\")) \n\t\t\t\t\t//tag\n\t\t\t\t\t .add(Projections.property(\"posttags.id\").as(\"postTagsId\"))\n\t\t\t\t\t .add(Projections.property(\"posttags.status\").as(\"postTagsStatus\"))\n\t\t\t\t\t .add(Projections.property(\"tag.id\").as(\"tagId\")) \n\t\t\t\t\t .add(Projections.property(\"tag.name\").as(\"tagName\")) \n\t\t\t\t\t \n\t\t\t\t\t ); \n\t\t\t \n\t\t\t postList = query.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP).list();\n\t\t\t \n\t\t\t \t \t \n\t\t} catch (Exception e) {\n\t\t\tpostServiceLogger.error(\"error in PostService for getPostsOf()\",e);\n\t\t}\n\t\treturn postList;\n\t}",
"public void savePost(VBeatPostModel post) {\n AppLocalDB.getInstance().db.postDao().insertAll(post);\n }",
"public interface GradeMapper {\n @Select(\"select * from grade\")\n public List<Grade> getByGradeNm();\n\n @Insert(\"insert into grade(grade_nm,teacher_id) values(#{gradeNm},#{teacherId})\")\n @Options(useGeneratedKeys=true,keyColumn=\"id\",keyProperty=\"id\")//设置id自增长\n public void save(Grade grade);\n}",
"public void insert() throws SQLException {\n Statement stmtIn = DatabaseConnector.getInstance().getStatementIn();\n\n int check = BusinessFacade.getInstance().checkIDinDB(this.productRelation.getID(),\n this.post.getID(), \"goods\", \"product_type_id\", \"post_id\");\n if (check == -1){\n stmtIn.executeUpdate(\"INSERT INTO ngaccount.goods (goods_id , product_type_id, post_id) \" +\n \"VALUES ('\" + this.goodID + \"', '\" + this.productRelation.getID() +\n \"', '\" + this.post.getID() + \"');\");\n }\n }"
]
| [
"0.59889555",
"0.57390594",
"0.570231",
"0.5665071",
"0.563877",
"0.54984266",
"0.5481363",
"0.54466987",
"0.5425114",
"0.54112184",
"0.5379956",
"0.53751487",
"0.5359197",
"0.53162086",
"0.5312936",
"0.528954",
"0.52719784",
"0.5232329",
"0.5205044",
"0.5203752",
"0.51913637",
"0.51644903",
"0.5158612",
"0.51456964",
"0.5139534",
"0.51339734",
"0.5133906",
"0.51099247",
"0.5079191",
"0.5056655",
"0.50562364",
"0.50553346",
"0.505261",
"0.5023909",
"0.5022968",
"0.49978197",
"0.49690282",
"0.49589097",
"0.49544036",
"0.4950202",
"0.49453658",
"0.4939361",
"0.49377412",
"0.49362096",
"0.4925293",
"0.49227697",
"0.49181008",
"0.4917835",
"0.49169457",
"0.4913101",
"0.49100274",
"0.48689047",
"0.48656505",
"0.4864679",
"0.48603308",
"0.48549676",
"0.48547435",
"0.4844339",
"0.48340806",
"0.4833405",
"0.4817286",
"0.48095027",
"0.48090166",
"0.47975355",
"0.4792431",
"0.47820842",
"0.47786596",
"0.47786534",
"0.47704196",
"0.4758565",
"0.47556996",
"0.47526348",
"0.47519997",
"0.47490165",
"0.4748695",
"0.4748518",
"0.4746258",
"0.47447923",
"0.47441265",
"0.4743084",
"0.47414175",
"0.4727179",
"0.4726927",
"0.47241473",
"0.4719419",
"0.47125748",
"0.47068906",
"0.47059047",
"0.4703528",
"0.47008115",
"0.46991017",
"0.46971655",
"0.46955362",
"0.46926337",
"0.46912578",
"0.46898603",
"0.46894318",
"0.46860006",
"0.4683632",
"0.46812797",
"0.4678808"
]
| 0.0 | -1 |
inflate the ordersheet layout | @Override
public void initialize()
{
llOrderSheet = (LinearLayout)inflater.inflate(R.layout.movementdetail, null);
llBody.addView(llOrderSheet,LayoutParams.FILL_PARENT,LayoutParams.FILL_PARENT);
Bundle bundle = getIntent().getExtras();
if(bundle != null)
{
load_type = bundle.getInt("load_type");
loadRequestDO = (LoadRequestDO)bundle.get("object");
}
intialiseControls();
tvOrdersheetHeader.setText(tvOrdersheetHeader.getText().toString());
lvItems.setVisibility(View.GONE);
tvNoItemFoundBase.setVisibility(View.VISIBLE);
lvItems.setVerticalScrollBarEnabled(false);
lvItems.setDivider(getResources().getDrawable(R.drawable.saparetor));
lvItems.setCacheColorHint(0);
lvItems.setFadingEdgeLength(0);
lvItems.setAdapter(ordersheetadapter = new ItemListAdapter(new ArrayList<VanLoadDO>()));
loadData();
llOrdersheetVerify.setOnClickListener(new OnClickListener()
{
@Override
public void onClick(View arg0)
{
btnOrdersheetVerify.performClick();
}
});
btnOrdersheetVerify.setOnClickListener(new OnClickListener()
{
@Override
public void onClick(View v)
{
if(btnOrdersheetVerify.getText().toString().equalsIgnoreCase("Refresh"))
loadRequestStatus();
else if(btnOrdersheetVerify.getText().toString().equalsIgnoreCase("Continue"))
{
Intent intent = new Intent(MovementDetail.this, VerifyItemInVehicle.class);
// intent.putExtra("updatededDate", vecOrdProduct);
intent.putExtra("movementId", loadRequestDO.MovementCode);
intent.putExtra("movementType", loadRequestDO.MovementType);
intent.putExtra("isMenu", false);
startActivityForResult(intent, 1111);
}
else if(btnOrdersheetVerify.getText().toString().equalsIgnoreCase("Finish"))
{
finish();
}
}
});
btnPrint_stock_details.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v)
{
if(vecOrdProduct!=null && vecOrdProduct.size()>0){
Intent intent = new Intent(MovementDetail.this,WoosimPrinterActivity.class);
intent.putExtra("CALLFROM", CONSTANTOBJ.PRINT_STOCK_DETAILS);intent.putExtra("STOCK_DETAILS", vecOrdProduct);
intent.putExtra("MOVEMENT_STATUS", StringUtils.getInt(loadRequestDO.MovementStatus));
startActivity(intent);
}
}
});
if(vecOrdProduct == null)
vecOrdProduct = new ArrayList<VanLoadDO>();
btnCheckOut.setVisibility(View.GONE);
ivLogOut.setVisibility(View.GONE);
ivSearchCross.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
etSearch.setText("");
ivSearchCross.setVisibility(View.GONE);
if(ordersheetadapter!=null){
ordersheetadapter.refreshList(vecOrdProduct);
}
}
});
etSearch.addTextChangedListener(new TextWatcher()
{
@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {
}
@Override
public void beforeTextChanged(CharSequence s, int start, int count,
int after) {}
@Override
public void afterTextChanged(Editable s) {
if(!TextUtils.isEmpty(s))
ivSearchCross.setVisibility(View.VISIBLE);
else
ivSearchCross.setVisibility(View.GONE);
ArrayList<VanLoadDO> vecVanLoadTemp = searchUnloadItems(s.toString());
if(ordersheetadapter!=null){
ordersheetadapter.refreshList(vecVanLoadTemp);
}
}
});
setTypeFaceRobotoNormal(llOrderSheet);
tvOrdersheetHeader.setTypeface(AppConstants.Roboto_Condensed_Bold);
btnOrdersheetVerify.setTypeface(AppConstants.Roboto_Condensed_Bold);
tvDescription.setTypeface(AppConstants.Roboto_Condensed_Bold);
tvQty.setTypeface(AppConstants.Roboto_Condensed_Bold);
tvApprovedQty.setTypeface(AppConstants.Roboto_Condensed_Bold);
tvCollectedQty.setTypeface(AppConstants.Roboto_Condensed_Bold);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void inflateView() {\n\t\tLog.v(T, \"inflateView\");\n\t\tif (!isInEditMode()) {\n\t\t\tString inflaterService = Context.LAYOUT_INFLATER_SERVICE;\n\n\t\t\tLayoutInflater layoutInflater = (LayoutInflater) getContext()\n\t\t\t\t\t.getSystemService(inflaterService);\n\t\t\tlayoutInflater.inflate(R.layout.dms_coordinate, this, true);\n\n\t\t\t// Get child control references\n\t\t\teditDegrees = (EditText) findViewById(R.id.editDegrees);\n\t\t\teditMinutes = (EditText) findViewById(R.id.editMinutes);\n\t\t\teditSeconds = (EditText) findViewById(R.id.editSeconds);\n\t\t}\n\t}",
"private void layout() {\n\n\n _abortButton= makeAbortButton();\n _abortButton.addStyleName(\"download-group-abort\");\n _content.addStyleName(\"download-group-content\");\n _detailUI= new DetailUIInfo[getPartCount(_monItem)];\n layoutDetails();\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\t\n\t\tView arrangeOrderLayout = inflater.inflate(R.layout.arrange_order, container, false);\n\t\tinitButton(arrangeOrderLayout);\n\t\tinitListView(arrangeOrderLayout);\n\t\treturn arrangeOrderLayout;\n\t}",
"private void doLayout()\n \t{\n \t\tModel model = doc.getModel();\n \t\tExtendedLayoutModel sbase = (ExtendedLayoutModel)model.getExtension(LayoutConstants.namespaceURI);\n \t\tif (sbase != null)\n \t\t{\n \t\t\tfor (Layout l : sbase.getListOfLayouts())\n \t\t\t{\n \t\t\t\t// TODO: list of compartment glyphs, text glyphs, etc...\n \t\t\t\tfor (SpeciesGlyph g : l.getListOfSpeciesGlyphs())\n \t\t\t\t{\n \t\t\t\t\tString sid = g.getSpecies();\n \t\t\t\t\tPeerSpecies sbr = getSpeciesPeer(sid);\n \t\t\t\t\tif (sbr != null) {\n \t\t\t\t\t\tsbr.setSpeciesGlyph(g);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}",
"protected void inflate() {\n matrix.walkInOptimizedOrder(inflateVisitor);\n }",
"public void makeOrder(Order order) {\n for(Order_Item x : order.getOrdered()){\n TableRow item_row = build_row(x.getItem().getName(), String.valueOf(x.getQuantity()), (x.getPrice()*x.getQuantity()) + \"€\");\n orderLayout.addView(item_row);\n }\n\n refreshPriceView();\n }",
"public Layout() {\n\n //nao precisa colocar externo, apenas referencia com a linha 0\n for (int i = 0; i < 4; i++) {\n matrix[0][i] = Estados.EXTERNO;\n }\n for (int i = 0; i < 4; i++) {\n matrix[1][i] = Estados.ROOM;\n }\n\n matrix[2][1] = Estados.ROOM_EMPTY;\n matrix[2][2] = Estados.ROOM_EMPTY2;\n\n matrix[2][0] = Estados.ACESSO_EXTERNO;\n matrix[2][3] = Estados.ACESSO_INTERNO;\n\n for (int i = 0; i < 4; i++) {\n matrix[3][i] = Estados.ROOM;\n }\n\n for (int i = 0; i < 4; i++) {\n matrix[4][i] = Estados.EXTERNO2;\n }\n\n }",
"private void castLayoutElements() {\n linlaHeaderProgress = (LinearLayout) view.findViewById(R.id.linlaHeaderProgress);\n listPrinters = (RecyclerView) view.findViewById(R.id.listPrinters);\n linlaEmpty = (LinearLayout) view.findViewById(R.id.linlaEmpty);\n \n /* CONFIGURE THE RECYCLERVIEW */\n listPrinters.setHasFixedSize(true);\n LinearLayoutManager llm = new LinearLayoutManager(getActivity());\n llm.setOrientation(LinearLayoutManager.VERTICAL);\n listPrinters.setLayoutManager(llm);\n }",
"@Override\n public View onCreateView(\n LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState\n ) {\n View view = inflater.inflate(R.layout.bottom_sheet, container, false);\n calendarGroup = view.findViewById(R.id.calendar_group);\n calendarView = view.findViewById(R.id.calendar_view);\n calendarButton = view.findViewById(R.id.today_calendar_button);\n enterTodo = view.findViewById(R.id.enter_todo_et);\n saveButton = view.findViewById(R.id.save_todo_button);\n priorityButton = view.findViewById(R.id.priority_todo_button);\n priorityRadioGroup = view.findViewById(R.id.radioGroup_priority);\n Chip todayChip = view.findViewById(R.id.today_chip);\n todayChip.setOnClickListener(this);\n Chip tommorowChip = view.findViewById(R.id.tomorrow_chip);\n tommorowChip.setOnClickListener(this);\n Chip nextWeekChip = view.findViewById(R.id.next_week_chip);\n nextWeekChip.setOnClickListener(this);\n priority = Priority.LOW;\n return view;\n }",
"@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}",
"@Override\n\tprotected int layoutFragmentRes() {\n\t\treturn R.layout.fragment_statistics_chart_order;\n\t}",
"public void onFinishInflate() {\n AppMethodBeat.i(103009);\n if (getChildCount() > 0) {\n View childAt = getChildAt(0);\n if (!(childAt instanceof RadarSpecialTableLayout)) {\n childAt = null;\n }\n this.pCL = (RadarSpecialTableLayout) childAt;\n }\n AppMethodBeat.o(103009);\n }",
"@Override\n public ExportOrderAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n Context context = parent.getContext();\n LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\n View view = inflater.inflate(R.layout.item_order, parent, false);\n ExportOrderAdapter.ViewHolder vh = new ExportOrderAdapter.ViewHolder(view);\n\n return vh;\n }",
"public void intialiseControls()\n\t{\n\t\t//getting ids add_stock_inventory\n\t\tllOrderListView \t\t=\t(LinearLayout)llOrderSheet.findViewById(R.id.llordersheet);\n\t\tllItemHeader\t \t\t=\t(LinearLayout)llOrderSheet.findViewById(R.id.llItemHeader);\n\t\tllApproved\t \t\t=\t(LinearLayout)llOrderSheet.findViewById(R.id.llApproved);\n\t\tllCollectedQty\t \t\t=\t(LinearLayout)llOrderSheet.findViewById(R.id.llCollectedQty);\n\t\tivCollectedSep\t \t\t=\t(ImageView)llOrderSheet.findViewById(R.id.ivCollectedSep);\n\t\tivApprovedSep\t \t\t=\t(ImageView)llOrderSheet.findViewById(R.id.ivApprovedSep);\n\t\trlWareHouse\t\t\t\t=\t(RelativeLayout) llOrderSheet.findViewById(R.id.rlWareHouse);\n\t\tbtnOrdersheetVerify\t\t=\t(Button)llOrderSheet.findViewById(R.id.btnOrdersheetVerify);\n\t\tbtnPrint_stock_details\t\t=\t(Button)llOrderSheet.findViewById(R.id.btnPrint_stock_details);\n\t\tllOrdersheetVerify\t\t=\t(LinearLayout)llOrderSheet.findViewById(R.id.llOrdersheetVerify);\n\t\tllPrintStockDetail\t\t=\t(LinearLayout)llOrderSheet.findViewById(R.id.llPrintStockDetail);\n\t\tlvItems\t\t\t\t\t=\t(ListView)llOrderSheet.findViewById(R.id.lvItems);\n\t\t\n\t\ttvOrdersheetHeader\t\t=\t(TextView)llOrderSheet.findViewById(R.id.tvOrdersheetHeader);\n\t\ttvNoItemFoundBase\t\t=\t(TextView)llOrderSheet.findViewById(R.id.tvNoItemFound);\n\t\t\n\t\tllTopLayout\t\t\t\t=\t(LinearLayout)llOrderSheet.findViewById(R.id.llTopLayout);\n\t\t\n\t\tetSearch\t\t\t=\t(EditText)llOrderSheet.findViewById(R.id.etSearch);\n\t\tetSearch.setHintTextColor(Color.WHITE);\n\t\tivSearchCross\t\t\t=\t(ImageView)llOrderSheet.findViewById(R.id.ivSearchCross);\n\t\t\n\t\tllHeader \t\t=\t(LinearLayout)llOrderSheet.findViewById(R.id.llHeader);\n\t\t\n\t\ttvTotalQtUN\t\t=\t(TextView)llOrderSheet.findViewById(R.id.tvTotalQtUN);\n\t\ttvVanQty\t\t=\t(TextView)llOrderSheet.findViewById(R.id.tvVanQty);\n\t\tivSeprator\t\t=\t(ImageView)llOrderSheet.findViewById(R.id.ivSeprator);\n\t\tivSepUN\t\t\t=\t(ImageView)llOrderSheet.findViewById(R.id.ivSepUN);\n\t\t\n\t\tllTopLayout.setVisibility(View.VISIBLE);\n\t\t\n\t\ttvOrdersheetHeader.setVisibility(View.VISIBLE);\n\t\tllPrintStockDetail.setVisibility(View.VISIBLE);\n\t\ttvOrdersheetHeader.setTypeface(AppConstants.Roboto_Condensed_Bold);\n\t\ttvDescription=(TextView) llOrderSheet.findViewById(R.id.tvDescription);\n\t\ttvQty= (TextView) llOrderSheet.findViewById(R.id.tvQty);\n\t\ttvApprovedQty=(TextView) llOrderSheet.findViewById(R.id.tvApprovedQty);\n\t\ttvCollectedQty=(TextView) llOrderSheet.findViewById(R.id.tvCollectedQty);\n\t\t\n refreshLoad();\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_my_orders, container, false);\n\n order_recyclerView = view.findViewById(R.id.order_recycler_view);\n orderList = new ArrayList<>();\n orderAdapter = new OrderAdapter(getContext(), orderList);\n\n\n\n RecyclerView.LayoutManager mLayoutManager = new GridLayoutManager(getContext(), 1);\n order_recyclerView.setLayoutManager(mLayoutManager);\n //order_recyclerView.addItemDecoration(new OrderActivity().GridSpacingItemDecoration(2, dpToPx(10), true));\n order_recyclerView.setItemAnimator(new DefaultItemAnimator());\n order_recyclerView.setAdapter(orderAdapter);\n\n orderAlbums();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_myorder, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View mView = inflater.inflate(R.layout.fragment_pembeli_order, container, false);\n initiateComponent(mView);\n return mView;\n }",
"public void onFinishInflate() {\n super.onFinishInflate();\n bringChildToFront(this.menuButton);\n this.buttonsCount = getChildCount();\n createLabels();\n }",
"private void prepareViews() {\n mTextViewHeader = (TextView) mHeaderView.findViewById(R.id.tv_text_header_enhanced_listview);\n mTextViewFooter = (TextView) mFooterView.findViewById(R.id.tv_text_footer_enhanced_listview);\n mTextViewTime = (TextView) mHeaderView.findViewById(R.id.tv_time_update_header);\n\n mArrowHeader = mHeaderView.findViewById(R.id.arrow_header);\n mArrowFooter = mFooterView.findViewById(R.id.arrow_footer);\n\n mPbHeader = mHeaderView.findViewById(R.id.pb_header_enhanced_listview);\n mPbFooter = mFooterView.findViewById(R.id.pb_footer_enhanced_listview);\n\n }",
"private void m125721p() {\n Context context = getContext();\n if (context != null) {\n LayoutInflater.from(context).inflate(R.layout.a38, (ViewGroup) this.f88309g, true);\n }\n }",
"public void createPackageContents() {\r\n if (isCreated) return;\r\n isCreated = true;\r\n\r\n // Create classes and their features\r\n kShapeLayoutEClass = createEClass(KSHAPE_LAYOUT);\r\n createEAttribute(kShapeLayoutEClass, KSHAPE_LAYOUT__XPOS);\r\n createEAttribute(kShapeLayoutEClass, KSHAPE_LAYOUT__YPOS);\r\n createEAttribute(kShapeLayoutEClass, KSHAPE_LAYOUT__WIDTH);\r\n createEAttribute(kShapeLayoutEClass, KSHAPE_LAYOUT__HEIGHT);\r\n createEReference(kShapeLayoutEClass, KSHAPE_LAYOUT__INSETS);\r\n\r\n kEdgeLayoutEClass = createEClass(KEDGE_LAYOUT);\r\n createEReference(kEdgeLayoutEClass, KEDGE_LAYOUT__BEND_POINTS);\r\n createEReference(kEdgeLayoutEClass, KEDGE_LAYOUT__SOURCE_POINT);\r\n createEReference(kEdgeLayoutEClass, KEDGE_LAYOUT__TARGET_POINT);\r\n\r\n kLayoutDataEClass = createEClass(KLAYOUT_DATA);\r\n\r\n kPointEClass = createEClass(KPOINT);\r\n createEAttribute(kPointEClass, KPOINT__X);\r\n createEAttribute(kPointEClass, KPOINT__Y);\r\n\r\n kInsetsEClass = createEClass(KINSETS);\r\n createEAttribute(kInsetsEClass, KINSETS__TOP);\r\n createEAttribute(kInsetsEClass, KINSETS__BOTTOM);\r\n createEAttribute(kInsetsEClass, KINSETS__LEFT);\r\n createEAttribute(kInsetsEClass, KINSETS__RIGHT);\r\n\r\n kIdentifierEClass = createEClass(KIDENTIFIER);\r\n createEAttribute(kIdentifierEClass, KIDENTIFIER__ID);\r\n\r\n kVectorEClass = createEClass(KVECTOR);\r\n createEAttribute(kVectorEClass, KVECTOR__X);\r\n createEAttribute(kVectorEClass, KVECTOR__Y);\r\n\r\n kVectorChainEClass = createEClass(KVECTOR_CHAIN);\r\n }",
"public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\txActivityDiagramArbiterEClass = createEClass(XACTIVITY_DIAGRAM_ARBITER);\n\n\t\txActivityDiagramArbiterStateEClass = createEClass(XACTIVITY_DIAGRAM_ARBITER_STATE);\n\n\t\txActivityDiagramArbiterTransitionEClass = createEClass(XACTIVITY_DIAGRAM_ARBITER_TRANSITION);\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_order_record, container, false);\n }",
"public void setSheetOrder(int sheetOrder) {\n this.sheetOrder = sheetOrder;\n }",
"public OrderAdapter() {\n super(new ArrayList<MultiItemEntity>());\n addItemType(TYPE_HEAD, R.layout.item_order_head);\n addItemType(TYPE_CONTENT, R.layout.item_order_content);\n addItemType(TYPE_FOOTER, R.layout.item_order_foot);\n }",
"private void prepareLayout() {\n\n\t\tm_layouts = new ArrayList<SQLTableLayout>();\n\n\t\t//\n\t\t// construct the table tag\n\t\t//\n\t\tSQLTableLayout layout = new SQLTableLayout(TAG_TABLE_NAME);\n\t\tlayout.addFieldToSQLTableLayout(TAG_FIELD_ID, \"INTEGER primary key\",\n\t\t\t\t\"tag id\");\n\t\tlayout.addFieldToSQLTableLayout(TAG_FIELD_NAME, \"TEXT\", \"tag name\");\n\t\tlayout.addFieldToSQLTableLayout(TAG_FIELD_CREATE_DATE, \"TEXT\",\n\t\t\t\t\"creation date of tag\");\n\t\tlayout.addFieldToSQLTableLayout(TAG_FIELD_USAGE, \"INTEGER\",\n\t\t\t\t\"tag usage in repository\");\n\t\tm_layouts.add(layout);\n\n\t\t//\n\t\t// construct the table file\n\t\t//\n\t\tlayout = new SQLTableLayout(FILE_TABLE_NAME);\n\t\tlayout.addFieldToSQLTableLayout(FILE_FIELD_ID, \"INTEGER primary key\",\n\t\t\t\t\"file id\");\n\t\tlayout.addFieldToSQLTableLayout(FILE_FIELD_PATH, \"TEXT\", \"path of file\");\n\t\tlayout.addFieldToSQLTableLayout(FILE_FIELD_TYPE, \"TEXT\", \"type of file\");\n\t\tlayout.addFieldToSQLTableLayout(FILE_FIELD_CREATE_DATE, \"TEXT\",\n\t\t\t\t\"creation date of file\");\n\t\tlayout.addFieldToSQLTableLayout(FILE_FIELD_HASH_SUM, \"TEXT\",\n\t\t\t\t\"hash sum of file\");\n\t\tm_layouts.add(layout);\n\n\t\t//\n\t\t// construct the mapping table\n\t\t//\n\t\tlayout = new SQLTableLayout(MAP_TABLE_NAME);\n\t\tlayout.addFieldToSQLTableLayout(MAP_FIELD_ID, \"INTEGER primary key\",\n\t\t\t\t\"map id\");\n\t\tlayout.addFieldToSQLTableLayout(MAP_FIELD_FILE, \"INTEGER\", \"file id\");\n\t\tlayout.addFieldToSQLTableLayout(MAP_FIELD_TAG, \"INTEGER\", \"tag id\");\n\t\tm_layouts.add(layout);\n\n\t\t//\n\t\t// construct the directory table\n\t\t//\n\t\tlayout = new SQLTableLayout(DIRECTORY_TABLE_NAME);\n\t\tlayout.addFieldToSQLTableLayout(DIRECTORY_FIELD_ID,\n\t\t\t\t\"INTEGER primary key\", \"directory id\");\n\t\tlayout.addFieldToSQLTableLayout(DIRECTORY_FIELD_PATH, \"TEXT\",\n\t\t\t\t\"path of directory\");\n\t\tm_layouts.add(layout);\n\n\t\t//\n\t\t// construct pending file table\n\t\t//\n\t\tlayout = new SQLTableLayout(PENDING_FILE_TABLE_NAME);\n\t\tlayout.addFieldToSQLTableLayout(PENDING_FIELD_ID,\n\t\t\t\t\"INTEGER primary key\", \"pending id\");\n\t\tlayout.addFieldToSQLTableLayout(PENDING_FIELD_PATH, \"TEXT\",\n\t\t\t\t\"pending path of file\");\n\t\tm_layouts.add(layout);\n\n\t\t//\n\t\t// construct synchronized table\n\t\t//\n\t\tlayout = new SQLTableLayout(SYNC_TABLE_NAME);\n\t\tlayout.addFieldToSQLTableLayout(SYNC_FIELD_ID, \"INTEGER primary key\",\n\t\t\t\t\"sync id\");\n\t\tlayout.addFieldToSQLTableLayout(SYNC_FIELD_PATH, \"TEXT\",\n\t\t\t\t\"path of synced file\");\n\t\tlayout.addFieldToSQLTableLayout(SYNC_FIELD_DATE, \"TEXT\", \"sync date\");\n\t\tlayout.addFieldToSQLTableLayout(SYNC_FIELD_TAGS, \"TEXT\",\n\t\t\t\t\"tags of synced file\");\n\t\tlayout.addFieldToSQLTableLayout(SYNC_FIELD_HASH_SUM, \"TEXT\",\n\t\t\t\t\"hash sum of synced file\");\n\t\tm_layouts.add(layout);\n\t}",
"private static LinearLayout FuckIntoShape(Context context, View view)\n {\n // Re-arrange completely shitty checkbox layout.\n // The summary must be last item in layout. Icon,\n // title and checkbox need to be in one layout.\n //\n\n //\n // Step one: move all items into new horizontal linear layout.\n //\n\n LinearLayout newlayout = new LinearLayout(context);\n newlayout.setOrientation(LinearLayout.HORIZONTAL);\n newlayout.setLayoutParams(new ViewGroup.LayoutParams(\n ViewGroup.LayoutParams.MATCH_PARENT,\n ViewGroup.LayoutParams.WRAP_CONTENT));\n\n ViewGroup vg = (ViewGroup) view;\n\n while (vg.getChildCount() > 0)\n {\n newlayout.addView(Simple.removeFromParent(vg.getChildAt(0)));\n }\n\n vg.addView(newlayout);\n\n //\n // Step two: fuck top level layout to be vertical match parent.\n //\n\n ((LinearLayout) vg).setOrientation(LinearLayout.VERTICAL);\n\n ImageView icon = (ImageView) view.findViewById(android.R.id.icon);\n\n if ((icon != null) && (icon.getParent() instanceof LinearLayout))\n {\n LinearLayout icon_frame = (LinearLayout) icon.getParent();\n icon_frame.setLayoutParams(new LinearLayout.LayoutParams(Simple.WC, Simple.MP));\n icon_frame.setPadding(0, 0, 0, 0);\n }\n\n //\n // Step three: remove summary from horizontal layout and add\n // to top layout now beeing vertical.\n //\n\n TextView summary = (TextView) view.findViewById(android.R.id.summary);\n\n vg.addView(Simple.removeFromParent(summary));\n\n //\n // Step four: do not forget to fuck stupid max lines on summary.\n //\n\n summary.setMaxLines(50);\n summary.setPadding(0, 0, 16, 16);\n\n //\n // Fucked into shape.\n //\n\n return newlayout;\n }",
"private void toXW() {\n if (fragment_XW == null) {\n fragment_XW = new Fragment_XW();\n fragmenttransaction.add(R.id.frame_content, fragment_XW);\n } else {\n fragmenttransaction.show(fragment_XW);\n }\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_add_order, container, false);\r\n\r\n initViews(view);\r\n getAllInventories();\r\n getAllClients();\r\n return view;\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_order, container, false);\n }",
"@Override\n public CurrentUserPackageBookings.PackageBookingViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n View view = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.pack_order_row, parent, false);\n\n return new CurrentUserPackageBookings.PackageBookingViewHolder(view);\n }",
"@Nullable\n @Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.bottom_sheet_product_view, container, false);\n // view = inflater.inflate(R.layout.bottom_sheet_product_view, null);\n\n recycle_view_size = view.findViewById(R.id.recycle_view_size);\n recycle_view_color = view.findViewById(R.id.recycle_view_color);\n\n for (int i =0;i < 5;i++){\n arrayList.add(\"\");\n }\n sizeAdapter = new SizeAdapter(getContext(),arrayList);\n colorAdapter = new ColorAdapter(getContext(),arrayList);\n\n LinearLayoutManager HorizontalLayout112\n = new LinearLayoutManager(\n getActivity(),\n LinearLayoutManager.HORIZONTAL,\n false);\n //RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getActivity(), LinearLayout.HORIZONTAL,false);/\n recycle_view_size.setLayoutManager(HorizontalLayout112);\n recycle_view_size.setItemAnimator(new DefaultItemAnimator());\n sizeAdapter.notifyDataSetChanged();\n recycle_view_size.setAdapter(sizeAdapter);\n\n LinearLayoutManager HorizontalLayout1121\n = new LinearLayoutManager(\n getActivity(),\n LinearLayoutManager.HORIZONTAL,\n false);\n //RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getActivity(), LinearLayout.HORIZONTAL,false);/\n recycle_view_color.setLayoutManager(HorizontalLayout1121);\n recycle_view_color.setItemAnimator(new DefaultItemAnimator());\n colorAdapter.notifyDataSetChanged();\n recycle_view_color.setAdapter(colorAdapter);\n\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View inflated = inflater.inflate(R.layout.fragment_order, container, false);\n Button cancelButton = (Button) inflated.findViewById(R.id.buttonCancel);\n cancelButton.setOnClickListener(this);\n\n Button PlaceOrderButton = (Button) inflated.findViewById(R.id.buttonPlaceOrder);\n PlaceOrderButton.setOnClickListener(this);\n\n\n return inflated;\n }",
"@Override\n protected void onCreate(@Nullable Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(getLayoutViewId());\n// presenter = getPresenter(typePresenter);\n init();\n }",
"@Override\n public void layout() {\n // TODO: not implemented\n }",
"private void inflateTextLayout(View row, BeadInfo beadInfo) {\n\t\tTextView colorCodeTV = (TextView) row.findViewById(R.id.colorNumber);\n\t\tif (colorCodeTV != null){\n\t\t\tString colorCode = beadInfo.getColorCode();\n\t\t\tif (colorCode != null){\n\t\t\t\tcolorCodeTV.setText(colorCode);\n\t\t\t}\n\t\t}\n\t\tLocation loc = beadInfo.getLocation(); \n\t\tif (loc != null){\n\t\t\tString wing = loc.getWing();\n\t\t\tString locRow = String.valueOf(loc.getRow());\n\t\t\tString locCol = String.valueOf(loc.getCol());\n\t\t\tString quantity = String.valueOf(beadInfo.getQuantity());\n\n\t\t\tTextView wingTV = (TextView) row.findViewById(R.id.beadLocationWing);\n\t\t\tif (wingTV != null){\n\t\t\t\twingTV.setText(wing);\n\t\t\t}\n\t\t\tTextView locRowTV = (TextView) row.findViewById(R.id.beadLocationRow);\n\t\t\tif (locRowTV != null){\n\t\t\t\tlocRowTV.setText(locRow);\n\t\t\t}\n\t\t\tTextView locColTV = (TextView) row.findViewById(R.id.beadLocationColumn);\n\t\t\tif (locColTV != null){\n\t\t\t\tlocColTV.setText(locCol);\n\t\t\t}\n\t\t\tTextView quantityTV = (TextView) row.findViewById(R.id.beadQuantity);\n\t\t\tif (quantityTV != null){\n\t\t\t\tquantityTV.setText(quantity);\n\t\t\t}\n\n\n\n\t\t}\n\n\t\t\n\t}",
"public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tcontrolEClass = createEClass(CONTROL);\n\t\tcreateEReference(controlEClass, CONTROL__MIDI);\n\t\tcreateEAttribute(controlEClass, CONTROL__BACKGROUND);\n\t\tcreateEAttribute(controlEClass, CONTROL__CENTERED);\n\t\tcreateEAttribute(controlEClass, CONTROL__COLOR);\n\t\tcreateEAttribute(controlEClass, CONTROL__H);\n\t\tcreateEAttribute(controlEClass, CONTROL__INVERTED);\n\t\tcreateEAttribute(controlEClass, CONTROL__INVERTED_X);\n\t\tcreateEAttribute(controlEClass, CONTROL__INVERTED_Y);\n\t\tcreateEAttribute(controlEClass, CONTROL__LOCAL_OFF);\n\t\tcreateEAttribute(controlEClass, CONTROL__NAME);\n\t\tcreateEAttribute(controlEClass, CONTROL__NUMBER);\n\t\tcreateEAttribute(controlEClass, CONTROL__NUMBER_X);\n\t\tcreateEAttribute(controlEClass, CONTROL__NUMBER_Y);\n\t\tcreateEAttribute(controlEClass, CONTROL__OSC_CS);\n\t\tcreateEAttribute(controlEClass, CONTROL__OUTLINE);\n\t\tcreateEAttribute(controlEClass, CONTROL__RESPONSE);\n\t\tcreateEAttribute(controlEClass, CONTROL__SCALEF);\n\t\tcreateEAttribute(controlEClass, CONTROL__SCALET);\n\t\tcreateEAttribute(controlEClass, CONTROL__SECONDS);\n\t\tcreateEAttribute(controlEClass, CONTROL__SIZE);\n\t\tcreateEAttribute(controlEClass, CONTROL__TEXT);\n\t\tcreateEAttribute(controlEClass, CONTROL__TYPE);\n\t\tcreateEAttribute(controlEClass, CONTROL__W);\n\t\tcreateEAttribute(controlEClass, CONTROL__X);\n\t\tcreateEAttribute(controlEClass, CONTROL__Y);\n\n\t\tlayoutEClass = createEClass(LAYOUT);\n\t\tcreateEReference(layoutEClass, LAYOUT__TABPAGE);\n\t\tcreateEAttribute(layoutEClass, LAYOUT__MODE);\n\t\tcreateEAttribute(layoutEClass, LAYOUT__ORIENTATION);\n\t\tcreateEAttribute(layoutEClass, LAYOUT__VERSION);\n\n\t\tmidiEClass = createEClass(MIDI);\n\t\tcreateEAttribute(midiEClass, MIDI__CHANNEL);\n\t\tcreateEAttribute(midiEClass, MIDI__DATA1);\n\t\tcreateEAttribute(midiEClass, MIDI__DATA2F);\n\t\tcreateEAttribute(midiEClass, MIDI__DATA2T);\n\t\tcreateEAttribute(midiEClass, MIDI__TYPE);\n\t\tcreateEAttribute(midiEClass, MIDI__VAR);\n\n\t\ttabpageEClass = createEClass(TABPAGE);\n\t\tcreateEReference(tabpageEClass, TABPAGE__CONTROL);\n\t\tcreateEAttribute(tabpageEClass, TABPAGE__NAME);\n\n\t\ttopEClass = createEClass(TOP);\n\t\tcreateEReference(topEClass, TOP__LAYOUT);\n\t}",
"public void initializeLayout(){\r\n\tsuper.addField(FIELDTYPE_PICX, 1);\r\n\tsuper.addField(FIELDTYPE_PICX, 8);\r\n\tsuper.addField(FIELDTYPE_PICX, 1);\r\n\tsuper.addField(FIELDTYPE_PICX, 3);\r\n\tsuper.addField(FIELDTYPE_PICX, 5);\r\n\tsuper.addField(FIELDTYPE_PICX, 18);\r\n\tsuper.addField(FIELDTYPE_PICX, 4);\r\n\tsuper.addField(FIELDTYPE_PICX, 110);\r\n\tsuper.addField(FIELDTYPE_PICX, 105);\r\n}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n context = getActivity().getApplicationContext();\n View inflaterview = inflater.inflate(R.layout.fragment_order_detail, container, false);\n collectName = (TextView)inflaterview.findViewById(R.id.txtResName);\n collectAddress = (TextView)inflaterview.findViewById(R.id.txtResAddress);\n collectPhone = (TextView)inflaterview.findViewById(R.id.txtResPhone);\n deliverAddress = (TextView)inflaterview.findViewById(R.id.txtDeliverAddress);\n deliverPhone = (TextView)inflaterview.findViewById(R.id.txtDeliverPhone);\n layItem = (LinearLayout)inflaterview.findViewById(R.id.layoutItem);\n btnRequest = (Button)inflaterview.findViewById(R.id.btnRequest);\n btnMap = (Button)inflaterview.findViewById(R.id.btnMap);\n txtordercode = (TextView)inflaterview.findViewById(R.id.txtOrderCode);\n txtdelicharge = (TextView)inflaterview.findViewById(R.id.txtDelivcharge);\n txttotalamount = (TextView)inflaterview.findViewById(R.id.txtTotalAmount);\n return inflaterview;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }",
"public void layout() {\n TitleLayout ll1 = new TitleLayout(getContext(), sourceIconView, titleTextView);\n\n // All items in ll1 are vertically centered\n ll1.setGravity(Gravity.CENTER_VERTICAL);\n ll1.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n ll1.addView(sourceIconView);\n ll1.addView(titleTextView);\n\n // Container layout for all the items\n if (mainLayout == null) {\n mainLayout = new LinearLayout(getContext());\n mainLayout.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n mainLayout.setPadding(adaptSizeToDensity(LEFT_PADDING),\n adaptSizeToDensity(TOP_PADDING),\n adaptSizeToDensity(RIGHT_PADDING),\n adaptSizeToDensity(BOTTOM_PADDING));\n mainLayout.setOrientation(LinearLayout.VERTICAL);\n }\n\n mainLayout.addView(ll1);\n\n if(syncModeSet) {\n mainLayout.addView(syncModeSpinner);\n }\n\n this.addView(mainLayout);\n }",
"public ArrayList<Layout> xmlFileToLayoutsPalette(InputStream fis, boolean concatenate) {\n\n ArrayList<Layout> result = null;\n\n Bundle bundle = null;\n ArrayList<Layout> layoutsPalette = null;\n Layout layoutElement = null;\n Stack<Bundle> bundleStack = new Stack<>();\n long arrayLong[] = null;\n float arrayFloat[] = null;\n String arrayString[] = null;\n int arrayIndex = 0;\n boolean needGC = false;\n\n mXmlPullParser = Xml.newPullParser();\n\n try {\n //FileInputStream fis;\n\n mXmlPullParser.setInput(fis, null);\n int eventType = mXmlPullParser.getEventType();\n boolean done = false;\n\n while (eventType != XmlPullParser.END_DOCUMENT && !done) {\n\n String name = null;\n Bitmap denseIcon = null, ambientIcon = null;\n\n if(needGC) { System.gc(); needGC = false; }\n\n switch (eventType) {\n\n case XmlPullParser.START_DOCUMENT:\n// bundle = new Bundle();\n break;\n\n case XmlPullParser.START_TAG:\n\n name = mXmlPullParser.getName();\n\n if (name.equalsIgnoreCase(mRootTag)) {\n String prodid = mXmlPullParser.getAttributeValue(null, ATTR_PRODUCT_ID);\n if (null == prodid || !prodid.equalsIgnoreCase(productId)) {\n done = true;\n }\n\n } else if (name.equalsIgnoreCase(LAYOUTS_PALETTE)) {\n layoutsPalette = new ArrayList<>();\n needGC = true;\n\n } else if (name.equalsIgnoreCase(LAYOUT)) {\n// bundleStack.push(bundle);\n// bundle = new Bundle();\n layoutElement = new Layout();\n layoutElement.iconAmbientFileName = null;\n layoutElement.iconDenseFileName = null;\n denseIcon = null;\n ambientIcon = null;\n needGC = true;\n\n } else if (name.equalsIgnoreCase(LAYOUT_NAME)) {\n String lp_name = mXmlPullParser.nextText();\n// bundle.putString(name, lp_name);\n layoutElement.name = lp_name;\n\n// } else if (name.equalsIgnoreCase(DENSE_ICON) || name.equalsIgnoreCase(AMBIENT_ICON)) {\n// String base64gzip = mXmlPullParser.nextText();\n// GZIPInputStream zis = new GZIPInputStream(new ByteArrayInputStream(Base64.decode(base64gzip, 0)));\n// ByteArrayOutputStream byteBuffer = new ByteArrayOutputStream();\n// byte[] buffer = new byte[1024];\n// int len; while ((len = zis.read(buffer)) != -1) byteBuffer.write(buffer, 0, len);\n// zis.close();\n//// bundle.putByteArray(name, byteBuffer.toByteArray());\n// ByteArrayInputStream bais = new ByteArrayInputStream(byteBuffer.toByteArray());\n// Bitmap bmp = BitmapFactory.decodeStream(bais);\n// Bitmap sb = Bitmap.createScaledBitmap(bmp, ACommon.LAYOUT_PALETTE_ICON_SIDE_DIMENSION,\n// ACommon.LAYOUT_PALETTE_ICON_SIDE_DIMENSION, true);\n// if (name.equalsIgnoreCase(DENSE_ICON)) {\n// layoutElement.iconDense = sb;\n// } else if (name.equalsIgnoreCase(AMBIENT_ICON)) {\n// layoutElement.iconAmbient = sb;\n// }\n// needGC = true;\n } else if (name.equalsIgnoreCase(DENSE_ICON) || name.equalsIgnoreCase(AMBIENT_ICON)) {\n String base64gzip = mXmlPullParser.nextText();\n GZIPInputStream zis = new GZIPInputStream(new ByteArrayInputStream(Base64.decode(base64gzip, 0)));\n ByteArrayOutputStream byteBuffer = new ByteArrayOutputStream();\n byte[] buffer = new byte[1024];\n int len; while ((len = zis.read(buffer)) != -1) byteBuffer.write(buffer, 0, len);\n zis.close();\n// bundle.putByteArray(name, byteBuffer.toByteArray());\n ByteArrayInputStream bais = new ByteArrayInputStream(byteBuffer.toByteArray());\n Bitmap bmp = BitmapFactory.decodeStream(bais);\n Bitmap sb = Bitmap.createScaledBitmap(bmp, ACommon.LAYOUT_PALETTE_ICON_SIDE_DIMENSION,\n ACommon.LAYOUT_PALETTE_ICON_SIDE_DIMENSION, true);\n if (name.equalsIgnoreCase(DENSE_ICON)) {\n denseIcon = sb;\n //Log.i(TAG, \"#XML, xmlFileToLayoutsPalette, ICON, iconD=\" + denseIcon + \", fname=\" + layoutElement.iconDenseFileName);\n if (null != layoutElement.iconDenseFileName) {\n bmpToFile(denseIcon, layoutElement.iconDenseFileName);\n denseIcon = null;\n }\n } else if (name.equalsIgnoreCase(AMBIENT_ICON)) {\n ambientIcon = sb;\n //Log.i(TAG, \"#XML, xmlFileToLayoutsPalette, ICON, iconA=\" + ambientIcon + \", fname=\" + layoutElement.iconAmbientFileName);\n if (null != layoutElement.iconAmbientFileName) {\n bmpToFile(ambientIcon, layoutElement.iconAmbientFileName);\n ambientIcon = null;\n }\n }\n needGC = true;\n\n } else if (name.equalsIgnoreCase(DENSE_ICON_FILENAME) || name.equalsIgnoreCase(AMBIENT_ICON_FILENAME)) {\n String iconFileName = mXmlPullParser.nextText();\n if (name.equalsIgnoreCase(DENSE_ICON_FILENAME)) {\n if (!concatenate) layoutElement.iconDenseFileName = iconFileName;\n else layoutElement.iconDenseFileName = String.valueOf(System.currentTimeMillis()) + \"_D\";\n //Log.i(TAG, \"#XML, xmlFileToLayoutsPalette, FNAME, iconD=\" + denseIcon + \", fname=\" + layoutElement.iconDenseFileName);\n if (null != denseIcon) {\n bmpToFile(denseIcon, layoutElement.iconDenseFileName);\n denseIcon = null;\n }\n } else if (name.equalsIgnoreCase(AMBIENT_ICON_FILENAME)) {\n if (!concatenate) layoutElement.iconAmbientFileName = iconFileName;\n else layoutElement.iconAmbientFileName = String.valueOf(System.currentTimeMillis()) + \"_A\";\n //Log.i(TAG, \"#XML, xmlFileToLayoutsPalette, FNAME, iconA=\" + ambientIcon + \", fname=\" + layoutElement.iconAmbientFileName);\n if (null != ambientIcon) {\n bmpToFile(ambientIcon, layoutElement.iconAmbientFileName);\n ambientIcon = null;\n }\n }\n needGC = true;\n\n } else if (name.equalsIgnoreCase(WATCH_APPEARANCE)) {\n// bundleStack.push(bundle);\n bundle = new Bundle();\n\n } else if (name.equalsIgnoreCase(INSCRIPTION_BUNDLE)) {\n bundleStack.push(bundle);\n bundle = new Bundle();\n\n } else if (name.equalsIgnoreCase(Inscription.CFG_INSCR_DIRECTION) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_BEND) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_BURNIN) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_ENABLED) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_TEXTCOLOR) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_FX)) {\n arrayIndex = 0;\n arrayLong = new long[Inscription.NUM_INSCRIPTIONS];\n for (int i = 0; i < Inscription.NUM_INSCRIPTIONS; i++) arrayLong[i] = 0;\n needGC = true;\n\n } else if (name.equalsIgnoreCase(ACommon.CFG_HOUR_MARKS)) {\n arrayIndex = 0;\n arrayLong = new long[WatchAppearance.NUM_HOUR_MARKS];\n for (int i = 0; i < WatchAppearance.NUM_HOUR_MARKS; i++) arrayLong[i] = WatchAppearance.DEFAULT_HOUR_MARK; //0;\n needGC = true;\n\n } else if (name.equalsIgnoreCase(ACommon.CFG_HOUR_MARKS_RELIEF)) {\n arrayIndex = 0;\n arrayLong = new long[WatchAppearance.NUM_HOUR_MARKS];\n for (int i = 0; i < WatchAppearance.NUM_HOUR_MARKS; i++) arrayLong[i] = WatchAppearance.DEFAULT_HOUR_MARK_RELIEF;\n needGC = true;\n\n } else if (name.equalsIgnoreCase(LONG_ITEM)) {\n String value = mXmlPullParser.nextText();\n arrayIndex = fromXml(arrayLong, value, arrayIndex);\n\n } else if (name.equalsIgnoreCase(Inscription.CFG_INSCR_ANGLE) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_TEXTSIZE) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_TEXTSCALEX) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_RADIUS) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_INCLINE)) {\n arrayIndex = 0;\n arrayFloat = new float[Inscription.NUM_INSCRIPTIONS];\n for(int i=0; i<Inscription.NUM_INSCRIPTIONS; i++) arrayFloat[i] = 0.0f;\n needGC = true;\n\n } else if (name.equalsIgnoreCase(FLOAT_ITEM)) {\n String value = mXmlPullParser.nextText();\n arrayIndex = fromXml(arrayFloat, value, arrayIndex);\n\n } else if (name.equalsIgnoreCase(Inscription.CFG_INSCR_FONTFAMILY) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_TEXT) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_FONTSTYLE)) {\n arrayIndex = 0;\n arrayString = new String[Inscription.NUM_INSCRIPTIONS];\n for(int i=0; i<Inscription.NUM_INSCRIPTIONS; i++) arrayString[i] = \"\";\n needGC = true;\n\n } else if (name.equalsIgnoreCase(STRING_ITEM)) {\n String value = mXmlPullParser.nextText();\n arrayIndex = fromXml(arrayString, value, arrayIndex);\n\n\n } else {\n String value = mXmlPullParser.nextText();\n fromXML(bundle, name, value);\n }\n break;\n\n\n case XmlPullParser.END_TAG:\n\n name = mXmlPullParser.getName();\n\n if (name.equalsIgnoreCase(mRootTag)) {\n done = true;\n\n } else if (name.equalsIgnoreCase(LAYOUTS_PALETTE)) {\n// bundle.putStringArrayList(LAYOUTS_PALETTE, layoutsPalette);\n result = layoutsPalette;\n needGC = true;\n\n } else if (name.equalsIgnoreCase(LAYOUT)) {\n// String base64 = ACommon.serializeBundle(bundle);\n// layoutsPalette.add(base64);\n// bundle = bundleStack.pop();\n layoutsPalette.add(layoutElement);\n needGC = true;\n\n } else if (name.equalsIgnoreCase(WATCH_APPEARANCE)) {\n// Bundle poped = bundleStack.pop();\n// poped.putBundle(WATCH_APPEARANCE, bundle);\n// bundle = poped;\n layoutElement.config = bundle;\n bundle = null;\n\n } else if (name.equalsIgnoreCase(INSCRIPTION_BUNDLE)) {\n Bundle popped = bundleStack.pop();\n popped.putBundle(INSCRIPTION_BUNDLE, bundle);\n bundle = popped;\n\n\n } else if (name.equalsIgnoreCase(Inscription.CFG_INSCR_DIRECTION) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_BEND) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_BURNIN) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_ENABLED) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_TEXTCOLOR) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_FX)) {\n bundle.putLongArray(name, arrayLong);\n\n } else if (name.equalsIgnoreCase(ACommon.CFG_HOUR_MARKS)) {\n bundle.putLongArray(name, arrayLong);\n\n } else if (name.equalsIgnoreCase(ACommon.CFG_HOUR_MARKS_RELIEF)) {\n bundle.putLongArray(name, arrayLong);\n\n } else if (name.equalsIgnoreCase(Inscription.CFG_INSCR_ANGLE) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_TEXTSIZE) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_TEXTSCALEX) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_RADIUS) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_INCLINE)) {\n bundle.putFloatArray(name, arrayFloat);\n\n } else if (name.equalsIgnoreCase(Inscription.CFG_INSCR_FONTFAMILY) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_TEXT) ||\n name.equalsIgnoreCase(Inscription.CFG_INSCR_FONTSTYLE)) {\n bundle.putStringArray(name, arrayString);\n\n\n }\n break;\n\n } // switch\n eventType = mXmlPullParser.next();\n } // while\n\n } catch (Exception e) {\n e.printStackTrace();\n result = null;\n } finally {\n System.gc();\n }\n\n// Log.i(TAG, \"((( xmlFileToLayoutsPalette STOP, file=\" + fileName +\n// \", elements count=\" + ((null==result) ? 0 : result.size()) + \", concatenate=\" + concatenate);\n return result;\n }",
"ShipmentPackageContent createShipmentPackageContent();",
"public void preLayout(ZGroup node) {\n }",
"void initLayout() {\n\t\t/* Randomize the number of rows and columns */\n\t\tNUM = Helper.randomizeNumRowsCols();\n\n\t\t/* Remove all the children of the gridContainer. It will be added again */\n\t\tpiecesGrid.removeAllViews();\n\t\t\n\t\t/* Dynamically calculate the screen positions and sizes of the individual pieces\n\t * Store the starting (x,y) of all the pieces in pieceViewLocations */\n\t\tpieceViewLocations = InitDisplay.initialize(getScreenDimensions(), getRootLayoutPadding());\n\t\t\n\t\t/* Create an array of ImageViews to store the individual piece images */\n\t\tcreatePieceViews();\n\t\t\n\t\t/* Add listeners to the ImageViews that were created above */\n\t\taddImageViewListeners();\n\t}",
"private void designCompleteSeatMapUi() {\n\n //load NetworkImageView\n loadNetworkImages();\n\n labelsLocalize();\n //passenger design\n designViewForSelectedPassengerList(seatMapData.getPassengerArray());\n\n //cabin design\n designColumnBySeatMarker(seatMapData.getSeatMarkarr(), layout_columnSeatMark);\n\n designSeatByColumn(seatMapData.getSeatdetailarr());\n\n lyt_seat.setVisibility(View.VISIBLE);\n\n setLeftVerticalRow(seatMapData.getSeatdetailarr(), lytLeftVerticalRow, parentViewForRecycler, relative_seatmap_parent);\n\n\n }",
"private void initView() {\n // set layout for recycle view\n //hasFixedSize true if adapter changes cannot affect the size of the RecyclerView\n recyclerView.setHasFixedSize(true);\n // this layout can be vertical or horizontal by change the second param\n // of LinearLayoutManager, and display up to down by set the third param false\n LinearLayoutManager layoutManager = new LinearLayoutManager(this,\n LinearLayoutManager.VERTICAL, false);\n\n recyclerView.setLayoutManager(layoutManager);\n importData();\n // set adapter for recycle view\n recyclerView.setAdapter(alarmAdapter);\n }",
"@Override\n public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n\n if (viewType == TYPE_LOYALTYPOINTSORDER) {\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.loyalty_points_order_item_row, parent, false); //Inflating the layout\n\n ViewHolder vhOrder= new ViewHolder(v,viewType); //Creating ViewHolder and passing the object of type view\n\n return vhOrder; // Returning the created object\n\n //inflate your layout and pass it to view holder\n\n } else if (viewType == TYPE_CONVERTPOINTS) {\n\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.loyalty_points_convert_point_item_row,parent,false); //Inflating the layout\n\n ViewHolder vhConvert = new ViewHolder(v,viewType); //Creating ViewHolder and passing the object of type view\n\n return vhConvert; //returning the object created\n\n\n }else{\n\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.my_voucher_empty,parent,false); //Inflating the layout\n\n ViewHolder vhConvert = new ViewHolder(v,viewType); //Creating ViewHolder and passing the object of type view\n\n return vhConvert; //returning the object created\n\n }\n\n\n }",
"public void finishLayout() {\n\t\tsetTypeState(ir_type_state.layout_fixed);\n\t}",
"private void initView() {\n\n LayoutInflater inflater = getLayoutInflater();\n final int screenWidth = MyUtils.getScreenMetrics(this).widthPixels;\n final int screenHeight = MyUtils.getScreenMetrics(this).heightPixels;\n for (int i = 0; i < 3; i++) {\n ViewGroup layout = (ViewGroup) inflater.inflate(\n R.layout.content_layout, myHorizontal, false);\n layout.getLayoutParams().width = screenWidth;\n TextView textView = (TextView) layout.findViewById(R.id.title);\n textView.setText(\"page \" + (i + 1));\n layout.setBackgroundColor(Color.rgb(255 / (i + 1), 255 / (i + 1), 0));\n createList(layout);\n myHorizontal.addView(layout);\n }\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_order_sub, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_menu_prueba, container, false);\n\n btn_bottom_sheet = (Button) view.findViewById(R.id.btn_bottom_sheet);\n bottom_sheet = (LinearLayout) view.findViewById(R.id.bottom_shent);\n\n sheetBehavior = BottomSheetBehavior.from(bottom_sheet);\n\n btn_bottom_sheet.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if (sheetBehavior.getState() != BottomSheetBehavior.STATE_EXPANDED) {\n sheetBehavior.setState(BottomSheetBehavior.STATE_EXPANDED);\n btn_bottom_sheet.setText(\"Close sheet\");\n } else {\n sheetBehavior.setState(BottomSheetBehavior.STATE_COLLAPSED);\n btn_bottom_sheet.setText(\"Expand sheet\");\n }\n }\n });\n\n sheetBehavior.setBottomSheetCallback(new BottomSheetBehavior.BottomSheetCallback() {\n @Override\n public void onStateChanged(@NonNull View view, int newState) {\n switch (newState) {\n case BottomSheetBehavior.STATE_HIDDEN:\n break;\n case BottomSheetBehavior.STATE_EXPANDED: {\n btn_bottom_sheet.setText(\"Close Sheet\");\n }\n break;\n case BottomSheetBehavior.STATE_COLLAPSED: {\n btn_bottom_sheet.setText(\"Expand Sheet\");\n }\n break;\n case BottomSheetBehavior.STATE_DRAGGING:\n break;\n case BottomSheetBehavior.STATE_SETTLING:\n break;\n }\n }\n\n @Override\n public void onSlide(@NonNull View view, float v) {\n\n }\n });\n\n\n return view;\n }",
"private void showDialogOrder(int screen) {\n try {\n // Only call xml file\n// View dialogView = getLayoutInflater().inflate(R.layout.a3_order_dialog, null);\n// BottomSheetDialog dialog = new BottomSheetDialog(this);\n// dialog.setContentView(dialogView);\n// dialog.show();\n\n // Call fragment\n if (screen == 1) {\n A3_OrderDialogMore orderDialogMore = new A3_OrderDialogMore();\n orderDialogMore.show(getSupportFragmentManager(), orderDialogMore.getTag());\n } else {\n A3_OrderDialog orderDialog = new A3_OrderDialog();\n orderDialog.show(getSupportFragmentManager(), orderDialog.getTag());\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"private void initLayouts() {\n mRelativeLayout1WA = findViewById(R.id.history_layout_one_week_ago);\n mRelativeLayout6DA = findViewById(R.id.history_layout_six_days_ago);\n mRelativeLayout5DA = findViewById(R.id.history_layout_five_days_ago);\n mRelativeLayout4DA = findViewById(R.id.history_layout_four_days_ago);\n mRelativeLayout3DA = findViewById(R.id.history_layout_three_days_ago);\n mRelativeLayout2DA = findViewById(R.id.history_layout_two_days_ago);\n mRelativeLayoutY = findViewById(R.id.history_layout_yesterday);\n\n layoutsList.add(mRelativeLayoutY);\n layoutsList.add(mRelativeLayout2DA);\n layoutsList.add(mRelativeLayout3DA);\n layoutsList.add(mRelativeLayout4DA);\n layoutsList.add(mRelativeLayout5DA);\n layoutsList.add(mRelativeLayout6DA);\n layoutsList.add(mRelativeLayout1WA);\n\n }",
"private void initLayout(){\r\n\t\t\r\n\t\tlabelSalvar.setLayoutX(((pane.getWidth() - labelSalvar.getWidth()) / 2) - 332);\r\n\t\tlabelSalvar.setLayoutY(60);\r\n\t\ttxSalvar.setLayoutX(((pane.getWidth() - txSalvar.getWidth()) / 2) - 100);\r\n\t\ttxSalvar.setPrefWidth(500);\r\n\t\ttxSalvar.setLayoutY(60);\r\n\t\t\r\n\t\tlabelArquivoRTF.setLayoutX(((pane.getWidth() - labelArquivoRTF.getWidth()) / 2) - 325);\r\n\t\tlabelArquivoRTF.setLayoutY(100);\r\n\t\ttxArquivoRTF.setLayoutX(((pane.getWidth() - txArquivoRTF.getWidth()) / 2) - 100);\r\n\t\ttxArquivoRTF.setPrefWidth(500);\r\n\t\ttxArquivoRTF.setLayoutY(100);\r\n\t\t\r\n\t\tlabelLinhaInicio.setLayoutX(((pane.getWidth() - labelLinhaInicio.getWidth()) / 2) - 145);\r\n\t\tlabelLinhaInicio.setLayoutY(140);\r\n\t\ttxLinhaInicio.setLayoutX(((pane.getWidth() - txArquivoRTF.getWidth()) / 2) - 10);\r\n\t\ttxLinhaInicio.setPrefWidth(50);\r\n\t\ttxLinhaInicio.setLayoutY(140);\r\n\t\t\r\n\t\tlabelLinhaFim.setLayoutX(((pane.getWidth() - labelLinhaFim.getWidth()) / 2) + 220);\r\n\t\tlabelLinhaFim.setLayoutY(140);\r\n\t\ttxLinhaFinal.setLayoutX(((pane.getWidth() - txLinhaFinal.getWidth()) / 2) + 350);\r\n\t\ttxLinhaFinal.setPrefWidth(50);\r\n\t\ttxLinhaFinal.setLayoutY(140);\r\n\t\t\r\n\t\tbtnExecutar.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) + 80);\r\n\t\tbtnExecutar.setLayoutY(210);\r\n\t\t\r\n\t\tprogressBar.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) + 260);\r\n\t\tprogressBar.setLayoutY(280);\r\n\t\t\r\n\t\tlabelBy.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) - 350);\r\n\t\tlabelBy.setScaleY(0.5);\r\n\t\tlabelBy.setScaleX(0.5);\r\n\t\tlabelBy.setLayoutY(280);\r\n\t\t\r\n\t}",
"@SuppressWarnings(\"unused\")\r\n private void beforeMarshal (Marshaller m)\r\n {\r\n // Convert sections -> ids\r\n if (sets != null) {\r\n descSets = new ArrayList<>();\r\n\r\n for (Collection<Section> set : sets) {\r\n SectionDescSet descSet = new SectionDescSet();\r\n\r\n for (Section section : set) {\r\n descSet.sections.add(\r\n new SectionDesc(\r\n section.getId(),\r\n section.getOrientation()));\r\n }\r\n\r\n descSets.add(descSet);\r\n }\r\n }\r\n }",
"public void initLayouts() {\n\t\tJPanel p_header = (JPanel) getComponentByName(\"p_header\");\n\t\tJPanel p_container = (JPanel) getComponentByName(\"p_container\");\n\t\tJPanel p_tree = (JPanel) getComponentByName(\"p_tree\");\n\t\tJPanel p_commands = (JPanel) getComponentByName(\"p_commands\");\n\t\tJPanel p_execute = (JPanel) getComponentByName(\"p_execute\");\n\t\tJPanel p_buttons = (JPanel) getComponentByName(\"p_buttons\");\n\t\tJPanel p_view = (JPanel) getComponentByName(\"p_view\");\n\t\tJPanel p_info = (JPanel) getComponentByName(\"p_info\");\n\t\tJPanel p_chooseFile = (JPanel) getComponentByName(\"p_chooseFile\");\n\t\tJButton bt_apply = (JButton) getComponentByName(\"bt_apply\");\n\t\tJButton bt_revert = (JButton) getComponentByName(\"bt_revert\");\n\t\tJTextArea ta_header = (JTextArea) getComponentByName(\"ta_header\");\n\t\tJLabel lb_icon = (JLabel) getComponentByName(\"lb_icon\");\n\t\tJLabel lb_name = (JLabel) getComponentByName(\"lb_name\");\n\t\tJTextField tf_name = (JTextField) getComponentByName(\"tf_name\");\n\n\t\tBorder etched = BorderFactory.createEtchedBorder(EtchedBorder.LOWERED);\n\n\t\tp_header.setBorder(etched);\n\t\tp_container.setBorder(etched);\n\t\tp_commands.setBorder(etched);\n\t\t// p_execute.setBorder(etched);\n\t\t// p_view.setBorder(etched);\n\t\t// p_buttons.setBorder(etched);\n\n\t\tp_buttons.setLayout(new FlowLayout(FlowLayout.LEFT, 25, 2));\n\t\tp_chooseFile.setLayout(new FlowLayout(FlowLayout.LEFT, 6, 1));\n\t\tp_view.setLayout(new BorderLayout(0, 0));\n\t\tp_info.setLayout(null);\n\n\t\t// GroupLayout for main JFrame\n\t\t// If you want to change this, use something like netbeans or read more\n\t\t// into group layouts\n\t\tGroupLayout groupLayout = new GroupLayout(getContentPane());\n\t\tgroupLayout\n\t\t\t\t.setHorizontalGroup(groupLayout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_commands,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t225,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_execute,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t957,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_container,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t957,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_header,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t1188,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tgroupLayout\n\t\t\t\t.setVerticalGroup(groupLayout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addComponent(p_header,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, 57,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_commands,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t603,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_container,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t549,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_execute,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t48,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\n\t\tGroupLayout gl_p_container = new GroupLayout(p_container);\n\t\tgl_p_container\n\t\t\t\t.setHorizontalGroup(gl_p_container\n\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_view,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t955,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbt_apply)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbt_revert))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlb_name)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttf_name,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t893,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tgl_p_container\n\t\t\t\t.setVerticalGroup(gl_p_container\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttf_name,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lb_name))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(p_view,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t466, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(bt_revert)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(bt_apply))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap(\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)));\n\t\tp_container.setLayout(gl_p_container);\n\n\t\t// GroupLayout for p_header\n\n\t\tGroupLayout gl_p_header = new GroupLayout(p_header);\n\t\tgl_p_header.setHorizontalGroup(gl_p_header.createParallelGroup(\n\t\t\t\tAlignment.LEADING).addGroup(\n\t\t\t\tAlignment.TRAILING,\n\t\t\t\tgl_p_header\n\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(ta_header, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t1069, Short.MAX_VALUE).addGap(18)\n\t\t\t\t\t\t.addComponent(lb_icon).addGap(4)));\n\t\tgl_p_header\n\t\t\t\t.setVerticalGroup(gl_p_header\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_header\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGap(6)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_header\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tta_header,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t44,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lb_icon))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tp_header.setLayout(gl_p_header);\n\n\t\tGroupLayout gl_p_commands = new GroupLayout(p_commands);\n\t\tgl_p_commands\n\t\t\t\t.setHorizontalGroup(gl_p_commands\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_commands\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_commands\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_tree,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t211,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_buttons,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tgl_p_commands.setVerticalGroup(gl_p_commands.createParallelGroup(\n\t\t\t\tAlignment.LEADING).addGroup(\n\t\t\t\tgl_p_commands\n\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(p_buttons, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(p_tree, GroupLayout.DEFAULT_SIZE, 558,\n\t\t\t\t\t\t\t\tShort.MAX_VALUE).addContainerGap()));\n\t\tp_commands.setLayout(gl_p_commands);\n\n\t\tgetContentPane().setLayout(groupLayout);\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_current_order, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_order_detail, container, false);\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tthis.requestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\tsetContentView(R.layout.activity_orders);\n\t\tInitImageView();\n\t\tInitTextView();\n//\t\tInitViewPager();\n\t\t//这里需要明白的是,需要获取\n\t}",
"public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tinvoiceEClass = createEClass(INVOICE);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__INVOICE_ID);\n\t\tcreateEReference(invoiceEClass, INVOICE__BILLING_ACCOUNT);\n\t\tcreateEReference(invoiceEClass, INVOICE__CONTACT_MECH);\n\t\tcreateEReference(invoiceEClass, INVOICE__CURRENCY_UOM);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__DESCRIPTION);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__DUE_DATE);\n\t\tcreateEReference(invoiceEClass, INVOICE__INVOICE_ATTRIBUTES);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__INVOICE_DATE);\n\t\tcreateEReference(invoiceEClass, INVOICE__INVOICE_ITEMS);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__INVOICE_MESSAGE);\n\t\tcreateEReference(invoiceEClass, INVOICE__INVOICE_NOTES);\n\t\tcreateEReference(invoiceEClass, INVOICE__INVOICE_STATUSES);\n\t\tcreateEReference(invoiceEClass, INVOICE__INVOICE_TYPE);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__PAID_DATE);\n\t\tcreateEReference(invoiceEClass, INVOICE__PARTY);\n\t\tcreateEReference(invoiceEClass, INVOICE__PARTY_ID_FROM);\n\t\tcreateEReference(invoiceEClass, INVOICE__RECURRENCE_INFO);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__REFERENCE_NUMBER);\n\t\tcreateEReference(invoiceEClass, INVOICE__ROLE_TYPE);\n\t\tcreateEReference(invoiceEClass, INVOICE__STATUS);\n\n\t\tinvoiceAttributeEClass = createEClass(INVOICE_ATTRIBUTE);\n\t\tcreateEReference(invoiceAttributeEClass, INVOICE_ATTRIBUTE__INVOICE);\n\t\tcreateEAttribute(invoiceAttributeEClass, INVOICE_ATTRIBUTE__ATTR_NAME);\n\t\tcreateEAttribute(invoiceAttributeEClass, INVOICE_ATTRIBUTE__ATTR_DESCRIPTION);\n\t\tcreateEAttribute(invoiceAttributeEClass, INVOICE_ATTRIBUTE__ATTR_VALUE);\n\n\t\tinvoiceContactMechEClass = createEClass(INVOICE_CONTACT_MECH);\n\t\tcreateEReference(invoiceContactMechEClass, INVOICE_CONTACT_MECH__INVOICE);\n\t\tcreateEReference(invoiceContactMechEClass, INVOICE_CONTACT_MECH__CONTACT_MECH);\n\t\tcreateEReference(invoiceContactMechEClass, INVOICE_CONTACT_MECH__CONTACT_MECH_PURPOSE_TYPE);\n\n\t\tinvoiceContentEClass = createEClass(INVOICE_CONTENT);\n\t\tcreateEReference(invoiceContentEClass, INVOICE_CONTENT__INVOICE);\n\t\tcreateEReference(invoiceContentEClass, INVOICE_CONTENT__CONTENT);\n\t\tcreateEReference(invoiceContentEClass, INVOICE_CONTENT__INVOICE_CONTENT_TYPE);\n\t\tcreateEAttribute(invoiceContentEClass, INVOICE_CONTENT__FROM_DATE);\n\t\tcreateEAttribute(invoiceContentEClass, INVOICE_CONTENT__THRU_DATE);\n\n\t\tinvoiceContentTypeEClass = createEClass(INVOICE_CONTENT_TYPE);\n\t\tcreateEAttribute(invoiceContentTypeEClass, INVOICE_CONTENT_TYPE__INVOICE_CONTENT_TYPE_ID);\n\t\tcreateEAttribute(invoiceContentTypeEClass, INVOICE_CONTENT_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(invoiceContentTypeEClass, INVOICE_CONTENT_TYPE__HAS_TABLE);\n\t\tcreateEReference(invoiceContentTypeEClass, INVOICE_CONTENT_TYPE__PARENT_TYPE);\n\n\t\tinvoiceItemEClass = createEClass(INVOICE_ITEM);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__INVOICE);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__INVOICE_ITEM_SEQ_ID);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__AMOUNT);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__DESCRIPTION);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__INVENTORY_ITEM);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__INVOICE_ITEM_TYPE);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__OVERRIDE_GL_ACCOUNT);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__OVERRIDE_ORG_PARTY);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__PARENT_INVOICE_ID);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__PARENT_INVOICE_ITEM_SEQ_ID);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__PRODUCT);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__PRODUCT_FEATURE);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__QUANTITY);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__SALES_OPPORTUNITY);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__TAX_AUTH_GEO);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__TAX_AUTH_PARTY);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__TAX_AUTHORITY_RATE_SEQ);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__TAXABLE_FLAG);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__UOM);\n\n\t\tinvoiceItemAssocEClass = createEClass(INVOICE_ITEM_ASSOC);\n\t\tcreateEReference(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__INVOICE_ITEM_ASSOC_TYPE);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__FROM_DATE);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__INVOICE_ID_FROM);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__INVOICE_ID_TO);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__INVOICE_ITEM_SEQ_ID_FROM);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__INVOICE_ITEM_SEQ_ID_TO);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__AMOUNT);\n\t\tcreateEReference(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__PARTY_ID_FROM);\n\t\tcreateEReference(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__PARTY_ID_TO);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__QUANTITY);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__THRU_DATE);\n\n\t\tinvoiceItemAssocTypeEClass = createEClass(INVOICE_ITEM_ASSOC_TYPE);\n\t\tcreateEAttribute(invoiceItemAssocTypeEClass, INVOICE_ITEM_ASSOC_TYPE__INVOICE_ITEM_ASSOC_TYPE_ID);\n\t\tcreateEAttribute(invoiceItemAssocTypeEClass, INVOICE_ITEM_ASSOC_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(invoiceItemAssocTypeEClass, INVOICE_ITEM_ASSOC_TYPE__HAS_TABLE);\n\t\tcreateEReference(invoiceItemAssocTypeEClass, INVOICE_ITEM_ASSOC_TYPE__PARENT_TYPE);\n\n\t\tinvoiceItemAttributeEClass = createEClass(INVOICE_ITEM_ATTRIBUTE);\n\t\tcreateEAttribute(invoiceItemAttributeEClass, INVOICE_ITEM_ATTRIBUTE__ATTR_NAME);\n\t\tcreateEAttribute(invoiceItemAttributeEClass, INVOICE_ITEM_ATTRIBUTE__INVOICE_ID);\n\t\tcreateEAttribute(invoiceItemAttributeEClass, INVOICE_ITEM_ATTRIBUTE__INVOICE_ITEM_SEQ_ID);\n\t\tcreateEAttribute(invoiceItemAttributeEClass, INVOICE_ITEM_ATTRIBUTE__ATTR_DESCRIPTION);\n\t\tcreateEAttribute(invoiceItemAttributeEClass, INVOICE_ITEM_ATTRIBUTE__ATTR_VALUE);\n\n\t\tinvoiceItemTypeEClass = createEClass(INVOICE_ITEM_TYPE);\n\t\tcreateEAttribute(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__INVOICE_ITEM_TYPE_ID);\n\t\tcreateEReference(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__DEFAULT_GL_ACCOUNT);\n\t\tcreateEAttribute(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__HAS_TABLE);\n\t\tcreateEReference(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__INVOICE_ITEM_TYPE_ATTRS);\n\t\tcreateEReference(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__INVOICE_ITEM_TYPE_GL_ACCOUNTS);\n\t\tcreateEReference(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__PARENT_TYPE);\n\n\t\tinvoiceItemTypeAttrEClass = createEClass(INVOICE_ITEM_TYPE_ATTR);\n\t\tcreateEReference(invoiceItemTypeAttrEClass, INVOICE_ITEM_TYPE_ATTR__INVOICE_ITEM_TYPE);\n\t\tcreateEAttribute(invoiceItemTypeAttrEClass, INVOICE_ITEM_TYPE_ATTR__ATTR_NAME);\n\t\tcreateEAttribute(invoiceItemTypeAttrEClass, INVOICE_ITEM_TYPE_ATTR__DESCRIPTION);\n\n\t\tinvoiceItemTypeGlAccountEClass = createEClass(INVOICE_ITEM_TYPE_GL_ACCOUNT);\n\t\tcreateEReference(invoiceItemTypeGlAccountEClass, INVOICE_ITEM_TYPE_GL_ACCOUNT__INVOICE_ITEM_TYPE);\n\t\tcreateEReference(invoiceItemTypeGlAccountEClass, INVOICE_ITEM_TYPE_GL_ACCOUNT__ORGANIZATION_PARTY);\n\t\tcreateEReference(invoiceItemTypeGlAccountEClass, INVOICE_ITEM_TYPE_GL_ACCOUNT__GL_ACCOUNT);\n\n\t\tinvoiceItemTypeMapEClass = createEClass(INVOICE_ITEM_TYPE_MAP);\n\t\tcreateEReference(invoiceItemTypeMapEClass, INVOICE_ITEM_TYPE_MAP__INVOICE_TYPE);\n\t\tcreateEAttribute(invoiceItemTypeMapEClass, INVOICE_ITEM_TYPE_MAP__INVOICE_ITEM_MAP_KEY);\n\t\tcreateEReference(invoiceItemTypeMapEClass, INVOICE_ITEM_TYPE_MAP__INVOICE_ITEM_TYPE);\n\n\t\tinvoiceNoteEClass = createEClass(INVOICE_NOTE);\n\t\tcreateEReference(invoiceNoteEClass, INVOICE_NOTE__INVOICE);\n\n\t\tinvoiceRoleEClass = createEClass(INVOICE_ROLE);\n\t\tcreateEReference(invoiceRoleEClass, INVOICE_ROLE__INVOICE);\n\t\tcreateEReference(invoiceRoleEClass, INVOICE_ROLE__PARTY);\n\t\tcreateEReference(invoiceRoleEClass, INVOICE_ROLE__ROLE_TYPE);\n\t\tcreateEAttribute(invoiceRoleEClass, INVOICE_ROLE__DATETIME_PERFORMED);\n\t\tcreateEAttribute(invoiceRoleEClass, INVOICE_ROLE__PERCENTAGE);\n\n\t\tinvoiceStatusEClass = createEClass(INVOICE_STATUS);\n\t\tcreateEReference(invoiceStatusEClass, INVOICE_STATUS__STATUS);\n\t\tcreateEReference(invoiceStatusEClass, INVOICE_STATUS__INVOICE);\n\t\tcreateEAttribute(invoiceStatusEClass, INVOICE_STATUS__STATUS_DATE);\n\t\tcreateEReference(invoiceStatusEClass, INVOICE_STATUS__CHANGE_BY_USER_LOGIN);\n\n\t\tinvoiceTermEClass = createEClass(INVOICE_TERM);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__INVOICE_TERM_ID);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__DESCRIPTION);\n\t\tcreateEReference(invoiceTermEClass, INVOICE_TERM__INVOICE);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__INVOICE_ITEM_SEQ_ID);\n\t\tcreateEReference(invoiceTermEClass, INVOICE_TERM__INVOICE_TERM_ATTRIBUTES);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__TERM_DAYS);\n\t\tcreateEReference(invoiceTermEClass, INVOICE_TERM__TERM_TYPE);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__TERM_VALUE);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__TEXT_VALUE);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__UOM_ID);\n\n\t\tinvoiceTermAttributeEClass = createEClass(INVOICE_TERM_ATTRIBUTE);\n\t\tcreateEReference(invoiceTermAttributeEClass, INVOICE_TERM_ATTRIBUTE__INVOICE_TERM);\n\t\tcreateEAttribute(invoiceTermAttributeEClass, INVOICE_TERM_ATTRIBUTE__ATTR_NAME);\n\t\tcreateEAttribute(invoiceTermAttributeEClass, INVOICE_TERM_ATTRIBUTE__ATTR_DESCRIPTION);\n\t\tcreateEAttribute(invoiceTermAttributeEClass, INVOICE_TERM_ATTRIBUTE__ATTR_VALUE);\n\n\t\tinvoiceTypeEClass = createEClass(INVOICE_TYPE);\n\t\tcreateEAttribute(invoiceTypeEClass, INVOICE_TYPE__INVOICE_TYPE_ID);\n\t\tcreateEAttribute(invoiceTypeEClass, INVOICE_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(invoiceTypeEClass, INVOICE_TYPE__HAS_TABLE);\n\t\tcreateEReference(invoiceTypeEClass, INVOICE_TYPE__INVOICE_TYPE_ATTRS);\n\t\tcreateEReference(invoiceTypeEClass, INVOICE_TYPE__PARENT_TYPE);\n\n\t\tinvoiceTypeAttrEClass = createEClass(INVOICE_TYPE_ATTR);\n\t\tcreateEReference(invoiceTypeAttrEClass, INVOICE_TYPE_ATTR__INVOICE_TYPE);\n\t\tcreateEAttribute(invoiceTypeAttrEClass, INVOICE_TYPE_ATTR__ATTR_NAME);\n\t\tcreateEAttribute(invoiceTypeAttrEClass, INVOICE_TYPE_ATTR__DESCRIPTION);\n\t}",
"@Override\n\tpublic void reorganize() {\n\n\t}",
"public void setLayout() {\n\t\tpersonenListe.getItems().addAll(deck.getPersonenOrdered());\n\t\tpersonenListe.setValue(\"Täter\");\n\t\twaffenListe.getItems().addAll(deck.getWaffenOrdered());\n\t\twaffenListe.setValue(\"Waffe\");\n\t\t// zimmerListe.getItems().addAll(deck.getZimmerOrdered());\n\t\tzimmerListe.setValue(\"Raum\");\n\n\t\tanklage.setMinSize(80, 120);\n\t\tanklage.setMaxSize(80, 120);\n\t\tanklage.setTextFill(Color.BLACK);\n\t\tanklage.setStyle(\"-fx-background-color: #787878;\");\n\n\t\twurfel.setMinSize(80, 120);\n\t\twurfel.setMaxSize(80, 120);\n\t\twurfel.setTextFill(Color.BLACK);\n\t\twurfel.setStyle(\"-fx-background-color: #787878;\");\n\n\t\tgang.setMinSize(80, 120);\n\t\tgang.setMaxSize(80, 120);\n\t\tgang.setTextFill(Color.BLACK);\n\t\tgang.setStyle(\"-fx-background-color: #787878;\");\n\n\t\ttop = new HBox();\n\t\ttop.setSpacing(1);\n\t\ttop.setAlignment(Pos.CENTER);\n\n\t\tbuttons = new HBox();\n\t\tbuttons.setSpacing(20);\n\t\tbuttons.setAlignment(Pos.CENTER);\n\t\tbuttons.getChildren().addAll(anklage, wurfel, gang);\n\n\t\tbottom = new HBox();\n\t\tbottom.setSpacing(150);\n\t\tbottom.setAlignment(Pos.CENTER);\n\t\tbottom.getChildren().addAll(close);\n\n\t\tfenster = new BorderPane();\n\t\tfenster.setStyle(\"-fx-background-image: url('media/ZugFensterResized.png');\");\n\t\tfenster.setTop(top);\n\t\tfenster.setCenter(buttons);\n\t\tfenster.setBottom(bottom);\n\t}",
"public final void onFinishInflate() {\n super.onFinishInflate();\n TextView textView = (TextView) findViewById(C0126R.C0129id.title);\n this.f110062a = textView;\n C1280ps.m19893a(textView, \"excludeViewFromChangeBounds\");\n this.f110062a.setTag(C0126R.C0129id.summary_expander_transition_name, \"summaryField\");\n TextView textView2 = (TextView) findViewById(C0126R.C0129id.subtitle);\n this.f110063b = textView2;\n textView2.setTag(C0126R.C0129id.summary_expander_transition_name, \"summaryField\");\n LinearLayout linearLayout = (LinearLayout) findViewById(C0126R.C0129id.collapsed_image_container);\n this.f110064c = linearLayout;\n linearLayout.setTag(C0126R.C0129id.summary_expander_transition_name, \"summaryField\");\n LinearLayout linearLayout2 = (LinearLayout) findViewById(C0126R.C0129id.expanded_image_container);\n this.f110065d = linearLayout2;\n linearLayout2.setTag(C0126R.C0129id.summary_expander_transition_name, \"summaryField\");\n this.f110066e = (ImageView) findViewById(C0126R.C0129id.expand_collapse_icon);\n ImageWithCaptionView imageWithCaptionView = (ImageWithCaptionView) findViewById(C0126R.C0129id.tooltip_view);\n this.f110068g = imageWithCaptionView;\n imageWithCaptionView.setDefaultImageResId(bkfr.m105543a(getContext(), (int) ErrorInfo.TYPE_SDU_MEMORY_FULL, -1));\n this.f110068g.setOnClickListener(this);\n }",
"public int getViewOrder() {\n return viewOrder;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_export_contacts, container, false);\n main_view = rootView;\n bOpenFolder = (Button) main_view.findViewById(R.id.open_folder);\n bExportContact = (Button) main_view.findViewById(R.id.export_contacts);\n bExportCallLogs = (Button) main_view.findViewById(R.id.export_callLogs);\n bCloudExport = (Button) main_view.findViewById(R.id.cloud_export);\n // free version\n bCloudExport.setEnabled(false);\n tFilePath = (TextView) main_view.findViewById(R.id.path);\n contactsArrayList = BaseActivity.contactArrayList;\n callLogsArrayList = BaseActivity.callLogsArrayList;\n if (!isExternalStorageAvailable() || isExternalStorageReadOnly()) {\n bExportContact.setEnabled(false);\n bExportCallLogs.setEnabled(false);\n bCloudExport.setEnabled(false);\n }\n setUpOnClickListeners();\n return rootView;\n }",
"static public View inflateLayout(int Presid,View PlayoutView) //~1410I~\r\n { //~1410I~\r\n if (Dump.Y) Dump.println(\"AView:inflateLayout2 res=\"+Integer.toHexString(Presid)+\",view=\"+PlayoutView.toString());//~@@@@R~\r\n \tAG.setCurrentView(Presid,PlayoutView); //~1410I~\r\n return PlayoutView; //~1410I~\r\n }",
"Board createLayout();",
"public void loadLayout() {\n\t\ttry {\n\t\t\tsetLayout(FileManager.loadLayout(fc3.getSelectedFile().toString()));\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Failed To Load Layout\");\n\t\t}\n\t}",
"public void initializePackageContents() {\r\n if (isInitialized) return;\r\n isInitialized = true;\r\n\r\n // Initialize package\r\n setName(eNAME);\r\n setNsPrefix(eNS_PREFIX);\r\n setNsURI(eNS_URI);\r\n\r\n // Obtain other dependent packages\r\n KGraphPackage theKGraphPackage = (KGraphPackage)EPackage.Registry.INSTANCE.getEPackage(KGraphPackage.eNS_URI);\r\n\r\n // Create type parameters\r\n\r\n // Set bounds for type parameters\r\n\r\n // Add supertypes to classes\r\n kShapeLayoutEClass.getESuperTypes().add(this.getKLayoutData());\r\n kEdgeLayoutEClass.getESuperTypes().add(this.getKLayoutData());\r\n kLayoutDataEClass.getESuperTypes().add(theKGraphPackage.getKGraphData());\r\n kIdentifierEClass.getESuperTypes().add(theKGraphPackage.getKGraphData());\r\n\r\n // Initialize classes and features; add operations and parameters\r\n initEClass(kShapeLayoutEClass, KShapeLayout.class, \"KShapeLayout\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getKShapeLayout_Xpos(), ecorePackage.getEFloat(), \"xpos\", \"0.0f\", 0, 1, KShapeLayout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getKShapeLayout_Ypos(), ecorePackage.getEFloat(), \"ypos\", \"0.0f\", 0, 1, KShapeLayout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getKShapeLayout_Width(), ecorePackage.getEFloat(), \"width\", \"0.0f\", 0, 1, KShapeLayout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getKShapeLayout_Height(), ecorePackage.getEFloat(), \"height\", \"0.0f\", 0, 1, KShapeLayout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getKShapeLayout_Insets(), this.getKInsets(), null, \"insets\", null, 0, 1, KShapeLayout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n EOperation op = addEOperation(kShapeLayoutEClass, null, \"setPos\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n addEParameter(op, ecorePackage.getEFloat(), \"x\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n addEParameter(op, ecorePackage.getEFloat(), \"y\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n op = addEOperation(kShapeLayoutEClass, null, \"applyVector\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n addEParameter(op, this.getKVector(), \"pos\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n addEOperation(kShapeLayoutEClass, this.getKVector(), \"createVector\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n op = addEOperation(kShapeLayoutEClass, null, \"setSize\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n addEParameter(op, ecorePackage.getEFloat(), \"width\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n addEParameter(op, ecorePackage.getEFloat(), \"height\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n initEClass(kEdgeLayoutEClass, KEdgeLayout.class, \"KEdgeLayout\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEReference(getKEdgeLayout_BendPoints(), this.getKPoint(), null, \"bendPoints\", null, 0, -1, KEdgeLayout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getKEdgeLayout_SourcePoint(), this.getKPoint(), null, \"sourcePoint\", null, 1, 1, KEdgeLayout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getKEdgeLayout_TargetPoint(), this.getKPoint(), null, \"targetPoint\", null, 1, 1, KEdgeLayout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n op = addEOperation(kEdgeLayoutEClass, null, \"applyVectorChain\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n addEParameter(op, this.getKVectorChain(), \"points\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n addEOperation(kEdgeLayoutEClass, this.getKVectorChain(), \"createVectorChain\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n initEClass(kLayoutDataEClass, KLayoutData.class, \"KLayoutData\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n addEOperation(kLayoutDataEClass, ecorePackage.getEBoolean(), \"isModified\", 1, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n addEOperation(kLayoutDataEClass, null, \"resetModificationFlag\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n initEClass(kPointEClass, KPoint.class, \"KPoint\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getKPoint_X(), ecorePackage.getEFloat(), \"x\", \"0.0f\", 0, 1, KPoint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getKPoint_Y(), ecorePackage.getEFloat(), \"y\", \"0.0f\", 0, 1, KPoint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n op = addEOperation(kPointEClass, null, \"setPos\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n addEParameter(op, ecorePackage.getEFloat(), \"x\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n addEParameter(op, ecorePackage.getEFloat(), \"y\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n op = addEOperation(kPointEClass, null, \"applyVector\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n addEParameter(op, this.getKVector(), \"pos\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n addEOperation(kPointEClass, this.getKVector(), \"createVector\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n initEClass(kInsetsEClass, KInsets.class, \"KInsets\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getKInsets_Top(), ecorePackage.getEFloat(), \"top\", null, 0, 1, KInsets.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getKInsets_Bottom(), ecorePackage.getEFloat(), \"bottom\", null, 0, 1, KInsets.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getKInsets_Left(), ecorePackage.getEFloat(), \"left\", null, 0, 1, KInsets.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getKInsets_Right(), ecorePackage.getEFloat(), \"right\", null, 0, 1, KInsets.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(kIdentifierEClass, KIdentifier.class, \"KIdentifier\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getKIdentifier_Id(), ecorePackage.getEString(), \"id\", null, 1, 1, KIdentifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(kVectorEClass, KVector.class, \"KVector\", IS_ABSTRACT, IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getKVector_X(), ecorePackage.getEDouble(), \"x\", null, 0, 1, KVector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getKVector_Y(), ecorePackage.getEDouble(), \"y\", null, 0, 1, KVector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(kVectorChainEClass, KVectorChain.class, \"KVectorChain\", IS_ABSTRACT, IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS);\r\n\r\n // Create resource\r\n createResource(eNS_URI);\r\n }",
"private void init(Context context) {\n inflate(context, R.layout.bottom_sheet_layout, this);\n\n /*Components*/\n tvHeader = findViewById(R.id.tv_message);\n loadingAnimationView = findViewById(R.id.error_animation_view);\n errorLayout = findViewById(R.id.error_layout);\n\n /*Sheet setup*/\n sheetHeader = findViewById(R.id.sheet_header);\n sheetLayout = findViewById(R.id.sheet_layout);\n bottomSheetBehavior = BottomSheetBehavior.from(sheetLayout);\n\n /*Recycler setup*/\n recyclerView = findViewById(R.id.rv_vehicles);\n llm = new LinearLayoutManager(getContext(), LinearLayoutManager.VERTICAL, false);\n recyclerView.setLayoutManager(llm);\n adapter = new VehiclesAdapter(context, new ArrayList<>());\n recyclerView.setAdapter(adapter);\n }",
"private VHorizontalLayout initLockInformationLayout() {\r\n VHorizontalLayout layout = new VHorizontalLayout();\r\n if(report.isLocked()) {\r\n Utils.removeAllThemes(layout);\r\n layout.getThemeList().add(ThemeAttribute.LOCKED);\r\n layout.add(getTranslation(\"reportView.reportLocked.label\", report.getLockOwner().getName() + \" \" +report.getLockOwner().getLastname()));\r\n }\r\n return layout;\r\n }",
"public void createPackageContents() {\r\n\t\tif (isCreated) return;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\tgemmaEClass = createEClass(GEMMA);\r\n\t\tcreateEReference(gemmaEClass, GEMMA__MACRO_OMS);\r\n\t\tcreateEReference(gemmaEClass, GEMMA__TRANSICIONES);\r\n\t\tcreateEReference(gemmaEClass, GEMMA__VARIABLES_GEMMA);\r\n\r\n\t\tmacroOmEClass = createEClass(MACRO_OM);\r\n\t\tcreateEAttribute(macroOmEClass, MACRO_OM__NAME);\r\n\t\tcreateEAttribute(macroOmEClass, MACRO_OM__TIPO);\r\n\t\tcreateEReference(macroOmEClass, MACRO_OM__OMS);\r\n\r\n\t\tomEClass = createEClass(OM);\r\n\t\tcreateEAttribute(omEClass, OM__NAME);\r\n\t\tcreateEAttribute(omEClass, OM__TIPO);\r\n\t\tcreateEAttribute(omEClass, OM__ES_OM_RAIZ);\r\n\t\tcreateEReference(omEClass, OM__VARIABLES_OM);\r\n\t\tcreateEAttribute(omEClass, OM__ES_VISIBLE);\r\n\r\n\t\ttrasicionEntreOmOmEClass = createEClass(TRASICION_ENTRE_OM_OM);\r\n\t\tcreateEReference(trasicionEntreOmOmEClass, TRASICION_ENTRE_OM_OM__ORIGEN);\r\n\t\tcreateEReference(trasicionEntreOmOmEClass, TRASICION_ENTRE_OM_OM__DESTINO);\r\n\r\n\t\ttransicionEntreMacroOmOmEClass = createEClass(TRANSICION_ENTRE_MACRO_OM_OM);\r\n\t\tcreateEReference(transicionEntreMacroOmOmEClass, TRANSICION_ENTRE_MACRO_OM_OM__ORIGEN);\r\n\t\tcreateEReference(transicionEntreMacroOmOmEClass, TRANSICION_ENTRE_MACRO_OM_OM__DESTINO);\r\n\r\n\t\texpresionBinariaEClass = createEClass(EXPRESION_BINARIA);\r\n\t\tcreateEReference(expresionBinariaEClass, EXPRESION_BINARIA__EXPRESION_IZQUIERDA);\r\n\t\tcreateEReference(expresionBinariaEClass, EXPRESION_BINARIA__EXPRESION_DERECHA);\r\n\t\tcreateEAttribute(expresionBinariaEClass, EXPRESION_BINARIA__OPERADOR);\r\n\r\n\t\telementoExpresionEClass = createEClass(ELEMENTO_EXPRESION);\r\n\r\n\t\tvariableOmEClass = createEClass(VARIABLE_OM);\r\n\t\tcreateEAttribute(variableOmEClass, VARIABLE_OM__NAME);\r\n\r\n\t\ttransicionEClass = createEClass(TRANSICION);\r\n\t\tcreateEAttribute(transicionEClass, TRANSICION__NAME);\r\n\t\tcreateEReference(transicionEClass, TRANSICION__ELEMENTO_EXPRESION);\r\n\r\n\t\tvariableGemmaEClass = createEClass(VARIABLE_GEMMA);\r\n\t\tcreateEAttribute(variableGemmaEClass, VARIABLE_GEMMA__NAME);\r\n\r\n\t\trefVariableGemmaEClass = createEClass(REF_VARIABLE_GEMMA);\r\n\t\tcreateEReference(refVariableGemmaEClass, REF_VARIABLE_GEMMA__VARIABLE_GEMMA);\r\n\t\tcreateEAttribute(refVariableGemmaEClass, REF_VARIABLE_GEMMA__NIVEL_DE_ESCRITURA);\r\n\r\n\t\texpresionNotEClass = createEClass(EXPRESION_NOT);\r\n\t\tcreateEReference(expresionNotEClass, EXPRESION_NOT__ELEMENTO_EXPRESION);\r\n\r\n\t\trefVariableOmEClass = createEClass(REF_VARIABLE_OM);\r\n\t\tcreateEReference(refVariableOmEClass, REF_VARIABLE_OM__VARIABLE_OM);\r\n\r\n\t\texpresionConjuntaEClass = createEClass(EXPRESION_CONJUNTA);\r\n\t\tcreateEReference(expresionConjuntaEClass, EXPRESION_CONJUNTA__ELEMENTO_EXPRESION);\r\n\r\n\t\t// Create enums\r\n\t\ttipoOmEEnum = createEEnum(TIPO_OM);\r\n\t\ttipoMacroOmEEnum = createEEnum(TIPO_MACRO_OM);\r\n\t\ttipoOperadorEEnum = createEEnum(TIPO_OPERADOR);\r\n\t\tnivelDeEscrituraEEnum = createEEnum(NIVEL_DE_ESCRITURA);\r\n\t}",
"private void buildLayout() {\n HorizontalLayout actions = new HorizontalLayout(filter, newPart);\n actions.setWidth(\"100%\"); //what portion of screen to take\n filter.setWidth(\"100%\"); //what portion filter textbox takes\n actions.setExpandRatio(filter, 1); //expand (leaves no gaps)\n\n VerticalLayout left = new VerticalLayout(actions, partList);\n left.setSizeFull();\n partList.setSizeFull();\n left.setExpandRatio(partList, 1);\n\n HorizontalLayout mainLayout = new HorizontalLayout(left, partForm);\n mainLayout.setSizeFull();\n mainLayout.setExpandRatio(left, 1);\n\n // Split and allow resizing\n setContent(mainLayout);\n }",
"@Override\n public OrderViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n LayoutInflater inflater = LayoutInflater.from(mCtx);\n View view = inflater.inflate(R.layout.newroworders, null);\n return new OrderViewHolder(view);\n }",
"public orderView() {\n initComponents();\n }",
"public void inflate(){\n\t\tInflateTextContent();\n\t\tif(tempData.get(\"Media_Type\").equals(\"1\")){\n\t\t\tgenerateMediaView();\n\t\t}else if(tempData.get(\"Media_Type\").equals(\"2\")){\n\t\t\tprocessURL(2);\n\t\t}else if(tempData.get(\"Media_Type\").equals(\"3\")){\n\t\t\tprocessURL(3);\n\t\t}\t\n\t}",
"public void createPackageContents() {\r\n\t\tif (isCreated) return;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\tbankEClass = createEClass(BANK);\r\n\t\tcreateEReference(bankEClass, BANK__MANAGERS);\r\n\t\tcreateEReference(bankEClass, BANK__ACCOUNTS);\r\n\t\tcreateEReference(bankEClass, BANK__CLIENTS);\r\n\r\n\t\tclientEClass = createEClass(CLIENT);\r\n\t\tcreateEReference(clientEClass, CLIENT__MANAGER);\r\n\t\tcreateEReference(clientEClass, CLIENT__ACCOUNTS);\r\n\t\tcreateEAttribute(clientEClass, CLIENT__NAME);\r\n\t\tcreateEReference(clientEClass, CLIENT__SPONSORSHIPS);\r\n\t\tcreateEAttribute(clientEClass, CLIENT__CAPACITY);\r\n\r\n\t\tmanagerEClass = createEClass(MANAGER);\r\n\t\tcreateEReference(managerEClass, MANAGER__CLIENTS);\r\n\t\tcreateEAttribute(managerEClass, MANAGER__NAME);\r\n\r\n\t\taccountEClass = createEClass(ACCOUNT);\r\n\t\tcreateEReference(accountEClass, ACCOUNT__OWNERS);\r\n\t\tcreateEAttribute(accountEClass, ACCOUNT__CREDIT);\r\n\t\tcreateEAttribute(accountEClass, ACCOUNT__OVERDRAFT);\r\n\t\tcreateEReference(accountEClass, ACCOUNT__CARDS);\r\n\r\n\t\tcardEClass = createEClass(CARD);\r\n\t\tcreateEAttribute(cardEClass, CARD__NUMBER);\r\n\t\tcreateEAttribute(cardEClass, CARD__TYPE);\r\n\r\n\t\t// Create enums\r\n\t\tcardTypeEEnum = createEEnum(CARD_TYPE);\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n intialFragment();\n // return inflater.inflate(R.layout.fragment_old_ordered, container, false);\n oldOrderedBinding = DataBindingUtil.inflate(\n inflater, R.layout.fragment_orederd_recycler, container, false);\n View view = oldOrderedBinding.getRoot();\n\n return view;\n }",
"protected void createContents() {\n\n\t}",
"@JsOverlay\n public final void layout() {\n Dagre.get().layout(this);\n }",
"public void createPackageContents() {\r\n\t\tif (isCreated)\r\n\t\t\treturn;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\tnamedElementEClass = createEClass(NAMED_ELEMENT);\r\n\t\tcreateEAttribute(namedElementEClass, NAMED_ELEMENT__NAME);\r\n\r\n\t\tcomDiagEClass = createEClass(COM_DIAG);\r\n\t\tcreateEReference(comDiagEClass, COM_DIAG__ELEMENTS);\r\n\t\tcreateEAttribute(comDiagEClass, COM_DIAG__LEVEL);\r\n\r\n\t\tcomDiagElementEClass = createEClass(COM_DIAG_ELEMENT);\r\n\t\tcreateEReference(comDiagElementEClass, COM_DIAG_ELEMENT__GRAPH);\r\n\r\n\t\tlifelineEClass = createEClass(LIFELINE);\r\n\t\tcreateEAttribute(lifelineEClass, LIFELINE__NUMBER);\r\n\r\n\t\tmessageEClass = createEClass(MESSAGE);\r\n\t\tcreateEAttribute(messageEClass, MESSAGE__OCCURENCE);\r\n\t\tcreateEReference(messageEClass, MESSAGE__SOURCE);\r\n\t\tcreateEReference(messageEClass, MESSAGE__TARGET);\r\n\t}",
"private void unpack() {\n if (!isInPackedState)\n return;\n try {\n ByteArrayInputStream bs = new ByteArrayInputStream(data);\n DataInputStream dis = new DataInputStream(bs);\n line_number_table_length = (dis.readUnsignedShort());\n line_number_table = new LineNumber[line_number_table_length];\n for (int i = 0; i < line_number_table_length; i++) line_number_table[i] = new LineNumber(dis);\n dis.close();\n // throw it away now\n data = null;\n } catch (IOException e) {\n throw new RuntimeException(\"Unpacking of LineNumberTable attribute failed\");\n }\n isInPackedState = false;\n }",
"public void createInitialLayout(IPageLayout layout) {\n \n\t}",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n fragmentOrderBinding = FragmentOrderBinding.inflate(inflater, container, false);\n return fragmentOrderBinding.getRoot();\n }",
"@Override\n\tpublic void placeOrder() {\n\t\t\n\t}",
"private View createDarkCell(){\n return LayoutInflater.from(this.context).inflate(R.layout.back, this.tableRoot, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View root=inflater.inflate(R.layout.fragment_order_view, container, false);\n ButterKnife.bind(this,root);\n mProdcut= Parcels.unwrap(getArguments().getParcelable(\"product\"));\n getActivity().setTitle(root.getContext().getString(R.string.order_list));\n setupOrderView();\n return root;\n }",
"public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tstateEClass = createEClass(STATE);\n\t\tcreateEAttribute(stateEClass, STATE__NAME);\n\t\tcreateEAttribute(stateEClass, STATE__INVARIANT);\n\t\tcreateEAttribute(stateEClass, STATE__INITIAL);\n\t\tcreateEAttribute(stateEClass, STATE__URGENT);\n\t\tcreateEAttribute(stateEClass, STATE__COMMITTED);\n\n\t\tconnectorEClass = createEClass(CONNECTOR);\n\t\tcreateEAttribute(connectorEClass, CONNECTOR__NAME);\n\t\tcreateEReference(connectorEClass, CONNECTOR__DIAGRAM);\n\n\t\tdiagramEClass = createEClass(DIAGRAM);\n\t\tcreateEAttribute(diagramEClass, DIAGRAM__NAME);\n\t\tcreateEReference(diagramEClass, DIAGRAM__CONNECTORS);\n\t\tcreateEReference(diagramEClass, DIAGRAM__STATES);\n\t\tcreateEReference(diagramEClass, DIAGRAM__SUBDIAGRAMS);\n\t\tcreateEReference(diagramEClass, DIAGRAM__EDGES);\n\t\tcreateEAttribute(diagramEClass, DIAGRAM__IS_PARALLEL);\n\n\t\tedgeEClass = createEClass(EDGE);\n\t\tcreateEReference(edgeEClass, EDGE__START);\n\t\tcreateEReference(edgeEClass, EDGE__END);\n\t\tcreateEReference(edgeEClass, EDGE__EREFERENCE0);\n\t\tcreateEAttribute(edgeEClass, EDGE__SELECT);\n\t\tcreateEAttribute(edgeEClass, EDGE__GUARD);\n\t\tcreateEAttribute(edgeEClass, EDGE__SYNC);\n\t\tcreateEAttribute(edgeEClass, EDGE__UPDATE);\n\t\tcreateEAttribute(edgeEClass, EDGE__COMMENTS);\n\n\t\tendPointEClass = createEClass(END_POINT);\n\t\tcreateEReference(endPointEClass, END_POINT__OUTGOING_EDGES);\n\t}",
"@AutoGenerated\n\tprivate HorizontalLayout buildHl_cabecera() {\n\t\thl_cabecera = new HorizontalLayout();\n\t\thl_cabecera.setStyleName(\"cabeceraContenido\");\n\t\thl_cabecera.setImmediate(false);\n\t\thl_cabecera.setWidth(\"100.0%\");\n\t\thl_cabecera.setHeight(\"-1px\");\n\t\thl_cabecera.setMargin(false);\n\t\t\n\t\t// l_titulo\n\t\tl_titulo = new Label();\n\t\tl_titulo.setImmediate(false);\n\t\tl_titulo.setWidth(\"-1px\");\n\t\tl_titulo.setHeight(\"-1px\");\n\t\tl_titulo.setValue(\"Mi Perfil - Actualizacion de Datos\");\n\t\thl_cabecera.addComponent(l_titulo);\n\t\t\n\t\treturn hl_cabecera;\n\t}",
"public void onCreate(Bundle bundle) {\n super.onCreate(bundle);\n setContentView(C0354R.layout.layout_edit_main);\n loadLayoutFromPref();\n this.mImageView = (LayoutView) findViewById(C0354R.C0356id.layoutview);\n this.mLayoutAdapter = new LayoutAdapter(this, (LayoutItem) this.mLayoutItems.get(this.mCurrentLayout), this.mImageView);\n switchLayout(0);\n setupActionBarDropdown(getIntent().getIntExtra(KEY_INITIAL_LAYOUT, 0));\n registerForContextMenu(this.mImageView);\n this.mImageView.setOnCreateContextMenuListener(new ContextMenuListener(this));\n this.mImageView.setOnClickListener(new OnClickListener() {\n public void onClick(View view) {\n SingleView viewFromLastPosition = LayoutEditorActivity.this.mImageView.getViewFromLastPosition();\n if (viewFromLastPosition != null) {\n LayoutEditorActivity.this.addOrEditView(viewFromLastPosition);\n }\n }\n });\n ((Button) findViewById(C0354R.C0356id.btncancel)).setOnClickListener(new OnClickListener() {\n public void onClick(View view) {\n LayoutEditorActivity.this.finish();\n }\n });\n ((Button) findViewById(C0354R.C0356id.btnsave)).setOnClickListener(new OnClickListener() {\n public void onClick(View view) {\n LayoutEditorActivity.this.saveLayoutToPref();\n Intent intent = new Intent();\n intent.setClass(LayoutEditorActivity.this, MainActivity.class);\n intent.setAction(Constants.ACTION_EDIT_LAYOUT);\n LayoutEditorActivity.this.startActivity(intent);\n LayoutEditorActivity.this.finish();\n }\n });\n GAHelper.recordScreen(this, TAG);\n }",
"public ORDER_INFO() {\n this.setUndecorated(true);\n initComponents();\n init();\n }",
"public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\toml2OTIProvenanceEClass = createEClass(OML2OTI_PROVENANCE);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__OML_UUID);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__OML_IRI);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__OTI_ID);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__OTI_URL);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__OTI_UUID);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__EXPLANATION);\n\n\t\t// Create data types\n\t\tuuidEDataType = createEDataType(UUID);\n\t\tomL_IRIEDataType = createEDataType(OML_IRI);\n\t\totI_TOOL_SPECIFIC_IDEDataType = createEDataType(OTI_TOOL_SPECIFIC_ID);\n\t\totI_TOOL_SPECIFIC_UUIDEDataType = createEDataType(OTI_TOOL_SPECIFIC_UUID);\n\t\totI_TOOL_SPECIFIC_URLEDataType = createEDataType(OTI_TOOL_SPECIFIC_URL);\n\t}",
"@Override\n\tprotected void createPackage() {\n\t\tdecorations.add(new BridesMaidDeco());\n\t\tdecorations.add(new BridalDeco());\n\t}",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tif (mObjView == null) {\n\t\t\tmObjView = inflater.inflate(R.layout.jeep_airset, container, false);\n\t\t\tinit();\n\t\t}\n\n\t\treturn mObjView;\n\t}",
"private void init() {\n mainll = new LinearLayout(getContext());\n mainll.setId(View.generateViewId());\n mainll.setLayoutParams(new ActionBar.LayoutParams(ActionBar.LayoutParams.MATCH_PARENT, ActionBar.LayoutParams.WRAP_CONTENT));\n mainll.setOrientation(LinearLayout.VERTICAL);\n\n map = new HashMap<>();\n\n RelativeLayout mainrl = new RelativeLayout(getContext());\n RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(ActionBar.LayoutParams.MATCH_PARENT,\n ActionBar.LayoutParams.WRAP_CONTENT);\n\n params.addRule(RelativeLayout.BELOW, mainll.getId());\n\n save = new Button(getContext());\n\n save.setLayoutParams(params);\n save.setText(\"save\");\n\n mainrl.addView(mainll);\n mainrl.addView(save);\n addView(mainrl);\n }",
"@Override\n public OrderViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n LayoutInflater inflater = LayoutInflater.from(mCtx);\n View view = inflater.inflate(R.layout.order_list_row, null);\n RecyclerView.LayoutParams lp = new RecyclerView.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n view.setLayoutParams(lp);\n return new OrderViewHolder(view);\n }",
"private void initLayoutReferences() {\n // Initializing views\n initViews();\n // Initializing mapView element\n initMap();\n }",
"public void setupLayout() {\n // left empty for subclass to override\n }",
"@Override\n public MyAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n\n if (viewType == TYPE_ITEM) {\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_row,parent,false); //Inflating the layout\n\n ViewHolder vhItem = new ViewHolder(v,viewType); //Creating ViewHolder and passing the object of type view\n\n return vhItem; // Returning the created object\n\n //inflate your layout and pass it to view holder\n\n } else if (viewType == TYPE_HEADER) {\n\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.header,parent,false); //Inflating the layout\n\n ViewHolder vhHeader = new ViewHolder(v,viewType); //Creating ViewHolder and passing the object of type view\n\n return vhHeader; //returning the object created\n\n\n }\n return null;\n\n }"
]
| [
"0.5890113",
"0.57894355",
"0.56916815",
"0.56162274",
"0.5483293",
"0.546548",
"0.5443728",
"0.54227716",
"0.53833956",
"0.53136694",
"0.52592814",
"0.52295303",
"0.51858807",
"0.5166835",
"0.51589715",
"0.51505625",
"0.5139388",
"0.5138448",
"0.5125051",
"0.51182425",
"0.51128715",
"0.5097934",
"0.5090753",
"0.507983",
"0.5079591",
"0.50713843",
"0.50700676",
"0.50644976",
"0.50633925",
"0.50500995",
"0.5035066",
"0.50242627",
"0.50169975",
"0.50155413",
"0.5012231",
"0.50051653",
"0.49877656",
"0.49870685",
"0.49864066",
"0.4978584",
"0.49778947",
"0.49740008",
"0.49616462",
"0.49564812",
"0.49478915",
"0.4943534",
"0.4930686",
"0.4930479",
"0.49302745",
"0.49151412",
"0.49050197",
"0.4899736",
"0.48867306",
"0.48866224",
"0.48792422",
"0.48787758",
"0.48764175",
"0.48747796",
"0.48657885",
"0.48576513",
"0.4831198",
"0.48264015",
"0.48219132",
"0.4818464",
"0.48170483",
"0.48161748",
"0.48142874",
"0.4810843",
"0.4799136",
"0.4798492",
"0.479299",
"0.47868443",
"0.47816622",
"0.47810936",
"0.47789016",
"0.47754842",
"0.4774893",
"0.4767548",
"0.47667003",
"0.47614035",
"0.4757273",
"0.47509536",
"0.4749907",
"0.47485778",
"0.47461787",
"0.47347784",
"0.4733923",
"0.4732616",
"0.47218907",
"0.47206068",
"0.47180882",
"0.47166115",
"0.4711129",
"0.47108617",
"0.47080392",
"0.47050348",
"0.4704285",
"0.47038546",
"0.47014183",
"0.46911895"
]
| 0.5086788 | 23 |
initializing all the Controls of DeliveryVerifyItemList class | public void intialiseControls()
{
//getting ids add_stock_inventory
llOrderListView = (LinearLayout)llOrderSheet.findViewById(R.id.llordersheet);
llItemHeader = (LinearLayout)llOrderSheet.findViewById(R.id.llItemHeader);
llApproved = (LinearLayout)llOrderSheet.findViewById(R.id.llApproved);
llCollectedQty = (LinearLayout)llOrderSheet.findViewById(R.id.llCollectedQty);
ivCollectedSep = (ImageView)llOrderSheet.findViewById(R.id.ivCollectedSep);
ivApprovedSep = (ImageView)llOrderSheet.findViewById(R.id.ivApprovedSep);
rlWareHouse = (RelativeLayout) llOrderSheet.findViewById(R.id.rlWareHouse);
btnOrdersheetVerify = (Button)llOrderSheet.findViewById(R.id.btnOrdersheetVerify);
btnPrint_stock_details = (Button)llOrderSheet.findViewById(R.id.btnPrint_stock_details);
llOrdersheetVerify = (LinearLayout)llOrderSheet.findViewById(R.id.llOrdersheetVerify);
llPrintStockDetail = (LinearLayout)llOrderSheet.findViewById(R.id.llPrintStockDetail);
lvItems = (ListView)llOrderSheet.findViewById(R.id.lvItems);
tvOrdersheetHeader = (TextView)llOrderSheet.findViewById(R.id.tvOrdersheetHeader);
tvNoItemFoundBase = (TextView)llOrderSheet.findViewById(R.id.tvNoItemFound);
llTopLayout = (LinearLayout)llOrderSheet.findViewById(R.id.llTopLayout);
etSearch = (EditText)llOrderSheet.findViewById(R.id.etSearch);
etSearch.setHintTextColor(Color.WHITE);
ivSearchCross = (ImageView)llOrderSheet.findViewById(R.id.ivSearchCross);
llHeader = (LinearLayout)llOrderSheet.findViewById(R.id.llHeader);
tvTotalQtUN = (TextView)llOrderSheet.findViewById(R.id.tvTotalQtUN);
tvVanQty = (TextView)llOrderSheet.findViewById(R.id.tvVanQty);
ivSeprator = (ImageView)llOrderSheet.findViewById(R.id.ivSeprator);
ivSepUN = (ImageView)llOrderSheet.findViewById(R.id.ivSepUN);
llTopLayout.setVisibility(View.VISIBLE);
tvOrdersheetHeader.setVisibility(View.VISIBLE);
llPrintStockDetail.setVisibility(View.VISIBLE);
tvOrdersheetHeader.setTypeface(AppConstants.Roboto_Condensed_Bold);
tvDescription=(TextView) llOrderSheet.findViewById(R.id.tvDescription);
tvQty= (TextView) llOrderSheet.findViewById(R.id.tvQty);
tvApprovedQty=(TextView) llOrderSheet.findViewById(R.id.tvApprovedQty);
tvCollectedQty=(TextView) llOrderSheet.findViewById(R.id.tvCollectedQty);
refreshLoad();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@PostConstruct\r\n private void init() {\n this.ccTypes = new ArrayList<SelectItem>();\r\n this.ccTypes.add(new SelectItem(CreditCardType.CARD_A, getCCTypeLabel(CreditCardType.CARD_A)));\r\n this.ccTypes.add(new SelectItem(CreditCardType.CARD_B, getCCTypeLabel(CreditCardType.CARD_B)));\r\n\r\n // Initialize categories select items\r\n this.categories = new ArrayList<SelectItem>();\r\n this.categories.add(new SelectItem(\"cat_it\", getCategoryLabel(\"cat_it\")));\r\n this.categories.add(new SelectItem(\"cat_gr\", getCategoryLabel(\"cat_gr\")));\r\n this.categories.add(new SelectItem(\"cat_at\", getCategoryLabel(\"cat_at\")));\r\n this.categories.add(new SelectItem(\"cat_mx\", getCategoryLabel(\"cat_mx\")));\r\n }",
"private void initControlList() {\n this.controlComboBox.addItem(CONTROL_PANELS);\n //this.controlComboBox.addItem(PEER_TEST_CONTROL);\n //this.controlComboBox.addItem(DISAGGREGATION_CONTROL);\n this.controlComboBox.addItem(AXIS_CONTROL);\n this.controlComboBox.addItem(DISTANCE_CONTROL);\n this.controlComboBox.addItem(SITES_OF_INTEREST_CONTROL);\n this.controlComboBox.addItem(CVM_CONTROL);\n this.controlComboBox.addItem(X_VALUES_CONTROL);\n }",
"public SnackPanel(CustomerUI customerUI, Integer machineID) {\n itemButtons = new ArrayList<JButton>();\n itemCodeTextFields = new ArrayList<JLabel>();\n itemPriceTextFields = new ArrayList<JLabel>();\n itemPanels= new ArrayList<JPanel>();\n initComponents();\n this.machineID = machineID;\n this.customerUI = customerUI;\n customerUI.getItemController().generateCategoryItemInfo(machineID, \"snack\");\n codeList = customerUI.getItemController().getCategoryCodeForMachine();\n priceList = customerUI.getItemController().getCategoryPriceForMachine();\n pictureList = customerUI.getItemController().getCategoryPicturePathForMachine();\n countList = customerUI.getItemController().getCategoryCountForMachine(); \n setCodeLabel();\n setPriceLabel();\n setPictureButton();\n setCount();\n }",
"protected void initControl() {\n\t\t\r\n\t}",
"private void initControlUI() {\n typeAdapter = new SpinnerSimpleAdapter(self, android.R.layout.simple_spinner_item, self.getResources().getStringArray(R.array.arr_feedback_type));\n spnType.setAdapter(typeAdapter);\n }",
"public OrganizeItemsPanel() {\n initComponents();\n// lastIndeks = catalogProducts.size();\n }",
"public AddItems() {\n initComponents();\n \n }",
"@Override\n public void initViews() {\n adapter = new PaymentAdapter(context, MainActivity.os.getPayments());\n ((ListView)views.get(\"LIST_VIEW\")).setAdapter(adapter);\n (views.get(\"ADD_BUTTON\")).setOnClickListener(this);\n }",
"private void initControls()\r\n\t{\r\n\t\tif (deltager != null)\r\n\t\t{\r\n\t\t\ttxfInput[0].setText(deltager.getNavn());\r\n\t\t\ttxfInput[1].setText(\"\" + deltager.getTelefonNr());\r\n\t\t\ttxfInput[2].setText(deltager.getAdresse().getVej());\r\n\t\t\ttxfInput[3].setText(\"\" + deltager.getAdresse().getNr());\r\n\t\t\ttxfInput[4].setText(deltager.getAdresse().getEtage());\r\n\t\t\ttxfInput[5].setText(\"\" + deltager.getAdresse().getPostNr());\r\n\t\t\ttxfInput[6].setText(deltager.getAdresse().getBy());\r\n\t\t\ttxfInput[7].setText(deltager.getAdresse().getLand());\r\n\t\t} \r\n\t\telse\r\n\t\t{\r\n\t\t\ttxfInput[0].clear();\r\n\t\t\ttxfInput[1].clear();\r\n\t\t\ttxfInput[2].clear();\r\n\t\t\ttxfInput[3].clear();\r\n\t\t\ttxfInput[4].clear();\r\n\t\t\ttxfInput[5].clear();\r\n\t\t\ttxfInput[6].clear();\r\n\t\t\ttxfInput[7].clear();\r\n\t\t}\r\n\t}",
"public ButtonMenuPanelBuyer() {\n initComponents();\n }",
"private void initializeWidgets() {\n\t\timg_home = (ImageView) findViewById(R.id.img_home);\n\t\tlv_customer_info = (ListView) findViewById(R.id.lv_customer_info);\n\t\tmc_ed_search = (AutoCompleteTextView) findViewById(R.id.mc_ed_search);\n\t\ttxv_invisible = (TextView) findViewById(R.id.txv_invisible);\n\t\ttxv_invisible.setVisibility(View.GONE);\n\t\tbtn_mc_genrate_invoice = (Button) findViewById(R.id.btn_mc_genrate_invoice);\n\t}",
"public ItemsControl() {\t\t\t\t\n\t\tlistListener = new SourceListChangeListener();\n\n\t\tBoxLayout boxLayout = new BoxLayout(this, BoxLayout.Y_AXIS);\n\t\tsetLayout(boxLayout);\t\t\t\t\n\t\tif (Beans.isDesignTime()) {\t\t\t\n\t\t\tJLabel designTimeCaptionLbl = new JLabel(\"<ItemsControl>\");\t\t\t\t\t\t\n\t\t\tthis.add(designTimeCaptionLbl);\n\t\t}\n\t}",
"public void init() {\r\n\r\n add(btnUn);\r\n add(btnDeux);\r\n add(btnTrois);\r\n add(btnQuatre);\r\n add(btnCinq);\r\n\r\n btnUn.setBounds(120, 120, 100, 75);\r\n btnDeux.setBounds(120, 310, 100, 75);\r\n btnDeux.setTransferHandler(new TransferHandler(\"icon\"));\r\n btnTrois.setBounds(360, 310, 100, 75);\r\n btnQuatre.setBounds(160, 600, 100, 75);\r\n btnQuatre.setTransferHandler(new TransferHandler(\"icon\"));\r\n btnCinq.setBounds(360, 600, 100, 75);\r\n\r\n }",
"public ViewBotonesListas() {\n initComponents();\n }",
"public ItemPro() {\n initComponents();\n comboFill();\n }",
"private void initControls() {\n Log.i(DEBUG.TAG, \"BTDevicesActivity - initControls - start\");\n\n // Setup adapter which delivers data to the ListView\n lvAdapter = new BTDevicesArrayAdapter(this);\n\n // Setup toggle Bluetooth On/Off button\n tglBTToggle = findViewById(R.id.tgl_bt_toggle);\n tglBTToggle.setOnClickListener(tglBTListener);\n\n // Setup scan button\n btnBTScan = findViewById(R.id.btn_bt_devices_scan);\n btnBTScan.setOnClickListener(btnScanListener);\n\n // Setup ListView of currently visible BT devices\n lvBTDevices = findViewById(R.id.lv_bt_devices);\n lvBTDevices.setAdapter(lvAdapter);\n lvBTDevices.setOnItemClickListener(lvBTDevicesListener);\n\n // Text on top\n tvHeader = findViewById(R.id.tv_bt_devices_header);\n\n Log.i(DEBUG.TAG, \"BTDevicesActivity - initControls - finish\");\n }",
"private void initialize() {\r\n this.setSize(new Dimension(800,600));\r\n this.setContentPane(getJPanel());\r\n\r\n List<String> title = new ArrayList<String>();\r\n title.add(\"Select\");\r\n title.add(\"Field Id\");\r\n title.add(\"Field Name\");\r\n title.add(\"Field Type\");\r\n title.add(\"Image\");\r\n\r\n List<JComponent> componentList = new ArrayList<JComponent>();\r\n componentList.add(checkInit);\r\n componentList.add(fieldIdInit);\r\n componentList.add(filedNameInit);\r\n componentList.add(fieldTypeInit);\r\n componentList.add(imageButton);\r\n\r\n String []arrColumn = {\"SELECT\", \"FIELD_ID\", \"FIELD_NAME\", \"FIELD_TYPE\", \"FIELD_VALUE\"};\r\n String []arrTitle = {\"SELECT\", \"FIELD_ID\", \"FIELD_NAME\", \"FIELD_TYPE\", \"FIELD_VALUE\"};\r\n // init grid\r\n grid = new GridUtils(pageSheet, title, componentList, arrColumn, preButton, afterButton, 5, arrTitle);\r\n // set title\r\n grid.setPageInfo(pageInfoLbl);\r\n \r\n searchDetailList();\r\n \r\n initComboBox();\r\n \r\n setTitle(\"Page Select page\");\r\n\t}",
"private void initializeViewAndControls() {\r\n txtEmail.setText(\"Email - \"+ AppConstants.ADMIN_EMAIL);\r\n txtCustomerCarePhone.setText(\"Customer Care - \"+ AppConstants.CUSTOMER_CARE_NUMBER);\r\n txtTollFreePhone.setText(\"Toll Free - \"+ AppConstants.TOLL_FREE_NUMBER);\r\n }",
"public void init(){\n\t\tthis.removeAll();\n\t\tthis.setLayout(null);//not using layout manager, placing components.\n\t\tcart = new Cart();//instantiate the shopping cart.\n\t\t\n\t\t//Sets up 'add item' label.\n\t\tJLabel addLabel = new JLabel(\"Add Item:\");\n\t\taddLabel.setBounds(10, 0, 75, 20);\n\t\tadd(addLabel);\n\n\t\tinitializeButtons();\n\t\t\n\t\t//Sets up the cart label, this will display how many items are currently in your cart.\n\t\tcartLabel = new JLabel(cart.size() + \" items in your cart\");\n\t\tcartLabel.setBounds(10, 200, 150, 20);\n\t\tadd(cartLabel);\n\n\t\t//Sets up the checkout button. calls the checkOut() method when clicked.\n\t\tJButton checkoutButton = new JButton(\"CHECKOUT\");\n\t\tcheckoutButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcheckOut(true);\n\t\t\t}\n\t\t});\n\t\tcheckoutButton.setBounds(10, 225, 100, 20);\n\t\tadd(checkoutButton);\n\t\t\n\t}",
"private void init() {\n\n if (currUserPayments == null) {\n currUserPayments = new ArrayList<>();\n }\n\n networkHelper = NetworkHelper.getInstance(getApplicationContext());\n\n binding = ActivityPaymentsBinding.inflate(getLayoutInflater());\n View view = binding.getRoot();\n setContentView(view);\n\n listHelper = ListHelper.getInstance();\n\n\n getAllExpenses();\n invokeOnClickListeners();\n recyclerViewInit();\n\n }",
"@Override\n\tpublic void initializeControls() {\n\t\t\n\t}",
"public InitialiseJCheckBox(){ \n new JCheckBoxDrinkList();\n new JCheckBoxPreOrderMenuList();\n new JRadioSeatSelectionList();\n }",
"public void init() {\r\n\t\t/*\r\n\t\t * Initialize panel for base\r\n\t\t */\r\n\t\tbaseList = GameMap.getBaseList();\r\n\t\tthis.add(new BaseInfoPanel(baseList.getFirst(), controlPanel));\r\n\t}",
"public AssemblingMessageListPanel()\n {\n //initComponents();\n }",
"public void initPageComponents() {\n\t\t\n\t\tboolean showMeterID \t= false;\n\t\tboolean showBillerID \t= false;\n\t\tboolean showRegID\t\t= false;\n\t\tboolean fillMeterID\t\t= false;\n\t\tboolean fillBillerID \t= false;\n\t\tboolean fillRegID\t\t= false;\n\t\tif(billPayBean.getBillerId().equals(\"91901\")) { //prepaid\n\t\t\tshowMeterID \t= true;\n\t\t\tshowBillerID \t= true;\n\t\t\tfillMeterID\t\t= true;\n\t\t\tfillBillerID\t= true;\n\t\t} else if(billPayBean.getBillerId().equals(\"91951\")) { //postpaid\n\t\t\tshowBillerID \t= true;\n\t\t\tfillBillerID\t= true;\n\t\t} else if(billPayBean.getBillerId().equals(\"91999\")) { //nontaglis\n\t\t\tshowRegID\t\t= true;\n\t\t\tfillRegID\t\t= true;\n\t\t}\n\t\t\n\t\tfinal Form<BankBillPaymentConfirmPage> form = new Form<BankBillPaymentConfirmPage>(\"confirmBillPay\", \n\t\t\t\tnew CompoundPropertyModel<BankBillPaymentConfirmPage>(this));\n\t\tform.add(new FeedbackPanel(\"errorMessages\"));\n\t\tform.add(new Label(\"billPayBean.billerLabel\")); \n\t\tform.add(new Label(\"billPayBean.productLabel\"));\n\t\tform.add(new Label(\"billPayBean.billAmount\"));\n\t\tform.add(new AmountLabel(\"billPayBean.feeAmount\"));\n\t\tfinal boolean showNameandBillNumber = billPayBankNameList.contains(billPayBean.getBillerId());\n\t\tform.add(new Label(\"label.customer.name\", getLocalizer().getString(\"label.customer.name\", this)).setVisible(showNameandBillNumber)); \n\t\tform.add(new Label(\"billPayBean.customerName\").setVisible(showNameandBillNumber));\n\t\tform.add(new Label(\"label.meter.number\", getLocalizer().getString(\"label.meter.number\", this)).setVisible(showMeterID));\n\t\tform.add(new Label(\"billPayBean.meterNumber\").setVisible(fillMeterID));\n\t\tform.add(new Label(\"label.bill.number\", getLocalizer().getString(\"label.bill.number\", this)).setVisible(showBillerID));\n\t\tform.add(new Label(\"billPayBean.billNumber\").setVisible(fillBillerID));\n\t\tform.add(new Label(\"label.reg.number\", getLocalizer().getString(\"label.reg.number\", this)).setVisible(showRegID));\n\t\tform.add(new Label(\"billPayBean.regNumber\").setVisible(fillRegID));\n\t\t\n\t\tform.add(new PasswordTextField(\"billPayBean.pin\").add(new ErrorIndicator()));\n\t\t\n\t\taddSubmitButton(form);\n\t\t\n\t\tadd(form);\n\t}",
"public CustomerGUI() {\n\t initComponents();\n\t }",
"public AddItem() {\n initComponents();\n }",
"public void initElements() {\n\n emptyStateElement = driver.findElement(By.id(\"com.fiverr.fiverr:id/empty_state_title\"));\n postRequestButton = driver.findElement(By.id(\"com.fiverr.fiverr:id/empty_list_button\"));\n }",
"private void initChildren() {\n vbox = new Vbox();\n chkUseRawName = new Checkbox(\"Use the scientific names supplied with the records\");\n chkUseRawName.setChecked(false);\n\n chkUseRawName.addEventListener(\"onCheck\", new EventListener() {\n\n @Override\n public void onEvent(Event event) throws Exception {\n onCheck$chkUseRawName(event);\n }\n });\n autoComplete = new SpeciesAutoComplete();\n autoComplete.setAutodrop(true);\n autoComplete.setWidth(\"330px\");\n autoComplete.addEventListener(\"onChange\", new EventListener() {\n\n @Override\n public void onEvent(Event event) throws Exception {\n autoCompleteSelectionChanged(event);\n }\n\n });\n\n vbox.appendChild(chkUseRawName);\n vbox.appendChild(autoComplete);\n\n }",
"public PAYMENTS() {\n initComponents();\n }",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t\tfecha = new Date();\r\n\t\t\r\n\t\tlistaBancos = new ArrayList<SelectItem>();\r\n\t\tlistaRegiones = new ArrayList<SelectItem>();\r\n\t\tlistaCiudades = new ArrayList<SelectItem>();\r\n\t\tlistaComunas = new ArrayList<SelectItem>();\r\n\t\t\r\n\t\tfor(EmpresaDTO empresa : configJProcessService.selectEmpresasByOrganizacion(1))\r\n\t\t\tlistaBancos.add(new SelectItem(empresa.getId(), empresa.getNombre()));\r\n\t}",
"private void init() {\n\t\tcreateSubjectField();\n\t\tcreateTextField();\n\t\tcreateButton();\n\t\tsetupSubjectPanel();\n\t\tsetupToDoPanel();\n\n\t\tsetBorder(BorderFactory.createTitledBorder(\"To Do List\"));\n\t\tsetLayout(new BorderLayout());\n\t\tadd(pnlSubject, BorderLayout.NORTH);\n\t\tadd(scroll, BorderLayout.CENTER);\n\t\tadd(pnlButton, BorderLayout.SOUTH);\n\t}",
"@PostConstruct\n void init() {\n\n\t\tfieldGroup = m_maduraSessionManager.createMaduraFieldGroup();\n\t\tfieldGroup.setReadOnly(true);\n\n\t\tfinal VerticalLayout verticalLayout = new VerticalLayout();\n verticalLayout.setMargin(true);\n verticalLayout.setSpacing(true);\n addComponent(verticalLayout);\n \n orderForm = new VerticalLayout();\n \n final HorizontalLayout horizontalLayout = new HorizontalLayout();\n horizontalLayout.setSpacing(true);\n horizontalLayout.setMargin(true);\n\n\t\torderStatusLabel = new Label();\n\t\thorizontalLayout.addComponent(orderStatusLabel);\n\t\tfieldGroup.bind(orderStatusLabel,\"orderStatus\");\n\t\t\n\t\torderAmountLabel = new Label();\n\t\thorizontalLayout.addComponent(orderAmountLabel);\n\t\tfieldGroup.bind(orderAmountLabel,\"amount\");\n\t\t\n\t\tverticalLayout.addComponent(orderForm);\n\t\torderForm.addComponent(horizontalLayout);\n\t\n\t\tHorizontalLayout actions = new HorizontalLayout();\n\t\tButton addItem = fieldGroup.createButton(\"button.addItem\", new ClickListener(){\n\n\t\t\t@Override\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\tPizza pizza = new Pizza();\n\t\t\t\tpizza.setId(System.currentTimeMillis());\n\t\t\t\tm_pizzaWindow.load(pizza);\n\t\t\t\t\n\t\t\t}});\n\t\tactions.addComponent(addItem);\n\t\tverticalLayout.addComponent(actions);\n\t\tgetEventRouter().addListener(AddItemEvent.class, this, \"addItem\");\n\t\tm_itemsTable = new FormattingTable();\n\t\tm_itemsTable.setImmediate(false);\n\t\tm_itemsTable.setWidth(\"500px\");\n\t\tm_itemsTable.setHeight(\"240px\");\n\t\tContainer indexed = new BeanItemContainer<Pizza>(Pizza.class, new ArrayList<Pizza>());\n\t\tm_itemsTable.setContainerDataSource(indexed,NATURAL_COL_ORDER,ENGLISH_COL_ORDER,m_maduraSessionManager.getMessageSource());\n\t\tverticalLayout.addComponent(m_itemsTable);\n\t\tm_itemsTable.addItemClickListener(new ItemClickListener(){\n\n\t\t\t@Override\n\t\t\tpublic void itemClick(ItemClickEvent event) {\n\t\t\t\tm_pizzaWindow.load((Pizza)event.getItemId());\n\t\t\t}});\n }",
"@Override\r\n public void initControl() {\n \r\n }",
"public void init()\n\t{\n\t\tadd(onloadItem = newOnloadItem(\"onload_item\"));\n\t\tadd(mouseoverItem = newMouseoverItem(\"mouseover_item\"));\n\t\tadd(onclickItem = newOnclickItem(\"onclick_item\"));\n\n\t\t// animation\n\t\tmouseoverItem.add(new YuiAnimation(OnEvent.mouseover, onloadItem)\n\t\t\t\t.addEffect(mouseoverEffect()));\n\t\tmouseoverItem.add(new YuiAnimation(OnEvent.mouseout, mouseoverItem)\n\t\t\t\t.addEffect(mouseoutEffect()));\n\n\t\t// this is the \"select\"\n\t\tonclickItem.add(new YuiAnimation(OnEvent.click, mouseoverItem, getElement(),\n\t\t\t\tgetSelectValue()).addEffect(onselectEffect()));\n\n\t\t// this is the \"unselect\"\n\t\tonclickItem.add(onunselectAnimation = new YuiAnimation(OnEvent.click, onclickItem,\n\t\t\t\tgetElement(), getUnselectValue()).addEffect(onunselectEffect()));\n\t}",
"public ClientGUI() {\n initComponents();\n PopulateList();\n }",
"private void init() {\n List<Contructor> list = servisContructor.getAllContructors();\n for (Contructor prod : list) {\n contructor.add(new ContructorViewer(prod));\n }\n\n Label label = new Label(\"Catalog Contructors\");\n label.setLayoutX(140);\n label.setLayoutY(20);\n label.setStyle(\"-fx-font-size:20px\");\n\n initTable();\n table.setLayoutX(120);\n table.setLayoutY(60);\n table.setStyle(\"-fx-font-size:16px\");\n\n GridPane control = new ControlPanel(this, 2).getPanel();\n control.setLayoutX(120);\n control.setLayoutY(300);\n\n panel.setAlignment(Pos.CENTER);\n panel.add(label, 0, 0);\n panel.add(table, 0, 1);\n panel.add(control, 0, 2);\n }",
"private void initializeComponents() {\n\t\tplantDAO = new PlantDAOStub();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tList<String> plantNames = plantDAO.getPlantNames();\r\n\t\t\tArrayAdapter<String> plantNamesAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_expandable_list_item_1, plantNames);\r\n\t\t\t\r\n\t\t\tactPlantName = (AutoCompleteTextView) findViewById(R.id.actPlantName);\r\n\t\t\t\r\n\t\t\tactPlantName.setAdapter(plantNamesAdapter);\r\n\t\t\t\r\n\t\t\tbtnPlantSearch = (Button) findViewById(R.id.btnSearchPlants);\r\n\t\t\t\r\n\t\t\tbtnPlantSearch.setOnClickListener(new View.OnClickListener() {\r\n\t\t\t\t\r\n\t\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\tinvokeResults();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"private void initialize() {\n\tif (setup == false) {\n\t elementList.add(new GUISlider());\n\t elementList.add(new GUIChart());\n\t elementList.add(new GUIStatsDisplay());\n\t elementList.add(new GUIPID());\n\t elementList.add(new GUITimer());\n\t elementList.add(new GUINumericUpDown());\n\t setup = true;\n\t}\n }",
"private void initCVMControl() {\n if(this.cvmControlPanel==null)\n cvmControlPanel = new SetSiteParamsFromWebServicesControlPanel(this, this.imrGuiBean, this.siteGuiBean);\n cvmControlPanel.pack();\n cvmControlPanel.setVisible(true);\n }",
"private void initViews() {\n inputName = findViewById(R.id.inputGroceryItemName);\n inputQuantityToBuy = findViewById(R.id.inputGroceryItemQuantity);\n inputUnits = findViewById(R.id.inputGroceryItemUnits);\n inputPrice = findViewById(R.id.inputGroceryItemPrice);\n inputCalories = findViewById(R.id.inputGroceryItemCalories);\n\n btnCancel = findViewById(R.id.btnCancelAddGrocery);\n btnAdd = findViewById(R.id.btnAddGroceryItem);\n\n checkEgg = findViewById(R.id.inputCheckGroceryEggs);\n checkFish = findViewById(R.id.inputCheckGroceryFish);\n checkGluten = findViewById(R.id.inputCheckGroceryGluten);\n checkLactose = findViewById(R.id.inputCheckGroceryLactose);\n checkSoy = findViewById(R.id.inputCheckGrocerySoy);\n checkNuts = findViewById(R.id.inputCheckGroceryNuts);\n }",
"public pnlCustomer() {\n initComponents();\n }",
"private Offce_item() {\n\n initComponents();\n con = MysqlConnect.getDbCon();\n }",
"public void init(){\r\n \r\n\t\tcheckBox1 = new Checkbox(\"Akhash\", true);\r\n \r\n\t\t/*\r\n\t\t * Set Checkbox caption or label using\r\n\t\t * void setLabel(String text)\r\n\t\t * method of AWT Checkbox class.\r\n\t\t */\r\n \r\n\t\tcheckBox1.setLabel(\"My Checkbox 1\");\r\n \r\n\t\t/*\r\n\t\t * To create checkbox with the caption use\r\n\t\t * CheckBox(String text) constructor of\r\n\t\t * AWT Checkbox class.\r\n\t\t */\r\n \r\n\t\tcheckBox2 = new Checkbox(\"Suresh\", true);\r\n \r\n\t\t//add checkboxes using add method\r\n\t\tadd(checkBox1);\r\n\t\tadd(checkBox2);\r\n\t}",
"private void init(){\n\t\t\n\t\tpurchasePrice = (EditText)findViewById(R.id.purchasePrice);\n\t\tpurchasePrice.setFilters(new InputFilter[] { new CurrencyFormatInputFilter()});\n\t\t\n\t\tdownPaymentSpinner = (Spinner)findViewById(R.id.inputTypeSpinner);\n\t\tArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this,\n\t\t\t\tR.array.inputTypes, android.R.layout.simple_spinner_item);\n\t\tadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\t\tdownPaymentSpinner.setAdapter(adapter);\n\t\t\n\t\tsellerSpinner = (Spinner)findViewById(R.id.inputTypeSpinnerSeller);\n\t\tArrayAdapter<CharSequence> adapter2 = ArrayAdapter.createFromResource(this,\n\t\t\t\tR.array.inputTypes, android.R.layout.simple_spinner_item);\n\t\tadapter2.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\t\tsellerSpinner.setAdapter(adapter2);\t\n\t}",
"public Payments() {\n initComponents();\n }",
"public Payments() {\n initComponents();\n }",
"@Override\n public final void init() {\n super.init();\n UIUtils.clearAllFields(upperPane);\n changeStatus(Status.NONE);\n intCombo();\n }",
"private void init() {\r\n\t\tthis.setBackground(Color.decode(\"#c5dfed\"));\r\n\r\n\t\tthis.initPanelButtons();\r\n\r\n\t\tUtilityClass.addBorder(this, 20, 20, 20, 20);\r\n\t\t\r\n\t\tthis.title.setFont(ConstantView.FONT_TITLE_CRUD);\r\n\t\tthis.title.setHorizontalAlignment(JLabel.CENTER);\r\n\t\tthis.add(title, BorderLayout.NORTH);\r\n\t\t\r\n\t\tthis.add(panelButtons, BorderLayout.SOUTH);\r\n\t\tthis.jPanelFormClient.setOpaque(false);\r\n\t\tthis.add(jPanelFormClient, BorderLayout.CENTER);\r\n\t}",
"private void InitializeUI(){\n\t\t//Set up the menu items, which are differentiated by their IDs\n\t\tArrayList<MenuItem> values = new ArrayList<MenuItem>();\n\t\tMenuItem value = new MenuItem();\n\t\tvalue.setiD(0); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(1); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(2); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(3); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(4); values.add(value);\n\n MenuAdapter adapter = new MenuAdapter(this, R.layout.expandable_list_item3, values);\n \n // Assign adapter to List\n setListAdapter(adapter);\n \n //Set copyright information\n Calendar c = Calendar.getInstance();\n\t\tString year = String.valueOf(c.get(Calendar.YEAR));\n\t\t\n\t\t//Set up the copyright message which links to the author's linkedin page\n TextView lblCopyright = (TextView)findViewById(R.id.lblCopyright);\n lblCopyright.setText(getString(R.string.copyright) + year + \" \");\n \n TextView lblName = (TextView)findViewById(R.id.lblName);\n lblName.setText(Html.fromHtml(\"<a href=\\\"http://uk.linkedin.com/in/lekanbaruwa/\\\">\" + getString(R.string.name) + \"</a>\"));\n lblName.setMovementMethod(LinkMovementMethod.getInstance());\n\t}",
"private void initialize() {\r\n\t\tGridBagConstraints gridBagConstraints1 = new GridBagConstraints();\r\n\t\tgridBagConstraints1.gridx = 0;\r\n\t\tgridBagConstraints1.gridy = 1;\r\n\t\tlaunchSubLabel = new JLabel();\r\n\t\tlaunchSubLabel.setText(Message.getMessage(\"reportmaker.process.sublabel\"));\r\n\t\tGridBagConstraints gridBagConstraints = new GridBagConstraints();\r\n\t\tgridBagConstraints.gridx = 0;\r\n\t\tgridBagConstraints.gridy = 0;\r\n\t\tthis.setSize(800, 400);\r\n\t\tthis.setLayout(new GridBagLayout());\r\n\t\tthis.setPreferredSize(new Dimension(800, 400));\r\n\t\tthis.setBackground(Color.white);\r\n\t\tthis.add(getLaunchButton(), gridBagConstraints);\r\n\r\n\t\tGridBagConstraints gridBagConstraints2 = new GridBagConstraints();\r\n\t\tgridBagConstraints2.insets = new Insets(50, 0, 0, 0);\r\n\t\tgridBagConstraints2.gridx = 0;\r\n\t\tgridBagConstraints2.gridy = 2;\r\n\t\tthis.add(getViewButton(), gridBagConstraints2);\r\n\t\tthis.add(launchSubLabel, gridBagConstraints1);\r\n\t}",
"public AccountDepositUI() {\n initComponents();\n }",
"public Items()\r\n\t{\r\n\t\t//create the window/panel\r\n\t\tsuper( \"Swing Window\" );\r\n\t\tsetSize( 500,200 );\r\n\t\tsetDefaultCloseOperation( EXIT_ON_CLOSE );\r\n\t\tadd(pnl);\r\n\t\t\r\n\r\n\t\t//add the different checkboxes to the panel\r\n\t\tpnl.add( chk1 ) ;\r\n\t\tpnl.add( chk2 ) ;\r\n\t\tpnl.add( chk3 ) ;\r\n\t\tpnl.add( chk4 ) ;\r\n\t\t\r\n\t\t//pnl.add( chk5 ) ;\r\n\t\t//pnl.add( chk6 ) ;\r\n\t\t//pnl.add( chk7 ) ;\r\n\t\t//add the combobox\r\n\t\tbox1.setSelectedIndex(0);\r\n\t\tpnl.add( box1 ) ;\r\n\t\t\r\n\t\tbox2.setSelectedIndex(0);\r\n\t\tpnl.add( box2 ) ;\r\n\t\t\r\n\t\tpnl.add( lst1 ) ; \r\n\t\tpnl.add( lst2 ) ; \r\n\t\tsetVisible( true );\r\n\t}",
"private void initialiseController() \r\n {\r\n defaultVectors();\r\n if(grantsByPIForm == null) \r\n {\r\n grantsByPIForm = new GrantsByPIForm(); //(Component) parent,modal);\r\n }\r\n grantsByPIForm.descriptionLabel.setText(UnitName);\r\n grantsByPIForm.descriptionLabel.setFont(new Font(\"SansSerif\",Font.BOLD,14));\r\n queryEngine = QueryEngine.getInstance();\r\n coeusMessageResources = CoeusMessageResources.getInstance();\r\n registerComponents();\r\n try {\r\n setFormData(null);\r\n }\r\n catch(Exception e) {\r\n e.printStackTrace(System.out);\r\n }\r\n }",
"public AccountListView() {\r\n initComponents();\r\n \r\n }",
"public BillPopup() {\n initComponents();\n }",
"private void loadItemList() {\n this.presenter.initialize();\n }",
"private void initializeControls() {\n\t\tlabel = new Label(status.toString());\n\t}",
"public BridgingUI() {\n initComponents();\n initUserActions();\n }",
"private void init() {\n recyclerView = findViewById(R.id.mRecyclerView);\n noBudgetData = findViewById(R.id.NoData);\n noDataGif = findViewById(R.id.NoDataGif);\n Amount = findViewById(R.id.Amount);\n WalletName = findViewById(R.id.WalletName);\n TotalCost = findViewById(R.id.TotalCost);\n CostHeading = findViewById(R.id.CostHeading);\n CurrentBalance = findViewById(R.id.CurrentBalance);\n toolbar = findViewById(R.id.tool_bar);\n mainLayout = findViewById(R.id.home_layout);\n editButton = findViewById(R.id.editIcon);\n ux = new UX(this, mainLayout);\n tools = new Tools(this);\n databaseHelper = DatabaseHelper.getHelper(this);\n }",
"@Override\n public void init() // set up GUI\n {\n setLayout(new FlowLayout());\n\n customerView = new CustomerView(); // initialize customerView\n \n add(customerView); // add customerView to the GUI\n }",
"public CustomerListForm() {\n initComponents();\n findAllData();\n }",
"public Gui() {\n initComponents();\n paneles = new ArrayList();\n btGroup.add(rbCrear);\n btGroup.add(rbConsultar);\n btGroup.add(rbModificar);\n btGroup.add(rbEliminar);\n paneles.add(panelCrearConsultarUsuario); //INDICE 0\n paneles.add(panelCRUDItem); //INDICE 1\n paneles.add(panelCRUDPedido); //INDICE 2\n paneles.add(panelCRUDFactura); //INDICE 3\n setPanelesInvisible(-1);\n }",
"@PostConstruct\r\n public void init() {\n this.tab = false;\r\n this.tabNumber = 0;\r\n\r\n weekdaysItem = new ArrayList<>();\r\n\r\n for (WeekDay wd : WeekDay.values()) {\r\n weekdaysItem.add(new SelectItem(wd, wd.name()));\r\n }\r\n }",
"public ModifyItem() {\n initComponents();\n }",
"public J_Payment() {\n initComponents();\n }",
"public LeastMoviableItemForm() {\n initComponents();\n LeastMoviableItem();\n }",
"private void initViews() {\n mTvBalance = findViewById(R.id.tv_receive_client_balance);\n mListView = findViewById(R.id.lv_list_receive_client);\n mFab = findViewById(R.id.fab_receive_receip);\n mTvEmpty = findViewById(R.id.tv_empty_view);\n mIvEmpty = findViewById(R.id.iv_empty_view);\n mEmptyView = findViewById(R.id.empty_view);\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"public CustomerView(JPanel topPanel, JPanel mainPanel, JPanel bottomPane) {\n super(topPanel, mainPanel, bottomPane);\n inventory = new ProductInventory();\n myShoppingCart = new ShoppingCart();\n addToCartBtn = new JButton[MAX_NUMB_PRODUCTS];\n }",
"public PnNewCustomer() {\n initComponents();\n }",
"public AdminUI() {\n initComponents();\n wdh=new WebDataHandler();\n initList();\n }",
"private void init() {\n setText(\"Case Name\");\n createFieldsComp();\n GuiUtil.addSeparator(shell, SWT.HORIZONTAL);\n createBottomActionButtons();\n }",
"public NderroPass() {\n initComponents();\n loadComboBox();\n }",
"private void setUpVC() {\n\t\tinitializePackageModel();\n\t\tinitializeRootLayout();\n\t\tinitializeStepCountView();\n\t\tinitializeButtonToScanForBluetoothDevices();\n\t\tinitializeButtonToSendCommands();\n\t\taddAllViewsToRootLayout();\n\t\tinitializeUARTControlFragmentInterface();\n\t\tsetListenerOnLaunchScanForBluetoothDevices();\n\t\tsetListenerOnButtonToSendCommands();\n\t}",
"public orderView() {\n initComponents();\n }",
"public customerentry() {\n initComponents();\n }",
"@FXML\r\n private void initialize() {\r\n try {\r\n customer = new Customer();\r\n listOfAgents = AgentDB.getAgentIds();\r\n \r\n cboAgentId.setItems(listOfAgents);\r\n } catch (Exception e) {\r\n System.out.println(\"Failed to load the agency IDs\");\r\n }\r\n \r\n }",
"public OrderForm() {\n initComponents();\n mWaffleList = new ArrayList<Product>();\n mCoffeeList = new ArrayList<Product>();\n mbdb = new BelgianDatabaseHandler(dbpath+menuDbName);\n resetQuantityBox();\n generateMenu();\n //if done generating menu\n //update orderhandler BelgianWaffle class for the items\n mbw = new BelgianWaffle(mWaffleList,mCoffeeList,mbdb);\n model = new DefaultListModel();\n \n }",
"public InvoiceCreate() {\n initComponents();\n }",
"public confirm_order() {\n initComponents();\n }",
"public InputCVEmployeeCertificationView() {\n initComponents();\n setDefaultCondition();\n getRidTheBar();\n }",
"public void setupUI() {\r\n\t\t\r\n\t\tvPanel = new VerticalPanel();\r\n\t\thPanel = new HorizontalPanel();\r\n\t\t\r\n\t\titemName = new Label();\r\n\t\titemName.addStyleName(Styles.page_title);\r\n\t\titemDesc = new Label();\r\n\t\titemDesc.addStyleName(Styles.quest_desc);\r\n\t\titemType = new Label();\r\n\t\titemType.addStyleName(Styles.quest_lvl);\r\n\t\t\r\n\t\tVerticalPanel img = new VerticalPanel();\r\n\t\timg.add(new Image(imgDir));\r\n\t\t\r\n\t\tvPanel.add(itemName);\r\n\t\tvPanel.add(itemDesc);\r\n\t\tvPanel.add(img);\r\n\t\tvPanel.add(hPanel);\r\n\t\t\r\n\t\tVerticalPanel mainPanel = new VerticalPanel();\r\n\t\tmainPanel.setWidth(\"100%\");\r\n\t\tvPanel.addStyleName(NAME);\r\n\t\t\r\n\t\tmainPanel.add(vPanel);\r\n \tinitWidget(mainPanel);\r\n }",
"@Override\n\tpublic void init() {\n\t\tmaterialImages = new JButton[MaterialState.materialLibrary.size()];\n\t\tmaterialNames = new JLabel[MaterialState.materialLibrary.size()];\n\t\tmaterialAmounts = new JLabel[MaterialState.materialLibrary.size()];\n\t\tmaterialColours = new JLabel[MaterialState.materialLibrary.size()];\n\n\t\ttotalRating = 0;\n\t\ttotalToxic = 0;\n\t\ttotalNegative = 0;\n\t\ttotalDamage = 0;\n\n\t}",
"public Avontool() {\n initComponents();\n }",
"@FXML\n private void initialize() {\n \tuictrlLength.setValueFactory(\n \t\t\tnew SpinnerValueFactory.IntegerSpinnerValueFactory(\n \t\t\t\t\tNYAPSEncoder.MIN_LENGTH, NYAPSEncoder.MAX_LENGTH, NYAPSEncoder.DEFAULT_LENGTH, 1));\n \tuictrlIssue.setValueFactory(\n \t\t\tnew SpinnerValueFactory.IntegerSpinnerValueFactory(\n \t\t\t\t\tNYAPSEncoder.MIN_ISSUE, NYAPSEncoder.MAX_ISSUE, 1, 1));\n }",
"private void initElements() {\n unitImplementation = new UnitImplementation(EMF);\n supplierImplementation = new SupplierImplementation(EMF);\n personnelImplementation = new PersonnelImplementation(EMF);\n userImplementation = new UserImplementation(EMF);\n itemImplementation = new ItemImplementation(EMF);\n stockImplementation = new StockImplementation(EMF);\n salesImplementation = new SalesImplementation(EMF);\n dashboardImplementation = new DashboardImplementation(EMF);\n reportsImplementation = new ReportsImplementation(EMF);\n menuB1Active = MENU_B1_DASHBOARD;\n previousB1Button = b1DashboardButton;\n previousB2Button = b2DashboardButton;\n bigDecimalRenderer = new BigDecimalRenderer(new DecimalFormat(\"#,##0.00\"));\n\n // Set to default view.\n w2B2RadioButtonActionPerformed(null);\n b2DashboardButtonActionPerformed(null);\n w1B1RadioButtonActionPerformed(null);\n b1DashboardButtonActionPerformed(null);\n\n // Set reports date.\n reportsSalesFromDateChooser.setDate(DateUtil.current());\n reportsSalesToDateChooser.setDate(DateUtil.current());\n reportsStocksFromDateChooser.setDate(DateUtil.current());\n reportsStocksToDateChooser.setDate(DateUtil.current());\n reportsStockOutFromDateChooser.setDate(DateUtil.current());\n reportsStockOutToDateChooser.setDate(DateUtil.current());\n reportsSalesFromDateChooser1.setDate(DateUtil.current());\n reportsSalesToDateChooser1.setDate(DateUtil.current());\n reportsStocksFromDateChooser1.setDate(DateUtil.current());\n reportsStocksToDateChooser1.setDate(DateUtil.current());\n reportsStockOutFromDateChooser1.setDate(DateUtil.current());\n reportsStockOutToDateChooser1.setDate(DateUtil.current());\n\n // Set combo box.\n salesStockComboBox.setModel(stockImplementation.getComboBoxModel(BODEGA_1));\n stocksStockComboBox.setModel(stockImplementation.getComboBoxModel(BODEGA_1));\n stockOutStockComboBox.setModel(stockImplementation.getComboBoxModel(BODEGA_1));\n salesStockComboBox1.setModel(stockImplementation.getComboBoxModel(BODEGA_2));\n stocksStockComboBox1.setModel(stockImplementation.getComboBoxModel(BODEGA_2));\n stockOutStockComboBox1.setModel(stockImplementation.getComboBoxModel(BODEGA_2));\n\n // Generate default reports.\n b1GenerateSalesReport();\n b1GenerateStocksReport();\n b1GenerateStockOutReport();\n b2GenerateSalesReport();\n b2GenerateStocksReport();\n b2GenerateStockOutReport();\n\n // Set tables.\n b1SetUnitTable();\n b1SetPersonnelTable();\n b1SetUserTable();\n b1SetItemTable();\n b1SetStockTable();\n b1SetDashboardHotTable();\n b1SetDashboardAlmostOutOfStockTable();\n b2SetUnitTable();\n b2SetPersonnelTable();\n b2SetUserTable();\n b2SetItemTable();\n b2SetStockTable();\n b2SetDashboardHotTable();\n b2SetDashboardAlmostOutOfStockTable();\n\n b1UnitXTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n b1UnitXTable.setHighlighters(HighlighterFactory.createSimpleStriping(HighlighterFactory.CLASSIC_LINE_PRINTER));\n b1PersonnelXTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n b1PersonnelXTable.setHighlighters(HighlighterFactory.createSimpleStriping(HighlighterFactory.CLASSIC_LINE_PRINTER));\n b1UserXTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n b1UserXTable.setHighlighters(HighlighterFactory.createSimpleStriping(HighlighterFactory.CLASSIC_LINE_PRINTER));\n b1ItemXTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n b1ItemXTable.setHighlighters(HighlighterFactory.createSimpleStriping(HighlighterFactory.CLASSIC_LINE_PRINTER));\n stockXTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n stockXTable.setHighlighters(HighlighterFactory.createSimpleStriping(HighlighterFactory.CLASSIC_LINE_PRINTER));\n dashboardHotXTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n dashboardHotXTable.setHighlighters(HighlighterFactory.createSimpleStriping(HighlighterFactory.CLASSIC_LINE_PRINTER));\n dashboardAlmostOutOfStockXTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n dashboardAlmostOutOfStockXTable.setHighlighters(HighlighterFactory.createSimpleStriping(HighlighterFactory.CLASSIC_LINE_PRINTER));\n b1UnitXTable1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n b1UnitXTable1.setHighlighters(HighlighterFactory.createSimpleStriping(HighlighterFactory.CLASSIC_LINE_PRINTER));\n b1PersonnelXTable1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n b1PersonnelXTable1.setHighlighters(HighlighterFactory.createSimpleStriping(HighlighterFactory.CLASSIC_LINE_PRINTER));\n b1UserXTable1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n b1UserXTable1.setHighlighters(HighlighterFactory.createSimpleStriping(HighlighterFactory.CLASSIC_LINE_PRINTER));\n b1ItemXTable1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n b1ItemXTable1.setHighlighters(HighlighterFactory.createSimpleStriping(HighlighterFactory.CLASSIC_LINE_PRINTER));\n stockXTable1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n stockXTable1.setHighlighters(HighlighterFactory.createSimpleStriping(HighlighterFactory.CLASSIC_LINE_PRINTER));\n dashboardHotXTable1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n dashboardHotXTable1.setHighlighters(HighlighterFactory.createSimpleStriping(HighlighterFactory.CLASSIC_LINE_PRINTER));\n dashboardAlmostOutOfStockXTable1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n dashboardAlmostOutOfStockXTable1.setHighlighters(HighlighterFactory.createSimpleStriping(HighlighterFactory.CLASSIC_LINE_PRINTER));\n }",
"private void initView() {\n\t\tuiBinder.createAndBindUi(this);\n\t\tRootPanel.get(\"rolePanelContainer\").add(cpanel);\n\t\t\n\t\tlb.setVisibleItemCount(VISIBLE_ITEM);\n\t\t\n\t\t// Fill the combo\n\t\tList<RoleEnum> comboList = RoleEnum.comboList();\n\t\tfor (int i = 0; i < comboList.size(); i++) {\n\t\t\tlbRoleCombo.addItem(comboList.get(i).value);\t\n\t\t}\n\t}",
"public void setupWidgets(){\n // Checkboxes\n CheckBox checkBonus = (CheckBox) getActivity().findViewById(R.id.eCheck_StackYellow);\n CheckBox checkYellowTop = (CheckBox) getActivity().findViewById(R.id.eCheck_StackTop);\n CheckBox checkYellowBottom = (CheckBox) getActivity().findViewById(R.id.eCheck_StackBottom);\n CheckBox checkHP = (CheckBox) getActivity().findViewById(R.id.eCheck_AbleCollect);\n CheckBox checkStacker = (CheckBox) getActivity().findViewById(R.id.eCheck_Stacker);\n CheckBox checkHerder = (CheckBox) getActivity().findViewById(R.id.eCheck_Herder);\n CheckBox checkBinSpecialist = (CheckBox) getActivity().findViewById(R.id.eCheck_BinSpecialist);\n CheckBox checkNoodleSpecialist = (CheckBox) getActivity().findViewById(R.id.eCheck_NoodleSpecialist);\n CheckBox checkInbound = (CheckBox) getActivity().findViewById(R.id.eCheck_Inbound);\n CheckBox checkOther = (CheckBox) getActivity().findViewById(R.id.eCheck_Other);\n }",
"public AddBreakdown() {\n initComponents();\n }",
"private void initialize() {\n\t\tjLabel3 = new JLabel();\n\t\tjLabel = new JLabel();\n\t\tthis.setLayout(null);\n\t\tthis.setBounds(new java.awt.Rectangle(0, 0, 486, 377));\n\t\tjLabel.setText(PluginServices.getText(this,\n\t\t\t\t\"Areas_de_influencia._Introduccion_de_datos\") + \":\");\n\t\tjLabel.setBounds(5, 20, 343, 21);\n\t\tjLabel3.setText(PluginServices.getText(this, \"Cobertura_de_entrada\")\n\t\t\t\t+ \":\");\n\t\tjLabel3.setBounds(6, 63, 190, 21);\n\t\tthis.add(jLabel, null);\n\t\tthis.add(jLabel3, null);\n\t\tthis.add(getLayersComboBox(), null);\n\t\tthis.add(getSelectedOnlyCheckBox(), null);\n\t\tthis.add(getMethodSelectionPanel(), null);\n\t\tthis.add(getResultSelectionPanel(), null);\n\t\tthis.add(getExtendedOptionsPanel(), null);\n\t\tconfButtonGroup();\n\t\tlayersComboBox.setSelectedIndex(0);\n\t\tinitSelectedItemsJCheckBox();\n\t\tdistanceBufferRadioButton.setSelected(true);\n\t\tlayerFieldsComboBox.setEnabled(false);\n\t\tverifyTypeBufferComboEnabled();\n\t}",
"public void init() {\n addStringOption(\"extractionId\", \"Extraction ID\", \"\");\n addStringOption(WORKFLOW_ID, \"Workflow ID\", \"\");\n addEditableComboBoxOption(LIMSConnection.WORKFLOW_LOCUS_FIELD.getCode(), \"Locus\", \"None\", SAMPLE_LOCI);\n addDateOption(\"date\", \"Date\", new Date());\n\n\n addComboBoxOption(RUN_STATUS, \"Reaction state\", STATUS_VALUES, STATUS_VALUES[0]);\n\n addLabel(\"\");\n addPrimerSelectionOption(PRIMER_OPTION_ID, \"Forward Primer\", DocumentSelectionOption.FolderOrDocuments.EMPTY, false, Collections.<AnnotatedPluginDocument>emptyList());\n addPrimerSelectionOption(PRIMER_REVERSE_OPTION_ID, \"Reverse Primer\", DocumentSelectionOption.FolderOrDocuments.EMPTY, false, Collections.<AnnotatedPluginDocument>emptyList());\n addPrimersButton = addButtonOption(ADD_PRIMER_TO_LOCAL_ID, \"\", \"Add primers to my local database\");\n\n\n List<OptionValue> cocktails = getCocktails();\n\n cocktailOption = addComboBoxOption(COCKTAIL_OPTION_ID, \"Reaction Cocktail\", cocktails, cocktails.get(0));\n\n updateCocktailOption(cocktailOption);\n\n cocktailButton = new ButtonOption(COCKTAIL_BUTTON_ID, \"\", \"Edit Cocktails\");\n cocktailButton.setSpanningComponent(true);\n addCustomOption(cocktailButton);\n Options.OptionValue[] cleanupValues = new OptionValue[] {new OptionValue(\"true\", \"Yes\"), new OptionValue(\"false\", \"No\")};\n ComboBoxOption cleanupOption = addComboBoxOption(\"cleanupPerformed\", \"Cleanup performed\", cleanupValues, cleanupValues[1]);\n StringOption cleanupMethodOption = addStringOption(\"cleanupMethod\", \"Cleanup method\", \"\");\n cleanupMethodOption.setDisabledValue(\"\");\n addStringOption(\"technician\", \"Technician\", \"\", \"May be blank\");\n cleanupOption.addDependent(cleanupMethodOption, cleanupValues[0]);\n TextAreaOption notes = new TextAreaOption(\"notes\", \"Notes\", \"\");\n addCustomOption(notes);\n\n labelOption = new LabelOption(LABEL_OPTION_ID, \"Total Volume of Reaction: 0uL\");\n addCustomOption(labelOption);\n }",
"private void initImlProb_GuiBean(){\n imlProbGuiBean = new IMLorProbSelectorGuiBean();\n this.imtPanel.add(imlProbGuiBean, new GridBagConstraints( 0, 0, 1, 1, 1.0, 1.0,\n GridBagConstraints.CENTER,GridBagConstraints.BOTH, defaultInsets, 0, 0 ));\n }",
"private void initPopupViewControls(){\n // Get layout inflater object.\n LayoutInflater layoutInflater = LayoutInflater.from(getActivity());\n\n // Inflate the popup dialog from a layout xml file.\n popupInputDialogView = layoutInflater.inflate(R.layout.custom_popup_add_new_communication_record, null);\n\n // Get user input edittext and button ui controls in the popup dialog.\n _interactionTypeSpinner = popupInputDialogView.findViewById(R.id.inteructionTypeSpinner);\n _details = popupInputDialogView.findViewById(R.id.details);\n _specialNote = popupInputDialogView.findViewById(R.id.specialNote);\n _nextActionTypeSpinner = popupInputDialogView.findViewById(R.id.nextActionTypeSpinner);\n _nextActionDate = popupInputDialogView.findViewById(R.id.nextActionDate);\n _nextMeetingLocation = popupInputDialogView.findViewById(R.id.nextMeetingLocation);\n\n _saveFamilyMember = popupInputDialogView.findViewById(R.id.button_save_user_data);\n _cancelInput = popupInputDialogView.findViewById(R.id.button_cancel_user_data);\n\n\n }",
"public ClienteVisao() {\n initComponents();\n iniciaConexao();\n pesquisaCamposParaInserirComboBox();\n }",
"public void initializeButtons() {\n\t\tif(null!=itemPanel)\n\t\t\tremove(itemPanel);\n\t\t\n\t\titemPanel = new JPanel();\n\t\titemPanel.setLayout(new FlowLayout());\n\t\tList<Item> allItems = itemDao.readAll();\n\t\t\n\t\t//Sort list of items based on item code.\n\t\tCollections.sort(allItems, new Comparator<Item>() {\n\t\t\t@Override\n\t\t\tpublic int compare(Item o1, Item o2) {\n\t\t\t\tCharacter c1 = o1.getCode();\n\t\t\t\tCharacter c2 = o2.getCode();\n\t\t\t\treturn c1.compareTo(c2);\n\t\t\t}\n\t\t});\n\t\t\n\t\tfor(final Item item : allItems){\n\t\t\tJButton addButton = new JButton(item.getName());\n\t\t\tDeal deal = item.getDeal();\n\t\t\tString dealName = deal == null ? \"\" : \"<br>\" + deal.getName();\n\t\t\t//Set tool tip as description and deal if available\n\t\t\taddButton.setToolTipText(\"<html>\"+item.getDescription()+\"<br>Price: $\"+item.getPrice()\n\t\t\t\t\t+ dealName+\"</html>\");\n\t\t\t//Add item to cart when pressed, also update cartLabel.\n\t\t\taddButton.addActionListener(new ActionListener() {\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tcart.addItem(item.getCode());\n\t\t\t\t\tcartLabel.setText(cart.size()+ \" items in your cart\");\n\t\t\t\t}\n\t\t\t});\n\t\t\t//addButton.setBounds(10, frameHeight, 75, 20);\n\t\t\taddButton.setSize(new Dimension(75, 20));\n\t\t\titemPanel.add(addButton);\n\t\t}\n\t\t\n\t\titemPanel.setBounds(10, 30, 280, 150);\n\t\tadd(itemPanel);\n\t\tMain.getFrame().setVisible(true);;\n\t}",
"private void initComponents() {\n\t\t\n\t}",
"private void initComponents() {\n\t\t\n\t}",
"public JPanelTicket_backUp() {\n\n initComponents();\n }",
"public receipt() {\n initComponents();\n \n }"
]
| [
"0.69124556",
"0.662743",
"0.65649444",
"0.6548717",
"0.6529054",
"0.64712566",
"0.6456296",
"0.64496607",
"0.6366396",
"0.6363389",
"0.63539606",
"0.6352231",
"0.6331789",
"0.6292674",
"0.62894905",
"0.62752205",
"0.62680715",
"0.6249577",
"0.6248646",
"0.62460035",
"0.6212756",
"0.61971",
"0.6193722",
"0.6189407",
"0.61762637",
"0.6159925",
"0.6147115",
"0.614421",
"0.61305666",
"0.6126423",
"0.6116569",
"0.61041105",
"0.6096083",
"0.60841703",
"0.60833347",
"0.60707086",
"0.6069999",
"0.6069676",
"0.60690975",
"0.6054956",
"0.6037515",
"0.6030884",
"0.6029041",
"0.60284066",
"0.60238487",
"0.60217166",
"0.60217166",
"0.60068697",
"0.59997857",
"0.5999509",
"0.59991145",
"0.5988309",
"0.59873927",
"0.59867346",
"0.5986247",
"0.5985615",
"0.59817624",
"0.59815854",
"0.59808993",
"0.59792167",
"0.5976838",
"0.5974348",
"0.59683657",
"0.5967126",
"0.59663343",
"0.5957718",
"0.59537715",
"0.5947931",
"0.59399176",
"0.5938524",
"0.5936301",
"0.5934628",
"0.5930232",
"0.59285283",
"0.59258837",
"0.59226555",
"0.59169775",
"0.5912967",
"0.59119624",
"0.5909327",
"0.5907419",
"0.5906267",
"0.5902939",
"0.5900605",
"0.59005827",
"0.58999294",
"0.5889654",
"0.58895165",
"0.5879611",
"0.5875986",
"0.5871726",
"0.5870253",
"0.5870162",
"0.5868503",
"0.58671",
"0.5862098",
"0.5860441",
"0.5860441",
"0.58588934",
"0.5852893"
]
| 0.60170835 | 47 |
Delete the server stats up to the specified date. | public void delete(long serverId, Date date)
{
Query query = getSession().createQuery("DELETE FROM ServerStats WHERE serverId=:id AND date <= :date");
query.setParameter("id", serverId);
query.setParameter("date", date);
query.executeUpdate();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void deleteSiteStats () throws DataServiceException;",
"@DELETE\n @Path(\"/{nom}/{date}\")\n public Response remove(@PathParam(\"nom\") String nom, @PathParam(\"date\") String date) {\n DataAccess dataAccess = DataAccess.begin();\n try {\n dataAccess.deleteEvent(nom, date);\n dataAccess.closeConnection(true);\n return Response.status(Response.Status.NO_CONTENT).build();\n } catch (Exception e) {\n dataAccess.closeConnection(false);\n return Response.status(Response.Status.NOT_FOUND).entity(\"Event not found\\n\").build();\n }\n }",
"public void deleteFreezed (Timestamp dateCurrent){\r\n try (Connection connection = jdbcUtils.getConnection();){\r\n preparedStatement = connection.prepareStatement(DELETE_FOLLOWERS_BY_END_DATE_SQL);\r\n preparedStatement.setTimestamp(DATE_DELETE_FOLLOWERS_BY_END_DATE_SQL_NUMBER, dateCurrent);\r\n preparedStatement.executeUpdate();\r\n }catch (SQLException ex) {\r\n configLog.init();\r\n logger.info(LOG_SQL_EXCEPTION_MESSAGE + AdminDao.class.getName());\r\n Logger.getLogger(AdminDao.class.getName()).log(Level.SEVERE, null, ex);\r\n throw new RuntimeException();\r\n }\r\n }",
"void unsetDate();",
"public int deleteExpiredVersions() {\n // Get session and begin transaction\n Session session = DBHelper.getSession();\n Transaction transaction = session.beginTransaction();\n\n // Query for the document\n Query query = session.getNamedQuery(Version.DELETE_WITH_DELETION_DATE_BEFORE_QUERY);\n query.setParameter(Version.DELETE_WITH_DELETION_DATE_BEFORE_QUERY_PARAM, LocalDate.now());\n int deletionCount = query.executeUpdate();\n\n // Commit and close\n transaction.commit();\n session.close();\n\n logger.info(\"Deleted \" + deletionCount + \" versions past their retention date!\");\n return deletionCount;\n }",
"void unsetFoundingDate();",
"public void wipeDateFromRealm() {\n nearByPlacesDAO.deleteFromDB();\n }",
"private void deleteOldData() {\n Date today = SunshineDateUtils.getNormalizedUtcDateForToday();\n weatherDao.deleteOldWeather(today);\n }",
"public int removeHistory(String type, Date startDate, Date endDate);",
"public void deleteShowing(Screen screen, String date, String time) {\n filmEdit.deleteShowing(screen, date, time);\n }",
"public static void purgeExpired()\n {\n Date now = new Date();\n List<DealWatchRecord> allRecords = getAllRecords(null);\n for (int i = 0; i < allRecords.size(); i++)\n {\n DealWatchRecord record = allRecords.get(i);\n if (record != null && record.expiration != null)\n {\n if (record.expiration.getTime() < now.getTime())\n {\n record.delete();\n }\n }\n }\n }",
"public void deleteAnswerStatistics(int sid);",
"int deleteByBefore(@Param(\"time\") Date time);",
"public void deleteExpiredAbsences() throws SQLException {\n java.sql.Date sqlExpiryDate = java.sql.Date.valueOf(LocalDate.now());\n String SQLStmt = \"DELETE FROM ABSENCE WHERE DATE < '\" + sqlExpiryDate + \"';\";\n try (Connection con = dbc.getConnection()) {\n Statement statement = con.createStatement();\n statement.executeUpdate(SQLStmt); \n }\n }",
"public void removeDate( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(this.model, this.getResource(), DATE, value);\r\n\t}",
"public static void deleteWaitlistEntry(String name, Date date) {\r\n con = DBConnection.getConnection();\r\n try {\r\n PreparedStatement delete = con.prepareStatement(\"DELETE from Waitlist where Faculty = ? and DATE = ?\");\r\n delete.setString(1, name);\r\n delete.setDate(2, date);\r\n delete.executeUpdate();\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"void cleanUpExpiredSessions() {\n try (TarantoolClient client = clientSource.getClient()) {\n client.select(getSpace(client), SPACE_EXPIRY_INDEX, Integer.MAX_VALUE, 0, Iter.LE);\n client.setLong(System.currentTimeMillis());\n Result result = client.execute();\n Set<UUID> ids = new HashSet<>();\n while (result.next()) {\n ids.add(new UUID(result.getLong(2), result.getLong(3)));\n }\n ids.forEach(id -> deleteById(id, client));\n if (logger.isDebugEnabled()) {\n logger.debug(\"Cleaned up \" + ids.size() + \" expired sessions\");\n }\n }\n }",
"public void removeByTodoDateTime(Date todoDateTime);",
"@Override\n public synchronized boolean clearExpired(Date date) {\n return false;\n }",
"public void removeFromReminders(Date reminders);",
"private void removeDate() {\r\n\t\tMyReportProperties.removeProperties(IreportConstant.CLASS_NAME);\r\n\t\tMyReportProperties.removeProperties(IreportConstant.METHOD_NAME);\r\n\t}",
"void clearStatistics();",
"@Override\n\t\tpublic boolean clearExpired(Date date) {\n\t\t\treturn false;\n\t\t}",
"public static int deleteSessionId(){\n\t\tint totalDeleted = 0;\n\t\t//This should total 12 hours in milliseconds\n\t\tlong twelveHours = 1000 * 60 * 60 * 12; \n\t\t//Current time (long format)\n\t\tDate date = new Date();\n\t\tlong currentTimeMilliseconds = date.getTime();\n\t\t//Current time - 12 hours\n\t\tlong timeToDeleteBy = currentTimeMilliseconds - twelveHours;\n\t\t\n\t\tDatastoreService datastore = DatastoreServiceFactory.getDatastoreService();\n\t\t\n\t\t//Prepare the Query. No filters as we want ALL sessionIds\n\t\tQuery q = new Query(\"sessionId\");\n\t\t\n\t\t// Use PreparedQuery interface to retrieve results\n\t\tPreparedQuery pq = datastore.prepare(q);\n\t\t//Loops through all results. In our case, we are going to just use the first one\n\t\tfor (Entity result : pq.asIterable()) {\n\t\t\tlog.warning(\"Entity returned, found sessionId\");\n\t\t\t\n\t\t\tlong expiryTime = 0L;\n\t\t\ttry { //Try catch here in case the casting goes incorrectly\n\t\t\t\texpiryTime = (long) result.getProperty(\"dateCreated\");\n\t\t\t} catch (Exception e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif(expiryTime == 0){\n\t\t\t\tcontinue; //Breaks the current loop\n\t\t\t}\n\t\t\t//Check against the date and see if it is more than 12 hours old\n\t\t\tif(expiryTime < timeToDeleteBy){\n\t\t\t\t//More than 12 hours old, delete \n\t\t\t\tKey key = result.getKey();\n\t\t\t\tdatastore.delete(key);\n\t\t\t\t//Increment the counter so we know one was deleted\n\t\t\t\ttotalDeleted++;\n\t\t\t}\t\t\n\t\t}\n\t\treturn totalDeleted;\n\t}",
"public void removeAllDate() {\r\n\t\tBase.removeAll(this.model, this.getResource(), DATE);\r\n\t}",
"public String RemoveGame(String date) {\n \tString message = null;\n \tif (date != null) {\n \t\ttry {\n \t\t\tDBConnect();\n \t\t\tdatabase.DeleteGame(date);\n \t\t\tdatabase.DatabaseDisconnect();\n \t\t\tmessage = \"Successful game removal.\";\n \t\t}\n \t\tcatch (Exception e) {\n \t\t\tSystem.out.println(\"Error with game removal request.\");\n \t\t\tmessage = \"Error removing game.\";\n \t\t}\n \t}\n \treturn message;\n }",
"public void clean() {\n Long now = System.currentTimeMillis();\n for (Iterator<Long> iterator = this.deleted.iterator(); iterator.hasNext();) {\n Long l = iterator.next();\n if (l < now) {\n iterator.remove();\n }\n }\n }",
"public void deleteHistory() {\n weatherRepo.deleteAll();\n }",
"void clearStatistics() throws IOException;",
"void deleteLiveRecords( final Date boundary )\n throws DataAccessException ;",
"@Test\n void testDeleteEntriesByDate() {\n jpaTm()\n .transact(\n () -> {\n Spec11ThreatMatchDao.deleteEntriesByDate(jpaTm(), TODAY);\n ImmutableList<Spec11ThreatMatch> persistedToday =\n Spec11ThreatMatchDao.loadEntriesByDate(jpaTm(), TODAY);\n assertThat(persistedToday).isEmpty();\n });\n\n // Verify that all other entries were not removed\n jpaTm()\n .transact(\n () -> {\n ImmutableList<Spec11ThreatMatch> persistedYesterday =\n Spec11ThreatMatchDao.loadEntriesByDate(jpaTm(), YESTERDAY);\n assertThat(persistedYesterday)\n .comparingElementsUsing(immutableObjectCorrespondence(\"id\"))\n .containsExactlyElementsIn(getThreatMatchesYesterday());\n });\n }",
"private void eliminateDay() {\r\n\tdayElimTimer.cancel();\r\n\tdayElimTimer.purge();\r\n\r\n\t// playerIDs.remove(playerOnTrialID);\r\n\tplayers.remove(playerOnTrialID);\r\n\r\n\tif (mafia.contains(playerOnTrialID)) {\r\n\t int index = mafia.indexOf(playerOnTrialID);\r\n\t mafia.remove(index);\r\n\r\n\t} else {\r\n\t int index = innocentIDs.indexOf(playerOnTrialID);\r\n\t innocentIDs.remove(index);\r\n\t}\r\n\r\n\tserver.setPlayerMuted(playerOnTrialID, true);\r\n\r\n\tserver.publicMessage(server.getUsername(playerOnTrialID) + \" has been eliminated\");\r\n\r\n\tplayerOnTrialID = null;\r\n\telimDay.clear();\r\n\tsave.clear();\r\n\telimDayVoteInProgress = false;\r\n\r\n\tcheckWin();\r\n }",
"public int delete(Connection conn){\r\n int rowsAffected = 0;\r\n\r\n try{\r\n String sql = \"delete from tblfiledrop where auditdate < (getdate()-5)\";\r\n PreparedStatement ps = conn.prepareStatement(sql);\r\n rowsAffected = ps.executeUpdate();\r\n ps.close();\r\n }\r\n catch(Exception e){\r\n logger.fatal(\"FileDrop.delete: \" + e.toString());\r\n }\r\n\r\n return rowsAffected;\r\n\r\n }",
"public void clear() {\n this.dates = new HashSet<>();\n }",
"int deleteByPrimaryKey(Date day, Integer hour, String mscid);",
"public void clearDateALR() {\r\n\t\t//System.out.println(\"Clear= \" + counter);\r\n\t\twhile (historyDate.size() != counter) {\r\n\t\t\thistoryDate.removeLast();\r\n\t\t\thistoryAL.removeLast();\r\n\t\t}\r\n\t}",
"public List<Stats> findStatsPerTime(String date) {\n\t\treturn null;\r\n\t}",
"private void deleteTravel(int month, int day) throws SQLException {\n\t\tdeleteTravelStatement.clearParameters();\n\t\tdeleteTravelStatement.setInt(1, month);\n\t\tdeleteTravelStatement.setInt(2, day);\n\t\tdeleteTravelStatement.executeUpdate();\n\t}",
"private void removeOutOfDateData(List<DetailedData> detailedDatas)\n {\n for (Iterator<DetailedData> it = detailedDatas.iterator(); it.hasNext();)\n {\n DetailedData data = it.next();\n if (TuvState.OUT_OF_DATE.getName().equalsIgnoreCase(data.getState()))\n {\n it.remove();\n }\n }\n }",
"private void removeStats(int index) {\n ensureStatsIsMutable();\n stats_.remove(index);\n }",
"public void removeAfterDate(Date d) {\n for (int i = 0; i < this._noOfItems; i++) {\n FoodItem currentItem = this._stock[i];\n // if item's expiry date before the date param\n if (currentItem.getExpiryDate().before(d)) {\n // remove it from the stock\n removeAtIndex(i);\n // because an item was removed from [i], we'd like to stay in same indexer\n // (because all items are \"shifted\" back in the array)\n i--;\n }\n }\n }",
"@Delete({\n \"delete from A_SUIT_MEASUREMENT\",\n \"where user_id = #{userId,jdbcType=INTEGER}\",\n \"and measure_date = #{measureDate,jdbcType=TIMESTAMP}\"\n })\n int deleteByPrimaryKey(@Param(\"userId\") Integer userId, @Param(\"measureDate\") Date measureDate);",
"@Path(\"/schedule\")\n @DELETE\n public Response cancelStorageReportSchedule(){\n log.debug(\"Cancelling all scheduled storage reports\");\n\n try {\n String responseText = resource.cancelStorageReportSchedule();\n return responseOk(responseText);\n } catch (Exception e) {\n return responseBad(e);\n }\n }",
"public static void removeDate( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(model, instanceResource, DATE, value);\r\n\t}",
"@DeleteMapping(\"/day-times/{id}\")\n @Timed\n public ResponseEntity<Void> deleteDayTime(@PathVariable Long id) {\n log.debug(\"REST request to delete DayTime : {}\", id);\n dayTimeRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"dayTime\", id.toString())).build();\n }",
"public interface LogInfoDao extends EntityMybatisDao<LogInfo> {\n\n /**\n * 删除三十天内的执行日志\n */\n @Delete(\"delete from log_info where DATE_SUB(CURDATE(), INTERVAL 10 DAY) >= date(create_time)\")\n void deleteLoginfoByCreateTime();\n}",
"private void removeOlderGigs() {\n\t\tCalendar cal = Calendar.getInstance();\r\n\t\tint currentHr = cal.get(Calendar.HOUR_OF_DAY);\r\n\t\t\r\n\t\tif ((currentHr >= 0 && currentHr <= 7)) {\r\n\t\t\t//Log.d(TAG, \"deleting older gigs\");\r\n\t\t\tmGigsDbHelper.deleteOlderGigs();\r\n\t\t}\r\n\t\t\r\n\t}",
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete HistouriqueStatutDemande : {}\", id);\n histouriqueStatutDemandeRepository.deleteById(id);\n }",
"public Result deleteStudyReportRecord(String identifier, String dateString) {\n UserSession session = getAuthenticatedSession(DEVELOPER, WORKER);\n \n reportService.deleteStudyReportRecord(session.getStudyIdentifier(), identifier, dateString);\n \n return okResult(\"Report record deleted.\");\n }",
"public void delete(HrCStatitem entity);",
"void statsReset();",
"void saveLastServerUpdate(Date date);",
"private void removeExistingMeasurementsFromCurrentDate(Treatment treatment, Vital vitalToSync) {\n logger.info(String.format(CLEANING_EXISTING_MEASUREMENTS_FOR_TODAY_S, getCurrentDate()));\n final VitalsSynchronization vitalsSynchronization = getVitalsSynchronization(treatment);\n final VitalMeasurement vitalMeasurement = getVitalMeasurement(vitalToSync, vitalsSynchronization);\n if (vitalMeasurement.getMeasurements() != null && !vitalMeasurement.getMeasurements().isEmpty()) {\n final List<Measurement> measurementsFromCurrentDate = vitalMeasurement.getMeasurements().stream().filter(measurement -> measurement.getDate().compareTo(getCurrentDate()) == 0).collect(Collectors.toList());\n for (Measurement measurementToDelete : measurementsFromCurrentDate) {\n logger.info(String.format(REMOVING_MEASUREMENT_S, measurementToDelete.toString()));\n vitalMeasurement.getMeasurements().remove(measurementToDelete);\n }\n }\n }",
"public void killServer(){\n\n try {\n server.close();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // figuring out avg time for all files received\n long temp = 0;\n for (Long time : totalTimes) {\n temp += time;\n }\n long avgTime = temp / fileCount;\n\n // ending messages\n String outMessage = \"\\n\\nThe avg time to receive \"+fileCount+\" files is: \"+avgTime+\"MS\";\n System.out.println(outMessage.toUpperCase());\n System.out.println(\"SERVER IS DONE!\");\n }",
"public void delete(long setId) throws ServerException;",
"List<MongoDBEntry<K, V>> removeExpiredData(byte[] lastKey);",
"@Override\n public void deleteStatus(Status s) {\n }",
"private synchronized void removeOld() {\r\n long days = settings.getLong(\"channelHistoryKeepDays\");\r\n Map<String, Long> h = settings.getMap(HISTORY_SETTING);\r\n long keepAfter = System.currentTimeMillis() - days * DAY;\r\n Iterator<String> it = h.keySet().iterator();\r\n while (it.hasNext()) {\r\n String channel = it.next();\r\n long time = h.get(channel);\r\n if (time < keepAfter) {\r\n it.remove();\r\n }\r\n }\r\n settings.putMap(HISTORY_SETTING, h);\r\n settings.setSettingChanged(\"channelHistory\");\r\n }",
"@Override\r\n\tpublic int deleteDBInfo(AgentDBInfoVO vo){\n\t\treturn sqlSession.getMapper(CollectMapper.class).deleteDBInfo(vo);\r\n\t}",
"int deleteByPrimaryKey(String bscid, Date day, Integer hour);",
"private void clearCachedLocationForServer(final String server) {\n boolean deletedSomething = false;\n synchronized (this.cachedRegionLocations) {\n if (!cachedServers.contains(server)) {\n return;\n }\n for (Map<byte[], HRegionLocation> tableLocations :\n cachedRegionLocations.values()) {\n for (Entry<byte[], HRegionLocation> e : tableLocations.entrySet()) {\n HRegionLocation value = e.getValue();\n if (value != null\n && value.getHostnamePort().equals(server)) {\n tableLocations.remove(e.getKey());\n deletedSomething = true;\n }\n }\n }\n cachedServers.remove(server);\n }\n if (deletedSomething && LOG.isDebugEnabled()) {\n LOG.debug(\"Removed all cached region locations that map to \" + server);\n }\n }",
"@Override\r\n\tpublic void flushAll(Date date) {\n\t\t\r\n\t}",
"private void refreshDBDangerZone(){\n FirebaseDatabase.getInstance().getReference().child(\"Danger Zone Markers\")\n .addListenerForSingleValueEvent(new ValueEventListener() {\n Date currentDate = new Date();\n String currentDateString = currentDate.toString();\n String getCurrentDateSubString = currentDateString.substring(0,10);\n\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n int numberOfMarkers = 0;\n for (DataSnapshot snapshot : dataSnapshot.getChildren()) {\n numberOfMarkers++;\n String markerDate = snapshot.child(\"time\").getValue().toString();\n System.out.println(\"MARKER DATE: \" + markerDate);\n System.out.println(\"CURRENT DATE: \" + getCurrentDateSubString);\n if(numberOfMarkers>1){\n if(!(markerDate.contains(getCurrentDateSubString))) {\n snapshot.getRef().removeValue();\n }\n }\n\n\n }\n\n }\n @Override\n public void onCancelled(DatabaseError databaseError) {\n }\n });\n }",
"public synchronized static void cleanOldFiles() {\n\t\tGregorianCalendar yesterday = new GregorianCalendar();\n\t\tyesterday.roll(GregorianCalendar.HOUR_OF_DAY,-4);\n\t\tcleanOldFiles(yesterday.getTime());\n\t}",
"private static void deleteInstance(String[] args,String command,List<ExampleServer> servers) {\n \n if (args.length != 1) {\n System.err.println(\"syntax error (expected delete <name>): \" + command);\n return;\n }\n \n final String serviceName = args[0];\n ExampleServer server = Iterables.find(servers,server1 -> server1.getThisInstance().getName()\n .endsWith(serviceName),null);\n if (server == null) {\n System.err.println(\"No servers found named: \" + serviceName);\n return;\n }\n \n servers.remove(server);\n CloseableUtils.closeQuietly(server);\n System.out.println(\"Removed a random instance of: \" + serviceName);\n }",
"private void deleteExpiredTemporaryExportFiles(List<COSite> cosites) {\r\n\tint timeOut = getDeleteExportDelay();\r\n\tfor (Iterator<COSite> iter = cosites.iterator(); iter.hasNext();) {\r\n\t try {\r\n\t\tSite site =\r\n\t\t\tsiteService.getSite(((COSite) iter.next()).getSiteId());\r\n\t\tString id = getSiteReference(site) + TEMP_DIRECTORY;\r\n\t\tid = id.substring(8) + \"/\";\r\n\t\t// enableSecurityAdvisor();\r\n\t\tlog.info(\"*** deleteExpiredTemporaryExportFiles enableSecurityAdvisor() { OsylManagerServiceImpl *** \");\r\n\r\n\t\tif (collectionExist(id)) {\r\n\t\t ContentCollection contentCollection =\r\n\t\t\t contentHostingService.getCollection(id);\r\n\t\t @SuppressWarnings(\"unchecked\")\r\n\t\t List<ContentEntity> members =\r\n\t\t\t contentCollection.getMemberResources();\r\n\r\n\t\t // process members\r\n\t\t boolean hasContent = false;\r\n\t\t for (Iterator<ContentEntity> iMbrs = members.iterator(); iMbrs\r\n\t\t\t .hasNext();) {\r\n\t\t\tContentEntity next = (ContentEntity) iMbrs.next();\r\n\t\t\tString thisEntityRef = next.getId();\r\n\t\t\tContentResource contentResource =\r\n\t\t\t\tcontentHostingService\r\n\t\t\t\t\t.getResource(thisEntityRef);\r\n\r\n\t\t\tTime creationDate =\r\n\t\t\t\t(Time) contentResource\r\n\t\t\t\t\t.getProperties()\r\n\t\t\t\t\t.getTimeProperty(\r\n\t\t\t\t\t\tResourceProperties.PROP_CREATION_DATE);\r\n\t\t\tTime now = timeService.newTime();\r\n\t\t\tTime expirationTime = timeService.newTime();\r\n\t\t\texpirationTime.setTime(creationDate.getTime() + timeOut\r\n\t\t\t\t* 60000);\r\n\t\t\tif (now.after(expirationTime)) {\r\n\t\t\t contentHostingService.removeResource(thisEntityRef);\r\n\t\t\t} else {\r\n\t\t\t hasContent = true;\r\n\t\t\t}\r\n\t\t }\r\n\t\t if (!hasContent) {\r\n\t\t\tcontentHostingService.removeCollection(id);\r\n\t\t }\r\n\t\t}\r\n\t\t// securityService.popAdvisor();\r\n\t } catch (Exception e) {\r\n\t\te.printStackTrace();\r\n\t }\r\n\t}\r\n }",
"@DeleteMapping(path = \"patient\")\n public ResponseEntity<?> deleteByPatient(@RequestParam Long ssn,\n @RequestParam @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate date) {\n\n if (!prescriptionService.getByPatient(ssn).isPresent()) {\n return ResponseEntity.status(HttpStatus.NOT_FOUND).body(\"Patient not found!\");\n }\n\n if (!prescriptionService.getByDate(date).isPresent()) {\n return ResponseEntity.status(HttpStatus.NOT_FOUND).body(\"Date not found!\");\n }\n\n prescriptionService.deleteByPatientAndDate(ssn, date);\n\n return ResponseEntity.ok().body(\"Prescription deleted!\");\n }",
"public void deleteFromTable(String plate, String date){\n \n //plate = convertToDBForm(plate);\n try {\n //delete all rows with that date in table \n stmt = conn.createStatement();\n stmt.executeUpdate(\"DELETE FROM \" + plate + \" WHERE DATA = '\" + date + \"'\");\n \n //delete all rows with that date in distbelt\n stmt.executeUpdate(\"DELETE FROM DISTBELT WHERE DATE = '\" + date + \"'\");\n \n stmt.close();\n\n } catch (SQLException ex) {\n Logger.getLogger(DBHandler.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }",
"public int delete(String serverName, String serverCmd){\n\t\treturn dbWritable.delete(\"servers\", LicLiteData.SERVER_NAME+\"=? AND \" + LicLiteData.SERVER_CMD + \"=?\"\n\t\t\t\t, new String[]{serverName, serverCmd});\n\t}",
"void stopStatisticsMonitor();",
"void unsetAppliesDateTime();",
"public void removeExpiredFiles() {\n \t\n \tsetCurrentTimeNow();\n\n File dir = new File(fsResource.getPath());\n File[] list = dir.listFiles(this);\n for (File file : list) {\n \tlogger.info(\"Auto expire file removed: {}\", file.getName());\n \tfile.delete();\n }\n }",
"public void destroy() {\n //Write hit count to DB!!\n }",
"public static Date dropTimeInfo(final Date date) {\n\t\tCalendar cal = Calendar.getInstance(); \n\t\tcal.setTime(date);\n\t\tcal.set(Calendar.HOUR_OF_DAY, 0);\n\t\tcal.set(Calendar.MINUTE, 0);\n\t\tcal.set(Calendar.SECOND, 0);\n\t\tcal.set(Calendar.MILLISECOND, 0);\n\t\treturn cal.getTime();\n\t}",
"public abstract void statsReset();",
"@DeleteMapping(path = \"/audit-log-destinations\")\n public VoidResponse clearAuditLogDestinations(@PathVariable String userId,\n @PathVariable String serverName)\n {\n return adminAPI.clearAuditLogDestinations(userId, serverName);\n }",
"public long deleteInactiveRecords(Timestamp time);",
"public static void Delete() throws FileNotFoundException{\n System.out.println(\"[S]elected, [A]ll\");\n Scanner deleteEventScanner = new Scanner(System.in);\n String deleteOption = deleteEventScanner.next();\n if(deleteOption.equalsIgnoreCase(\"s\")){\n System.out.println(\"Enter the Date to delete all events scheduled on that date(MM/DD/YYYY\");\n String eventsToDelete = deleteEventScanner.next();\n int monthToDelete= Integer.parseInt(eventsToDelete.substring(0,2));\n int dateToDelete = Integer.parseInt(eventsToDelete.substring(3,5));\n int yearToDelete = Integer.parseInt(eventsToDelete.substring(6));\n delete.set(yearToDelete, monthToDelete-1, dateToDelete);\n for(int i=0;i<events.size();i++){\n if(events.get(i).getMonth()==delete.get(Calendar.MONTH)&&events.get(i).getDate()==delete.get(Calendar.DATE)&&events.get(i).getYear()==delete.get(Calendar.YEAR)){\n events.remove(i);\n }\n }\n \n \n }\n else if(deleteOption.equalsIgnoreCase(\"a\")){\n events.removeAll(events);\n }\n menu();\n }",
"public void removeByD_S(Date startDate, long status)\n\t\tthrows SystemException {\n\t\tfor (VCal vCal : findByD_S(startDate, status)) {\n\t\t\tremove(vCal);\n\t\t}\n\t}",
"Set<VisitedResource> getVisitingStatistic(Date date);",
"public synchronized static void cleanOldFiles(Date old){\n\t\tfor(File item:context.getCacheDir().listFiles()){\n\t\t\tDate last = new Date(item.lastModified());\n\t\t\tif(last.before(old))\n\t\t\t\titem.delete();\n\t\t}\n\t}",
"@Override\r\n\t\r\n\tpublic void execute() {\n\t\r\n\t\teventsCalendar.delete();\r\n\t}",
"public void resetStats() {\n recentStats = new Stats();\n }",
"public void clearClosingTime() {\n genClient.clear(CacheKey.closingTime);\n }",
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete DqStandardDetailsEntityTime : {}\", id);\n dqStandardDetailsEntityTimeRepository.deleteById(id);\n }",
"public SearchResult clearStatsEntries() {\n this.stats = null;\n return this;\n }",
"public void removeInvalidateUsersFromNewStarPool(double timestamp){\n log.info(\"<removeInvalidateUsersFromNewStarPool> timestamp = \" + timestamp);\n client.zremRangeByScore(newStarDateRedisKey, 0, timestamp);\n }",
"public void deleteReport()\n\t{\n\t\tloading.setVisibility(View.VISIBLE);\n\n\t\tParseQuery<ParseObject> query = ParseQuery.getQuery(\"DCIncident\");\n\t\tquery.getInBackground(incident.getId(), new GetCallback<ParseObject>() \n\t\t{\n\t\t\tpublic void done(ParseObject object, ParseException e) \n\t\t\t{\n\t\t\t\tif (e == null) \n\t\t\t\t{\t\t\n\t\t\t\t\tobject.deleteInBackground(new DeleteCallback()\n\t\t\t\t\t{\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void done(ParseException e) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tIntent returnIntent = new Intent();\n\t\t\t\t\t\t\treturnIntent.putExtra(\"reportPosition\", reportPosition);\n\t\t\t\t\t\t\tsetResult(RESULT_OK, returnIntent);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Report is deleted, go back to previous screen\n\t\t\t\t\t\t\tloading.setVisibility(View.INVISIBLE);\n\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\toverridePendingTransition(R.anim.slide_right_main,\tR.anim.slide_right_sub);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"@Scheduled(cron = \"${shop.reset-password-token-cleanup.cron}\")\n public void cleanUpResetPasswordTokens() {\n Instant pastDateMinus8HoursFromNow = Instant.now().minus(8, ChronoUnit.HOURS);\n List<ResetPasswordToken> resetPasswordTokenList = resetPasswordTokenRepository.findAll();\n List<ResetPasswordToken> expiredOrUsedResetPasswordTokens =\n resetPasswordTokenList.stream().filter(resetPasswordToken -> Boolean.TRUE.equals(resetPasswordToken.isUsed()) ||\n resetPasswordToken.getCreatedDate().toInstant().isBefore(pastDateMinus8HoursFromNow))\n .collect(Collectors.toList());\n\n for (ResetPasswordToken resetPasswordToken: expiredOrUsedResetPasswordTokens) {\n resetPasswordTokenRepository.deleteById(resetPasswordToken.getTokenId());\n }\n log.info(\"Deleted {} expired or used password reset tokens.\", expiredOrUsedResetPasswordTokens.size());\n }",
"DeleteResponse delete(Key key, int time);",
"public Delta removeStat(String stat) {\n Map<String, Map<String, String>> parsedStat = StatsHolder.parseStat(stat);\n Map<String, Map<String, String>> currentStats = _removedStats.getMapFields();\n for (String statName : parsedStat.keySet()) {\n currentStats.put(statName, parsedStat.get(statName));\n }\n return this;\n }",
"public void deleteByTypeAndLessThenTS(String type, long ts) {\n jdbcTemplate.update(\"DELETE FROM Watchlist WHERE type = ? AND ts < ?\", type, ts);\n }",
"public void removeByD_S_G(Date startDate, long status, long groupId)\n\t\tthrows SystemException {\n\t\tfor (VCal vCal : findByD_S_G(startDate, status, groupId)) {\n\t\t\tremove(vCal);\n\t\t}\n\t}",
"public void deleteSnippeFromDB(int id) {\r\n statsRepo.deleteById(id);\r\n }",
"public static void deleteTimeButtonClicked() {\n ObservableList<Occasion> allTimes;\n allTimes = tableHoliday.getItems();\n Occasion occasion = tableHoliday.getSelectionModel().getSelectedItem();\n\n allTimes.remove(occasion);\n OccasionCommunication.removeOccasion(occasion.getId());\n }",
"public static void delete() {\n\t\tSystem.out.println(\"Do you want to delete events on a [S]elected date or [A]ll events?\");\n\t\tScanner sc = new Scanner(System.in);\n\t\tString input = \"\";\n\t\tif (sc.hasNextLine()) {\n\t\t\tinput = sc.nextLine().toLowerCase();\n\t\t\tif (input.equals(\"s\")) {\n\t\t\t\tSystem.out.println(\"s\");\n\t\t\t\tSystem.out.println(\"What day do you want to delete the events on? In MM/DD/YYYY\");\n\t\t\t\tString date = sc.nextLine();\n\t\t\t\tint month = Integer.parseInt(date.substring(0, 2));\n\t\t\t\tint day = Integer.parseInt(date.substring(3, 5));\n\t\t\t\tint year = Integer.parseInt(date.substring(6, 10));\n\t\t\t\tGregorianCalendar toDelete = new GregorianCalendar(year, month, day);\n\t\t\t\tcalendarToEvent.remove(toDelete);\n\t\t\t\tquit(); //to save the new treemap to the events.txt\n\t\t\t\tSystem.out.println(\"Removed\");\n\t\t\t} else if (input.equals(\"a\")) {\n\t\t\t\tSystem.out.println(\"a\");\n\t\t\t\tSystem.out.println(\"Deleting all events\");\n\t\t\t\tcalendarToEvent = new TreeMap<Calendar, TreeSet<Event>>();\n\t\t\t}\n\t\t}\n\t}",
"void clearUsageReports();",
"@DeleteMapping(\"/statuts/{id}\")\n public void deletStatut(@PathVariable(\"id\") int id) {\n \tserviceStatut.deletStatut(id);\n }",
"public void deleteByCodPersFecha(String dbpool, String codPers, String fecha)\n\t\t\tthrows SQLException {\n\n\t\tStringBuffer strSQL = new StringBuffer(\"\");\n\t\tPreparedStatement pre = null;\n\t\tConnection con = null;\n\n\t\ttry {\n\n\t\t\tstrSQL.append(\"delete from t1271asistencia\"\n\t\t\t\t\t).append( \" where cod_pers = ? and fing = ?\");\n\n\t\t\tcon = getConnection(dbpool);\n\t\t\tpre = con.prepareStatement(strSQL.toString());\n\t\t\tpre.setString(1, codPers);\n\t\t\tpre.setDate(2, new BeanFechaHora(fecha).getSQLDate());\n\t\t\tpre.executeUpdate();\n\n \n\t\t}\n\n\t\tcatch (Exception e) {\n\t\t\tlog.error(\"**** SQL ERROR **** \"+ e.toString());\n\t\t\tthrow new SQLException(e.toString());\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tpre.close();\n\t\t\t} catch (Exception e) {\n\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tcon.close();\n\t\t\t} catch (Exception e) {\n\n\t\t\t}\n\t\t}\n\t}",
"public Server deleteServer(int serverId){\n\t\tlogger.info(\"Destroying the server\");\n\t\tServer server = getServerById(serverId);\n\t\tserver.setServerStatus(ServerStatus.DESTROYED);\n\t\treturn server;\n\t}"
]
| [
"0.6839637",
"0.5698813",
"0.56445885",
"0.5534936",
"0.54458386",
"0.5378095",
"0.52837974",
"0.52782625",
"0.51942694",
"0.5185219",
"0.51722825",
"0.5145539",
"0.50506765",
"0.5009616",
"0.49998346",
"0.49826914",
"0.49821758",
"0.49624977",
"0.4959493",
"0.4958317",
"0.49537677",
"0.49488267",
"0.4922013",
"0.49048275",
"0.49003395",
"0.48854944",
"0.48460913",
"0.48330837",
"0.48258382",
"0.48113164",
"0.47737554",
"0.47737354",
"0.4773538",
"0.4767841",
"0.47569248",
"0.47562784",
"0.4755612",
"0.47495085",
"0.47487596",
"0.47485232",
"0.47471628",
"0.47413802",
"0.4723017",
"0.47187862",
"0.47094846",
"0.47083253",
"0.4694419",
"0.46929288",
"0.46867517",
"0.4674427",
"0.46650317",
"0.46594948",
"0.46452397",
"0.46446988",
"0.46445385",
"0.4642515",
"0.4641697",
"0.46167114",
"0.4615717",
"0.4613561",
"0.46113017",
"0.4609448",
"0.4608968",
"0.45942202",
"0.4587176",
"0.4586293",
"0.45843348",
"0.4576264",
"0.4573487",
"0.45731896",
"0.45710865",
"0.4570038",
"0.45697257",
"0.4568121",
"0.4563488",
"0.45518956",
"0.45496893",
"0.45433766",
"0.45399585",
"0.4537636",
"0.4534574",
"0.45248225",
"0.45187908",
"0.45096266",
"0.45033008",
"0.45025682",
"0.4499787",
"0.44957262",
"0.44946703",
"0.4490792",
"0.44827414",
"0.4479038",
"0.44672874",
"0.44618723",
"0.4459301",
"0.44473284",
"0.44443926",
"0.4436045",
"0.44322807",
"0.44305047"
]
| 0.78529847 | 0 |
Created by Harish on 5/9/2018. | public interface IPCalls {
void attemptToGetQuations();
void sendAnswers(AnswerModel model);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n public int describeContents() { return 0; }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n\tpublic void anular() {\n\n\t}",
"private void poetries() {\n\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\n public void init() {\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n protected void getExras() {\n }",
"@Override\n void init() {\n }",
"public void mo38117a() {\n }",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\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 annadir() {\n\r\n\t\t\t}",
"@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 rozmnozovat() {\n\t}",
"@Override\n public void init() {}",
"public void mo4359a() {\n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {}",
"@Override\n protected void init() {\n }",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public void gored() {\n\t\t\n\t}",
"private void m50366E() {\n }",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\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 jugar() {\n\t\t\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\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}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"private void init() {\n\n\t}",
"protected MetadataUGWD() {/* intentionally empty block */}",
"protected boolean func_70814_o() { return true; }",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n public void initialize() { \n }",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n public int retroceder() {\n return 0;\n }",
"@Override\n public void initialize() {\n \n }",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"@Override\n\tpublic void init() {\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override public int describeContents() { return 0; }",
"private MetallicityUtils() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tpublic void init()\n\t{\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 }",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"private TMCourse() {\n\t}",
"Petunia() {\r\n\t\t}"
]
| [
"0.6130352",
"0.5928052",
"0.5771419",
"0.5759872",
"0.5749009",
"0.57249415",
"0.57249415",
"0.5666665",
"0.5634292",
"0.56297135",
"0.5620553",
"0.5620181",
"0.55848265",
"0.55672467",
"0.55607027",
"0.5554834",
"0.5545397",
"0.55390596",
"0.553846",
"0.553846",
"0.553846",
"0.553846",
"0.553846",
"0.553846",
"0.55149937",
"0.5505338",
"0.5503113",
"0.5500462",
"0.54994255",
"0.5492278",
"0.5488028",
"0.54879177",
"0.5475984",
"0.5469321",
"0.5464224",
"0.5464224",
"0.5464224",
"0.5464224",
"0.5464224",
"0.54474586",
"0.543748",
"0.543748",
"0.5437437",
"0.5432076",
"0.54203296",
"0.5416295",
"0.54071355",
"0.54018813",
"0.5400496",
"0.53924006",
"0.5381351",
"0.5376638",
"0.53683823",
"0.53629655",
"0.53629655",
"0.53629655",
"0.53605336",
"0.53605336",
"0.5360163",
"0.535103",
"0.5349523",
"0.5349523",
"0.5347183",
"0.5347183",
"0.5347183",
"0.53449357",
"0.53435796",
"0.5324328",
"0.5309435",
"0.53088313",
"0.5308791",
"0.53042036",
"0.5301789",
"0.5299102",
"0.5295154",
"0.52929044",
"0.52929044",
"0.52929044",
"0.5290914",
"0.52890116",
"0.52890116",
"0.52890116",
"0.5286838",
"0.52831393",
"0.52826303",
"0.52814174",
"0.5277094",
"0.5272496",
"0.5271501",
"0.5271501",
"0.5271501",
"0.5271501",
"0.5271501",
"0.5271501",
"0.5271501",
"0.5268398",
"0.5261036",
"0.5261036",
"0.52492577",
"0.52481794",
"0.523631"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public int predict(double[] x) {
double[][] inputArray = new double[1][x.length];
for (int i = 0; i < x.length; i++) {
inputArray[0][i] = x[i]-0.5*this.means[0][0][i]-0.5*this.means[1][0][i];
}
Matrix input = new Matrix(inputArray);
double result = this.delta;
// System.out.println(input.times(this.beta.get(label)).getRowDimension());
result += input.times(this.beta).get(0, 0);
// System.out.println(result);
return result > 0 ? 1 : -1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public int predict(double[] x, double[] posteriori) {
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
final View root = inflater.inflate(R.layout.fragment_home, container, false);
Button btnPlay = (Button) root.findViewById(R.id.btn_play);
Button btnAddUser = (Button) root.findViewById(R.id.btn_add_user);
btnAddUser.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
NavHostFragment navHostFragment = (NavHostFragment) getActivity().getSupportFragmentManager().findFragmentById(R.id.nav_host_fragment);
NavController navController = navHostFragment.getNavController();
navController.navigate(R.id.action_homeFragment_to_addUserFragment);
}
});
btnPlay.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Spinner s = root.findViewById(R.id.spinner);
Globals.setActiveUser((String)s.getSelectedItem());
NavHostFragment navHostFragment = (NavHostFragment) getActivity().getSupportFragmentManager().findFragmentById(R.id.nav_host_fragment);
NavController navController = navHostFragment.getNavController();
navController.navigate(R.id.action_homeFragment_to_gameFragment);
}
});
LiveData<List<User>> users = MyDatabase.getInstance(getContext()).userDao().getAllUsers();
users.observe(getViewLifecycleOwner(), new Observer<List<User>>() {
@Override
public void onChanged(List<User> users) {
Spinner spinner = root.findViewById(R.id.spinner);
List<String> list = new ArrayList<>();
for(User u: users){
list.add(u.getUserId()+": "+u.getUsername());
}
ArrayAdapter<String> spinnerAdapter =new ArrayAdapter<String>(HomeFragment.this.getContext(),R.layout.support_simple_spinner_dropdown_item,list);
spinner.setAdapter(spinnerAdapter);
}
});
return root;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}",
"@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }",
"protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}",
"@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }"
]
| [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.6625158",
"0.66195583",
"0.66164845",
"0.6608733",
"0.6596594",
"0.65928894",
"0.6585293",
"0.65842897",
"0.65730995",
"0.6571248",
"0.6569152",
"0.65689117",
"0.656853",
"0.6566686",
"0.65652984",
"0.6553419",
"0.65525705",
"0.65432084",
"0.6542382",
"0.65411425",
"0.6538022",
"0.65366334",
"0.65355957",
"0.6535043",
"0.65329415",
"0.65311074",
"0.65310687",
"0.6528645",
"0.65277404",
"0.6525902",
"0.6524516",
"0.6524048",
"0.65232015",
"0.65224624",
"0.65185034",
"0.65130377",
"0.6512968",
"0.65122765",
"0.65116245",
"0.65106046",
"0.65103024",
"0.6509013",
"0.65088093",
"0.6508651",
"0.6508225",
"0.6504662",
"0.650149",
"0.65011525",
"0.6500686",
"0.64974767",
"0.64935696",
"0.6492234",
"0.6490034",
"0.6487609",
"0.6487216",
"0.64872116",
"0.6486594",
"0.64861935",
"0.6486018",
"0.6484269",
"0.648366",
"0.6481476",
"0.6481086",
"0.6480985",
"0.6480396",
"0.64797544",
"0.647696",
"0.64758915",
"0.6475649",
"0.6474114",
"0.6474004",
"0.6470706",
"0.6470275",
"0.64702207",
"0.6470039",
"0.6467449",
"0.646602",
"0.6462256",
"0.64617974",
"0.6461681",
"0.6461214"
]
| 0.0 | -1 |
/ / / / | private WebElement getCheckBoxElementWithoutSearchbyText(String widgetID, String value) {
/* 53 */ List<WebElement> elementsList = this.webdriver.findElements(By.xpath(".//*[@id='attribute-tree-" + widgetID + "']//span[text() = '" + value + "']"));
/* 54 */ if (elementsList.size() > 0) {
/* 55 */ return elementsList.get(0);
/* */ }
/* 57 */ return null;
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void divide() {\n\t\t\n\t}",
"public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}",
"public abstract String division();",
"public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}",
"private boolean slash() {\r\n return MARK(OPERATOR) && CHAR('/') && gap();\r\n }",
"public abstract void bepaalGrootte();",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"public void gored() {\n\t\t\n\t}",
"public String toString(){ return \"DIV\";}",
"private int parent(int i){return (i-1)/2;}",
"public String ring();",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"private int leftChild(int i){return 2*i+1;}",
"double passer();",
"static void pyramid(){\n\t}",
"public void stg() {\n\n\t}",
"public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }",
"void mo33732Px();",
"Operations operations();",
"private int rightChild(int i){return 2*i+2;}",
"private void division()\n\t{\n\t\tFun = Function.DIVIDE; //Function set to determine what action should be taken later.\n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t}",
"@Override\n\tpublic float dividir(float op1, float op2) {\n\t\treturn op1 / op2;\n\t}",
"void sharpen();",
"void sharpen();",
"double defendre();",
"public int generateRoshambo(){\n ;]\n\n }",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }",
"String divideAtWhite()[]{ return null; }",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"double volume(){\n return width*height*depth;\n }",
"public void skystonePos4() {\n }",
"void ringBell() {\n\n }",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}",
"public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\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{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\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\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"public static void method1(){\n System.out.println(\"*****\");\n System.out.println(\"*****\");\n System.out.println(\" * *\");\n System.out.println(\" *\");\n System.out.println(\" * *\");\n }",
"public int division(int x,int y){\n System.out.println(\"division methods\");\n int d=x/y;\n return d;\n\n }",
"void mo21076g();",
"private boolean dividingByZero(String operator){\n if (numStack.peek() == 0 && operator.equals(\"/\")){\n return true;\n }\n return false;\n }",
"@Override\n public void bfs() {\n\n }",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"Parallelogram(){\n length = width = height = 0;\n }",
"public Divide(){\n }",
"public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }",
"@Override\r\n\tpublic void div(int x, int y) {\n\t\t\r\n\t}",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"@Override\npublic void div(int a, int b) {\n\t\n}",
"private double triangleBase() {\n return cellWidth() / BASE_WIDTH;\n }",
"double volume() {\n\treturn width*height*depth;\n}",
"public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}",
"private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}",
"int getWidth() {return width;}",
"int width();",
"public void divide(int dirOp1, int dirOp2, int dirRes) {\n //traduce casos de direccionamiento indirecto\n dirOp1 = traduceDirIndirecto(dirOp1);\n dirOp2 = traduceDirIndirecto(dirOp2);\n if (ManejadorMemoria.isConstante(dirOp1)) { // OPERANDO 1 CTE\n String valor1 = this.directorioProcedimientos.getConstantes().get(dirOp1).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { //RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n } else if (ManejadorMemoria.isGlobal(dirOp1)) { // OPERANDO 1 GLOBAL\n String valor1 = this.registroGlobal.getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n } else { // OPERANDO 1 LOCAL\n String valor1 = this.pilaRegistros.peek().getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES 2 LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { //OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n }\n }",
"public static void main(String[] args) {\n\n\n\n System.out.println(4 * (1.0 - (1 / 3) + (1 / 5) - (1 / 7) + (1 / 9) - (1 / 11)));\n\n System.out.println(4 * (1.0 - (1/3) + (1/5) - (1/7)\n + (1 / 9) - (1/11) + (1/13)));\n }",
"public static void topHalf() {\n \t\n for( int i = 1; i <= SIZE; i++){\n for(int spaces = 1; spaces <= 3*SIZE - 3*i; spaces++) {\n System.out.print(\" \"); \n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"__/\");\n }\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n System.out.print(\"||\");\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"\\\\__\");\n }\n \n System.out.println();\n }\n \n System.out.print(\"|\");\n \n for(int i = 1; i <= 6 * SIZE; i++) {\n System.out.print(\"\\\"\");\n }\n \n System.out.println(\"|\");\n }",
"@Override\r\n\tpublic int div() {\n\t\treturn 0;\r\n\t}",
"private void renderPath(Node n)\n {\n\tGraphics g = getGraphics();\n\tboolean painting;\n\tColor nc,lc;\n\n\tpainting = (n.paths_passing==0);\n\twhile (n != null) {\n\t if (painting)\n\t\tn.paths_passing++;\n\t else {\n\t\tn.paths_passing--;\n\t }\n\t \n// \t nc = (n.paths_passing > 0)?hilitcolor:normalcolor;\n// \t lc = (n.paths_passing > 0)?hilitcolor:linecolor;\n\t nc = (n.paths_passing > 0)?n.path_color:normalcolor;\n\t lc = (n.paths_passing > 0)?n.path_color:linecolor;\n\t \n\t if (n.parent == null) {\n\t\tsetRenderColor(g,nc);\n\t\trenderNode(g,n);\n\t\tbreak;\n\t }\n\n\t // Double line width\n\t //setRenderColor(g,(n.paths_passing>0)?hilitcolor:Color.white);\n\t setRenderColor(g,(n.paths_passing>0)?n.path_color:Color.white);\n\t renderLine(g,n.x-1,n.y,n.parent.x-1,n.parent.y);\t\n\n\t setRenderColor(g,lc);\n\t renderLine(g,n.x,n.y,n.parent.x,n.parent.y);\n\n\t setRenderColor(g,nc);\n\t renderNode(g,n);\n\t n = n.parent;\n\t}\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"double getPerimeter(){\n return 2*height+width;\n }",
"public void mo3376r() {\n }",
"public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\n\tpublic double divide(double in1, double in2) {\n\t\treturn 0;\n\t}",
"void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }",
"public static void main (String[] args){\n Scanner s=new Scanner(System.in);\n int n=s.nextInt();\n if(n%2==1)\n {\n n=n/2;\n n++;\n }\n else\n {\n n=n/2;\n }\n for(int i=1;i<=n;i++)\n {\n for(int k=1;k<=i-1;k++)\n {\n System.out.print(\" \");\n }\n for(int j=1;j<=((2*n-1)-2*(i-1));j++)\n {\n if(j==1||j==((2*n-1)-2*(i-1)))\n System.out.print(\"*\");\n else\n System.out.print(\" \");\n }\n System.out.println();\n }\n for(int i=2;i<=n;i++)\n {\n for(int k=1;k<=n-i;k++)\n {\n System.out.print(\" \");\n }\n for(int j=1;j<i*2;j++)\n {\n if(j==1||j==(i*2-1))\n System.out.print(\"*\");\n else\n System.out.print(\" \");\n }\n System.out.println();\n }\n\t}",
"public RMPath getPath() { return RMPath.unitRectPath; }",
"void walk() {\n\t\t\n\t}",
"public static void giant() {\n System.out.println(\" --------- \");\n System.out.println(\" | / \\\\| \");\n System.out.println(\" ZZZZZH | O | HZZZZZ \");\n System.out.println(\" H ----------- H \");\n System.out.println(\" ZZZZZHHHHHHHHHHHHHHHHHHHHHZZZZZ \");\n System.out.println(\" H HHHHHHHHHHH H \");\n System.out.println(\" ZZZZZH HHHHHHHHHHH HZZZZZ \");\n System.out.println(\" HHHHHHHHHHH \");\n System.out.println(\" HHH HHH \");\n System.out.println(\" HHH HHH \");\n }",
"public void title ()\n {\n\tprintSlow (\" _ __\");\n\tprintSlow (\" ___ | ' \\\\\");\n\tprintSlow (\" ___ \\\\ / ___ ,'\\\\_ | .-. \\\\ /|\");\n\tprintSlow (\" \\\\ / | |,'__ \\\\ ,'\\\\_ | \\\\ | | | | ,' |_ /|\");\n\tprintSlow (\" _ | | | |\\\\/ \\\\ \\\\ | \\\\ | |\\\\_| _ | |_| | _ '-. .-',' |_ _\");\n\tprintSlow (\" // | | | |____| | | |\\\\_|| |__ // | | ,'_`. | | '-. .-',' `. ,'\\\\_\");\n\tprintSlow (\" \\\\\\\\_| |_,' .-, _ | | | | |\\\\ \\\\ // .| |\\\\_/ | / \\\\ || | | | / |\\\\ \\\\| \\\\\");\n\tprintSlow (\" `-. .-'| |/ / | | | | | | \\\\ \\\\// | | | | | || | | | | |_\\\\ || |\\\\_|\");\n\tprintSlow (\" | | | || \\\\_| | | | /_\\\\ \\\\ / | |` | | | || | | | | .---'| |\");\n\tprintSlow (\" | | | |\\\\___,_\\\\ /_\\\\ _ // | | | \\\\_/ || | | | | | /\\\\| |\");\n\tprintSlow (\" /_\\\\ | | //_____// .||` `._,' | | | | \\\\ `-' /| |\");\n\tprintSlow (\" /_\\\\ `------' \\\\ | AND `.\\\\ | | `._,' /_\\\\\");\n\tprintSlow (\" \\\\| HIS `.\\\\\");\n\tprintSlow (\" __ __ _ _ _ _ \");\n\tprintSlow (\" | \\\\/ | (_) | | /\\\\ | | | | \");\n\tprintSlow (\" | \\\\ / | __ _ __ _ _ ___ __ _| | / \\\\ __| |_ _____ _ __ | |_ _ _ _ __ ___ \");\n\tprintSlow (\" | |\\\\/| |/ _` |/ _` | |/ __/ _` | | / /\\\\ \\\\ / _` \\\\ \\\\ / / _ \\\\ '_ \\\\| __| | | | '__/ _ \\\\\");\n\tprintSlow (\" | | | | (_| | (_| | | (_| (_| | | / ____ \\\\ (_| |\\\\ V / __/ | | | |_| |_| | | | __/\");\n\tprintSlow (\" |_| |_|\\\\__,_|\\\\__, |_|\\\\___\\\\__,_|_| /_/ \\\\_\\\\__,_| \\\\_/ \\\\___|_| |_|\\\\__|\\\\__,_|_| \\\\___|\");\n\tprintSlow (\" __/ | \");\n\tprintSlow (\" |___/ \\n\\n\\n\");\n\n\n }",
"public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}",
"public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}",
"double area() {\nSystem.out.println(\"Inside Area for Triangle.\");\nreturn dim1 * dim2 / 2;\n}",
"private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}",
"public int mo9774x() {\n /*\n r5 = this;\n int r0 = r5.f9082i\n int r1 = r5.f9080g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9082i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9776z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9082i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9774x():int\");\n }",
"public SoNode \ngetCurPathTail() \n{\n//#ifdef DEBUG\n if (currentpath.getTail() != (SoFullPath.cast(getCurPath())).getTail()){\n SoDebugError.post(\"SoAction::getCurPathTail\\n\", \n \"Inconsistent path tail. Did you change the scene graph\\n\"+\n \"During traversal?\\n\");\n }\n//#endif /*DEBUG*/\n return(currentpath.getTail());\n}",
"@Override\n\tpublic void breath() {\n\n\t}",
"public static void main(String[] args) {\nint i,j,k;\r\nint num=5;\r\nfor(i=0;i<num;i++){\r\n\tfor(j=0;j<i;j++){\r\n\t\tSystem.out.print(\" \");\r\n\t}\r\n\tfor(k=num; k>=2*i-1; k--){\r\n\t\tSystem.out.print(\"*\");\r\n\t}\r\n\t\r\n\tSystem.out.println();\r\n}\r\n\t}",
"@Override\n\tpublic void div(double dx, double dy) {\n\t\t\n\t}",
"public PathCode getCurPathCode() { return /*appliedTo.curPathCode*/currentpathcode;}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"private void createPath(Direction d, int width, Point p1, Point p2) {\n\t\t// Determine how far away from the center the corners are\n\t\tint sideOneOffset = 0;\t// Top or Left depending on path direction\n\t\tint sideTwoOffset = 0;\t// Bot or Right depending on path direction\n\t\t// If the width is odd, balance the offsets\n\t\tif (width % 2 != 0) {\t\n\t\t\tsideOneOffset = sideTwoOffset = ((width / 2) + 1);\n\t\t} else {\n\t\t\t// If the width is even, the offsets will be off by 1\n\t\t\tsideOneOffset = width;\n\t\t\tsideTwoOffset = width - 1;\n\t\t}\n\t\tif (d == Direction.LEFT || d == Direction.RIGHT) {\n\t\t\t// If the direction is left then we want to swap the points\n\t\t\t// to pretend like the direction was right (so the following code works)\n\t\t\tif (d == Direction.LEFT) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p1.x, p1.y + sideTwoOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p2.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x, p1.y + sideTwoOffset)));\n\t\t\t// Set the left and right walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.y is the center of the path (top to bottom)\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x, p1.y + (i - width/2))));\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p2.x, p2.y + (i - width/2))));\n\t\t\t}\n\t\t\t// Set middle path and top/bottom padding (horizontal Oreo!)\n\t\t\tfor (int col = p1.x + 1, endCol = p2.x; col < endCol; col++) {\n\t\t\t\t// Add the top wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(col, p1.y - sideOneOffset)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(col, p1.y + (i - width /2))));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the bottom wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(col, p1.y + sideTwoOffset)));\n\t\t\t}\n\t\t} else {\n\t\t\t// If the direction is up then we want to swap the points\n\t\t\t// to pretend like the direction was down (so the following code works)\n\t\t\tif (d == Direction.UP) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x - sideOneOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p2.x - sideOneOffset, p2.y)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p1.x + sideTwoOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x + sideTwoOffset, p2.y)));\n\t\t\t// Set the top and bottom walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.x is the center of the path (left to right)\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(p1.x + (i - width /2), p1.y)));\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(p2.x + (i - width /2), p2.y)));\n\t\t\t}\n\t\t\t// Set middle path and left/right padding (vertical Oreo!)\n\t\t\tfor (int row = p1.y + 1, endRow = p2.y; row < endRow; row++) {\n\t\t\t\t// Add the left wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x - sideOneOffset, row)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(p1.x + (i - width /2), row)));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the right wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p1.x + sideTwoOffset, row)));\t\t\t\t\n\t\t\t}\n\t\t}\n\t}",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"static String division (String s1, String s2) {\r\n if (s2==null || s2.length()==0) return s1;\r\n return product (s1, invert(s2));\r\n }",
"public static void body() {\n \tfor(int i = 1; i <= SIZE*SIZE; i++) {\n for(int j = 1; j <= 3*SIZE-(SIZE-1); j++) {\n System.out.print(\" \");\n }\n \n System.out.print(\"|\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"||\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"|\");\n \n System.out.println();\n }\n }",
"private int uniquePaths(int x, int y, int[][] dp) {\n \t\tif (x == 0 || y == 0) return 1;\n \t\tif (dp[x][y] == 0)\n \t\t\tdp[x][y] = uniquePaths(x - 1, y, dp) + uniquePaths(x, y - 1, dp);\n \t\treturn dp[x][y];\n \t}",
"public void star(float x, float y, float r, float R) {\n float angle = TWO_PI / 5;\n float halfAngle = angle/2.0f;\n beginShape();\n noStroke();\n for (float a = 0; a < TWO_PI; a += angle) {\n float sx = x + cos(a) * r;\n float sy = y + sin(a) * r;\n vertex(sx, sy);\n sx = x + cos(a+halfAngle) * R;\n sy = y + sin(a+halfAngle) * R;\n vertex(sx, sy);\n }\n endShape(CLOSE);\n}",
"@Override\r\n\tpublic void CalcPeri() {\n\t\tSystem.out.println(4*side);\t\r\n\t}",
"public int upright();",
"public static void main(String[] args) {\n\r\n\t\t\r\n\t\tint n = 7;\r\n\t\tfor (int i = n; i >= 0; i--) {\r\n\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t for(int j=0; j<n-i; j++) {\r\n\t\t\t \r\n\t\t\t System.out.print(\" \");\r\n\t\t\t \r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\r\n\t\t\tfor (int j = n; j >= n-i; j--) {\r\n\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\r\n\t\t\r\n\t}",
"public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}",
"public void backSlash() {\n text.append(\"\\\\\");\n }",
"public static void main(String[] args){\t\n\t\tchar op = '/';\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"첫번째 정수입니다.\");\n\t\tint num1 = scan.nextInt();\n\t\t\n\t\tSystem.out.println(\"두번째 정수입니다.\");\n\t\tint num2 = scan.nextInt();\n\t\tint num3=0;\n\t\tif(op=='+'){\n\t\t\tnum3 = num1+num2;\n\t\t}\n\t\telse if(op=='-'){\n\t\t\tnum3 = num1-num2;\n\t\t}\n\t\telse if(op=='*'){\n\t\t\tnum3 = num1*num2;\n\t\t}\n\t\telse if(op=='/'){\n\t\t\tif(num2==0){\n\t\t\tSystem.out.println(\"오류입니다.\");\n\t\t}\n\t\t\t\n\t\t\tnum3 = num1/num2;\n\t\t}\n\t\tSystem.out.printf(\"%d%c%d=%d\" ,num1,op,num2,num3);\n\t\t\n\t\t\n\t}",
"public final void testSlash() \n\t\t\tthrows ParserConfigurationException, IOException, SAXException \n\t{\n//\t\tassertSingleDocWithValue(\"8\", fldName, \"nnðýþnn\");\n//\t\tassertSingleDocWithValue(\"8\", fldName, \"nnønn\");\n\t\tassertSingleResult(\"8\", fldName, \"nnunn\");\n\t}",
"AngleResource inclination();",
"public abstract void squareRootThis();",
"public UniquePathsII() {\n\t\t// Initialization here. \n\t\t//\t\tcount = 0;\n\t}",
"@Override\n\tpublic void space() {\n\t\t\n\t}"
]
| [
"0.5906264",
"0.55749613",
"0.5428019",
"0.53241616",
"0.5294036",
"0.527193",
"0.52582306",
"0.5256754",
"0.51585066",
"0.5141374",
"0.51100975",
"0.5097357",
"0.5026707",
"0.50235814",
"0.50100124",
"0.49757177",
"0.4967908",
"0.49668512",
"0.4931213",
"0.49272057",
"0.49150687",
"0.4878608",
"0.4873821",
"0.4873821",
"0.48564616",
"0.48415148",
"0.4840844",
"0.48408422",
"0.48392275",
"0.48380315",
"0.48342562",
"0.48335755",
"0.48189583",
"0.4816532",
"0.4803844",
"0.47991633",
"0.4790358",
"0.4785782",
"0.47707185",
"0.47659388",
"0.47607136",
"0.4756167",
"0.47525582",
"0.4750556",
"0.47465262",
"0.47439283",
"0.47427607",
"0.47368544",
"0.47283906",
"0.4719052",
"0.4715935",
"0.4711951",
"0.47046372",
"0.47023433",
"0.46957722",
"0.46894073",
"0.46882662",
"0.46872112",
"0.46870187",
"0.46838596",
"0.46826214",
"0.46721044",
"0.4671648",
"0.46691796",
"0.46658975",
"0.46658975",
"0.46634644",
"0.46593347",
"0.46569487",
"0.46532407",
"0.46484405",
"0.46472803",
"0.4647124",
"0.46426368",
"0.46379653",
"0.4635675",
"0.46356165",
"0.46343538",
"0.46343073",
"0.46324328",
"0.46307802",
"0.46292034",
"0.46249497",
"0.46220893",
"0.46138567",
"0.46130696",
"0.46125302",
"0.4608751",
"0.46084386",
"0.4605762",
"0.46052104",
"0.4602023",
"0.46015334",
"0.45995793",
"0.45948967",
"0.459342",
"0.45930445",
"0.45923406",
"0.45910415",
"0.45878932",
"0.45863274"
]
| 0.0 | -1 |
Die Werte aller Variablen einer Variablengruppe sind aktualisiert worden. | public void allActualValuesUpdated (); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}",
"public VarTag(String title, double defalut) {\n super(new FlowLayout());\n this.title = title;\n\n this.init(defalut);\n\n }",
"private void setVariations(Element theElement) {\n\t\tNodeList planList = null;\n\t\tplanList = theElement.getElementsByTagName(\"plan\");\n\t\t// Sets the number of variations\n\t\tnumberOfVariations = planList.getLength();\n\t\t// Sets the size of variation array\n\t\tvariations = new MSVariation[numberOfVariations];\n\t\tfor (int x = 0; x < numberOfVariations; x++) {\n\t\t\tvariations[x] = new MSVariation((Element) planList.item(x));\n\t\t}\n\t\tString[] test = variations[0].getHumanReadable();\n\t\tSystem.out.println(test);\n\t}",
"public ValorVariavel() {\r\n }",
"@Override\r\n\tpublic Node visitVarType(VarTypeContext ctx) {\n\t\treturn super.visitVarType(ctx);\r\n\t}",
"@Override\n\tpublic String getVariation() {\n\t\treturn AbstractWebPageTemplate.BOOTSTRAP4_VARIATION;\n\t}",
"@Inject @Optional\n\tprivate void filterVariations(@UIEventTopic(TermSuiteEvents.NEW_VARIATION_FILTER) Map<Class<?>, Object> params) {\n\t\tif(Objects.equals(\n\t\t\t\tBrokerUtil.get(params, ETerminology.class),\n\t\t\t\tcontext.get(ETerminology.class))) {\n\t\t\tviewer.setFilters(null, BrokerUtil.get(params, VariationFilter.class));\n\t\t\tviewer.expandToLevel(2);\n\t\t}\n\t}",
"protected void InitValuables() {\n\t\tsuper.InitValuables();\n\t\t\n\t}",
"protected void initVars() {}",
"@Override\r\n\tprotected void initVentajas() {\n\r\n\t}",
"public Object caseVariabilityElement(VariabilityElement object) {\n\t\treturn null;\n\t}",
"@Override String opStr() { return \"var\"; }",
"public VariabilityFactoryImpl() {\n\t\tsuper();\n\t}",
"@Override\n public List<String> getVariables() {\n return super.getVariables();\n }",
"private void initValues(){\n\t\tProduct p = GetMockEnitiy.getProduct();\n\t\t\n\t\tString s = JSONhelper.toJSON(p);\n\t\ttvJSON.setText(s);\n\t\t\n\t}",
"public abstract void setVarCount(int varCount);",
"public GetVarianceArray() {\n\t\tsuper(\"GET_VARIANCE_ARRAY\", Wetrn.WETRN, AppGlobalUnitAdjustment.APP_GLOBAL_UNIT_ADJUSTMENT, org.jooq.impl.DefaultDataType.getDefaultDataType(\"TABLE\"));\n\n\t\tsetReturnParameter(RETURN_VALUE);\n\t\taddInParameter(P_VEHICLE_IDS);\n\t\taddInParameter(P_VARIANCE);\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"@Override\n\tprotected void setParameterValues() {\n\t}",
"@Override\n\tpublic void initializeValues() {\n\n\t}",
"public boolean isVarArgs() {\n return (getAccessFlags() & Constants.ACCESS_VARARGS) > 0;\n }",
"@Override\n\t\t\tpublic Ast var(Var ast, Void arg) {\n\t\t\t\treturn super.var(ast, arg);\n\t\t\t}",
"protected void setVariance(double value) {\n\t variance = value;\n\t}",
"protected void setVariance(double value) {\n\t variance = value;\n\t}",
"@Override\r\n\tpublic void tellNumVars(int numVars) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tsuper.setNumVars(numVars);\r\n\t}",
"private void initValues() {\n \n }",
"public VariableView getVarView() {\n \t\treturn this.varView;\n \t}",
"@Override\n public List<String> getVariables()\n {\n return null;\n }",
"public void onParaTypeChangeByVar(int i) {\n }",
"double getVariation();",
"public RandVar(int index, ArrayList<LogVar> args) {\n\t\tsuper.prefix = \"RV\";\n\t\tsuper.index = index;\n\t\tthis.args = args;\n\t}",
"public String[] getVariantNames() { return new String[] { \"normal\" }; }",
"public void setTotalVariables( int totalVars ) ;",
"public TradeVariables() { /*gets default values*/ }",
"@Override\n\tpublic void initValue() {\n\t\t\n\t}",
"public void setPVariance(String value) {\n\t\tsetValue(P_VARIANCE, value);\n\t}",
"public int[] getVariantMeta() { return new int[] { 0 }; }",
"protected void InitValuables() {\n\t\tsuper.InitValuables();\n\t\t\n\t\tCursurIndex = 1;\n\t\t\n\t}",
"@Override\n\tpublic boolean isVar() {\n\t\treturn heldObj.isVar();\n\t}",
"@Override\n\tprotected void initdata() {\n\n\t}",
"public void setVar18(java.lang.CharSequence value) {\n this.var18 = value;\n }",
"protected void setNumVars(int numVars)\n {\n \tthis.numVars = numVars;\n }",
"public VariableBinding formVarbind(MetaData mdata) {\n VariableBinding vbind = null;\n if (mdata.m_oidValue != null) {\n vbind = new VariableBinding(new OID(mdata.m_oid), castOidType(mdata.m_oidType, mdata.m_oidValue));\n }\n return vbind;\n }",
"private VarietyPackage() {}",
"public static void updateVars() {\n IntVar tempo;\n for (Vars vars: getArrayutcc() ){\n tempo = (IntVar) Store.getModelStore().findVariable(vars.varname);\n vars.vinf = tempo.value();\n }\n\n }",
"void getTvAttrib() {\n for (HDTV item : vendor) {\r\n System.out.println(\"Brand: \" + item.brandname + \" Size: \" + item.size);\r\n }\r\n\r\n }",
"public java.util.List<Object> generateControlVars();",
"public FunctionVariable (Object names[])\n {\n super(names);\n }",
"protected interface Variation {\r\n String vary(String root, int n) throws Exception;\r\n }",
"protected void initOtherParams() {\n\n\t\t// init other params defined in parent class\n\t\tsuper.initOtherParams();\n\n\t\t// the Component Parameter\n\t\t// first is default, the rest are all options (including default)\n\t\tcomponentParam = new ComponentParam(Component.AVE_HORZ, Component.AVE_HORZ,\n\t\t\t\tComponent.RANDOM_HORZ, Component.GREATER_OF_TWO_HORZ);\n\n\t\t// the stdDevType Parameter\n\t\tStringConstraint stdDevTypeConstraint = new StringConstraint();\n\t\tstdDevTypeConstraint.addString(StdDevTypeParam.STD_DEV_TYPE_TOTAL);\n\t\tstdDevTypeConstraint.addString(StdDevTypeParam.STD_DEV_TYPE_INTER);\n\t\tstdDevTypeConstraint.addString(StdDevTypeParam.STD_DEV_TYPE_INTRA);\n\t\tstdDevTypeConstraint.addString(StdDevTypeParam.STD_DEV_TYPE_NONE);\n\t\tstdDevTypeConstraint.setNonEditable();\n\t\tstdDevTypeParam = new StdDevTypeParam(stdDevTypeConstraint);\n\n\t\t// add these to the list\n\t\totherParams.addParameter(componentParam);\n\t\totherParams.addParameter(stdDevTypeParam);\n\n\t}",
"public Double getVariance() {\n return variance;\n }",
"public abstract int nVars();",
"public void onParaDataChangeByVar(int i) {\n }",
"void setVariation(double variation);",
"d(a aVar) {\n super(0);\n this.this$0 = aVar;\n }",
"public void setParametersToDefaultValues()\n/* 65: */ {\n/* 66:104 */ super.setParametersToDefaultValues();\n/* 67:105 */ this.placeholder = _placeholder_DefaultValue_xjal();\n/* 68: */ }",
"public void variableChanged(VariableAttribute var);",
"@Override\n protected void elaboraParametri() {\n super.elaboraParametri();\n titoloPagina = TITOLO_PAGINA;\n }",
"private void initialiseFromJson(){\n try {\n\t\t\t// The type adapter is only needed if you have a CharSequence in your model. If you're just using strings\n \t// you can just use Gson gson = new Gson();\n Gson gson = new GsonBuilder().registerTypeAdapter(CharSequence.class, new CharSequenceDeserializer()).create();\n Reader reader = new InputStreamReader(getAssets().open(VARIANTS_FILE));\n BaseVariants baseVariants = gson.fromJson(reader, BaseVariants.class);\n Neanderthal.initialise(this, baseVariants.variants, baseVariants.defaultVariant);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void updateVarView() { \t\t\n if (this.executionHandler == null || this.executionHandler.getProgramExecution() == null) {\n \treturn;\n }\n HashMap<Identifier, Value> vars = this.executionHandler.getProgramExecution().getVariables();\n \n //insert Tree items \n this.varView.getVarTree().removeAll(); \n \t\tIterator<Map.Entry<Identifier, Value>> it = vars.entrySet().iterator();\t\t\n \t\twhile (it.hasNext()) {\n \t\t\tMap.Entry<Identifier, Value> entry = it.next();\n \t\t\tString type = entry.getValue().getType().toString();\n \t\t\tString id = entry.getKey().toString();\n \t\t\tValue tmp = entry.getValue();\n \t\t\tthis.checkValue(this.varView.getVarTree(), type, id, tmp);\n \t\t} \n \t}",
"public DynamicModelPart setV(int[] v) {\n this.v = v;\n return this;\n }",
"protected Element initMyVar(Node[] data){\n\t\treturn \t\t\n\t\t\tel( \"bpws:copy\", new Node[] {\n\t\t\t\tel(\t\"bpws:from\",\n\t\t\t\t\tel(\"nswomoxsd:receive\", new Node[]{\n\t\t\t\t\t\tel(\"nswomoxsd:processName\", text(this.name)),\n\t\t\t\t\t\tel(\"nswomoxsd:processId\", text(\"0\")),\n\t\t\t\t\t\tel(\"nswomoxsd:evt\", data)\n\t\t\t\t\t})\n\t\t\t\t),\n\t\t\t\tel(\t\"bpws:to\", new Node[]{\n\t\t\t\t\tattr(\"variable\", VARNAME),\n\t\t\t\t\tattr(\"part\", \"part1\")\n\t\t\t\t})\n\t\t\t});\n\t}",
"protected Element arrayVar(String suffix){\n\t\treturn el(\"bpws:variable\", new Node[]{\n\t\t\t\tattr(\"element\", \"wsa:addresses\"),\n\t\t\t\tattr(\"name\", ARRAY_VAR_PRFX + suffix)\n\t\t});\n\t}",
"default boolean isVarArgs() {\n\t\t// Check whether the MethodHandle refers to a Method or Contructor (not Field)\n\t\tif (getReferenceKind() >= REF_invokeVirtual) {\n\t\t\treturn ((getModifiers() & MethodHandles.Lookup.VARARGS) != 0);\n\t\t}\n\t\treturn false;\n\t}",
"public ConstraintExt(ArrayList<String> var) {\n\t\tsuper(var);\n\t\tvalTuples = new HashSet<ArrayList<Object>>();\n\t}",
"@Override\n\tprotected void initParams() {\n\t\t\n\t}",
"void setTvAttrib() {\r\n obj1.brandname = \"PANASONIC\"; //setting brandname for obj1\r\n obj1.size = 65; //setting size for obj1\r\n vendor.add(obj1); //adding to arraylist vendor\r\n\r\n obj2.brandname = \"KELVIN\"; //setting brandname for obj2\r\n obj2.size = 51; //setting size for obj2\r\n vendor.add(obj2); //adding to arraylist vendor\r\n\r\n obj3.brandname = \"SONY\"; //setting size for obj2\r\n obj3.size = 42; //setting size for obj2\r\n vendor.add(obj3); //adding to arraylist vendor\r\n\r\n }",
"@Override\n\tpublic boolean isVarSuper() {\n\t\treturn heldObj.isVarSuper();\n\t}",
"@Override\n\tprotected void initData(){\n\t\tsuper.initData();\n\t}",
"public void setVarArgs(boolean on) {\n if (on)\n setAccessFlags(getAccessFlags() | Constants.ACCESS_VARARGS);\n else\n setAccessFlags(getAccessFlags() & ~Constants.ACCESS_VARARGS);\n }",
"private void updateVars()\n {\n\n }",
"public FormValidationScriptVisitor(List<FormAttribute> declaredAttributes) {\n declaredAttributes.forEach(attribute -> declaredVariables.put(attribute.getVariableName(), attribute.getDataType()));\n }",
"public Var(String var) {\r\n this.variable = var;\r\n }",
"public void SetVector(int[] v){ this.vector=v;}",
"Variables createVariables();",
"private void setOntopia(String var, Object val, ContextManagerIF ctxmgr) {\n if (val instanceof Object[]) {\n\n Object[] jstlArray = (Object[])val;\n\n // Let the context manager create a collection to hold the array values.\n // Need one value to do this, so use first value in jstlArray (or null).\n ctxmgr.setValue(var, (jstlArray.length == 0)\n ? null\n : jstlArray[0]);\n Collection ontopiaValue = ctxmgr.getValue(var);\n\n // Add the rest of the values in jstlArray to ontopiaValue.\n for (int i = 1; i < jstlArray.length; i++) {\n ontopiaValue.add(jstlArray[i]);\n }\n } else if (val instanceof Collection) {\n ctxmgr.setValue(var, (Collection)val);\n } else {\n ctxmgr.setValue(var, val);\n }\n }",
"public VariType visit(VarDeclaration n, Table argu) {\n\t VariType _ret=null;\n\t n.f0.accept(this, argu);\n\t n.f1.accept(this, argu);\n\t n.f2.accept(this, argu);\n\t return _ret;\n\t }",
"public ActRuVariable() {\n this(DSL.name(\"act_ru_variable\"), null);\n }",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n public List<String[]> namesAndValues() {\n List<String[]> nAv = new ArrayList<>();\n String[] m = {\"Meno\", this.meno};\n String[] i = {\"Iso\", this.iso};\n String[] b = {\"Brummitt 1\", this.brumit1.getMeno(), \"F Brumit1\"};\n nAv.add(m);\n nAv.add(i);\n nAv.add(b);\n return nAv;\n }",
"public TypeVarElements getTypeVarAccess() {\r\n\t\treturn pTypeVar;\r\n\t}",
"@Override\n public Object saveState(FacesContext _context) {\n if (_values == null) {\n _values = new Object[6];\n }\n _values[0] = super.saveState(_context);\n _values[1] = description;\n _values[2] = varname;\n _values[4] = param;\n _values[5] = simple;\n return _values;\n }",
"@Override\n\tpublic void visit(AssignNode node) {\n\t\tEvaluator.evaluate(node.getChild(0));\n\t\tEvaluator.evaluate(node.getChild(1));\n\n\t\t/**\n\t\t * Verificam fiii si construim perechea Variabila, Valoare pentru a fi\n\t\t * inserata in HahMap-ul din Evaluator\n\t\t */\n\t\tVariable x = null;\n\t\tValue i = null;\n\t\tif (node.getChild(1) instanceof Variable) {\n\t\t\tx = new Variable(node.getChild(1).getName());\n\t\t} else {\n\t\t\ti = new Value(node.getChild(1).getName());\n\t\t}\n\n\t\tif (node.getChild(0) instanceof Variable) {\n\t\t\tx = new Variable(node.getChild(0).getName());\n\t\t} else {\n\t\t\ti = new Value(node.getChild(0).getName());\n\t\t}\n\t\tEvaluator.variables.put(x.getName(), i.getName());\n\t\tnode.setName(i.getName());\n\t}",
"final protected void initializeVarDictionary ( Op op )\n\t{\n\t\t// We cannot call OpVars.allVars(op) directly because it does not\n\t\t// consider all variables in sub-operators of OpProject. Hence,\n\t\t// we simply strip the solution modifiers and, thus, call the\n\t\t// method for the first operator that is not a solution modifier.\n\t\tOp tmp = op;\n\t\twhile ( tmp instanceof OpModifier ) {\n\t\t\ttmp = ( (OpModifier) tmp ).getSubOp();\n\t\t}\n\n\t\tVarDictionary varDict = VarDictionary.getInstance();\n\t\tfor ( Var v : OpVars.visibleVars(tmp) ) { \n\t\t\tvarDict.createId( v );\n\t\t}\n\t}",
"public double getDefaultVariance()\n {\n return this.defaultVariance;\n }",
"@Override\n\tpublic void beforeVariableChanged(ProcessVariableChangedEvent arg0) {\n\n\t}",
"public void agregarVar(EntradaVarInst v ) {\r\n\t\t//le asigno un offset a la variable nueva (1,2,3, etc)\r\n\t\tv.setOffset(maximoOffsetVarInst);\r\n\t\t\r\n\t\t\r\n\t\t//aumento el offset\r\n\t\t//maximoOffsetVarInst++;\r\n\t\t//agrego la variable a mi tabla de variables de instancia\r\n\t\tentradaVar.put(v.getNombre(), v);\r\n\t}",
"public List<ZStringBuilder> generateVariations(String symbol) {\n\t\tList<ZStringBuilder> r = new ArrayList<ZStringBuilder>();\n\t\tZStringBuilder sym = new ZStringBuilder(symbol);\n\t\taddAdditions(r,sym,true);\n\t\taddDeletes(r,sym,true);\n\t\taddSwitches(r,sym,true);\n\t\taddReplacements(r,sym,true);\n\t\taddCases(r,sym,true);\n\t\treturn r;\n\t}",
"@Override\n\tpublic void initData(Bundle savedInstanceState) {\n\t\t\n\t}",
"private void initArguments() {\n Bundle bundle = getArguments();\n\n if (bundle != null) {\n if (bundle.containsKey(EXTRA_MOVIE_ID)) {\n int movieId = bundle.getInt(EXTRA_MOVIE_ID, 0);\n\n if (movieId > 0) {\n mMovie = MoviesRepository.getInstance(getActivity()).getMovie(movieId);\n }\n }\n }\n }",
"public interface BindingMapperVarAware<T>\n extends BindingMapper<T>\n{\n Set<Var> getVarsMentioned();\n}",
"@AnyLogicInternalCodegenAPI\n private void setupPlainVariables_Main_xjal() {\n }",
"public static void propertyVar1Main()\n {\n //Verwaltung<Artikel> artikelVerwaltung = new Verwaltung<Artikel>();\n\n Artikel artikel = new Artikel(50,\"test\");\n //artikelVerwaltung.add(artikel);\n\n PropertyChangeListener propertyChangeListener = (PropertyChangeEvent e) -> Werbung.drucken((int) e.getNewValue());\n\n artikel.addPropertyChangeListener(propertyChangeListener);\n artikel.setPreis(55);\n artikel.setPreis(55);\n artikel.setPreis(150);\n }",
"public void onParaDescChangeByVar(int i) {\n }",
"public double getVariance(){\n\t\treturn (double)sampleSize * type1Size * (populationSize - type1Size) *\n\t\t\t(populationSize - sampleSize) / ( populationSize * populationSize * (populationSize - 1));\n\t}",
"public void generateRandomAllVaraibles() {\r\n\r\n\t\tfor (DataVariable var : dataTestModel) {\r\n\t\t\tif (!var.getType().equals(\"INPUT_DATA\")) {\r\n\t\t\t\tif (var.getType().equals(\"boolean\") || var.getType().equals(\"Boolean\")) {\r\n\t\t\t\t\tvar.setValue(String.valueOf(getRandomBoolean()));\r\n\r\n\t\t\t\t} else if (var.getType().equals(\"int\")) {\r\n\t\t\t\t\tif (var.getMinimumValue() != null && var.getMinimumValue().length() > 0\r\n\t\t\t\t\t\t\t&& var.getMaximumValue() != null && var.getMaximumValue().length() > 0) {\r\n\t\t\t\t\t\tvar.setValue(String.valueOf(randomInt(Integer.parseInt(var.getMinimumValue()),\r\n\t\t\t\t\t\t\t\tInteger.parseInt(var.getMaximumValue()))));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tvar.setValue(String.valueOf(randomInt(0, 100)));\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (var.getType().equals(\"double\")) {\r\n\t\t\t\t\tif (var.getMinimumValue() != null && var.getMinimumValue().length() > 0\r\n\t\t\t\t\t\t\t&& var.getMaximumValue() != null && var.getMaximumValue().length() > 0) {\r\n\t\t\t\t\t\tvar.setValue(String.valueOf(randomDouple(Double.parseDouble(var.getMinimumValue()),\r\n\t\t\t\t\t\t\t\tDouble.parseDouble(var.getMaximumValue()))));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tvar.setValue(String.valueOf(randomDouple(0.0, 100.0)));\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (var.getType().equals(\"Enum\")) {\r\n\t\t\t\t\tvar.setValue(var.getValue());\r\n\t\t\t\t\t// System.out.println(\"Enum: var.getValue() = \" +\r\n\t\t\t\t\t// var.getValue());\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"void onVariableChanged(Object... newValue);",
"public VariableMeta getMeta();",
"public milkVariationBean(){}",
"private void transformVariatesToView() {\n\n //GCP-4378 NEW SCHEMA CHANGES - indexoutofboundsexception\n if (factorsDtoTrial != null && factorsDtoTrial.size() > 0) {\n // transform Variate list to Constants\n List<Constant> constantsData = new ArrayList<Constant>();\n Integer numeroDeInstancias = factorsDtoTrial.get(0).getSizeLevels();\n for (Variate variate : variatesDtoConstants) {\n for (int i = 0; i < numeroDeInstancias; i++) {\n ibfb.domain.core.Constant constant = ConverterDTOtoDomain.getConstant(variate);\n // TODO ajustar estructura para que se recupere los datos tipo numero sin el .0\n // if(variate.getDtype().equals(\"N\")){\n // constant.setValue(DecimalUtils.getValueAsString((Double)variate.getDataObject(i)));\n // }else{\n // constant.setValue(variate.getDataObject(i));\n constant.setValue(DecimalUtils.getValueAsString(variate.getDataObject(i)));\n // }\n constant.setInstance(i + 1);\n // constant.setOunitid(variate.getOunitidObject(i));\n constant.setVariateId(variate.getVariatid());\n constant.setStudyId(variate.getStudyid());\n constants.add(constant);\n }\n }\n }\n\n Comparator<Constant> constantComparator = new Comparator<Constant>() {\n\n @Override\n public int compare(Constant o1, Constant o2) {\n return o1.getInstance().compareTo(o2.getInstance());\n }\n };\n\n Collections.sort(constants, constantComparator);\n\n // transform Variate list to Variate(from view)\n for (Variate variate : variatesDTO) {\n ibfb.domain.core.Variate variateToAdd = ConverterDTOtoDomain.getVariate(variate);\n variates.add(variateToAdd);\n }\n\n\n workbookStudy.setConstants(constants);\n workbookStudy.setConstantsData(constants);\n\n workbookStudy.setVariates(variates);\n workbookStudy.setVariatesData(variates);\n }"
]
| [
"0.5843655",
"0.563781",
"0.55819726",
"0.553195",
"0.5506314",
"0.55002",
"0.54417866",
"0.5429812",
"0.53985953",
"0.5397774",
"0.53580785",
"0.5357484",
"0.5353495",
"0.5295982",
"0.52743304",
"0.5241959",
"0.5241332",
"0.5240076",
"0.5209855",
"0.5140113",
"0.51334715",
"0.5083547",
"0.50728583",
"0.50728583",
"0.5062302",
"0.5055233",
"0.50364304",
"0.5004336",
"0.49661106",
"0.49656144",
"0.4953557",
"0.4949742",
"0.49485773",
"0.49439597",
"0.49433684",
"0.49430853",
"0.494209",
"0.4924635",
"0.48935944",
"0.48888922",
"0.48877105",
"0.48786545",
"0.48773694",
"0.4873247",
"0.48721066",
"0.48702058",
"0.4868912",
"0.48654956",
"0.4857574",
"0.48543432",
"0.48441845",
"0.4838754",
"0.48345792",
"0.4829035",
"0.4828838",
"0.4821059",
"0.48176983",
"0.48149455",
"0.48129195",
"0.4810142",
"0.4809984",
"0.480658",
"0.4805825",
"0.4798933",
"0.4797887",
"0.4790696",
"0.47900844",
"0.47816402",
"0.4771723",
"0.47683415",
"0.47667897",
"0.47651532",
"0.4757869",
"0.47504473",
"0.47499713",
"0.4747186",
"0.47439256",
"0.47397572",
"0.4734732",
"0.4734732",
"0.47324184",
"0.47308996",
"0.47237468",
"0.47221014",
"0.47142598",
"0.47076043",
"0.470408",
"0.4699998",
"0.46988755",
"0.46946928",
"0.4686199",
"0.4680252",
"0.46801266",
"0.46801",
"0.4677571",
"0.46765634",
"0.46748465",
"0.46681258",
"0.4667059",
"0.4662674",
"0.4659775"
]
| 0.0 | -1 |
Paluuarvoton metodi kasvattaa listan kokoa tarvittaessa | private void kasvata() {
T[] uusi = (T[]) new Object[this.arvot.length * 3 / 2 + 1];
for (int i = 0; i < this.arvot.length; i++) {
uusi[i] = this.arvot[i];
}
this.arvot = uusi;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void listar() {\n\t\t\n\t}",
"public void obrniListu() {\n if (prvi != null && prvi.veza != null) {\n Element preth = null;\n Element tek = prvi;\n \n while (tek != null) {\n Element sled = tek.veza;\n \n tek.veza = preth;\n preth = tek;\n tek = sled;\n }\n prvi = preth;\n }\n }",
"public void skratiListu() {\n if (!jePrazna()) {\n int n = Svetovid.in.readInt(\"Unesite broj elemenata za skracivanje: \");\n obrniListu(); //Zato sto se trazi odsecanje poslednjih n elemenata\n while (prvi != null && n > 0) {\n prvi = prvi.veza;\n n--;\n }\n obrniListu(); //Vraca listu u prvobitni redosled\n }\n }",
"public ListaPracownikow() {\n generujPracownikow();\n //dodajPracownika();\n }",
"private void listViewPendentes(List<Compra> listAll) {\n\t\t\n\t}",
"@Override\n\tpublic ArrayList<Lista> listaListeElettorali() {\n\t\t\t\n\t\t\t\n\t\t\tDB db = getDB();\n\t\t\tMap<Integer, Lista> map = db.getTreeMap(\"liste\");\n\t\t\tArrayList<Lista> liste = new ArrayList<Lista>();\n\t\t\tSet<Integer> keys = map.keySet();\n\t\t\tfor (int key : keys) {\n\t\t\t\tliste.add(map.get(key));\n\t\t\t}\n\t\n\t\t\treturn liste;\n\t\t\t\n\t\t}",
"@Override\n public void HienThiDanhSach(List<DienTu> listdienTu) {\n\n }",
"private void caricaLista() {\n /** variabili e costanti locali di lavoro */\n ArrayList unaLista = null;\n CampoDati unCampoDati = null;\n CDBLinkato unCampoDBLinkato = null;\n //@todo da cancellare\n try { // prova ad eseguire il codice\n /* recupera il campo DB specializzato */\n unCampoDBLinkato = (CDBLinkato)unCampoParente.getCampoDB();\n\n /* recupera la lista dal campo DB */\n unaLista = unCampoDBLinkato.caricaLista();\n\n /* recupera il campo dati */\n unCampoDati = unCampoParente.getCampoDati();\n\n /* registra i valori nel modello dei dati del campo */\n if (unaLista != null) {\n unCampoDati.setValoriInterni(unaLista);\n// unCampoDatiElenco.regolaElementiAggiuntivi();\n } /* fine del blocco if */\n\n } catch (Exception unErrore) { // intercetta l'errore\n /* mostra il messaggio di errore */\n Errore.crea(unErrore);\n } /* fine del blocco try-catch */\n\n }",
"public void listar(){\r\n // Verifica si la lista contiene elementoa.\r\n if (!esVacia()) {\r\n // Crea una copia de la lista.\r\n Nodo aux = inicio;\r\n // Posicion de los elementos de la lista.\r\n int i = 0;\r\n // Recorre la lista hasta el final.\r\n while(aux != null){\r\n // Imprime en pantalla el valor del nodo.\r\n System.out.print(i + \".[ \" + aux.getValor() + \" ]\" + \" -> \");\r\n // Avanza al siguiente nodo.\r\n aux = aux.getSiguiente();\r\n // Incrementa el contador de la posión.\r\n i++;\r\n }\r\n }\r\n }",
"private void listarItems() {\r\n // Cabecera\r\n System.out.println(\"Listado de Items\");\r\n System.out.println(\"================\");\r\n\r\n // Criterio de Ordenación/Filtrado\r\n System.out.printf(\"Criterio de Ordenación .: %S%n\", criOrd.getNombre());\r\n System.out.printf(\"Criterio de Filtrado ...: %S%n\", criFil.getNombre());\r\n\r\n // Separados\r\n System.out.println(\"---\");\r\n\r\n // Filtrado > Selección Colección\r\n List<Item> lista = criFil.equals(Criterio.NINGUNO) ? CARRITO : FILTRO;\r\n\r\n // Recorrido Colección\r\n for (Item item : lista) {\r\n System.out.println(item.toString());\r\n }\r\n\r\n // Pausai\r\n UtilesEntrada.hacerPausa();\r\n }",
"public void ouvrirListe(){\n\t\n}",
"public void mostrarlistafininicio(){\n if(!estavacia()){\n String datos=\"<=>\";\n nododoble auxiliar=fin;\n while(auxiliar!=null){\n datos=datos+\"[\"+auxiliar.dato+\"]<=>\";\n auxiliar=auxiliar.anterior;\n }\n JOptionPane.showMessageDialog(null,datos,\n \"Mostraando lista de fin a inicio\",JOptionPane.INFORMATION_MESSAGE);\n }}",
"private void ucitajPodatke() {\n \n DefaultListModel<Voznja> m = new DefaultListModel<>();\n obrada.getPodaci().forEach(s->m.addElement(s));\n lstPodaci.setModel(m);\n\n }",
"public void mostrarLista() {\n\n Nodo recorrer = temp;\n while (recorrer != null) {\n\n System.out.println(\"[ \" + recorrer.getDato() + \"]\");\n recorrer = recorrer.getSiguiente();\n\n }\n\n }",
"public void listar() {\n\n if (!vacia()) {\n\n NodoEnteroSimple temp = head;\n\n int i = 0;\n\n while (temp != null) {\n\n System.out.print(i + \".[ \" + temp.getValor() + \" ]\" + \" -> \");\n\n temp = temp.getSiguiente();\n\n i++;\n }\n }\n \n }",
"public void Lista(){\n\t\tcabeza = null;\n\t\ttamanio = 0;\n\t}",
"public void afficherListe(){\n StringBuilder liste = new StringBuilder(\"\\n\");\n logger.info(\"OUTPUT\",\"\\nLes produits en vente sont:\");\n for (Aliment aliment : this.productList) { liste.append(\"\\t\").append(aliment).append(\"\\n\"); }\n logger.info(\"OUTPUT\", liste+\"\\n\");\n }",
"public static List<PhuThuocHam> phuToithieu(List<PhuThuocHam> list) {\n\t\tList<PhuThuocHam> listPTH = new ArrayList<PhuThuocHam>(); \n\t\t\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\tPhuThuocHam pth = list.get(i);\n\t\t\tfor (int j = 0; j < pth.getVePhai().length(); j++) {\n\t\t\t\tlistPTH.add(new PhuThuocHam(pth.getVeTrai(),Character.toString(pth.getVePhai().charAt(j))));\n\t\t\t}\n\t\t}\n\t\t\n\t\t//bo cac thuoc tinh du thua ben trai\n\t\tint index = 0;\n\t\twhile (index < listPTH.size()) {\n\t\t\tPhuThuocHam pth = listPTH.get(index);\n\t\t\t//ve ben trai chi co 1 thuoc tinh thi khong can xet\n\t\t\tif (pth.getVeTrai().length() != 1) {\n\t\t\t\tfor (int i = 0; i < pth.getVeTrai().length(); i++) {\n\t\t\t\t\tString chuoiBo = Character.toString(pth.getVeTrai().charAt(i));\n\t\t\t\t\tString chuoiSauKhiBo = CongCu.catChuoi(pth.getVeTrai(), i);\n\t\t\t\t\tif (TimBaoDong.timBaoDong(listPTH, chuoiSauKhiBo).contains(chuoiBo)) {\n//\t\t\t\t\t\tSystem.out.println(\"Delete \" + chuoiBo + \" From \" + pth.getVeTrai() + \" -> \" + pth.getVePhai());\n\t\t\t\t\t\tlistPTH.get(index).setVeTrai(chuoiSauKhiBo);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tindex++;\n\t\t}\n\t\t\n\t\t//bo phu thuoc ham du thua\n\t\tindex = 0;\n\t\twhile (index < listPTH.size()) {\n\t\t\tString trai = listPTH.get(index).getVeTrai();\n\t\t\tString phai = listPTH.get(index).getVePhai();\n\t\t\t\tlistPTH.remove(index);\n\t\t\t\tif(!TimBaoDong.timBaoDong(listPTH, trai).contains(phai)) {\n\t\t\t\tlistPTH.add(index, new PhuThuocHam(trai, phai));\n\t\t\t\tindex++;\n\t\t\t\t}\n\t\t\t\telse {\n//\t\t\t\t\tSystem.out.println(\"Delete \" + trai + \" -> \" + phai);\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\treturn listPTH;\n\t}",
"public void listar(){\n if (!esVacia()) {\n // Crea una copia de la lista.\n NodoEmpleado aux = inicio;\n // Posicion de los elementos de la lista.\n int i = 0;\n System.out.print(\"-> \");\n // Recorre la lista hasta llegar nuevamente al incio de la lista.\n do{\n // Imprime en pantalla el valor del nodo.\n System.out.print(i + \".[ \" + aux.getEmpleado() + \" ]\" + \" -> \");\n // Avanza al siguiente nodo.\n aux = aux.getSiguiente();\n // Incrementa el contador de la posi�n.\n i++;\n }while(aux != inicio);\n }\n }",
"public void GetVehiculos() {\n String A = \"&LOCATION=POR_ENTREGAR\";\n String Pahtxml = \"\";\n \n try {\n \n DefaultListModel L1 = new DefaultListModel();\n Pahtxml = Aso.SendGetPlacas(A);\n Lsvehiculo = Aso.Leerxmlpapa(Pahtxml);\n Lsvehiculo.forEach((veh) -> {\n System.out.println(\"Placa : \" + veh.Placa);\n L1.addElement(veh.Placa);\n });\n \n Lista.setModel(L1);\n \n } catch (Exception ex) {\n Logger.getLogger(Entrega.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }",
"List<Vehiculo>listar();",
"public void MostrarListas (){\n Nodo recorrer=inicio; // esto sirve para que el elemento de la lista vaya recorriendo conforme se inserta un elemento\r\n System.out.println(); // esto nos sirve para dar espacio a la codificacion de la lista al imprimir \r\n while (recorrer!=null){ // esta secuencia iterativa nos sirve para repetir las opciones del menu\r\n System.out.print(\"[\" + recorrer.dato +\"]--->\");\r\n recorrer=recorrer.siguiente;\r\n }\r\n }",
"public ListaDuplamenteEncadeada(){\r\n\t\t\r\n\t}",
"public void mostrarlistafininicio(){\n if(!estaVacia()){\n String datos = \"<=>\";\n NodoBus auxiliar = fin;\n while(auxiliar!=null){\n datos = datos + \"(\" + auxiliar.dato +\")->\";\n auxiliar = auxiliar.ant;\n JOptionPane.showMessageDialog(null, datos, \"Mostrando lista de fin a inicio\", JOptionPane.INFORMATION_MESSAGE);\n }\n }\n }",
"List<ParqueaderoEntidad> listar();",
"public List<Vendedor> listarVendedor();",
"public Vector addJumMhsYgSudahHeregistrasi(Vector vListInfoKelas) {\n\n \t/*\n \t * unreusable cuma adhock fix\n \t */\n \tif(vListInfoKelas!=null && vListInfoKelas.size()>0) {\n \t\t/*\n\t\t\t * tambah jumlah mhs perkelas ke dalam brs;\n\t\t\t */\n\t\t\tListIterator li = vListInfoKelas.listIterator();\n \t\ttry {\n \t\t\tContext initContext = new InitialContext();\n \t\t\tContext envContext = (Context)initContext.lookup(\"java:/comp/env\");\n \t\t\tds = (DataSource)envContext.lookup(\"jdbc\"+beans.setting.Constants.getDbschema());\n \t\t\tcon = ds.getConnection();\n \t\t\tstmt = con.prepareStatement(\"select NPMHS from DAFTAR_ULANG where THSMS=? and NPMHS=?\");\n \t\t\twhile(li.hasNext()) {\n \t\t\t\tString brs = (String)li.next();\n \t\t\t\t//System.out.println(\"brs=\"+brs);\n \t\t\t\tStringTokenizer st = new StringTokenizer(brs,\"$\");\n \t\t\tString kodeGabungan=st.nextToken();\n \t\t\tString idkmk1=st.nextToken();\n \t\t\tString idkur1=st.nextToken();\n \t\t\tString kdkmk1=st.nextToken();\n \t\t\tString nakmk1=st.nextToken();\n \t\t\tString thsms1=st.nextToken();\n \t\t\tString kdpst1=st.nextToken();\n \t\t\tString shift1=st.nextToken();\n \t\t\tString norutKlsPll1=st.nextToken();\n \t\t\tString initNpmInput1=st.nextToken();\n \t\t\tString latestNpmUpdate1=st.nextToken();\n \t\t\tString latesStatusInfo1=st.nextToken();\n \t\t\tString currAvailStatus1=st.nextToken();\n \t\t\tString locked1=st.nextToken();\n \t\t\tString npmdos1=st.nextToken();\n \t\t\tString nodos1=st.nextToken();\n \t\t\tString npmasdos1=st.nextToken();\n \t\t\tString noasdos1=st.nextToken();\n \t\t\tString canceled1=st.nextToken();\n \t\t\tString kodeKelas1=st.nextToken();\n \t\t\tString kodeRuang1=st.nextToken();\n \t\t\tString kodeGedung1=st.nextToken();\n \t\t\tString kodeKampus1=st.nextToken();\n \t\t\tString tknHrTime1=st.nextToken();\n \t\t\tString nmdos1=st.nextToken();\n \t\t\tString nmasdos1=st.nextToken();\n \t\t\tString enrolled1=st.nextToken();\n \t\t\tString maxEnrolled1=st.nextToken();\n \t\t\tString minEnrolled1=st.nextToken();\n \t\t\tString subKeterKdkmk1=st.nextToken();\n \t\t\tString initReqTime1=st.nextToken();\n \t\t\tString tknNpmApr1=st.nextToken();\n \t\t\tString tknAprTime1=st.nextToken();\n \t\t\tString targetTtmhs1=st.nextToken();\n \t\t\tString passed1=st.nextToken();\n \t\t\t\tString rejected1=st.nextToken();\n \t\t\t\tString konsen1=st.nextToken();\n \t\t\t\tString nmpst1=st.nextToken();\n \t\t\t\tString listNpm=st.nextToken();\n \t\t\t\tStringTokenizer st1 = new StringTokenizer(listNpm,\",\");\n \t\t\t\tString listNpmHer = null;\n \t\t\t\twhile(st1.hasMoreTokens()) {\n \t\t\t\t\tString npm = st1.nextToken();\n \t\t\t\t\tstmt.setString(1,thsms1);\n \t\t\t\t\tstmt.setString(2,npm);\n \t\t\t\t\trs = stmt.executeQuery();\n \t\t\t\t\t\n \t\t\t\t\tif(rs.next()) {\n \t\t\t\t\t\tif(listNpmHer==null) {\n \t\t\t\t\t\t\tlistNpmHer = \"\";\n \t\t\t\t\t\t}\n \t\t\t\t\t\tlistNpmHer = listNpmHer+\",\"+npm;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tif(listNpmHer==null) {\n \t\t\t\t\tlistNpmHer = \"null\";\n \t\t\t\t}\n \t\t\t\tli.set(brs+\"$\"+listNpmHer);\n \t\t\t\t//System.out.println(\"listNpmHer=\"+listNpmHer);\n \t\t\t\t//System.out.println(thsms1+\"$\"+kdpst1+\"$\"+kdkmk1);\n \t\t\t\t//System.out.println(brs+\"$\"+i);\n \t\t\t}\n \t\t\t\n \t\t}\n \t\tcatch (NamingException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tcatch (SQLException ex) {\n \t\t\tex.printStackTrace();\n \t\t} \n \t\tfinally {\n \t\t\tif (rs!=null) try { rs.close(); } catch (Exception ignore){}\n \t\t\tif (stmt!=null) try { stmt.close(); } catch (Exception ignore){}\n \t\t\tif (con!=null) try { con.close();} catch (Exception ignore){}\n \t\t}\n \t}\n \treturn vListInfoKelas;\n }",
"private void ucitajTestPodatke() {\n\t\tList<Integer> l1 = new ArrayList<Integer>();\n\n\t\tRestoran r1 = new Restoran(\"Palazzo Bianco\", \"Bulevar Cara Dušana 21\", KategorijeRestorana.PICERIJA, l1, l1);\n\t\tRestoran r2 = new Restoran(\"Ananda\", \"Petra Drapšina 51\", KategorijeRestorana.DOMACA, l1, l1);\n\t\tRestoran r3 = new Restoran(\"Dizni\", \"Bulevar cara Lazara 92\", KategorijeRestorana.POSLASTICARNICA, l1, l1);\n\n\t\tdodajRestoran(r1);\n\t\tdodajRestoran(r2);\n\t\tdodajRestoran(r3);\n\t}",
"private void listarDadosNaTelaEditora(ArrayList<Editora> lista) {\n DefaultTableModel modelEditoras = (DefaultTableModel) jTable_tabelaEditoras.getModel();\n jTable_tabelaEditoras.setRowSorter(new TableRowSorter(modelEditoras));\n //Limpando a tela\n modelEditoras.setNumRows(0);\n //Correr o ArrayList\n for (int pos = 0; pos < lista.size(); pos++) {\n String[] linha = new String[2];\n Editora aux = lista.get(pos);\n linha[0] = \"\"+aux.getId();\n linha[1] = aux.getNome();\n modelEditoras.addRow(linha);\n }\n }",
"void listarDadosNaTelaAutor(ArrayList<Autor> lista, DefaultTableModel model) {\n model.setNumRows(0);\n //Correr o ArrayList\n for (int pos = 0; pos < lista.size(); pos++) {\n String[] linha = new String[2];\n Autor aux = lista.get(pos);\n linha[0] = \"\"+aux.getId();\n linha[1] = aux.getNome();\n model.addRow(linha);\n }\n }",
"void listarDadosNaTelaLivro(ArrayList<Livro> lista,DefaultTableModel model ) throws Exception {\n \n model.setNumRows(0);\n //Correr o ArrayList\n for (int pos = 0; pos < lista.size(); pos++) {\n String[] linha = new String[7];\n Livro aux = lista.get(pos);\n linha[0] = \"\"+aux.getId();\n linha[1] = \"\"+editora.recuperar(aux.getIdEditora());\n linha[2] = \"\"+autor.recuperar(aux.getIdAutor());\n linha[3] = \"\"+areaDeConhecimento.recuperar(aux.getIdAreaDeConhecimento());\n linha[4] = aux.getTituloDoLivro();\n linha[5] = \"\"+aux.getIsbn();\n model.addRow(linha);\n }\n }",
"public void createListData()\n {\n List<SinhVien> listSinhvien=new ArrayList<>();\n for(int i=0;i<10;i++){\n SinhVien sv=new SinhVien(i+\"\",\"123\",\"0123\",i+1.0f);\n listSinhvien.add(sv);\n }\n PresenterImplDangXuat.onLoadSucess(listSinhvien);\n }",
"public List<Fortaleza> listarFortalezas(){\r\n return cVista.listarFortalezas();\r\n }",
"private void listar() throws Exception{\n int resId=1;\n List<PlatoDia> lista = this.servicioRestaurante.listarMenuDia(resId);\n this.modelListEspecial.clear();\n lista.forEach(lse -> {\n this.modelListEspecial.addElement(\"ID: \" + lse.getId() \n + \" NOMBRE: \" + lse.getNombre()\n + \" DESCRIPCION: \" + lse.getDescripcion()\n + \" PRECIO: \" + lse.getPrecio()\n + \" ENTRADA: \"+lse.getEntrada() \n + \" PRINCIPIO: \"+lse.getPrincipio()\n + \" CARNE: \"+lse.getCarne()\n + \" BEBIDA: \"+lse.getBebida()\n + \" DIA: \"+lse.getDiaSemana());\n });\n }",
"public void getList() {\n\n\t\tFile opFile = new File(\"/home/bridgeit/Desktop/newfile.txt\");\n\t\ttry {\n\t\t\topFile.createNewFile();\n\t\t\tFileWriter fwriter = new FileWriter(opFile);\n\n\t\t\tfor (int i = 0; i < slist.size(); i++) {\n\n\t\t\t\tfwriter.append(slist.returnItem(i) + \" \");\n\n\t\t\t}\n\t\t\tfwriter.close();\n\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public void listarEquipamentos() {\n \n \n List<Equipamento> formandos =new EquipamentoJpaController().findEquipamentoEntities();\n \n DefaultTableModel tbm=(DefaultTableModel) listadeEquipamento.getModel();\n \n for (int i = tbm.getRowCount()-1; i >= 0; i--) {\n tbm.removeRow(i);\n }\n int i=0;\n for (Equipamento f : formandos) {\n tbm.addRow(new String[1]);\n \n listadeEquipamento.setValueAt(f.getIdequipamento(), i, 0);\n listadeEquipamento.setValueAt(f.getEquipamento(), i, 1);\n \n i++;\n }\n \n \n \n }",
"public ArreiList() {\n koko = 0;\n }",
"public static void main(String[] args) {\n\t\tArrayList<MataKuliah> listMatakuliah = new ArrayList<MataKuliah>();\n\t\t//cara 2\n\t\t//List<MataKuliah> listMatakuliah = new ArrayList<MataKuliah>();\n\t\t\n\t\tMataKuliah mk1 = new MataKuliah(\"IF123\", \"Alpro1\", 4, 'A');\n\t\tMataKuliah mk2 = new MataKuliah(\"IF124\", \"Alpro2\", 3, 'B');\n\t\tMataKuliah mk3 = new MataKuliah(\"IF125\", \"KPLBO\", 3, 'B');\n\t\tMataKuliah mk4 = new MataKuliah(\"IF126\", \"RKPPL\", 2, 'A');\n\t\t\n\t\tlistMatakuliah.add(mk1);\n\t\tlistMatakuliah.add(mk2);\n\t\tlistMatakuliah.add(mk3);\n\t\tlistMatakuliah.add(mk4);\n\t\t\n\t\t//tampilkan objek matakuliaj dari arraylist (cara 1)\n\t\tfor (MataKuliah mk : listMatakuliah) {\n\t\t\tSystem.out.println(mk.getKode()+\",\"+mk.getIndeksNilai());\n\t\t}\n\t\t\n\t\t//(cara 2)\n\t\tIterator<MataKuliah> iteratorMK = listMatakuliah.iterator();\n\t\twhile (iteratorMK.hasNext()) {\n\t\t\tMataKuliah mk = (MataKuliah) iteratorMK.next();\n\t\t\tSystem.out.println(mk.getKode()+\",\"+mk.getIndeksNilai());\n\t\t}\n\t}",
"public void lisaaKomennot() {\n this.komennot.put(1, new TarkasteleListoja(1, \"Tarkastele listoja\", super.tallennetutTuotteet, super.tallennetutListat, this.io));\n this.komennot.put(2, new LisaaListalle(2, \"Lisää listalle\", super.tallennetutTuotteet, super.tallennetutListat, this.io));\n this.komennot.put(3, new PoistaListalta(3, \"Poista listalta\", super.tallennetutTuotteet, super.tallennetutListat, this.io));\n }",
"public Vector addJumMhsYgSudahHeregistrasi_v1(Vector vListInfoKelas) {\n \tif(vListInfoKelas!=null && vListInfoKelas.size()>0) {\n \t\t/*\n\t\t\t * tambah jumlah mhs perkelas ke dalam brs;\n\t\t\t */\n\t\t\tListIterator li = vListInfoKelas.listIterator();\n \t\ttry {\n \t\t\tContext initContext = new InitialContext();\n \t\t\tContext envContext = (Context)initContext.lookup(\"java:/comp/env\");\n \t\t\tds = (DataSource)envContext.lookup(\"jdbc\"+beans.setting.Constants.getDbschema());\n \t\t\tcon = ds.getConnection();\n \t\t\tstmt = con.prepareStatement(\"select NPMHS from DAFTAR_ULANG where THSMS=? and NPMHS=?\");\n \t\t\twhile(li.hasNext()) {\n \t\t\t\tString brs = (String)li.next();\n \t\t\t\t//System.out.println(\"brs=\"+brs);\n \t\t\t\tStringTokenizer st = new StringTokenizer(brs,\"$\");\n \t\t\tString kodeGabungan=st.nextToken();\n \t\t\tString idkmk1=st.nextToken();\n \t\t\tString idkur1=st.nextToken();\n \t\t\tString kdkmk1=st.nextToken();\n \t\t\tString nakmk1=st.nextToken();\n \t\t\tString thsms1=st.nextToken();\n \t\t\tString kdpst1=st.nextToken();\n \t\t\tString shift1=st.nextToken();\n \t\t\tString norutKlsPll1=st.nextToken();\n \t\t\tString initNpmInput1=st.nextToken();\n \t\t\tString latestNpmUpdate1=st.nextToken();\n \t\t\tString latesStatusInfo1=st.nextToken();\n \t\t\tString currAvailStatus1=st.nextToken();\n \t\t\tString locked1=st.nextToken();\n \t\t\tString npmdos1=st.nextToken();\n \t\t\tString nodos1=st.nextToken();\n \t\t\tString npmasdos1=st.nextToken();\n \t\t\tString noasdos1=st.nextToken();\n \t\t\tString canceled1=st.nextToken();\n \t\t\tString kodeKelas1=st.nextToken();\n \t\t\tString kodeRuang1=st.nextToken();\n \t\t\tString kodeGedung1=st.nextToken();\n \t\t\tString kodeKampus1=st.nextToken();\n \t\t\tString tknHrTime1=st.nextToken();\n \t\t\tString nmdos1=st.nextToken();\n \t\t\tString nmasdos1=st.nextToken();\n \t\t\tString enrolled1=st.nextToken();\n \t\t\tString maxEnrolled1=st.nextToken();\n \t\t\tString minEnrolled1=st.nextToken();\n \t\t\tString subKeterKdkmk1=st.nextToken();\n \t\t\tString initReqTime1=st.nextToken();\n \t\t\tString tknNpmApr1=st.nextToken();\n \t\t\tString tknAprTime1=st.nextToken();\n \t\t\tString targetTtmhs1=st.nextToken();\n \t\t\tString passed1=st.nextToken();\n \t\t\t\tString rejected1=st.nextToken();\n \t\t\t\tString konsen1=st.nextToken();\n \t\t\t\tString nmpst1=st.nextToken();\n \t\t\t\tString cuid1=st.nextToken();\n \t\t\t\tString listNpm=st.nextToken();\n \t\t\t\t\n \t\t\t\t\n \t\t\t\t\n \t\t\t\t\n \t\t\t\tStringTokenizer st1 = new StringTokenizer(listNpm,\",\");\n \t\t\t\tString listNpmHer = null;\n \t\t\t\twhile(st1.hasMoreTokens()) {\n \t\t\t\t\tString npm = st1.nextToken();\n \t\t\t\t\tstmt.setString(1,thsms1);\n \t\t\t\t\tstmt.setString(2,npm);\n \t\t\t\t\trs = stmt.executeQuery();\n \t\t\t\t\t\n \t\t\t\t\tif(rs.next()) {\n \t\t\t\t\t\tif(listNpmHer==null) {\n \t\t\t\t\t\t\tlistNpmHer = \"\";\n \t\t\t\t\t\t}\n \t\t\t\t\t\tlistNpmHer = listNpmHer+\",\"+npm;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tif(listNpmHer==null) {\n \t\t\t\t\tlistNpmHer = \"null\";\n \t\t\t\t}\n \t\t\t\tli.set(brs+\"$\"+listNpmHer);\n \t\t\t\t//System.out.println(\"listNpmHer=\"+listNpmHer);\n \t\t\t\t//System.out.println(thsms1+\"$\"+kdpst1+\"$\"+kdkmk1);\n \t\t\t\t//System.out.println(brs+\"$\"+i);\n \t\t\t}\n \t\t\t\n \t\t}\n \t\tcatch (NamingException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tcatch (SQLException ex) {\n \t\t\tex.printStackTrace();\n \t\t} \n \t\tfinally {\n \t\t\tif (rs!=null) try { rs.close(); } catch (Exception ignore){}\n \t\t\tif (stmt!=null) try { stmt.close(); } catch (Exception ignore){}\n \t\t\tif (con!=null) try { con.close();} catch (Exception ignore){}\n \t\t}\n \t}\n \treturn vListInfoKelas;\n }",
"public static List<ViajeEntidad> getListaViajesEntidad(){\n List<ViajeEntidad> viajes = new ArrayList<>();\n Date date = new Date();\n ViajeEntidadPK viajePK = new ViajeEntidadPK();\n TaxiEntidad taxiByPkPlacaTaxi = new TaxiEntidad();\n ClienteEntidad clienteByPkCorreoCliente = new ClienteEntidad();\n clienteByPkCorreoCliente.setPkCorreoUsuario(\"[email protected]\");\n TaxistaEntidad taxistaByCorreoTaxi = new TaxistaEntidad();\n taxistaByCorreoTaxi.setPkCorreoUsuario(\"[email protected]\");\n OperadorEntidad agendaOperador = new OperadorEntidad();\n agendaOperador.setPkCorreoUsuario(\"[email protected]\");\n\n viajePK.setPkPlacaTaxi(\"CCC11\");\n viajePK.setPkFechaInicio(\"2019-01-01 01:01:01\");\n viajes.add(new ViajeEntidad(viajePK, \"2019-01-01 02:01:01\",\"5000\", 2, \"origen\",\"destino\", \"agenda\", \"agenda2\", taxiByPkPlacaTaxi, clienteByPkCorreoCliente, taxistaByCorreoTaxi, agendaOperador));\n viajePK.setPkPlacaTaxi(\"DDD11\");\n viajes.add(new ViajeEntidad(viajePK, \"2019-01-01 02:01:01\",\"5000\", 2, \"origen\",\"destino\", \"agenda\", \"agenda2\", taxiByPkPlacaTaxi, clienteByPkCorreoCliente, taxistaByCorreoTaxi, agendaOperador));\n viajePK.setPkPlacaTaxi(\"EEE11\");\n viajes.add(new ViajeEntidad(viajePK, \"2019-01-01 02:01:01\",\"5000\", 2, \"origen\",\"destino\", \"agenda\", \"agenda2\", taxiByPkPlacaTaxi, clienteByPkCorreoCliente, taxistaByCorreoTaxi, agendaOperador));\n\n return viajes;\n }",
"public void obtenerLista(){\n listaInformacion = new ArrayList<>();\n for (int i = 0; i < listaPersonales.size(); i++){\n listaInformacion.add(listaPersonales.get(i).getId() + \" - \" + listaPersonales.get(i).getNombre());\n }\n }",
"public void mostrarLista(){\n Nodo recorrer = inicio;\n while(recorrer!=null){\n System.out.print(\"[\"+recorrer.edad+\"]-->\");\n recorrer=recorrer.siguiente;\n }\n System.out.println(recorrer);\n }",
"public List<Mobibus> darMobibus();",
"private void srediTabelu() {\n\n mtu = (ModelTabeleUlica) jtblUlica.getModel();\n ArrayList<Ulica> ulice = kontrolor.Kontroler.getInstanca().vratiUlice();\n mtu.setLista(ulice);\n\n }",
"public static void main(String[] args) {\t\n\t\t//List olusturma nasil yapilir?\n\t\t//1. yol\n\t\tArrayList<String> sl1= new ArrayList<>();\n\t\t\n\t\t//2. yol\n\t\tArrayList<String> sl2= new ArrayList<>();\n\t\tSystem.out.println(sl1+\"\"+sl2);\n\t\t//3. yol (bunu kullanacagiz)\n\t\tList<String> sl3=new ArrayList<>();\n\t\tSystem.out.println(sl3);\n\t\t\n\t\t//Liste eleman ekleme\n\t\t\n\t\tsl3.add(\"A\");\n\t\tSystem.out.println(sl3);\n\t\t\n\t\tsl3.add(\"B\");\n\t\tSystem.out.println(sl3);\n\t\t\n\t\tsl3.add(\"C\");\n\t\tSystem.out.println(sl3);\n\t\t\n\t\t//herhangi bir indexe eleman ekleme\n\t\t\n\t\tsl3.add(0, \"Mustafa\");\n\t\t System.out.println(sl3);//[Mustafa, A, X, B, C]\n\t\t \n\t\t //List'lerde eleman sayisini bulma nasil yapilir?\n\t\t System.out.println(sl3.size());//5\n\t\t \n\t\t //Bir list'in bos olup olmadigin nasil anlariz?\n\t\t System.out.println(sl3.isEmpty());//isEmpty() ==> bos ise true, dolu ise false verir\n\t\t \n\t\t //Bir list'den istenen elemani silme nasil yapilir?\n\t\t \n\t\t //1. Yol: index ile silme yapabilirsiniz.\n\t\t System.out.println(sl3.remove(0));\n\t\t System.out.println(sl3);//[A, X, B, C]\n\t\t \n\t\t //2. Yol: Eleman secip sil\n\t\t sl3.remove(\"X\");\n\t\t System.out.println(sl3);//[A, B, C]\n\t\t \n\t\t sl3.add(\"B\");//[A, B, C, B]\n\t\t System.out.println(sl3.remove(\"B\"));//true\n\t\t //Ayni elemandan 1 den fazla varsa ilkini siler\n\t\t System.out.println(sl3);//[A, C, B]\n\t\t \n\t\t \n\t\t System.out.println(sl3.remove(\"W\"));//false\n\t\t //Java'dan olmayan bir elemani remove etmesini isterseniz\n\t\t //remove edemez ve list'i aynen oldugu gibi birakir.\n\t\t System.out.println(sl3);//[A, C, B]\n\t\t \n\t\t //remove(index) ne return eder?\n\t\t // sl3 ==> [A, C, B]\n\t\t System.out.println(sl3.remove(1));//C\n\t\t System.out.println(sl3);//[A, B]\n\t\t \n\t\t//remove(eleman) ne return eder?\n\t\t// sl3 ==> [A, B] \n\t\t System.out.println(sl3.remove(\"A\"));//true\n\t\t //remove() methodunun icine tamsayi koyarsaniz \n\t\t //Java onu index kabul eder. \n\t\t //Bu yuzden elemanlari integer olan bir listteki elemanlari silmek icin \n\t\t //remove() methodunun sadece indexlisini kullanabilirsiniz.\n\n \n}",
"public List<String> Mutfakkullanici(int masa_no) throws SQLException {\n ArrayList<Integer> kull = new ArrayList<>();\r\n ArrayList<String> kullad = new ArrayList<>();\r\n sqlsorgular.baglanti vb = new baglanti();\r\n vb.baglan();\r\n try {\r\n\r\n String sorgu = \"select kullanici_no from ilisk_masa where masa_no=\" + masa_no + \";\";\r\n ps = vb.con.prepareStatement(sorgu);\r\n rs = ps.executeQuery(sorgu);\r\n\r\n while (rs.next()) {\r\n kull.add(rs.getInt(1));\r\n }\r\n System.out.println(\"mutfak kullanici girdi\");\r\n System.out.println(kull);\r\n } catch (Exception e) {\r\n System.out.println(\"Mutfak kullanicisini alirken hata olustu\");\r\n return null;\r\n }\r\n\r\n for (Integer kullanici_no : kull) {\r\n boolean durum = false;\r\n String deger = \"\";\r\n String sorgu2 = \"select kullanici_adi from kullanicilar where kullanici_no=\" + kullanici_no + \" and durum='MUTFAK';\";\r\n try {\r\n ps = vb.con.prepareStatement(sorgu2);\r\n rs1 = ps.executeQuery(sorgu2);\r\n while (rs1.next()) {\r\n deger = rs1.getString(1);\r\n\r\n if (deger != null) {\r\n kullad.add(deger);\r\n System.out.println(\"null\");\r\n System.out.println(deger);\r\n }\r\n System.out.println(kullad);\r\n durum = true;\r\n }\r\n } catch (Exception e) {\r\n durum = false;\r\n }\r\n\r\n System.out.println(kullad);\r\n\r\n }\r\n vb.con.close();\r\n return kullad;\r\n\r\n }",
"public static void main(String[] args) {\r\n\t\t\t\t\r\n\t\tPutnici p1 = new Putnici (\"Milan\", \"Milanovic\", 105864312);\r\n\t\tPutnici p2 = new Putnici (\"Gordana\", \"Gajic\", 103886432);\r\n\t\tPutnici p3 = new Putnici (\"Zorana\", \"Pajic\", 103866115);\r\n\t\tPutnici p4 = new Putnici (\"Gordan\", \"Pajic\", 105612834);\r\n\t\tPutnici p5 = new Putnici (\"Zoltan\", \"Hrdelj\", 104916773);\r\n\t\tPutnici p6 = new Putnici (\"Milana\", \"Hrdelj\", 105834491);\r\n\t\tPutnici p7 = new Putnici (\"Atila\", \"Hrdelj\", 112586493);\r\n\t\tPutnici p8 = new Putnici (\"Dejan\", \"Petrovic\", 104386166);\r\n\t\tPutnici p9 = new Putnici (\"Bozidarka\", \"Serdar\", 105821386);\r\n\t\tPutnici p10 = new Putnici (\"Dobrivoj\", \"Serdar\", 104386991);\r\n\t\tPutnici p11 = new Putnici (\"Stefana\", \"Drobnjak\", 105813671);\r\n\t\tPutnici p12 = new Putnici (\"Dubravka\", \"Stojakovic\", 103846939);\r\n\t\t\r\n\t\tList<Putnici>listaPutnika = new ArrayList<Putnici>();\r\n\t\t\r\n\t\tlistaPutnika.add(p1);\r\n\t\tlistaPutnika.add(p2);\r\n\t\tlistaPutnika.add(p3);\r\n\t\tlistaPutnika.add(p4);\r\n\t\tlistaPutnika.add(p5);\r\n\t\tlistaPutnika.add(p6);\r\n\t\tlistaPutnika.add(p7);\r\n\t\tlistaPutnika.add(p8);\r\n\t\tlistaPutnika.add(p9);\r\n\t\tlistaPutnika.add(p10);\r\n\t\tlistaPutnika.add(p11);\r\n\t\tlistaPutnika.add(p12);\r\n\t\t\r\n\t\tList<Putnici>listaPutnikaT1 = new ArrayList<Putnici>();\r\n\t\t\t\t\r\n\t\tlistaPutnikaT1.add(p1);\r\n\t\tlistaPutnikaT1.add(p2);\r\n\t\tlistaPutnikaT1.add(p5);\r\n\t\tlistaPutnikaT1.add(p6);\r\n\t\tlistaPutnikaT1.add(p7);\r\n\t\t\r\n\t\tList<Putnici>listaPutnikaT2 = new ArrayList<Putnici>();\r\n\t\t\r\n\t\tlistaPutnikaT2.add(p3);\r\n\t\tlistaPutnikaT2.add(p4);\r\n\t\tlistaPutnikaT2.add(p8);\r\n\t\tlistaPutnikaT2.add(p12);\r\n\t\t\r\n\t\tList<Putnici>listaPutnikaT3 = new ArrayList<Putnici>();\r\n\t\t\r\n\t\tlistaPutnikaT3.add(p9);\r\n\t\tlistaPutnikaT3.add(p10);\r\n\t\tlistaPutnikaT3.add(p11);\r\n\t\t\r\n\t\tPutovanje v1 = new Putovanje (\"Sardinija-Algero\", 950.25, listaPutnikaT3);\r\n\t\tPutovanje v2 = new Putovanje (\"Sejseli-Ostrvo Mae\", 1024.5, listaPutnikaT1);\r\n\t\tPutovanje v3 = new Putovanje (\"Meksiko-Kankun\", 1456.34, listaPutnikaT2);\r\n\t\t\r\n\t\tList<Putovanje> listaPonuda = new ArrayList<Putovanje>();\r\n\t\tlistaPonuda.add(v1);\r\n\t\tlistaPonuda.add(v2);\r\n\t\tlistaPonuda.add(v3);\r\n\t\t\r\n\t\tSystem.out.println(\"U ponudi su \" + listaPonuda.size() + \" destinacije.\");\r\n\t\tSystem.out.println(\"Pogledajte kompletnu ponudu: \");\r\n\t\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tsb.append(\"1. Lokacija: \");\r\n\t\tsb.append(v1.getDestinacija());\r\n\t\tsb.append(\", cena aranzmana za 10 nocenja sa avionskim prevozom: \");\r\n\t\tsb.append(v1.getCena());\r\n\t\tsb.append(\" evra.\");\r\n\t\tsb.append(\" Putnici: \");\r\n\t\tsb.append(listaPutnikaT3.get(0).getIme());\r\n\t\tsb.append(\" \");\r\n\t\tsb.append(listaPutnikaT3.get(0).getPrezime());\r\n\t\tsb.append(\", \");\r\n\t\tsb.append(listaPutnikaT3.get(1).getIme());\r\n\t\tsb.append(\" \");\r\n\t\tsb.append(listaPutnikaT3.get(1).getPrezime());\r\n\t\tsb.append(\", \");\r\n\t\tsb.append(listaPutnikaT3.get(2).getIme());\r\n\t\tsb.append(\" \");\r\n\t\tsb.append(listaPutnikaT3.get(2).getPrezime());\r\n\t\tsb.append(\".\");\r\n\t\tSystem.out.println(sb.toString());\r\n\t\t\r\n\t\tStringBuilder sb1 = new StringBuilder();\r\n\t\tsb1.append(\"2. Lokacija: \");\r\n\t\tsb1.append(v2.getDestinacija());\r\n\t\tsb1.append(\", cena aranzmana za 10 nocenja sa avionskim prevozom: \");\r\n\t\tsb1.append(v2.getCena());\r\n\t\tsb1.append(\" evra.\");\r\n\t\tsb1.append(\" Putnici: \");\r\n\t\tsb1.append(listaPutnikaT1.get(0).getIme());\r\n\t\tsb1.append(\" \");\r\n\t\tsb1.append(listaPutnikaT1.get(0).getPrezime());\r\n\t\tsb1.append(\", \");\r\n\t\tsb1.append(listaPutnikaT1.get(1).getIme());\r\n\t\tsb1.append(\" \");\r\n\t\tsb1.append(listaPutnikaT1.get(1).getPrezime());\r\n\t\tsb1.append(\", \");\r\n\t\tsb1.append(listaPutnikaT1.get(2).getIme());\r\n\t\tsb1.append(\" \");\r\n\t\tsb1.append(listaPutnikaT1.get(2).getPrezime());\r\n\t\tsb1.append(listaPutnikaT1.get(3).getIme());\r\n\t\tsb1.append(\" \");\r\n\t\tsb1.append(listaPutnikaT1.get(3).getPrezime());\r\n\t\tsb1.append(listaPutnikaT1.get(4).getIme());\r\n\t\tsb1.append(\" \");\r\n\t\tsb1.append(listaPutnikaT1.get(4).getPrezime());\r\n\t\tsb1.append(\".\");\r\n\t\tSystem.out.println(sb1.toString());\r\n\t\t\r\n\t\tStringBuilder sb2 = new StringBuilder();\r\n\t\tsb2.append(\"3. Lokacija: \");\r\n\t\tsb2.append(v3.getDestinacija());\r\n\t\tsb2.append(\", cena aranzmana za 10 nocenja sa avionskim prevozom: \");\r\n\t\tsb2.append(v3.getCena());\r\n\t\tsb2.append(\" evra.\");\r\n\t\tsb2.append(\" Putnici: \");\r\n\t\tsb2.append(listaPutnikaT2.get(0).getIme());\r\n\t\tsb2.append(\" \");\r\n\t\tsb2.append(listaPutnikaT2.get(0).getPrezime());\r\n\t\tsb2.append(\", \");\r\n\t\tsb2.append(listaPutnikaT2.get(1).getIme());\r\n\t\tsb2.append(\" \"); \r\n\t\tsb2.append(listaPutnikaT2.get(1).getPrezime());\r\n\t\tsb2.append(\", \");\r\n\t\tsb2.append(listaPutnikaT2.get(2).getIme());\r\n\t\tsb2.append(\" \");\r\n\t\tsb2.append(listaPutnikaT2.get(2).getPrezime());\r\n\t\tsb2.append(listaPutnikaT2.get(3).getIme());\r\n\t\tsb2.append(\" \");\r\n\t\tsb2.append(listaPutnikaT2.get(3).getPrezime());\t\t\r\n\t\tsb2.append(\".\");\r\n\t\tSystem.out.println(sb2.toString());\r\n\t\t\t\t\r\n\t\tSystem.out.println(\"Za destinaciju \" + v2.getDestinacija() + \", trenutna cena aranzmana je\");\t\t\r\n\t\tSystem.out.println(v2.getCena() + \" evra za 10 nocenja sa avionskim prevozom.\");\r\n\t\t\t\t\r\n\t\tv2.setCena(1125.0);\r\n\t\tSystem.out.println(\"Od 10. juna cena aranzmana za destinaciju \" + v2.getDestinacija() + \" iznosice \" + v2.getCena() + \" evra.\");\r\n\t\t\r\n\t\tlistaPonuda.remove(v3);\t\r\n\t\tSystem.out.println(\"Zbog novonastale situacije obavestavamo vas o izmenama ponude putovanja. \");\r\n\t\tSystem.out.println(\"Nakon izmena u ponudi ostaju \" + listaPonuda.size() + \" destinacije: \");\r\n\t\tSystem.out.println(\"1. \" + listaPonuda.get(0).getDestinacija() + \"- cena aranzmana za 10 nocenja sa avionskim prevozom: \" + listaPonuda.get(0).getCena());\r\n\t\tSystem.out.println(\"2. \" + listaPonuda.get(1).getDestinacija() + \"- cena aranzmana za 10 nocenja sa avionskim prevozom: \" + listaPonuda.get(1).getCena());\r\n\t\tSystem.out.println();\r\n\t\t\t\t\r\n\t\t}",
"public void MostrarListafINInicio() {\n if(!estVacia()){\n String datos=\"<=>\";\n NodoDoble current=fin;\n while(current!=null){\n datos += \"[\"+current.dato+\"]<=>\";\n current = current.anterior;\n }\n JOptionPane.showMessageDialog(null, datos, \"Mostrando Lista de inicio a Fin\",JOptionPane.INFORMATION_MESSAGE);\n }\n }",
"private void genererListeView() {\n\n displayToast(\"Antall treff: \" + spisestedListe.size());\n\n //sorterer alfabetisk på navn\n Collections.sort(spisestedListe);\n\n spisestedAdapter = new SpisestedAdapter(this, spisestedListe);\n recyclerView.setAdapter(spisestedAdapter);\n\n //henter inn antall kolonner fra values, verdi 2 i landscape\n // https://stackoverflow.com/questions/29579811/changing-number-of-columns-with-gridlayoutmanager-and-recyclerview\n int columns = getResources().getInteger(R.integer.list_columns);\n recyclerView.setLayoutManager(new GridLayoutManager(this, columns));\n }",
"public void listarProvincia() {\n provincias = JPAFactoryDAO.getFactory().getProvinciaDAO().find();\n// for(int i=0;i<provincias.size();i++ ){\n// System.out.println(\"lista:\"+provincias.get(i).getNombreprovincia());\n// }\n }",
"public void listarTodosLosVideojuegosRegistrados()\n {\n System.out.println(\"Videojuegos disponibles: \");\n for(Videojuegos videojuego : listaDeVideojuegos) {\n System.out.println(videojuego.getDatosVideojuego());\n }\n }",
"public String listViaje() {\n\t\t\t//resetForm();\n\t\t\treturn \"/boleta/list.xhtml\";\t\n\t\t}",
"List<TipoHuella> listarTipoHuellas();",
"public static List<Object> czytaniePogody(){\r\n Object[] elementyPogody = new Object[3];\r\n elementyPogody[0]=0;\r\n elementyPogody[1]=0;\r\n elementyPogody[2]=null;\r\n String line;\r\n OdczytZPliku plik = new OdczytZPliku();\r\n InputStream zawartosc = plik.pobierzZPliku(\"bazapogod.txt\");\r\n try (InputStreamReader odczyt = new InputStreamReader(zawartosc, StandardCharsets.UTF_8);\r\n BufferedReader czytaj = new BufferedReader(odczyt)) {\r\n String numerWStringu = String.valueOf(elementyPogody[0] = (int) (Math.random() * 4));\r\n while ((line = czytaj.readLine()) != null){\r\n if (line.equals(numerWStringu)){\r\n elementyPogody[1] = Integer.parseInt(czytaj.readLine());\r\n elementyPogody[2] = czytaj.readLine();\r\n System.out.println(\"\\nPogoda na dzis: \" + elementyPogody[2]);\r\n break;\r\n }\r\n else {\r\n for (int i = 0; i < 2; i++) {\r\n line = czytaj.readLine();\r\n }\r\n }\r\n }\r\n } catch (Exception ignored) {\r\n }\r\n return List.of(elementyPogody);\r\n }",
"public void listarutilizador() {\n \n \n List<Utilizador> cs =new UtilizadorJpaController().findUtilizadorEntities();\n \n DefaultTableModel tbm=(DefaultTableModel) listadeutilizador.getModel();\n \n for (int i = tbm.getRowCount()-1; i >= 0; i--) {\n tbm.removeRow(i);\n }\n int i=0;\n for (Utilizador c : cs) {\n tbm.addRow(new String[1]);\n listadeutilizador.setValueAt(c.getIdutilizador(), i, 0);\n listadeutilizador.setValueAt(c.getNome(), i, 1);\n listadeutilizador.setValueAt(c.getUtilizador(), i, 2);\n listadeutilizador.setValueAt(c.getIdprevilegio().getPrevilegio(), i, 3);\n// listaderelatorio.setValueAt(f.getTotal(), i, 4);\n// Distrito di = new DistritoJpaController().getDistritoByLoc(f.getIdlocalidade());\n// Localidade lo = new LocalidadeJpaController().findLocalidade(f.getIdlocalidade());\n// listaderelatorio.setValueAt(di.getDistrito(), i, 0);//lo.getIdposto().getIddistrito().getDistrito(), i, 0);\n// listaderelatorio.setValueAt(lo.getLocalidade(), i, 1);\n \n//// listadeformando.setValueAt(f.getSexo(), i, 2);\n// listaderelatorio.setValueAt(f.getQhomem(), i, 2);\n// listaderelatorio.setValueAt(f.getQmulher(), i, 3);\n// listaderelatorio.setValueAt(f.getTotal(), i, 4);\n// \n// \n i++;\n }\n \n \n \n }",
"public List<Tripulante> buscarTodosTripulantes();",
"public Vector addJumMhs(Vector vListInfoKelas) {\n \t/*\n \t * unreusable cuma adhock fix\n \t */\n \tif(vListInfoKelas!=null && vListInfoKelas.size()>0) {\n \t\t/*\n\t\t\t * tambah jumlah mhs perkelas ke dalam brs;\n\t\t\t */\n\t\t\tListIterator li = vListInfoKelas.listIterator();\n \t\ttry {\n \t\t\tContext initContext = new InitialContext();\n \t\t\tContext envContext = (Context)initContext.lookup(\"java:/comp/env\");\n \t\t\tds = (DataSource)envContext.lookup(\"jdbc\"+beans.setting.Constants.getDbschema());\n \t\t\tcon = ds.getConnection();\n \t\t\t//String sqlstmt = \"select NPMHSTRNLM,KODE_KAMPUS_DOMISILI from TRNLM inner join CIVITAS c on NPMHSTRNLM=NPMHSMSMHS inner join OBJECT o on c.ID_OBJ = o.ID_OBJ\";\n \t\t\t//sqlstmt = sqlstmt + \" where THSMSTRNLM=? and KDPSTTRNLM=? and KDKMKTRNLM=?\";\n \t\t\tstmt = con.prepareStatement(\"select * from TRNLM where THSMSTRNLM=? and KDPSTTRNLM=? and KDKMKTRNLM=?\");\n \t\t //stmt = con.prepareStatement(sqlstmt);\n \t\t\twhile(li.hasNext()) {\n \t\t\t\tString brs = (String)li.next();\n \t\t\t\tStringTokenizer st = new StringTokenizer(brs,\"$\");\n \t\t\tString kodeGabungan=st.nextToken();\n \t\t\tString idkmk1=st.nextToken();\n \t\t\tString idkur1=st.nextToken();\n \t\t\tString kdkmk1=st.nextToken();\n \t\t\tString nakmk1=st.nextToken();\n \t\t\tString thsms1=st.nextToken();\n \t\t\tString kdpst1=st.nextToken();\n \t\t\tString shift1=st.nextToken();\n \t\t\tString norutKlsPll1=st.nextToken();\n \t\t\tString initNpmInput1=st.nextToken();\n \t\t\tString latestNpmUpdate1=st.nextToken();\n \t\t\tString latesStatusInfo1=st.nextToken();\n \t\t\tString currAvailStatus1=st.nextToken();\n \t\t\tString locked1=st.nextToken();\n \t\t\tString npmdos1=st.nextToken();\n \t\t\tString nodos1=st.nextToken();\n \t\t\tString npmasdos1=st.nextToken();\n \t\t\tString noasdos1=st.nextToken();\n \t\t\tString canceled1=st.nextToken();\n \t\t\tString kodeKelas1=st.nextToken();\n \t\t\tString kodeRuang1=st.nextToken();\n \t\t\tString kodeGedung1=st.nextToken();\n \t\t\tString kodeKampus1=st.nextToken();\n \t\t\tString tknHrTime1=st.nextToken();\n \t\t\tString nmdos1=st.nextToken();\n \t\t\tString nmasdos1=st.nextToken();\n \t\t\tString enrolled1=st.nextToken();\n \t\t\tString maxEnrolled1=st.nextToken();\n \t\t\tString minEnrolled1=st.nextToken();\n \t\t\tString subKeterKdkmk1=st.nextToken();\n \t\t\tString initReqTime1=st.nextToken();\n \t\t\tString tknNpmApr1=st.nextToken();\n \t\t\tString tknAprTime1=st.nextToken();\n \t\t\tString targetTtmhs1=st.nextToken();\n \t\t\tString passed1=st.nextToken();\n \t\t\t\tString rejected1=st.nextToken();\n \t\t\t\tString konsen1=st.nextToken();\n \t\t\t\tString nmpst1=st.nextToken();\n \t\t\t\tstmt.setString(1,thsms1);\n \t\t\t\tstmt.setString(2,kdpst1);\n \t\t\t\tstmt.setString(3,kdkmk1);\n \t\t\t\trs = stmt.executeQuery();\n \t\t\t\t//int i = 0;\n \t\t\t\tString listNpm = null;\n \t\t\t\t\n \t\t\t\tVector vTmp = new Vector();\n \t\t\t\tListIterator liTmp = vTmp.listIterator();\n \t\t\t\twhile(rs.next()) {\n \t\t\t\t\tString kodeKampusDomisili = \"\"+rs.getString(\"KODE_KAMPUS\");\n \t\t\t\t\tString npmhs = rs.getString(\"NPMHSTRNLM\");\n \t\t\t\t\tif(kodeKampus1.equalsIgnoreCase(kodeKampusDomisili)) {\n \t\t\t\t\t\tliTmp.add(npmhs);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tvTmp = Tool.removeDuplicateFromVector(vTmp);\n \t\t\t\tliTmp = vTmp.listIterator();\n \t\t\t\twhile(liTmp.hasNext()) {\n \t\t\t\t\tif(listNpm==null) {\n \t\t\t\t\t\tlistNpm=\"\";\n \t\t\t\t\t}\n \t\t\t\t\tString npmhs = (String)liTmp.next();\n \t\t\t\t\tlistNpm = listNpm+npmhs;\n \t\t\t\t\tif(liTmp.hasNext()) {\n \t\t\t\t\t\tlistNpm = listNpm+\",\";\n \t\t\t\t\t}\t\n \t\t\t\t}\t\n \t\t\t\t/*\n \t\t\t\twhile(rs.next()) {\n \t\t\t\t\tif(listNpm==null) {\n \t\t\t\t\t\tlistNpm = \"\";\n \t\t\t\t\t}\n \t\t\t\t\tString npmhs = rs.getString(\"NPMHSTRNLM\");\n \t\t\t\t\tlistNpm = listNpm+\",\"+npmhs;\n \t\t\t\t\t//i++;\n \t\t\t\t}\n \t\t\t\t*/\n \t\t\t\tif(listNpm==null||Checker.isStringNullOrEmpty(listNpm)) {\n \t\t\t\t\tlistNpm = \"null\";\n \t\t\t\t}\n \t\t\t\t//System.out.println(\"listNpm=\"+listNpm);\n \t\t\t\tli.set(brs+\"$\"+listNpm);\n \t\t\t\t//System.out.println(\"listNpm=\"+listNpm);\n \t\t\t\t//System.out.println(thsms1+\"$\"+kdpst1+\"$\"+kdkmk1);\n \t\t\t\t//System.out.println(brs+\"$\"+i);\n \t\t\t}\n \t\t\t/*\n \t\t\tstmt = con.prepareStatement(\"select KODE_KAMPUS_DOMISILI from CIVITAS inner join OBJECT on CIVITAS.ID_OBJ=OBJECT.ID_OBJ where KDPSTMSMHS=? and NPMHSMSMHS=?\");\n \t\t\tli = vListInfoKelas.listIterator();\n \t\t\twhile(li.hasNext()) {\n \t\t\t\tString brs = (String)li.next();\n \t\t\t\tStringTokenizer st = new StringTokenizer(brs,\"$\");\n \t\t\tString kodeGabungan=st.nextToken();\n \t\t\tString idkmk1=st.nextToken();\n \t\t\tString idkur1=st.nextToken();\n \t\t\tString kdkmk1=st.nextToken();\n \t\t\tString nakmk1=st.nextToken();\n \t\t\tString thsms1=st.nextToken();\n \t\t\tString kdpst1=st.nextToken();\n \t\t\tString shift1=st.nextToken();\n \t\t\tString norutKlsPll1=st.nextToken();\n \t\t\tString initNpmInput1=st.nextToken();\n \t\t\tString latestNpmUpdate1=st.nextToken();\n \t\t\tString latesStatusInfo1=st.nextToken();\n \t\t\tString currAvailStatus1=st.nextToken();\n \t\t\tString locked1=st.nextToken();\n \t\t\tString npmdos1=st.nextToken();\n \t\t\tString nodos1=st.nextToken();\n \t\t\tString npmasdos1=st.nextToken();\n \t\t\tString noasdos1=st.nextToken();\n \t\t\tString canceled1=st.nextToken();\n \t\t\tString kodeKelas1=st.nextToken();\n \t\t\tString kodeRuang1=st.nextToken();\n \t\t\tString kodeGedung1=st.nextToken();\n \t\t\tString kodeKampus1=st.nextToken();\n \t\t\tString tknHrTime1=st.nextToken();\n \t\t\tString nmdos1=st.nextToken();\n \t\t\tString nmasdos1=st.nextToken();\n \t\t\tString enrolled1=st.nextToken();\n \t\t\tString maxEnrolled1=st.nextToken();\n \t\t\tString minEnrolled1=st.nextToken();\n \t\t\tString subKeterKdkmk1=st.nextToken();\n \t\t\tString initReqTime1=st.nextToken();\n \t\t\tString tknNpmApr1=st.nextToken();\n \t\t\tString tknAprTime1=st.nextToken();\n \t\t\tString targetTtmhs1=st.nextToken();\n \t\t\tString passed1=st.nextToken();\n \t\t\t\tString rejected1=st.nextToken();\n \t\t\t\tString nmpst1=st.nextToken();\n \t\t\t\tString listNpm1=st.nextToken();\n \t\t\t\tStringTokenizer st2 = new StringTokenizer(listNpm1,\",\");\n \t\t\t\tlistNpm1 = null;\n \t\t\t\tboolean first = true;;\n \t\t\t\twhile(st2.hasMoreTokens()) {\n \t\t\t\t\tString npm = st2.nextToken();\n \t\t\t\t\tstmt.setString(1,kdpst1);\n \t\t\t\t\tstmt.setString(2,npm);\n \t\t\t\t\trs = stmt.executeQuery();\n \t\t\t\t\tString kampusDomisili = null;\n \t\t\t\t\t\n \t\t\t\t\tif(rs.next()) {\n \t\t\t\t\t\tkampusDomisili = \"\"+rs.getString(\"KODE_KAMPUS_DOMISILI\");\n \t\t\t\t\t\tif(kodeKampus1.equalsIgnoreCase(kampusDomisili)) {\n \t\t\t\t\t\t\tif(first) {\n \t\t\t\t\t\t\t\tlistNpm1=\"\";\n \t\t\t\t\t\t\t\tfirst = false;\n \t\t\t\t\t\t\t\tlistNpm1=npm;\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\telse {\n \t\t\t\t\t\t\t\tlistNpm1=listNpm1+\",\"+npm;\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\telse {\n \t\t\t\t\t\tlistNpm1=\"null\";\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tli.set(kodeGabungan+\"$\"+idkmk1+\"$\"+idkur1+\"$\"+kdkmk1+\"$\"+nakmk1+\"$\"+thsms1+\"$\"+kdpst1+\"$\"+shift1+\"$\"+norutKlsPll1+\"$\"+initNpmInput1+\"$\"+latestNpmUpdate1+\"$\"+latesStatusInfo1+\"$\"+currAvailStatus1+\"$\"+locked1+\"$\"+npmdos1+\"$\"+nodos1+\"$\"+npmasdos1+\"$\"+noasdos1+\"$\"+canceled1+\"$\"+kodeKelas1+\"$\"+kodeRuang1+\"$\"+kodeGedung1+\"$\"+kodeKampus1+\"$\"+tknHrTime1+\"$\"+nmdos1+\"$\"+nmasdos1+\"$\"+enrolled1+\"$\"+maxEnrolled1+\"$\"+minEnrolled1+\"$\"+subKeterKdkmk1+\"$\"+initReqTime1+\"$\"+tknNpmApr1+\"$\"+tknAprTime1+\"$\"+targetTtmhs1+\"$\"+passed1+\"$\"+rejected1+\"$\"+nmpst1+\"$\"+listNpm1);\n \t\t\t}\n \t\t\t*/\t\n \t\t}\n \t\tcatch (NamingException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tcatch (SQLException ex) {\n \t\t\tex.printStackTrace();\n \t\t} \n \t\tcatch (Exception e) {\n \t\t\te.printStackTrace();\t\n \t\t}\n \t\tfinally {\n \t\t\tif (rs!=null) try { rs.close(); } catch (Exception ignore){}\n \t\t\tif (stmt!=null) try { stmt.close(); } catch (Exception ignore){}\n \t\t\tif (con!=null) try { con.close();} catch (Exception ignore){}\n \t\t}\n \t}\n \treturn vListInfoKelas;\n }",
"void listarDadosNaTelaColaborador(ArrayList<Colaborador> lista,DefaultTableModel model ) {\n model.setNumRows(0);\n //Correr o ArrayList\n for (int pos = 0; pos < lista.size(); pos++) {\n String[] linha = new String[9];\n Colaborador aux = lista.get(pos);\n linha[0] = \"\"+aux.getId();\n linha[1] = \"\"+aux.getMatricula();\n linha[2] = aux.getNome();\n linha[3] = \"\"+aux.getNumeroOAB();\n linha[4] = \"\"+aux.getCpf();\n linha[5] = aux.getEmail();\n linha[6] = \"\"+aux.getTelefone();\n linha[7] = aux.getTipo().toString();\n linha[8] = aux.getStatus().toString();\n model.addRow(linha);\n }\n }",
"public void listarHospedes() {\n System.out.println(\"Hospedes: \\n\");\n if (hospedesCadastrados.isEmpty()) {\n// String esta = hospedesCadastrados.toString();\n// System.out.println(esta);\n System.err.println(\"Não existem hospedes cadastrados\");\n } else {\n String esta = hospedesCadastrados.toString();\n System.out.println(esta);\n // System.out.println(Arrays.toString(hospedesCadastrados.toArray()));\n }\n\n }",
"private void lisaaMiinaOikealle(int i, int j) {\n ArrayList<Ruutu> lista;\n if (i + 1 < x) {\n lista = this.ruudukko[i + 1];\n lista.get(j).setViereisetMiinat(1);\n if (j - 1 >= 0) {\n lista.get(j - 1).setViereisetMiinat(1);\n }\n if (j + 1 < x) {\n lista.get(j + 1).setViereisetMiinat(1);\n }\n }\n }",
"public List<JsonObject> notasDeVentas(){\n String nv[][]= pedidoMaterialRepository.buscarNotaVenta();\n List<JsonObject> js = new ArrayList<JsonObject>();\n \n for (int i=0;i<nv.length;i++){\n \n JsonObject jo = new JsonObject();\n jo.put(\"notaDeVenta\", nv[i][0]);\n jo.put(\"descripcion\", nv[i][1]);\n jo.put(\"cliente\", nv[i][2]);\n js.add(jo);\n }\n \n return js;\n }",
"@Test\n\tpublic void testGetLista() throws Exception {\n\t\tSystem.out.println(\"getLista\");\n\t\tso.execute(entity);\n\t\tList<IGeneralEntity> expResult = ((TakeTrucksOperation) so).getLista();\n\t\tList<IGeneralEntity> result = so.db.vratiSve(entity);\n\n\t\tassertEquals(expResult.size(), result.size());\n\t}",
"public void mostrarlistainciofin(){\n if(!estavacia()){\n String datos=\"<=>\";\n nododoble auxiliar=inicio;\n while(auxiliar!=null){\n datos=datos+\"[\"+auxiliar.dato+\"]<=>\";\n auxiliar=auxiliar.siguiente;\n }\n JOptionPane.showMessageDialog(null,datos,\n \"Mostraando lista de incio a fin\",JOptionPane.INFORMATION_MESSAGE);\n } }",
"public static List getAllNames() {\n List polovniautomobili = new ArrayList<>();\n try {\n CONNECTION = DriverManager.getConnection(URL, USERNAME, PASSWORD);\n String query = \"SELECT naziv FROM polovni\";\n try (PreparedStatement ps = CONNECTION.prepareStatement(query)) {\n ResultSet result = ps.executeQuery();\n while (result.next()) {\n String naziv = result.getString(\"naziv\");\n polovniautomobili.add(naziv);\n\n }\n\n ps.close();\n CONNECTION.close();\n }\n CONNECTION.close();\n } catch (SQLException ex) {\n Logger.getLogger(Register.class.getName()).log(Level.SEVERE, null, ex);\n }\n return polovniautomobili;\n }",
"public void listarAlunosNaDisciplina(){\r\n for(int i = 0;i<alunos.size();i++){\r\n System.out.println(alunos.get(i).getNome());\r\n }\r\n }",
"public List getTrabajadores();",
"public static void main(String[] args) throws Exception {\n\t\tLista<Contato> vetor = new Lista<Contato>(20);\n\t\tLinkedList<Contato> listaEncadeada = new LinkedList<Contato>();\n\n\t\tContato c1 = new Contato(\"c1\", \"111-1111\", \"[email protected]\");\n\t\tContato c2 = new Contato(\"c2\", \"222-2222\", \"[email protected]\");\n\t\tContato c3 = new Contato(\"c3\", \"333-3333\", \"[email protected]\");\n\t\tContato c4 = new Contato(\"c4\", \"444-2344\", \"[email protected]\");\n\t\tContato c5 = new Contato(\"c5\", \"555-5585\", \"[email protected]\");\n\t\tContato c6 = new Contato(\"c6\", \"111-1911\", \"[email protected]\");\n\t\tContato c7 = new Contato(\"c7\", \"222-2322\", \"[email protected]\");\n\t\tContato c8 = new Contato(\"c8\", \"333-3333\", \"[email protected]\");\n\t\tContato c9 = new Contato(\"c9\", \"454-4644\", \"[email protected]\");\n\t\tContato c10 = new Contato(\"c10\", \"515-5235\", \"[email protected]\");\n\t\tContato c11 = new Contato(\"c11\", \"131-1411\", \"[email protected]\");\n\t\tContato c12 = new Contato(\"c12\", \"252-2672\", \"[email protected]\");\n\t\tContato c13 = new Contato(\"c13\", \"313-3433\", \"[email protected]\");\n\t\tContato c14 = new Contato(\"c14\", \"433-4334\", \"[email protected]\");\n\t\tContato c15 = new Contato(\"c15\", \"535-5355\", \"[email protected]\");\n\t\tContato c16 = new Contato(\"c16\", \"161-1516\", \"[email protected]\");\n\t\tContato c17 = new Contato(\"c17\", \"272-2272\", \"[email protected]\");\n\t\tContato c18 = new Contato(\"c18\", \"383-3993\", \"[email protected]\");\n\t\tContato c19 = new Contato(\"c19\", \"141-4949\", \"[email protected]\");\n\t\tContato c20 = new Contato(\"c20\", \"565-5565\", \"[email protected]\");\n\t\tContato c21 = new Contato(\"c21\", \"616-1611\", \"[email protected]\");\n\t\tContato c22 = new Contato(\"c22\", \"212-2121\", \"[email protected]\");\n\t\tContato c23 = new Contato(\"c23\", \"131-1331\", \"[email protected]\");\n\t\tContato c24 = new Contato(\"c24\", \"424-4444\", \"[email protected]\");\n\t\tContato c25 = new Contato(\"c25\", \"565-5555\", \"[email protected]\");\n\t\tContato c26 = new Contato(\"c26\", \"111-1611\", \"[email protected]\");\n\t\tContato c27 = new Contato(\"c27\", \"282-1252\", \"[email protected]\");\n\t\tContato c28 = new Contato(\"c28\", \"323-3433\", \"[email protected]\");\n\t\tContato c29 = new Contato(\"c29\", \"544-4464\", \"[email protected]\");\n\t\tContato c30 = new Contato(\"c30\", \"155-5455\", \"[email protected]\");\n\n\t\ttry {\n\t\t\t// ex5\n\t\t\tvetor.adiciona(c1);\n\t\t\tvetor.adiciona(c2);\n\t\t\tvetor.adiciona(c3);\n\t\t\tvetor.adiciona(c4);\n\t\t\tvetor.adiciona(c5);\n\t\t\tvetor.adiciona(c6);\n\t\t\tvetor.adiciona(c7);\n\t\t\tvetor.adiciona(c8);\n\t\t\tvetor.adiciona(c9);\n\t\t\tvetor.adiciona(c10);\n\t\t\tvetor.adiciona(c11);\n\t\t\tvetor.adiciona(c12);\n\t\t\tvetor.adiciona(c13);\n\t\t\tvetor.adiciona(c14);\n\t\t\tvetor.adiciona(c15);\n\t\t\tvetor.adiciona(c16);\n\t\t\tvetor.adiciona(c17);\n\t\t\tvetor.adiciona(c18);\n\t\t\tvetor.adiciona(c19);\n\t\t\tvetor.adiciona(c20);\n\t\t\tvetor.adiciona(c21);\n\t\t\tvetor.adiciona(c22);\n\t\t\tvetor.adiciona(c23);\n\t\t\tvetor.adiciona(c24);\n\t\t\tvetor.adiciona(c25);\n\t\t\tvetor.adiciona(c26);\n\t\t\tvetor.adiciona(c27);\n\t\t\tvetor.adiciona(c28);\n\t\t\tvetor.adiciona(c29);\n\t\t\tvetor.adiciona(c30);\n\t\t\t// ex3\n\t\t\tvetor.removerT(\"111-1111\");\n\t\t\t//ex4-vetor.RemoverTudo();\n\t\t\t\n\t\t\tSystem.out.println(vetor);\n\t\t\t// ex1\n\t\t\tSystem.out.println(\"Confirmar se o elemento na lista existe:\" + vetor.contem(c2));\n\t\t\t// ex2\n\t\t\tSystem.out.println(\"Retornar a posicao do elemento, se retornar -1 que dizer que o elemento não existe:\"\n\t\t\t\t\t+ vetor.indicio(c2));\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// ex6\n\t\tlistaEncadeada.add(c1);\n\t\tlistaEncadeada.add(c2);\n\t\tlistaEncadeada.add(c3);\n\t\tlistaEncadeada.add(c4);\n\t\tlistaEncadeada.add(c5);\n\t\tlistaEncadeada.add(c6);\n\t\tlistaEncadeada.add(c7);\n\t\tlistaEncadeada.add(c8);\n\t\tlistaEncadeada.add(c9);\n\t\tlistaEncadeada.add(c10);\n\t\tlistaEncadeada.add(c11);\n\t\tlistaEncadeada.add(c12);\n\t\tlistaEncadeada.add(c13);\n\t\tlistaEncadeada.add(c14);\n\t\tlistaEncadeada.add(c15);\n\t\tlistaEncadeada.add(c16);\n\t\tlistaEncadeada.add(c17);\n\t\tlistaEncadeada.add(c18);\n\t\tlistaEncadeada.add(c19);\n\t\tlistaEncadeada.add(c20);\n\t\tlistaEncadeada.add(c21);\n\t\tlistaEncadeada.add(c22);\n\t\tlistaEncadeada.add(c23);\n\t\tlistaEncadeada.add(c24);\n\t\tlistaEncadeada.add(c25);\n\t\tlistaEncadeada.add(c26);\n\t\tlistaEncadeada.add(c27);\n\t\tlistaEncadeada.add(c28);\n\t\tlistaEncadeada.add(c29);\n\t\tlistaEncadeada.add(c30);\n\n\t\tSystem.out.println(listaEncadeada);\n\n\t}",
"public ArrayList<DanhMuc> getListDanhMucCha();",
"public ListaEtiquetas() {\n this.listaEtiquetas = new ArrayList<>();\n }",
"public ArrayList<KelasDicoding> getListKelas(){ return listKelas; }",
"private void carregaLista() {\n listagem = (ListView) findViewById(R.id.lst_cadastrados);\n dbhelper = new DBHelper(this);\n UsuarioDAO dao = new UsuarioDAO(dbhelper);\n //Preenche a lista com os dados do banco\n List<Usuarios> usuarios = dao.buscaUsuarios();\n dbhelper.close();\n UsuarioAdapter adapter = new UsuarioAdapter(this, usuarios);\n listagem.setAdapter(adapter);\n }",
"private void listaContatos() throws SQLException {\n limpaCampos();\n BdLivro d = new BdLivro();\n livros = d.getLista(\"%\" + jTPesquisar.getText() + \"%\");\n\n // Após pesquisar os contatos, executa o método p/ exibir o resultado na tabela pesquisa\n mostraPesquisa(livros);\n livros.clear();\n }",
"private void apresentarListaNaTabela() {\n DefaultTableModel modelo = (DefaultTableModel) tblAlunos.getModel();\n modelo.setNumRows(0);\n for (Aluno item : bus.getLista()) {\n modelo.addRow(new Object[]{\n item.getIdAluno(),\n item.getNome(),\n item.getEmail(),\n item.getTelefone()\n });\n }\n }",
"public void Listar() {\n try {\n ApelacionesDao apelacionesDao = new ApelacionesDao();\n this.listaApelaciones.clear();\n setListaApelaciones(apelacionesDao.cargaApelaciones());\n } catch (ExceptionConnection ex) {\n Logger.getLogger(ApelacionController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"private static List<Billetes> generarBilletes(String fecha, Pasajero p){\n\t\tList<Billetes> billetes = new ArrayList<>();\n\t\t\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tBilletes billete = new Billetes();\n\t\t\tbillete.setId(i);\n\t\t\tbillete.setFecha(fecha);\n\t\t\t\n\t\t\tchar c1 = (char)new Random().nextInt(50);\n\t\t\tchar c2 = (char)new Random().nextInt(50);\n\t\t\t\n\t\t\t/*\n\t\t\t * \n\t\t\t */\n\t\t\tbillete.setAsiento(\"\" + c1 + c2 + new Random().nextInt(100) + new Random().nextInt(50));\n\t\t\tbillete.setPasajero(p); \n\t\t\tbillete.setVuelo(p.getVuelos().get(new Random().nextInt(p.getVuelos().size())));\n\t\t\t\n\t\t\tbilletes.add(billete);\n\t\t}\n\t\t\n\t\treturn billetes;\n\t}",
"public void mostrarlistainicifin(){\n if(!estaVacia()){\n String datos = \"<=>\";\n NodoBus auxiliar = inicio;\n while(auxiliar!=null){\n datos = datos + \"(\" + auxiliar.dato +\")<=>\";\n auxiliar = auxiliar.sig;\n JOptionPane.showMessageDialog(null, datos, \"Mostrando lista de inicio a fin\", JOptionPane.INFORMATION_MESSAGE);\n }\n }\n }",
"public List<Tripulante> obtenerTripulantes();",
"public String prikaziListu() {\r\n\t\treturn SOPrikazListe.izvrsi(lista.vratiRangListu(), lista.brRezultata);\r\n\t}",
"public List<String> Garsonkullanici(int masa_no) throws SQLException {\n ArrayList<Integer> kull = new ArrayList<>();\r\n ArrayList<String> kullad = new ArrayList<>();\r\n sqlsorgular.baglanti vb = new baglanti();\r\n vb.baglan();\r\n try {\r\n\r\n String sorgu = \"select kullanici_no from ilisk_masa where masa_no=\" + masa_no + \";\";\r\n ps = vb.con.prepareStatement(sorgu);\r\n rs = ps.executeQuery(sorgu);\r\n\r\n while (rs.next()) {\r\n kull.add(rs.getInt(1));\r\n }\r\n System.out.println(kull);\r\n } catch (Exception e) {\r\n System.out.println(\"Garson kullanicisini alirken hata olustu\");\r\n\r\n }\r\n\r\n for (Integer kullanici_no : kull) {\r\n String deger = \" \";\r\n String sorgu2 = \"select kullanici_adi from kullanicilar where kullanici_no=\" + kullanici_no + \" and durum='GARSON';\";\r\n try {\r\n ps = vb.con.prepareStatement(sorgu2);\r\n rs = ps.executeQuery(sorgu2);\r\n while (rs.next()) {\r\n deger = rs.getString(1);\r\n\r\n if (deger != null) {\r\n kullad.add(deger);\r\n }\r\n }\r\n } catch (Exception e) {\r\n System.out.println(\"Garson kullanici Alinirken hata oldu\");\r\n }\r\n\r\n System.out.println(kullad);\r\n\r\n }\r\n vb.con.close();\r\n return kullad;\r\n\r\n }",
"public void llenadoDeCombos() {\n PerfilDAO asignaciondao = new PerfilDAO();\n List<Perfil> asignacion = asignaciondao.listar();\n cbox_perfiles.addItem(\"\");\n for (int i = 0; i < asignacion.size(); i++) {\n cbox_perfiles.addItem(Integer.toString(asignacion.get(i).getPk_id_perfil()));\n }\n \n }",
"public void MostrarListaInicioFin() {\n if(!estVacia()){\n String datos=\"<=>\";\n NodoDoble current=inicio;\n while(current!=null){\n datos += \"[\"+current.dato+\"]<=>\";\n current = current.siguiente;\n }\n JOptionPane.showMessageDialog(null, datos, \"Mostrando Lista de inicio a Fin\",JOptionPane.INFORMATION_MESSAGE);\n }\n }",
"private static void obtenirUneListe() throws FileNotFoundException {\n\t\tSystem.out.println(\"\\r\\nPour combien de jours : \");\n\t\tint nbJours = sc.nextInt();\n\n\t\tSystem.out.println(\"\\r\\nCombien de propositions : \");\n\t\tint nbPropositions = sc.nextInt();\n\n\t\tList<List<Recette>> listeProposition = genererListePropositions(nbJours, nbPropositions);\n\n\t\tSystem.out.println(\"\\r\\nChoix ? \");\n\t\tint choix = sc.nextInt();\n\n\t\tgenererFichier(listeProposition.get(choix - 1));\n\n\t\tsc.nextLine();\n\n\t\traz();\n\t}",
"public DobbeltLenketListe() {\n this.hode= null;\n this.hale= null;\n antall=0; }",
"public void testLst() {\n System.out.println(\"\");\n EcgCheck chk = EcgCheck.getInstance();\n System.out.println(\" Show TEstlist\");\n\n mail_lst.forEach(m -> {\n System.out.println(\"[\" + new String(chk.sha(m.getBytes())) + \"]\");\n });\n }",
"public void chargeListe(){\n jCbListeEtablissement.removeAllItems();\n String sReq = \"From Etablissement\";\n Query q = jfPrincipal.getSession().createQuery(sReq);\n Iterator eta = q.iterate();\n while(eta.hasNext())\n {\n Etablissement unEtablissement = (Etablissement) eta.next();\n jCbListeEtablissement.addItem(unEtablissement.getEtaNom());\n }\n bChargeListe = true;\n }",
"public List<Listas_de_las_Solicitudes> Mostrar_las_peticiones_que_han_llegado_al_Usuario_Administrador(int cedula) {\n\t\t//paso3: Obtener el listado de peticiones realizadas por el usuario\n\t\tEntityManagerFactory entitymanagerfactory = Persistence.createEntityManagerFactory(\"LeyTransparencia\");\n\t\tEntityManager entitymanager = entitymanagerfactory.createEntityManager();\n\t\tentitymanager.getEntityManagerFactory().getCache().evictAll();\n\t\tQuery consulta4=entitymanager.createQuery(\"SELECT g FROM Gestionador g WHERE g.cedulaGestionador =\"+cedula);\n\t\tGestionador Gestionador=(Gestionador) consulta4.getSingleResult();\n\t\t//paso4: Obtener por peticion la id, fecha y el estado\n\t\tList<Peticion> peticion=Gestionador.getEmpresa().getPeticions();\n\t\tList<Listas_de_las_Solicitudes> peticion2 = new ArrayList();\n\t\t//paso5: buscar el area de cada peticion\n\t\tfor(int i=0;i<peticion.size();i++){\n\t\t\tString almcena=\"\";\n\t\t\tString sarea=\"no posee\";\n\t\t\tBufferedReader in;\n\t\t\ttry{\n\t\t\t\tin = new BufferedReader(new InputStreamReader(new FileInputStream(\"C:/area/area\"+String.valueOf(peticion.get(i).getIdPeticion())+\".txt\"), \"utf-8\"));\n\t\t\t\ttry {\n\t\t\t\t\twhile((sarea=in.readLine())!=null){\n\t\t\t\t\t\tint s=0;\n\t\t\t\t\t\talmcena=sarea;\n\t\t\t\t\t}\n\t\t\t\t\tin.close();\n\t\t\t\t\tSystem.out.println(almcena);\n\t\t\t\t} catch (IOException 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\t\n\t\t\t\n\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\t//paso6: Mostrar un listado de peticiones observando el id, la fecha de realizacion de la peticion, hora de realizacion de la peticion, y el estado actual de la peticion\n\t\t\tListas_de_las_Solicitudes agregar=new Listas_de_las_Solicitudes();\n\t\t\tagregar.setId(String.valueOf(peticion.get(i).getIdPeticion()));\n\t\t\tagregar.setFechaPeticion(peticion.get(i).getFechaPeticion());\n\t\t\tagregar.setNombreestado(peticion.get(i).getEstado().getTipoEstado());\n\t\t\tagregar.setArea(almcena);\n\t\t\tpeticion2.add(agregar);\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"el usuario existe\");\n\t\treturn peticion2;\n\t\t//aun no se\n\t}",
"public void listar() {\r\n Collections.sort(coleccion);\r\n for (int i = 0; i < coleccion.size(); i++) {\r\n String resumen = (coleccion.get(i).toString());\r\n JOptionPane.showMessageDialog(null, resumen);\r\n }\r\n }",
"public void getOrderedList() {\n\n\t\tFile opFile = new File(\"/home/bridgeit/Desktop/newfile.txt\");\n\t\ttry {\n\t\t\topFile.createNewFile();\n\t\t\tFileWriter fwriter = new FileWriter(opFile);\n\n\t\t\tfor (int i = 0; i < olist.size(); i++) {\n\n\t\t\t\tfwriter.append(olist.returnItem(i) + \" \");\n\n\t\t\t}\n\t\t\tfwriter.close();\n\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t\n\t\tsetContentView(R.layout.yoneticiler_liste);\n\t\tActivityBar.getInstance().connectToActivity(this);\n\t\t\n\t\tIntent intent=getIntent();\n\t\tBundle args=intent.getExtras();\n\t\t//istek=args.getInt(\"istek\");\n\t\tistek=0;\n\t\t\n\t\tCHPListe gelenVeri=(CHPListe)args.getSerializable(\"gelenListe\");\n\t\t\n\t\trootList=gelenVeri;\n\t\t\n\t\tSystem.out.println(\"GElenListe: \"+gelenVeri.getName());\n\t\t\n\t\tSystem.out.println(\"YöneticiListeGelen\"+istek);\n\t\t\n\t\t\n\t\tbaslik=(TextView)findViewById(R.id.tvBaslik);\n\t\tif(gelenVeri.getHeader().equals(\"null\"))\n\t\t\tbaslik.setText(gelenVeri.getName().toString().trim());\n\t\telse\n\t\t\tbaslik.setText(gelenVeri.getHeader().toString().trim());\n\t\t\n\t\tbaslik.setGravity(Gravity.CENTER);\n\n//\t\tif(KisiListesi.getYoneticiListesi().size()==0)\n//\t\t\tSystem.out.println(\"YöneticilerListe 0\");\n//\t\telse\n//\t\t\tSystem.out.println(\"YöneticilerListe 1: \"+KisiListesi.getYoneticiListesi().size());\n\t\t\n\t\t\n\t\ttry{\n\t\t/*\n\t\t\tyoneticiler=KisiListesi.getYoneticiListesi().get(unvanlar.get(istek));\n\t\t\tlisteId=yoneticiler.keySet().toArray();\n\t\t\n\t\t\tyoneticiBilgileri=KisiListesi.getBilgiler();\n\t\t\n\t\t\tArrayList<YoneticiKayit> yoneticiKayitlari=new ArrayList<YoneticiKayit>();\n\t\t\tString[] sadeceIsimlerListesi=new String[listeId.length];\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tfor(int i=0; i<listeId.length;i++){\n\t\t\t\tString isim=yoneticiBilgileri.get(listeId[i]).getIsim();\n\t\t\t\tString unvan=null;\n\t\t\t\t\n\t\t\t\tsadeceIsimlerListesi[i]=isim;\n\t\t\t\t\n\t\t\t\tString aranacakUnvan = null;\n\t\t\t\t\n\t\t\t\tif(istek>3){\n\t\t\t\tswitch (istek) {\n\t\t\t\tcase 4:\n\t\t\t\t\taranacakUnvan=\"Milletvekili\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\taranacakUnvan=\"�l Ba�kan�\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\taranacakUnvan=\"�l�e Ba�kan�\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 7:\n\t\t\t\t\taranacakUnvan=\"B�y�k�ehir Belediye Ba�kan�\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 8:\n\t\t\t\t\taranacakUnvan=\"�l Belediye Ba�kan�\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 9:\n\t\t\t\t\taranacakUnvan=\"�l�e Belediye Ba�kan�\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tArrayList<String> unvanlar=yoneticiBilgileri.get(listeId[i]).getUnvan();\n\t\t\t\t\n\t\t\t\tfor(int a=0; a<unvanlar.size();a++){\n\t\t\t\t\t\n\t\t\t\t\tint sorguSonuc=unvanlar.get(a).lastIndexOf(aranacakUnvan);\n\t\t\t\t\tif(sorguSonuc>-1){\n\t\t\t\t\t\tunvan=unvanlar.get(a);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tYoneticiKayit kayit=new YoneticiKayit(isim, unvan);\n\t\t\t\tyoneticiKayitlari.add(kayit);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t*/\n\t\t\n\t\t//System.out.println(\"Kay�t edilmi� listenin boyutu: \"+yoneticiKayitlari.size());\n\t\tliste=(ListView)findViewById(R.id.lvListeYL);\n\t\t\n\t\t\n\t\tCHPListAdapter adapter=new CHPListAdapter(this,R.layout.yonticiler_sablon,R.id.tvUnvanlar, gelenVeri.getContent());\n\t\tliste.setAdapter(adapter);\n\t\t\n\t\t\n//\t\tArrayAdapter<String> adapter=new ArrayAdapter<String>(YoneticilerListe.this,R.layout.yonticiler_sablon,R.id.tvUnvanlar, sadeceIsimlerListesi);\n//\t\t\n//\t\tYoneticiBilgileriAdapter adapterUnvanli=new YoneticiBilgileriAdapter(this,android.R.layout.simple_list_item_1,yoneticiKayitlari);\n\t\t\n//\t\tif(istek<=3)\n//\t\t\tliste.setAdapter(adapter);\n//\t\telse\n//\t\t\tliste.setAdapter(adapterUnvanli);\n//\t\t\n\t\t//System.out.println(\"Adapter olu�turuldu: \"+yoneticiKayitlari.size());\n\t\tliste.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(((CHPListe)rootList).getContent().get(arg2).getType().equals(\"list\")){\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"********TYPE\"+(((CHPListe)((CHPListe)rootList).getContent().get(arg2)).getContent().get(0).getType()));\n\t\t\t\t\tSystem.out.print(\"****Tıklanan listenin uzunluğu: \"+((CHPListe)((CHPListe)rootList).getContent().get(arg2)).getContent().size());\n\t\t\t\t\tif(((CHPListe)((CHPListe)rootList).getContent().get(arg2)).getContent().size()!=1 ){\n\t\t\t\t\t\tIntent i=new Intent(YoneticilerListe.this, YoneticilerListe.class); // this; yonlendirmenin yap�ld��� activity. \n\t\t\t\t\t\ti.putExtra(\"gelenListe\", ((CHPListe)rootList).getContent().get(arg2));\n\t\t\t\t\n\t\t\t\t\t\tstartActivityForResult(i, 0);\n\t\t\t\t\t\t//startActivity(i);\n\t\t\t\t\t}\n\t\t\t\t\telse if(((CHPListe)((CHPListe)rootList).getContent().get(arg2)).getContent().size()==1 && (((CHPListe)((CHPListe)rootList).getContent().get(arg2)).getContent().get(0).getType().equals(\"person\"))){\n\t\t\t\t\t\tistenenYoneticiId=((CHPPerson)((CHPListe)((CHPListe)rootList).getContent().get(arg2)).getContent().get(0)).getId();\n\t\t\t\t\t\tnew Servis().execute(istenenYoneticiId);\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tistenenYoneticiId=((CHPPerson)((CHPListe)rootList).getContent().get(arg2)).getId();\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"YöneticiListe tıklanan Yönetici ID: \"+istenenYoneticiId);\n\t\t\t\t\tnew Servis().execute(istenenYoneticiId);\n\t\t\t\t}\n//\t\t\t\ttiklanan=arg2;\n//\t\t\t\tistenenYoneticiId=(Integer) listeId[tiklanan];\n//\t\t\t\t\n//\t\t\t\t//System.out.println(\"Args: \"+tiklanan);\n//\t\t\t\t\n//\t\t\t\t\n//\t\t\t\t\t// Listeleri dolduruyoruz.\n//\t\t\t\t\n//\n//\t\t\t\t\tnew Servis().execute(istenenYoneticiId);\n\t\t\t\t\n\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Hata YöneticilerListe size\"+e.toString());\n\t\t\tbuilder = new AlertDialog.Builder(this);\n\t\t\t\n\t\t\t\t\t\tbuilder.setTitle(\"Bilgiler daha alınamadı\");\n\t\t\t\t\t\tbuilder.setMessage(\"İşlem tamamlanmadı.\");\n\t\t\t\n\t\t\t\t\t\tbuilder.setPositiveButton(\"Tamam\", new DialogInterface.OnClickListener() {\n\t\t\t\n\t\t\t\t\t\t public void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t \n\t\t\t\n\t\t\t\t\t\t dialog.dismiss();\n\t\t\t\t\t\t finish();\n\t\t\t\t\t\t \n\t\t\t\t\t\t }\n\t\t\t\n\t\t\t\t\t\t});\n\t\t\t\t\t\t\n\t\t\t\t\t\tbuilder.create().show();\n\t\t}\n//\t\tfinally{\n//\t\t\t\n//\t\t\t\n//\t\t\tbuilder = new AlertDialog.Builder(this);\n//\n//\t\t\tbuilder.setTitle(\"Bağlantı?\");\n//\t\t\tbuilder.setMessage(\"Lütfen internet bağlantınızı kontrol edin.\");\n//\n//\t\t\tbuilder.setPositiveButton(\"Tamam\", new DialogInterface.OnClickListener() {\n//\n//\t\t\t public void onClick(DialogInterface dialog, int which) {\n//\t\t\t \n//\n//\t\t\t dialog.dismiss();\n//\t\t\t finish();\n//\t\t\t \n//\t\t\t }\n//\n//\t\t\t});\n//\t\t\t\n//\t\t\tbuilder.create().show();\n//\t\t}\n\t\t\n\t\t\n\t\t\n\t\t//System.out.println(\"Grountulenecek Liste: \"+goruntulenecekListe[0]+\", \"+goruntulenecekListe.length);\n\t\t\n\t\t\n\t\t\n\t}",
"public List<Lv1p2> listar()\n {\n \n List<Lv1p2> lista = new ArrayList<Lv1p2>();\n String sql = \"SELECT * FROM lv1p2\";\n PreparedStatement pst = Conexao.getPreparedStatement(sql);\n \n try {\n //Executo o aql e jogo em um resultSet\n ResultSet res = pst.executeQuery();\n //Eqaunto tiver REGISTRO eu vou relacionar\n //com a minha classe Jogador e adicionar na lista \n while(res.next())\n {\n Lv1p2 lv1p2 = new Lv1p2();\n lv1p2.setLota_pro(res.getDouble(\"lota_pro\"));\n lv1p2.setUsuario_id(res.getInt(\"usuario_id\"));\n lv1p2.setVacadecria(res.getInt(\"vaca_de_cria\"));\n lv1p2.setVacadedescarte(res.getInt(\"vaca_de_descarte\"));\n lv1p2.setTerneiro(res.getInt(\"terneiro\"));\n lv1p2.setTerneira(res.getInt(\"terneira\"));\n lv1p2.setNovilho1324(res.getInt(\"novilho_13a24\"));\n lv1p2.setNovilha1324(res.getInt(\"novilha_13a24\"));\n lv1p2.setNovilho2536(res.getInt(\"novilho_25a36\"));\n lv1p2.setNovilha2536(res.getInt(\"novilha_25a36\"));\n lv1p2.setNovilho36(res.getInt(\"novilho_36\"));\n lv1p2.setTouro(res.getInt(\"touro\"));\n lv1p2.setRebanhodecria(res.getInt(\"rebanho_de_cria\"));\n lista.add(lv1p2);\n }\n } catch(SQLException ex){\n \n ex.printStackTrace();\n }\n return lista;\n }",
"public static void main(String[] args) {\n\t\tList<String> lista = new ArrayList<>();\n\t\t\n\t\t//Adicionar elementos String na lista\n\t\tlista.add(\"São Paulo\"); //0\n\t\tlista.add(\"Rio de Janeiro\"); //1\n\t\tlista.add(\"Minas Gerais\"); //2\n\t\tlista.add(\"Amazonas\"); //3\n\t\tlista.add(\"Alagoas\"); //4\n\t\t\n\t\t//Adicionar um elemento na lista em uma posição específica\n\t\tlista.add(2,\"Espirito Santo\");//2 \n\t\t\n\t\t//Alterar o valor do elemento de uma posição específica\n\t\tlista.set(1, \"Bahia\");\n\t\t\n\t\t//Remover o elemento dado uma posição\n\t\tlista.remove(0);\n\t\t//Remover um elemento da lista (a primeira ocorrência)\n\n\t\tlista.remove(\"Bahia\");\n\n\t\t//Remove todos os elementos da lista\n\t\t//lista.clear();\n\t\t\n\t\t//Transforma um vetor em uma lista\n\t\tList numeros = Arrays.asList(new int[] {1,2,3});\n\n\t\t//Validar se a lista contém elementos\n\t\tif (!lista.isEmpty()) {\n\t\t\t//Verificar qual a primeira posição do elemento Amazonas\n\t\t\tSystem.out.println(\"Amazonas está na posição: \" + lista.indexOf(\"Amazonas\"));\n\t\t\t\n\t\t\t//Verificar se existe o estado Bahia na coleção\n\t\t\tif (lista.contains(\"Bahia\")) {\n\t\t\t\tSystem.out.println(\"A lista possui a Bahia\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"A lista não contém a Bahia\");\n\t\t\t}\n\t\t\t\n\t\t\t//Recuperar e exibir o elemento da posição 2\n\t\t\tSystem.out.println(lista.get(2)); \n\t\t\t\n\t\t\t//Exibir os elementos da lista\n\t\t\tfor (int i = 0; i < lista.size(); i++) {\n\t\t\t\tSystem.out.println(i + \" \" + lista.get(i));\n\t\t\t}\n\t\t}else {\n\t\t\tSystem.out.println(\"A lista está vazia\");\n\t\t}\n\t\t\n\t\t//Converter uma lista em um vetor\n\t\tObject[] vetor = lista.toArray();\n\t\tSystem.out.println(\"Tamanho do vetor: \" + vetor.length);\n\t\t\n\t\t//Criar uma sublista da lista de estados\n\t\tList<String> subLista = lista.subList(1, 3);\n\t\tSystem.out.println(\"Sublista:\");\n\t\t\n\t\tSystem.out.println(lista.subList(1, 3));\n\t\t\n\t\t//Exibir os elementos da sublista\n\t\tfor (int i=0; i < subLista.size(); i++) {\n\t\t\tSystem.out.println(i + \" \" + subLista.get(i));\n\t\t}\n\t\t\n\t\tfor (String item : subLista) {\n\t\t\tSystem.out.println(item);\n\t\t}\n\t\t\n\t\t//Pega cada elemento da lista e utiliza o método println\n\t\tsubLista.forEach(System.out::println);\n\t\t//item é um parâmetro do método, que representa um item da lista, do outro lado da seta é o função \n\t\tsubLista.forEach(item -> System.out.println(item));\n\t\t\n\t}",
"@Test\n public void nelioMuodostuu() {\n ArrayList lista=this.tetrimino.palautaKuvio();\n assertEquals(lista.size(), 4);\n \n }",
"public Jahresrangliste() {\r\n\t\tLaeufe = new ArrayList<Lauf>();\r\n\t\tRennfahrer = new ArrayList<Fahrer>();\r\n\t}",
"public List<Tipousr> findAllTipos(){\n\t\t List<Tipousr> listado;\n\t\t Query q;\n\t\t em.getTransaction().begin();\n\t\t q=em.createQuery(\"SELECT u FROM Tipousr u ORDER BY u.idTipousr\");\n\t\t listado= q.getResultList();\n\t\t em.getTransaction().commit();\n\t\t return listado;\n\t\t \n\t\t}",
"public static void main(String[] args) {\n\t\tString[] zeug = {\"fußball\",\"Stift\",\"tennisball\",\"lineal\",\"wacken\", \"nille\"};\n\t\tList<String> liste1 = new ArrayList<String>();\n\t\n\t\t//add Array items to list\n\t\t//String Array in Array List reinschreiben\n\t\tfor (String x: zeug) \n\t\tliste1.add(x);\n\t\n\t\t// nochmal String Array und Array List erstellen\n\t\tString[] mehrZeug = {\"Kugelschreiber\", \"geodreieck\",\"fußball\",\"Stift\",\"Keks\",\"tennisball\",\"nille\"};\n\t\tList<String> liste2 = new ArrayList<String>();\n\t\n\t\t// nochmal String Array in Array List reinschreiben\n\t\tfor (String y: mehrZeug)\n\t\tliste2.add(y);\n\t\n\t\t// ausgeben\n\t\t// Liste1 ausgeben. Die Array List\n\t\tSystem.out.println(\"Liste1 vor dem Bearbeiten:\");\n\t\t\n\t\tfor (int i=0; i<liste1.size(); i++) { \n\t\tSystem.out.printf(\"%s \", liste1.get(i));\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println();\n\t\t\n\t\tSystem.out.println(\"Liste2 zum Vergleich:\");\n\t\tfor (int i=0; i<liste2.size(); i++) { \n\t\t\tSystem.out.printf(\"%s \", liste2.get(i));\n\t\t}\n\t\t\n\t\t\n\t\t// methode listebearbeiten angewendet und liste1 und liste2 als parameter übergeben\n\t\tlistebearbeiten(liste1,liste2);\n\t\tSystem.out.println();\n\t\tSystem.out.println();\n\t\t// liste1 wird nach dem bearbeiten durch die Methode erneut ausgegeben\n\t\tSystem.out.println(\"Liste 1 nach dem bearbeiten:\");\n\t\tfor (int i=0; i<liste1.size(); i++) { \n\t\t\tSystem.out.printf(\"%s \", liste1.get(i));\n\t\t}\n\t\n\t\n\t\n\t}",
"public void menuListados() {\n\t\tSystem.out.println(\"MENU LISTADOS\");\n\t\tSystem.out.println(\"1. Personas con la misma actividad\");\n\t\tSystem.out.println(\"2. Cantidad de personas con la misma actividad\");\n\t\tSystem.out.println(\"0. Salir\");\n\t}",
"public ArrayList<DataUsuario> listarUsaurios();",
"@Override\r\n\tpublic List<Object> consultarVehiculos() {\r\n\t\t\r\n\t\tFormat formato = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\t\t\r\n\t\treturn AdminEstacionamientoImpl.getParqueadero().stream().map(\r\n\t\t\t\t temp -> {HashMap<String, String> lista = new HashMap<String, String>(); \r\n\t\t\t\t lista.put( \"placa\", temp.getVehiculo().getPlaca() );\r\n\t\t\t\t lista.put( \"tipo\", temp.getVehiculo().getTipo() );\r\n\t\t\t\t lista.put( \"fechaInicio\", formato.format( temp.getFechaInicio() ) );\r\n\r\n\t\t\t\t return lista;\r\n\t\t\t\t }\r\n\t\t\t\t).collect(Collectors.toList());\r\n\t}",
"public void listarDadosNaTelaAreaDeConhecimento(ArrayList<AreaDeConhecimento> lista, DefaultTableModel model) {\n model.setNumRows(0);\n //Correr o ArrayList\n for (int pos = 0; pos < lista.size(); pos++) {\n String[] linha = new String[3];\n AreaDeConhecimento aux = lista.get(pos);\n linha[0] = \"\" + aux.getId();\n linha[1]=aux.getClassificacaoDecimalDireito();\n linha[2] = aux.getDescricao();\n model.addRow(linha);\n }\n }",
"public static void main(String[] args) {\n List<Evento> listadoEventos = Evento.createShortList();\n List<Expositor> listadoExpositores = Expositor.createShortList();\n List<Asistente> Asistentes = Asistente.createShortList();\n //Asigno a los eventos sus expositores\n listadoEventos.get(0).setExpositor(listadoExpositores.get(0));\n listadoEventos.get(1).setExpositor(listadoExpositores.get(1));\n listadoEventos.get(2).setExpositor(listadoExpositores.get(2));\n listadoEventos.get(3).setExpositor(listadoExpositores.get(3));\n listadoEventos.get(4).setExpositor(listadoExpositores.get(4));\n listadoEventos.get(5).setExpositor(listadoExpositores.get(5));\n //Asigno los asistentes a los eventos\n listadoEventos.get(0).getListaAsistentes().add(Asistentes.get(0));\n listadoEventos.get(0).getListaAsistentes().add(Asistentes.get(1));\n\n listadoEventos.get(1).getListaAsistentes().add(Asistentes.get(2));\n\n listadoEventos.get(2).getListaAsistentes().add(Asistentes.get(3));\n\n listadoEventos.get(3).getListaAsistentes().add(Asistentes.get(4));\n listadoEventos.get(3).getListaAsistentes().add(Asistentes.get(5));\n\n listadoEventos.get(4).getListaAsistentes().add(Asistentes.get(6));\n\n listadoEventos.get(5).getListaAsistentes().add(Asistentes.get(7));\n listadoEventos.get(5).getListaAsistentes().add(Asistentes.get(8));\n listadoEventos.get(5).getListaAsistentes().add(Asistentes.get(9));\n\n //2A: Listado de manera ordenado por titulo descendiente, expositor y asistentes.\n\n Comparator<Integer> comparador = Collections.reverseOrder();\n\n //Ordenar de forma descendente por titulo\n Collections.sort(listadoEventos, (o1, o2) -> o2.getTitulo().compareTo(o1.getTitulo()));\n\n System.out.println(\"======Prueba 01 - Listado de eventos======\");\n for(Evento e:listadoEventos){\n System.out.println(\"****************************************\");\n System.out.println(\"Evento: \"+e.getTitulo());\n System.out.println(\"Expositor: \"+e.getExpositor().getNombre());\n System.out.println(\"Asistentes:\");\n for(Asistente a : e.getListaAsistentes()){\n System.out.println(a.getCodigo()+\"\\t\"+a.getNombre()+\"\\t\"+a.getApellidos());\n }\n }\n\n }"
]
| [
"0.7076725",
"0.70687735",
"0.68241525",
"0.67341125",
"0.67297757",
"0.67032105",
"0.6578326",
"0.64944",
"0.64791346",
"0.64751935",
"0.6471848",
"0.6464304",
"0.6436946",
"0.642302",
"0.64204705",
"0.6395828",
"0.6385539",
"0.63809353",
"0.6359758",
"0.63584304",
"0.63399035",
"0.6338099",
"0.631103",
"0.63021463",
"0.6280493",
"0.62551147",
"0.6253072",
"0.62489736",
"0.62464595",
"0.6241705",
"0.62366015",
"0.6224645",
"0.62238616",
"0.62163126",
"0.62146753",
"0.6198989",
"0.61945915",
"0.6178359",
"0.61776924",
"0.6170952",
"0.61665505",
"0.6157574",
"0.61406636",
"0.6137745",
"0.61299723",
"0.6124872",
"0.6116273",
"0.61131674",
"0.61037934",
"0.61000246",
"0.6094251",
"0.6090058",
"0.6089784",
"0.6078458",
"0.60776377",
"0.6069482",
"0.6050191",
"0.60495925",
"0.6049197",
"0.60414827",
"0.6029636",
"0.6027967",
"0.6020956",
"0.6020835",
"0.6018494",
"0.6003847",
"0.6002152",
"0.5999076",
"0.59943104",
"0.59931916",
"0.5991691",
"0.5989989",
"0.5989599",
"0.59889853",
"0.5987477",
"0.5979951",
"0.59785163",
"0.597004",
"0.5965872",
"0.59606427",
"0.5958594",
"0.59541565",
"0.59522253",
"0.5949561",
"0.59458953",
"0.594171",
"0.5939989",
"0.5933346",
"0.5932593",
"0.5931682",
"0.59300274",
"0.59295875",
"0.59292185",
"0.5925876",
"0.5925003",
"0.5924146",
"0.5912539",
"0.58948463",
"0.5894539",
"0.58942753",
"0.5891604"
]
| 0.0 | -1 |
Metodi tarkistaa onko arvo listassa | public boolean sisaltaa(T arvo) {
for (int i = 0; i < this.arvoja; i++) {
if (this.arvot[i].equals(arvo)) {
return true;
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void tallennaTiedostoon() {\n viitearkisto.tallenna();\n }",
"public Asiakas(){\n\t\tid++;\n\t\tbussiNumero = new Random().nextInt(OmaMoottori.bussienMaara);\n\t\tsaapumisaika = Kello.getInstance().getAika();\n\t}",
"private void kasvata() {\n T[] uusi = (T[]) new Object[this.arvot.length * 3 / 2 + 1];\n for (int i = 0; i < this.arvot.length; i++) {\n uusi[i] = this.arvot[i];\n }\n this.arvot = uusi;\n }",
"public void listar() {\n\t\t\n\t}",
"public void lisaaOmena(Omena omenat) {\n\t\tthis.omenat[i]=omenat;\r\n\t\ti++;\r\n\t\tpaino=paino+omenat.getPaino();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"private String tulostuksenApu(){\r\n String apu = \"Rivitiedosto: \";\r\n for(int i = 0; i<rivitiedot.length; i++){\r\n apu = apu + i+\": \";\r\n for(int k = 1; k <= rivitiedot[i].getKoko(); k++){\r\n apu = apu + \" \"+rivitiedot[i].get(k);\r\n }\r\n apu = apu + \" \";\r\n }\r\n\r\n return apu;\r\n }",
"public void eisagwgiFarmakou() {\n\t\t// Elegxw o arithmos twn farmakwn na mhn ypervei ton megisto dynato\n\t\tif(numOfMedicine < 100)\n\t\t{\n\t\t\tSystem.out.println();\t\n\t\t\tmedicine[numOfMedicine] = new Farmako();\t\n\t\t\tmedicine[numOfMedicine].setCode(rnd.nextInt(1000000)); // To sistima dinei automata ton kwdiko tou farmakou\n\t\t\tmedicine[numOfMedicine].setName(sir.readString(\"DWSTE TO ONOMA TOU FARMAKOU: \")); // Zitaw apo ton xristi na mou dwsei to onoma tou farmakou\n\t\t\tmedicine[numOfMedicine].setPrice(sir.readPositiveFloat(\"DWSTE THN TIMH TOU FARMAKOU: \")); // Pairnw apo ton xristi tin timi tou farmakou\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos monadikotitas tou kwdikou tou farmakou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tif(medicine[i].getCode() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(10);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfMedicine++;\n\t\t}\n\t\t// An xeperastei o megistos arithmos farmakwn\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLA FARMAKA!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}",
"public void eisagwgiAstheni() {\n\t\t// Elegxw o arithmos twn asthenwn na mhn ypervei ton megisto dynato\n\t\tif(numOfPatient < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tpatient[numOfPatient] = new Asthenis();\n\t\t\tpatient[numOfPatient].setFname(sir.readString(\"DWSTE TO ONOMA TOU ASTHENH: \")); // Pairnei to onoma tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU ASTHENH: \")); // Pairnei to epitheto tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setAMKA(rnd.nextInt(1000000)); // To sistima dinei automata ton amka tou asthenous\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t//Elegxos monadikotitas tou amka tou astheni\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfPatient; i++)\n\t\t\t{\n\t\t\t\tif(patient[i].getAMKA() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfPatient++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS ASTHENEIS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}",
"public void klikkaa(Tavarat tavarat, Klikattava klikattava);",
"public void listarAlunosNaDisciplina(){\r\n for(int i = 0;i<alunos.size();i++){\r\n System.out.println(alunos.get(i).getNome());\r\n }\r\n }",
"public void GetVehiculos() {\n String A = \"&LOCATION=POR_ENTREGAR\";\n String Pahtxml = \"\";\n \n try {\n \n DefaultListModel L1 = new DefaultListModel();\n Pahtxml = Aso.SendGetPlacas(A);\n Lsvehiculo = Aso.Leerxmlpapa(Pahtxml);\n Lsvehiculo.forEach((veh) -> {\n System.out.println(\"Placa : \" + veh.Placa);\n L1.addElement(veh.Placa);\n });\n \n Lista.setModel(L1);\n \n } catch (Exception ex) {\n Logger.getLogger(Entrega.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }",
"List<Videogioco> retriveByPiattaforma(String piattaforma);",
"public void anazitisiSintagisVaseiAstheni() {\n\t\tint amkaCode = 0;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tamkaCode = sir.readPositiveInt(\"EISAGETAI TO AMKA TOU ASTHENH: \"); // Zitaw apo ton xrhsth na mou dwsei ton amka tou asthenh pou thelei\n\t\t\tfor(i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\t\tif(amkaCode == prescription[i].getPatientAmka()) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou proorizetai gia ton sygkekrimeno asthenh\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t\tprescription[i].print(); // Emfanizw thn/tis sintagh/sintages oi opoies proorizontai gia ton sigkekrimeno asthenh\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\ttmp_2++;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON ASTHENH ME AMKA: \" + amkaCode);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tArrayList<MataKuliah> listMatakuliah = new ArrayList<MataKuliah>();\n\t\t//cara 2\n\t\t//List<MataKuliah> listMatakuliah = new ArrayList<MataKuliah>();\n\t\t\n\t\tMataKuliah mk1 = new MataKuliah(\"IF123\", \"Alpro1\", 4, 'A');\n\t\tMataKuliah mk2 = new MataKuliah(\"IF124\", \"Alpro2\", 3, 'B');\n\t\tMataKuliah mk3 = new MataKuliah(\"IF125\", \"KPLBO\", 3, 'B');\n\t\tMataKuliah mk4 = new MataKuliah(\"IF126\", \"RKPPL\", 2, 'A');\n\t\t\n\t\tlistMatakuliah.add(mk1);\n\t\tlistMatakuliah.add(mk2);\n\t\tlistMatakuliah.add(mk3);\n\t\tlistMatakuliah.add(mk4);\n\t\t\n\t\t//tampilkan objek matakuliaj dari arraylist (cara 1)\n\t\tfor (MataKuliah mk : listMatakuliah) {\n\t\t\tSystem.out.println(mk.getKode()+\",\"+mk.getIndeksNilai());\n\t\t}\n\t\t\n\t\t//(cara 2)\n\t\tIterator<MataKuliah> iteratorMK = listMatakuliah.iterator();\n\t\twhile (iteratorMK.hasNext()) {\n\t\t\tMataKuliah mk = (MataKuliah) iteratorMK.next();\n\t\t\tSystem.out.println(mk.getKode()+\",\"+mk.getIndeksNilai());\n\t\t}\n\t}",
"@Test\n public void testTarkistaVastaus() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n ArrayList<KysSana> a = new ArrayList<KysSana>();\n a.add(new KysSana(\"sana\", \"vastine\"));\n\n k.asetaKysymys(a, true, 1);\n\n\n assertEquals(\"Sanan tarkastus ei toimi\", true, k.tarkistaVastaus(\"vastine\"));\n }",
"public static void trazenjeVozila(Iznajmljivac o) {\n\t\tLocalDate pocetniDatum = UtillMethod.unosDatum(\"pocetni\");\n\t\tLocalDate krajnjiDatum = UtillMethod.unosDatum(\"krajnji\");\n\t\tSystem.out.println(\"------------------------------------\");\n\t\tSystem.out.println(\"Provera dostupnosti vozila u toku...\\n\");\n\t\tArrayList<Vozilo> dostupnaVoz = new ArrayList<Vozilo>();\n\t\tint i = 0;\n\t\tfor (Vozilo v : Main.getVozilaAll()) {\n\t\t\tif (!postojiLiRezervacija(v, pocetniDatum, krajnjiDatum) && !v.isVozObrisano()) {\n\t\t\t\tSystem.out.println(i + \"-\" + v.getVrstaVozila() + \"-\" + \"Registarski broj\" + \"-\" + v.getRegBR()\n\t\t\t\t\t\t+ \"-Potrosnja na 100km-\" + v.getPotrosnja100() + \"litara\");\n\t\t\t\ti++;\n\t\t\t\tdostupnaVoz.add(v);\n\t\t\t}\n\t\t}\n\t\tif (i > 0) {\n\t\t\tSystem.out.println(\"------------------------------------------------\");\n\t\t\tSystem.out.println(\"Ukucajte kilometrazu koju planirate da predjete:\");\n\t\t\tdouble km = UtillMethod.unesiteBroj();\n\t\t\tint km1 = (int) km;\n\t\t\tporedjenjeVozila d1 = new poredjenjeVozila(km1);\n\t\t\tCollections.sort(dostupnaVoz,d1);\n\t\t\tint e = 0;\n\t\t\tfor(Vozilo v : dostupnaVoz) {\n\t\t\t\tdouble temp = cenaTroskaVoz(v, km, v.getGorivaVozila().get(0));\n\t\t\t\tSystem.out.println(e + \" - \" + v.getVrstaVozila()+ \"-Registarski broj: \"+ v.getRegBR()+\" | \"+ \"Cena na dan:\"+v.getCenaDan() +\" | Broj sedista:\"+ v.getBrSedist()+ \" | Broj vrata:\"+ v.getBrVrata() + \"| Cena troskova puta:\" + temp + \" Dinara\");\n\t\t\t\te++;\n\t\t\t}\n\t\t\tSystem.out.println(\"---------------------------------------\");\n\t\t\tSystem.out.println(\"Unesite redni broj vozila kojeg zelite:\");\n\t\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\t\tif (redniBroj < dostupnaVoz.size()) {\n\t\t\t\tDateTimeFormatter formatters = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n\t\t\t\tString pocetni = pocetniDatum.format(formatters);\n\t\t\t\tString krajnji = krajnjiDatum.format(formatters);\n\t\t\t\tdouble cena = UtillMethod.cenaIznaj(pocetniDatum, krajnjiDatum, dostupnaVoz.get(redniBroj));\n\t\t\t\tRezervacija novaRez = new Rezervacija(dostupnaVoz.get(redniBroj), o, cena, false, pocetni, krajnji);\n\t\t\t\tMain.getRezervacijeAll().add(novaRez);\n\t\t\t\tSystem.out.println(\"Uspesno ste napravili rezervaciju!\");\n\t\t\t\tSystem.out.println(\"---------------------------------\");\n\t\t\t\tSystem.out.println(novaRez);\n\t\t\t\tSystem.out.println(\"---------------------------------\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Uneli ste pogresan redni broj!\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Nema dostupnih vozila za rezervaaciju.\");\n\t\t}\n\t}",
"public void Lista(){\n\t\tcabeza = null;\n\t\ttamanio = 0;\n\t}",
"public void mostraDados() {\n System.out.println(\"O canal atual é: \" + tv.getCanal());\n System.out.println(\"O volume atual é: \" + tv.getVolume());\n System.out.println(\"--------------------------------------\");\n }",
"private void ucitajTestPodatke() {\n\t\tList<Integer> l1 = new ArrayList<Integer>();\n\n\t\tRestoran r1 = new Restoran(\"Palazzo Bianco\", \"Bulevar Cara Dušana 21\", KategorijeRestorana.PICERIJA, l1, l1);\n\t\tRestoran r2 = new Restoran(\"Ananda\", \"Petra Drapšina 51\", KategorijeRestorana.DOMACA, l1, l1);\n\t\tRestoran r3 = new Restoran(\"Dizni\", \"Bulevar cara Lazara 92\", KategorijeRestorana.POSLASTICARNICA, l1, l1);\n\n\t\tdodajRestoran(r1);\n\t\tdodajRestoran(r2);\n\t\tdodajRestoran(r3);\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t\tVozac v1 = new Vozac(\"Petar Petrovic\", \"vozac\");\r\n\t\tVozac v2 = new Vozac(\"Marko Markovic\", \"visi vozac\");\r\n\t\t\r\n\t\tPutnik p1 = new Putnik(\"Mara Maric\", 1000);\r\n\t\tPutnik p2 = new Putnik(\"Zora Zoric\", 1520);\r\n\t\tPutnik p3 = new Putnik(\"Rade Radic\", 854);\r\n\t\tPutnik p4 = new Putnik(\"Mile Milic\", 3150);\r\n\t\tPutnik p5 = new Putnik(\"Joka Jokic\", 2100);\r\n\t\t\r\n\t\tAutobus a1 = new Autobus(\"Novi Sad - Beograd\", 700);\r\n\t\t\r\n\t\ta1.postaviVozaca(v1);\r\n\t\ta1.dodajPutnika(p1);\r\n\t\ta1.dodajPutnika(p2);\r\n\t\ta1.dodajPutnika(p3);\r\n\t\ta1.dodajPutnika(p4);\r\n\t\ta1.dodajPutnika(p5);\r\n\t\t\r\n\t\tSystem.out.println(\"Autobus na relaciji: \" + a1.getNaziv() + \" vozi \" + a1.getVozac().getImeIPrezime() + \", a cena karte je: \" + a1.getCenaKarte() + \" dinara\");\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"Lista putnika koju putuju autobusom: \");\r\n\t\tfor (int i = 0; i < a1.getListaPutnika().size(); i++) {\r\n\t\t\ta1.getListaPutnika().get(i).oduzmiNovac(a1.getCenaKarte());\r\n\t\t\tSystem.out.println(a1.getListaPutnika().get(i).getImeIPrezime() + \", a preostala svota novca je \" + a1.getListaPutnika().get(i).getSvotaNovca());\t\t\t\t\t\t\t\t\r\n\t\t}\r\n\t\t\r\n\r\n\t}",
"public void obrniListu() {\n if (prvi != null && prvi.veza != null) {\n Element preth = null;\n Element tek = prvi;\n \n while (tek != null) {\n Element sled = tek.veza;\n \n tek.veza = preth;\n preth = tek;\n tek = sled;\n }\n prvi = preth;\n }\n }",
"public List<Arresto> getArresto(String dni);",
"private void lisaaMiinaOikealle(int i, int j) {\n ArrayList<Ruutu> lista;\n if (i + 1 < x) {\n lista = this.ruudukko[i + 1];\n lista.get(j).setViereisetMiinat(1);\n if (j - 1 >= 0) {\n lista.get(j - 1).setViereisetMiinat(1);\n }\n if (j + 1 < x) {\n lista.get(j + 1).setViereisetMiinat(1);\n }\n }\n }",
"public void mostrarlistafininicio(){\n if(!estavacia()){\n String datos=\"<=>\";\n nododoble auxiliar=fin;\n while(auxiliar!=null){\n datos=datos+\"[\"+auxiliar.dato+\"]<=>\";\n auxiliar=auxiliar.anterior;\n }\n JOptionPane.showMessageDialog(null,datos,\n \"Mostraando lista de fin a inicio\",JOptionPane.INFORMATION_MESSAGE);\n }}",
"public void inicializarListaMascotas()\n {\n //creamos un arreglo de objetos y le cargamos datos\n mascotas = new ArrayList<>();\n mascotas.add(new Mascota(R.drawable.elefante,\"Elefantin\",0));\n mascotas.add(new Mascota(R.drawable.conejo,\"Conejo\",0));\n mascotas.add(new Mascota(R.drawable.tortuga,\"Tortuga\",0));\n mascotas.add(new Mascota(R.drawable.caballo,\"Caballo\",0));\n mascotas.add(new Mascota(R.drawable.rana,\"Rana\",0));\n }",
"public ArreiList() {\n koko = 0;\n }",
"public void ordenaPontos(){\r\n\t\tloja.ordenaPontos();\r\n\t}",
"public Tavolo (String id_tavolo, int num_posti){\n this.id_tavolo = id_tavolo;\n this.num_posti = num_posti;\n interno = true;\n disponibile = true;\n AssegnamentiTavolo = new ArrayList<Invitato>(num_posti);\n postiTot=num_posti;\n }",
"public List<Mobibus> darMobibus();",
"public void listar() {\n\n if (!vacia()) {\n\n NodoEnteroSimple temp = head;\n\n int i = 0;\n\n while (temp != null) {\n\n System.out.print(i + \".[ \" + temp.getValor() + \" ]\" + \" -> \");\n\n temp = temp.getSiguiente();\n\n i++;\n }\n }\n \n }",
"public void mostrarlistainciofin(){\n if(!estavacia()){\n String datos=\"<=>\";\n nododoble auxiliar=inicio;\n while(auxiliar!=null){\n datos=datos+\"[\"+auxiliar.dato+\"]<=>\";\n auxiliar=auxiliar.siguiente;\n }\n JOptionPane.showMessageDialog(null,datos,\n \"Mostraando lista de incio a fin\",JOptionPane.INFORMATION_MESSAGE);\n } }",
"List<Alimento> getAlimentos();",
"public Drakkar(){\r\n\t\tanguilas=m;\r\n\t}",
"@Test\n public void testAvaaRuutu() {\n int x = 0;\n int y = 0;\n Peli pjeli = new Peli(new Alue(3, 0));\n pjeli.avaaRuutu(x, y);\n ArrayList[] lista = pjeli.getAlue().getRuudukko();\n ArrayList<Ruutu> ruudut = lista[0];\n assertEquals(true, ruudut.get(0).isAvattu());\n assertEquals(false, pjeli.isLahetetty());\n }",
"@Test\n public void testGetVastaus() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n ArrayList<KysSana> a = new ArrayList<KysSana>();\n a.add(new KysSana(\"sana\", \"vastine\"));\n\n k.asetaKysymys(a, true, 1);\n String vastaus = k.getVastaus();\n assertEquals(\"getVastaus ei toimi odoitetusti\", \"vastine\", vastaus);\n }",
"public void verEstado(){\n for(int i = 0;i <NUMERO_AMARRES;i++) {\n System.out.println(\"Amarre nº\" + i);\n if(alquileres.get(i) == null) {\n System.out.println(\"Libre\");\n }\n else{\n System.out.println(\"ocupado\");\n System.out.println(alquileres.get(i));\n } \n }\n }",
"public MatkaKokoelma() {\n tallentaja = new TXTTallentaja();\n matkat = new ArrayList<Matka>();\n matkojenkesto = 0.0;\n }",
"public void mostrarlistafininicio(){\n if(!estaVacia()){\n String datos = \"<=>\";\n NodoBus auxiliar = fin;\n while(auxiliar!=null){\n datos = datos + \"(\" + auxiliar.dato +\")->\";\n auxiliar = auxiliar.ant;\n JOptionPane.showMessageDialog(null, datos, \"Mostrando lista de fin a inicio\", JOptionPane.INFORMATION_MESSAGE);\n }\n }\n }",
"public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }",
"public void lisaaKomennot() {\n this.komennot.put(1, new TarkasteleListoja(1, \"Tarkastele listoja\", super.tallennetutTuotteet, super.tallennetutListat, this.io));\n this.komennot.put(2, new LisaaListalle(2, \"Lisää listalle\", super.tallennetutTuotteet, super.tallennetutListat, this.io));\n this.komennot.put(3, new PoistaListalta(3, \"Poista listalta\", super.tallennetutTuotteet, super.tallennetutListat, this.io));\n }",
"private void lisaaMiinaVasemmalle(int i, int j) {\n ArrayList<Ruutu> lista;\n if (i - 1 >= 0) {\n lista = this.ruudukko[i - 1];\n lista.get(j).setViereisetMiinat(1);\n if (j - 1 >= 0) {\n lista.get(j - 1).setViereisetMiinat(1);\n }\n if (j + 1 < x) {\n lista.get(j + 1).setViereisetMiinat(1);\n }\n }\n }",
"public void mostrarlistainicifin(){\n if(!estaVacia()){\n String datos = \"<=>\";\n NodoBus auxiliar = inicio;\n while(auxiliar!=null){\n datos = datos + \"(\" + auxiliar.dato +\")<=>\";\n auxiliar = auxiliar.sig;\n JOptionPane.showMessageDialog(null, datos, \"Mostrando lista de inicio a fin\", JOptionPane.INFORMATION_MESSAGE);\n }\n }\n }",
"public TrazoLibre() {\n this.linea = new ArrayList();\n }",
"public static void main(String[] args) {\n\t\tnew Ventana();\n/*\n\t\tCollection<MuroDeEnergia> muros = new ArrayList<MuroDeEnergia>();\n\t\tCollection<NaveInvasora> naves = new ArrayList<NaveInvasora>();\n\t\tBateria jugador = new Bateria();\n\t\t\n\t\tJuego.getInstancia();\n\t\tmuros = Juego.getInstancia().getMuros();\n\t\tnaves = Juego.getInstancia().getEnemigos();\n\t\tjugador = Juego.getInstancia().getJugador();\n\t\t\n\t\tIterator<MuroDeEnergia> i;\n\t\tfor (i = muros.iterator(); i.hasNext();) {\n\t\t\tMuroDeEnergia act = i.next();\n\t\t\tSystem.out.println(\"El muro \" + act.getCodigoMuro() + \" esta ubicado en: (\" + act.getCoordenadaX() + \", \" + act.getCoordenadaY() + \")\");\n\t\t}\n\t\t\n\t\tIterator<NaveInvasora> j;\n\t\tfor (j = naves.iterator(); j.hasNext();) {\n\t\t\tNaveInvasora act = j.next();\n\t\t\tSystem.out.println(\"El enemigo \" + act.getCodigoNave() + \" esta ubicado en: (\" + act.getCoordenadaX() + \", \" + act.getCoordenadaY() + \")\");\n\t\t}\n\t\t\n\t\tSystem.out.println(\"El jugador esta ubicado en (\" + jugador.getCoordenadaX() + \", \" + jugador.getCoordenadaY() + \")\" );\n\n\t\tSystem.out.println(\"Hay \" + muros.size() + \" muros de energia.\");\n\t\tJuego.getInstancia().destruirMuro(1);\n\t\tSystem.out.println(\"El muro 1 fue destruido.\");\n\t\tmuros = Juego.getInstancia().getMuros();\n\t\tSystem.out.println(\"Hay \" + muros.size() + \" muros de energia.\");\n\t\t\n\t\tSystem.out.println(\"Hay \" + naves.size() + \" enemigos. El jugador tiene \" + jugador.getPuntos() + \" puntos.\");\n\t\tJuego.getInstancia().destruirNave(9);\n\t\tSystem.out.println(\"La nave 9 fue destruida.\");\n\t\tnaves = Juego.getInstancia().getEnemigos();\n\t\tSystem.out.println(\"Hay \" + naves.size() + \" enemigos. El jugador tiene \" + jugador.getPuntos() + \" puntos.\");\n\t\tSystem.out.println(\"Usted esta en el nivel \" + Juego.getInstancia().getDificultad());\n\t\tSystem.out.println(\"Destruyendo naves...\");\n\t\tint idNave = 0;\n\t\twhile(idNave < 15) {\n\n\t\t\tJuego.getInstancia().destruirNave(idNave);\n\n\t\t\tidNave++;\n\n\t\t}\n\t\tSystem.out.println(\"Todas las naves fueron destruidas. Usted esta en el nivel \" + Juego.getInstancia().getDificultad() + \".\");\n\n\t\tSystem.out.println(\"El jugador esta ubicado en (\" + jugador.getCoordenadaX() + \", \" + jugador.getCoordenadaY() + \")\" );\n\t\t\n\t\tSystem.out.println(\"El jugador se mueve a la izquierda\");\n\t\tJuego.getInstancia().presionaFlechaIzq();\n\t\tSystem.out.println(\"El jugador esta ubicado en (\" + jugador.getCoordenadaX() + \", \" + jugador.getCoordenadaY() + \")\" );\n\t\t\n\t\tSystem.out.println(\"El jugador se mueve a la izquierda\");\n\t\tJuego.getInstancia().presionaFlechaIzq();\n\t\tSystem.out.println(\"El jugador esta ubicado en (\" + jugador.getCoordenadaX() + \", \" + jugador.getCoordenadaY() + \")\" );\n\n\t\tSystem.out.println(\"El jugador se mueve a la derecha\");\n\t\tJuego.getInstancia().presionaFlechaDer();\n\t\tSystem.out.println(\"El jugador esta ubicado en (\" + jugador.getCoordenadaX() + \", \" + jugador.getCoordenadaY() + \")\" );\n\n\t\tSystem.out.println(\"Se termina el juego:\");\n\t\tJuego.getInstancia().finalizarJuego();\n\t\t\n*/\n\t}",
"private void loadMaTauVaoCBB() {\n cbbMaTau.removeAllItems();\n try {\n ResultSet rs = LopKetNoi.select(\"select maTau from Tau\");\n while (rs.next()) {\n cbbMaTau.addItem(rs.getString(1));\n }\n } catch (Exception e) {\n System.out.println(\"Load ma tau vao cbb that bai\");\n }\n\n }",
"private void carregarAlunosTurma() {\n AcessoFirebase.getFirebase().addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n getUidUsuariosTurma(dataSnapshot);\n montandoArrayListUsuarios(dataSnapshot);\n }\n @Override\n public void onCancelled(DatabaseError databaseError) {\n }\n });\n }",
"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 }",
"private void irListaSodas(Soda soda){ }",
"private void caricaLista() {\n /** variabili e costanti locali di lavoro */\n ArrayList unaLista = null;\n CampoDati unCampoDati = null;\n CDBLinkato unCampoDBLinkato = null;\n //@todo da cancellare\n try { // prova ad eseguire il codice\n /* recupera il campo DB specializzato */\n unCampoDBLinkato = (CDBLinkato)unCampoParente.getCampoDB();\n\n /* recupera la lista dal campo DB */\n unaLista = unCampoDBLinkato.caricaLista();\n\n /* recupera il campo dati */\n unCampoDati = unCampoParente.getCampoDati();\n\n /* registra i valori nel modello dei dati del campo */\n if (unaLista != null) {\n unCampoDati.setValoriInterni(unaLista);\n// unCampoDatiElenco.regolaElementiAggiuntivi();\n } /* fine del blocco if */\n\n } catch (Exception unErrore) { // intercetta l'errore\n /* mostra il messaggio di errore */\n Errore.crea(unErrore);\n } /* fine del blocco try-catch */\n\n }",
"public void editarArtista() {\n\t\tArrayList<String> listString = new ArrayList<>();\r\n\t\tArrayList<ArtistaMdl> listArtista = new ArrayList<>();\r\n\t\tString[] possibilities = pAController.getArtista();\r\n\t\tfor (String s : possibilities) {\r\n\t\t\tString text = s.replaceAll(\".*:\", \"\");\r\n\t\t\tlistString.add(text);\r\n\t\t\tif (s.contains(\"---\")) {\r\n\t\t\t\tArtistaMdl artista = new ArtistaMdl();\r\n\t\t\t\tartista.setNome(listString.get(1));\r\n\t\t\t\tlistArtista.add(artista);\r\n\t\t\t\tlistString.clear();\r\n\t\t\t}\r\n\t\t}\r\n\t\tString[] possibilities2 = new String[listArtista.size()];\r\n\t\tfor (int i = 0; i < listArtista.size(); i++) {\r\n\t\t\tpossibilities2[i] = listArtista.get(i).getNome();\r\n\t\t}\r\n\t}",
"private void listarItems() {\r\n // Cabecera\r\n System.out.println(\"Listado de Items\");\r\n System.out.println(\"================\");\r\n\r\n // Criterio de Ordenación/Filtrado\r\n System.out.printf(\"Criterio de Ordenación .: %S%n\", criOrd.getNombre());\r\n System.out.printf(\"Criterio de Filtrado ...: %S%n\", criFil.getNombre());\r\n\r\n // Separados\r\n System.out.println(\"---\");\r\n\r\n // Filtrado > Selección Colección\r\n List<Item> lista = criFil.equals(Criterio.NINGUNO) ? CARRITO : FILTRO;\r\n\r\n // Recorrido Colección\r\n for (Item item : lista) {\r\n System.out.println(item.toString());\r\n }\r\n\r\n // Pausai\r\n UtilesEntrada.hacerPausa();\r\n }",
"private void ucitajPodatke() {\n \n DefaultListModel<Voznja> m = new DefaultListModel<>();\n obrada.getPodaci().forEach(s->m.addElement(s));\n lstPodaci.setModel(m);\n\n }",
"public void testAuta()\n\t{\n\t\tNakladak nakl = new Nakladak(Simulator.getCas());\n\t\tnakl.poloha[0] = this.poloha[0];\n\t\tnakl.poloha[1] = this.poloha[1];\n\t\t//cesta po prekladistich\n\t\tfor(int i=4001;i<4009;i++)\n\t\t{\n\t\t\tnakl.cesta.add(i);\n\t\t}\n\t\tnakl.kDispozici = false;\n\t\tnakl.jede = true;\n\t\tsim.addObserver(nakl);\n\t\t\n\t\tthis.vozy.add(nakl);\n\t\t\n\t}",
"private void atualizarTela() {\n\t\tSystem.out.println(\"\\n*** Refresh da Pagina / Consultando Todos os Registro da Tabela PressaoArterial\\n\");\n\t\tpressaoArterial = new PressaoArterial();\n\t\tlistaPressaoArterial = pressaoArterialService.buscarTodos();\n\n\t}",
"public void armarPreguntas(){\n preguntas = file.listaPreguntas(\"Preguntas.txt\");\n }",
"public void eisagwgiGiatrou() {\n\t\t// Elegxw o arithmos twn iatrwn na mhn ypervei ton megisto dynato\n\t\tif(numOfDoctors < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tdoctor[numOfDoctors] = new Iatros();\n\t\t\tdoctor[numOfDoctors].setFname(sir.readString(\"DWSTE TO ONOMA TOU GIATROU: \")); // Pairnei apo ton xristi to onoma tou giatrou\n\t\t\tdoctor[numOfDoctors].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \")); // Pairnei apo ton xristi to epitheto tou giatrou\n\t\t\tdoctor[numOfDoctors].setAM(rnd.nextInt(1000000)); // To sistima dinei automata ton am tou giatrou\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t// Elegxos monadikotitas tou am tou giatrou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfDoctors; i++)\n\t\t\t{\n\t\t\t\tif(doctor[i].getAM() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfDoctors++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS GIATROUS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}",
"public void alustaAlue() {\n if (x >= 1) {\n for (int i = 0; i < x; i++) {\n this.ruudukko[i] = new ArrayList<Ruutu>();\n for (int j = 0; j < x; j++) {\n this.ruudukko[i].add(new Ruutu(taso));\n }\n }\n for (int i = 0; i < x; i++) {\n for (int j = 0; j < x; j++) {\n ArrayList<Ruutu> lista = this.ruudukko[i];\n if (lista.get(j).isMiina()) {\n lisaaMiina(i, j);\n } else {\n this.ruudut++;\n }\n }\n }\n }\n\n }",
"public void asetaTeksti(){\n }",
"private static void kapazitaetPruefen(){\n\t\tList<OeffentlichesVerkehrsmittel> loev = new ArrayList<OeffentlichesVerkehrsmittel>();\n\t\t\n\t\tLinienBus b1 = new LinienBus();\n\t\tFaehrschiff f1 = new Faehrschiff();\n\t\tLinienBus b2 = new LinienBus();\t\n\t\t\n\t\tloev.add(b1);\n\t\tloev.add(b2);\n\t\tloev.add(f1);\n\t\t\n\t\tint zaehlung = 500;\n\t\tboolean ausreichend = kapazitaetPruefen(loev,500);\n\t\tp(\"Kapazitaet ausreichend? \" + ausreichend);\n\t\t\n\t}",
"public void listar(){\r\n // Verifica si la lista contiene elementoa.\r\n if (!esVacia()) {\r\n // Crea una copia de la lista.\r\n Nodo aux = inicio;\r\n // Posicion de los elementos de la lista.\r\n int i = 0;\r\n // Recorre la lista hasta el final.\r\n while(aux != null){\r\n // Imprime en pantalla el valor del nodo.\r\n System.out.print(i + \".[ \" + aux.getValor() + \" ]\" + \" -> \");\r\n // Avanza al siguiente nodo.\r\n aux = aux.getSiguiente();\r\n // Incrementa el contador de la posión.\r\n i++;\r\n }\r\n }\r\n }",
"public List<Vendedor> listarVendedor();",
"public void tacoArray() {\n\n\n ArrayList<String> tacos = new ArrayList<>();\n tacos.add(\"blah\");\n tacos.add(\"blah2\");\n tacos.add(\"blah3\");\n tacos.add(\"blah4\");\n tacos.add(\"blah5\");\n }",
"public static void dodavanjeTeretnogVozila() {\n\t\tString vrstaVozila = \"Teretno Vozilo\";\n\t\tString regBr = UtillMethod.unosRegBroj();\n\t\tGorivo gorivo = UtillMethod.izabirGoriva();\n\t\tGorivo gorivo2 = UtillMethod.izabirGorivaOpet(gorivo);\n\t\tint brServisa = 1;\n\t\tdouble potrosnja = UtillMethod.unesiteDoublePotrosnja();\n\t\tSystem.out.println(\"Unesite broj km koje je vozilo preslo:\");\n\t\tdouble predjeno = UtillMethod.unesiteBroj();\n\t\tdouble preServisa = 20000;\n\t\tdouble cenaServisa = 10000;\n\t\tSystem.out.println(\"Unesite cenu vozila za jedan dan:\");\n\t\tdouble cenaDan = UtillMethod.unesiteBroj();\n\t\tSystem.out.println(\"Unesite broj sedista u vozilu:\");\n\t\tint brSedista = UtillMethod.unesiteInt();\n\t\tSystem.out.println(\"Unesite broj vrata vozila:\");\n\t\tint brVrata = UtillMethod.unesiteInt();\n\t\tboolean vozObrisano = false;\n\t\tArrayList<Gorivo> gorivaVozila = new ArrayList<Gorivo>();\n\t\tgorivaVozila.add(gorivo);\n\t\tif(gorivo2!=Main.nista) {\n\t\t\tgorivaVozila.add(gorivo2);\n\t\t}\n\t\tArrayList<Servis> servisiNadVozilom = new ArrayList<Servis>();\n\t\tSystem.out.println(\"Unesite maximalnu masu koje vozilo moze da prenosi u KG !!\");\n\t\tint maxMasauKg = UtillMethod.unesiteInt();\n\t\tSystem.out.println(\"Unesite maximalnu visinu u m:\");\n\t\tdouble visinauM = UtillMethod.unesiteBroj();\n\t\tTeretnaVozila vozilo = new TeretnaVozila(vrstaVozila, regBr, gorivaVozila, brServisa, potrosnja, predjeno, preServisa,\n\t\t\t\tcenaServisa, cenaDan, brSedista, brVrata, vozObrisano, servisiNadVozilom, maxMasauKg, visinauM);\n\t\tUtillMethod.prviServis(vozilo, predjeno);\n\t\tMain.getVozilaAll().add(vozilo);\n\t\tSystem.out.println(\"Novo vozilo je uspesno dodato u sistem!\");\n\t\tSystem.out.println(\"--------------------------------------\");\n\t}",
"private String creaElenco() {\n String testoTabella ;\n String riga = CostBio.VUOTO;\n ArrayList listaPagine = new ArrayList();\n ArrayList listaRiga;\n HashMap mappaTavola = new HashMap();\n String cognomeText;\n int num;\n int taglioPagine = Pref.getInt(CostBio.TAGLIO_COGNOMI_PAGINA);\n String tag = \"Persone di cognome \";\n ArrayList titoli = new ArrayList();\n titoli.add(LibWiki.setBold(\"Cognome\"));\n titoli.add(LibWiki.setBold(\"Voci\"));\n\n for (Map.Entry<String, Integer> mappa: mappaCognomi.entrySet()) {\n\n cognomeText = mappa.getKey();\n num = mappa.getValue();\n if (num >= taglioPagine) {\n cognomeText = tag + cognomeText + CostBio.PIPE + cognomeText;\n cognomeText = LibWiki.setQuadre(cognomeText);\n cognomeText = LibWiki.setBold(cognomeText);\n }// end of if cycle\n\n listaRiga = new ArrayList();\n listaRiga.add(cognomeText);\n listaRiga.add(num);\n listaPagine.add(listaRiga);\n\n }// end of for cycle\n mappaTavola.put(Cost.KEY_MAPPA_SORTABLE_BOOLEAN, true);\n mappaTavola.put(Cost.KEY_MAPPA_TITOLI, titoli);\n mappaTavola.put(Cost.KEY_MAPPA_RIGHE_LISTA, listaPagine);\n testoTabella = LibWiki.creaTable(mappaTavola);\n\n return testoTabella;\n }",
"public List<EntradaDeMaterial> buscarEntradasDisponibles(Almacen a);",
"public static List<Object> czytaniePogody(){\r\n Object[] elementyPogody = new Object[3];\r\n elementyPogody[0]=0;\r\n elementyPogody[1]=0;\r\n elementyPogody[2]=null;\r\n String line;\r\n OdczytZPliku plik = new OdczytZPliku();\r\n InputStream zawartosc = plik.pobierzZPliku(\"bazapogod.txt\");\r\n try (InputStreamReader odczyt = new InputStreamReader(zawartosc, StandardCharsets.UTF_8);\r\n BufferedReader czytaj = new BufferedReader(odczyt)) {\r\n String numerWStringu = String.valueOf(elementyPogody[0] = (int) (Math.random() * 4));\r\n while ((line = czytaj.readLine()) != null){\r\n if (line.equals(numerWStringu)){\r\n elementyPogody[1] = Integer.parseInt(czytaj.readLine());\r\n elementyPogody[2] = czytaj.readLine();\r\n System.out.println(\"\\nPogoda na dzis: \" + elementyPogody[2]);\r\n break;\r\n }\r\n else {\r\n for (int i = 0; i < 2; i++) {\r\n line = czytaj.readLine();\r\n }\r\n }\r\n }\r\n } catch (Exception ignored) {\r\n }\r\n return List.of(elementyPogody);\r\n }",
"public void mostrarAutomovil(){\r\n System.out.println(\"Marca: \" + automovil.getMarca());\r\n System.out.println(\"Modelo: \" + automovil.getModelo());\r\n System.out.println(\"Placa: \" + automovil.getPlaca());\r\n }",
"@RequestMapping(value = \"/daftar-ranap\")\n\t\tprivate String viewAllPasienRanap(Model model) throws IOException {\n\t\t\tList<KamarModel> kamarList = kamarService.getAllKamarByStatus(1);\n\t\t\t\n\t\t\tMap<KamarModel, PasienModel> map = new HashMap<>();\n\t\t\t\n\t\t\tfor(KamarModel kamar : kamarList) {\n\t\t\t\tSystem.out.println(kamar.getStatus());\n\t\t\t\tString idPasien = String.valueOf(kamar.getIdPasien());\n\t\t\t\t\n\t\t\t\tmap.put(kamar, pasienService.getPasien(idPasien));\n\t\t\t}\n\t\t\t\n\t\t\tmodel.addAttribute(\"map\", map);\n\t\t\tmodel.addAttribute(\"kamarList\", kamarList);\n\t\t\treturn \"daftar-ranap\";\n\t\t}",
"@Override\n protected List doInBackground(Void... params) {\n\n try {\n monedas = server.obtenerMonedas(valor);\n fav = server.ObtenerFav();\n\n for(int i = 0; i<monedas.size(); i++)\n {\n for (int f = 0; f<fav.size(); f++)\n {\n if(monedas.get(i).getSymbol().equals(fav.get(f).getCripto()))\n {\n monedas.get(i).setLike(true);\n }\n }\n }\n\n System.out.println(\"obtenemos las monedas del json\");\n } catch (ServidorPHPException e) {\n System.out.println(\"Error obteniendo las monedas -> \" + e.toString());\n }\n\n // Simulación de la carga de items\n try {\n Thread.sleep(DURACION);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n // Retornar en nuevos elementos para el adaptador\n return monedas;\n }",
"@Override\n\tpublic ArrayList<Lista> listaListeElettorali() {\n\t\t\t\n\t\t\t\n\t\t\tDB db = getDB();\n\t\t\tMap<Integer, Lista> map = db.getTreeMap(\"liste\");\n\t\t\tArrayList<Lista> liste = new ArrayList<Lista>();\n\t\t\tSet<Integer> keys = map.keySet();\n\t\t\tfor (int key : keys) {\n\t\t\t\tliste.add(map.get(key));\n\t\t\t}\n\t\n\t\t\treturn liste;\n\t\t\t\n\t\t}",
"public void anazitisiSintagisVaseiGiatrou() {\n\t\tString doctorName = null;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tdoctorName = sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \"); // Zitaw apo ton xrhsth na mou dwsei to onoma tou giatrou pou exei grapsei thn sintagh pou epithumei\n\t\t\tfor(int i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\tif(doctorName.equals(prescription[i].getDoctorLname())) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou exei grapsei o giatros\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t// Emfanizw thn/tis sintagh/sintages pou exoun graftei apo ton sygkekrimeno giatro\n\t\t\t\t\tprescription[i].print();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_2++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON IATRO ME EPWNYMO: \" + doctorName);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public ArrayList<String> mostraLlistaAtribs(){\n ArrayList<String> tauleta = new ArrayList<>();\n System.out.print(\"num atribs: \"+list.getNomLlista()+\"\\n\");\n String aux = list.getAtribs().get(0).getNom();\n for (int i=1; i<list.getAtribs().size(); i++){\n aux += \"\\t\" + list.getAtribs().get(i).getNom();\n }\n tauleta.add(aux);\n for (int j=0; j<list.getNumCasos(); j++) {\n aux = list.getAtribs().get(0).getCasos().get(j);\n for (int i = 1; i < list.getAtribs().size(); i++) {\n aux += \"\\t\" + list.getAtribs().get(i).getCasos().get(j);\n }\n tauleta.add(aux);\n }\n return tauleta;\n }",
"public void creoVehiculo() {\n\t\t\n\t\tAuto a= new Auto(false, 0);\n\t\ta.encender();\n\t\ta.setPatente(\"saraza\");\n\t\ta.setCantPuertas(123);\n\t\ta.setBaul(true);\n\t\t\n\t\tSystem.out.println(a);\n\t\t\n\t\tMoto m= new Moto();\n\t\tm.encender();\n\t\tm.frenar();\n\t\tm.setManubrio(true);\n\t\tm.setVelMax(543);\n\t\tm.setPatente(\"zas 241\");\n\t\tVehiculo a1= new Auto(true, 0);\n\t\ta1.setPatente(\"asd 423\");\n\t\t((Auto)a1).setBaul(true);\n\t\t((Auto)a1).setCantPuertas(15);\n\t\tif (a1 instanceof Auto) {\n\t\t\tAuto autito= (Auto) a1;\n\t\t\tautito.setBaul(true);\n\t\t\tautito.setCantPuertas(531);\n\t\t\t\n\t\t}\n\t\tif (a1 instanceof Moto) {\n\t\t\tMoto motito=(Moto) a1;\n\t\t\tmotito.setManubrio(false);\n\t\t\tmotito.setVelMax(15313);\n\t\t\t\n\t\t\t\n\t\t}\n\t\tif (a1 instanceof Camion) {\n\t\t\tCamion camioncito=(Camion) a1;\n\t\t\tcamioncito.setAcoplado(false);\n\t\t\tcamioncito.setPatente(\"ge\");\n\t\t\t\n\t\t\t\n\t\t}\n\t\tVehiculo a2= new Moto();\n\t\tSystem.out.println(a2);\n\t\ta1.frenar();\n\t\t\n\t\tArrayList<Vehiculo>listaVehiculo= new ArrayList<Vehiculo>();\n\t\tlistaVehiculo.add(new Auto(true, 53));\n\t\tlistaVehiculo.add(new Moto());\n\t\tlistaVehiculo.add(new Camion());\n\t\tfor (Vehiculo vehiculo : listaVehiculo) {\n\t\t\tSystem.out.println(\"clase:\" +vehiculo.getClass().getSimpleName());\n\t\t\tvehiculo.encender();\n\t\t\tvehiculo.frenar();\n\t\t\tSystem.out.println(\"=======================================\");\n\t\t\t\n\t\t}\n\t}",
"public static void pocetniMeni() {\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"***********************************************\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 1 ako zelite vidjeti kalendar(za dati mjesec i godinu)\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 2 za pregled podsjetnika za dati mjesec i godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 3 da pregledate podsjetnik za datu godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 4 ako zelite da pogledate sve podsjetnike!\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 5 ako zelite da upisete neki podsjetnik!\\n\"\r\n\t\t\t\t\t\t+ \":::::::::::::::::::::::::::::::::::::::::::::::\");\r\n\t}",
"public List<Fortaleza> listarFortalezas(){\r\n return cVista.listarFortalezas();\r\n }",
"public String navigateAlunoTurmaList() {\n if (this.getSelected() != null) {\n FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"AlunoTurma_items\", this.getSelected().getAlunoTurmaList());\n }\n return \"/pages/prime/alunoTurma/index\";\n }",
"private void ZeigeAlleKontakte() throws Exception {\n\t\r\n\t\tList<Kontakt> kontaktarray = new ArrayList<Kontakt>();\r\n\t\r\n\t\tKontaktService service = (KontaktService) Naming.lookup (\"rmi://localhost:1099/KontaktService\");\r\n\t\t\r\n\t\tkontaktarray = service.getKontakte();\r\n\t\r\n\t\tKontakt k = new Kontakt();\r\n\t\t\r\n\t\tString xAusgabe = \"\"; \r\n\t\tIterator<Kontakt> iterator = kontaktarray.iterator();\r\n\t\twhile (iterator.hasNext()) {\r\n\t\t\t\r\n\t\t\tk = iterator.next();\r\n\t\t\t\r\n\t\t\txAusgabe = Objects.toString(k.getcId());\r\n\t\t\txAusgabe += \" ; \";\r\n\t\t\txAusgabe += k.getcNName();\r\n\t\t\txAusgabe += \" ; \";\r\n\t\t\txAusgabe += k.getcVName();\r\n\t\t\t// TODO: Restliche Felder ausgeben\r\n\t\t\t\r\n\t\t\tSystem.out.println(xAusgabe);\t\t\t\t\r\n\t\t\t}\r\n\t}",
"private void hienThiMaPDK(){\n ThuePhongService thuePhongService = new ThuePhongService();\n thuePhongModels = thuePhongService.layToanBoPhieuDangKyThuePhong();\n cbbMaPDK.removeAllItems();\n for (ThuePhongModel thuePhongModel : thuePhongModels) {\n cbbMaPDK.addItem(thuePhongModel.getMaPDK());\n }\n }",
"public Artefato() {\r\n\t\tthis.membros = new ArrayList<Membro>();\r\n\t\tthis.servicos = new ArrayList<IServico>();\r\n\t}",
"public void MostrarDatos(){\n // En este caso, estamos mostrando la informacion necesaria del objeto\n // podemos acceder a la informacion de la persona y de su arreglo de Carros por medio de un recorrido\n System.out.println(\"Hola, me llamo \" + nombre);\n System.out.println(\"Tengo \" + contador + \" carros.\");\n for (int i = 0; i < contador; i++) {\n System.out.println(\"Tengo un carro marca: \" + carros[i].getMarca());\n System.out.println(\"El numero de placa es: \" + carros[i].getPlaca()); \n System.out.println(\"----------------------------------------------\");\n }\n }",
"public static void main(String[] args) {\n\t\tString[] horasSesiones = {};\r\n\t\tSala sala = new Sala(\"Tiburon\", horasSesiones, 9, 5);\r\n\r\n\t\tsala.incluirSesion(\"20:00\");\r\n\r\n\t\t/*for (String hora : sala.getHorasDeSesionesDeSala())\r\n\t\t\tSystem.out.println(hora);*/\r\n\t//\tsala.borrarSesion(\"15:00\"); // no hace nada\r\n\t\t//sala.borrarSesion(\"20:00\");\r\n\r\n\t\tfor (String hora : sala.getHorasDeSesionesDeSala())\r\n\t\t\tSystem.out.println(hora);\r\n\r\n\t\t// necesitamos la ventanilla para mostrar el estado de la sesion\r\n\t\tVentanillaVirtualUsuario ventanilla = new VentanillaVirtualUsuario(null, true);\r\nSystem.out.println(sala.sesiones.size());\r\nSystem.out.print(sala.getEstadoSesion(1));\r\n\t\tsala.comprarEntrada(1, 2, 1);\r\n\t\tsala.comprarEntrada(1, 9, 3);\r\n\r\n\t\tint idVenta = sala.getIdEntrada(1, 9, 3);\r\n\r\n\t\tSystem.out.println(\"Id de venta es:\" + idVenta);\r\n\r\n\t\tButacasContiguas butacas = sala.recomendarButacasContiguas(1, 1);\r\n\r\n\t\tsala.comprarEntradasRecomendadas(1, butacas);\r\n\r\n\t\tint idVenta1 = sala.getIdEntrada(1, butacas.getFila(), butacas.getColumna());\r\n\r\n\t\tsala.recogerEntradas(idVenta1, 1);\r\n\r\n\t\tventanilla.mostrarEstadoSesion(sala.getEstadoSesion(1));\r\n\r\n\t\tSystem.out.println(\"No. de butacas disponibles: \" + sala.getButacasDisponiblesSesion(1));\r\n\r\n\t\tSystem.out.println(\"Tickets :\" + sala.recogerEntradas(idVenta, 1));\r\n\r\n\t\tSystem.out.println(\"Tickets recomendados:\" + sala.recogerEntradas(idVenta1, 1));\r\n\t\t//System.out.println(sala.sesiones.size());\r\n\t\t//sala.incluirSesion(\"10:56\");\r\n\t\t//sala.incluirSesion(\"10:57\");\r\n\t\t//System.out.println(sala.sesiones.size());\r\n\t\t/*{\r\n\t\t\tfor (int i = 0; i < sala.getHorasDeSesionesDeSala().length; i++) {\r\n\t\t\t\tSystem.out.println(sala.getHorasDeSesionesDeSala()[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t}*/\r\n\t\t\r\n\t}",
"public List<ActDetalleActivo> listarDetalleActivoLaboratorio(long codigoSalaLaboratorio,long codigoTipo,String amie, int estado,int anio);",
"private void MembentukListHuruf(){\n for(int i = 0; i < Panjang; i ++){\n Huruf Hrf = new Huruf();\n Hrf.CurrHrf = Kata.charAt(i);\n if(!IsVertikal){\n //horizontal\n Hrf.IdX = StartIdxX;\n Hrf.IdY = StartIdxY+i;\n }else{\n Hrf.IdX = StartIdxX+i;\n Hrf.IdY = StartIdxY;\n }\n // System.out.println(\"iniii \"+Hrf.IdX+\" \"+Hrf.IdY+\" \"+Hrf.CurrHrf+\" \"+NoSoal);\n TTS.Kolom[Hrf.IdX][Hrf.IdY].AddNoSoal(NoSoal);\n TTS.Kolom[Hrf.IdX][Hrf.IdY].Huruf=Hrf.CurrHrf;\n \n }\n }",
"public void atakuj() {\n\n System.out.println(\"to metoda atakuj z klasy Potwor \");\n\n }",
"public ListaPracownikow() {\n generujPracownikow();\n //dodajPracownika();\n }",
"public ListaBrojeva izdvojElmenteNaParnimPozicijama() {\n if (prvi != null) {\n ListaBrojeva parni = new ListaBrojeva();\n \n Element tek = prvi;\n Element preth = null;\n Element parniKraj = null;\n int br = 0;\n \n while (tek.veza != null) {\n preth = tek;\n tek = tek.veza;\n \n if (br % 2 != 0) {\n preth.veza = tek.veza;\n if (parni.prvi == null) {\n parni.prvi = tek;\n parniKraj = tek;\n tek.veza = null; \n } else {\n parniKraj.veza = tek;\n tek.veza = null;\n parniKraj = parniKraj.veza;\n }\n tek = preth;\n }\n br++;\n }\n /*prvi element iz liste je paran, ali je preskocen, \n tako da ga sad izbacujemo iz liste i dodajemo u novu*/\n Element pom = prvi;\n prvi = prvi.veza;\n pom.veza = parni.prvi;\n parni.prvi = pom;\n return parni;\n }\n return null;\n }",
"public void ispisiSveNapomene() {\r\n\t\tint i = 0;// redni broj napomene\r\n\t\tint brojac = 0;\r\n\t\tfor (Podsjetnik podsjetnik : lista) {\r\n\r\n\t\t\ti++;\r\n\t\t\tSystem.out.println(i + \")\" + podsjetnik);\r\n\t\t\tbrojac = i;\r\n\t\t}\r\n\t\tif (brojac == 0) {\r\n\t\t\tSystem.out.println(\"Nema unesenih napomena!!\");\r\n\t\t}\r\n\r\n\t}",
"void agregarVotoPlayLIst(Voto voto) throws ExceptionDao;",
"@Test\n public void testGetVaarin() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n ArrayList<KysSana> a = new ArrayList<KysSana>();\n a.add(new KysSana(\"sana\", \"vastine\"));\n\n k.asetaKysymys(a, true, 1);\n k.tarkistaVastaus(\"vaarav vastaus\");\n k.tarkistaVastaus(\"trololololoo\");\n int virheita = k.getVaarin();\n\n assertEquals(\"Väärin menneiden tarkistusten lasku ei toimi\", 2, virheita);\n }",
"public void anazitisiSintagisVaseiHmerominias() {\n\t\tDate firstDt = null, lastDt = null;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t\t\t\tprescription[j].print();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\t// Zitaw apo ton xrhsth to xroniko euros kata to opoio exei graftei sintagh\n\t\t\tfirstDt = sir.readDate(\"DWSTE ARXIKH HMEROMHNIA: \");\n\t\t\tlastDt = sir.readDate(\"DWSTE TELIKH HMEROMHNIA: \");\n\t\t\tSystem.out.println();\n\t\t\tfor(i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\t// An h hmeromhnia eggrafhs ths syntaghs einai anamesa sta xronika oria pou exei dwsei o xrhsths ektypwnetai\n\t\t\t\tif(firstDt.before(prescription[i].getDate()) && (lastDt.after(prescription[i].getDate()))) \n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\tprescription[i].print();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_2++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH METAKSY:\" + firstDt + \" KAI: \" + lastDt);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public void tallenna() throws SailoException {\r\n if (!muutettu) return;\r\n \r\n File fbak = new File(getBakNimi());\r\n File ftied = new File(getTiedostonNimi());\r\n fbak.delete();\r\n ftied.renameTo(fbak);\r\n\r\n try ( PrintStream fo = new PrintStream(new FileOutputStream(ftied.getCanonicalPath())) ) {\r\n for (Aika aika : this) {\r\n fo.println(aika.toString());\r\n }\r\n } catch ( FileNotFoundException ex ) {\r\n throw new SailoException(\"Tiedosto \" + ftied.getName() + \" ei aukea\");\r\n } catch ( IOException ex ) {\r\n throw new SailoException(\"Tiedoston \" + ftied.getName() + \" kirjoittamisessa ongelmia\");\r\n }\r\n\r\n muutettu = false;\r\n }",
"public void listar(){\n if (!esVacia()) {\n // Crea una copia de la lista.\n NodoEmpleado aux = inicio;\n // Posicion de los elementos de la lista.\n int i = 0;\n System.out.print(\"-> \");\n // Recorre la lista hasta llegar nuevamente al incio de la lista.\n do{\n // Imprime en pantalla el valor del nodo.\n System.out.print(i + \".[ \" + aux.getEmpleado() + \" ]\" + \" -> \");\n // Avanza al siguiente nodo.\n aux = aux.getSiguiente();\n // Incrementa el contador de la posi�n.\n i++;\n }while(aux != inicio);\n }\n }",
"public List<Tripulante> buscarTodosTripulantes();",
"public static void main(String[] args) throws Exception {\n\t\tLista<Contato> vetor = new Lista<Contato>(20);\n\t\tLinkedList<Contato> listaEncadeada = new LinkedList<Contato>();\n\n\t\tContato c1 = new Contato(\"c1\", \"111-1111\", \"[email protected]\");\n\t\tContato c2 = new Contato(\"c2\", \"222-2222\", \"[email protected]\");\n\t\tContato c3 = new Contato(\"c3\", \"333-3333\", \"[email protected]\");\n\t\tContato c4 = new Contato(\"c4\", \"444-2344\", \"[email protected]\");\n\t\tContato c5 = new Contato(\"c5\", \"555-5585\", \"[email protected]\");\n\t\tContato c6 = new Contato(\"c6\", \"111-1911\", \"[email protected]\");\n\t\tContato c7 = new Contato(\"c7\", \"222-2322\", \"[email protected]\");\n\t\tContato c8 = new Contato(\"c8\", \"333-3333\", \"[email protected]\");\n\t\tContato c9 = new Contato(\"c9\", \"454-4644\", \"[email protected]\");\n\t\tContato c10 = new Contato(\"c10\", \"515-5235\", \"[email protected]\");\n\t\tContato c11 = new Contato(\"c11\", \"131-1411\", \"[email protected]\");\n\t\tContato c12 = new Contato(\"c12\", \"252-2672\", \"[email protected]\");\n\t\tContato c13 = new Contato(\"c13\", \"313-3433\", \"[email protected]\");\n\t\tContato c14 = new Contato(\"c14\", \"433-4334\", \"[email protected]\");\n\t\tContato c15 = new Contato(\"c15\", \"535-5355\", \"[email protected]\");\n\t\tContato c16 = new Contato(\"c16\", \"161-1516\", \"[email protected]\");\n\t\tContato c17 = new Contato(\"c17\", \"272-2272\", \"[email protected]\");\n\t\tContato c18 = new Contato(\"c18\", \"383-3993\", \"[email protected]\");\n\t\tContato c19 = new Contato(\"c19\", \"141-4949\", \"[email protected]\");\n\t\tContato c20 = new Contato(\"c20\", \"565-5565\", \"[email protected]\");\n\t\tContato c21 = new Contato(\"c21\", \"616-1611\", \"[email protected]\");\n\t\tContato c22 = new Contato(\"c22\", \"212-2121\", \"[email protected]\");\n\t\tContato c23 = new Contato(\"c23\", \"131-1331\", \"[email protected]\");\n\t\tContato c24 = new Contato(\"c24\", \"424-4444\", \"[email protected]\");\n\t\tContato c25 = new Contato(\"c25\", \"565-5555\", \"[email protected]\");\n\t\tContato c26 = new Contato(\"c26\", \"111-1611\", \"[email protected]\");\n\t\tContato c27 = new Contato(\"c27\", \"282-1252\", \"[email protected]\");\n\t\tContato c28 = new Contato(\"c28\", \"323-3433\", \"[email protected]\");\n\t\tContato c29 = new Contato(\"c29\", \"544-4464\", \"[email protected]\");\n\t\tContato c30 = new Contato(\"c30\", \"155-5455\", \"[email protected]\");\n\n\t\ttry {\n\t\t\t// ex5\n\t\t\tvetor.adiciona(c1);\n\t\t\tvetor.adiciona(c2);\n\t\t\tvetor.adiciona(c3);\n\t\t\tvetor.adiciona(c4);\n\t\t\tvetor.adiciona(c5);\n\t\t\tvetor.adiciona(c6);\n\t\t\tvetor.adiciona(c7);\n\t\t\tvetor.adiciona(c8);\n\t\t\tvetor.adiciona(c9);\n\t\t\tvetor.adiciona(c10);\n\t\t\tvetor.adiciona(c11);\n\t\t\tvetor.adiciona(c12);\n\t\t\tvetor.adiciona(c13);\n\t\t\tvetor.adiciona(c14);\n\t\t\tvetor.adiciona(c15);\n\t\t\tvetor.adiciona(c16);\n\t\t\tvetor.adiciona(c17);\n\t\t\tvetor.adiciona(c18);\n\t\t\tvetor.adiciona(c19);\n\t\t\tvetor.adiciona(c20);\n\t\t\tvetor.adiciona(c21);\n\t\t\tvetor.adiciona(c22);\n\t\t\tvetor.adiciona(c23);\n\t\t\tvetor.adiciona(c24);\n\t\t\tvetor.adiciona(c25);\n\t\t\tvetor.adiciona(c26);\n\t\t\tvetor.adiciona(c27);\n\t\t\tvetor.adiciona(c28);\n\t\t\tvetor.adiciona(c29);\n\t\t\tvetor.adiciona(c30);\n\t\t\t// ex3\n\t\t\tvetor.removerT(\"111-1111\");\n\t\t\t//ex4-vetor.RemoverTudo();\n\t\t\t\n\t\t\tSystem.out.println(vetor);\n\t\t\t// ex1\n\t\t\tSystem.out.println(\"Confirmar se o elemento na lista existe:\" + vetor.contem(c2));\n\t\t\t// ex2\n\t\t\tSystem.out.println(\"Retornar a posicao do elemento, se retornar -1 que dizer que o elemento não existe:\"\n\t\t\t\t\t+ vetor.indicio(c2));\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// ex6\n\t\tlistaEncadeada.add(c1);\n\t\tlistaEncadeada.add(c2);\n\t\tlistaEncadeada.add(c3);\n\t\tlistaEncadeada.add(c4);\n\t\tlistaEncadeada.add(c5);\n\t\tlistaEncadeada.add(c6);\n\t\tlistaEncadeada.add(c7);\n\t\tlistaEncadeada.add(c8);\n\t\tlistaEncadeada.add(c9);\n\t\tlistaEncadeada.add(c10);\n\t\tlistaEncadeada.add(c11);\n\t\tlistaEncadeada.add(c12);\n\t\tlistaEncadeada.add(c13);\n\t\tlistaEncadeada.add(c14);\n\t\tlistaEncadeada.add(c15);\n\t\tlistaEncadeada.add(c16);\n\t\tlistaEncadeada.add(c17);\n\t\tlistaEncadeada.add(c18);\n\t\tlistaEncadeada.add(c19);\n\t\tlistaEncadeada.add(c20);\n\t\tlistaEncadeada.add(c21);\n\t\tlistaEncadeada.add(c22);\n\t\tlistaEncadeada.add(c23);\n\t\tlistaEncadeada.add(c24);\n\t\tlistaEncadeada.add(c25);\n\t\tlistaEncadeada.add(c26);\n\t\tlistaEncadeada.add(c27);\n\t\tlistaEncadeada.add(c28);\n\t\tlistaEncadeada.add(c29);\n\t\tlistaEncadeada.add(c30);\n\n\t\tSystem.out.println(listaEncadeada);\n\n\t}",
"@Override\n\t\tprotected String doInBackground(Integer... params) {\n\t\t\t//Sorgulama sorgu=new Sorgulama(params[0]);\n\t\t\t//String sonuc=sorgu.baglan();\n\t\t\tString sonuc=null;\n\t\t\t\n\t\t\tint n=params[0];\n\t\t\tSystem.out.println(\"Detayı istenen: \"+n+\", \"+istenenYoneticiId);\n\t\t\t\n\t\t\tint index=alinanDetay.indexOf(istenenYoneticiId);\n\t\t\t//System.out.println(\"index: \"+index);\n\t\t\tif(index==-1){\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(baglantiKuntrolu()==true){\n\t\t\t\t\t// Y�netici Detay\n\t\t\t\t\tYoneticilerDetaySorgu sorgu=new YoneticilerDetaySorgu(n);\n\t\t\t\t\tsonuc=sorgu.baglan();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"Detay sonuc: \"+sonuc);\n\t\t\t\t\t\t\n\t\t\t\t\tKisiBilgileri.veriAl(sonuc, \"detay\");\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"Kişi Array: \");\n\t\t\t\t\t\n//\t\t\t\t\tKisiBilgileri k=kisi.get(0);\n//\t\t\t\t\t//System.out.println(\"Yöneticiler Lİste 118: \"+k.getId()+\"\\n\"+k.getIsim()+\"\\n\"+k.getUnvan()+\"\\n\"+k.getIl()+\"\\n\"+k.getIlce()+\"\\n\"+k.getCeptel()+\"\\n\"+k.getPartiTel()+\"\\n\"+k.getMail()+\"\\n\");\n//\t\t\t\t\t//System.out.println(\"Yöneticiler Lİste 119: \"+k.toString());\n//\t\t\t\t\tKisiListesi.ekle(k);\n//\t\t\t\t\t//KisiListesi.ekle(unvanlar.get(n-1), kisi);\n//\t\t\t\t\tSystem.out.println(\"Detaylar Y�netcilerListe: \"+k.isDetaylar());\n//\t\t\t\t\talinanDetay.add(istenenYoneticiId);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn sonuc;\n\t\t}",
"private void limpiarDatos() {\n\t\t\n\t}",
"public List<Aluno> listarAlunosPorTurma(Turma turma) {\r\n Criteria criteria = getSessao().createCriteria(Aluno.class);\r\n Criterion criterioDeBusca1 = Restrictions.eq(\"turma\", turma);\r\n criteria.add(criterioDeBusca1);\r\n return criteria.list();\r\n }",
"public void inOrden(){\n\t\tPlanta planta= Singleton.GetPlanta();\n\t Arbol <T> aux=null;\n\t if (!vacio()) {\n\t if ((aux=getHijoIzq())!=null) {\n\t aux.inOrden();\n\t } \n\t \n\t planta.out().print(\" \"+this.datoRaiz);\n\t \n\t if ((aux=getHijoDer())!=null){\n\t aux.inOrden();\n\t } \n\t }\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 }",
"void rozpiszKontraktyPart2NoEV(int index,float wolumenHandlu, float sumaKupna,float sumaSprzedazy )\n\t{\n\t\tArrayList<Prosument> listaProsumentowTrue =listaProsumentowWrap.getListaProsumentow();\n\t\t\n\n\t\tint a=0;\n\t\twhile (a<listaProsumentowTrue.size())\n\t\t{\n\t\t\t\t\t\t\n\t\t\t// ustala bianrke kupuj\n\t\t\t// ustala clakowita sprzedaz (jako consumption)\n\t\t\t//ustala calkowite kupno (jako generacje)\n\t\t\tDayData constrainMarker = new DayData();\n\t\t\t\n\t\t\tArrayList<Point> L1\t=listaFunkcjiUzytecznosci.get(a);\n\t\t\t\n\t\t\t//energia jaka zadeklarowal prosument ze sprzeda/kupi\n\t\t\tfloat energia = L1.get(index).getIloscEnergiiDoKupienia();\n\t\t\t\n\t\t\tif (energia>0)\n\t\t\t{\n\t\t\t\tfloat iloscEnergiiDoKupienia = energia/sumaKupna*wolumenHandlu;\n\t\t\t\t\n\t\t\t\tconstrainMarker.setKupuj(1);\n\t\t\t\tconstrainMarker.setGeneration(iloscEnergiiDoKupienia);\n\t\t\t\t\n\t\t\t\trynekHistory.ustawBetaDlaWynikowHandlu(iloscEnergiiDoKupienia,a);\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfloat iloscEnergiiDoSprzedania = energia/sumaSprzedazy*wolumenHandlu;\n\n\t\t\t\t\n\t\t\t\tconstrainMarker.setKupuj(0);\n\t\t\t\tconstrainMarker.setConsumption(iloscEnergiiDoSprzedania);\n\t\t\t\t\n\t\t\t\trynekHistory.ustawBetaDlaWynikowHandlu(iloscEnergiiDoSprzedania,a);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tArrayList<Float> priceVector = priceVectorsList.get(priceVectorsList.size()-1);\n\t\t\t\n\t\t\t//poinformuj prosumenta o wyniakch handlu i dostosuj go do wynikow\n\t\t\tlistaProsumentowTrue.get(a).getKontrakt(priceVector,constrainMarker);\n\t\t\t\n\t\t\ta++;\n\t\t}\n\t}",
"public void odgovorStoritve(String odgovor) {\n\n JSONArray jsonArray = null;\n\n try {\n jsonArray = new JSONArray(odgovor);\n\n\n if (jsonArray != null) {\n for (int i=0; i < jsonArray.length(); i++){\n JSONObject explrObject = jsonArray.getJSONObject(i);\n rezultati.add(explrObject);\n }\n }\n } catch (Exception e) {\n Log.d(\"izpis\", \"neki ni bilo v redu\" + e);\n }\n\n // default izpise highscore za easy game\n izpisiRezultate(1);\n }"
]
| [
"0.65031683",
"0.62774146",
"0.6276434",
"0.62430036",
"0.6241081",
"0.6240646",
"0.6226945",
"0.62103313",
"0.62015486",
"0.6189356",
"0.6187149",
"0.6171987",
"0.6163831",
"0.6152159",
"0.6142055",
"0.6132724",
"0.60885084",
"0.6085166",
"0.6072101",
"0.6068749",
"0.6066577",
"0.6058304",
"0.6058214",
"0.6035163",
"0.6034401",
"0.60321426",
"0.6020243",
"0.60123646",
"0.6000357",
"0.5991924",
"0.59913015",
"0.59700656",
"0.59666866",
"0.59654605",
"0.5962976",
"0.59371847",
"0.59307116",
"0.59250236",
"0.59180427",
"0.5911935",
"0.59054226",
"0.5897856",
"0.5895304",
"0.58935183",
"0.58850914",
"0.5875346",
"0.58749455",
"0.58644474",
"0.58588815",
"0.58569145",
"0.5855999",
"0.5849337",
"0.5824492",
"0.5822385",
"0.5817389",
"0.5815598",
"0.58074707",
"0.5803461",
"0.58010036",
"0.5800967",
"0.579907",
"0.5798584",
"0.578215",
"0.57748955",
"0.57678",
"0.57592994",
"0.5755322",
"0.57540625",
"0.5752991",
"0.5752284",
"0.57501197",
"0.57417226",
"0.57374644",
"0.5732572",
"0.5729479",
"0.5725208",
"0.57250124",
"0.5722766",
"0.57186884",
"0.5717429",
"0.57143974",
"0.5714135",
"0.57104325",
"0.5707936",
"0.5702555",
"0.5702114",
"0.5697988",
"0.5697617",
"0.5697606",
"0.5695937",
"0.5692359",
"0.5692013",
"0.56900364",
"0.5687919",
"0.56827897",
"0.56800514",
"0.5678353",
"0.56776536",
"0.56760204",
"0.56758153",
"0.56754994"
]
| 0.0 | -1 |
Metodi hakee listan koon | public int koko() {
return this.arvoja;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void lisaaKomennot() {\n this.komennot.put(1, new TarkasteleListoja(1, \"Tarkastele listoja\", super.tallennetutTuotteet, super.tallennetutListat, this.io));\n this.komennot.put(2, new LisaaListalle(2, \"Lisää listalle\", super.tallennetutTuotteet, super.tallennetutListat, this.io));\n this.komennot.put(3, new PoistaListalta(3, \"Poista listalta\", super.tallennetutTuotteet, super.tallennetutListat, this.io));\n }",
"public static void main(String[] args) {\n\t\tArrayList<MataKuliah> listMatakuliah = new ArrayList<MataKuliah>();\n\t\t//cara 2\n\t\t//List<MataKuliah> listMatakuliah = new ArrayList<MataKuliah>();\n\t\t\n\t\tMataKuliah mk1 = new MataKuliah(\"IF123\", \"Alpro1\", 4, 'A');\n\t\tMataKuliah mk2 = new MataKuliah(\"IF124\", \"Alpro2\", 3, 'B');\n\t\tMataKuliah mk3 = new MataKuliah(\"IF125\", \"KPLBO\", 3, 'B');\n\t\tMataKuliah mk4 = new MataKuliah(\"IF126\", \"RKPPL\", 2, 'A');\n\t\t\n\t\tlistMatakuliah.add(mk1);\n\t\tlistMatakuliah.add(mk2);\n\t\tlistMatakuliah.add(mk3);\n\t\tlistMatakuliah.add(mk4);\n\t\t\n\t\t//tampilkan objek matakuliaj dari arraylist (cara 1)\n\t\tfor (MataKuliah mk : listMatakuliah) {\n\t\t\tSystem.out.println(mk.getKode()+\",\"+mk.getIndeksNilai());\n\t\t}\n\t\t\n\t\t//(cara 2)\n\t\tIterator<MataKuliah> iteratorMK = listMatakuliah.iterator();\n\t\twhile (iteratorMK.hasNext()) {\n\t\t\tMataKuliah mk = (MataKuliah) iteratorMK.next();\n\t\t\tSystem.out.println(mk.getKode()+\",\"+mk.getIndeksNilai());\n\t\t}\n\t}",
"public void listar() {\n\t\t\n\t}",
"@Override\n\tpublic ArrayList<Lista> listaListeElettorali() {\n\t\t\t\n\t\t\t\n\t\t\tDB db = getDB();\n\t\t\tMap<Integer, Lista> map = db.getTreeMap(\"liste\");\n\t\t\tArrayList<Lista> liste = new ArrayList<Lista>();\n\t\t\tSet<Integer> keys = map.keySet();\n\t\t\tfor (int key : keys) {\n\t\t\t\tliste.add(map.get(key));\n\t\t\t}\n\t\n\t\t\treturn liste;\n\t\t\t\n\t\t}",
"public List<Mobibus> darMobibus();",
"private void hienThiMaPDK(){\n ThuePhongService thuePhongService = new ThuePhongService();\n thuePhongModels = thuePhongService.layToanBoPhieuDangKyThuePhong();\n cbbMaPDK.removeAllItems();\n for (ThuePhongModel thuePhongModel : thuePhongModels) {\n cbbMaPDK.addItem(thuePhongModel.getMaPDK());\n }\n }",
"public void GetVehiculos() {\n String A = \"&LOCATION=POR_ENTREGAR\";\n String Pahtxml = \"\";\n \n try {\n \n DefaultListModel L1 = new DefaultListModel();\n Pahtxml = Aso.SendGetPlacas(A);\n Lsvehiculo = Aso.Leerxmlpapa(Pahtxml);\n Lsvehiculo.forEach((veh) -> {\n System.out.println(\"Placa : \" + veh.Placa);\n L1.addElement(veh.Placa);\n });\n \n Lista.setModel(L1);\n \n } catch (Exception ex) {\n Logger.getLogger(Entrega.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }",
"public static List<PhuThuocHam> phuToithieu(List<PhuThuocHam> list) {\n\t\tList<PhuThuocHam> listPTH = new ArrayList<PhuThuocHam>(); \n\t\t\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\tPhuThuocHam pth = list.get(i);\n\t\t\tfor (int j = 0; j < pth.getVePhai().length(); j++) {\n\t\t\t\tlistPTH.add(new PhuThuocHam(pth.getVeTrai(),Character.toString(pth.getVePhai().charAt(j))));\n\t\t\t}\n\t\t}\n\t\t\n\t\t//bo cac thuoc tinh du thua ben trai\n\t\tint index = 0;\n\t\twhile (index < listPTH.size()) {\n\t\t\tPhuThuocHam pth = listPTH.get(index);\n\t\t\t//ve ben trai chi co 1 thuoc tinh thi khong can xet\n\t\t\tif (pth.getVeTrai().length() != 1) {\n\t\t\t\tfor (int i = 0; i < pth.getVeTrai().length(); i++) {\n\t\t\t\t\tString chuoiBo = Character.toString(pth.getVeTrai().charAt(i));\n\t\t\t\t\tString chuoiSauKhiBo = CongCu.catChuoi(pth.getVeTrai(), i);\n\t\t\t\t\tif (TimBaoDong.timBaoDong(listPTH, chuoiSauKhiBo).contains(chuoiBo)) {\n//\t\t\t\t\t\tSystem.out.println(\"Delete \" + chuoiBo + \" From \" + pth.getVeTrai() + \" -> \" + pth.getVePhai());\n\t\t\t\t\t\tlistPTH.get(index).setVeTrai(chuoiSauKhiBo);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tindex++;\n\t\t}\n\t\t\n\t\t//bo phu thuoc ham du thua\n\t\tindex = 0;\n\t\twhile (index < listPTH.size()) {\n\t\t\tString trai = listPTH.get(index).getVeTrai();\n\t\t\tString phai = listPTH.get(index).getVePhai();\n\t\t\t\tlistPTH.remove(index);\n\t\t\t\tif(!TimBaoDong.timBaoDong(listPTH, trai).contains(phai)) {\n\t\t\t\tlistPTH.add(index, new PhuThuocHam(trai, phai));\n\t\t\t\tindex++;\n\t\t\t\t}\n\t\t\t\telse {\n//\t\t\t\t\tSystem.out.println(\"Delete \" + trai + \" -> \" + phai);\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\treturn listPTH;\n\t}",
"public static List<Kontak> getKontakData() {\n // Mendeklarasikan varibel ArrayList berjenis Kontak\n ArrayList<Kontak> listKontak = new ArrayList<>();\n // Melakukan perulangan sebanyak jumlah data(10 kali)\n for (int i = 0; i < nama.length; i++) {\n // Membuat objek Kontak\n Kontak kontak = new Kontak();\n // Mengisi data setiap atribut menggunakan setter()\n kontak.setFoto(foto[i]);\n kontak.setNama(nama[i]);\n kontak.setNoTelepon(noTelepon[i]);\n kontak.setEmail(email[i]);\n\n // Menambahkan objek kontak ke dalam ArrayList Kontak\n listKontak.add(kontak);\n }\n // Mengembalikan nilai ArrayList Kontak\n return listKontak;\n }",
"private void MembentukListHuruf(){\n for(int i = 0; i < Panjang; i ++){\n Huruf Hrf = new Huruf();\n Hrf.CurrHrf = Kata.charAt(i);\n if(!IsVertikal){\n //horizontal\n Hrf.IdX = StartIdxX;\n Hrf.IdY = StartIdxY+i;\n }else{\n Hrf.IdX = StartIdxX+i;\n Hrf.IdY = StartIdxY;\n }\n // System.out.println(\"iniii \"+Hrf.IdX+\" \"+Hrf.IdY+\" \"+Hrf.CurrHrf+\" \"+NoSoal);\n TTS.Kolom[Hrf.IdX][Hrf.IdY].AddNoSoal(NoSoal);\n TTS.Kolom[Hrf.IdX][Hrf.IdY].Huruf=Hrf.CurrHrf;\n \n }\n }",
"public void mostrarlistafininicio(){\n if(!estavacia()){\n String datos=\"<=>\";\n nododoble auxiliar=fin;\n while(auxiliar!=null){\n datos=datos+\"[\"+auxiliar.dato+\"]<=>\";\n auxiliar=auxiliar.anterior;\n }\n JOptionPane.showMessageDialog(null,datos,\n \"Mostraando lista de fin a inicio\",JOptionPane.INFORMATION_MESSAGE);\n }}",
"private void ZeigeAlleKontakte() throws Exception {\n\t\r\n\t\tList<Kontakt> kontaktarray = new ArrayList<Kontakt>();\r\n\t\r\n\t\tKontaktService service = (KontaktService) Naming.lookup (\"rmi://localhost:1099/KontaktService\");\r\n\t\t\r\n\t\tkontaktarray = service.getKontakte();\r\n\t\r\n\t\tKontakt k = new Kontakt();\r\n\t\t\r\n\t\tString xAusgabe = \"\"; \r\n\t\tIterator<Kontakt> iterator = kontaktarray.iterator();\r\n\t\twhile (iterator.hasNext()) {\r\n\t\t\t\r\n\t\t\tk = iterator.next();\r\n\t\t\t\r\n\t\t\txAusgabe = Objects.toString(k.getcId());\r\n\t\t\txAusgabe += \" ; \";\r\n\t\t\txAusgabe += k.getcNName();\r\n\t\t\txAusgabe += \" ; \";\r\n\t\t\txAusgabe += k.getcVName();\r\n\t\t\t// TODO: Restliche Felder ausgeben\r\n\t\t\t\r\n\t\t\tSystem.out.println(xAusgabe);\t\t\t\t\r\n\t\t\t}\r\n\t}",
"public void missionlist() {\r\n\t\tfor (Himmelskoerper hTemp : ladung.keySet()) {\r\n\t\t\tSystem.out.println(\" \" + hTemp.getName());\r\n\t\t}\r\n\t}",
"public ListaPracownikow() {\n generujPracownikow();\n //dodajPracownika();\n }",
"public void listarHospedes() {\n System.out.println(\"Hospedes: \\n\");\n if (hospedesCadastrados.isEmpty()) {\n// String esta = hospedesCadastrados.toString();\n// System.out.println(esta);\n System.err.println(\"Não existem hospedes cadastrados\");\n } else {\n String esta = hospedesCadastrados.toString();\n System.out.println(esta);\n // System.out.println(Arrays.toString(hospedesCadastrados.toArray()));\n }\n\n }",
"public void eisagwgiFarmakou() {\n\t\t// Elegxw o arithmos twn farmakwn na mhn ypervei ton megisto dynato\n\t\tif(numOfMedicine < 100)\n\t\t{\n\t\t\tSystem.out.println();\t\n\t\t\tmedicine[numOfMedicine] = new Farmako();\t\n\t\t\tmedicine[numOfMedicine].setCode(rnd.nextInt(1000000)); // To sistima dinei automata ton kwdiko tou farmakou\n\t\t\tmedicine[numOfMedicine].setName(sir.readString(\"DWSTE TO ONOMA TOU FARMAKOU: \")); // Zitaw apo ton xristi na mou dwsei to onoma tou farmakou\n\t\t\tmedicine[numOfMedicine].setPrice(sir.readPositiveFloat(\"DWSTE THN TIMH TOU FARMAKOU: \")); // Pairnw apo ton xristi tin timi tou farmakou\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos monadikotitas tou kwdikou tou farmakou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tif(medicine[i].getCode() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(10);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfMedicine++;\n\t\t}\n\t\t// An xeperastei o megistos arithmos farmakwn\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLA FARMAKA!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}",
"public void listar() {\n\n if (!vacia()) {\n\n NodoEnteroSimple temp = head;\n\n int i = 0;\n\n while (temp != null) {\n\n System.out.print(i + \".[ \" + temp.getValor() + \" ]\" + \" -> \");\n\n temp = temp.getSiguiente();\n\n i++;\n }\n }\n \n }",
"@Override\n public void HienThiDanhSach(List<DienTu> listdienTu) {\n\n }",
"List<TipoHuella> listarTipoHuellas();",
"public void mostrarLista(){\n Nodo recorrer = inicio;\n while(recorrer!=null){\n System.out.print(\"[\"+recorrer.edad+\"]-->\");\n recorrer=recorrer.siguiente;\n }\n System.out.println(recorrer);\n }",
"private void listarItems() {\r\n // Cabecera\r\n System.out.println(\"Listado de Items\");\r\n System.out.println(\"================\");\r\n\r\n // Criterio de Ordenación/Filtrado\r\n System.out.printf(\"Criterio de Ordenación .: %S%n\", criOrd.getNombre());\r\n System.out.printf(\"Criterio de Filtrado ...: %S%n\", criFil.getNombre());\r\n\r\n // Separados\r\n System.out.println(\"---\");\r\n\r\n // Filtrado > Selección Colección\r\n List<Item> lista = criFil.equals(Criterio.NINGUNO) ? CARRITO : FILTRO;\r\n\r\n // Recorrido Colección\r\n for (Item item : lista) {\r\n System.out.println(item.toString());\r\n }\r\n\r\n // Pausai\r\n UtilesEntrada.hacerPausa();\r\n }",
"public void mostrarLista() {\n\n Nodo recorrer = temp;\n while (recorrer != null) {\n\n System.out.println(\"[ \" + recorrer.getDato() + \"]\");\n recorrer = recorrer.getSiguiente();\n\n }\n\n }",
"public void listarAlunosNaDisciplina(){\r\n for(int i = 0;i<alunos.size();i++){\r\n System.out.println(alunos.get(i).getNome());\r\n }\r\n }",
"public void mostrarlistainciofin(){\n if(!estavacia()){\n String datos=\"<=>\";\n nododoble auxiliar=inicio;\n while(auxiliar!=null){\n datos=datos+\"[\"+auxiliar.dato+\"]<=>\";\n auxiliar=auxiliar.siguiente;\n }\n JOptionPane.showMessageDialog(null,datos,\n \"Mostraando lista de incio a fin\",JOptionPane.INFORMATION_MESSAGE);\n } }",
"private void hienThiDichVuKhachHangSuDung(String maKH){\n SuDungService suDungService = new SuDungService();\n suDungModels = suDungService.layDichVuKhachHangSuDung(maKH);\n for (SuDungModel suDungModel : suDungModels) {\n cbbThanhToanMaDV.addItem(suDungModel.getMaDV());\n }\n }",
"private void ucitajPodatke() {\n \n DefaultListModel<Voznja> m = new DefaultListModel<>();\n obrada.getPodaci().forEach(s->m.addElement(s));\n lstPodaci.setModel(m);\n\n }",
"public void Lista(){\n\t\tcabeza = null;\n\t\ttamanio = 0;\n\t}",
"public void MostrarListas (){\n Nodo recorrer=inicio; // esto sirve para que el elemento de la lista vaya recorriendo conforme se inserta un elemento\r\n System.out.println(); // esto nos sirve para dar espacio a la codificacion de la lista al imprimir \r\n while (recorrer!=null){ // esta secuencia iterativa nos sirve para repetir las opciones del menu\r\n System.out.print(\"[\" + recorrer.dato +\"]--->\");\r\n recorrer=recorrer.siguiente;\r\n }\r\n }",
"public void mostrarlistafininicio(){\n if(!estaVacia()){\n String datos = \"<=>\";\n NodoBus auxiliar = fin;\n while(auxiliar!=null){\n datos = datos + \"(\" + auxiliar.dato +\")->\";\n auxiliar = auxiliar.ant;\n JOptionPane.showMessageDialog(null, datos, \"Mostrando lista de fin a inicio\", JOptionPane.INFORMATION_MESSAGE);\n }\n }\n }",
"public static List<Integer> czytanieMotorniczego(){\r\n int numerMotorniczego;\r\n int wiek=0;\r\n int doswiadczenie = 0;\r\n String line;\r\n OdczytZPliku plik = new OdczytZPliku();\r\n InputStream zawartosc = plik.pobierzZPliku(\"bazamotorniczych.txt\");\r\n String numerWStringu = String.valueOf( numerMotorniczego = (int) (Math.random() * 4));\r\n try (InputStreamReader odczyt = new InputStreamReader(zawartosc, StandardCharsets.UTF_8);\r\n BufferedReader czytaj = new BufferedReader(odczyt)) {\r\n while ((line = czytaj.readLine()) != null) {\r\n if (line.equals(numerWStringu)) {\r\n wiek = Integer.parseInt(czytaj.readLine());\r\n doswiadczenie = Integer.parseInt(czytaj.readLine());\r\n break;\r\n }\r\n else{\r\n for (int i = 0; i < 2; i++) {\r\n line = czytaj.readLine();\r\n }\r\n }\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n return List.of(numerMotorniczego, wiek, doswiadczenie);\r\n }",
"public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }",
"private void ucitajTestPodatke() {\n\t\tList<Integer> l1 = new ArrayList<Integer>();\n\n\t\tRestoran r1 = new Restoran(\"Palazzo Bianco\", \"Bulevar Cara Dušana 21\", KategorijeRestorana.PICERIJA, l1, l1);\n\t\tRestoran r2 = new Restoran(\"Ananda\", \"Petra Drapšina 51\", KategorijeRestorana.DOMACA, l1, l1);\n\t\tRestoran r3 = new Restoran(\"Dizni\", \"Bulevar cara Lazara 92\", KategorijeRestorana.POSLASTICARNICA, l1, l1);\n\n\t\tdodajRestoran(r1);\n\t\tdodajRestoran(r2);\n\t\tdodajRestoran(r3);\n\t}",
"public void StampaPotenziali()\r\n {\r\n System.out.println(\"----\"+this.nome+\"----\\n\"); \r\n \r\n if(!Potenziale.isEmpty())\r\n {\r\n Set<Entry<Integer,ArrayList<Carta>>> Es = Potenziale.entrySet();\r\n \r\n for(Entry<Integer,ArrayList<Carta>> E : Es)\r\n {\r\n System.out.println(\" -OPZIONE \"+E.getKey()+\"\");\r\n\r\n for(Carta c : E.getValue())\r\n {\r\n System.out.println(\" [ \"+c.GetName()+\" ]\");\r\n }\r\n \r\n System.out.println(\"\\n\");\r\n }\r\n }\r\n else\r\n {\r\n System.out.println(\"-NESSUNA CARTA O COMBINAZIONE DI CARTE ASSOCIATA-\\n\");\r\n }\r\n }",
"public ArrayList<KelasDicoding> getListKelas(){ return listKelas; }",
"private void hienThiMaKHSuDungDV(){\n SuDungService suDungService = new SuDungService();\n suDungModels = suDungService.layMaKHSuDungDVLoaiBoTrungLap();\n \n cbbThanhToanMaKH.removeAllItems();\n for (SuDungModel suDungModel : suDungModels) {\n cbbThanhToanMaKH.addItem(suDungModel.getMaKH());\n }\n }",
"public void displayPhieuXuatKho() {\n\t\tlog.info(\"-----displayPhieuXuatKho()-----\");\n\t\tif (!maPhieu.equals(\"\")) {\n\t\t\ttry {\n\t\t\t\tDieuTriUtilDelegate dieuTriUtilDelegate = DieuTriUtilDelegate.getInstance();\n\t\t\t\tPhieuTraKhoDelegate pxkWS = PhieuTraKhoDelegate.getInstance();\n\t\t\t\tCtTraKhoDelegate ctxWS = CtTraKhoDelegate.getInstance();\n\t\t\t\tDmKhoa dmKhoaNhan = new DmKhoa();\n\t\t\t\tdmKhoaNhan = (DmKhoa)dieuTriUtilDelegate.findByMa(IConstantsRes.KHOA_KC_MA, \"DmKhoa\", \"dmkhoaMa\");\n\t\t\t\tphieuTra = pxkWS.findByPhieutrakhoByKhoNhan(maPhieu, dmKhoaNhan.getDmkhoaMaso());\n\t\t\t\tif (phieuTra != null) {\n\t\t\t\t\tmaPhieu = phieuTra.getPhieutrakhoMa();\n\t\t\t\t\tresetInfo();\n\t\t\t\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\t\t\tngayXuat = df.format(phieuTra.getPhieutrakhoNgay());\n\t\t\t\t\tfor (CtTraKho ct : ctxWS.findByphieutrakhoMa(phieuTra.getPhieutrakhoMa())) {\n\t\t\t\t\t\tCtTraKhoExt ctxEx = new CtTraKhoExt();\n\t\t\t\t\t\tctxEx.setCtTraKho(ct);\n\t\t\t\t\t\tlistCtKhoLeTraEx.add(ctxEx);\n\t\t\t\t\t}\n\t\t\t\t\tcount = listCtKhoLeTraEx.size();\n\t\t\t\t\tisFound=\"true\";\n\t\t\t\t\t// = null la chua luu ton kho -> cho ghi nhan\n\t\t\t\t\t// = 1 da luu to kho -> khong cho ghi nhan\n\t\t\t\t\tif(phieuTra.getPhieutrakhoNgaygiophat()==null)\n\t\t\t\t\tisUpdate = \"1\";\n\t\t\t\t\telse\n\t\t\t\t\t\tisUpdate = \"0\";\n\t\t\t\t} else {\n\t\t\t\t\tFacesMessages.instance().add(IConstantsRes.PHIEUXUATKHO_NULL, maPhieu);\n\t\t\t\t\treset();\n\t\t\t\t}\n\t\t\t\ttinhTien();\n\t\t\t} catch (Exception e) {\n\t\t\t\tFacesMessages.instance().add(IConstantsRes.PHIEUXUATKHO_NULL, maPhieu);\n\t\t\t\treset();\n\t\t\t\tlog.error(String.format(\"-----Error: %s\", e));\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public void displayOnderwerpList() {\n List<Onderwerp> onderwerpList = winkel.getOnderwerpList();\n System.out.println(\"Kies een onderwerp: \");\n for (int i = 0; i < onderwerpList.size(); i++) {\n System.out.println((i + 1) + \". \" + onderwerpList.get(i));\n }\n }",
"public static void main(String[] args) {\r\n\t\t\t\t\r\n\t\tPutnici p1 = new Putnici (\"Milan\", \"Milanovic\", 105864312);\r\n\t\tPutnici p2 = new Putnici (\"Gordana\", \"Gajic\", 103886432);\r\n\t\tPutnici p3 = new Putnici (\"Zorana\", \"Pajic\", 103866115);\r\n\t\tPutnici p4 = new Putnici (\"Gordan\", \"Pajic\", 105612834);\r\n\t\tPutnici p5 = new Putnici (\"Zoltan\", \"Hrdelj\", 104916773);\r\n\t\tPutnici p6 = new Putnici (\"Milana\", \"Hrdelj\", 105834491);\r\n\t\tPutnici p7 = new Putnici (\"Atila\", \"Hrdelj\", 112586493);\r\n\t\tPutnici p8 = new Putnici (\"Dejan\", \"Petrovic\", 104386166);\r\n\t\tPutnici p9 = new Putnici (\"Bozidarka\", \"Serdar\", 105821386);\r\n\t\tPutnici p10 = new Putnici (\"Dobrivoj\", \"Serdar\", 104386991);\r\n\t\tPutnici p11 = new Putnici (\"Stefana\", \"Drobnjak\", 105813671);\r\n\t\tPutnici p12 = new Putnici (\"Dubravka\", \"Stojakovic\", 103846939);\r\n\t\t\r\n\t\tList<Putnici>listaPutnika = new ArrayList<Putnici>();\r\n\t\t\r\n\t\tlistaPutnika.add(p1);\r\n\t\tlistaPutnika.add(p2);\r\n\t\tlistaPutnika.add(p3);\r\n\t\tlistaPutnika.add(p4);\r\n\t\tlistaPutnika.add(p5);\r\n\t\tlistaPutnika.add(p6);\r\n\t\tlistaPutnika.add(p7);\r\n\t\tlistaPutnika.add(p8);\r\n\t\tlistaPutnika.add(p9);\r\n\t\tlistaPutnika.add(p10);\r\n\t\tlistaPutnika.add(p11);\r\n\t\tlistaPutnika.add(p12);\r\n\t\t\r\n\t\tList<Putnici>listaPutnikaT1 = new ArrayList<Putnici>();\r\n\t\t\t\t\r\n\t\tlistaPutnikaT1.add(p1);\r\n\t\tlistaPutnikaT1.add(p2);\r\n\t\tlistaPutnikaT1.add(p5);\r\n\t\tlistaPutnikaT1.add(p6);\r\n\t\tlistaPutnikaT1.add(p7);\r\n\t\t\r\n\t\tList<Putnici>listaPutnikaT2 = new ArrayList<Putnici>();\r\n\t\t\r\n\t\tlistaPutnikaT2.add(p3);\r\n\t\tlistaPutnikaT2.add(p4);\r\n\t\tlistaPutnikaT2.add(p8);\r\n\t\tlistaPutnikaT2.add(p12);\r\n\t\t\r\n\t\tList<Putnici>listaPutnikaT3 = new ArrayList<Putnici>();\r\n\t\t\r\n\t\tlistaPutnikaT3.add(p9);\r\n\t\tlistaPutnikaT3.add(p10);\r\n\t\tlistaPutnikaT3.add(p11);\r\n\t\t\r\n\t\tPutovanje v1 = new Putovanje (\"Sardinija-Algero\", 950.25, listaPutnikaT3);\r\n\t\tPutovanje v2 = new Putovanje (\"Sejseli-Ostrvo Mae\", 1024.5, listaPutnikaT1);\r\n\t\tPutovanje v3 = new Putovanje (\"Meksiko-Kankun\", 1456.34, listaPutnikaT2);\r\n\t\t\r\n\t\tList<Putovanje> listaPonuda = new ArrayList<Putovanje>();\r\n\t\tlistaPonuda.add(v1);\r\n\t\tlistaPonuda.add(v2);\r\n\t\tlistaPonuda.add(v3);\r\n\t\t\r\n\t\tSystem.out.println(\"U ponudi su \" + listaPonuda.size() + \" destinacije.\");\r\n\t\tSystem.out.println(\"Pogledajte kompletnu ponudu: \");\r\n\t\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tsb.append(\"1. Lokacija: \");\r\n\t\tsb.append(v1.getDestinacija());\r\n\t\tsb.append(\", cena aranzmana za 10 nocenja sa avionskim prevozom: \");\r\n\t\tsb.append(v1.getCena());\r\n\t\tsb.append(\" evra.\");\r\n\t\tsb.append(\" Putnici: \");\r\n\t\tsb.append(listaPutnikaT3.get(0).getIme());\r\n\t\tsb.append(\" \");\r\n\t\tsb.append(listaPutnikaT3.get(0).getPrezime());\r\n\t\tsb.append(\", \");\r\n\t\tsb.append(listaPutnikaT3.get(1).getIme());\r\n\t\tsb.append(\" \");\r\n\t\tsb.append(listaPutnikaT3.get(1).getPrezime());\r\n\t\tsb.append(\", \");\r\n\t\tsb.append(listaPutnikaT3.get(2).getIme());\r\n\t\tsb.append(\" \");\r\n\t\tsb.append(listaPutnikaT3.get(2).getPrezime());\r\n\t\tsb.append(\".\");\r\n\t\tSystem.out.println(sb.toString());\r\n\t\t\r\n\t\tStringBuilder sb1 = new StringBuilder();\r\n\t\tsb1.append(\"2. Lokacija: \");\r\n\t\tsb1.append(v2.getDestinacija());\r\n\t\tsb1.append(\", cena aranzmana za 10 nocenja sa avionskim prevozom: \");\r\n\t\tsb1.append(v2.getCena());\r\n\t\tsb1.append(\" evra.\");\r\n\t\tsb1.append(\" Putnici: \");\r\n\t\tsb1.append(listaPutnikaT1.get(0).getIme());\r\n\t\tsb1.append(\" \");\r\n\t\tsb1.append(listaPutnikaT1.get(0).getPrezime());\r\n\t\tsb1.append(\", \");\r\n\t\tsb1.append(listaPutnikaT1.get(1).getIme());\r\n\t\tsb1.append(\" \");\r\n\t\tsb1.append(listaPutnikaT1.get(1).getPrezime());\r\n\t\tsb1.append(\", \");\r\n\t\tsb1.append(listaPutnikaT1.get(2).getIme());\r\n\t\tsb1.append(\" \");\r\n\t\tsb1.append(listaPutnikaT1.get(2).getPrezime());\r\n\t\tsb1.append(listaPutnikaT1.get(3).getIme());\r\n\t\tsb1.append(\" \");\r\n\t\tsb1.append(listaPutnikaT1.get(3).getPrezime());\r\n\t\tsb1.append(listaPutnikaT1.get(4).getIme());\r\n\t\tsb1.append(\" \");\r\n\t\tsb1.append(listaPutnikaT1.get(4).getPrezime());\r\n\t\tsb1.append(\".\");\r\n\t\tSystem.out.println(sb1.toString());\r\n\t\t\r\n\t\tStringBuilder sb2 = new StringBuilder();\r\n\t\tsb2.append(\"3. Lokacija: \");\r\n\t\tsb2.append(v3.getDestinacija());\r\n\t\tsb2.append(\", cena aranzmana za 10 nocenja sa avionskim prevozom: \");\r\n\t\tsb2.append(v3.getCena());\r\n\t\tsb2.append(\" evra.\");\r\n\t\tsb2.append(\" Putnici: \");\r\n\t\tsb2.append(listaPutnikaT2.get(0).getIme());\r\n\t\tsb2.append(\" \");\r\n\t\tsb2.append(listaPutnikaT2.get(0).getPrezime());\r\n\t\tsb2.append(\", \");\r\n\t\tsb2.append(listaPutnikaT2.get(1).getIme());\r\n\t\tsb2.append(\" \"); \r\n\t\tsb2.append(listaPutnikaT2.get(1).getPrezime());\r\n\t\tsb2.append(\", \");\r\n\t\tsb2.append(listaPutnikaT2.get(2).getIme());\r\n\t\tsb2.append(\" \");\r\n\t\tsb2.append(listaPutnikaT2.get(2).getPrezime());\r\n\t\tsb2.append(listaPutnikaT2.get(3).getIme());\r\n\t\tsb2.append(\" \");\r\n\t\tsb2.append(listaPutnikaT2.get(3).getPrezime());\t\t\r\n\t\tsb2.append(\".\");\r\n\t\tSystem.out.println(sb2.toString());\r\n\t\t\t\t\r\n\t\tSystem.out.println(\"Za destinaciju \" + v2.getDestinacija() + \", trenutna cena aranzmana je\");\t\t\r\n\t\tSystem.out.println(v2.getCena() + \" evra za 10 nocenja sa avionskim prevozom.\");\r\n\t\t\t\t\r\n\t\tv2.setCena(1125.0);\r\n\t\tSystem.out.println(\"Od 10. juna cena aranzmana za destinaciju \" + v2.getDestinacija() + \" iznosice \" + v2.getCena() + \" evra.\");\r\n\t\t\r\n\t\tlistaPonuda.remove(v3);\t\r\n\t\tSystem.out.println(\"Zbog novonastale situacije obavestavamo vas o izmenama ponude putovanja. \");\r\n\t\tSystem.out.println(\"Nakon izmena u ponudi ostaju \" + listaPonuda.size() + \" destinacije: \");\r\n\t\tSystem.out.println(\"1. \" + listaPonuda.get(0).getDestinacija() + \"- cena aranzmana za 10 nocenja sa avionskim prevozom: \" + listaPonuda.get(0).getCena());\r\n\t\tSystem.out.println(\"2. \" + listaPonuda.get(1).getDestinacija() + \"- cena aranzmana za 10 nocenja sa avionskim prevozom: \" + listaPonuda.get(1).getCena());\r\n\t\tSystem.out.println();\r\n\t\t\t\t\r\n\t\t}",
"private void mostrarCoches() {\n int i = 0;\n for (Coche unCoche : coches) {\n System.out.println((i + 1) + \"º \" + coches.get(i));\n ++i;\n }\n }",
"public void mostrarlistainicifin(){\n if(!estaVacia()){\n String datos = \"<=>\";\n NodoBus auxiliar = inicio;\n while(auxiliar!=null){\n datos = datos + \"(\" + auxiliar.dato +\")<=>\";\n auxiliar = auxiliar.sig;\n JOptionPane.showMessageDialog(null, datos, \"Mostrando lista de inicio a fin\", JOptionPane.INFORMATION_MESSAGE);\n }\n }\n }",
"private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}",
"public void afficheInfos() {\n int i;\n Polygone p;\n for(i=0;i<this.list.size();i++){\n p = (Polygone) this.list.get(i);\n System.out.println(\"–––––––––––––––––––––\");\n System.out.println(\"Type : \" + p.toString());\n System.out.println(\"Sommet :\");\n System.out.print(p.texteSommets());\n System.out.println(\"Perimetre : \" + p.perimetre());\n System.out.println(\"Surface : \" + p.surface());\n System.out.println(\"–––––––––––––––––––––\");\n } \n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t\n\t\tsetContentView(R.layout.yoneticiler_liste);\n\t\tActivityBar.getInstance().connectToActivity(this);\n\t\t\n\t\tIntent intent=getIntent();\n\t\tBundle args=intent.getExtras();\n\t\t//istek=args.getInt(\"istek\");\n\t\tistek=0;\n\t\t\n\t\tCHPListe gelenVeri=(CHPListe)args.getSerializable(\"gelenListe\");\n\t\t\n\t\trootList=gelenVeri;\n\t\t\n\t\tSystem.out.println(\"GElenListe: \"+gelenVeri.getName());\n\t\t\n\t\tSystem.out.println(\"YöneticiListeGelen\"+istek);\n\t\t\n\t\t\n\t\tbaslik=(TextView)findViewById(R.id.tvBaslik);\n\t\tif(gelenVeri.getHeader().equals(\"null\"))\n\t\t\tbaslik.setText(gelenVeri.getName().toString().trim());\n\t\telse\n\t\t\tbaslik.setText(gelenVeri.getHeader().toString().trim());\n\t\t\n\t\tbaslik.setGravity(Gravity.CENTER);\n\n//\t\tif(KisiListesi.getYoneticiListesi().size()==0)\n//\t\t\tSystem.out.println(\"YöneticilerListe 0\");\n//\t\telse\n//\t\t\tSystem.out.println(\"YöneticilerListe 1: \"+KisiListesi.getYoneticiListesi().size());\n\t\t\n\t\t\n\t\ttry{\n\t\t/*\n\t\t\tyoneticiler=KisiListesi.getYoneticiListesi().get(unvanlar.get(istek));\n\t\t\tlisteId=yoneticiler.keySet().toArray();\n\t\t\n\t\t\tyoneticiBilgileri=KisiListesi.getBilgiler();\n\t\t\n\t\t\tArrayList<YoneticiKayit> yoneticiKayitlari=new ArrayList<YoneticiKayit>();\n\t\t\tString[] sadeceIsimlerListesi=new String[listeId.length];\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tfor(int i=0; i<listeId.length;i++){\n\t\t\t\tString isim=yoneticiBilgileri.get(listeId[i]).getIsim();\n\t\t\t\tString unvan=null;\n\t\t\t\t\n\t\t\t\tsadeceIsimlerListesi[i]=isim;\n\t\t\t\t\n\t\t\t\tString aranacakUnvan = null;\n\t\t\t\t\n\t\t\t\tif(istek>3){\n\t\t\t\tswitch (istek) {\n\t\t\t\tcase 4:\n\t\t\t\t\taranacakUnvan=\"Milletvekili\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\taranacakUnvan=\"�l Ba�kan�\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\taranacakUnvan=\"�l�e Ba�kan�\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 7:\n\t\t\t\t\taranacakUnvan=\"B�y�k�ehir Belediye Ba�kan�\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 8:\n\t\t\t\t\taranacakUnvan=\"�l Belediye Ba�kan�\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 9:\n\t\t\t\t\taranacakUnvan=\"�l�e Belediye Ba�kan�\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tArrayList<String> unvanlar=yoneticiBilgileri.get(listeId[i]).getUnvan();\n\t\t\t\t\n\t\t\t\tfor(int a=0; a<unvanlar.size();a++){\n\t\t\t\t\t\n\t\t\t\t\tint sorguSonuc=unvanlar.get(a).lastIndexOf(aranacakUnvan);\n\t\t\t\t\tif(sorguSonuc>-1){\n\t\t\t\t\t\tunvan=unvanlar.get(a);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tYoneticiKayit kayit=new YoneticiKayit(isim, unvan);\n\t\t\t\tyoneticiKayitlari.add(kayit);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t*/\n\t\t\n\t\t//System.out.println(\"Kay�t edilmi� listenin boyutu: \"+yoneticiKayitlari.size());\n\t\tliste=(ListView)findViewById(R.id.lvListeYL);\n\t\t\n\t\t\n\t\tCHPListAdapter adapter=new CHPListAdapter(this,R.layout.yonticiler_sablon,R.id.tvUnvanlar, gelenVeri.getContent());\n\t\tliste.setAdapter(adapter);\n\t\t\n\t\t\n//\t\tArrayAdapter<String> adapter=new ArrayAdapter<String>(YoneticilerListe.this,R.layout.yonticiler_sablon,R.id.tvUnvanlar, sadeceIsimlerListesi);\n//\t\t\n//\t\tYoneticiBilgileriAdapter adapterUnvanli=new YoneticiBilgileriAdapter(this,android.R.layout.simple_list_item_1,yoneticiKayitlari);\n\t\t\n//\t\tif(istek<=3)\n//\t\t\tliste.setAdapter(adapter);\n//\t\telse\n//\t\t\tliste.setAdapter(adapterUnvanli);\n//\t\t\n\t\t//System.out.println(\"Adapter olu�turuldu: \"+yoneticiKayitlari.size());\n\t\tliste.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(((CHPListe)rootList).getContent().get(arg2).getType().equals(\"list\")){\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"********TYPE\"+(((CHPListe)((CHPListe)rootList).getContent().get(arg2)).getContent().get(0).getType()));\n\t\t\t\t\tSystem.out.print(\"****Tıklanan listenin uzunluğu: \"+((CHPListe)((CHPListe)rootList).getContent().get(arg2)).getContent().size());\n\t\t\t\t\tif(((CHPListe)((CHPListe)rootList).getContent().get(arg2)).getContent().size()!=1 ){\n\t\t\t\t\t\tIntent i=new Intent(YoneticilerListe.this, YoneticilerListe.class); // this; yonlendirmenin yap�ld��� activity. \n\t\t\t\t\t\ti.putExtra(\"gelenListe\", ((CHPListe)rootList).getContent().get(arg2));\n\t\t\t\t\n\t\t\t\t\t\tstartActivityForResult(i, 0);\n\t\t\t\t\t\t//startActivity(i);\n\t\t\t\t\t}\n\t\t\t\t\telse if(((CHPListe)((CHPListe)rootList).getContent().get(arg2)).getContent().size()==1 && (((CHPListe)((CHPListe)rootList).getContent().get(arg2)).getContent().get(0).getType().equals(\"person\"))){\n\t\t\t\t\t\tistenenYoneticiId=((CHPPerson)((CHPListe)((CHPListe)rootList).getContent().get(arg2)).getContent().get(0)).getId();\n\t\t\t\t\t\tnew Servis().execute(istenenYoneticiId);\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tistenenYoneticiId=((CHPPerson)((CHPListe)rootList).getContent().get(arg2)).getId();\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"YöneticiListe tıklanan Yönetici ID: \"+istenenYoneticiId);\n\t\t\t\t\tnew Servis().execute(istenenYoneticiId);\n\t\t\t\t}\n//\t\t\t\ttiklanan=arg2;\n//\t\t\t\tistenenYoneticiId=(Integer) listeId[tiklanan];\n//\t\t\t\t\n//\t\t\t\t//System.out.println(\"Args: \"+tiklanan);\n//\t\t\t\t\n//\t\t\t\t\n//\t\t\t\t\t// Listeleri dolduruyoruz.\n//\t\t\t\t\n//\n//\t\t\t\t\tnew Servis().execute(istenenYoneticiId);\n\t\t\t\t\n\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Hata YöneticilerListe size\"+e.toString());\n\t\t\tbuilder = new AlertDialog.Builder(this);\n\t\t\t\n\t\t\t\t\t\tbuilder.setTitle(\"Bilgiler daha alınamadı\");\n\t\t\t\t\t\tbuilder.setMessage(\"İşlem tamamlanmadı.\");\n\t\t\t\n\t\t\t\t\t\tbuilder.setPositiveButton(\"Tamam\", new DialogInterface.OnClickListener() {\n\t\t\t\n\t\t\t\t\t\t public void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t \n\t\t\t\n\t\t\t\t\t\t dialog.dismiss();\n\t\t\t\t\t\t finish();\n\t\t\t\t\t\t \n\t\t\t\t\t\t }\n\t\t\t\n\t\t\t\t\t\t});\n\t\t\t\t\t\t\n\t\t\t\t\t\tbuilder.create().show();\n\t\t}\n//\t\tfinally{\n//\t\t\t\n//\t\t\t\n//\t\t\tbuilder = new AlertDialog.Builder(this);\n//\n//\t\t\tbuilder.setTitle(\"Bağlantı?\");\n//\t\t\tbuilder.setMessage(\"Lütfen internet bağlantınızı kontrol edin.\");\n//\n//\t\t\tbuilder.setPositiveButton(\"Tamam\", new DialogInterface.OnClickListener() {\n//\n//\t\t\t public void onClick(DialogInterface dialog, int which) {\n//\t\t\t \n//\n//\t\t\t dialog.dismiss();\n//\t\t\t finish();\n//\t\t\t \n//\t\t\t }\n//\n//\t\t\t});\n//\t\t\t\n//\t\t\tbuilder.create().show();\n//\t\t}\n\t\t\n\t\t\n\t\t\n\t\t//System.out.println(\"Grountulenecek Liste: \"+goruntulenecekListe[0]+\", \"+goruntulenecekListe.length);\n\t\t\n\t\t\n\t\t\n\t}",
"public List<Ve> getAllVe(long idKhachHang);",
"List<Vehiculo>listar();",
"public List<String> Garsonkullanici(int masa_no) throws SQLException {\n ArrayList<Integer> kull = new ArrayList<>();\r\n ArrayList<String> kullad = new ArrayList<>();\r\n sqlsorgular.baglanti vb = new baglanti();\r\n vb.baglan();\r\n try {\r\n\r\n String sorgu = \"select kullanici_no from ilisk_masa where masa_no=\" + masa_no + \";\";\r\n ps = vb.con.prepareStatement(sorgu);\r\n rs = ps.executeQuery(sorgu);\r\n\r\n while (rs.next()) {\r\n kull.add(rs.getInt(1));\r\n }\r\n System.out.println(kull);\r\n } catch (Exception e) {\r\n System.out.println(\"Garson kullanicisini alirken hata olustu\");\r\n\r\n }\r\n\r\n for (Integer kullanici_no : kull) {\r\n String deger = \" \";\r\n String sorgu2 = \"select kullanici_adi from kullanicilar where kullanici_no=\" + kullanici_no + \" and durum='GARSON';\";\r\n try {\r\n ps = vb.con.prepareStatement(sorgu2);\r\n rs = ps.executeQuery(sorgu2);\r\n while (rs.next()) {\r\n deger = rs.getString(1);\r\n\r\n if (deger != null) {\r\n kullad.add(deger);\r\n }\r\n }\r\n } catch (Exception e) {\r\n System.out.println(\"Garson kullanici Alinirken hata oldu\");\r\n }\r\n\r\n System.out.println(kullad);\r\n\r\n }\r\n vb.con.close();\r\n return kullad;\r\n\r\n }",
"public List<String> mo15798ho() {\n return new ArrayList(this.f3885Kh);\n }",
"private void lisaaMiinaOikealle(int i, int j) {\n ArrayList<Ruutu> lista;\n if (i + 1 < x) {\n lista = this.ruudukko[i + 1];\n lista.get(j).setViereisetMiinat(1);\n if (j - 1 >= 0) {\n lista.get(j - 1).setViereisetMiinat(1);\n }\n if (j + 1 < x) {\n lista.get(j + 1).setViereisetMiinat(1);\n }\n }\n }",
"public ArrayList<DanhMuc> getListDanhMucCha();",
"public ArrayList<DanhMuc> getListDanhMucCon(String ma_danh_muc);",
"public static List<Noeud> getNoeud() {\n\n Noeud Noeud1 = new Noeud(\"Entree\");\n Noeud Noeud2 = new Noeud(\"Accueil\");\n Noeud Noeud3 = new Noeud(\"Urgences\");\n Noeud Noeud4 = new Noeud(\"Séjour\");\n Noeud Noeud5 = new Noeud(\"Consultation\");\n Noeud Noeud6 = new Noeud(\"Imagerie\");\n Noeud Noeud7 = new Noeud(\"Ophtalmologie\");\n Noeud Noeud8 = new Noeud(\"Pharmacie\");\n Noeud Noeud9 = new Noeud(\"Local\");\n Noeud Noeud10 = new Noeud(\"Oncologie\");\n Noeud Noeud11 = new Noeud(\"LongSejour\");\n Noeud Noeud12 = new Noeud(\"Ambulatoire\");\n Noeud Noeud13 = new Noeud(\"EscalierBas\");\n Noeud Noeud14 = new Noeud(\"EscalierHaut\");\n\n ListeNoeud.add(Noeud1);\n ListeNoeud.add(Noeud2);\n ListeNoeud.add(Noeud3);\n ListeNoeud.add(Noeud4);\n ListeNoeud.add(Noeud5);\n ListeNoeud.add(Noeud6);\n ListeNoeud.add(Noeud7);\n ListeNoeud.add(Noeud8);\n ListeNoeud.add(Noeud9);\n ListeNoeud.add(Noeud10);\n ListeNoeud.add(Noeud11);\n ListeNoeud.add(Noeud12);\n ListeNoeud.add(Noeud13);\n ListeNoeud.add(Noeud14);\n return ListeNoeud;\n }",
"@Override\n\tpublic List<Chitietdonhang> tinhDoanhThuTheoNam(Integer nam) {\n\t\treturn chiTietDonHangRepository.tinhDoanhThuTheoNam(nam);\n\t}",
"private void listar() throws Exception{\n int resId=1;\n List<PlatoDia> lista = this.servicioRestaurante.listarMenuDia(resId);\n this.modelListEspecial.clear();\n lista.forEach(lse -> {\n this.modelListEspecial.addElement(\"ID: \" + lse.getId() \n + \" NOMBRE: \" + lse.getNombre()\n + \" DESCRIPCION: \" + lse.getDescripcion()\n + \" PRECIO: \" + lse.getPrecio()\n + \" ENTRADA: \"+lse.getEntrada() \n + \" PRINCIPIO: \"+lse.getPrincipio()\n + \" CARNE: \"+lse.getCarne()\n + \" BEBIDA: \"+lse.getBebida()\n + \" DIA: \"+lse.getDiaSemana());\n });\n }",
"public static Lista getLista(String hilera) {\r\n\t\tif (hilera.equals(\"basica\")) {\r\n\t\t\tint cont = 0;\r\n\t\t\tint xPos = 40;\r\n\t\t\tint yPos = 475;\r\n\t\t\tListaSimple<Enemigo> listaEnemigosBasica = new ListaSimple<Enemigo>();\r\n\t\t\twhile (cont < 10) {\r\n\t\t\t\tlistaEnemigosBasica.agregarAlFinal(new Enemigo(xPos, yPos, 1, \"enemySprite.png\", \"enemy\"));\r\n\t\t\t\txPos += 75;\r\n\t\t\t\tcont++;\r\n\t\t\t}\r\n\t\t\treturn listaEnemigosBasica;\r\n\r\n\t\t} else if (hilera.equals(\"claseA\")) {\r\n\t\t\tListaSimple<Enemigo> listaEnemigosClaseA = new ListaSimple<Enemigo>();\r\n\t\t\tint cont = 0;\r\n\t\t\tint xPos = 40;\r\n\t\t\tint yPos = 475;\r\n\t\t\tint random = (int) (Math.random() * 10);\r\n\t\t\twhile (cont < 10) {\r\n\t\t\t\tif (cont == random) {\r\n\t\t\t\t\tlistaEnemigosClaseA.agregarAlFinal(\r\n\t\t\t\t\t\t\tnew Enemigo(xPos, yPos, (int) (Math.random() * 4 + 1), \"boss2.png\", \"boss\"));\r\n\t\t\t\t\tcont++;\r\n\t\t\t\t\txPos += 75;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlistaEnemigosClaseA.agregarAlFinal(new Enemigo(xPos, yPos, 1, \"enemySprite.png\", \"enemy\"));\r\n\t\t\t\t\tcont++;\r\n\t\t\t\t\txPos += 75;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn listaEnemigosClaseA;\r\n\t\t} else if (hilera.equals(\"claseB\")) {\r\n\t\t\tListaDoble<Enemigo> listaEnemigosClaseB = new ListaDoble<Enemigo>();\r\n\t\t\tint cont = 0;\r\n\t\t\tint xPos = 40;\r\n\t\t\tint yPos = 475;\r\n\t\t\tint random = (int) (Math.random() * 10);\r\n\t\t\twhile (cont < 10) {\r\n\t\t\t\tif (cont == random) {\r\n\t\t\t\t\tint x = (int) (Math.random() * 4 + 1);\r\n\t\t\t\t\tlistaEnemigosClaseB.agregarAlFinal(new Enemigo(xPos, yPos, x, \"boss2.png\", \"boss\"));\r\n\t\t\t\t\tcont++;\r\n\t\t\t\t\txPos += 75;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlistaEnemigosClaseB.agregarAlFinal(new Enemigo(xPos, yPos, 1, \"enemySprite.png\", \"enemy\"));\r\n\t\t\t\t\tcont++;\r\n\t\t\t\t\txPos += 75;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn listaEnemigosClaseB;\r\n\t\t} else if (hilera.equals(\"claseC\")) {\r\n\t\t\tListaCircular<Enemigo> listaEnemigosClaseC = new ListaCircular<Enemigo>();\r\n\t\t\tint cont = 0;\r\n\t\t\tint xPos = 40;\r\n\t\t\tint yPos = 475;\r\n\t\t\tint random = (int) (Math.random() * 10);\r\n\t\t\twhile (cont < 10) {\r\n\t\t\t\tif (cont == random) {\r\n\t\t\t\t\tlistaEnemigosClaseC.agregarAlFinal(\r\n\t\t\t\t\t\t\tnew Enemigo(xPos, yPos, (int) (Math.random() * 4 + 2), \"boss2.png\", \"boss\"));\r\n\t\t\t\t\tcont++;\r\n\t\t\t\t\txPos += 75;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlistaEnemigosClaseC.agregarAlFinal(new Enemigo(xPos, yPos, 1, \"enemySprite.png\", \"enemy\"));\r\n\t\t\t\t\tcont++;\r\n\t\t\t\t\txPos += 75;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn listaEnemigosClaseC;\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"private void caricaLista() {\n /** variabili e costanti locali di lavoro */\n ArrayList unaLista = null;\n CampoDati unCampoDati = null;\n CDBLinkato unCampoDBLinkato = null;\n //@todo da cancellare\n try { // prova ad eseguire il codice\n /* recupera il campo DB specializzato */\n unCampoDBLinkato = (CDBLinkato)unCampoParente.getCampoDB();\n\n /* recupera la lista dal campo DB */\n unaLista = unCampoDBLinkato.caricaLista();\n\n /* recupera il campo dati */\n unCampoDati = unCampoParente.getCampoDati();\n\n /* registra i valori nel modello dei dati del campo */\n if (unaLista != null) {\n unCampoDati.setValoriInterni(unaLista);\n// unCampoDatiElenco.regolaElementiAggiuntivi();\n } /* fine del blocco if */\n\n } catch (Exception unErrore) { // intercetta l'errore\n /* mostra il messaggio di errore */\n Errore.crea(unErrore);\n } /* fine del blocco try-catch */\n\n }",
"public void popular(){\n DAO dao = new DAO();\n modelo.setNumRows(0);\n\n for(Manuais m: dao.selecTudoManuaisVenda()){\n modelo.addRow(new Object[]{m.getId(),m.getNome(),m.getClasse(),m.getEditora(),m.getPreco()+\".00 MZN\"});\n \n }\n }",
"public void printTagihanTamu() {\n for (Tagihan t: daftarTagihan.values()) {\n System.out.println(\"Tamu:\"+t.tamu.nama);\n System.out.println(\"Tagihan:\"+t.hitungSemuaTagihan());\n }\n }",
"public Kupcek() {\r\n kup = new ArrayList<Karta>();\r\n\r\n for (int i = 0; i < 4; i++) { //gremo preko vseh simbolo kart\r\n for (int j = 0; j < 13; j++) { //in njihovih rangov\r\n if (j == 0) { //prvi indeks je vedno as torej mu damo vrednost 11\r\n Karta card = new Karta(i, j, 11); //ustvarimo nasega asa z i-tim simbolom in j-tim rangom\r\n kup.add(card); //karto dodamo v kupcek\r\n }\r\n else if (j >= 10) { //podobno storimo za karte Fant, Kraljica, Kralj in jim dodamo vrednost 10\r\n Karta card = new Karta(i, j, 10);\r\n kup.add(card);\r\n }\r\n else { //za vse preostale karte povecamo vrednost za +1 indeksa zaradi poteka kart 2[1] 3[2] etc.\r\n Karta card = new Karta(i, j, j+1);\r\n kup.add(card);\r\n }\r\n }\r\n }\r\n }",
"private void skrivOversikt() {\n System.out.println(\"\\n- Leger -\\n\");\n for (Lege lege : leger){\n System.out.println(lege);\n }\n\n System.out.println(\"\\n- Pasienter -\");\n for (Pasient pasient : pasienter){\n System.out.println(\"\\n\" + pasient);\n }\n\n System.out.println(\"\\n- Legemidler -\");\n for (Legemiddel legemiddel : legemidler){\n System.out.println(\"\\n\" + legemiddel);\n }\n\n System.out.println(\"\\n- Resepter -\");\n for (Resept resept : resepter){\n System.out.println(\"\\n\" + resept);\n }\n }",
"public void obrniListu() {\n if (prvi != null && prvi.veza != null) {\n Element preth = null;\n Element tek = prvi;\n \n while (tek != null) {\n Element sled = tek.veza;\n \n tek.veza = preth;\n preth = tek;\n tek = sled;\n }\n prvi = preth;\n }\n }",
"public void createListData()\n {\n List<SinhVien> listSinhvien=new ArrayList<>();\n for(int i=0;i<10;i++){\n SinhVien sv=new SinhVien(i+\"\",\"123\",\"0123\",i+1.0f);\n listSinhvien.add(sv);\n }\n PresenterImplDangXuat.onLoadSucess(listSinhvien);\n }",
"public Vector addJumMhsYgSudahHeregistrasi(Vector vListInfoKelas) {\n\n \t/*\n \t * unreusable cuma adhock fix\n \t */\n \tif(vListInfoKelas!=null && vListInfoKelas.size()>0) {\n \t\t/*\n\t\t\t * tambah jumlah mhs perkelas ke dalam brs;\n\t\t\t */\n\t\t\tListIterator li = vListInfoKelas.listIterator();\n \t\ttry {\n \t\t\tContext initContext = new InitialContext();\n \t\t\tContext envContext = (Context)initContext.lookup(\"java:/comp/env\");\n \t\t\tds = (DataSource)envContext.lookup(\"jdbc\"+beans.setting.Constants.getDbschema());\n \t\t\tcon = ds.getConnection();\n \t\t\tstmt = con.prepareStatement(\"select NPMHS from DAFTAR_ULANG where THSMS=? and NPMHS=?\");\n \t\t\twhile(li.hasNext()) {\n \t\t\t\tString brs = (String)li.next();\n \t\t\t\t//System.out.println(\"brs=\"+brs);\n \t\t\t\tStringTokenizer st = new StringTokenizer(brs,\"$\");\n \t\t\tString kodeGabungan=st.nextToken();\n \t\t\tString idkmk1=st.nextToken();\n \t\t\tString idkur1=st.nextToken();\n \t\t\tString kdkmk1=st.nextToken();\n \t\t\tString nakmk1=st.nextToken();\n \t\t\tString thsms1=st.nextToken();\n \t\t\tString kdpst1=st.nextToken();\n \t\t\tString shift1=st.nextToken();\n \t\t\tString norutKlsPll1=st.nextToken();\n \t\t\tString initNpmInput1=st.nextToken();\n \t\t\tString latestNpmUpdate1=st.nextToken();\n \t\t\tString latesStatusInfo1=st.nextToken();\n \t\t\tString currAvailStatus1=st.nextToken();\n \t\t\tString locked1=st.nextToken();\n \t\t\tString npmdos1=st.nextToken();\n \t\t\tString nodos1=st.nextToken();\n \t\t\tString npmasdos1=st.nextToken();\n \t\t\tString noasdos1=st.nextToken();\n \t\t\tString canceled1=st.nextToken();\n \t\t\tString kodeKelas1=st.nextToken();\n \t\t\tString kodeRuang1=st.nextToken();\n \t\t\tString kodeGedung1=st.nextToken();\n \t\t\tString kodeKampus1=st.nextToken();\n \t\t\tString tknHrTime1=st.nextToken();\n \t\t\tString nmdos1=st.nextToken();\n \t\t\tString nmasdos1=st.nextToken();\n \t\t\tString enrolled1=st.nextToken();\n \t\t\tString maxEnrolled1=st.nextToken();\n \t\t\tString minEnrolled1=st.nextToken();\n \t\t\tString subKeterKdkmk1=st.nextToken();\n \t\t\tString initReqTime1=st.nextToken();\n \t\t\tString tknNpmApr1=st.nextToken();\n \t\t\tString tknAprTime1=st.nextToken();\n \t\t\tString targetTtmhs1=st.nextToken();\n \t\t\tString passed1=st.nextToken();\n \t\t\t\tString rejected1=st.nextToken();\n \t\t\t\tString konsen1=st.nextToken();\n \t\t\t\tString nmpst1=st.nextToken();\n \t\t\t\tString listNpm=st.nextToken();\n \t\t\t\tStringTokenizer st1 = new StringTokenizer(listNpm,\",\");\n \t\t\t\tString listNpmHer = null;\n \t\t\t\twhile(st1.hasMoreTokens()) {\n \t\t\t\t\tString npm = st1.nextToken();\n \t\t\t\t\tstmt.setString(1,thsms1);\n \t\t\t\t\tstmt.setString(2,npm);\n \t\t\t\t\trs = stmt.executeQuery();\n \t\t\t\t\t\n \t\t\t\t\tif(rs.next()) {\n \t\t\t\t\t\tif(listNpmHer==null) {\n \t\t\t\t\t\t\tlistNpmHer = \"\";\n \t\t\t\t\t\t}\n \t\t\t\t\t\tlistNpmHer = listNpmHer+\",\"+npm;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tif(listNpmHer==null) {\n \t\t\t\t\tlistNpmHer = \"null\";\n \t\t\t\t}\n \t\t\t\tli.set(brs+\"$\"+listNpmHer);\n \t\t\t\t//System.out.println(\"listNpmHer=\"+listNpmHer);\n \t\t\t\t//System.out.println(thsms1+\"$\"+kdpst1+\"$\"+kdkmk1);\n \t\t\t\t//System.out.println(brs+\"$\"+i);\n \t\t\t}\n \t\t\t\n \t\t}\n \t\tcatch (NamingException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tcatch (SQLException ex) {\n \t\t\tex.printStackTrace();\n \t\t} \n \t\tfinally {\n \t\t\tif (rs!=null) try { rs.close(); } catch (Exception ignore){}\n \t\t\tif (stmt!=null) try { stmt.close(); } catch (Exception ignore){}\n \t\t\tif (con!=null) try { con.close();} catch (Exception ignore){}\n \t\t}\n \t}\n \treturn vListInfoKelas;\n }",
"public void MostrarListaInicioFin() {\n if(!estVacia()){\n String datos=\"<=>\";\n NodoDoble current=inicio;\n while(current!=null){\n datos += \"[\"+current.dato+\"]<=>\";\n current = current.siguiente;\n }\n JOptionPane.showMessageDialog(null, datos, \"Mostrando Lista de inicio a Fin\",JOptionPane.INFORMATION_MESSAGE);\n }\n }",
"public List<Listas_de_las_Solicitudes> Mostrar_las_peticiones_que_han_llegado_al_Usuario_Administrador(int cedula) {\n\t\t//paso3: Obtener el listado de peticiones realizadas por el usuario\n\t\tEntityManagerFactory entitymanagerfactory = Persistence.createEntityManagerFactory(\"LeyTransparencia\");\n\t\tEntityManager entitymanager = entitymanagerfactory.createEntityManager();\n\t\tentitymanager.getEntityManagerFactory().getCache().evictAll();\n\t\tQuery consulta4=entitymanager.createQuery(\"SELECT g FROM Gestionador g WHERE g.cedulaGestionador =\"+cedula);\n\t\tGestionador Gestionador=(Gestionador) consulta4.getSingleResult();\n\t\t//paso4: Obtener por peticion la id, fecha y el estado\n\t\tList<Peticion> peticion=Gestionador.getEmpresa().getPeticions();\n\t\tList<Listas_de_las_Solicitudes> peticion2 = new ArrayList();\n\t\t//paso5: buscar el area de cada peticion\n\t\tfor(int i=0;i<peticion.size();i++){\n\t\t\tString almcena=\"\";\n\t\t\tString sarea=\"no posee\";\n\t\t\tBufferedReader in;\n\t\t\ttry{\n\t\t\t\tin = new BufferedReader(new InputStreamReader(new FileInputStream(\"C:/area/area\"+String.valueOf(peticion.get(i).getIdPeticion())+\".txt\"), \"utf-8\"));\n\t\t\t\ttry {\n\t\t\t\t\twhile((sarea=in.readLine())!=null){\n\t\t\t\t\t\tint s=0;\n\t\t\t\t\t\talmcena=sarea;\n\t\t\t\t\t}\n\t\t\t\t\tin.close();\n\t\t\t\t\tSystem.out.println(almcena);\n\t\t\t\t} catch (IOException 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\t\n\t\t\t\n\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\t//paso6: Mostrar un listado de peticiones observando el id, la fecha de realizacion de la peticion, hora de realizacion de la peticion, y el estado actual de la peticion\n\t\t\tListas_de_las_Solicitudes agregar=new Listas_de_las_Solicitudes();\n\t\t\tagregar.setId(String.valueOf(peticion.get(i).getIdPeticion()));\n\t\t\tagregar.setFechaPeticion(peticion.get(i).getFechaPeticion());\n\t\t\tagregar.setNombreestado(peticion.get(i).getEstado().getTipoEstado());\n\t\t\tagregar.setArea(almcena);\n\t\t\tpeticion2.add(agregar);\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"el usuario existe\");\n\t\treturn peticion2;\n\t\t//aun no se\n\t}",
"@Override\r\n\tpublic List<Object> consultarVehiculos() {\r\n\t\t\r\n\t\tFormat formato = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\t\t\r\n\t\treturn AdminEstacionamientoImpl.getParqueadero().stream().map(\r\n\t\t\t\t temp -> {HashMap<String, String> lista = new HashMap<String, String>(); \r\n\t\t\t\t lista.put( \"placa\", temp.getVehiculo().getPlaca() );\r\n\t\t\t\t lista.put( \"tipo\", temp.getVehiculo().getTipo() );\r\n\t\t\t\t lista.put( \"fechaInicio\", formato.format( temp.getFechaInicio() ) );\r\n\r\n\t\t\t\t return lista;\r\n\t\t\t\t }\r\n\t\t\t\t).collect(Collectors.toList());\r\n\t}",
"public static List<Object> czytaniePogody(){\r\n Object[] elementyPogody = new Object[3];\r\n elementyPogody[0]=0;\r\n elementyPogody[1]=0;\r\n elementyPogody[2]=null;\r\n String line;\r\n OdczytZPliku plik = new OdczytZPliku();\r\n InputStream zawartosc = plik.pobierzZPliku(\"bazapogod.txt\");\r\n try (InputStreamReader odczyt = new InputStreamReader(zawartosc, StandardCharsets.UTF_8);\r\n BufferedReader czytaj = new BufferedReader(odczyt)) {\r\n String numerWStringu = String.valueOf(elementyPogody[0] = (int) (Math.random() * 4));\r\n while ((line = czytaj.readLine()) != null){\r\n if (line.equals(numerWStringu)){\r\n elementyPogody[1] = Integer.parseInt(czytaj.readLine());\r\n elementyPogody[2] = czytaj.readLine();\r\n System.out.println(\"\\nPogoda na dzis: \" + elementyPogody[2]);\r\n break;\r\n }\r\n else {\r\n for (int i = 0; i < 2; i++) {\r\n line = czytaj.readLine();\r\n }\r\n }\r\n }\r\n } catch (Exception ignored) {\r\n }\r\n return List.of(elementyPogody);\r\n }",
"public ArreiList() {\n koko = 0;\n }",
"public void ordenaPontos(){\r\n\t\tloja.ordenaPontos();\r\n\t}",
"private String creaElenco() {\n String testoTabella ;\n String riga = CostBio.VUOTO;\n ArrayList listaPagine = new ArrayList();\n ArrayList listaRiga;\n HashMap mappaTavola = new HashMap();\n String cognomeText;\n int num;\n int taglioPagine = Pref.getInt(CostBio.TAGLIO_COGNOMI_PAGINA);\n String tag = \"Persone di cognome \";\n ArrayList titoli = new ArrayList();\n titoli.add(LibWiki.setBold(\"Cognome\"));\n titoli.add(LibWiki.setBold(\"Voci\"));\n\n for (Map.Entry<String, Integer> mappa: mappaCognomi.entrySet()) {\n\n cognomeText = mappa.getKey();\n num = mappa.getValue();\n if (num >= taglioPagine) {\n cognomeText = tag + cognomeText + CostBio.PIPE + cognomeText;\n cognomeText = LibWiki.setQuadre(cognomeText);\n cognomeText = LibWiki.setBold(cognomeText);\n }// end of if cycle\n\n listaRiga = new ArrayList();\n listaRiga.add(cognomeText);\n listaRiga.add(num);\n listaPagine.add(listaRiga);\n\n }// end of for cycle\n mappaTavola.put(Cost.KEY_MAPPA_SORTABLE_BOOLEAN, true);\n mappaTavola.put(Cost.KEY_MAPPA_TITOLI, titoli);\n mappaTavola.put(Cost.KEY_MAPPA_RIGHE_LISTA, listaPagine);\n testoTabella = LibWiki.creaTable(mappaTavola);\n\n return testoTabella;\n }",
"public List<String> Mutfakkullanici(int masa_no) throws SQLException {\n ArrayList<Integer> kull = new ArrayList<>();\r\n ArrayList<String> kullad = new ArrayList<>();\r\n sqlsorgular.baglanti vb = new baglanti();\r\n vb.baglan();\r\n try {\r\n\r\n String sorgu = \"select kullanici_no from ilisk_masa where masa_no=\" + masa_no + \";\";\r\n ps = vb.con.prepareStatement(sorgu);\r\n rs = ps.executeQuery(sorgu);\r\n\r\n while (rs.next()) {\r\n kull.add(rs.getInt(1));\r\n }\r\n System.out.println(\"mutfak kullanici girdi\");\r\n System.out.println(kull);\r\n } catch (Exception e) {\r\n System.out.println(\"Mutfak kullanicisini alirken hata olustu\");\r\n return null;\r\n }\r\n\r\n for (Integer kullanici_no : kull) {\r\n boolean durum = false;\r\n String deger = \"\";\r\n String sorgu2 = \"select kullanici_adi from kullanicilar where kullanici_no=\" + kullanici_no + \" and durum='MUTFAK';\";\r\n try {\r\n ps = vb.con.prepareStatement(sorgu2);\r\n rs1 = ps.executeQuery(sorgu2);\r\n while (rs1.next()) {\r\n deger = rs1.getString(1);\r\n\r\n if (deger != null) {\r\n kullad.add(deger);\r\n System.out.println(\"null\");\r\n System.out.println(deger);\r\n }\r\n System.out.println(kullad);\r\n durum = true;\r\n }\r\n } catch (Exception e) {\r\n durum = false;\r\n }\r\n\r\n System.out.println(kullad);\r\n\r\n }\r\n vb.con.close();\r\n return kullad;\r\n\r\n }",
"public void listar(){\n if (!esVacia()) {\n // Crea una copia de la lista.\n NodoEmpleado aux = inicio;\n // Posicion de los elementos de la lista.\n int i = 0;\n System.out.print(\"-> \");\n // Recorre la lista hasta llegar nuevamente al incio de la lista.\n do{\n // Imprime en pantalla el valor del nodo.\n System.out.print(i + \".[ \" + aux.getEmpleado() + \" ]\" + \" -> \");\n // Avanza al siguiente nodo.\n aux = aux.getSiguiente();\n // Incrementa el contador de la posi�n.\n i++;\n }while(aux != inicio);\n }\n }",
"public void menuListados() {\n\t\tSystem.out.println(\"MENU LISTADOS\");\n\t\tSystem.out.println(\"1. Personas con la misma actividad\");\n\t\tSystem.out.println(\"2. Cantidad de personas con la misma actividad\");\n\t\tSystem.out.println(\"0. Salir\");\n\t}",
"private void ListDatei () {\n\n DateiMemoDbSource dateiMemoDbSource = new DateiMemoDbSource();\n\n List<DateiMemo> dateiMemoList= dateiMemoDbSource.getAllDateiMemos();\n Log.d(LOG_TAG,\"=============================================================\");\n\n for (int j = 0; j < dateiMemoList.size(); j++){\n String output = \"Node_ID: \"+ dateiMemoList.get(j).getUid() +\n //\"\\n Status: \"+ dateiMemoList.get(j).isChecked() +\n \"\\n Corner Top Right X: \"+ dateiMemoList.get(j).getCornerTopRightX() +\n \"\\n Corner Top Right Y: \"+ dateiMemoList.get(j).getCornerTopRightY() +\n \"\\n Corner Top Left X: \"+ dateiMemoList.get(j).getCornerTopLeftX() +\n \"\\n Corner Top Left Y: \"+ dateiMemoList.get(j).getCornerTopLeftY() +\n \"\\n Corner Bottom Right X: \"+ dateiMemoList.get(j).getCornerBottomRightX() +\n \"\\n Corner Bottom Right Y: \"+ dateiMemoList.get(j).getCornerBottomRightY() +\n \"\\n Corner Bottom Left X: \"+ dateiMemoList.get(j).getCornerBottomLeftX() +\n \"\\n Corner Bottom Left Y: \"+ dateiMemoList.get(j).getCornerBottomLeftY() +\n \"\\n Punkt X: \"+ dateiMemoList.get(j).getPunktX() +\n \"\\n Punkt Y: \"+ dateiMemoList.get(j).getPunktY() +\n \"\\n IP: \"+ dateiMemoList.get(j).getIP() +\n \"\\n Count Peers: \"+ dateiMemoList.get(j).getCountPeers() ;\n\n\n Log.d(LOG_TAG, output);\n\n\n }\n Log.d(LOG_TAG,\"=============================================================\");\n }",
"public List<SiteNoticia> listarPorData() {\n List<SiteNoticia> result = new ArrayList<SiteNoticia>();\n EntityManager em1 = getEM();\n em1.getTransaction().begin();\n CriteriaBuilder builder = em1.getCriteriaBuilder();\n CriteriaQuery query = builder.createQuery(SiteNoticia.class);\n //EntityType type = em1.getMetamodel().entity(SiteNoticia.class);\n Root root = query.from(SiteNoticia.class);\n query.orderBy(builder.desc(root.get(\"hora2\")));\n result = em1.createQuery(query).getResultList();\n em1.close();\n return result;\n }",
"public void MostrarListafINInicio() {\n if(!estVacia()){\n String datos=\"<=>\";\n NodoDoble current=fin;\n while(current!=null){\n datos += \"[\"+current.dato+\"]<=>\";\n current = current.anterior;\n }\n JOptionPane.showMessageDialog(null, datos, \"Mostrando Lista de inicio a Fin\",JOptionPane.INFORMATION_MESSAGE);\n }\n }",
"public List<Vendedor> listarVendedor();",
"public void tulostaKomennot() {\n this.io.tulostaTeksti(\"Komennot: \");\n for (int i = 1; i <= this.komennot.keySet().size(); i++) {\n this.io.tulostaTeksti(this.komennot.get(i).toString());\n }\n this.io.tulostaTeksti(\"\");\n }",
"@Test\n void mostraTutti() {\n EAMese[] matrice = EAMese.values();\n assertNotNull(matrice);\n assertEquals(12, matrice.length);\n\n System.out.println();\n String sep = \" - \";\n int k=0;\n for (EAMese mese : matrice) {\n System.out.println(++k+sep+mese.getLungo() + sep + mese.getBreve() + sep + mese.getGiorni());\n }// end of for cycle\n\n }",
"public Drakkar(){\r\n\t\tanguilas=m;\r\n\t}",
"public List<TonKho> findTonkhoByDmThuocMaso(Integer dmtMaso) {\n List<TonKho> result = null;\n try {\n Query q = getEm().createQuery(\"Select Distinct tk from TonKho tk Where tk.dmthuocMaso.dmthuocMaso = :dmthuocMaso \");\n q.setParameter(\"dmthuocMaso\", dmtMaso);\n result = q.getResultList();\n } catch (Exception ex) {\n System.out.println(\"Error: \" + ex.toString());\n }\n //System.out.println(\"End findTonkhoByDmThuocMaso(String dmtMa method\");\n return result;\n }",
"public List<KodtvaDao> getKoder();",
"List<ParqueaderoEntidad> listar();",
"public static List getAllNames() {\n List polovniautomobili = new ArrayList<>();\n try {\n CONNECTION = DriverManager.getConnection(URL, USERNAME, PASSWORD);\n String query = \"SELECT naziv FROM polovni\";\n try (PreparedStatement ps = CONNECTION.prepareStatement(query)) {\n ResultSet result = ps.executeQuery();\n while (result.next()) {\n String naziv = result.getString(\"naziv\");\n polovniautomobili.add(naziv);\n\n }\n\n ps.close();\n CONNECTION.close();\n }\n CONNECTION.close();\n } catch (SQLException ex) {\n Logger.getLogger(Register.class.getName()).log(Level.SEVERE, null, ex);\n }\n return polovniautomobili;\n }",
"public static void mostrarVehiculos() {\n for (Vehiculo elemento : vehiculos) {\n System.out.println(elemento);\n }\n\t}",
"public List<Long> getAlleKontonummern() {\n return new LinkedList<>(kontoMap.keySet());\n }",
"public static void llenarSoriana(){\r\n Producto naranja1 = new Producto (\"naranja\", \"el huertito\", 25, 0);\r\n Nodo<Producto> nTemp1 = new Nodo(naranja1);\r\n listaSoriana.agregarNodo(nTemp1);\r\n \r\n Producto naranja2 = new Producto (\"naranja\", \"el ranchito\", 34, 0);\r\n Nodo<Producto> nTemp2 = new Nodo (naranja2);\r\n listaSoriana.agregarNodo(nTemp2);\r\n \r\n Producto manzana3 = new Producto (\"manzana\", \"el rancho de don chuy\", 24, 0);\r\n Nodo<Producto> nTemp3 = new Nodo (manzana3);\r\n listaSoriana.agregarNodo(nTemp3);\r\n \r\n Producto manzana4 = new Producto (\"manzana\", \"la costeña\", 15, 0);\r\n Nodo<Producto> nTemp4 = new Nodo(manzana4);\r\n listaSoriana.agregarNodo(nTemp4);\r\n \r\n Producto platano5 = new Producto (\"platano\", \"el Huertito\", 26, 0);\r\n Nodo<Producto> nTemp5 = new Nodo (platano5);\r\n listaSoriana.agregarNodo(nTemp5);\r\n \r\n Producto platano6 = new Producto (\"platano\", \"granjita dorada\", 36, 0);\r\n Nodo<Producto> nTemp6 = new Nodo (platano6);\r\n listaSoriana.agregarNodo (nTemp6);\r\n \r\n Producto pera7 = new Producto (\"pera\", \"el rancho de don chuy\", 38, 0);\r\n Nodo<Producto> nTemp7 = new Nodo (pera7);\r\n listaSoriana.agregarNodo(nTemp7);\r\n \r\n Producto pera8 = new Producto (\"pera\", \"la costeña\", 8,0);\r\n Nodo<Producto> nTemp8 = new Nodo (pera8);\r\n listaSoriana.agregarNodo(nTemp8);\r\n \r\n Producto durazno9 = new Producto (\"durazno\", \"el huertito\", 12.50, 0);\r\n Nodo<Producto> nTemp9 = new Nodo (durazno9);\r\n listaSoriana.agregarNodo(nTemp9);\r\n \r\n Producto fresa10 = new Producto (\"fresa\", \"el rancho de don chuy\", 35.99,0);\r\n Nodo<Producto> nTemp10 = new Nodo (fresa10);\r\n listaSoriana.agregarNodo(nTemp10);\r\n \r\n Producto fresa11 = new Producto (\"fresa\", \"grajita dorada\", 29.99,0);\r\n Nodo<Producto> nTemp11 = new Nodo (fresa11);\r\n listaSoriana.agregarNodo(nTemp11);\r\n \r\n Producto melon12 = new Producto (\"melon\", \"la costeña\", 18.50, 0);\r\n Nodo<Producto> nTemp12 = new Nodo (melon12);\r\n listaSoriana.agregarNodo(nTemp12);\r\n \r\n Producto melon13 = new Producto (\"melon\", \"el huertito\", 8.50, 0);\r\n Nodo<Producto> nTemp13 = new Nodo (melon13);\r\n listaSoriana.agregarNodo(nTemp13);\r\n \r\n Producto elote14 = new Producto (\"elote\", \"el ranchito\", 6, 0);\r\n Nodo<Producto> nTemp14 = new Nodo (elote14);\r\n listaSoriana.agregarNodo(nTemp14);\r\n \r\n Producto elote15 = new Producto (\"elote\", \"moctezuma\", 12, 0);\r\n Nodo<Producto> nTemp15 = new Nodo (elote15);\r\n listaSoriana.agregarNodo(nTemp15);\r\n \r\n Producto aguacate16 = new Producto (\"aguacate\", \"la costeña\", 35, 0);\r\n Nodo<Producto> nTemp16 = new Nodo (aguacate16);\r\n listaSoriana.agregarNodo(nTemp16);\r\n \r\n Producto cebolla17 = new Producto (\"cebolla\", \"granjita dorada\", 8.99, 0);\r\n Nodo<Producto> nTemp17 = new Nodo (cebolla17);\r\n listaSoriana.agregarNodo(nTemp17);\r\n \r\n Producto tomate18 = new Producto (\"tomate\", \"el costeñito feliz\", 10.50, 0);\r\n Nodo<Producto> nTemp18 = new Nodo (tomate18);\r\n listaSoriana.agregarNodo(nTemp18);\r\n \r\n Producto tomate19 = new Producto (\"tomate\", \"el ranchito\", 8.99, 0);\r\n Nodo<Producto> nTemp19 = new Nodo (tomate19);\r\n listaSoriana.agregarNodo(nTemp19);\r\n \r\n Producto limon20 = new Producto (\"limon\", \"la costeña\", 3.50, 0);\r\n Nodo<Producto> nTemp20 = new Nodo (limon20);\r\n listaSoriana.agregarNodo(nTemp20);\r\n \r\n Producto limon21 = new Producto (\"limon\", \"el ranchito\", 10.99, 0);\r\n Nodo<Producto> nTemp21 = new Nodo (limon21);\r\n listaSoriana.agregarNodo(nTemp21);\r\n \r\n Producto papas22 = new Producto (\"papas\", \"la costeña\", 11, 0);\r\n Nodo<Producto> nTemp22 = new Nodo(papas22);\r\n listaSoriana.agregarNodo(nTemp22);\r\n \r\n Producto papas23 = new Producto (\"papas\", \"granjita dorada\", 4.99, 0);\r\n Nodo<Producto> nTemp23 = new Nodo(papas23);\r\n listaSoriana.agregarNodo(nTemp23);\r\n \r\n Producto chile24 = new Producto (\"chile\", \"el rancho de don chuy\", 2.99, 0);\r\n Nodo<Producto> nTemp24 = new Nodo (chile24);\r\n listaSoriana.agregarNodo(nTemp24);\r\n \r\n Producto chile25 = new Producto (\"chile\",\"la costeña\", 12, 0);\r\n Nodo<Producto> nTemp25 = new Nodo (chile25);\r\n listaSoriana.agregarNodo(nTemp25);\r\n \r\n Producto jamon26 = new Producto (\"jamon\",\"fud\", 25, 1);\r\n Nodo<Producto> nTemp26 = new Nodo(jamon26);\r\n listaSoriana.agregarNodo(nTemp26);\r\n \r\n Producto jamon27 = new Producto(\"jamon\", \"kir\", 13.99, 1);\r\n Nodo<Producto> nTemp27 = new Nodo(jamon27);\r\n listaSoriana.agregarNodo(nTemp27);\r\n \r\n Producto peperoni28 = new Producto (\"peperoni28\", \"fud\", 32, 1);\r\n Nodo<Producto> nTemp28 = new Nodo (peperoni28);\r\n listaSoriana.agregarNodo(nTemp28);\r\n \r\n Producto salchicha29 = new Producto (\"salchicha\", \" san rafael\", 23.99, 1);\r\n Nodo<Producto> nTemp29 = new Nodo (salchicha29);\r\n listaSoriana.agregarNodo(nTemp29); \r\n \r\n Producto huevos30 = new Producto (\"huevos\", \"san rafael\", 30.99, 1);\r\n Nodo<Producto> nTemp30 = new Nodo (huevos30);\r\n listaSoriana.agregarNodo(nTemp30);\r\n \r\n Producto chuletas31 = new Producto (\"chuletas\", \"la res dorada\", 55, 1);\r\n Nodo<Producto> nTemp31 = new Nodo (chuletas31);\r\n listaSoriana.agregarNodo(nTemp31);\r\n \r\n Producto carnemolida32 = new Producto (\"carne molida\", \"san rafael\", 34, 1);\r\n Nodo<Producto> nTemp32 = new Nodo (carnemolida32);\r\n listaSoriana.agregarNodo(nTemp32);\r\n \r\n Producto carnemolida33 = new Producto (\"carne molida\", \"la res dorada\", 32.99, 1);\r\n Nodo<Producto> nTemp33 = new Nodo (carnemolida33);\r\n listaSoriana.agregarNodo(nTemp33);\r\n \r\n Producto pollo34 = new Producto (\"pollo\", \"pollito feliz\", 38, 1);\r\n Nodo<Producto> nTemp34 = new Nodo (pollo34);\r\n listaSoriana.agregarNodo(nTemp34);\r\n \r\n Producto pescado35 = new Producto (\"pescado\", \"pescadito\", 32.99, 1);\r\n Nodo<Producto> nTemp35 = new Nodo (pescado35);\r\n listaSoriana.agregarNodo(nTemp35);\r\n \r\n Producto quesolaurel36 = new Producto (\"queso\", \"laurel\", 23.50, 1);\r\n Nodo<Producto> nTemp36 = new Nodo (quesolaurel36);\r\n listaSoriana.agregarNodo(nTemp36);\r\n \r\n Producto leche37 = new Producto (\"leche\", \"nutrileche\", 12.99, 1);\r\n Nodo<Producto> nTemp37 = new Nodo (leche37);\r\n listaSoriana.agregarNodo(nTemp37);\r\n \r\n Producto lechedeslactosada38 = new Producto (\"leche deslactosada\", \"lala\", 17.50, 1);\r\n Nodo<Producto> nTemp38 = new Nodo (lechedeslactosada38);\r\n listaSoriana.agregarNodo(nTemp38);\r\n \r\n Producto panblanco39 = new Producto (\"pan blanco\", \"bombo\", 23.99, 2);\r\n Nodo<Producto> nTemp39 = new Nodo (panblanco39);\r\n listaSoriana.agregarNodo(nTemp39);\r\n \r\n Producto atun40 = new Producto (\"atun\", \"la aleta feliz\", 12, 2);\r\n Nodo<Producto> nTemp40 = new Nodo (atun40);\r\n listaSoriana.agregarNodo(nTemp40);\r\n \r\n Producto atun41 = new Producto (\"atun\", \"el barco\", 10.99, 2);\r\n Nodo<Producto> nTemp41 = new Nodo (atun41);\r\n listaSoriana.agregarNodo(nTemp41);\r\n \r\n Producto arroz42 = new Producto (\"arroz\", \"mi marca\", 12.50, 2);\r\n Nodo<Producto> nTemp42 = new Nodo (arroz42);\r\n listaSoriana.agregarNodo(nTemp42);\r\n \r\n Producto arroz43 = new Producto (\"arroz\", \"soriana\", 9.99, 2);\r\n Nodo<Producto> nTemp43 = new Nodo (arroz43);\r\n listaSoriana.agregarNodo(nTemp43);\r\n \r\n Producto frijol44 = new Producto (\"frijol\", \"mi marca\", 10.99, 2);\r\n Nodo<Producto> nTemp44 = new Nodo (frijol44);\r\n listaSoriana.agregarNodo(nTemp44);\r\n \r\n Producto frijol45 = new Producto (\"frijol\", \"soriana\", 15.99, 2);\r\n Nodo<Producto> nTemp45 = new Nodo (frijol45);\r\n listaSoriana.agregarNodo(nTemp45);\r\n \r\n Producto azucar46 = new Producto (\"azucar\", \"mi marca\", 12.50, 2);\r\n Nodo<Producto> nTemp46 = new Nodo (azucar46);\r\n listaSoriana.agregarNodo(nTemp46);\r\n \r\n Producto azucar47 = new Producto (\"azucar\", \"zulka\", 15.99, 2);\r\n Nodo<Producto> nTemp47 = new Nodo (azucar47);\r\n listaSoriana.agregarNodo(nTemp47);\r\n \r\n Producto servilletas48 = new Producto (\"servilletas\", \"esponjosas\",10.50, 2);\r\n Nodo<Producto> nTemp48 = new Nodo (servilletas48);\r\n listaSoriana.agregarNodo(nTemp48);\r\n \r\n Producto sal49 = new Producto (\"sal\", \"mar azul\", 3.99, 2);\r\n Nodo<Producto> nTemp49 = new Nodo (sal49);\r\n listaSoriana.agregarNodo(nTemp49);\r\n \r\n Producto aceitedecocina50 = new Producto (\"aceite de cocina\", \"123\", 15.99, 2);\r\n Nodo<Producto> nTemp50 = new Nodo (aceitedecocina50);\r\n listaSoriana.agregarNodo(nTemp50);\r\n \r\n Producto caffe51 = new Producto (\"caffe\", \"nescafe\", 23, 2);\r\n Nodo<Producto> nTemp51 = new Nodo (caffe51);\r\n listaSoriana.agregarNodo(nTemp51);\r\n \r\n Producto puredetomate52 = new Producto (\"pure de tomate\", \" la costeña\", 12.99, 2);\r\n Nodo<Producto> nTemp52 = new Nodo (puredetomate52);\r\n listaSoriana.agregarNodo(nTemp52);\r\n \r\n Producto lentejas53 = new Producto (\"lentejas\", \"la granjita\", 8.99, 2);\r\n Nodo<Producto> nTemp53 = new Nodo (lentejas53);\r\n listaSoriana.agregarNodo(nTemp53);\r\n \r\n Producto zuko54 = new Producto (\"zuko\", \"zuko\", 2.99, 2);\r\n Nodo<Producto> nTemp54 = new Nodo (zuko54);\r\n listaSoriana.agregarNodo(nTemp54);\r\n \r\n Producto champu55 = new Producto (\"champu\", \"loreal\", 32, 3);\r\n Nodo<Producto> nTemp55 = new Nodo (champu55);\r\n listaSoriana.agregarNodo(nTemp55);\r\n \r\n Producto champu56 = new Producto (\"champu\", \"el risueño\", 29.99, 3);\r\n Nodo<Producto> nTemp56 = new Nodo (champu56);\r\n listaSoriana.agregarNodo(nTemp56);\r\n \r\n Producto desodorante57 = new Producto (\"desodorante\", \"nivea\", 23.50, 3);\r\n Nodo<Producto> nTemp57 = new Nodo (desodorante57);\r\n listaSoriana.agregarNodo(nTemp57);\r\n \r\n Producto pastadedientes58 = new Producto(\"pasta de dientes\", \"colgate\", 17.50, 3);\r\n Nodo<Producto> nTemp58 = new Nodo (pastadedientes58);\r\n listaSoriana.agregarNodo(nTemp58);\r\n \r\n Producto pastadedientes59 = new Producto (\"pasta de dientes\", \"el diente blanco\", 29, 3);\r\n Nodo<Producto> nTemp59 = new Nodo (pastadedientes59);\r\n listaSoriana.agregarNodo(nTemp59);\r\n \r\n Producto rastrillos60 = new Producto (\"rastrillos\", \"el filosito\", 33.99, 3);\r\n Nodo<Producto> nTemp60 = new Nodo (rastrillos60);\r\n listaSoriana.agregarNodo(nTemp60);\r\n \r\n Producto rastrillos61 = new Producto (\"rastrillos\", \"barba de oro\", 23.99, 3);\r\n Nodo<Producto> nTemp61 = new Nodo (rastrillos61);\r\n listaSoriana.agregarNodo(nTemp61);\r\n \r\n Producto hilodental62 = new Producto (\"hilo dental\", \"el diente blanco\", 32.99, 3);\r\n Nodo<Producto> nTemp62 = new Nodo (hilodental62);\r\n listaSoriana.agregarNodo(nTemp62);\r\n \r\n Producto cepillodedientes63 = new Producto (\"cepillo de dientes\", \"OBBM\", 17.99, 3);\r\n Nodo<Producto> nTemp63 = new Nodo (cepillodedientes63);\r\n listaSoriana.agregarNodo(nTemp63);\r\n \r\n Producto cloro64 = new Producto (\"cloro\", \"cloralex\", 23.50, 3);\r\n Nodo<Producto> nTemp64 = new Nodo (cloro64);\r\n listaSoriana.agregarNodo(nTemp64);\r\n \r\n Producto acondicionador65 = new Producto (\"acondicionador\", \"sedal\", 28.99, 3);\r\n Nodo<Producto> nTemp65 = new Nodo (acondicionador65);\r\n listaSoriana.agregarNodo(nTemp65);\r\n \r\n Producto acondicionador66 = new Producto (\"acondicionador\", \"pantene\", 23.99, 3);\r\n Nodo<Producto> nTemp66 = new Nodo (acondicionador66);\r\n listaSoriana.agregarNodo(nTemp66);\r\n \r\n Producto pinol67 = new Producto(\"pinol\", \"mi piso limpio\", 15, 3);\r\n Nodo<Producto> nTemp67 = new Nodo (pinol67);\r\n listaSoriana.agregarNodo(nTemp67);\r\n \r\n Producto pinol68 = new Producto (\"pinol\", \"eficaz\", 18.99, 3);\r\n Nodo<Producto> nTemp68 = new Nodo (pinol68);\r\n listaSoriana.agregarNodo(nTemp68);\r\n \r\n Producto tortillas69 = new Producto (\"tortillas\", \"maizena\", 8.99, 2);\r\n Nodo<Producto> nTemp69 = new Nodo (tortillas69);\r\n listaSoriana.agregarNodo(nTemp69);\r\n \r\n Producto cremaparacuerpo70 = new Producto (\"crema para cuerpo\", \"dove\", 13.50, 3);\r\n Nodo<Producto> nTemp70 = new Nodo (cremaparacuerpo70);\r\n listaSoriana.agregarNodo(nTemp70);\r\n \r\n Producto maizoro71 = new Producto (\"maizoro\", \"special k\", 35.99, 2);\r\n Nodo<Producto> nTemp71 = new Nodo (maizoro71);\r\n listaSoriana.agregarNodo(nTemp71);\r\n \r\n Producto maizoro72 = new Producto (\"maizoro\",\"azucaradas\", 43, 2);\r\n Nodo<Producto> nTemp72 = new Nodo (maizoro72);\r\n listaSoriana.agregarNodo(nTemp72);\r\n \r\n Producto zanahoria73 = new Producto (\"zanahoria\", \"el huertito\", 12.99, 0);\r\n Nodo<Producto> nTemp73 = new Nodo (zanahoria73);\r\n listaSoriana.agregarNodo(nTemp73);\r\n \r\n Producto maizoro74 = new Producto (\"maizoro\", \"cherrios\", 45, 2);\r\n Nodo<Producto> nTemp74 = new Nodo (maizoro74);\r\n listaSoriana.agregarNodo(nTemp74);\r\n \r\n Producto mayonesa75 = new Producto (\"mayonesa\", \"helmans\", 23, 2);\r\n Nodo<Producto> nTemp75 = new Nodo (mayonesa75);\r\n listaSoriana.agregarNodo(nTemp75);\r\n }",
"List<Videogioco> retriveByPiattaforma(String piattaforma);",
"public DobbeltLenketListe() {\n this.hode= null;\n this.hale= null;\n antall=0; }",
"public void ispisiSveNapomene() {\r\n\t\tint i = 0;// redni broj napomene\r\n\t\tint brojac = 0;\r\n\t\tfor (Podsjetnik podsjetnik : lista) {\r\n\r\n\t\t\ti++;\r\n\t\t\tSystem.out.println(i + \")\" + podsjetnik);\r\n\t\t\tbrojac = i;\r\n\t\t}\r\n\t\tif (brojac == 0) {\r\n\t\t\tSystem.out.println(\"Nema unesenih napomena!!\");\r\n\t\t}\r\n\r\n\t}",
"public String showAllNhanvien();",
"private static void kapazitaetPruefen(){\n\t\tList<OeffentlichesVerkehrsmittel> loev = new ArrayList<OeffentlichesVerkehrsmittel>();\n\t\t\n\t\tLinienBus b1 = new LinienBus();\n\t\tFaehrschiff f1 = new Faehrschiff();\n\t\tLinienBus b2 = new LinienBus();\t\n\t\t\n\t\tloev.add(b1);\n\t\tloev.add(b2);\n\t\tloev.add(f1);\n\t\t\n\t\tint zaehlung = 500;\n\t\tboolean ausreichend = kapazitaetPruefen(loev,500);\n\t\tp(\"Kapazitaet ausreichend? \" + ausreichend);\n\t\t\n\t}",
"public void afficherListe(){\n StringBuilder liste = new StringBuilder(\"\\n\");\n logger.info(\"OUTPUT\",\"\\nLes produits en vente sont:\");\n for (Aliment aliment : this.productList) { liste.append(\"\\t\").append(aliment).append(\"\\n\"); }\n logger.info(\"OUTPUT\", liste+\"\\n\");\n }",
"@Override\n\tpublic List<Historic_siteVO> kyungsanglist(Criteria cri) throws Exception {\n\t\treturn dao.kyungsanglist(cri);\n\t}",
"public MatkaKokoelma() {\n tallentaja = new TXTTallentaja();\n matkat = new ArrayList<Matka>();\n matkojenkesto = 0.0;\n }",
"public void eisagwgiGiatrou() {\n\t\t// Elegxw o arithmos twn iatrwn na mhn ypervei ton megisto dynato\n\t\tif(numOfDoctors < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tdoctor[numOfDoctors] = new Iatros();\n\t\t\tdoctor[numOfDoctors].setFname(sir.readString(\"DWSTE TO ONOMA TOU GIATROU: \")); // Pairnei apo ton xristi to onoma tou giatrou\n\t\t\tdoctor[numOfDoctors].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \")); // Pairnei apo ton xristi to epitheto tou giatrou\n\t\t\tdoctor[numOfDoctors].setAM(rnd.nextInt(1000000)); // To sistima dinei automata ton am tou giatrou\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t// Elegxos monadikotitas tou am tou giatrou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfDoctors; i++)\n\t\t\t{\n\t\t\t\tif(doctor[i].getAM() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfDoctors++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS GIATROUS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}",
"public List<Fortaleza> listarFortalezas(){\r\n return cVista.listarFortalezas();\r\n }",
"public void listNens() {\n\t\t\tEntityManager em = emf.createEntityManager();\n\t\t\tem.getTransaction().begin();\n\t\t\tList<Nen> result = em.createQuery(\"from nen\", Nen.class)\n\t\t\t\t\t.getResultList();\n\t\t\tfor (Nen a : result) {\n\t\t\t\tSystem.out.println(a.toString());\n\t\t\t}\n\t\t\tem.getTransaction().commit();\n\t\t\tem.close();\t\n\t\t}",
"public static void pocetniMeni() {\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"***********************************************\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 1 ako zelite vidjeti kalendar(za dati mjesec i godinu)\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 2 za pregled podsjetnika za dati mjesec i godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 3 da pregledate podsjetnik za datu godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 4 ako zelite da pogledate sve podsjetnike!\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 5 ako zelite da upisete neki podsjetnik!\\n\"\r\n\t\t\t\t\t\t+ \":::::::::::::::::::::::::::::::::::::::::::::::\");\r\n\t}",
"public void affiche() {\n System.out.println(\"le tapis porte \"+this.tapis.size()+\" caisse(s)\");\n for (Iterator it = this.tapis.iterator(); it.hasNext(); ) {\n System.out.println(it.next().toString());\n } \n }",
"List<Videogioco> retriveByGenere(String genere);",
"public void ouvrirListe(){\n\t\n}"
]
| [
"0.67785186",
"0.66671324",
"0.66435236",
"0.6618566",
"0.6505119",
"0.6466855",
"0.64531493",
"0.64243424",
"0.6420922",
"0.6403078",
"0.63986933",
"0.6383964",
"0.63676935",
"0.63662875",
"0.6338242",
"0.6334237",
"0.6313326",
"0.63061816",
"0.6303563",
"0.6300637",
"0.6297679",
"0.6273485",
"0.62728465",
"0.6271612",
"0.62596977",
"0.6240584",
"0.62390876",
"0.6236522",
"0.6222911",
"0.6219708",
"0.6217491",
"0.62128705",
"0.6211981",
"0.6205233",
"0.61940074",
"0.61809325",
"0.61737543",
"0.616641",
"0.6160749",
"0.6153701",
"0.61456746",
"0.6144943",
"0.61441445",
"0.6142399",
"0.61399746",
"0.61206615",
"0.61147994",
"0.6107841",
"0.61035705",
"0.6094803",
"0.60889417",
"0.6086482",
"0.60824907",
"0.6075366",
"0.6073288",
"0.6070576",
"0.60675323",
"0.6062173",
"0.60607505",
"0.60577315",
"0.6057178",
"0.6045696",
"0.6035939",
"0.60330725",
"0.6030744",
"0.6023766",
"0.60220873",
"0.60205877",
"0.6016291",
"0.6006272",
"0.6000212",
"0.5995805",
"0.5991693",
"0.59837323",
"0.5972821",
"0.5968538",
"0.59619385",
"0.5961033",
"0.59601104",
"0.5955823",
"0.5946383",
"0.5945675",
"0.5942992",
"0.5938046",
"0.5932242",
"0.5931898",
"0.5929022",
"0.5924429",
"0.5922535",
"0.59174955",
"0.5915989",
"0.5914846",
"0.59044343",
"0.5902338",
"0.59016544",
"0.59001917",
"0.5899384",
"0.5894791",
"0.58942884",
"0.58914816",
"0.5890093"
]
| 0.0 | -1 |
Created by hanbit on 20170315. | public interface IDetail {
public Map<?,?> list(String params);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public void mo38117a() {\n }",
"@Override\n\tpublic void anular() {\n\n\t}",
"private void init() {\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}",
"private void poetries() {\n\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"private void kk12() {\n\n\t}",
"protected boolean func_70814_o() { return true; }",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"private void strin() {\n\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n public void init() {\n\n }",
"public void gored() {\n\t\t\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\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\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo6081a() {\n }",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n public void init() {\n }",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\n void init() {\n }",
"private void m50366E() {\n }",
"private void init() {\n\n\n\n }",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n public void init() {\n\n }",
"@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 dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n public void init() {}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n public void memoria() {\n \n }",
"@Override\n public int describeContents() { return 0; }",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"private zza.zza()\n\t\t{\n\t\t}",
"public void mo55254a() {\n }",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n\tpublic void init() {\n\t}",
"public void mo12628c() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"public abstract void mo70713b();",
"protected void mo6255a() {\n }",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public Pitonyak_09_02() {\r\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}"
]
| [
"0.58398396",
"0.5835505",
"0.5772648",
"0.56989074",
"0.5640031",
"0.5640031",
"0.5618108",
"0.5592638",
"0.5521885",
"0.55081356",
"0.5496179",
"0.5494734",
"0.5492572",
"0.54759616",
"0.546993",
"0.54608685",
"0.54572576",
"0.54572576",
"0.54572576",
"0.54572576",
"0.54572576",
"0.54566145",
"0.54553044",
"0.54532146",
"0.5452006",
"0.54510975",
"0.54405075",
"0.5436846",
"0.54303426",
"0.5426608",
"0.542466",
"0.5422472",
"0.54052716",
"0.53835815",
"0.5382185",
"0.5371351",
"0.53417104",
"0.53417104",
"0.53417104",
"0.53417104",
"0.53417104",
"0.53417104",
"0.53417104",
"0.5336699",
"0.5335221",
"0.53276366",
"0.5325514",
"0.5325514",
"0.5325514",
"0.5318477",
"0.53178453",
"0.53178453",
"0.53178453",
"0.53154397",
"0.5314213",
"0.53110486",
"0.5306056",
"0.53035223",
"0.53035223",
"0.53035223",
"0.5286617",
"0.52855337",
"0.5279649",
"0.5275955",
"0.5275955",
"0.52716124",
"0.52716124",
"0.5265532",
"0.5265532",
"0.5264065",
"0.52635723",
"0.5262635",
"0.52613753",
"0.52585226",
"0.52444637",
"0.52433383",
"0.52389985",
"0.5234637",
"0.52316916",
"0.5230918",
"0.52297294",
"0.52292025",
"0.5210588",
"0.52019393",
"0.5192553",
"0.51843876",
"0.51843876",
"0.51843876",
"0.51843876",
"0.51843876",
"0.51843876",
"0.5183976",
"0.5183824",
"0.5177349",
"0.51763994",
"0.5173662",
"0.5173159",
"0.5168746",
"0.5166478",
"0.5156176",
"0.51509696"
]
| 0.0 | -1 |
Render the label box in the given graphical context. | public void draw(Graphics2D g2d) {
for (int i = 0; i < lines.size(); ++i) {
int deltaX = (width - getGlobalFontMetrics().stringWidth(lines.elementAt(i))) / 2;
int deltaY = getGlobalFontMetrics().getHeight() * (i + 1) - getGlobalFontMetrics().getDescent();
g2d.drawString(lines.elementAt(i), x + deltaX + 1, y + deltaY);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic JLabel createLabel() {\r\n\t\treturn new JLabel();\r\n\t}",
"void drawLabel() {\n\t\tfloat gavityValue = (int) (radius * 100);\n\t\tgavityValue /= 100;\n\t\tString label = \"gravityField \" + id + \"\\n gravity: \" + gavityValue;\n\t\tfloat labelWidth = gg.textWidth(label);\n\t\tfloat textHeight = 8;\n\n\t\tgg.pushMatrix();\n\t\tgg.translate(x, y, radius + textHeight * 3);\n\t\t// rotateZ(-rotZ/2);\n\t\tgg.pushMatrix();\n\t\tgg.rotateX(-HALF_PI);\n\t\tgg.fill(0);\n\t\tgg.rect(-labelWidth / 2 - 2, -textHeight - 1.5f, labelWidth + 4,\n\t\t\t\ttextHeight * 2 + 6);\n\t\tgg.translate(0, 0, .1f);\n\t\tgg.fill(255);\n\t\tgg.textSize(textHeight);\n\t\tgg.textAlign(CENTER);\n\t\tgg.text(label, 0, 0, 0);\n\t\tgg.popMatrix();\n\n\t\tgg.rotateZ(PI);\n\t\tgg.pushMatrix();\n\t\tgg.rotateX(-HALF_PI);\n\t\tgg.translate(0, 0, .1f);\n\t\tgg.fill(255);\n\t\tgg.textSize(textHeight);\n\t\tgg.textAlign(CENTER);\n\t\tgg.text(label, 0, 0, 0);\n\t\tgg.popMatrix();\n\t\tgg.popMatrix();\n\n\t}",
"@Override\n\tpublic void render() {\n\t\tif (this.hidden) {\n\t\t\treturn;\n\t\t}\n\n\t\tsuper.render();\n\n\t\tthis.font.draw(Graphics.batch, this.label, this.getX(),\n\t\t\tthis.getY() + (this.getHeight() - this.font.getLineHeight()) / 2);\n\t}",
"public void render(final Graphics2D g)\n\t\t{\n\t\t\t//draw label\n\t\t\tif(label instanceof String)\n\t\t\t{\n\t\t\t\tg.setColor(Color.BLACK);\n\t\t\t\tif(!((String)label).equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tg.drawString((String)label, coords[0], coords[1]+(coords[3]));\n\n\t\t\t\t\tif(obj instanceof Polygon)\n\t\t\t\t\t{\n\t\t\t\t\t\tg.drawPolygon((Polygon)obj);\n\t\t\t\t\t}\n\t\t\t\t\tif(obj instanceof Ellipse2D)\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal Ellipse2D e = (Ellipse2D)obj;\n\t\t\t\t\t\tg.drawOval((int)(e.getCenterX()-e.getWidth()/2), (int)(e.getCenterY()-e.getHeight()/2), (int)e.getWidth(), (int)e.getHeight());\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal Rectangle r = (Rectangle)obj;\n\t\t\t\t\t\tg.drawRect(r.x, r.y, r.width, r.height);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else\n\t\t\t{\n\t\t\t\tfinal Rectangle enclose = obj.getBounds();\n\n\t\t\t\tg.drawImage((Image)label, coords[0]-(enclose.width/2), coords[1]-(enclose.height/2), null);\n\t\t\t}\n\n\t\t\t//draw highlight by shape\n\t\t\tif(highlighted)\n\t\t\t{\n\t\t\t g.setColor(new Color(0x3333FF));\n\t\t\t\tg.setStroke(new BasicStroke(4));\n\t\t\t\tif(obj instanceof Polygon)\n\t\t\t\t{\n\t\t\t\t\tg.drawPolygon((Polygon)obj);\n\t\t\t\t}\n\t\t\t\telse if(obj instanceof Ellipse2D)\n\t\t\t\t{\n\t\t\t\t\tfinal Ellipse2D e = (Ellipse2D)obj;\n\t\t\t\t\tg.drawOval((int)(e.getCenterX()-e.getWidth()/2), (int)(e.getCenterY()-e.getHeight()/2), (int)e.getWidth(), (int)e.getHeight());\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tfinal Rectangle r = (Rectangle)obj;\n\t\t\t\t\tg.drawRect(r.x, r.y, r.width, r.height);\n\t\t\t\t}\n\t\t\t\tg.setStroke(new BasicStroke(1));\n\t\t\t\tg.setColor(Color.BLACK);\n\t\t\t}\n\t\t}",
"private void showLabel(String text, Color color) {\n GLabel result = new GLabel(text);\n result.setFont(\"Verdana-60\");\n result.setColor(color);\n result.sendToFront();\n add(result, (getWidth() - result.getWidth()) /2, (getHeight() - result.getHeight()) / 2 );\n pause(FREEZE_TIME);\n remove(result);\n }",
"protected void drawLabel(Canvas canvas, String labelText, DefaultRenderer renderer,\r\n List<RectF> prevLabelsBounds, int centerX, int centerY, float shortRadius, float longRadius,\r\n float currentAngle, float angle, int left, int right, Paint paint) {\r\n if (renderer.isShowLabels()) {\r\n paint.setColor(renderer.getLabelsColor());\r\n double rAngle = Math.toRadians(90 - (currentAngle + angle / 2));\r\n double sinValue = Math.sin(rAngle);\r\n double cosValue = Math.cos(rAngle);\r\n int x1 = Math.round(centerX + (float) (shortRadius * sinValue));\r\n int y1 = Math.round(centerY + (float) (shortRadius * cosValue));\r\n int x2 = Math.round(centerX + (float) (longRadius * sinValue));\r\n int y2 = Math.round(centerY + (float) (longRadius * cosValue));\r\n\r\n float size = renderer.getLabelsTextSize();\r\n float extra = Math.max(size / 2, 10);\r\n paint.setTextAlign(Align.LEFT);\r\n if (x1 > x2) {\r\n extra = -extra;\r\n paint.setTextAlign(Align.RIGHT);\r\n }\r\n float xLabel = x2 + extra;\r\n float yLabel = y2;\r\n float width = right - xLabel;\r\n if (x1 > x2) {\r\n width = xLabel - left;\r\n }\r\n labelText = getFitText(labelText, width, paint);\r\n float widthLabel = paint.measureText(labelText);\r\n boolean okBounds = false;\r\n while (!okBounds) {\r\n boolean intersects = false;\r\n int length = prevLabelsBounds.size();\r\n for (int j = 0; j < length && !intersects; j++) {\r\n RectF prevLabelBounds = prevLabelsBounds.get(j);\r\n if (prevLabelBounds.intersects(xLabel, yLabel, xLabel + widthLabel, yLabel + size)) {\r\n intersects = true;\r\n yLabel = Math.max(yLabel, prevLabelBounds.bottom);\r\n }\r\n }\r\n okBounds = !intersects;\r\n }\r\n\r\n y2 = (int) (yLabel - size / 2);\r\n canvas.drawLine(x1, y1, x2, y2, paint);\r\n canvas.drawLine(x2, y2, x2 + extra, y2, paint);\r\n canvas.drawText(labelText, xLabel, yLabel, paint);\r\n prevLabelsBounds.add(new RectF(xLabel, yLabel, xLabel + widthLabel, yLabel + size));\r\n }\r\n }",
"public Bitmap renderLabel(String text) {\n\t\t// Measure text.\n\t\tif (text.isEmpty())\n\t\t\treturn null;\n\t\tPaint textPaint = new Paint();\n\t\ttextPaint.setTextSize(22);\n\t\ttextPaint.setTypeface(Typeface.MONOSPACE);\n\n\t\ttextPaint.setAntiAlias(true);\n\t\tRect bounds = new Rect();\n\t\ttextPaint.getTextBounds(text, 0, text.length(), bounds);\n\t\tint w = Math.max(bounds.width() + 10, 10);\n\t\tint h = Math.max(bounds.height() + 10, 10);\n\n\t\t// Allocate bitmap.\n\t\tBitmap bitmap = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888);\n\t\tCanvas canvas = new Canvas(bitmap);\n\t\tbitmap.eraseColor(0);\n\t\t/*\n\t\t * // Framed box. RectF rect = new RectF(0, 0, w, h);\n\t\t * \n\t\t * Paint fillPaint = new Paint(); fillPaint.setColor(0x7f000055);\n\t\t * fillPaint.setAntiAlias(true); canvas.drawRoundRect(rect, 10, 10,\n\t\t * fillPaint); RectF rect2 = new RectF(10, 10, w/2, h/2); Paint\n\t\t * fillPaint2 = new Paint(); fillPaint2.setColor(0xffff0000);\n\t\t * canvas.drawRoundRect(rect2, 10, 10, fillPaint2); // Text.\n\t\t */\n\t\ttextPaint.setARGB(0xff, 0x00, 0x00, 0x00);\n\n\t\t// drawText puts the baseline on y, but we want to visually center\n\t\t// vertically.\n\t\tPaint.FontMetrics metrics = textPaint.getFontMetrics();\n\t\tcanvas.drawText(text, (w - bounds.width()) / 2 - 1,\n\t\t\t\th - (h - bounds.height()) / 2 - metrics.bottom / 2 - 1,\n\t\t\t\ttextPaint);\n\n\t\tcanvas.drawText(text, (w - bounds.width()) / 2 - 1,\n\t\t\t\th - (h - bounds.height()) / 2 - metrics.bottom / 2 + 1,\n\t\t\t\ttextPaint);\n\t\tcanvas.drawText(text, (w - bounds.width()) / 2 + 1,\n\t\t\t\th - (h - bounds.height()) / 2 - metrics.bottom / 2 - 1,\n\t\t\t\ttextPaint);\n\t\tcanvas.drawText(text, (w - bounds.width()) / 2 + 1,\n\t\t\t\th - (h - bounds.height()) / 2 - metrics.bottom / 2 + 1,\n\t\t\t\ttextPaint);\n\t\ttextPaint.setARGB(0xff, 0xff, 0xff, 0xff);\n\t\tcanvas.drawText(text, (w - bounds.width()) / 2,\n\t\t\t\th - (h - bounds.height()) / 2 - metrics.bottom / 2, textPaint);\n\t\treturn bitmap;\n\t}",
"private void drawCore(Graphics2D g2d) {\r\n icon.paintIcon(g2d, layout.location.x - icon.getIconWidth() / 2, layout.location.y - icon.getIconHeight() / 2,\r\n g2d.getColor());\r\n labelBox.draw(g2d);\r\n }",
"public TextWithLabel(Context context, AttributeSet attrs)\r\n {\r\n \r\n // Call the super class constructor to create a basic Textbox: \r\n super(context, attrs);\r\n \r\n // Generate new TextView for the label: \r\n labelView = new TextView(context, attrs);\r\n \r\n // Get custom attributes from XML file:\r\n getCustomAttributes(attrs);\r\n\r\n \r\n /**** Set some attributes: **********************\r\n * Could add more attributes?\r\n ************************************************/\r\n labelView.setTextSize(android.util.TypedValue.COMPLEX_UNIT_PT, labelSize);\r\n labelView.setGravity( android.view.Gravity.RIGHT );\r\n \r\n /**** Set text colour... ************************/\r\n //Resources res = getResources();\r\n //int color = res.getColor(R.color.normal_text);\r\n //labelView.setTextColor(color);\r\n //itemView.setTextColor(color);\r\n \r\n // Add the new text boxes to this layout: \r\n addView(labelView);\r\n \r\n }",
"private Label initHBoxLabel(HBox container, DraftKit_PropertyType labelProperty, String styleClass) {\n Label label = initLabel(labelProperty, styleClass);\n container.getChildren().add(label);\n return label;\n }",
"private Label initVBoxLabel(VBox container, DraftKit_PropertyType labelProperty, String styleClass) {\n Label label = initLabel(labelProperty, styleClass);\n container.getChildren().add(label);\n return label;\n }",
"@Override\n\tpublic void paintLabel(Graphics g) {\n\t\tGraphics2D g2d = (Graphics2D) g;\n\t\tg2d.drawString(\"Oval\",x,y+65);\n\t}",
"private void paintBox(Graphics g, TextInBox textInBox) {\n g.setColor(BOX_COLOR);\n Rectangle2D.Double box = getBoundsOfNode(textInBox);\n g.fillRoundRect((int) box.x, (int) box.y, (int) box.width - 1,\n (int) box.height - 1, ARC_SIZE, ARC_SIZE);\n g.setColor(BORDER_COLOR);\n g.drawRoundRect((int) box.x, (int) box.y, (int) box.width - 1,\n (int) box.height - 1, ARC_SIZE, ARC_SIZE);\n\n // draw the text on top of the box (possibly multiple lines)\n g.setColor(TEXT_COLOR);\n String[] lines = textInBox.text.split(\"\\n\");\n FontMetrics m = getFontMetrics(getFont());\n int x = (int) box.x + ARC_SIZE / 2;\n int y = (int) box.y + m.getAscent() + m.getLeading() + 1;\n for (int i = 0; i < lines.length; i++) {\n g.drawString(lines[i], x, y);\n y += m.getHeight();\n }\n }",
"@Override\n\tpublic String extendCode(String initialSvgString, Label label) {\n\n\t\t//comment\n\t\tString commentString = createComment(label);\n\n\t\t//label image\n\t\tString imageSvgString = createImageSvgStringFromLabel(label);\n\n\t\t//text\n\t\tString text = label.getText();\n\n\t\t//background color\n\t\tString backgroundFill = determineBackgroundFill(label);\n\t\tboolean hasBackground = backgroundFill != null;\n\n\t\t//x & y\n\t\tList<Node> childNodes = label.getChildrenUnmodifiable();\n\t\tText textNode = null;\n\t\tfor (Node childNode : childNodes) {\n\t\t\tboolean isText = childNode instanceof Text;\n\t\t\tif (isText) {\n\t\t\t\ttextNode = (Text) childNode;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tObjects.requireNonNull(textNode, \"Could not retrive Text node from Label.\");\n\n\t\tBounds bounds = label.getBoundsInParent();\n\t\tDouble xl = bounds.getMinX();\n\t\tDouble yl = bounds.getMinY();\n\n\t\tBounds textBounds = textNode.getBoundsInParent();\n\t\tDouble xt = textBounds.getMinX();\n\t\tDouble yt = textBounds.getMinY();\n\n\t\tDouble x = xl + xt;\n\t\tDouble yField = yl + yt;\n\n\t\t//Bounds bounds = label.getBoundsInParent();\n\t\t//Double x = bounds.getMinX();\n\t\tboolean hasImage = !imageSvgString.isEmpty();\n\t\tif (hasImage) {\n\t\t\tNode image = label.getGraphic();\n\t\t\tDouble xOffset = image.getBoundsInParent().getMaxX();\n\t\t\tx = x + xOffset;\n\t\t}\n\t\tDouble baseLineOffset = label.getBaselineOffset();\n\t\tDouble y = yField + baseLineOffset;\n\n\t\t//font\n\t\tFont font = label.getFont();\n\t\tString fontFamily = font.getFamily();\n\t\tDouble fontSize = font.getSize();\n\n\t\t//font color\n\t\tPaint textFill = label.getTextFill();\n\t\tString fill = paintToColorString(textFill);\n\n\t\t//text anchor (horizontal alignment)\n\t\tSvgTextAnchor textAnchor = determineTextAnchor(label);\n\n\t\t//comment\n\t\tString svgString = commentString;\n\n\t\t//<rect> start\n\t\tboolean wrapInRect = hasImage || hasBackground;\n\t\tif (wrapInRect) {\n\t\t\tsvgString = includeRectStartTag(svgString, imageSvgString, backgroundFill, hasBackground, textBounds);\n\t\t}\n\n\t\t//<text> start\n\t\tsvgString = includeTextStartTag(svgString, x, y, fontFamily, fontSize, fill, textAnchor);\n\n\t\t//<text> content\n\t\tsvgString = svgString + text;\n\n\t\t//<text> end\n\t\tsvgString = svgString + \"</text>\\n\\n\";\n\n\t\t//<rect> end\n\t\tif (wrapInRect) {\n\t\t\tdecreaseIndentation();\n\t\t\tsvgString = includeRectEndTag(svgString);\n\t\t}\n\n\t\treturn svgString;\n\n\t}",
"void drawLabel(){\n FreeTypeFontGenerator generator = new FreeTypeFontGenerator(Gdx.files.internal(\"Rubik-Regular.ttf\"));\n FreeTypeFontGenerator.FreeTypeFontParameter parameter = new FreeTypeFontGenerator.FreeTypeFontParameter();\n parameter.size = 25;\n parameter.color = Color.BLACK;\n BitmapFont font2 = generator.generateFont(parameter);\n\n font2.getData().setScale(FONT_SCALE);\n\n font2.draw(game.getBatch(), \"Please insert the IP Address\\n you see on you partner's screen\", 50, 600);\n }",
"public void paintHere(Component c, Graphics g, int x, int y, int width, int height) {\n if (height <= 0 || width <= 0) {\n return;\n }\n\n label.updateUI();\n\n // Paint the JLabel into an image buffer...\n BufferedImage buffer = new BufferedImage(height, width, BufferedImage.TYPE_INT_ARGB_PRE);\n Graphics2D g2 = buffer.createGraphics();\n label.setSize(new Dimension(height, width));\n label.paint(g2);\n\n // ...then apply a transform while painting the buffer into the component\n AffineTransform af = AffineTransform.getTranslateInstance(clockwise ? x + width : x, clockwise ? y : y + height);\n AffineTransform af2 = AffineTransform.getRotateInstance(clockwise ? RotatedLabel.NINETY_DEGREES : -RotatedLabel.NINETY_DEGREES);\n af.concatenate(af2);\n\n ((Graphics2D) g).drawImage(buffer, af, this);\n }",
"private void createLabel(String title, int row, int col, int fontsize) {\n \tLabel label1 = new Label(title);\n \tlabel1.setFont(Font.font(myResources.getString(\"font\"), \n \t\t\tFontWeight.EXTRA_BOLD, FontPosture.ITALIC, fontsize));\n \tlabel1.setTextFill(Color.RED);\n \tstartScreen.add(label1, row, col);\n }",
"protected void paintLabel(Graphics g, int vNum){\r\n\r\n\t// Label Centering Information\r\n\tint xOffSet, yOffSet;\r\n\tif(vNum > 9) {\r\n\t xOffSet = -6;\r\n\t}\r\n\telse {\r\n\t xOffSet = -3;\r\n\t}\r\n\tyOffSet = 5;\r\n\r\n\tint rise = YCENTER - getYCoor(vNum);\r\n int run = XCENTER - getXCoor(vNum);\r\n\tg.drawString(Integer.toString(vNum), getXCoor(vNum)-(run/4) + xOffSet,\r\n\t\t getYCoor(vNum)-(rise/4) + yOffSet);\r\n }",
"public void draw(GL2 gl, boolean bDrawLabelBackground) {\n\n\t\tgl.glLoadIdentity();\n\n\t\tif (bDrawLabelBackground) {\n\t\t\tgl.glPushAttrib(GL.GL_COLOR_BUFFER_BIT);\n\t\t\tgl.glColor4fv(RadialHierarchyRenderStyle.LABEL_BACKGROUND_COLOR, 0);\n\n\t\t\tgl.glBegin(GL2.GL_POLYGON);\n\t\t\tgl.glVertex3f(fXContainerLeft, getTop(), 0);\n\t\t\tgl.glVertex3f(getRight(), getTop(), 0);\n\t\t\tgl.glVertex3f(getRight(), getBottom(), 0);\n\t\t\tgl.glVertex3f(fXContainerLeft, getBottom(), 0);\n\t\t\tgl.glEnd();\n\t\t\tgl.glPopAttrib();\n\t\t}\n\n\t\tfor (LabelLine currentLine : alLabelLines) {\n\t\t\tcurrentLine.draw(gl);\n\t\t}\n\t}",
"public String getLabelText();",
"@Override\r\n public void build(GraphicsConfiguration gc) {\n\r\n RWTLabel startLabel = new RWTLabel();\r\n startLabel.setString(\"10年後・・・\");\r\n startLabel.setColor(Color.black);\r\n startLabel.setRelativePosition(0.05f, 0.3f);\r\n Font f = new Font(\"\", Font.PLAIN, 20);\r\n startLabel.setFont(f);\r\n addWidget(startLabel);\r\n\r\n RWTLabel scenario1Label = new RWTLabel();\r\n scenario1Label.setString(\"ヤヲ・二・ナッタ「よく来たね~」\");\r\n scenario1Label.setColor(Color.black);\r\n scenario1Label.setRelativePosition(0.05f, 0.5f);\r\n Font a = new Font(\"\", Font.PLAIN, 20);\r\n scenario1Label.setFont(a);\r\n addWidget(scenario1Label);\r\n\r\n RWTLabel scenario2Label = new RWTLabel();\r\n scenario2Label.setString(\"「僕を倒したら最強のマフィアだよ~⤴」\");\r\n scenario2Label.setColor(Color.black);\r\n scenario2Label.setRelativePosition(0.05f, 0.7f);\r\n Font b = new Font(\"\", Font.PLAIN, 20);\r\n scenario2Label.setFont(b);\r\n addWidget(scenario2Label);\r\n\r\n repaint();\r\n }",
"public void prepareForRender(String label)\r\n/* 82: */ {\r\n/* 83: 84 */ this.curBlockLabel = label;\r\n/* 84: */ }",
"private Label createLabel(String text, int offset) {\n\t\tLabel label = new Label(text);\n\t\t//label.setFont(Font.font(40));\n\t\tlabel.setTextFill(Color.YELLOW);\n\t\tlabel.getTransforms().add(new Rotate(-50, 300, 400, 20, Rotate.X_AXIS));\n\t\tlabel.setLayoutX(canvas.getWidth() / 2);\n\t\tlabel.setLayoutY(canvas.getHeight() / 2 + offset);\n\t\tlabel.setId(\"chooseFile\");\n\t\t\n\t\treturn label;\n\n\t}",
"void drawBuilding() {\r\n\t\tgc.setFill(Color.BEIGE);\r\n\t\tgc.fillRect(0, 0, theBuilding.getXSize(), theBuilding.getYSize()); // clear the canvas\r\n\t\ttheBuilding.showBuilding(this); // draw all items\r\n\r\n\t\tString s = theBuilding.toString();\r\n\t\trtPane.getChildren().clear(); // clear rtpane\r\n\t\tLabel l = new Label(s); // turn string to label\r\n\t\trtPane.getChildren().add(l); // add label\r\n\r\n\t}",
"public abstract String getLabelText();",
"@Override\n public void render(Canvas canvas, Rect2i bounds, TextRenderStyle defaultRenderStyle) {\n canvas.drawWidget(widget, bounds);\n }",
"private Label initChildLabel(Pane container, DraftKit_PropertyType labelProperty, String styleClass) {\n Label label = initLabel(labelProperty, styleClass);\n container.getChildren().add(label);\n return label;\n }",
"private void generateLabelPanel() {\n speedLabel = new JLabel(\"\");\n loopbackLabel = new JLabel(\"\");\n playingLabel = new JLabel(\"\");\n\n JPanel labelPanel = new JPanel();\n labelPanel.setLayout(new FlowLayout());\n labelPanel.add(playingLabel);\n labelPanel.add(Box.createHorizontalStrut(50));\n labelPanel.add(speedLabel);\n labelPanel.add(Box.createHorizontalStrut(50));\n labelPanel.add(loopbackLabel);\n mainPanel.add(labelPanel);\n }",
"public CustomLabel(String text){\n setHorizontalAlignment(JLabel.LEFT);\n Font font = new Font(\"Bold\", Font.BOLD, 20);\n setFont(font);\n setText(\" \" + text);\n }",
"@Override\r\n\tpublic void render(GameContainer gc, Renderer r) {\n\t\tr.drawTextInBox(posX, posY, width, height, color1, text);\r\n\t\t//r.noiseGen();\r\n\t}",
"@Override\n\tpublic JComponent createWithAlignment(String text,String font, int x, int y, int w, int h,int Alignment) {\n\t\tJLabel label = new JLabel(text);\n\t\tlabel.setHorizontalAlignment(Alignment);\n\t label.setBounds(x,y,w,h);\n\t return label;\n\t}",
"private void drawLabels(Graphics2D g2) {\r\n if (isTextPainted()) {\r\n double axisH = yPositionToPixel(originY);\r\n double axisV = xPositionToPixel(originX);\r\n\r\n if (isAxisPainted()) {\r\n Stroke stroke = g2.getStroke();\r\n g2.setStroke(new BasicStroke(STROKE_AXIS));\r\n g2.setColor(getAxisColor());\r\n g2.drawLine((int) axisV - 3, (int) axisH,\r\n (int) axisV + 3, (int) axisH);\r\n g2.drawLine((int) axisV, (int) axisH - 3,\r\n (int) axisV, (int) axisH + 3);\r\n g2.setStroke(stroke);\r\n }\r\n\r\n g2.setColor(getForeground());\r\n FontMetrics metrics = g2.getFontMetrics();\r\n g2.drawString(format(originX) + \"; \" +\r\n format(originY), (int) axisV + 5,\r\n (int) axisH + metrics.getHeight());\r\n \r\n drawHorizontalAxisLabels(g2);\r\n drawVerticalAxisLabels(g2);\r\n }\r\n }",
"private void createGrpLabel() {\n\n\t\tgrpLabel = new Group(grpPharmacyDetails, SWT.NONE);\n\t\tgrpLabel.setText(\"Preview of Label\");\n\t\tgrpLabel.setBounds(new Rectangle(390, 40, 310, 230));\n\t\tgrpLabel.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\n\t\tcanvasLabel = new Canvas(grpLabel, SWT.NONE);\n\t\tcanvasLabel.setBounds(new org.eclipse.swt.graphics.Rectangle(12, 18,\n\t\t\t\t285, 200));\n\t\tcanvasLabel.setBackground(ResourceUtils.getColor(iDartColor.WHITE));\n\t\tcreateCanvasBorders();\n\n\t\tlblCanvasPharmName = new Label(canvasLabel, SWT.NONE);\n\t\tlblCanvasPharmName.setText(\"Facility Name\");\n\t\tlblCanvasPharmName.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tlblCanvasPharmName.setBackground(ResourceUtils\n\t\t\t\t.getColor(iDartColor.WHITE));\n\t\tlblCanvasPharmName.setBounds(5, 6, 273, 20);\n\t\tlblCanvasPharmName\n\t\t.setFont(ResourceUtils.getFont(iDartFont.VERASANS_10));\n\t\tlblCanvasPharmName.setAlignment(SWT.CENTER);\n\n\t\tlblCanvasPharmacist = new Label(canvasLabel, SWT.NONE);\n\t\tlblCanvasPharmacist.setText(\"Pharmacist\");\n\t\tlblCanvasPharmacist\n\t\t.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tlblCanvasPharmacist.setBackground(ResourceUtils\n\t\t\t\t.getColor(iDartColor.WHITE));\n\t\tlblCanvasPharmacist.setBounds(5, 27, 273, 20);\n\t\tlblCanvasPharmacist.setFont(ResourceUtils\n\t\t\t\t.getFont(iDartFont.VERASANS_10));\n\t\tlblCanvasPharmacist.setAlignment(SWT.CENTER);\n\n\t\tlblCanvasAddress = new Label(canvasLabel, SWT.NONE);\n\t\tlblCanvasAddress.setText(\"Physical Address\");\n\t\tlblCanvasAddress.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tlblCanvasAddress\n\t\t.setBackground(ResourceUtils.getColor(iDartColor.WHITE));\n\t\tlblCanvasAddress.setBounds(5, 49, 273, 20);\n\t\tlblCanvasAddress.setFont(ResourceUtils.getFont(iDartFont.VERASANS_10));\n\t\tlblCanvasAddress.setAlignment(SWT.CENTER);\n\n\t}",
"private void initializeStateLabel() {\n colorLabel = new JLabel(\"Color: \");\n colorLabel.setBounds(200, 20, 100, 25);\n this.add(colorLabel);\n\n colorLabel2 = new JLabel();\n colorLabel2.setBounds(250, 20, 25, 25);\n colorLabel2.setOpaque(true);\n //colorLabel2.setBackground(java.awt.Color.black);\n this.add(colorLabel2);\n\n numberLabel = new JLabel();\n numberLabel.setBounds(300, 20, 200, 25);\n this.add(numberLabel);\n\n specialLabel = new JLabel();\n specialLabel.setBounds(400, 20, 200, 25);\n this.add(specialLabel);\n\n penaltyLabel = new JLabel();\n penaltyLabel.setBounds(600, 20, 200, 25);\n this.add(penaltyLabel);\n\n currPlayerLabel = new JLabel();\n currPlayerLabel.setBounds(0, 300, 200, 50);\n currPlayerLabel.setFont(new Font(\"Arial\", Font.PLAIN, 20));\n this.add(currPlayerLabel);\n\n errorMessage = new JLabel(\"Select a valid card, or draw a new card\");\n errorMessage.setBounds(400, 300, 300, 25);\n this.add(errorMessage);\n errorMessage.setVisible(false);\n }",
"public final void render(final Graphics2D g) {\n label.render(g);\n g.setStroke(new BasicStroke(BORDER_WIDTH));\n g.setColor(Color.LIGHT_GRAY);\n g.draw(getBounds());\n }",
"private GLabel makeLabel(String labelString, GRect labelRect) {\r\n\t\tGLabel label = new GLabel(labelString);\r\n\t\tint labelXPadding = ((int) labelRect.getWidth() - (int) label.getWidth()) / 2;\r\n\t\tint labelYPadding = ((int) labelRect.getHeight() + (int) label.getAscent()) / 2;\r\n\t\tlabel.setLocation(labelRect.getX() + labelXPadding, labelRect.getY() + labelYPadding);\r\n\t\treturn label;\r\n\t}",
"private void renderText(Feature feature, TextSymbolizer symbolizer) {\n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"rendering text\");\n }\n \n String geomName = symbolizer.getGeometryPropertyName();\n \n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"geomName = \" + geomName);\n }\n \n Geometry geom = findGeometry(feature, geomName);\n \n if (geom.isEmpty()) {\n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"empty geometry\");\n }\n \n return;\n }\n \n Object obj = symbolizer.getLabel().getValue(feature);\n \n if (obj == null) {\n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"Null label in render text\");\n }\n \n return;\n }\n \n String label = obj.toString();\n \n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"label is \" + label);\n }\n \n if (label == null) {\n return;\n }\n \n Font[] fonts = symbolizer.getFonts();\n java.awt.Font javaFont = getFont(feature, fonts);\n \n LabelPlacement placement = symbolizer.getLabelPlacement();\n \n// if (javaFont != null) {\n// graphics.setFont(javaFont);\n// }\n\n // TextLayout tl = new TextLayout(label, graphics.getFont(), graphics.getFontRenderContext());\n AffineTransform oldTx = graphics.getTransform();\n graphics.setTransform(IDENTITY_TRANSFORM);\n GlyphVector gv = javaFont.createGlyphVector(graphics.getFontRenderContext(), label);\n graphics.setTransform(oldTx);\n Rectangle2D textBounds = gv.getVisualBounds();\n double x = 0;\n double y = 0;\n double rotation = 0;\n double tx = 0;\n double ty = 0;\n \n if (placement instanceof PointPlacement) {\n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"setting pointPlacement\");\n }\n \n // if it's a point, get its coordinate, otherwise compute the\n // centroid\n if (geom instanceof Point) {\n tx = ((Point) geom).getX();\n ty = ((Point) geom).getY();\n } else {\n Point centroid = geom.getCentroid();\n tx = centroid.getX();\n ty = centroid.getY();\n }\n \n PointPlacement p = (PointPlacement) placement;\n x = ((Number) p.getAnchorPoint().getAnchorPointX().getValue(feature)).doubleValue() * -textBounds\n .getWidth();\n y = ((Number) p.getAnchorPoint().getAnchorPointY().getValue(feature)).doubleValue() * textBounds\n .getHeight();\n \n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"anchor point (\" + x + \",\" + y + \")\");\n }\n \n x += ((Number) p.getDisplacement().getDisplacementX().getValue(feature)).doubleValue();\n y += ((Number) p.getDisplacement().getDisplacementY().getValue(feature)).doubleValue();\n \n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"total displacement (\" + x + \",\" + y + \")\");\n }\n \n rotation = ((Number) p.getRotation().getValue(feature)).doubleValue();\n rotation *= (Math.PI / 180.0);\n } else if (placement instanceof LinePlacement && geom instanceof LineString) {\n // @TODO: if the geometry is a ring or a polygon try to find out\n // some \"axis\" to follow in the label placement\n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"setting line placement\");\n }\n \n double offset = ((Number) ((LinePlacement) placement).getPerpendicularOffset().getValue(feature))\n .doubleValue();\n LineString line = (LineString) geom;\n Point start = line.getStartPoint();\n Point end = line.getEndPoint();\n double dx = end.getX() - start.getX();\n double dy = end.getY() - start.getY();\n rotation = Math.atan2(dx, dy) - (Math.PI / 2.0);\n tx = (dx / 2.0) + start.getX();\n ty = (dy / 2.0) + start.getY();\n x = -textBounds.getWidth() / 2.0;\n \n y = 0;\n \n if (offset > 0.0) { // to the left of the line\n y = -offset;\n } else if(offset < 0) {\n y = -offset + textBounds.getHeight();\n } else {\n y = textBounds.getHeight() / 2;\n }\n \n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"offset = \" + offset + \" x = \" + x + \" y \" + y);\n }\n }\n \n Halo halo = symbolizer.getHalo();\n \n if (halo != null) {\n drawHalo(halo, tx, ty, x, y, gv, feature, rotation);\n }\n \n renderString(graphics, tx, ty, x, y, gv, feature, symbolizer.getFill(), rotation);\n }",
"public static ComponentBuilder<?, ?> createCustomTitleComponent(String label) {\n\n StyleBuilder bold12CenteredStyle = stl.style(boldStyle).setFontSize(12);\n StyleBuilder bold16CenteredStyle = stl.style(boldStyle).setFontSize(16).setForegroundColor(new Color(0, 0, 0));\n //StyleBuilder italicStyle = stl.style(rootStyle).italic();\n ComponentBuilder<?, ?> logoComponent = cmp.verticalList(\n //cmp.image(Templates.class.getResource(\"/logopalm.png\")).setFixedDimension(150, 60),\n cmp.text(label).setStyle(bold16CenteredStyle).setHorizontalAlignment(HorizontalAlignment.CENTER) \n );\n return logoComponent;\n }",
"java.lang.String getLabel();",
"@Override\n\tpublic void drawShape(Graphics2D g) {\n\t\tsuper.drawShape(g);\n\t\trect.drawAndFillShape(g);\n\t\tuiText.drawShape(g);\n\t}",
"Label getLabel();",
"Label getLabel();",
"Label getLabel();",
"public void setLabel( String label )\n { \n this.label = label;\n show_text();\n }",
"public String getLabelText(){\n\t\treturn syncExec(new StringResult() {\t\t\n\t\t\t@Override\n\t\t\tpublic String run() {\n\t\t\t\tControl[] aux = widget.getParent().getChildren();\n\t\t\t\tfor (Control control : aux) {\n\t\t\t\t\tif (control instanceof CLabel){\n\t\t\t\t\t\treturn ((CLabel)control).getText();\n\t\t\t\t\t}\n\t\t\t\t\tif (control instanceof Label){\n\t\t\t\t\t\treturn ((Label)control).getText();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\t\t});\n\t}",
"void renderString(Graphics2D graphic, double x, double y, double dx, double dy, GlyphVector gv,\n Feature feature, Fill fill, double rotation) {\n AffineTransform temp = graphic.getTransform();\n AffineTransform labelAT = new AffineTransform();\n \n Point2D mapCentre = new java.awt.geom.Point2D.Double(x, y);\n Point2D graphicCentre = new java.awt.geom.Point2D.Double();\n temp.transform(mapCentre, graphicCentre);\n labelAT.translate(graphicCentre.getX(), graphicCentre.getY());\n \n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"rotation \" + rotation);\n }\n \n double shearY = temp.getShearY();\n double scaleY = temp.getScaleY();\n double scaleX = temp.getScaleX();\n double originalRotation = Math.atan(shearY / scaleY);\n \n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"originalRotation \" + originalRotation);\n }\n \n labelAT.rotate(rotation - originalRotation);\n \n double xToyRatio = Math.abs(scaleX / scaleY);\n labelAT.scale(xToyRatio, 1.0 / xToyRatio);\n graphic.setTransform(labelAT);\n \n applyFill(graphic, fill, feature);\n \n // we move this to the centre of the image.\n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"about to draw at \" + x + \",\" + y + \" with the start of the string at \"\n + (x + dx) + \",\" + (y + dy));\n }\n \n graphic.drawGlyphVector(gv, (float) dx, (float) dy);\n // tl.draw(graphic, (float) dx, (float) dy);\n \n //graphics.drawString(label,(float)x,(float)y);\n resetFill(graphic);\n graphic.setTransform(temp);\n \n return;\n }",
"public void createLabels()\n {\n title = new JLabel(\"Game Over\");\n title.setForeground(Color.RED);\n title.setFont(new Font(title.getFont().getName(), Font.PLAIN, 42));\n title.setAlignmentX(Component.CENTER_ALIGNMENT);\n\n roundLabel = new JLabel(\"CPU was infected on round \"+roundLost);\n roundLabel.setForeground(Color.RED);\n roundLabel.setFont(new Font(title.getFont().getName(), Font.PLAIN, 18));\n roundLabel.setAlignmentX(Component.CENTER_ALIGNMENT);\n }",
"private JLabel createResultLabel() {\r\n JLabel resultLabel = new JLabel(\"Result\");\r\n resultLabel.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n resultLabel.setBorder(new EmptyBorder(8, 8, 8, 8));\r\n setResultLabelText(resultLabel);\r\n resultLabel.setFont(new Font(null, Font.BOLD, 30));\r\n return resultLabel;\r\n }",
"private Label createScoreLabel(){\n Label text;\n Label.LabelStyle textStyle;\n BitmapFont font = new BitmapFont();\n\n textStyle = new Label.LabelStyle();\n textStyle.font = font;\n\n text = new Label(\"Score:\",textStyle);\n text.setAlignment(Align.center);\n text.setFontScale(2f*scale,2f*scale);\n text.setPosition(stage.getViewport().getCamera().viewportWidth * 0.5f,\n stage.getViewport().getCamera().viewportHeight * 0.70f);\n return text;\n }",
"public static HorizontalLayoutContainer FuncLabelToolItem(String textHtml) {\n\t\tSafeHtml labelHtml = SafeHtmlUtils.fromTrustedString(\"<left><font color='#909090' style='font-size:24px;font-weight:bold;'>\"+ textHtml +\"</font>\");\r\n\t\tLabelToolItem labelToolItem = new LabelToolItem(labelHtml);\r\n//\t\tlabelToolItem.setSize(\"200\", \"130\");\r\n//\t\tlabelToolItem.setLayoutData(new Margins(200, 0, 0, 0));\r\n\r\n\t\tHorizontalLayoutContainer hlc = new HorizontalLayoutContainer();\r\n\t\tHorizontalLayoutData hld = new HorizontalLayoutData();\r\n\t\tMargins margins = new Margins();\r\n\t\tmargins.setTop(60);\r\n\t\thld.setMargins(margins);\r\n\t\thlc.setWidth(210);\r\n\t\thlc.setHeight(134);\r\n\t\thlc.add(labelToolItem, hld);\r\n\t\t\r\n\t\treturn hlc;\r\n\t}",
"private void vbox_text(Group vbox, String text){\n vbox.getChildren().clear();\n vbox.setLayoutX(400);\n vbox.setLayoutY(100);\n\n Label label_help = new Label(text);\n label_help.setFont(Font.font(\"Cambria\", 20));\n label_help.setTextFill(Color.web(\"#000000\"));\n label_help.setWrapText(true);\n\n BorderPane canvasBorderPane = new BorderPane();\n canvasBorderPane.setPadding(new Insets(5));\n canvasBorderPane.setBackground(new Background(new BackgroundFill(Color.WHITE, new CornerRadii(0), Insets.EMPTY)));\n canvasBorderPane.setCenter(label_help);\n\n BorderPane border = new BorderPane();\n border.setCenter(canvasBorderPane);\n border.setPadding(new Insets(5));\n border.setBackground(new Background(new BackgroundFill(Color.GREY, new CornerRadii(0), Insets.EMPTY)));\n\n vbox.getChildren().add(border);\n }",
"public StatusLabel (GlContext ctx)\n {\n super(ctx, \"\");\n }",
"private void drawDynamicLabels(Graphics2D g2d, RenderContext myrc, String dyn_labeler_copy) {\n long start_time = System.currentTimeMillis();\n\t// Get the node information for the one directly under the mouse\n\tString str;\n if (myrc.node_coord_set.get(dyn_labeler_copy).size() == 1) { // It's a single node -- just get the first string\n\t str = myrc.node_coord_set.get(dyn_labeler_copy).iterator().next();\n\t} else { // It's a group node -- summarize appropriately\n\t str = Utils.calculateCIDR(myrc.node_coord_set.get(dyn_labeler_copy)); \n\t}\n\tPoint2D pt = myrc.node_coord_lu.get(dyn_labeler_copy);\n\tint txt_w = Utils.txtW(g2d,str), txt_h = Utils.txtH(g2d,str);\n\tclearStr(g2d, str, (int) (pt.getX() - txt_w/2), (int) (pt.getY() + 2*txt_h), RTColorManager.getColor(\"label\", \"defaultfg\"), RTColorManager.getColor(\"label\", \"defaultbg\"));\n\tArea already_taken = new Area(new Rectangle2D.Double(pt.getX()-txt_w/2,pt.getY()+txt_h,txt_w,txt_h));\n\n\t// Draw the neighbors\n Set<String> set = myrc.node_coord_set.get(entity_to_sxy.get(str));\n\tif (set != null) {\n\t // First iteration is to make sure the actual geometrical shapes are in the \"already_taken\" area\n Iterator<String> it = set.iterator();\n\t while (it.hasNext() && (System.currentTimeMillis() - start_time < 1000L)) {\n\t String node = it.next();\n int node_i = graph.getEntityIndex(node);\n\t for (int i=0;i<graph.getNumberOfNeighbors(node_i);i++) {\n\t int nbor_i = graph.getNeighbor(node_i, i);\n\t String nbor = graph.getEntityDescription(nbor_i);\n\t if (entity_to_sxy.containsKey(nbor)) { \n Shape shape = myrc.node_to_geom.get(entity_to_sxy.get(nbor));\n\t\tif (shape != null) {\n\t g2d.setColor(RTColorManager.getColor(\"label\", \"major\")); g2d.draw(shape);\n\t Rectangle2D bounds = shape.getBounds2D(); already_taken.add(new Area(bounds));\n\t\t}\n\t }\n\t }\n\t }\n\t // Second iteration actually places them\n it = set.iterator();\n\t while (it.hasNext() && (System.currentTimeMillis() - start_time < 1000L)) {\n\t String node = it.next();\n int node_i = graph.getEntityIndex(node);\n\t for (int i=0;i<graph.getNumberOfNeighbors(node_i);i++) {\n\t int nbor_i = graph.getNeighbor(node_i, i);\n\t String nbor = graph.getEntityDescription(nbor_i);\n\t if (entity_to_sxy.containsKey(nbor)) { \n Shape shape = myrc.node_to_geom.get(entity_to_sxy.get(nbor));\n\t\tif (shape != null) {\n\t g2d.setColor(RTColorManager.getColor(\"label\", \"major\")); g2d.draw(shape);\n\t Rectangle2D bounds = shape.getBounds2D();\n\t\t txt_w = Utils.txtW(g2d,nbor); \n\t\t txt_h = Utils.txtH(g2d,nbor);\n\t\t Rectangle2D nbor_rect = new Rectangle2D.Double(bounds.getCenterX() - txt_w/2, bounds.getMaxY() + 0.1*txt_h, txt_w, txt_h);\n\t\t // Find a good location for the text rectangle -- needs to check for overlap with other rectangles\n\t\t int iteration = 0; boolean original = true; \n\t\t double dx = bounds.getCenterX() - pt.getX(), dy = bounds.getCenterY() - pt.getY(); double len = Math.sqrt(dx*dx+dy*dy);\n\t\t if (len < 0.001) { len = 1.0; dx = 0.0; dy = 1.0; } dx /= len; dy /= len; // Normalize the vector\n\t\t double pdx = -dy, pdy = dx; // Perpendicular vectors\n\t\t while (iteration < 20 && already_taken.intersects(nbor_rect)) { // search for a better location\n\t\t double distance = 15 * iteration / 3, perp_distance = 10 * ((iteration % 3) - 1);\n\t\t nbor_rect = new Rectangle2D.Double(bounds.getCenterX() - txt_w/2 + dx*distance + pdx*perp_distance, \n\t\t bounds.getMaxY() + 0.1*txt_h + dy*distance + pdy*perp_distance, \n\t\t\t\t\t\t txt_w, txt_h);\n iteration++; original = false;\n }\n\t\t if (original == false) g2d.drawLine((int) nbor_rect.getCenterX(), (int) nbor_rect.getCenterY(), (int) bounds.getCenterX(), (int) bounds.getCenterY());\n\t clearStr(g2d, nbor, (int) nbor_rect.getMinX(), (int) nbor_rect.getMaxY(), RTColorManager.getColor(\"label\", \"defaultfg\"), RTColorManager.getColor(\"label\", \"defaultbg\"));\n\t\t already_taken.add(new Area(nbor_rect));\n\t }\n }\n\t }\n\t }\n\t}\n }",
"public void drawAllLabels(GL2 gl, GLU glu, float fScreenWidth, float fScreenHeight,\n\t\t\tfloat fHierarchyOuterRadius) {\n\n\t\ttextRenderer = new CaleydoTextRenderer(new Font(LABEL_FONT_NAME,\n\t\t\t\tLABEL_FONT_STYLE, LABEL_FONT_SIZE));\n\t\ttextRenderer.setColor(0, 0, 0, 1);\n\n\t\tfloat fXCenter = fScreenWidth / 2.0f;\n\t\tfloat fYCenter = fScreenHeight / 2.0f;\n\n\t\tfor (LabelInfo label : alLabels) {\n\n\t\t\tfloat fSegmentXCenter = label.getSegmentXCenter();\n\t\t\tfloat fSegmentYCenter = label.getSegmentYCenter();\n\t\t\tfloat fSegmentCenterRadius = label.getSegmentCenterRadius();\n\t\t\tfloat fUnitVectorX = 0;\n\t\t\tfloat fUnitVectorY = 0;\n\t\t\tfloat fBendPointX = 0;\n\t\t\tfloat fBendPointY = 0;\n\n\t\t\tif (fSegmentCenterRadius > 0) {\n\t\t\t\tfUnitVectorX = (1.0f / fSegmentCenterRadius) * fSegmentXCenter;\n\t\t\t\tfUnitVectorY = (1.0f / fSegmentCenterRadius) * fSegmentYCenter;\n\t\t\t\tfBendPointX = fUnitVectorX * fHierarchyOuterRadius * 1.05f;\n\t\t\t\tfBendPointY = fUnitVectorY * fHierarchyOuterRadius * 1.05f;\n\t\t\t}\n\t\t\tLabelContainer labelContainer = createLabelContainer(gl, label,\n\t\t\t\t\tLEFT_CONTAINER_SPACING, fYCenter + fBendPointY, fScreenHeight);\n\t\t\tArrayList<LabelContainer> alContainers = alLeftContainers;\n\n\t\t\tfloat fXMouseOverContainerPosition = fXCenter + fSegmentXCenter\n\t\t\t\t\t+ MARKER_RADIUS;\n\t\t\tif (fSegmentXCenter > 0) {\n\t\t\t\tlabelContainer.setContainerPosition(fScreenWidth\n\t\t\t\t\t\t- RIGHT_CONTAINER_SPACING - labelContainer.getWidth(),\n\t\t\t\t\t\tlabelContainer.getYContainerCenter());\n\t\t\t\talContainers = alRightContainers;\n\t\t\t\tfXMouseOverContainerPosition = fXCenter + fSegmentXCenter - MARKER_RADIUS\n\t\t\t\t\t\t- labelContainer.getWidth();\n\t\t\t}\n\n\t\t\tupdateContainerPositionOnControlBoxCollision(labelContainer, fXCenter);\n\n\t\t\tif (label.getSegmentLabelDepth() >= iMaxSegmentDepth) {\n\t\t\t\tlabelContainer.setContainerPosition(fXMouseOverContainerPosition,\n\t\t\t\t\t\tfYCenter + fSegmentYCenter);\n\t\t\t\tlabelContainer.draw(gl, true);\n\t\t\t\tdrawSegmentMarker(gl, glu, fXCenter + fSegmentXCenter, fYCenter\n\t\t\t\t\t\t+ fSegmentYCenter);\n\t\t\t} else if (!doesLabelCollide(labelContainer, alContainers, fXCenter\n\t\t\t\t\t+ fSegmentXCenter, fYCenter + fSegmentYCenter, fXCenter, fBendPointX)) {\n\t\t\t\talContainers.add(labelContainer);\n\n\t\t\t\tlabelContainer.draw(gl, true);\n\t\t\t\tdrawLink(gl, glu, fXCenter, fYCenter, fSegmentXCenter, fSegmentYCenter,\n\t\t\t\t\t\tfBendPointX, fBendPointY, labelContainer);\n\t\t\t}\n\t\t}\n\t}",
"public JLabel getRendering(String column, Object value);",
"protected synchronized void paintComponent(Graphics g) {\n /*Call the paintComponent of the super class*/\n super.paintComponent(g);\n\n /*Cast the object to a Graphics2D object*/\n Graphics2D g2 = (Graphics2D) g;\n\n /*Enable rendering Antialiasing and other rendering optimizations*/\n g2.setRenderingHint (RenderingHints.KEY_ANTIALIASING,\n RenderingHints.VALUE_ANTIALIAS_ON);\n\n g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,\n\t\t\t\t\tRenderingHints.VALUE_TEXT_ANTIALIAS_ON);\n\n\n /***\n * Loop through the List that holds all the shapes.\n * shapesBuffer list and Draw them on screen\n */\n for (int i=0; i<labelBuffer.size(); i++)\n {\n /*Get the Concept for each index i*/\n ShapesInterface currentConcept = (ShapesInterface) labelBuffer.get(i);\n\n \n /*Pass from the connected List*/\n if (currentConcept instanceof ShapeConcept || currentConcept instanceof ShapeLinking) {\n for (int k=0; k<currentConcept.getConnComponenetsList().size(); k++) {\n /*Get the center point of this Concept*/\n Point p1 = currentConcept.getCenter();\n Point p2 = ((ShapesInterface) currentConcept.getConnComponenetsList().get(k)).getCenter();\n \n //Point p2 = ((ShapeConcept) currentConcept.getConnComponenetsList().get(k)).getCenter();\n\n g2.draw(new Line2D.Double(p1.x, p1.y, p2.x, p2.y));\n }//end for\n }//end if check\n }//end for\n\n}",
"public MyJLabel() {\n super(\" \");\n this.setOpaque(true);\n this.setPreferredSize(new Dimension(10,10));\n }",
"public java.lang.String getLabel();",
"void addObjLabel(ObjLabel objLabel) {\n\n //make sure the Object gets notified of mouse movements\n objCanvas.addEventHandler(MouseEvent.MOUSE_MOVED, objLabel);\n objCanvas.drawLabel(objLabel);\n }",
"public Label(float x, float y, String text) {\n super(x, y);\n this.text = text;\n this.fontSize = DEFAULT_FONT_SIZE;\n this.font = DEFAULT_FONT;\n this.type = GraphicsObjectType.LABEL;\n }",
"public static void draw() {\n\t\tStdDraw.clear();\n\t\tStdDraw.text(.5, .90, hint);\n\t\tStdDraw.text(.5, .5, label);\n\t\tStdDraw.text(0.5, 0.3, textBeingEntered);\n\t\tStdDraw.show(0);\n\n\t}",
"private JLabel makeQuestionText(String question){\n\t\tint textPadding = 4;\n\t\tJLabel label = new JLabel(\"<HTML><div>\" + question + \"</div><HTML>\", SwingConstants.CENTER);\n\t\tFont font;\n\t\ttry{\n\t\t\tfont = FontMaker.getFont(PREFERRED_FONT, 24);\n\t\t}catch(IndexOutOfBoundsException | IOException | FontFormatException e){\n\t\t\tfont = FontMaker.getDefaultFont(24);\n\t\t}\n\t\tlabel.setFont(font);\n\t\tlabel.setForeground(Color.WHITE);\n\n\t\tint textWidth = FontMaker.getStringWidth(label.getFont(), questionBox.getGraphics(), question);\n\t\tlabel.setSize(new Dimension((textWidth + textPadding), questionBox.getHeight()));\n\t\treturn label;\n\t}",
"private void drawNameBox(Graphics g,int x,int y) {\n\t\tFontMetrics metrics = g.getFontMetrics(g.getFont());\n\t\t// get the height of a line of text in this\n\t\t// font and render context\n\t\tint hgt = metrics.getHeight();\n\t\t// get the advance of my text in this font\n\t\t// and render context\n\t\tint adv = metrics.stringWidth(name);\n\t\t// calculate the size of a box to hold the\n\t\t// text with some padding.\n\t\tColor c = g.getColor();\n\t\tg.setColor(new Color(1f, 1f, 1f, NAME_COVER_ALPHA));\n\t\tg.fillRect(x+NAME_OFFSET_X-1, y+NAME_OFFSET_Y-hgt-1, adv+2, hgt+2);\n\t\tg.setColor(c);\n\t}",
"private JLabel makeText(String text, Font font) {\n JLabel label = new JLabel(text, JLabel.CENTER);\n label.setFont(font);\n label.setForeground(RRConstants.BORDER_COLOR);\n return label;\n }",
"public WidgetLabelPanel(String labelText, Widget widget){\n\t\tsuper();\n\t\tthis.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);\n\t\tLabel myLabel = new Label(labelText);\n\t\tmyLabel.addStyleName(\"widgetLabel\");\n\t\tthis.add(myLabel);\n\t\tthis.add(widget);\n\t}",
"@Override\n\tpublic void setLabelText(String label) {\n\t}",
"String getLabel();",
"String getLabel();",
"@Override\n public void showLabel(Message message){\n\n clear(container);\n container.setLayout(new FlowLayout());\n errorLabel = new JLabel(message.toString());\n container.add(errorLabel);\n errorLabel.setLocation(475,108);\n errorLabel.setSize(100,100);\n applyChangesTo(container);\n\n\n }",
"private Label initLabel(DraftKit_PropertyType labelProperty, String styleClass) {\n PropertiesManager props = PropertiesManager.getPropertiesManager();\n String labelText = props.getProperty(labelProperty);\n Label label = new Label(labelText);\n label.getStyleClass().add(styleClass);\n return label;\n }",
"public void setLabelText(String text);",
"private LabelContainer createLabelContainer(GL2 gl, LabelInfo label,\n\t\t\tfloat fXContainerLeft, float fYContainerCenter, float fScreenHeight) {\n\n\t\tfloat fLabelScaling;\n\t\tLabelContainer labelContainer = null;\n\n\t\tif (iMaxSegmentDepth <= label.getSegmentLabelDepth()) {\n\t\t\tfLabelScaling = LABEL_FONT_SCALING_FACTOR;\n\t\t} else {\n\t\t\tfloat fSegmentScalingFactor = LABEL_FONT_SCALING_FACTOR\n\t\t\t\t\t* (((float) (iMaxSegmentDepth - 1) - (float) label\n\t\t\t\t\t\t\t.getSegmentLabelDepth()) * LABEL_SEGMENT_DEPTH_SCALING_PERCENT);\n\t\t\tfLabelScaling = (fSegmentScalingFactor > LABEL_FONT_SCALING_FACTOR) ? LABEL_MIN_FONT_SCALING_FACTOR\n\t\t\t\t\t: (LABEL_FONT_SCALING_FACTOR - fSegmentScalingFactor);\n\t\t}\n\n\t\tlabelContainer = new LabelContainer(fXContainerLeft, fYContainerCenter,\n\t\t\t\tfLabelScaling, textRenderer);\n\t\tif (iMaxSegmentDepth <= label.getSegmentLabelDepth()) {\n\t\t\tlcMouseOver = labelContainer;\n\t\t}\n\n\t\tlabelContainer.addLabelLines(gl, label.getLines());\n\n\t\tif (labelContainer.getTop() > fScreenHeight) {\n\t\t\tlabelContainer.setContainerPosition(labelContainer.getLeft(), fScreenHeight\n\t\t\t\t\t- (labelContainer.getHeight() / 2.0f));\n\t\t}\n\t\tif (labelContainer.getBottom() < 0) {\n\t\t\tlabelContainer.setContainerPosition(labelContainer.getLeft(),\n\t\t\t\t\tlabelContainer.getHeight() / 2.0f);\n\t\t}\n\n\t\treturn labelContainer;\n\t}",
"void setShapeLabel(String Label);",
"public void addLabel()\r\n {\r\n LabelFigure label = new LabelFigure();\r\n this.labels.add(label);\r\n add(label);\r\n }",
"public interface ILabelProvider<N> {\r\n\r\n\t/**\r\n\t * Returns a label for the given rectangle.\r\n\t * @param model the model the rectangle belongs to, never {@code null}\r\n\t * @param rectangle the rectangle for which to return a color, never {@code null}\r\n\t * @return a label, may be {@code null} if no label is to be displayed\r\n\t */\r\n\tString getLabel(ITreeModel<IRectangle<N>> model, IRectangle<N> rectangle);\r\n\r\n}",
"@Override\r\n\tpublic void render() {\n\t\tv.textFont(BODY_FONT);\r\n\t\tv.textAlign(LEFT);\r\n\t\tv.textSize(16);\r\n\r\n\t\tfor(Overlay overlay : overlays) {\r\n\t\t\toverlay.render();\r\n\t\t}\r\n\t}",
"private JLabel makeJLabel(String title, int x, int y, int width, int height) {\r\n JLabel label = new JLabel(title);\r\n label.setBounds(x, y, width, height);\r\n return label;\r\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n lblText = new javax.swing.JLabel();\n\n setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n setLayout(new java.awt.BorderLayout());\n\n lblText.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n lblText.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lblText.setText(\"content\");\n lblText.setOpaque(true);\n add(lblText, java.awt.BorderLayout.CENTER);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n lblText = new javax.swing.JLabel();\n\n setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n setLayout(new java.awt.BorderLayout());\n\n lblText.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n lblText.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lblText.setText(\"content\");\n lblText.setOpaque(true);\n add(lblText, java.awt.BorderLayout.CENTER);\n }",
"private void draw_text() {\n\t\tcopy_text_into_buffer();\n\t\tVoteVisApp.instance().image(text_buffer_, frame_height_ / 2,\n\t\t\t-text_graphics_.height / 2);\n\t}",
"private JLabel makeLabel(String title, boolean h1) {\n JLabel label = new JLabel(title);\n if (h1 == true) {//if the label is to be a title\n label.setForeground(themeColor);\n label.setFont(new Font(\"Terminal Bold\", Font.PLAIN, 48));\n } else {\n label.setFont(new Font(\"Terminal Bold\", Font.PLAIN, 25));\n label.setForeground(Color.white);\n }\n return label;\n\n }",
"public String getLabel();",
"public String getLabel();",
"public String getLabel();",
"public String getLabel();",
"public void draw(Graphics2D gc){\r\n\r\n Font curFont = gc.getFont();\r\n gc.setFont(font);\r\n Paint curColor = gc.getPaint();\r\n gc.setPaint(textColor);\r\n //gc.drawString(text, x, y); // This would look better but doesn't seem to work with hit testing.\r\n\r\n FontRenderContext frc = gc.getFontRenderContext();\r\n TextLayout textLayout = new TextLayout(text, font, frc);\r\n AffineTransform moveTo = AffineTransform.getTranslateInstance(x, y);\r\n textShape = textLayout.getOutline(moveTo);\r\n gc.fill(textShape);\r\n gc.setFont(curFont);\r\n gc.setPaint(curColor);\r\n }",
"private void setupLabelUI(Label l, String ff, double f, double w, Pos p, double x, double y) {\n\t\tl.setFont(Font.font(ff, f));\n\t\tl.setMinWidth(w);\n\t\tl.setAlignment(p);\n\t\tl.setLayoutX(x);\n\t\tl.setLayoutY(y);\n\t}",
"@Override\n public void renderLabels(final PoseStack mat, final int mouseX, final int mouseY)\n {\n int x = 83;\n int y = 20;\n parent.font.draw(mat, I18n.get(\"pokemob.gui.berry\"), x, y, 4210752);\n parent.font.draw(mat, I18n.get(\"pokemob.gui.store\"), x, y + 10, 4210752);\n parent.font.draw(mat, I18n.get(\"pokemob.gui.face\"), x, y + 20, 4210752);\n parent.font.draw(mat, I18n.get(\"pokemob.gui.empty\"), x, y + 30, 4210752);\n parent.font.draw(mat, I18n.get(\"pokemob.gui.face\"), x, y + 40, 4210752);\n y -= 5;\n\n if (this.berry.isMouseOver(mouseX, mouseY))\n {\n this.parent.renderTooltip(mat, TComponent.translatable(\"pokemob.gui.storage.berry\"), x, y);\n }\n if (this.storage.isMouseOver(mouseX, mouseY))\n {\n this.parent.renderTooltip(mat, TComponent.translatable(\"pokemob.gui.storage.storage\"), x, y);\n }\n if (this.storageFace.isMouseOver(mouseX, mouseY))\n {\n this.parent.renderTooltip(mat, TComponent.translatable(\"pokemob.gui.storage.storageFace\"), x, y);\n }\n if (this.empty.isMouseOver(mouseX, mouseY))\n {\n this.parent.renderTooltip(mat, TComponent.translatable(\"pokemob.gui.storage.empty\"), x, y);\n }\n if (this.emptyFace.isMouseOver(mouseX, mouseY))\n {\n this.parent.renderTooltip(mat, TComponent.translatable(\"pokemob.gui.storage.emptyFace\"), x, y);\n }\n\n super.renderLabels(mat, mouseX, mouseY);\n }",
"@Override\r\n public void paintComponent(Graphics g)\r\n {\n super.paintComponent(g);\r\n g.setColor(getParent().getBackground());\r\n g.fillRect(0, getHeight() / 2, getWidth(), getHeight());\r\n g.setColor(new Color(153, 153, 204));\r\n stringValue = Float.toString(_getValue());\r\n g.drawString(stringValue, getWidth() / 2 - (int) (stringValue.length() * 1.8f), getHeight() / 2 + 10);\r\n }",
"public MyGUIProgram() {\n Label MyLabel = new Label(\"Test string.\", Label.CENTER);\n this.add(MyLabel);\n\n }",
"public JLabel getJLabel(String txt) {\r\n\t\treturn new JLabel(txt);\r\n\t}",
"void setLabel(Label label);",
"private Widget getLabel(String text, final List defList) {\n Image newField = getNewFieldButton(defList);\n\n HorizontalPanel h = new HorizontalPanel();\n h.add(new SmallLabel(text)); h.add(newField);\n return h;\n\t}",
"public void run()\n\t{\n\t\tGLabel label = new GLabel(\"Hello world!\", 10, 10);\n\t\tadd(label);\n\t}",
"protected <T> String getLabelText(FormElement<T> element) {\n\t\treturn labelRenderer.getLabelText(element);\n\t}",
"private void createStartingLabel() {\n \tcreateLabel(myResources.getString(\"title\"), 1, 0, TITLE_FONT);\n }",
"public void paintComponent(Graphics g) {\n // Setup\n Graphics2D g2d = (Graphics2D) g; int txt_h = Utils.txtH(g2d, \"0\");\n g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\n // Paint the super\n super.paintComponent(g2d); \n\n // Get the render context and draw if it's valid\n RenderContext myrc = (RenderContext) rc;\n if (myrc != null) {\n // Draw the interactions\n drawInteractions(g2d, myrc);\n\n // Draw the edge lens\n if (mode() == UI_MODE.EDGELENS) drawEdgeLens(g2d, myrc);\n else if (mode() == UI_MODE.TIMELINE) drawTimeLine(g2d, myrc);\n\n // Draw the selection\n Set<String> sel = getRTParent().getSelectedEntities(); if (sel == null) sel = new HashSet<String>();\n if (sel.size() > 0 || sticky_labels.size() > 0) { drawSelectedEntities(g2d, myrc, sel, sticky_labels, txt_h);\n } else { String str = \"\" + mode(); modeColor(g2d); g2d.drawString(\"\" + str, 5, txt_h); }\n\n // Draw the dynamic labels -- under the mouse for context\n String dyn_labeler_copy = dyn_labeler;\n if (dyn_label_cbmi.isSelected() && \n dyn_labeler_copy != null && \n myrc.node_coord_set.containsKey(dyn_labeler_copy)) drawDynamicLabels(g2d, myrc, dyn_labeler_copy);\n\n // If graph info mode, provide additional information\n if (myrc.provideGraphInfo()) { drawGraphInfo(g2d, myrc, sel); }\n\n // Draw the vertex placement heatmap (experimental)\n if (vertex_placement_heatmap_cbmi.isSelected()) {\n\t// Make sure it's a single selection (and that it's also a vertex);\n if (sel != null && sel.size() == 1) {\n\t String sel_str = sel.iterator().next(); if (entity_to_wxy.containsKey(sel_str)) {\n\t int hm_w = myrc.getRCWidth()/4, hm_h = myrc.getRCHeight()/4;\n\t // Determine if the heatmap will be large enough to provide value\n\t if (hm_w >= 50 && hm_h >= 50) {\n\t // Determine if the heatmap needs to be recalculated (doesn't consider if the size is still correct... or if the node shifted...\n\t if (hm_sel == null || hm_sel.equals(sel_str) == false || hm_bi == null) {\n\t hm_bi = GraphUtils.vertexPlacementHeatmap(new UniGraph(graph), sel_str, entity_to_wxy, hm_w, hm_h);\n\t\thm_sel = sel_str;\n }\n Composite orig_comp = g2d.getComposite(); g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.7f)); // Partially transparent\n\t g2d.drawImage(hm_bi, myrc.getRCWidth() - hm_bi.getWidth(null), myrc.getRCHeight() - hm_bi.getHeight(null), null);\n\t g2d.setComposite(orig_comp);\n\t }\n\t }\n\t}\n }\n\n // Draw the highlighted entities\n highlightEntities(g2d, myrc);\n\n // Draw the excerpts\n drawExcerpts(g2d, myrc);\n }\n\n // Draw the help chart\n if (draw_help) drawHelp(g2d);\n }",
"private void createLabels() {\n addLabels(\"Dog Name:\", 160);\n addLabels(\"Weight:\", 180);\n addLabels(\"Food:\", 200);\n }",
"protected Label getStyledGridLabel(Composite pParent, String pText, int pLabelStyle, int pFontStyle, int pGridDataStyle, int pHorizontalSpan) {\n\t\tLabel l = new Label(pParent, pLabelStyle);\n\t\tl.setFont(getStyledFont(pParent, pFontStyle));\n\t\tl.setText(pText);\n\t\tGridData data = new GridData(pGridDataStyle);\n\t\tdata.horizontalSpan = pHorizontalSpan;\n\t\tl.setLayoutData(data);\n\t\treturn l;\n\t}",
"String addLabel(String label);",
"public static JLabel newFormLabel(String text) {\n JLabel label = newLabel(text);\n label.setHorizontalAlignment(SwingConstants.RIGHT);\n label.setForeground(label.getForeground().brighter());\n return label;\n }"
]
| [
"0.65169877",
"0.64607483",
"0.62626344",
"0.62040025",
"0.6093153",
"0.606383",
"0.6059988",
"0.59618753",
"0.5949263",
"0.5937996",
"0.59244454",
"0.5834479",
"0.5809217",
"0.57729304",
"0.5766355",
"0.57610893",
"0.5722317",
"0.57129693",
"0.5703119",
"0.57020307",
"0.5699501",
"0.56878513",
"0.5660081",
"0.56545496",
"0.56384355",
"0.56278557",
"0.5614951",
"0.5607779",
"0.5587605",
"0.5574579",
"0.55519325",
"0.55499196",
"0.5543514",
"0.55332536",
"0.5533238",
"0.55189914",
"0.54992485",
"0.5487632",
"0.5486009",
"0.54833996",
"0.54760855",
"0.54760855",
"0.54760855",
"0.5455347",
"0.5440561",
"0.54247123",
"0.5415599",
"0.5414649",
"0.54144084",
"0.5400504",
"0.53941715",
"0.53867745",
"0.5377783",
"0.5374197",
"0.53702337",
"0.53678846",
"0.53634787",
"0.534388",
"0.5342285",
"0.5338319",
"0.5337952",
"0.53296185",
"0.53295803",
"0.53282154",
"0.5328094",
"0.53248227",
"0.5322326",
"0.5322326",
"0.532183",
"0.5314712",
"0.53097636",
"0.5303644",
"0.5300757",
"0.5297514",
"0.5296785",
"0.5294565",
"0.52866757",
"0.5285096",
"0.5285096",
"0.5281399",
"0.52808976",
"0.5278287",
"0.5278287",
"0.5278287",
"0.5278287",
"0.5270685",
"0.5261733",
"0.52603364",
"0.52459115",
"0.5239368",
"0.52370626",
"0.52366054",
"0.52346325",
"0.52259606",
"0.52239335",
"0.5222975",
"0.52206457",
"0.52190936",
"0.5216298",
"0.52162415",
"0.5215092"
]
| 0.0 | -1 |
Computes the bounds of the entity (smallest rectangle containing all elements of the entity) and caches the result. | protected void computeBounds() {
bounds = new Rectangle(layout.location.x - icon.getIconWidth() / 2,
layout.location.y - icon.getIconHeight() / 2, icon.getIconWidth(), icon.getIconHeight()).union(labelBox)
.union(ports[0].getBounds()).union(ports[1].getBounds()).union(ports[2].getBounds())
.union(component.getType() == TemplateComponent.TYPE_CHANNEL
? ports[3].getBounds().union(supHalo.getBounds())
: ports[3].getBounds());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void computeStoredBounds()\n {\n computeSRectangleBound();\n computeCircleBound();\n }",
"public Bounds getBounds () { return (bounds); }",
"Rectangle getModelExtent() {\n Iterator elements = getIterator();\n Rectangle rect = new Rectangle(); // An empty rectangle\n Element element; // Stores an element\n while(elements.hasNext()) { // Go through the list\n element = (Element)elements.next(); // Get the next element\n rect.add(element.getBounds()); // Expand union\n }\n if(rect.width == 0) // Make sure width\n rect.width = 1; // is non-zero\n if(rect.height == 0) // and the height\n rect.height = 1;\n return rect;\n }",
"protected Rectangle determineBounds() {\n return getNetTransform().createTransformedShape( _bounds ).getBounds();\n }",
"Rectangle getBounds();",
"public final BoundingBox getBounds() {\n\t\tif (bounds==null) {\n\t\t\tint srsID =( (Geometry)this.get(0).getDefaultGeometry()).getSRID();\n\t\t\tBoundingBox re = new BoundingBoxImpl(\"\"+srsID);\n\t\t\tfor (SimpleFeature f : this) {\n\t\t\t\tre.include(f.getBounds());\n\t\t\t}\n\t\t\tbounds = re;\n\t\t}\n\t\treturn bounds;\n\t}",
"public void computeSRectangleBound()\n {\n this.savedSRectangleBound = getSRectangleBound();\n }",
"@Override\n\tpublic GRectangle getBounds() {\n\t\tif (isEmpty()) {\n\t\t\treturn new GRectangle();\n\t\t} else {\n\t\t\tGPoint p0 = points.get(0);\n\t\t\tdouble minX = p0.getX();\n\t\t\tdouble maxX = minX;\n\t\t\tdouble minY = p0.getY();\n\t\t\tdouble maxY = minY;\n\t\t\tfor (int i = 1; i < size(); i++) {\n\t\t\t\tGPoint p1 = points.get(i);\n\t\t\t\tminX = Math.min(minX, p1.getX());\n\t\t\t\tmaxX = Math.max(maxX, p1.getX());\n\t\t\t\tminY = Math.min(minY, p1.getY());\n\t\t\t\tmaxY = Math.max(maxY, p1.getY());\n\t\t\t}\n\t\t\treturn new GRectangle(minX, maxX, minY, maxY);\n\t\t}\n\t}",
"public ERectangle getPrimitiveBounds() {\n ERectangle primitiveBounds = this.primitiveBounds;\n if (primitiveBounds != null) return primitiveBounds;\n return this.primitiveBounds = computePrimitiveBounds();\n }",
"@Override\n public List<Bound> getBounds() {\n return Collections.unmodifiableList(bounds);\n }",
"public abstract Rectangle getBounds();",
"public abstract Rectangle getBounds();",
"public abstract Rectangle getBounds();",
"public abstract Rectangle getSnapshotBounds();",
"public int getBound();",
"public Rectangle getBounds()\n {\n return new Rectangle ((int)x,(int)y,32,32);\n }",
"public Rectangle getBoundsBigger() {\n return new Rectangle(x-32,y-32,128,128);\n }",
"@Override\n public Rectangle getBounds() {\n return new Rectangle(x,y,64,64);\n }",
"public Rectangle getBounds() {\n\treturn new Rectangle((int)x,(int)y,32,32);\n\t}",
"public Rectangle getBounds();",
"public Rectangle getBounds();",
"public Rectangle getBounds(){\r\n return new Rectangle(x, y, w, w);\r\n }",
"public Rectangle getBounds() {\n return new Rectangle(x, y, 32, 32);\n }",
"public Rectangle getBounds() {\r\n return bounds;\r\n }",
"public ReferencedEnvelope getBounds(){\n if(bounds==null){\n // Create Null envelope\n this.bounds = new ReferencedEnvelope(getCRS());\n // First try to find the BBOX definition in the gisNode directly\n try{\n if(gisNode.hasProperty(INeoConstants.PROPERTY_BBOX_NAME)){\n double[] bbox = (double[])gisNode.getProperty(INeoConstants.PROPERTY_BBOX_NAME);\n this.bounds = new ReferencedEnvelope(bbox[0],bbox[1],bbox[2],bbox[3],crs);\n }else{\n System.err.println(\"No BBox defined in the GeoNeo object\");\n }\n }catch(Exception bbox_e){\n System.err.println(\"Failed to interpret BBOX: \"+bbox_e.getMessage());\n bbox_e.printStackTrace(System.err);\n }\n // Secondly, if bounds is still empty, try find all feature geometries and calculate bounds\n try{\n if(this.bounds.isNull()){\n // Try to create envelope from any data referenced by the gisNode\n for(GeoNode node:getGeoNodes()){\n //TODO: support high dimensions\n this.bounds.expandToInclude(node.getCoords()[0], node.getCoords()[1]);\n }\n }\n }catch(Exception bbox_e){\n System.err.println(\"Failed to interpret BBOX: \"+bbox_e.getMessage());\n bbox_e.printStackTrace(System.err);\n }\n }\n return bounds;\n }",
"public Rectangle2D getBounds2D() {\n/* 155 */ if (this.usePrimitivePaint) {\n/* 156 */ Rectangle2D primitiveBounds = this.node.getPrimitiveBounds();\n/* 157 */ if (primitiveBounds == null) {\n/* 158 */ return new Rectangle2D.Double(0.0D, 0.0D, 0.0D, 0.0D);\n/* */ }\n/* 160 */ return (Rectangle2D)primitiveBounds.clone();\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 168 */ Rectangle2D bounds = this.node.getBounds();\n/* 169 */ if (bounds == null) {\n/* 170 */ return new Rectangle2D.Double(0.0D, 0.0D, 0.0D, 0.0D);\n/* */ }\n/* */ \n/* 173 */ AffineTransform at = this.node.getTransform();\n/* 174 */ if (at != null) {\n/* 175 */ bounds = at.createTransformedShape(bounds).getBounds2D();\n/* */ }\n/* 177 */ return bounds;\n/* */ }",
"public Rectangle bounds()\n\t{\n\t\treturn (new Rectangle(x, y, 10, 10));\n\t}",
"@Override\r\n\tpublic Rectangle getBound() {\n\t\treturn new Rectangle((int)x, (int)y, (int)width, (int)height);\r\n\t}",
"Rectangle getBoundingBox(Rectangle rect);",
"public Rectangle getBound(){\n \tint x = (int)location.getX();\n \tint y = (int)location.getY();\n \t\n \tif(isExploded == false)\n \t\treturn new Rectangle(x, y, image.getWidth(null), image.getHeight(null));\n \telse\n \t\treturn new Rectangle(x,y, 1,1);\n }",
"public RectF getBounds()\n {\n return bounds;\n }",
"public BoundsObject getBounds() {\n\t\treturn null;\n\t}",
"public Rectangle get_bounds() {\n return new Rectangle(x,y, width-3, height-3);\n }",
"public Rectangle getBounds() {\r\n return new Rectangle(x, y, 55, 51);\r\n }",
"public abstract void recalculateSnapshotBounds();",
"private List<Rectangle> getRectanglesToConsiderForBranchingVarCalculation () {\r\n \r\n List<Rectangle> rectanglesToConsider = new ArrayList<Rectangle> ();\r\n \r\n //for every constraint, see if it has rects at the best lp\r\n \r\n for (Map <Double, List<Rectangle>> rectMap: myInfeasibleRectanglesList) {\r\n for (List<Rectangle> rectList : rectMap.values()) { \r\n \r\n rectanglesToConsider.addAll(rectList );\r\n \r\n } \r\n }\r\n \r\n return rectanglesToConsider;\r\n }",
"private void calculateChunkBounds()\n\t{\n\t\tchunkBounds[BOUND_LEFT] = ChunkUtils.convertXCoord((int) (cameraX - (viewportWidth / zoom) / ChunkUtils.LOADING_DISTANCE_FACTOR));\n\t\tchunkBounds[BOUND_RIGHT] = ChunkUtils.convertXCoord((int) (cameraX + (viewportWidth/zoom)/ChunkUtils.LOADING_DISTANCE_FACTOR));\n\t\tchunkBounds[BOUND_BOTTOM] = ChunkUtils.convertYCoord((int) (cameraY - (viewportHeight/zoom)/ChunkUtils.LOADING_DISTANCE_FACTOR));\n\t\tchunkBounds[BOUND_TOP] = ChunkUtils.convertYCoord((int) (cameraY + (viewportHeight/zoom)/ChunkUtils.LOADING_DISTANCE_FACTOR));\n\t}",
"public float[] getBounds() {\r\n\t\tfloat[] bounds = {x_ - width_/ 2, x_ + width_ / 2, y_ - height_ / 2, y_ + height_ / 2};\r\n\t\treturn bounds;\r\n\t}",
"Rectangle getBounds() {\n return new Rectangle(getLocation(), getSize());\n }",
"public void calculateBoundsAABB() {\n\t\tsuper.minY = 0;\n\t\tradius = 0;\n\t\tmaxY = 0;\n\t\tminX = 999999;\n\t\tmaxX = -999999;\n\t\tmaxZ = -99999;\n\t\tminZ = 99999;\n\t\tfor (int j = 0; j < vertexCount; j++) {\n\t\t\tint x = vertexX[j];\n\t\t\tint y = vertexY[j];\n\t\t\tint z = vertexZ[j];\n\t\t\tif (x < minX) {\n\t\t\t\tminX = x;\n\t\t\t}\n\t\t\tif (x > maxX) {\n\t\t\t\tmaxX = x;\n\t\t\t}\n\t\t\tif (z < minZ) {\n\t\t\t\tminZ = z;\n\t\t\t}\n\t\t\tif (z > maxZ) {\n\t\t\t\tmaxZ = z;\n\t\t\t}\n\t\t\tif (-y > super.minY) {\n\t\t\t\tsuper.minY = -y;\n\t\t\t}\n\t\t\tif (y > maxY) {\n\t\t\t\tmaxY = y;\n\t\t\t}\n\t\t\tint radiusSqr = (x * x) + (z * z);\n\t\t\tif (radiusSqr > radius) {\n\t\t\t\tradius = radiusSqr;\n\t\t\t}\n\t\t}\n\t\tradius = (int) Math.sqrt(radius);\n\t\tminDepth = (int) Math.sqrt((radius * radius) + (super.minY * super.minY));\n\t\tmaxDepth = minDepth + (int) Math.sqrt((radius * radius) + (maxY * maxY));\n\t}",
"@NonNull\n public Rect getBounds() {\n return new Rect(mBounds);\n }",
"public PBounds getBoundsReference() {\n\t\tPBounds bds = super.getBoundsReference();\n\t\tgetUnionOfChildrenBounds(bds);\n\n\t\tcachedChildBounds.setRect(bds);\n\t\tdouble scaledIndent = INDENT/renderCamera.getViewScale();\t\t\n\t\tbds.setRect(bds.getX()-scaledIndent,bds.getY()-scaledIndent,bds.getWidth()+2*scaledIndent,bds.getHeight()+2*scaledIndent);\n\t\t\n\t\treturn bds;\n\t}",
"public MWC.GenericData.WorldArea getBounds()\r\n\t{\n\t\treturn null;\r\n\t}",
"public Rectangle getBounds()\r\n\t{\r\n\t\treturn new Rectangle(x, y, w, h);\r\n\t}",
"public PBounds computeFullBounds(PBounds dstBounds) {\n\t\tPBounds result = getUnionOfChildrenBounds(dstBounds);\n\t\t\n\t\tcachedChildBounds.setRect(result);\t\t\n\t\tresult.setRect(result.getX()-INDENT,result.getY()-INDENT,result.getWidth()+2*INDENT,result.getHeight()+2*INDENT);\n\t\tlocalToParent(result);\n\t\treturn result;\t\t\n\t}",
"public Rectangle getBounds() {\n return null;\n }",
"public java.awt.Rectangle getBounds(){\r\n return new java.awt.Rectangle((int)Math.round(x), (int)Math.round(y), (int)Math.round(getWidth()), (int)Math.round(getHeight()));\r\n }",
"public abstract Rectangle getSnapshotSquareBounds();",
"public Rectangle getBounds() {\n\t\tif (bounds == null) {\n\t\t\tsuper.getBounds();\n\t\t\tfor (int i = 0; i < getChildren().size(); i++) {\n\t\t\t\tIFigure child = (IFigure) getChildren().get(i);\n\t\t\t\tbounds.union(child.getBounds());\n\t\t\t}\n\t\t}\n\t\treturn bounds;\n\t}",
"public RMRect bounds() { return new RMRect(x(), y(), width(), height()); }",
"public boolean getBoundsVolatile() {\n\t\treturn true;\n\t}",
"public String getRectangleBounds() {\n checkAvailable();\n return impl.getRectangle();\n }",
"public Bounds get() {\n\treturn bounds;\n }",
"RectangleLatLng getBounds();",
"@Override\n public Rectangle getBounds() {\n return new Rectangle(this.bounds);\n }",
"public Rectangle getBounds() {\n\t\treturn new Rectangle((int) xPos, (int) yPos, (int) width, (int) height);\n\t}",
"public RMRect getBounds() { return new RMRect(getX(), getY(), getWidth(), getHeight()); }",
"@Override\n public STRegion getBoundingBox() {\n\n SQLiteDatabase db = this.getReadableDatabase();\n\n String query = \"SELECT minX FROM \" + this.table_identifier + \" ORDER BY minX ASC LIMIT 1;\";\n float minX = getRowValueHelper(db, query, 0);\n query = \"SELECT minY FROM \" + this.table_identifier + \" ORDER BY minY ASC Limit 1;\";\n float minY = getRowValueHelper(db, query, 0);\n query = \"SELECT minT FROM \" + this.table_identifier + \" ORDER BY minT ASC Limit 1;\";\n float minT = getRowValueHelper(db, query, 0);\n query = \"SELECT maxX FROM \" + this.table_identifier + \" ORDER BY maxX DESC Limit 1;\";\n float maxX = getRowValueHelper(db, query, 0);\n query = \"SELECT maxY FROM \" + this.table_identifier + \" ORDER BY maxY DESC Limit 1;\";\n float maxY = getRowValueHelper(db, query, 0);\n query = \"SELECT maxT FROM \" + this.table_identifier + \" ORDER BY maxT DESC Limit 1;\";\n float maxT = getRowValueHelper(db, query, 0);\n\n return new STRegion(new STPoint(minX, minY, minT), new STPoint(maxX, maxY, maxT));\n }",
"public Bounds getBounds() {\n\t\treturn boss.getBoundsInParent();\n\t}",
"@Override\n\tpublic Rectangle getBound() {\n\t\trectBound.setX(posX+20);\n\t\trectBound.setY(Y_LAND - image.getHeight() +10);\n\t\trectBound.setWidth(image.getWidth()-10);\n\t\trectBound.setHeight(image.getHeight());\n\t\treturn rectBound;\n\t}",
"public Rectangle2D getBounds() {\n\t\tif (_child == null) {\n\t\t\treturn new Rectangle2D.Double();\n\t\t} else {\n\t\t\treturn _child.getBounds();\n\t\t}\n\t}",
"public Rectangle getBounds() {\n\t\treturn new Rectangle(getX(),getY(),width, width);\n\t}",
"private float[] getBounds(TileCoolantPipe tile) {\n float[] bounds = new float[6];\n boolean[] connected = tile.getConnectedSides();\n float hDiameter = cableDiameter / 2.0F;\n for (ForgeDirection dir : ForgeDirection.VALID_DIRECTIONS) {\n float width = 0.5F;\n if (!connected[dir.ordinal()]) {//(sides & dir.flag) != dir.flag) {\n width = hDiameter;\n }\n if (dir.ordinal() % 2 == 0) {\n width *= -1;\n }\n bounds[dir.ordinal()] = 0.5F + width;\n }\n return bounds;\n }",
"public Rectangle getBounds() {\n return new Rectangle(x, y, DIAMETER, DIAMETER); // returns a rectangle with its dimensions\r\n }",
"public static Box getBoundingBox(Entity entity)\n\t{\n\t\treturn (new REntity(entity)).getBox().getBox();\n\t}",
"public RMRect getBoundsInside() { return new RMRect(0, 0, getWidth(), getHeight()); }",
"public Rectangle getBounds() {\n return new Rectangle(getMinX(), getMinY(), getWidth(), getHeight());\n }",
"public Rectangle getBounds() {\n\t\tRectangle Box = new Rectangle(x, y, 48, 48);\n\t\treturn Box;\n\t}",
"public Rect getBound() {\n return new Rect((int) (x - radius), (int) (y - radius), (int) (x + radius), (int) (y + radius));\n }",
"private Bounds getBounds(final Value value, final DebugContext context)\r\n throws ViewerException {\r\n Bounds b = new Bounds();\r\n Method getBoundsMethod = value.getMethod(context,\r\n \"getBounds\", \"java.awt.Rectangle\", null);\r\n Value bounds = value.invokeMethod(context, getBoundsMethod,\r\n null);\r\n String type = value.getType(context).getName(context);\r\n int dot = type.lastIndexOf('.');\r\n if (dot >= 0) {\r\n type = type.substring(dot + 1);\r\n }\r\n b.type = type;\r\n \r\n try {\r\n Method getTextMethod = value.getMethod(context, \"getText\",\r\n \"java.lang.String\", null);\r\n Value result = value.invokeMethod(context, getTextMethod,\r\n null);\r\n if (!result.isNull()) {\r\n String str = result.toString(context);\r\n if (str.length() > 10) {\r\n str = str.substring(0, 7) + \"...\";\r\n }\r\n b.type += \" \\\"\" + str + \"\\\"\";\r\n }\r\n }\r\n catch (ViewerException e) {\r\n }\r\n \r\n b.bounds.x = bounds.getFieldValue(context, \"x\").toInt(context);\r\n b.bounds.y = bounds.getFieldValue(context, \"y\").toInt(context);\r\n b.bounds.width = bounds.getFieldValue(context, \"width\").\r\n toInt(context);\r\n b.bounds.height = bounds.getFieldValue(context, \"height\").\r\n toInt(context);\r\n if (value.isInstanceOf(context, \"java.awt.Container\")) {\r\n Method getComponentsMethod = value.getMethod(context,\r\n \"getComponents\", \"java.awt.Component[]\", null);\r\n Value children;\r\n try {\r\n children = value.invokeMethod(context,\r\n getComponentsMethod, null);\r\n }\r\n catch (ViewerException e) {\r\n b.children = new Bounds[0];\r\n return b;\r\n }\r\n b.children = new Bounds[children.getArrayLength(context)];\r\n for (int c = 0; c < b.children.length; c++) {\r\n b.children[c] = getBounds(children.getArrayElement(context,\r\n c), context);\r\n }\r\n }\r\n return b; \r\n }",
"public abstract Regionlike getGridBounds();",
"@Override\n\tpublic Rect getHitbox() \n\t{\n\t\treturn _bounds;\n\t}",
"public Rectangle getBoundingBox() {\n\t\treturn getBounds();\n\t}",
"public BoundsLatLon getTileBounds(int x, int y)\n {\n return boundsCalculator.getTileBounds(x, y);\n }",
"public Rectangle getMinimalBoundingBox() {\n double xMin = Double.MAX_VALUE;\n double yMin = Double.MAX_VALUE;\n double xMax = -Double.MAX_VALUE;\n double yMax = -Double.MAX_VALUE;\n // look for minimal and maximal x and y\n for (VoronoiHalfEdge halfEdge : halfEdges) {\n Vector2D startPoint = halfEdge.getStartPoint();\n double currentX = startPoint.getX();\n double currentY = startPoint.getY();\n if (currentX < xMin) {\n xMin = currentX;\n }\n if (currentY < yMin) {\n yMin = currentY;\n }\n if (currentX > xMax) {\n xMax = currentX;\n }\n if (currentY > yMax) {\n yMax = currentY;\n }\n }\n return new Rectangle(new Vector2D(xMin, yMax - yMin), new Vector2D(xMax - xMin, yMin));\n }",
"public Bounds getLogicalBounds() {\n return getDragContext().getLogicalBounds();\n }",
"public Rectangle getBounds() {\n return new Rectangle((int) getX() - 20, (int) getY() - 20, 40, 40);\n }",
"private Bounds getTextureBounds() {\n\t\tfinal float boundsWidth = 2 * OFFSET_X;\n\t\tfinal float boundsHeight = 2 * OFFSET_Y;\n\t\t\n\t\t//Get the center point of the player, then subtract by offset\n\t\tfinal float x = (activePlayer.getX() + activePlayer.getWidth() / 2f) \n\t\t\t\t/ activePlayer.getScaleX() - OFFSET_X;\n\t\tfinal float y = (activePlayer.getY() - activePlayer.getHeight() / 2f) \n\t\t\t\t/ activePlayer.getScaleY() + OFFSET_Y + 1;\n\t\t\n\t\treturn new Bounds(x, y, boundsWidth, boundsHeight);\n\t}",
"int getBoundsWidth();",
"private int[] getBounds(Node node) {\n String[] boundsAttr = (((Element) node).getAttribute(\"bounds\")).replace(\"[\",\"\").split(\"[^0-9]\");\n int[] bounds = new int[boundsAttr.length];\n for (int i = 0; i < boundsAttr.length; i++) {\n bounds[i] = Integer.parseInt(boundsAttr[i]);\n }\n return bounds;\n }",
"public Rectangle getBounds() {\n return super.getBounds();\n }",
"int getBoundsX();",
"public Bounds getProbabilityBounds();",
"public void computeCircleBound()\n {\n this.savedCircleBound = getCircleBound();\n }",
"private Bounds getDrawBounds() {\n\t\tfinal float boundsWidth = 2 * OFFSET_X;\n\t\tfinal float boundsHeight = 2 * OFFSET_Y;\n\t\t\n\t\t//Get the center point of the player, then subtract by offset\n\t\tfinal float x = (activePlayer.getX() + activePlayer.getWidth() / 2f) \n\t\t\t\t/ activePlayer.getScaleX() - OFFSET_X;\n\n\t\tfinal float y = (activePlayer.getY() + activePlayer.getHeight() / 2f) \n\t\t\t\t/ activePlayer.getScaleY() - OFFSET_Y + 1;\n\t\t\n\t\treturn new Bounds(x, y, boundsWidth, boundsHeight);\n\t}",
"public Dimension getSize() {\n\t\t\t\tfor(Rectangle rec : boxes){\r\n\t\t\t\t\tbounds.union(rec);\r\n\t\t\t\t}\r\n\t\t\t\treturn bounds.getSize();\r\n\t\t\t}",
"@Override\n\tpublic Rectangle2D getBounds2D() {\n\t\treturn null;\n\t}",
"public Rectangle getBoundingBox() {\n return new Rectangle(this);\r\n }",
"public Rectangle2D getBounds() {\n\t\t// FIXME: these bounds REALLY need to be cached. But it's\n\t\t// painful because of the public members.\n\t\tif (stroke == null) {\n\t\t\treturn shape.getBounds2D();\n\t\t} else if (stroke instanceof BasicStroke) {\n\t\t\t// For some reason (antialiasing?) the bounds returned by\n\t\t\t// BasicStroke is off by one. This code works around it.\n\t\t\t// if all we want is the bounds, then we don't need to actually\n\t\t\t// stroke the shape. We've had reports that this is no longer\n\t\t\t// necessary with JDK1.3.\n\t\t\tRectangle2D rect = shape.getBounds2D();\n\t\t\tint width = (int) ((BasicStroke) stroke).getLineWidth() + 2;\n\t\t\treturn new Rectangle2D.Double(rect.getX() - width, rect.getY()\n\t\t\t\t\t- width, rect.getWidth() + width + width, rect.getHeight()\n\t\t\t\t\t+ width + width);\n\t\t} else {\n\t\t\t// For some reason (antialiasing?) the bounds returned by\n\t\t\t// BasicStroke is off by one. This code works around it.\n\t\t\t// We've had reports that this is no longer\n\t\t\t// necessary with JDK1.3.\n\t\t\tRectangle2D rect = stroke.createStrokedShape(shape).getBounds2D();\n\t\t\treturn new Rectangle2D.Double(rect.getX() - 1, rect.getY() - 1,\n\t\t\t\t\trect.getWidth() + 2, rect.getHeight() + 2);\n\t\t}\n\t}",
"@Override\r\n\tpublic Area getBoundsArea() {\n\t\treturn null;\r\n\t}",
"public void checkBounds(Scope scope) {\n}",
"int getBoundsHeight();",
"public Rectangle getBounds(Image sterowiec)\n {\n if(sterowiec == balon)\n return new Rectangle(wsp[0]+19, wsp[1]+8, 43, 63);\n else\n return new Rectangle(wsp[0]+7, wsp[1]+14, 69, 42);\n }",
"public Rectangle getBounds() {\n\t\t\treturn new Rectangle(x_pos, y_pos, getIconWidth(), getIconHeight());\n\t\t}",
"@Override\n \tpublic Rectangle2D GetBoundingBox() {\n\t\treturn null;\n \t}",
"public double[] get_bounds() {\n System.out.println ( \"section.get_bounds() called\" );\n double[] current_bounds = null;\n if (contours != null) {\n for (int i=0; i<contours.size(); i++) {\n ContourClass contour = contours.get(i);\n double[] cont_bounds = contour.get_bounds();\n if (cont_bounds != null) {\n if (current_bounds == null) {\n current_bounds = new double[4];\n current_bounds[0] = cont_bounds[0];\n current_bounds[1] = cont_bounds[1];\n current_bounds[2] = cont_bounds[2];\n current_bounds[3] = cont_bounds[3];\n } else {\n if (cont_bounds[0] < current_bounds[0]) current_bounds[0] = cont_bounds[0]; // minx\n if (cont_bounds[1] > current_bounds[1]) current_bounds[1] = cont_bounds[1]; // maxx\n if (cont_bounds[2] < current_bounds[2]) current_bounds[2] = cont_bounds[2]; // miny\n if (cont_bounds[3] > current_bounds[3]) current_bounds[3] = cont_bounds[3]; // maxy\n }\n }\n }\n }\n return ( current_bounds );\n }",
"@Override\n public GRectangle getBounds() {\n return null;\n }",
"public Rectangle getBounds() {\n\t\tif (img == null)\n\t\t\treturn new Rectangle();\n\t\treturn new Rectangle(new Dimension(img.getWidth(), img.getHeight()));\n\t}",
"private Dimension calculateCanvas() {\n \t\n \tint maxx=50;\n \tint minx=0;\n \tint maxy=50;\n \tint miny=0;\n \t\n \tVector v=Selector.getInstance().getAllEntitiesOnPanel();\n \tfor (int i=0; i<v.size(); i++) {\n \t\tEntity e =(Entity)v.elementAt(i);\n \t\tmaxx=Math.max(maxx,e.getX()+e.getWidth()+20);\n \t\tmaxy=Math.max(maxy,e.getY()+e.getHeight()+20);\n \t\tminx=Math.min(minx,e.getX()-20);\n \t\tminy=Math.min(miny,e.getY()-20);\n \t}\n \treturn new Dimension(maxx-minx,maxy-miny);\n }",
"private void reCalculateFullExtent(){\r\n\t\tif (graphics.size() > 0) {\r\n\t\t\tFGraphic g = (FGraphic) graphics.get(0);\r\n\t\t\tfullExtent = g.getGeom().getEnvelope();\r\n\t\t\tfor (int i = 1; i < graphics.size(); i++) {\r\n\t\t\t\tg = (FGraphic) graphics.get(i);\r\n\t\t\t\tEnvelope rAux = g.getGeom().getEnvelope();\r\n\r\n\t\t\t\tfullExtent.add(rAux);\r\n\t\t\t}\r\n\t\t}\r\n\t}"
]
| [
"0.68203753",
"0.6534264",
"0.64092964",
"0.6334577",
"0.6330494",
"0.63217413",
"0.6308599",
"0.62851125",
"0.6220515",
"0.61984",
"0.6196434",
"0.6196434",
"0.6196434",
"0.6179114",
"0.6169018",
"0.6142656",
"0.61341786",
"0.61236805",
"0.6120348",
"0.6117917",
"0.6117917",
"0.60867256",
"0.6075765",
"0.6065808",
"0.6061098",
"0.6009203",
"0.5996717",
"0.5994784",
"0.59687805",
"0.5956992",
"0.5950793",
"0.59473115",
"0.59330106",
"0.5930476",
"0.59298396",
"0.59262425",
"0.59213936",
"0.5888959",
"0.58874756",
"0.5886484",
"0.58805645",
"0.5878673",
"0.58693933",
"0.58141977",
"0.58108467",
"0.58101195",
"0.58005375",
"0.579667",
"0.57933915",
"0.5790937",
"0.5790271",
"0.57757884",
"0.57710445",
"0.5766196",
"0.5763595",
"0.57635784",
"0.57543015",
"0.57496464",
"0.5747569",
"0.5733457",
"0.5732713",
"0.57181907",
"0.57126886",
"0.57061344",
"0.5700891",
"0.57004416",
"0.56990814",
"0.5693445",
"0.56885296",
"0.56876737",
"0.56548876",
"0.56241435",
"0.56198186",
"0.5606694",
"0.5600721",
"0.5599591",
"0.5598574",
"0.5591867",
"0.5581358",
"0.55652684",
"0.55605674",
"0.5556066",
"0.5547167",
"0.5544835",
"0.55382454",
"0.5534194",
"0.55329865",
"0.55298364",
"0.5490494",
"0.5474662",
"0.5462696",
"0.54532063",
"0.54523385",
"0.54516846",
"0.5450258",
"0.5449673",
"0.5447586",
"0.5446894",
"0.54399896",
"0.5429444"
]
| 0.5487618 | 89 |
Renders the icon and the label of the entity in the given graphical context. This method is used internally by the other draw... methods. | private void drawCore(Graphics2D g2d) {
icon.paintIcon(g2d, layout.location.x - icon.getIconWidth() / 2, layout.location.y - icon.getIconHeight() / 2,
g2d.getColor());
labelBox.draw(g2d);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void render() {\n\t\tif (this.hidden) {\n\t\t\treturn;\n\t\t}\n\n\t\tsuper.render();\n\n\t\tthis.font.draw(Graphics.batch, this.label, this.getX(),\n\t\t\tthis.getY() + (this.getHeight() - this.font.getLineHeight()) / 2);\n\t}",
"public void draw(DrawingContext context) {\n\t\t\t\t}",
"private void drawEntity(Entity ent) {\n\t\tSprite entSprite = getSprite(ent.getName());\n\t\t\n\t\tglBindTexture(GL_TEXTURE_2D, entSprite.getTexture().getTextureID());\n\t\t\n\t\t// draw entity\n\t\tglBegin(GL_QUADS);\n\t\t{\n\t\t\tglTexCoord2f(0, 0);\n\t\t\tglVertex2d(ent.getX(), ent.getY());\n\t\t\tglTexCoord2f(1, 0);\n\t\t\tglVertex2d(ent.getX() + entSprite.getWidth(), ent.getY());\n\t\t\tglTexCoord2f(1, 1);\n\t\t\tglVertex2d(ent.getX() + entSprite.getWidth(), ent.getY() + entSprite.getHeight());\n\t\t\tglTexCoord2f(0, 1);\n\t\t\tglVertex2d(ent.getX(), ent.getY() + entSprite.getHeight());\n\t\t}\n\t\tglEnd();\n\t\t\n\t\tglBindTexture(GL_TEXTURE_2D, 0);\n\t}",
"public void\r DisplayIcon(CType display_context, int x, int y, int icon_number);",
"public void render(final Graphics2D g)\n\t\t{\n\t\t\t//draw label\n\t\t\tif(label instanceof String)\n\t\t\t{\n\t\t\t\tg.setColor(Color.BLACK);\n\t\t\t\tif(!((String)label).equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tg.drawString((String)label, coords[0], coords[1]+(coords[3]));\n\n\t\t\t\t\tif(obj instanceof Polygon)\n\t\t\t\t\t{\n\t\t\t\t\t\tg.drawPolygon((Polygon)obj);\n\t\t\t\t\t}\n\t\t\t\t\tif(obj instanceof Ellipse2D)\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal Ellipse2D e = (Ellipse2D)obj;\n\t\t\t\t\t\tg.drawOval((int)(e.getCenterX()-e.getWidth()/2), (int)(e.getCenterY()-e.getHeight()/2), (int)e.getWidth(), (int)e.getHeight());\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal Rectangle r = (Rectangle)obj;\n\t\t\t\t\t\tg.drawRect(r.x, r.y, r.width, r.height);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else\n\t\t\t{\n\t\t\t\tfinal Rectangle enclose = obj.getBounds();\n\n\t\t\t\tg.drawImage((Image)label, coords[0]-(enclose.width/2), coords[1]-(enclose.height/2), null);\n\t\t\t}\n\n\t\t\t//draw highlight by shape\n\t\t\tif(highlighted)\n\t\t\t{\n\t\t\t g.setColor(new Color(0x3333FF));\n\t\t\t\tg.setStroke(new BasicStroke(4));\n\t\t\t\tif(obj instanceof Polygon)\n\t\t\t\t{\n\t\t\t\t\tg.drawPolygon((Polygon)obj);\n\t\t\t\t}\n\t\t\t\telse if(obj instanceof Ellipse2D)\n\t\t\t\t{\n\t\t\t\t\tfinal Ellipse2D e = (Ellipse2D)obj;\n\t\t\t\t\tg.drawOval((int)(e.getCenterX()-e.getWidth()/2), (int)(e.getCenterY()-e.getHeight()/2), (int)e.getWidth(), (int)e.getHeight());\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tfinal Rectangle r = (Rectangle)obj;\n\t\t\t\t\tg.drawRect(r.x, r.y, r.width, r.height);\n\t\t\t\t}\n\t\t\t\tg.setStroke(new BasicStroke(1));\n\t\t\t\tg.setColor(Color.BLACK);\n\t\t\t}\n\t\t}",
"void drawGraphic(Component c, Graphics2D g, int x, int y)\n {\n mRawIcon.paintIcon(c, g, x, y);\n }",
"public void drawIconText(Graphics g, int mouseX, int mouseY) {\n super.drawIconText(g, mouseX, mouseY);\n\n if (!isEmpty()) {\n Icon intent = enemy.getIntent();\n if (intent.getBoundingBox().contains(mouseX, mouseY)) {\n intent.drawText(g, 25, 0, 150);\n }\n }\n }",
"public void displayIcon(Graphics g, int xPos, int yPos){\n\t\t\n\t}",
"@Override\n public void render() {\n sortEntities(Entity.getEntities());\n renderBackground();\n renderBattleState();\n if(selectedPc != null){\n MyGL2dRenderer.drawLabel(getSelectedPc().getCollisionBox().left - 4 * GameView.density() + cameraX,\n getSelectedPc().getCollisionBox().bottom - getSelectedPc().getCollisionBox().width() / 5 + cameraY,\n getSelectedPc().getCollisionBox().width() + 8 * GameView.density(),\n getSelectedPc().getCollisionBox().width() * 2 / 5,\n TextureData.selected_character_visual, 255);\n }\n if(!win){\n renderSpells();\n renderGold();\n }\n }",
"public static void drawStats(Graphics g, Entity entity, PixelPoint position, GraphicsFactory graphicsFactory){\n g.drawRect(position.x, position.y-PixelMap.MARGIN, (int)(PixelMap.TILE_WIDTH*3.5), (int)(PixelMap.AFTER_SPACE*3.5));\n\n BufferedImage icon = graphicsFactory.getGraphics(GraphicsFactory.ATTACK_ICON);\n OptionDrawer.drawOption(g, new PixelPoint(position.x+PixelMap.TILE_WIDTH/2, position.y), icon, entity.getAttack()+\"\");\n icon = graphicsFactory.getGraphics(GraphicsFactory.DEFENSE_ICON);\n OptionDrawer.drawOption(g, new PixelPoint(position.x+PixelMap.TILE_WIDTH/2, position.y+PixelMap.AFTER_SPACE), icon, entity.getDefense()+\"\");\n icon = graphicsFactory.getGraphics(GraphicsFactory.ARMOR_ICON);\n OptionDrawer.drawOption(g, new PixelPoint(position.x+PixelMap.TILE_WIDTH/2, position.y+PixelMap.AFTER_SPACE*2), icon, entity.getArmor()+\"\");\n\n icon = graphicsFactory.getGraphics(GraphicsFactory.RANGE_ICON);\n OptionDrawer.drawOption(g, new PixelPoint((int)(position.x+PixelMap.TILE_WIDTH*1.5), position.y), icon, entity.getRangeRadius()+\"\");\n icon = graphicsFactory.getGraphics(GraphicsFactory.MOVEMENT_ICON);\n OptionDrawer.drawOption(g, new PixelPoint((int)(position.x+PixelMap.TILE_WIDTH*1.5), position.y+PixelMap.AFTER_SPACE), icon, entity.getMovement()+\"\");\n icon = graphicsFactory.getGraphics(GraphicsFactory.VISION_ICON);\n OptionDrawer.drawOption(g, new PixelPoint((int)(position.x+PixelMap.TILE_WIDTH*1.5), position.y+PixelMap.AFTER_SPACE*2), icon, entity.getVisibilityRadius()+\"\");\n\n icon = graphicsFactory.getGraphics(GraphicsFactory.HEALTH_ICON);\n OptionDrawer.drawOption(g, new PixelPoint((int)(position.x+PixelMap.TILE_WIDTH*2.5), position.y), icon, entity.getMaxHealth()+\"\");\n icon = graphicsFactory.getGraphics(GraphicsFactory.UPKEEP_ICON);\n OptionDrawer.drawOption(g, new PixelPoint((int)(position.x+PixelMap.TILE_WIDTH*2.5), position.y+PixelMap.AFTER_SPACE), icon, entity.getUpkeep()+\"\");\n }",
"@Override\n public void paintComponent(Graphics g) {\n g.setColor(Color.WHITE);\n g.fillRect(0,0,super.getWidth(),super.getHeight());\n\n for (DrawableVector instruction : instructions){\n instruction.draw(g, getWidth(), getHeight());\n }\n if (currentInstruction != null){\n currentInstruction.draw(g, getWidth(), getHeight());\n }\n }",
"private void drawImage(){\n Integer resourceId = imageId.get(this.name);\n if (resourceId != null) {\n drawAbstract(resourceId);\n } else {\n drawNone();\n }\n }",
"public void paintComponent(Graphics g) {\n // Setup\n Graphics2D g2d = (Graphics2D) g; int txt_h = Utils.txtH(g2d, \"0\");\n g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\n // Paint the super\n super.paintComponent(g2d); \n\n // Get the render context and draw if it's valid\n RenderContext myrc = (RenderContext) rc;\n if (myrc != null) {\n // Draw the interactions\n drawInteractions(g2d, myrc);\n\n // Draw the edge lens\n if (mode() == UI_MODE.EDGELENS) drawEdgeLens(g2d, myrc);\n else if (mode() == UI_MODE.TIMELINE) drawTimeLine(g2d, myrc);\n\n // Draw the selection\n Set<String> sel = getRTParent().getSelectedEntities(); if (sel == null) sel = new HashSet<String>();\n if (sel.size() > 0 || sticky_labels.size() > 0) { drawSelectedEntities(g2d, myrc, sel, sticky_labels, txt_h);\n } else { String str = \"\" + mode(); modeColor(g2d); g2d.drawString(\"\" + str, 5, txt_h); }\n\n // Draw the dynamic labels -- under the mouse for context\n String dyn_labeler_copy = dyn_labeler;\n if (dyn_label_cbmi.isSelected() && \n dyn_labeler_copy != null && \n myrc.node_coord_set.containsKey(dyn_labeler_copy)) drawDynamicLabels(g2d, myrc, dyn_labeler_copy);\n\n // If graph info mode, provide additional information\n if (myrc.provideGraphInfo()) { drawGraphInfo(g2d, myrc, sel); }\n\n // Draw the vertex placement heatmap (experimental)\n if (vertex_placement_heatmap_cbmi.isSelected()) {\n\t// Make sure it's a single selection (and that it's also a vertex);\n if (sel != null && sel.size() == 1) {\n\t String sel_str = sel.iterator().next(); if (entity_to_wxy.containsKey(sel_str)) {\n\t int hm_w = myrc.getRCWidth()/4, hm_h = myrc.getRCHeight()/4;\n\t // Determine if the heatmap will be large enough to provide value\n\t if (hm_w >= 50 && hm_h >= 50) {\n\t // Determine if the heatmap needs to be recalculated (doesn't consider if the size is still correct... or if the node shifted...\n\t if (hm_sel == null || hm_sel.equals(sel_str) == false || hm_bi == null) {\n\t hm_bi = GraphUtils.vertexPlacementHeatmap(new UniGraph(graph), sel_str, entity_to_wxy, hm_w, hm_h);\n\t\thm_sel = sel_str;\n }\n Composite orig_comp = g2d.getComposite(); g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.7f)); // Partially transparent\n\t g2d.drawImage(hm_bi, myrc.getRCWidth() - hm_bi.getWidth(null), myrc.getRCHeight() - hm_bi.getHeight(null), null);\n\t g2d.setComposite(orig_comp);\n\t }\n\t }\n\t}\n }\n\n // Draw the highlighted entities\n highlightEntities(g2d, myrc);\n\n // Draw the excerpts\n drawExcerpts(g2d, myrc);\n }\n\n // Draw the help chart\n if (draw_help) drawHelp(g2d);\n }",
"public void draw() {\t\t\n\t\ttexture.draw(x, y);\n\t\tstructure.getTexture().draw(x,y);\n\t}",
"public void render(CliContext ctx);",
"public void displayOilIcon(Graphics g, int xPos, int yPos){\n\t\t\n\t}",
"public void draw(Graphics g) {\n image.paintIcon(null, g, xPos, yPos);\n }",
"@Override\n public void drawIcons(Graphics g) {\n drawStatus(g);\n\n int tileDimension = 120;\n\n if (!isEmpty()) {\n Icon intent = enemy.getIntent();\n intent.setPosition(getXGraphic() + (tileDimension / 2), getYGraphic() - (tileDimension / 3));\n intent.draw(g);\n }\n }",
"public void render(GraphicsContext aGraphicsContext) {\n for (EnemyFish currEnemyFish : fEnemyFishList) {\n currEnemyFish.getSprite().render(aGraphicsContext);\n }\n }",
"void renderString(Graphics2D graphic, double x, double y, double dx, double dy, GlyphVector gv,\n Feature feature, Fill fill, double rotation) {\n AffineTransform temp = graphic.getTransform();\n AffineTransform labelAT = new AffineTransform();\n \n Point2D mapCentre = new java.awt.geom.Point2D.Double(x, y);\n Point2D graphicCentre = new java.awt.geom.Point2D.Double();\n temp.transform(mapCentre, graphicCentre);\n labelAT.translate(graphicCentre.getX(), graphicCentre.getY());\n \n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"rotation \" + rotation);\n }\n \n double shearY = temp.getShearY();\n double scaleY = temp.getScaleY();\n double scaleX = temp.getScaleX();\n double originalRotation = Math.atan(shearY / scaleY);\n \n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"originalRotation \" + originalRotation);\n }\n \n labelAT.rotate(rotation - originalRotation);\n \n double xToyRatio = Math.abs(scaleX / scaleY);\n labelAT.scale(xToyRatio, 1.0 / xToyRatio);\n graphic.setTransform(labelAT);\n \n applyFill(graphic, fill, feature);\n \n // we move this to the centre of the image.\n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"about to draw at \" + x + \",\" + y + \" with the start of the string at \"\n + (x + dx) + \",\" + (y + dy));\n }\n \n graphic.drawGlyphVector(gv, (float) dx, (float) dy);\n // tl.draw(graphic, (float) dx, (float) dy);\n \n //graphics.drawString(label,(float)x,(float)y);\n resetFill(graphic);\n graphic.setTransform(temp);\n \n return;\n }",
"private void draw() {\n Graphics2D g2 = (Graphics2D) image.getGraphics();\n\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_HRGB);\n\n AffineTransform transform = AffineTransform.getTranslateInstance(0, height);\n transform.concatenate(AffineTransform.getScaleInstance(1, -1));\n g2.setTransform(transform);\n\n int width = this.width;\n int height = this.height;\n if (scale != 1) {\n g2.scale(scale, scale);\n width = (int) Math.round(width / scale);\n height = (int) Math.round(height / scale);\n }\n AbstractGraphics g = new GraphicsSWT(g2);\n\n g.setScale(scale);\n if (background != null) {\n g.drawImage(background, 0, 0, width, height);\n }\n\n synchronized (WFEventsLoader.GLOBAL_LOCK) {\n for (Widget widget : widgets) {\n if (widget != null) widget.paint(g, width, height);\n }\n }\n // draw semi-transparent pixel in top left corner to workaround famous OpenGL feature\n g.drawRect(0, 0, 1, 1, Color.WHITE, .5, PlateStyle.RectangleType.SOLID);\n\n g2.dispose();\n }",
"private void renderEntity(MapEntity entity) {\n\t\tdrawEntityTexture(entity);\n\t}",
"@Override\n\tpublic void draw() {\n\t\tbatch.begin();\n\t\t\n\t\t/**Only renders the logo if the max font size is greater than 0.*/\n\t\tfor(int size = 1; size <= maxLoadedSize && maxLoadedSize >= 1; size++) {\n\t\t\tBitmapFont font = Core.getGraphics().getFonts().get(size);\n\t\t\t/**Renders the logo text in the centre of the scene with the current largest loaded font size.*/\n\t\t\tfont.draw(batch, LOADING_TEXT,\n\t\t\t\t\t(getWidth() - FontLoader.getWidth(font, LOADING_TEXT)) / 2,\n\t\t\t\t\t(getHeight() - FontLoader.getHeight(font, LOADING_TEXT)) / 2);\n\t\t}\n\t\t\n\t\t/**Renders the appropriate loading flag if the text has finished loading.*/\n\t\tif(maxLoadedSize == FontLoader.MAX_SIZE) {\n\t\t\tBitmapFont infoFont = Core.getGraphics().getFonts().get(32);\n\t\t\t\n\t\t\tif(!physicsShapesLoaded) {\n\t\t\t\tinfoFont.draw(batch, \"Loading physics engine...\",\n\t\t\t\t\t\t(getWidth() - FontLoader.getWidth(infoFont, \"Loading physics shapes...\")) / 2,\n\t\t\t\t\t\t(getHeight() / 4));\n\t\t\t}\n\t\t}\n\t\t\n\t\tbatch.end();\n\t}",
"@Override\n public void draw(Graphics2D g2d) {\n g2d.drawImage(getBulletImg(), this.getX(), this.getY(), null);\n \n }",
"@Override\n\t\t\tpublic void render(com.google.gwt.cell.client.Cell.Context context,\n\t\t\t\t\tString value, SafeHtmlBuilder sb) {\n\t\t\t \n\t\t\t \t sb.appendHtmlConstant(\"<span class=\\\"ui-icon ui-icon-help\\\"></span>\");\n\t\t\t\n\t\t\t \n\t\t\t\t\n\t\t\t}",
"@Override\n\tpublic void draw(FontRenderer fontRenderer, int x, int y, int backgroundColor, int foregroundColor) {\n\t\tfontRenderer.drawString(this.displayName, x, y, foregroundColor);\n\t}",
"private void renderEntities() {\n\t\trenderEntityList(layerNegOneEntities);\n\t\trenderEntityList(layerZeroEntities);\n\t\trenderEntityList(layerOneEntities);\n\t}",
"@Override\n\t\t\tpublic void render(com.google.gwt.cell.client.Cell.Context context, AnswerProxy value, SafeHtmlBuilder sb) {\n\t\t\t if (value == null) {\n\t\t\t \t sb.appendHtmlConstant(\"<span class=\\\"ui-icon ui-icon-help\\\" style=\\\"margin:auto\\\"></span>\");\n\t\t\t return;\n\t\t\t }\n\t\t\t String validityIcon = \"<span class=\\\"ui-icon ui-icon-image\\\" style=\\\"margin:auto\\\"></span>\";\n\t\t\t sb.appendHtmlConstant(validityIcon);\n\t\t\t}",
"@Override\n public void paintComponent(Graphics g) {\n super.paintComponent(g); \n bground.paintIcon(this,g,0,0);\n importState().paintIcon(this,g,impButX,impButY);\n exportState().paintIcon(this,g,expButX,expButY);\n if(isExHover)\n if(isExportError())\n exError.paintIcon(this,g,errorX,errorY);\n }",
"@Override\r\n\tprotected void onDraw(LRenderSystem rs) {\n\r\n\t}",
"protected synchronized void paintComponent(Graphics g) {\n /*Call the paintComponent of the super class*/\n super.paintComponent(g);\n\n /*Cast the object to a Graphics2D object*/\n Graphics2D g2 = (Graphics2D) g;\n\n /*Enable rendering Antialiasing and other rendering optimizations*/\n g2.setRenderingHint (RenderingHints.KEY_ANTIALIASING,\n RenderingHints.VALUE_ANTIALIAS_ON);\n\n g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,\n\t\t\t\t\tRenderingHints.VALUE_TEXT_ANTIALIAS_ON);\n\n\n /***\n * Loop through the List that holds all the shapes.\n * shapesBuffer list and Draw them on screen\n */\n for (int i=0; i<labelBuffer.size(); i++)\n {\n /*Get the Concept for each index i*/\n ShapesInterface currentConcept = (ShapesInterface) labelBuffer.get(i);\n\n \n /*Pass from the connected List*/\n if (currentConcept instanceof ShapeConcept || currentConcept instanceof ShapeLinking) {\n for (int k=0; k<currentConcept.getConnComponenetsList().size(); k++) {\n /*Get the center point of this Concept*/\n Point p1 = currentConcept.getCenter();\n Point p2 = ((ShapesInterface) currentConcept.getConnComponenetsList().get(k)).getCenter();\n \n //Point p2 = ((ShapeConcept) currentConcept.getConnComponenetsList().get(k)).getCenter();\n\n g2.draw(new Line2D.Double(p1.x, p1.y, p2.x, p2.y));\n }//end for\n }//end if check\n }//end for\n\n}",
"public void render(MagnetContext aContext) throws RenderingException {\n // Resolve the attributes\n try {\n _theId = resolveValue(aContext, _theId);\n _theParent = resolveValue(aContext, _theParent);\n } catch (RenderingException re) { \n StringBuffer aBuffer = new StringBuffer(\"Unable to resolve an attribute of the\");\n if (_theId != null) {\n aBuffer.append(\" classpath \\'\").append(_theId).append(\"\\'\");\n } else {\n aBuffer.append(\" classpath\");\n }\n \n throw new RenderingException(aBuffer.toString(), re);\n }\n \n // Render the paths\n try {\n for (Path path: _thePaths) {\n path.render(aContext);\n }\n } catch (RenderingException re) {\n StringBuffer aBuffer = new StringBuffer(\"Unable to render the\");\n if (_theId != null) {\n aBuffer.append(\" classpath \\'\").append(_theId).append(\"\\'\");\n } else {\n aBuffer.append(\" classpath\");\n }\n \n throw new RenderingException(aBuffer.toString(), re);\n }\n }",
"public void update() {\r\n icon = new SimpleIcon(layout.tag, layout.color, DiagramElement.getGlobalFontRenderer());\r\n icon.setIsModule(component.getType() != TemplateComponent.TYPE_CHANNEL);\r\n icon.setFlagged(component.hasModel() && component.getModel().hasAnnotation(FLAG_MARK));\r\n int maxWidth = 3 * icon.getIconWidth();\r\n String[] words = layout.label.split(\" \");\r\n Vector<String> lines = new Vector<String>();\r\n int wordsConsumed = 0;\r\n while (wordsConsumed < words.length) {\r\n String line = \"\";\r\n int i;\r\n for (i = wordsConsumed; i < words.length; ++i) {\r\n line += words[i];\r\n if (getGlobalFontMetrics().stringWidth(line) > maxWidth) {\r\n break;\r\n }\r\n line += \" \";\r\n }\r\n if (i == words.length) // all left-over words fit\r\n {\r\n line = line.substring(0, line.length() - 1);\r\n lines.add(line);\r\n wordsConsumed = words.length;\r\n } else\r\n // some left-over words didn't fit\r\n {\r\n if (i == wordsConsumed) // the first left-over word was too long\r\n {\r\n lines.add(line);\r\n wordsConsumed++;\r\n } else\r\n // at least one left-over word fit\r\n {\r\n line = line.substring(0, line.lastIndexOf(\" \"));\r\n lines.add(line);\r\n wordsConsumed = i;\r\n }\r\n }\r\n }\r\n labelBox = new LabelBox(lines);\r\n int deltaX = -(labelBox.width / 2);\r\n int deltaY = icon.getIconHeight() / 2 + LABEL_SPACING;\r\n labelBox.x = layout.location.x + deltaX;\r\n labelBox.y = layout.location.y + deltaY;\r\n ports[0] = new Ellipse2D.Float(layout.location.x - icon.getIconWidth() / 2 - 2 * PORT_RADIUS - 1,\r\n layout.location.y - PORT_RADIUS, 2 * PORT_RADIUS, 2 * PORT_RADIUS);\r\n ports[1] = new Ellipse2D.Float(layout.location.x - PORT_RADIUS,\r\n layout.location.y - icon.getIconHeight() / 2 - 2 * PORT_RADIUS - 1, 2 * PORT_RADIUS, 2 * PORT_RADIUS);\r\n ports[2] = new Ellipse2D.Float(layout.location.x + icon.getIconWidth() / 2 + 1, layout.location.y - PORT_RADIUS,\r\n 2 * PORT_RADIUS, 2 * PORT_RADIUS);\r\n ports[3] = new Ellipse2D.Float(layout.location.x - PORT_RADIUS, (int) labelBox.getMaxY() + 1, 2 * PORT_RADIUS,\r\n 2 * PORT_RADIUS);\r\n if (component.getType() == TemplateComponent.TYPE_CHANNEL) {\r\n supHalo = new Ellipse2D.Float(layout.location.x + icon.getIconWidth() / 4,\r\n layout.location.y - icon.getIconHeight() / 4 - 2 * HALO_RADIUS, 2 * HALO_RADIUS, 2 * HALO_RADIUS);\r\n haloDX = -getGlobalFontMetrics().stringWidth(HALO_LABEL) / 2 + 1;\r\n haloDY = getGlobalFontMetrics().getAscent() / 2;\r\n }\r\n computeBounds();\r\n }",
"@Override\n\tprotected void drawGuiContainerForegroundLayer(int p_146979_1_, int p_146979_2_) {\n\t\tString s = this.tile.hasCustomInventoryName() ? this.tile.getInventoryName() : I18n.format(this.tile.getInventoryName(), new Object[0]);\n\t\tthis.fontRendererObj.drawString(s, this.xSize / 2 - this.fontRendererObj.getStringWidth(s) / 2, 6, 4210752);\n\t\tthis.fontRendererObj.drawString(I18n.format(\"container.inventory\", new Object[0]), 8, this.ySize - 96 + 2, 4210752);\n\t}",
"private void displayEntity(ArrayList<Entity> entities){\n for(Entity entity : entities)\n entity.printImage();\n }",
"void draw(GraphicsContext context);",
"public void draw(Graphics2D g2) {\n\t\tsuper.draw(g2);\n\t\tg2.setColor(Color.LIGHT_GRAY);\n\t\tif(this.getIsActive())\n\t\t\tg2.setColor(Color.BLUE);\n\t\tg2.fill(new Rectangle2D.Double(this.getX()+1,this.getY()+1,this.getDimension()-1,this.getDimension()/2 -1));\n\t\tg2.setColor(Color.BLACK);\n\t\tg2.setFont(new Font(\"SERIF\", Font.TRUETYPE_FONT, 13));\n\t\tg2.drawString(this.getLabel(), this.getX()+2, this.getY()+this.getDimension()/2 -2);\n\t}",
"@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}",
"protected void drawGuiContainerForegroundLayer(int par1, int par2)\n {\n String s = this.tileEntity.hasCustomInventoryName() ? this.tileEntity.getInventoryName() : I18n.format(this.tileEntity.getInventoryName(), new Object[0]);\n this.fontRendererObj.drawString(s, this.xSize / 2 - this.fontRendererObj.getStringWidth(s) / 2, 6, 4210752);\n this.fontRendererObj.drawString(I18n.format(\"container.inventory\", new Object[0]), 8, this.ySize - 96 + 2, 4210752);\n }",
"@Override\n public void paint(Graphics g, ImageObserver observer) {\n if (font != null)\n g.setFont(font);\n g.setColor(color);\n g.drawString(lName + \": \" + value, x, y);\n }",
"@Override\n\t\t\tpublic void render(com.google.gwt.cell.client.Cell.Context context, AnswerProxy value, SafeHtmlBuilder sb) {\n\t\t\t if (value == null) {\n\t\t\t \t sb.appendHtmlConstant(\"<span class=\\\"ui-icon ui-icon-help\\\" style=\\\"margin:auto\\\"></span>\");\n\t\t\t return;\n\t\t\t }\n\t\t\t String validityIcon = \"\";\n\t\t\t \n\t\t\t if(value != null && value.getQuestion() != null && value.getQuestion().getQuestionType() != null && value.getQuestion().getQuestionType().getQuestionType() != null && value.getQuestion().getQuestionType().getMultimediaType() != null) {\n\t\t\t \t switch (value.getQuestion().getQuestionType().getMultimediaType()) {\n\t\t\t\t\t\tcase Image: \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tvalidityIcon += \"<span class=\\\"ui-icon ui-icon-image\\\" style=\\\"margin:auto\\\"></span>\";\n\t\t\t\t\t\t break;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tcase Sound :\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tvalidityIcon += \"<span class=\\\"ui-icon ui-icon-signal-diag\\\" style=\\\"margin:auto\\\"></span>\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\tcase Video : \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tvalidityIcon += \"<span class=\\\"ui-icon ui-icon-video\\\" style=\\\"margin:auto\\\"></span>\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tvalidityIcon += \"<span class=\\\"ui-icon ui-icon-help\\\" style=\\\"margin:auto\\\"></span>\";\n\t\t\t\t\t\t break;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t }\n\t\t\t sb.appendHtmlConstant(validityIcon);\n\t\t\t}",
"@Override\r\n\tpublic void paint(Object g) {\n\t\tGraphics2D graphics = (Graphics2D) g;\r\n\t\t\r\n\t\t\r\n\t\tlargeFontMetrics = graphics.getFontMetrics(largeFont);\r\n\t\tmediumFontMetrics = graphics.getFontMetrics(mediumFont);\r\n\t\tsmallFontMetrics = graphics.getFontMetrics(smallFont);\t\r\n\t\tlargeHeight = largeFontMetrics.getHeight();\r\n\t\tmediumHeight = mediumFontMetrics.getHeight();\r\n\t\tsmallHeight = smallFontMetrics.getHeight();\t\r\n\t\tint firstLineYBase = largeHeight + FIRST_LINE_Y_OFFSET;\r\n\t\tint secondLineYBase = firstLineYBase + mediumHeight;\r\n\t\tint thirdLineYBase = secondLineYBase + smallHeight;\r\n\t\tint fourthLineYBase = thirdLineYBase + smallHeight;\t\t\r\n\t\tgraphics.setColor(ABOUT_BACKGROUND);\r\n\t\tgraphics.fillRect(BORDER_OFFSET,BORDER_OFFSET, drawComponent.getWidth() -BORDER_OFFSET*2, OBJECT_EDITOR_HEIGHT);\r\n\t\tgraphics.setColor(ABOUT_FOREGROUND);\r\n\t\tgraphics.setFont(largeFont);\r\n\t\tgraphics.drawString(OBJECT_EDITOR_NAME, LINE_X_OFFSET, OBJECT_EDITOR_Y + firstLineYBase);\t\r\n\t\tgraphics.setFont(mediumFont);\r\n//\t\tgraphics.drawString(\"(\" + objectEditorVersion + \": \" + objectEditorBuildTime + \")\", 90, 20);\r\n\t\tgraphics.drawString(versionDetails, LINE_X_OFFSET, OBJECT_EDITOR_Y + secondLineYBase );\t\r\n\t\tgraphics.setFont(smallFont);\r\n\t\tgraphics.drawString(AboutManager.getObjectEditorDescription().getCopyRight(), LINE_X_OFFSET, OBJECT_EDITOR_Y + thirdLineYBase);\r\n\t\tgraphics.drawString(AboutManager.getObjectEditorDescription().getPatent(), LINE_X_OFFSET, OBJECT_EDITOR_Y + fourthLineYBase);\r\n\t\tgraphics.setColor(STATUS_BACKGROUND);\r\n\t\tgraphics.fillRect(BORDER_OFFSET, STATUS_Y, drawComponent.getWidth() -BORDER_OFFSET*2, STATUS_HEIGHT);\r\n//\t\tgraphics.setColor(Color.DARK_GRAY);\r\n\t\tgraphics.setColor(STATUS_FOREGROUND);\r\n//\t\tgraphics.drawLine(0, 32, drawComponent.getWidth(), 33);\r\n\t\tgraphics.setFont(largeFont);\r\n//\t\tSystem.out.println(\"Drawstring edited object:\" + editedObject);\r\n//\r\n//\t\tSystem.out.println(\"Drawstring edited object toSTring:\" + editedObject.toString());\r\n//\t\tSystem.out.println(\"Drawstring firstLine Base:\" + firstLineYBase);\r\n\r\n//\t\tif (mainHeader != null)\r\n//\t\tgraphics.drawString( mainHeader.toString(), LINE_X_OFFSET, STATUS_Y + firstLineYBase);\r\n//\t\tSystem.out.println(\" Painting main header to string \");\r\n\r\n\t\tif (mainHeaderToString != null)\r\n\t\t\tgraphics.drawString( mainHeaderToString, LINE_X_OFFSET, STATUS_Y + firstLineYBase); // this will deadlock\r\n//\t\t\tgraphics.drawString( mainHeader.toString(), LINE_X_OFFSET, STATUS_Y + firstLineYBase);\r\n\r\n\r\n//\t\tgraphics.drawString( \"\" + editedObject + \"(\" + editorGenerationMessage + \")\", 5, 80);\r\n\t\tgraphics.setFont(mediumFont);\r\n\t\tgraphics.drawString( majorStepMessage, LINE_X_OFFSET, STATUS_Y + secondLineYBase);\r\n\t\tgraphics.setFont(smallFont);\t\t\r\n\t\tgraphics.drawString(statusMessage, LINE_X_OFFSET, STATUS_Y + thirdLineYBase);\r\n\t\tString timeString = \"(\" + numSeconds +\"s)\";\r\n\t\tgraphics.drawString( timeString, LINE_X_OFFSET, STATUS_Y + fourthLineYBase);\r\n\t\tint timeStringLength = smallFontMetrics.stringWidth(timeString);\r\n\t\tgraphics.setColor(PROGRESS_COLOR);\r\n\t\tgraphics.fillRect(LINE_X_OFFSET + timeStringLength + 3, STATUS_Y + fourthLineYBase -10, numSeconds*5, 12);\r\n\t\tgraphics.setColor(DEFINITION_BACKGROUND);\r\n\t\tgraphics.fillRect(BORDER_OFFSET, DEFINITION_Y, drawComponent.getWidth()-BORDER_OFFSET*2, drawComponent.getHeight()- DEFINITION_Y - BORDER_OFFSET);\t\r\n\t\tgraphics.setFont(largeFont);\r\n\t\tgraphics.setColor(DEFINITION_FOREGROUND);\r\n\t\tif (computerDefinition != null) {\r\n\t\tgraphics.drawString(computerDefinition.getWord(), LINE_X_OFFSET, DEFINITION_Y + firstLineYBase);\r\n\t\tgraphics.setFont(mediumFont);\r\n\t\tgraphics.drawString(computerDefinition.getMeaning(), LINE_X_OFFSET, DEFINITION_Y + secondLineYBase);\r\n\t\tgraphics.setFont(smallFont);\r\n\t\tgraphics.drawString(DEFINITIONS_BEHAVIOR_MESSAGE, LINE_X_OFFSET, DEFINITION_Y + thirdLineYBase);\r\n\t\t} else {\r\n\t\t\tgraphics.drawString(\"Missing definition file:\" + ComputerDefinitionsGenerator.DICTIONARY_FILE, LINE_X_OFFSET, DEFINITION_Y + firstLineYBase);\r\n\r\n\t\t}\r\n\t\t\r\n\t\tif (logoImage != null) {\r\n\t\t\tgraphics.drawImage(logoImage, LOGO_X, LOGO_Y, LOGO_WIDTH, LOGO_HEIGHT, drawComponent);\r\n//\t\t\tgraphics.drawImage(logoImage, LOGO_X, LOGO_Y, drawComponent);\r\n\r\n\t\t}\r\n//\t\tSystem.out.println(\"End Paint start view\");\r\n\r\n\r\n\r\n//\t\tgraphics.drawString(ComputerDefinitions.definitions[0], LINE_X_OFFSET, DEFINITION_Y + firstLineYBase);\r\n\r\n\r\n//\t\tgraphics.drawString(editorGenerationMessage, 10, 40);\r\n//\t\tgraphics.drawString(\"\" + numSeconds +\"s\", 50, 80);\r\n//\t\tgraphics.drawString(lastTraceable, 100, 100);\r\n\t}",
"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}",
"public void draw() {\n \n // TODO\n }",
"public void draw(Graphics g) {\n\t\tif (visible) {\n\t\t\tcurrentImage.paintIcon(this.c, g, x, y);\n\t\t}\n\t}",
"@Override\r\n public void draw() {\n }",
"@Override\n public void render() {\n DepictedItem item = getContent();\n checkedView.setChecked(item.isSelected());\n depictsLabel.setText(item.getName());\n description.setText(item.getDescription());\n final String imageUrl = item.getImageUrl();\n if (TextUtils.isEmpty(imageUrl)) {\n imageView.setImageURI(UriUtil.getUriForResourceId(R.drawable.ic_wikidata_logo_24dp));\n } else {\n imageView.setImageURI(Uri.parse(imageUrl));\n }\n }",
"void RenderString(GameContainer gameContainer, Graphics graphics)\r\n\t{\n\t\t\r\n\t}",
"public void draw(SpriteBatch batch, String text, float x, float y, GameContainer c, StyledText style);",
"@Override\n\t\tprotected void paintComponent(Graphics g) {\n\t\t\tint width = getWidth();\n\t\t\tint height = getHeight();\n\t\t\tint x = (width - icon.getIconWidth()) / 2;\n\t\t\tint y = icon.getIconHeight() / 2;\n\t\t\tg.setColor(Color.darkGray);\n\t\t\tg.fillRect(0, 0, width, height);\n\t\t\ticon.paintIcon(this, g, x, y);\n\t\t}",
"@Override\n\tpublic void drawShape(Graphics2D g) {\n\t\tsuper.drawShape(g);\n\t\trect.drawAndFillShape(g);\n\t\tuiText.drawShape(g);\n\t}",
"public void paintEntityGui(Entity entity, Graphics graphics, Camera camera, Minimap minimap)\r\n\t{\t\r\n\t\tif(entity.getFaction() == EntityConfiguration.PLAYER_FACTION)\r\n\t\t{\r\n\t\t\tgraphics.setColor(Color.green);\r\n\t\t}\r\n\t\telse if(entity.getFaction() == EntityConfiguration.BOT_FACTION)\r\n\t\t{\r\n\t\t\tgraphics.setColor(Color.red);\r\n\t\t}\r\n\t\telse if(entity.getId() == EntityConfiguration.RESSOURCE)\r\n\t\t{\r\n\t\t\tgraphics.setColor(Color.yellow);\r\n\t\t}\r\n\t\tgraphics.fillRect(entity.getPosition().getX() / GameConfiguration.TILE_SIZE * minimap.getGridMapWidth() + minimap.getFirstGridXOfMap(), \r\n\t\t\t\tentity.getPosition().getY() / GameConfiguration.TILE_SIZE * minimap.getGridMapHeight() + minimap.getFirstGridYOfMap(), \r\n\t\t\t\tminimap.getGridMapWidth(), minimap.getGridMapHeight());\r\n\t}",
"public void drawUI() {\n \n stroke(0);\n textSize(titleH/3);\n textAlign(CENTER, CENTER);\n rectMode(CORNER);\n \n noFill();\n rect(titleX, titleY, titleW, titleH);\n image(logo, 0, 0);\n fill(0);\n text(\"EPBox: Ordinering\", titleX, titleY, titleW, titleH-15);\n \n if (!informationSeen) {\n uielement.informationDialog(\"EPBox: Ordinering\", \"Velkommen til EPBox: Ordinering.\\n\\nHvis det er første gang du kører programmet, bedes du gå igennem opsætning af programmet.\\nMangler du hjælp til dette, kan du gå ind på de relevante menuer, eller konsultere brugsanvisningen.\", \"information\");\n informationSeen = true;\n }\n\n uielement.infoHelpBttnSTART(\"Hvis det er første gang du kører programmet, bedes du gå igennem opsætning af programmet.\\nMangler du hjælp til dette, kan du gå ind på de relevante menuer, eller konsultere brugsanvisningen.\");\n\n }",
"@Override\n\tpublic void draw() {\n\t}",
"@Override\n public void display(GLAutoDrawable drawable) {\n GL2 gl = drawable.getGL().getGL2();\n gl.glClear(GL2.GL_COLOR_BUFFER_BIT);\n\n DrawCircle(gl, 50, 50, 400);\n \n }",
"@Override\n\tpublic String extendCode(String initialSvgString, Label label) {\n\n\t\t//comment\n\t\tString commentString = createComment(label);\n\n\t\t//label image\n\t\tString imageSvgString = createImageSvgStringFromLabel(label);\n\n\t\t//text\n\t\tString text = label.getText();\n\n\t\t//background color\n\t\tString backgroundFill = determineBackgroundFill(label);\n\t\tboolean hasBackground = backgroundFill != null;\n\n\t\t//x & y\n\t\tList<Node> childNodes = label.getChildrenUnmodifiable();\n\t\tText textNode = null;\n\t\tfor (Node childNode : childNodes) {\n\t\t\tboolean isText = childNode instanceof Text;\n\t\t\tif (isText) {\n\t\t\t\ttextNode = (Text) childNode;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tObjects.requireNonNull(textNode, \"Could not retrive Text node from Label.\");\n\n\t\tBounds bounds = label.getBoundsInParent();\n\t\tDouble xl = bounds.getMinX();\n\t\tDouble yl = bounds.getMinY();\n\n\t\tBounds textBounds = textNode.getBoundsInParent();\n\t\tDouble xt = textBounds.getMinX();\n\t\tDouble yt = textBounds.getMinY();\n\n\t\tDouble x = xl + xt;\n\t\tDouble yField = yl + yt;\n\n\t\t//Bounds bounds = label.getBoundsInParent();\n\t\t//Double x = bounds.getMinX();\n\t\tboolean hasImage = !imageSvgString.isEmpty();\n\t\tif (hasImage) {\n\t\t\tNode image = label.getGraphic();\n\t\t\tDouble xOffset = image.getBoundsInParent().getMaxX();\n\t\t\tx = x + xOffset;\n\t\t}\n\t\tDouble baseLineOffset = label.getBaselineOffset();\n\t\tDouble y = yField + baseLineOffset;\n\n\t\t//font\n\t\tFont font = label.getFont();\n\t\tString fontFamily = font.getFamily();\n\t\tDouble fontSize = font.getSize();\n\n\t\t//font color\n\t\tPaint textFill = label.getTextFill();\n\t\tString fill = paintToColorString(textFill);\n\n\t\t//text anchor (horizontal alignment)\n\t\tSvgTextAnchor textAnchor = determineTextAnchor(label);\n\n\t\t//comment\n\t\tString svgString = commentString;\n\n\t\t//<rect> start\n\t\tboolean wrapInRect = hasImage || hasBackground;\n\t\tif (wrapInRect) {\n\t\t\tsvgString = includeRectStartTag(svgString, imageSvgString, backgroundFill, hasBackground, textBounds);\n\t\t}\n\n\t\t//<text> start\n\t\tsvgString = includeTextStartTag(svgString, x, y, fontFamily, fontSize, fill, textAnchor);\n\n\t\t//<text> content\n\t\tsvgString = svgString + text;\n\n\t\t//<text> end\n\t\tsvgString = svgString + \"</text>\\n\\n\";\n\n\t\t//<rect> end\n\t\tif (wrapInRect) {\n\t\t\tdecreaseIndentation();\n\t\t\tsvgString = includeRectEndTag(svgString);\n\t\t}\n\n\t\treturn svgString;\n\n\t}",
"public Component getTreeCellRendererComponent(\n JTree tree, //stablo koje se prikazuje\n Object value, //stavka koja se iscrtava \n boolean sel, //da li je stavka selektovana\n boolean expanded,\n boolean leaf, //da li je list\n int row,\n boolean hasFocus) {\n super.getTreeCellRendererComponent(tree, value, sel,expanded, leaf, row,hasFocus);\n \n \n if (value instanceof Entity ) {\n URL imageURL = getClass().getResource(\"gui_icons/table1.png\");\n Icon icon = null;\n if (imageURL != null) \n icon = new ImageIcon(imageURL);\n setIcon(icon);\n \n } else if (value instanceof InformationResource ) {\n \t URL imageURL=getClass().getResource(\"gui_icons/file.jpg\");\n Icon icon = null;\n if (imageURL != null) \n icon = new ImageIcon(imageURL);\n setIcon(icon);\n \n } else if (value instanceof Attribute ) {\n \t URL imageURL=getClass().getResource(\"gui_icons/attribute.png\");\n Icon icon = null;\n if (imageURL != null) \n icon = new ImageIcon(imageURL);\n setIcon(icon);\n \n } else if (value instanceof AttributeConstraint) {\n \tAttributeConstraint ac = (AttributeConstraint) value;\n \t URL imageURL=null;\n \t if (ac.getConstraintType() == ConstraintType.PRIMARY_KEY) imageURL=getClass().getResource(\"gui_icons/primary.png\");\n \t else if(ac.getConstraintType() == ConstraintType.FOREIGN_KEY) imageURL=getClass().getResource(\"gui_icons/imported.jpg\");\n \t else if(ac.getConstraintType() == ConstraintType.NOT_NULL) imageURL=getClass().getResource(\"gui_icons/notnull.png\");\n Icon icon = null;\n if (imageURL != null) \n icon = new ImageIcon(imageURL);\n setIcon(icon);\n \n } \n return this;\n}",
"@Override\n\tpublic void draw() {\n\n\t}",
"@Override\n\tpublic void draw() {\n\n\t}",
"public void draw(GraphicsContext gc) {\n\t\toriginalHelix.draw(gc);\n\t\tupperHelix.draw(gc);\n\t\tlowerHelix.draw(gc);\n\t\tmanager.draw(gc);\n\t}",
"protected void customCustomRendering(T entity, double x, double y, double z, float entityYaw, float partialTicks) {}",
"private void render() {\n\t\t// clear the screen and depth buffer\n\t\tglClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);\n\t\t\n\t\t// draws the background\n\t\tdrawScreen(sprite.get(\"background\"));\n\t\t\n\t\t// drawing player\n\t\tif (!stopDrawingPlayer)\n\t\t\tdrawEntity(player);\n\t\t// drawing bullets\n\t\tdrawListEntity(bullet);\n\t\t// drawing enemy bullets\n\t\tdrawListEntity(enemy_bullet);\n\t\t// drawing enemies\n\t\tdrawListEntity(enemy);\n\t\t// drawing powerups\n\t\tdrawListEntity(powerup);\n\t\t// drawing explosions\n\t\tdrawListEntity(explosion);\n\t\t\n\t\t// draw health\n\t\tdefaultFont.drawString(10, 10, \"Health: \" + player.getHP() + \"/1000\");\n\t\t// draw cash\n\t\tdefaultFont.drawString(10, 40, \"Cash: $\" + cash);\n\t\t// draw shop prompt\n\t\tdefaultFont.drawString(displayWidth - 280, displayHeight - 40, \"Press F to enter shop\");\n\t\t\n\t\tif (stopDrawingPlayer) {\n\t\t\t// draw Game Over\n\t\t\tgameOverFont.drawString(displayWidth / 2 - gameOverFont.getWidth(\"Game Over!\") / 2, displayHeight\n\t\t\t\t\t/ 2 - gameOverFont.getHeight(\"Game Over!\") / 2 - 50, \"Game Over!\");\n\t\t\t\n\t\t\t// draw the score\n\t\t\tscoreFont.drawString(displayWidth / 2 - scoreFont.getWidth(\"Score: \" + totalCash) / 2, displayHeight\n\t\t\t\t\t/ 2\n\t\t\t\t\t+ scoreFont.getHeight(\"Game Over!\")\n\t\t\t\t\t/ 2\n\t\t\t\t\t+ scoreFont.getHeight(\"Score: \" + totalCash)\n\t\t\t\t\t/ 2 + 10 - 50, \"Score: \" + totalCash);\n\t\t}\n\t}",
"@Override\n public void draw(final Object obj, final Component comp, final Graphics2D g2, final Rectangle rect) {\n Color color = (Color) AbstractDisplay.getProperty(obj, \"color\");\n if (color == null && obj instanceof Color) {\n color = (Color) obj;\n }\n Color textColor = (Color) AbstractDisplay.getProperty(obj, \"textColor\");\n if (textColor == null) {\n textColor = Color.BLACK;\n }\n if (color != null) {\n g2.setPaint(color);\n g2.fill(rect);\n if (color.equals(textColor)) {\n textColor = new Color(255 - textColor.getRed(),\n 255 - textColor.getGreen(), 255 - textColor.getBlue());\n }\n }\n String text = (String) AbstractDisplay.getProperty(obj, \"text\");\n if (text == null && !(obj instanceof Color)) {\n text = \"\" + obj;\n }\n if (text == null) {\n return;\n }\n if (text.length() > DefaultDisplay.MAX_TEXT_LENGTH) {\n text = text.substring(0, DefaultDisplay.MAX_TEXT_LENGTH) + \"...\";\n }\n this.paintCenteredText(g2, text, rect, 0.8, textColor);\n }",
"public void drawString(AttributedCharacterIterator iterator, float x, float y)\r\n\t{\r\n\t\t// System.out.println(\"drawString att2\");\r\n\t}",
"public void paintIcon(Component c, Graphics g, int x, int y)\n\t{\n\t\tGraphics2D g2 = (Graphics2D) g;\n\t\tshape.draw(g2);\n\t}",
"private void drawText(Graphics2D g, double xCenter, double yCenter, VisualItem item, String text, boolean drawBackground)\n {\n if (m_font == null) \n {\n m_font = item.getFont();\n m_font = FontLib.getFont(m_font.getName(), m_font.getStyle(), m_font.getSize());\n }\n \n g.setFont(m_font);\n FontMetrics fm = DEFAULT_GRAPHICS.getFontMetrics(m_font);\n int textH = fm.getHeight();\n int textW = fm.stringWidth(text);\n \n \t\t// Render a filled circular background\n if (drawBackground)\n {\n \tdouble radius = Math.max(textH, textW) / 2; \t\n \tEllipse2D circle = new Ellipse2D.Double(xCenter - radius, yCenter - radius, radius * 2, radius * 2);\n \tGraphicsLib.paint(g, item, circle, getStroke(item), RENDER_TYPE_FILL);\n }\n \n\t\t// Render the text \n\t\tint textColor = item.getTextColor();\n g.setPaint(ColorLib.getColor(textColor));\n\t\t\n\t boolean useInt = 1.5 > Math.max(g.getTransform().getScaleX(), g.getTransform().getScaleY());\n if ( useInt ) {\n g.drawString(text, (int)xCenter - textW/2, (int)yCenter + textH/2 - 3);\n } else {\n g.drawString(text, (float)xCenter - textW/2, (float)yCenter + textH/2 - 3);\n }\n }",
"@Override\n public void draw()\n {\n }",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\n protected void drawGuiContainerForegroundLayer(final int x, final int y)\n {\n final String containerName;\n\n if (grinder.isInvNameLocalized())\n {\n containerName = grinder.getInvName();\n } else\n {\n containerName = StatCollector.translateToLocal(grinder.getInvName());\n }\n\n fontRenderer.drawString(containerName, (xSize / 2) - (fontRenderer.getStringWidth(containerName) / 2), 3, 4210752);\n fontRenderer.drawString(StatCollector.translateToLocal(NBTConstants.INVENTORY), 9, (ySize - 96) + 3, 4210752);\n }",
"@Override\n public void draw() {\n }",
"void render() {\n\t\tif (!dragLock)\n\t\t\tfucusLocks();\n\n\t\t// display help information\n\t\tString selected = isSelected ? \" [selected]\" : \"\";\n\t\tmyParent.text(id + selected, anchor.x + 10, anchor.y);\n\n\t\t// display points and lines with their colourings\n\t\tfor (int i = 0; i < amount; i++) {\n\n\t\t\tpoint[i].render();\n\n\t\t\tif (state == State.DRAG_AREA)\n\t\t\t\tmyParent.stroke(255, 255, 0);\n\n\t\t\tline[i].draw();\n\n\t\t}\n\n\t\t// display rotation ellipse in anchor position\n\t\tif (state == State.ROTATE && isSelected) {\n\t\t\tmyParent.noFill();\n\t\t\tif (!dragLock)\n\t\t\t\tmyParent.stroke(255, 255, 0);\n\t\t\telse\n\t\t\t\tmyParent.stroke(0, 255, 0);\n\t\t\tmyParent.ellipse(anchor.x, anchor.y, 15, 15);\n\t\t}\n\n\t\t// display drag area rectangle in anchor position\n\t\tif (state == State.DRAG_AREA) {\n\t\t\tmyParent.noFill();\n\t\t\tif (!dragLock)\n\t\t\t\tmyParent.stroke(255, 255, 0);\n\t\t\telse\n\t\t\t\tmyParent.stroke(0, 255, 0);\n\t\t\tmyParent.rect(anchor.x, anchor.y, 15, 15);\n\t\t}\n\n\t\t// display anchor point\n\t\tmyParent.rect(anchor.x, anchor.y, 5, 5);\n\n\t\t// display line centres\n\t\tmyParent.noFill();\n\t\tmyParent.stroke(150);\n\t\tmyParent.rectMode(PConstants.CENTER);\n\t\tmyParent.rect(X.x, X.y, 5, 5);\n\t\tmyParent.rect(Y.x, Y.y, 5, 5);\n\t\tmyParent.rect(Z.x, Z.y, 5, 5);\n\t\tmyParent.rect(Q.x, Q.y, 5, 5);\n\t}",
"public void draw(GL2 gl)\r\n\t{\r\n\t\tdouble width = menu.getController().getWidth(), height = menu.getController().getHeight();\r\n\t\ttextRenderer.beginRendering((int)width, (int)height);\r\n\t\tif (mouseInBounds())\r\n\t\t\ttextRenderer.setColor(1f, 1f, 0f, 1f);\r\n\t\telse\r\n\t\t\ttextRenderer.setColor(1f, 1f, 1f, 1f);\r\n\t\tif (align == 0)\r\n\t\t\tdrawStringLeft(textRenderer, message, (int)(width*x), (int)(height*y));\r\n\t\tif (align == 1)\r\n\t\t\tdrawStringCenter(textRenderer, message, (int)(width*x), (int)(height*y));\r\n\t\tif (align == 2)\r\n\t\t\tdrawStringRight(textRenderer, message, (int)(width*x), (int)(height*y));\r\n\t\ttextRenderer.endRendering();\r\n\t}",
"public String toString() {\n return \"Entity(coordinates: \" + this.coordinates + \", icon: \" + this.icon\n + \")\";\n }",
"public void render() {\n uiBatch.begin();\n for (int x = 0; x < uiManager.getUIComponents().size();x++) {\n uiManager.getUIComponent(x).render(uiBatch, Assets.patch);\n }\n if (uiManager.dialogue != null) {\n uiManager.dialogue.render(uiBatch, Assets.patch);\n }\n if (!uiManager.notifications.isEmpty()) {\n uiManager.notifications.get(0).render(uiBatch, Assets.patch);\n }\n uiManager.partyMenu.render(uiBatch, Assets.patch);\n uiBatch.end();\n }",
"public void drawString(AttributedCharacterIterator iterator, int x, int y)\r\n\t{\r\n\t\t// System.out.println(\"drawString att\");\r\n\t}",
"@Override\n public void handlePaint()\n {\n for(GraphicObject obj : this.graphicObjects)\n {\n obj.draw();\n }\n \n }",
"public void render() { image.drawFromTopLeft(getX(), getY()); }",
"@Override\n\tpublic void draw(Graphics g, Point pCmpRelPrnt) {\n\t\t// TODO Auto-generated method stub\n\t\tPoint loc = super.getLocation();\n\t\tint x = (int) (pCmpRelPrnt.getX() - size/2); //get left hand corner from center of object\n\t\tint y = (int) (pCmpRelPrnt.getY() - size/2);\n\t\tint xCenter = (int) pCmpRelPrnt.getX() + (int) loc.getX();\n\t\tint yCenter = (int) pCmpRelPrnt.getY() + (int) loc.getY();\n\t\tg.setColor(color);\n\t\tif (isSelected()) \n\t\t\tg.drawRect(x + (int) loc.getX(), y + (int) loc.getY(), width, height);\n\t\telse \n\t\t\tg.fillRect(x + (int) loc.getX(), y + (int) loc.getY(), width, height);\n\t\tg.setColor(ColorUtil.BLACK);\n\t\tg.drawString(Integer.toString(capacity), xCenter, yCenter);\n\t}",
"public void draw(){\n\t\tcomponent.draw();\r\n\t}",
"public void render(Graphics g)\r\n\t{\r\n\t\tfor(Entity e : entities)\r\n\t\t{\r\n\t\t\te.render(g);\r\n\t\t}\t\r\n\t}",
"@Override\n\tpublic void draw(Graphics2D g2d) {\n\t\t\n\t}",
"public void paint(ScalableIcon container, Component c, Graphics g, int x, int y, int width, int height);",
"@Override\r\n\tpublic void render(Graphics g) {\r\n\t\tg.drawImage(Assets.taxi[image],(int)x,(int)y,width,height,null);\r\n\t}",
"@Override\n public void doRender(Entity par1Entity, double par2, double par4, double par6, float par8, float par9)\n {\n this.renderFish((EntityFish)par1Entity, par2, par4, par6, par8, par9);\n }",
"public void draw(Graphics2D gc){\r\n\r\n Font curFont = gc.getFont();\r\n gc.setFont(font);\r\n Paint curColor = gc.getPaint();\r\n gc.setPaint(textColor);\r\n //gc.drawString(text, x, y); // This would look better but doesn't seem to work with hit testing.\r\n\r\n FontRenderContext frc = gc.getFontRenderContext();\r\n TextLayout textLayout = new TextLayout(text, font, frc);\r\n AffineTransform moveTo = AffineTransform.getTranslateInstance(x, y);\r\n textShape = textLayout.getOutline(moveTo);\r\n gc.fill(textShape);\r\n gc.setFont(curFont);\r\n gc.setPaint(curColor);\r\n }",
"public void paintComponent(Graphics page) {\r\n super.paintComponent(page);\r\n IMAGE.paintIcon(this, page, x, y);\r\n }",
"void display(DisplayInfo info, Coordinates position, Graphics2D g, ImageObserver io);",
"public static void renderIconFor(MatrixStack matrix, PlayerSkillEnum skill, int x, int y, ProfessionsScreen.IconRenderType render) {\n\n Minecraft mc = Minecraft.getInstance();\n PlayerSkillData data = Load.playerRPGData(mc.player).professions\n .getDataFor(skill);\n\n mc.getTextureManager()\n .bind(Load.playerRPGData(mc.player).professions\n .getBackGroundTextureFor(skill));\n RenderSystem.color4f(1.0F, 1.0F, 1.0F, 1.0F);\n blit(matrix, x, y, BUTTON_SIZE_X, BUTTON_SIZE_X, BUTTON_SIZE_X, BUTTON_SIZE_X, BUTTON_SIZE_X, BUTTON_SIZE_X);\n\n mc.getTextureManager()\n .bind(ExileDB.PlayerSkills()\n .get(skill.id)\n .getIcon());\n RenderSystem.color4f(1.0F, 1.0F, 1.0F, 1.0F);\n blit(matrix, x + 7, y + 7, 16, 16, 16, 16, 16, 16);\n\n if (render == ProfessionsScreen.IconRenderType.OVERLAY || render == ProfessionsScreen.IconRenderType.SCREEN) {\n int lvl = data.getLvl();\n String lvltext = \"\" + lvl;\n TextUtils.renderText(matrix, 0.8F, lvltext, x + BUTTON_SIZE_X / 2, (int) (y + BUTTON_SIZE_Y * 0.85F), TextFormatting.YELLOW);\n }\n\n if (render == ProfessionsScreen.IconRenderType.SCREEN) {\n int exp = data.getExp();\n int needed = data.getExpNeededToLevel();\n\n String xptext = exp + \"/\" + needed;\n String nametext = CLOC.translate(skill.word.locName());\n\n //TextUtils.renderText(matrix, 1, nametext, x + BUTTON_SIZE_X / 2, y - 1, Formatting.GOLD);\n //TextUtils.renderText(matrix, 1, xptext, x + BUTTON_SIZE_X / 2, (int) (y + BUTTON_SIZE_Y * 1.55F), Formatting.GREEN);\n\n }\n }",
"public void render () {\n image (img, xC, yC, xLength * getPixelSize(), yLength * getPixelSize());\n }",
"public void draw() {\n\t\tGL11.glColor3f(0.5f,0.5f,1.0f);\n\t\n\t\t// draw quad\n\t\tGL11.glBegin(GL11.GL_QUADS);\n\t\t\tGL11.glVertex2f(x,y);\n\t\t\tGL11.glVertex2f(x+width,y);\n\t\t\tGL11.glVertex2f(x+width,y+height);\n\t\t\tGL11.glVertex2f(x,y+height);\n\t\tGL11.glEnd();\n\t\t\n\t\tif(text != null || !text.equals(\"\"))\n\t\t\tfont.drawString(text, x, y);\n\t\n\t}",
"public void displayMilitaryIcon(Graphics g, int xPos, int yPos){\n\t\t\n\t}",
"@Override\n\tpublic void addPrintLabelInfo(GUIPrintLabelDto printLabelEntity) {\n\t}",
"@Override\r\n\tpublic void render() {\n\t\t\r\n\t}",
"public void paintComponent(Graphics g, int width, int height) {\n g.setColor(Color.WHITE);\n g.fillRect(0,0,width,height);\n\n for (DrawableVector instruction : instructions){\n instruction.draw(g, width, height);\n }\n if (currentInstruction != null){\n currentInstruction.draw(g, width, height);\n }\n }",
"void render(GraphicsContext gc) {\n\t\tgc.save();\r\n\t\tAffine trans = new Affine();\r\n\t\ttrans.appendTranslation(locX, locY);\r\n\t\ttrans.appendRotation(angle);\r\n\t\t// draw the image using the specified transform\r\n\t\tgc.setTransform(trans);\r\n\t\tgc.drawImage(image, -radius, -radius);\r\n\t\t// Reset the transform (this is important)\r\n\t\tgc.restore();\r\n\t\t// Then draw bullets\r\n\t\tfor (Bullet b : bullets)\r\n\t\t\tb.render(gc);\r\n\r\n\t}",
"public void paintComponent(Graphics g) {\n Image image = ResourceManager.getImage(\"Declaration.image\");\n g.drawImage(image, 0, 0, null);\n }",
"private void draw_text() {\n\t\tcopy_text_into_buffer();\n\t\tVoteVisApp.instance().image(text_buffer_, frame_height_ / 2,\n\t\t\t-text_graphics_.height / 2);\n\t}",
"@Override\n public String toString() {\n String typeIcon = getTypeIcon();\n String statusIcon = getStatusIcon();\n return typeIcon\n + \" \"\n + statusIcon\n + this.description\n + \" (at:\"\n + this.timeframe\n + \")\";\n }"
]
| [
"0.6115844",
"0.58350074",
"0.5806297",
"0.57782096",
"0.5755643",
"0.5676429",
"0.56624776",
"0.5613337",
"0.557312",
"0.55609465",
"0.5534119",
"0.55311143",
"0.54932773",
"0.54886264",
"0.5487098",
"0.54734856",
"0.5456487",
"0.5443561",
"0.5423401",
"0.540937",
"0.53941983",
"0.5386596",
"0.5353662",
"0.5345895",
"0.5325328",
"0.53137434",
"0.5299822",
"0.5293687",
"0.52774686",
"0.52744",
"0.5268056",
"0.52547175",
"0.5248678",
"0.5246148",
"0.5233418",
"0.5231455",
"0.5228355",
"0.5213708",
"0.5213708",
"0.5209868",
"0.520776",
"0.5205646",
"0.5191147",
"0.5190037",
"0.5180221",
"0.51740277",
"0.5166605",
"0.5154195",
"0.51357037",
"0.513134",
"0.51290035",
"0.5127033",
"0.5124043",
"0.51223344",
"0.5117082",
"0.5109141",
"0.5108918",
"0.5105679",
"0.5093712",
"0.5093712",
"0.5088169",
"0.50875",
"0.5072706",
"0.50726396",
"0.5069754",
"0.5068518",
"0.5063568",
"0.5062154",
"0.5059759",
"0.5059759",
"0.50566983",
"0.5054957",
"0.5054671",
"0.50511676",
"0.50415933",
"0.5039798",
"0.50356627",
"0.503498",
"0.5029759",
"0.50297457",
"0.50208193",
"0.5020112",
"0.50176525",
"0.5016357",
"0.501446",
"0.5005408",
"0.5004636",
"0.49996728",
"0.49970943",
"0.49892735",
"0.49799654",
"0.4978227",
"0.4974018",
"0.4971415",
"0.49665955",
"0.49661165",
"0.49658665",
"0.49632502",
"0.49619728",
"0.49600878"
]
| 0.6352609 | 0 |
Retrieve the location of the entity. | public Point getLocation() {
return layout.location;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Location getCurrentLocation() { return entity.getLocation(); }",
"public String getLocation() {\n return this.location;\n }",
"public String getLocation() {\n return this.location;\n }",
"public String getLocation() {\n return this.location;\n }",
"public String getLocation() {\n return this.location;\n }",
"public String getLocation() {\n return this.location;\n }",
"public String getLocation() {\n return this.location;\n }",
"public Reference location() {\n return getObject(Reference.class, FhirPropertyNames.PROPERTY_LOCATION);\n }",
"@Override\n\tpublic String getLocation() {\n\t\treturn this.location;\n\t}",
"public String getLocation() {\r\n return location;\r\n }",
"public final Coord getLocation() {\n return location;\n }",
"public String getLocation() {\n return location;\n }",
"public Location getLocation() {\n long __key = this.locationId;\n if (location__resolvedKey == null || !location__resolvedKey.equals(__key)) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n LocationDao targetDao = daoSession.getLocationDao();\n Location locationNew = targetDao.load(__key);\n synchronized (this) {\n location = locationNew;\n \tlocation__resolvedKey = __key;\n }\n }\n return location;\n }",
"public final Point getLocation() {\n return this.location ;\n }",
"public String getLocation() {\r\n return location;\r\n }",
"public Point getLocation() {\n\t\treturn location;\n\t}",
"public String getLocation() {\n return location;\n }",
"public String getLocation() {\n return location;\n }",
"public String getLocation() {\n return location;\n }",
"public String getLocation() {\n return location;\n }",
"public String getLocation() {\n return location;\n }",
"public String getLocation() {\n return location;\n }",
"public String getLocation() {\n return location;\n }",
"public String getLocation() {\n return location;\n }",
"public String getLocation() {\n return location;\n }",
"public String getLocation() {\n return location;\n }",
"public String getLocation() {\n return location;\n }",
"public String getLocation() {\n return location;\n }",
"public String getLocation() {\n return location;\n }",
"public Location getLocation() {\n return getLocation(null);\n }",
"public Point getLocation() {\n return location;\n }",
"public String getLocation() { return location; }",
"public String getLocation() { return location; }",
"public final String getLocation() {\n return location;\n }",
"public String getLocation() {\r\n\t\treturn location;\r\n\t}",
"public Location getLocation() {\n return loc;\n }",
"public Location getLocation() {\n return loc;\n }",
"public Location getLocation() \n\t{\n\t\treturn location;\n\t}",
"public Location getLocation() {\r\n\t\treturn location;\r\n\t}",
"public Location getLocation() {\r\n\t\treturn location;\r\n\t}",
"public Location getLocation() {\n return location;\n }",
"public Location getLocation() {\n return location;\n }",
"public Location getLocation() {\n return location;\n }",
"public Location getLocation() {\n return location;\n }",
"public Location getLocation() {\n\t\treturn location;\n\t}",
"public String getLocation()\n {\n return location;\n }",
"public Location getLocation() {\n return name.getLocation();\n }",
"public String getLocation() {\r\n\t\treturn location; \r\n\t}",
"public String getLocation() {\n\t\treturn location;\n\t}",
"public Coordinate getLocation() {\n return location;\n }",
"public Point getLocation() {\n\t\treturn location.getCopy();\n\t}",
"public String getLocation() {\n\t\t\treturn location;\n\t\t}",
"public String getLocation() {\n\t\treturn mLocation;\n\t}",
"public String getLocation() {\n return mLocation;\n }",
"public java.lang.String getLocation() {\n return location;\n }",
"public Point getLocation() { return loc; }",
"public Location getLocation() {\n\t\treturn loc;\n\t}",
"public String getLocation(){\n return this.location;\n }",
"public Vector2f getLocation() {\r\n\t\treturn location.getLocation();\r\n\t}",
"@Override\n\tpublic String getLocation() {\n\t\treturn location;\n\t}",
"public String location() {\n return this.location;\n }",
"public String location() {\n return this.location;\n }",
"public java.lang.String getLocation() {\n return location;\n }",
"public byte[] getLocation() {\r\n return location;\r\n }",
"@HippoEssentialsGenerated(internalName = \"katharsisexampleshippo:location\")\n public String getLocation() {\n return getProperty(LOCATION);\n }",
"public String getLocation(){\r\n return location;\r\n }",
"public String getLocation(){\r\n return Location;\r\n }",
"@Override\n public String getLocation() {\n return location;\n }",
"public int getLocation() {\n\t\tint location=super.getLocation();\n\t\treturn location;\n\t}",
"public Point getLocation() {\n Map<String, Long> map = (java.util.Map<String, Long>) driver.executeAtom(\n atoms.getLocationJs, false, this);\n return new Point(map.get(\"x\").intValue(), map.get(\"y\").intValue());\n }",
"public String getLocation(){\n return location;\n }",
"public Location getLocation(){\n return location;\n }",
"public String getLocation() throws ServiceLocalException {\n\t\treturn (String) this.getPropertyBag().getObjectFromPropertyDefinition(\n\t\t\t\tAppointmentSchema.Location);\n\t}",
"public Location location()\n {\n return myLoc;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public entity.PolicyLocation getLocation();",
"public PVector getLocation()\n\t{\n\t\treturn location;\n\t}",
"SiteLocation getLocatedAt();",
"public PVector getLoc() {\n return location;\n }",
"public PVector getLoc() {\n return location;\n }",
"protected String getLocation(){\r\n return this.location;\r\n }",
"public Location getLocation() {\n\t\treturn location.clone();\n\t}",
"public Location getLocation ( ) {\n\t\treturn extract ( handle -> handle.getLocation ( ) );\n\t}",
"public int getLocation()\r\n {\r\n return location;\r\n }",
"public Point getLocation() {\r\n\t\treturn this.center;\r\n\t}",
"@Override\n public PointF getLocation() {\n return location;\n }",
"public GridLocation getLocation();",
"public LatLng getLocation() {\n\t\treturn location;\n\t}",
"public Coordinate getLocation();",
"public Point getLocation();",
"@Pure\n @NonNull\n public Location getLocation() {\n return this.location;\n }",
"public TileLocation getLocation() {\n return location;\n }",
"public Location getLocation()\n\t{\n\t\treturn l;\n\t}",
"@AutoEscape\n\tpublic String getLocation();",
"public String getLocationString() {\n return getCenter().toString();\n }",
"public final Location getLocation() {\n\t\treturn location.clone();\n\t}",
"public Point getLocation(){\r\n return super.getLocation();\r\n }",
"public geo_location getLocation() {\n return _pos;\n }",
"public Location getLocation() {\n try {\n double latitude = Double.parseDouble(fetchIfNeeded().getString(\"latitude\"));\n double longitude = Double.parseDouble(fetchIfNeeded().getString(\"longitude\"));\n Location location = new Location(TAG);\n location.setLatitude(latitude);\n location.setLongitude(longitude);\n return location;\n }\n catch(ParseException e) {\n return null;\n }\n }",
"@Override\n\tpublic Point getLocation() {\n\t\treturn position;\n\t}",
"String getLocation();",
"String getLocation();"
]
| [
"0.77994263",
"0.7149624",
"0.7149624",
"0.7149624",
"0.7149624",
"0.7149624",
"0.7143488",
"0.7135003",
"0.7104832",
"0.7092384",
"0.7089785",
"0.7063621",
"0.706316",
"0.7058668",
"0.7042096",
"0.70366454",
"0.70351714",
"0.7034876",
"0.7034876",
"0.7034876",
"0.7034876",
"0.7034876",
"0.7034876",
"0.7034876",
"0.7034876",
"0.7034876",
"0.7034876",
"0.7034876",
"0.7034876",
"0.7014228",
"0.7011722",
"0.69991606",
"0.69991606",
"0.69981176",
"0.6997506",
"0.6984913",
"0.6984913",
"0.69818515",
"0.6979752",
"0.6979752",
"0.69790787",
"0.69790787",
"0.69790787",
"0.69790787",
"0.6971857",
"0.6971359",
"0.6966114",
"0.69613457",
"0.69508773",
"0.6945251",
"0.69424415",
"0.69406337",
"0.693114",
"0.69294643",
"0.6927007",
"0.6920626",
"0.6918929",
"0.69156086",
"0.6911698",
"0.69015884",
"0.6895283",
"0.6895283",
"0.6871215",
"0.6858755",
"0.685712",
"0.6820463",
"0.6785486",
"0.677195",
"0.6771217",
"0.67705315",
"0.67696464",
"0.67586625",
"0.6741659",
"0.67337203",
"0.6722694",
"0.6715686",
"0.6712488",
"0.67023957",
"0.67023957",
"0.6692914",
"0.66909355",
"0.6689923",
"0.6688722",
"0.66856205",
"0.66820186",
"0.6680346",
"0.6671206",
"0.6669071",
"0.66619366",
"0.6642064",
"0.66210836",
"0.6619452",
"0.65936273",
"0.65935415",
"0.6593161",
"0.65881974",
"0.65828586",
"0.6560087",
"0.6547488",
"0.653241",
"0.653241"
]
| 0.0 | -1 |
Updates the entity to reflect any changes to the icon, label, location, type of entity, etc. In essence, recomputes how the entity should be rendered. | public void update() {
icon = new SimpleIcon(layout.tag, layout.color, DiagramElement.getGlobalFontRenderer());
icon.setIsModule(component.getType() != TemplateComponent.TYPE_CHANNEL);
icon.setFlagged(component.hasModel() && component.getModel().hasAnnotation(FLAG_MARK));
int maxWidth = 3 * icon.getIconWidth();
String[] words = layout.label.split(" ");
Vector<String> lines = new Vector<String>();
int wordsConsumed = 0;
while (wordsConsumed < words.length) {
String line = "";
int i;
for (i = wordsConsumed; i < words.length; ++i) {
line += words[i];
if (getGlobalFontMetrics().stringWidth(line) > maxWidth) {
break;
}
line += " ";
}
if (i == words.length) // all left-over words fit
{
line = line.substring(0, line.length() - 1);
lines.add(line);
wordsConsumed = words.length;
} else
// some left-over words didn't fit
{
if (i == wordsConsumed) // the first left-over word was too long
{
lines.add(line);
wordsConsumed++;
} else
// at least one left-over word fit
{
line = line.substring(0, line.lastIndexOf(" "));
lines.add(line);
wordsConsumed = i;
}
}
}
labelBox = new LabelBox(lines);
int deltaX = -(labelBox.width / 2);
int deltaY = icon.getIconHeight() / 2 + LABEL_SPACING;
labelBox.x = layout.location.x + deltaX;
labelBox.y = layout.location.y + deltaY;
ports[0] = new Ellipse2D.Float(layout.location.x - icon.getIconWidth() / 2 - 2 * PORT_RADIUS - 1,
layout.location.y - PORT_RADIUS, 2 * PORT_RADIUS, 2 * PORT_RADIUS);
ports[1] = new Ellipse2D.Float(layout.location.x - PORT_RADIUS,
layout.location.y - icon.getIconHeight() / 2 - 2 * PORT_RADIUS - 1, 2 * PORT_RADIUS, 2 * PORT_RADIUS);
ports[2] = new Ellipse2D.Float(layout.location.x + icon.getIconWidth() / 2 + 1, layout.location.y - PORT_RADIUS,
2 * PORT_RADIUS, 2 * PORT_RADIUS);
ports[3] = new Ellipse2D.Float(layout.location.x - PORT_RADIUS, (int) labelBox.getMaxY() + 1, 2 * PORT_RADIUS,
2 * PORT_RADIUS);
if (component.getType() == TemplateComponent.TYPE_CHANNEL) {
supHalo = new Ellipse2D.Float(layout.location.x + icon.getIconWidth() / 4,
layout.location.y - icon.getIconHeight() / 4 - 2 * HALO_RADIUS, 2 * HALO_RADIUS, 2 * HALO_RADIUS);
haloDX = -getGlobalFontMetrics().stringWidth(HALO_LABEL) / 2 + 1;
haloDY = getGlobalFontMetrics().getAscent() / 2;
}
computeBounds();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateEntity();",
"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 }",
"@Override\n\tpublic void update(Recipe entity) {\n\t\t\n\t}",
"void update(CE entity);",
"public void regenerateEntity() {\n boolean isStopRepaint = parent.getStopRepaint();\n parent.setStopRepaint(true);\n\n entityName.setText(component.getName());\n innerRegenerate();\n\n if (!isStopRepaint) parent.goRepaint();\n\n updateHeight();\n }",
"@Override\n public void update(EntityModel model) {\n super.update(model);\n\n }",
"public void update(E entity);",
"@Override\n public void entityRPClassUpdate(RPObject entity) {\n }",
"@Override\n public void itemRPClassUpdate(RPObject entity) {\n }",
"@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 void update(Object entidade) {\n\t\t\n\t}",
"@Override\n public void updateEntity(String entitySetName, OEntity entity) {\n super.updateEntity(entitySetName, entity);\n }",
"void update(T entity);",
"void update(T entity);",
"@Override\n\tpublic ImageEntity update(Object entity) {\n\t\tDatabaseContext.merge(entity);\n\t\treturn (ImageEntity) entity;\n\t}",
"@Override\n public void update(IBasicEntity ent) throws CachingException {\n EntityCachingServiceLocator.getEntityCachingService().update(ent);\n }",
"@Override\n public void rootRPClassUpdate(RPObject entity) {\n }",
"protected abstract void showEditedEntity(Entity e);",
"@Override\r\n\tpublic void update(Interest model, InterestEntity entity) {\n\r\n\t}",
"@Override\n\tpublic void refresh(Object entity) {\n\t\t\n\t}",
"@Override\r\n\tpublic void update(PartyType entity) {\n\t\t\r\n\t}",
"@Override\n\tpublic void Update(PersonelContract entity) {\n\n\t}",
"@Override\n\tpublic void update(EmpType entity) {\n\t\t\n\t}",
"@Override\n public void update(Observable o, Object arg) {\n this.currentSelectedEntity = EntityObserver.selected;\n manageComponentVisibility();\n \n if (objectPanel.isVisible()) {\n setType();\n setPosition();\n setEntityDampening();\n setEntityReflection();\n setEntityRotation();\n \n if (colorPanel.isVisible()) {\n manageLights(EntityObserver.selected);\n }\n }\n }",
"public void Update(StokContract entity) {\n\t\t\n\t}",
"@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 public void updateEntityTagTypes(Set<String> types) { updateLabelLists(types); fillCommonRelationshipsMenu(); }",
"@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() {\n\t\tobj.update();\n\t}",
"private TowerDisplayEntity update(TowerDisplayEntity t) {\n\t\t\treturn t;\n\t\t}",
"@Override\n\tpublic int updateObject(Evaluate entity) {\n\t\treturn evaluateMapper.updateObject(entity);\n\t}",
"public void update() {\r\n\r\n // update attributes\r\n finishIcon.setColored(isDirty());\r\n cancelIcon.setColored(isDirty());\r\n finishButton.repaint();\r\n cancelButton.repaint();\r\n\r\n }",
"@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 refresh(Object entity, Map<String, Object> properties) {\n\t\t\n\t}",
"@Override\r\n\tpublic void updateResourceInformation() {\n\t}",
"@Override\n\tpublic void updateResourceInformation() {\n\t}",
"@Override\n\tpublic Map<String, Object> update(StoreBase entity) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic T update(T entity) {\n\t\treturn entity;\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}",
"public void updateGeominas(Geominas entity) throws Exception;",
"@Override\r\n\tpublic void update() {\n\t\tsuper.update();\r\n\t}",
"@Override\n\tpublic void updateGraphicalContent(Engine en) {\n\t\t\n\t}",
"@Override\n public void updateBys() { updateLabelLists(getRTParent().getEntityTagTypes()); fillCommonRelationshipsMenu(); }",
"void update(T entity) throws Exception;",
"@Override\n\tpublic void update(Category entity) {\n\n\t}",
"public void updatePropertyFields()\n {\n amountLabel .setText(retrieveText(\"AmountLabel\", amountLabel));\n reasonCodeLabel .setText(retrieveText(\"ReasonCodeLabel\", reasonCodeLabel));\n paidToLabel .setText(retrieveText(\"PaidToLabel\", paidToLabel));\n employeeIDLabel .setText(retrieveText(\"EmployeeIDLabel\", employeeIDLabel));\n addressLine1Label.setText(retrieveText(\"AddressLine1Label\", addressLine1Label));\n addressLine2Label.setText(retrieveText(\"AddressLine2Label\", addressLine2Label));\n addressLine3Label.setText(retrieveText(\"AddressLine3Label\", addressLine3Label));\n approvalCodeLabel.setText(retrieveText(\"ApprovalCodeLabel\", approvalCodeLabel));\n commentLabel .setText(retrieveText(\"CommentLabel\", commentLabel));\n\n amountField .setLabel(amountLabel);\n reasonCodeField .setLabel(reasonCodeLabel);\n paidToField .setLabel(paidToLabel);\n employeeIDField .setLabel(employeeIDLabel);\n addressLine1Field.setLabel(addressLine1Label);\n addressLine2Field.setLabel(addressLine2Label);\n addressLine3Field.setLabel(addressLine3Label);\n approvalCodeField.setLabel(approvalCodeLabel);\n commentField .setLabel(commentLabel);\n }",
"E update(E entity);",
"E update(E entity);",
"@Override\n\tpublic void update(CcNoticereceive entity) {\n\t\t\n\t}",
"@Override\r\n public void updateEntity(String entityName, DataStoreEntity dataStoreEntity) {\n\r\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 update() {\n\tfireContentsChanged(this, 0, getSize());\n }",
"@Override\r\n\tpublic void update() {\r\n\t}",
"private void renderEntity(MapEntity entity) {\n\t\tdrawEntityTexture(entity);\n\t}",
"public void update()\n\t{\n\t\tsuper.update();\n\t}",
"@Override\n\t\tpublic boolean update(Carrera entity, int id) {\n\t\t\t\treturn false;\n\t\t}",
"@Override\r\n\tpublic void update() {\r\n\r\n\t}",
"private void setModifiedAndUpdateIcon() {\n document.setModified(true);\n updateTabIcon(document);\n }",
"@Override\n public void itemModified (ItemEvent e) {\n super.itemModified(e);\n Sequence denotationSequence = e.getDenotation();\n Structure denotation = (Structure) denotationSequence.elementAt(0);\n Symbol attributeName = (denotation!=null?(Symbol)denotation.getAttributeValue(NAME_, null):null);\n if (LABEL_.equals(attributeName)) {\n setLabel((String)(e.getNewValue()));\n }\n Rectangle bounds = getExactBounds()[0];\n Rectangle[] invalRegion = {bounds};\n ((WorkspaceView)getParent()).invalidate(invalRegion);\n }",
"@Override\r\n public void update(Answer entity) {\n\r\n }",
"@Override\r\n\tpublic void update() {\n\t}",
"@Override\r\n\tpublic void update() {\n\t}",
"@Override\n\tpublic void update(EntityManagerFactory emf, Stop entity) {\n\t\t\n\t}",
"public void updateEntity()\n {\n\t\tif ((++ticksSinceSync % 20) == 0) \n {\n\t\t\tsync();\n\t\t}\n\t\t\n boolean var1 = this.furnaceBurnTime > 0;\n boolean checkBurning = false;\n boolean prevIsBurning = isBurning;\n\n if(this.canSmelt() && this.fuel > 0)\n {\n\t\t\t++this.furnaceCookTime;\n\t\t\tisBurning = true;\n\n\t\t\tif (this.furnaceCookTime == furnaceTimeBase) \n\t\t\t{\n\t\t\t\tthis.furnaceCookTime = 0;\n\t\t\t\t--this.fuel;\n\t\t\t\tthis.smeltItem();\n\t\t\t\tcheckBurning = true;\n\t\t\t}\n }\n else\n {\n this.furnaceCookTime = 0;\n isBurning = false;\n }\n \n \n if(prevIsBurning != isBurning)\n {\n \tcheckBurning = true;\n NF_BlockNetherForge.updateFurnaceBlockState(this.isBurning, this.worldObj, this.xCoord, this.yCoord, this.zCoord);\n }\n\n if (checkBurning)\n {\n this.onInventoryChanged();\n\t\t\tint id = worldObj.getBlockId(xCoord, yCoord, zCoord);\n\t\t\tsync();\n }\n }",
"protected void onUpdated( E entity, GameState state, int index )\r\n\t{\r\n\t\t\r\n\t}",
"public void updateFakeEntities() { \n for(ViewableEntity playerEntity : replicatedEntites.values()) {\n playerEntity.update();\n }\n }",
"public String update()\r\n {\r\n this.conversation.end();\r\n\r\n try\r\n {\r\n \t \r\n \t createUpdateImage(this.item);\r\n createUpdateSound(this.item);\r\n \t \r\n \t \r\n if (this.id == null)\r\n {\r\n this.entityManager.persist(this.item);\r\n return \"search?faces-redirect=true\";\r\n }\r\n else\r\n {\r\n this.entityManager.merge(this.item);\r\n return \"view?faces-redirect=true&id=\" + this.item.getId();\r\n }\r\n }\r\n catch (Exception e)\r\n {\r\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(e.getMessage()));\r\n return null;\r\n }\r\n }",
"@Override\n protected void updateProperties() {\n }",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"protected abstract Entity getEditedEntity();",
"@Override\n\tpublic void update() { }",
"public String toString() {\n return \"Entity(coordinates: \" + this.coordinates + \", icon: \" + this.icon\n + \")\";\n }",
"@Override\n\tpublic void update(Instance ins) {\n\t\t\n\t}",
"@Override\n public DomainMessage update(DomainMessage entity) {\n throw new UnsupportedOperationException();\n }",
"@Override\n\tpublic void updateEntity(T t) {\n\t\tgetSession().update(t);\n\t}",
"@Override\n\tpublic void update() {\n\t}",
"@Override\n\tpublic void update() {\n\t}",
"@Override\n\tpublic void update() {\n\t}",
"@Override\n\tpublic void update() {}",
"@Override\n\tpublic void update() {}",
"public <T> T update(T entity);",
"public void updateContent() {\n\t\t\n\t\tupdateResidencias();\n\t\tupdateUniversidades();\n\t\t\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\r\n\tpublic void update() {\n\r\n\t}",
"@Override\r\n\tpublic void update() {\n\r\n\t}",
"@Override\n protected void forceRefresh() {\n if (getEntity() != null) {\n super.forceRefresh();\n }\n }",
"public void updateInfo() {\n\t}",
"@Override\n\tpublic Product update(Product entity) {\n\t\treturn null;\n\t}"
]
| [
"0.6841805",
"0.66094565",
"0.6560716",
"0.6534289",
"0.64579624",
"0.6446285",
"0.6415439",
"0.64139634",
"0.62011415",
"0.6180839",
"0.6180839",
"0.6134099",
"0.61274827",
"0.6112831",
"0.6112831",
"0.6090531",
"0.5973813",
"0.5969914",
"0.5967642",
"0.5927491",
"0.59187275",
"0.58898956",
"0.5887901",
"0.5840686",
"0.5833401",
"0.5827856",
"0.57888573",
"0.57888573",
"0.57888573",
"0.5785578",
"0.57846963",
"0.5782501",
"0.5772524",
"0.57637936",
"0.57627654",
"0.57550323",
"0.57166195",
"0.57128924",
"0.5703712",
"0.5702014",
"0.5690929",
"0.56850165",
"0.56850165",
"0.56781733",
"0.56755286",
"0.56700814",
"0.56515574",
"0.56502104",
"0.5637717",
"0.563315",
"0.56278473",
"0.56278473",
"0.56225723",
"0.56224614",
"0.55860364",
"0.55860364",
"0.55860364",
"0.55860364",
"0.55860364",
"0.55705225",
"0.55664283",
"0.55638766",
"0.5558914",
"0.55551434",
"0.55550116",
"0.5537844",
"0.55305266",
"0.5525765",
"0.5509492",
"0.5509492",
"0.55087906",
"0.5507544",
"0.5506204",
"0.5506048",
"0.5503412",
"0.55016357",
"0.5499777",
"0.5499777",
"0.5499777",
"0.5499777",
"0.5499777",
"0.5499777",
"0.54950833",
"0.547754",
"0.54763466",
"0.5471254",
"0.54670054",
"0.54589176",
"0.54535884",
"0.54535884",
"0.54535884",
"0.5447016",
"0.5447016",
"0.5444002",
"0.5430982",
"0.5428875",
"0.54266524",
"0.54266524",
"0.5414242",
"0.54078114",
"0.54074377"
]
| 0.0 | -1 |
Retrieve the label of the entity. | public String getLabel() {
return layout.label;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getLabel() {\n return _label == null ? name() : _label;\n }",
"public L getLabel() {\n\t\tcheckRep();\n\t\treturn this.label;\n\t}",
"public Object getLabel() {\n if (this.label != null) {\n return this.label;\n }\n\n return this.getDefaultLabel();\n }",
"public String getLabel() {\n return getElement().getChildren()\n .filter(child -> child.getTag().equals(\"label\")).findFirst()\n .get().getText();\n }",
"public String getLabel() { //gets the label\n\n\t\treturn rawLabel;\n\t}",
"public String getLabel() {\n return label;\n }",
"public final String getLabel() {\n\t\treturn _label;\n\t}",
"public String getLabel() {\n return label;\n }",
"public String getLabel() {\n return label;\n }",
"public String getLabel() {\n return label;\n }",
"public String getLabel() {\r\n return lbl;\r\n }",
"public String getLabel()\n {\n return label;\n }",
"public String getLabel() {\n return this.label;\n }",
"public String getLabel() {\n return this.label;\n }",
"public String getLabel() {\n return this.label;\n }",
"public String getLabel() {\n return this.label;\n }",
"public String getLabel() {\r\n return label;\r\n }",
"public String getLabel() {\r\n return label;\r\n }",
"public String getLabel() {\r\n return label;\r\n }",
"public String getLabel() {\n\t\treturn this._label;\n\t}",
"public Object getLabel() \n {\n return label;\n }",
"public String getLabel() {\n return this.label;\n }",
"public com.commercetools.api.models.common.LocalizedString getLabel() {\n return this.label;\n }",
"public String getLabel() {\r\n return label;\r\n }",
"public String getLabel()\r\n {\r\n return label;\r\n }",
"public String getLabel()\r\n {\r\n return label;\r\n }",
"public String getLabel()\n {\n return m_label;\n }",
"public java.lang.String getLabel() {\n\t\treturn this.label;\n\t}",
"public String getLabel() {\n return label;\n }",
"public gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Label getLabel() {\r\n return label;\r\n }",
"public String getLabel() {\n\t\treturn myLabel;\n\t}",
"public String getLabel()\n {\n return label;\n }",
"public String getLabel() {\r\n\t\treturn label;\r\n\t}",
"public String getLabel() {\r\n\t\treturn label;\r\n\t}",
"public String getLabel() {\r\n\t\treturn label;\r\n\t}",
"public String getLabel() {\r\n\t\treturn label;\r\n\t}",
"public String getLabel() {\n return label;\n }",
"public String getLabel() {\n return label == null ? StringUtils.EMPTY : label;\n }",
"public String getLabel()\n { \n return label;\n }",
"public String getLabel() {\n\t\treturn label;\n\t}",
"public Label getLabel() {\n return this.label;\n }",
"public java.lang.String getLabel();",
"String getLabel() {\n return label;\n }",
"@java.lang.Override\n public java.lang.String getLabel() {\n java.lang.Object ref = label_;\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 label_ = s;\n return s;\n }\n }",
"public java.lang.String getLabel() {\n java.lang.Object ref = label_;\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 label_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getLabel(){\n return label;\n }",
"public String getLabel(){\n\t\treturn label;\n\t}",
"public String getLabel()\n\t{\n\t\treturn label;\n\t}",
"@Nonnull\n\tGenericAttributeValue<String> getLabel();",
"public Label getLabel() {\n\t\treturn this.label;\n\t}",
"public Label getLabel() {\n\t\treturn label;\n\t}",
"public Label getLabel() {\n\t\treturn label;\n\t}",
"public final Label getLabel() {\n return label;\n }",
"@JsonGetter(\"label\")\r\n public String getLabel ( ) { \r\n return this.label;\r\n }",
"public String label() {\n return this.label;\n }",
"java.lang.String getLabel();",
"com.google.ads.googleads.v6.resources.Label getLabel();",
"private String getLabel() {\n return this.label;\n }",
"public String getLabel() {\r\n\t\tif (label != null)\r\n\t\t\treturn label;\r\n\t\tif (classSimpleName==null)\r\n\t\t\treturn null;\r\n\t\treturn classSimpleName.replace('.', '_');\r\n\t}",
"DatasetLabel getLabel();",
"public String getLabel() {\n return name().toLowerCase().replace(\"_\", \"\");\n }",
"public String getLabel() {\n\t String name = getLiteralValue(Foaf.NAME);\n\t \n\t if (name == null) {\n\t name = getLiteralValue(Foaf.GIVENNAME);\n\t }\n\t \n\t if (name == null) {\n\t name = getLiteralValue(RDFS.label);\n\t }\n\t \n\t if (name == null) {\n\t return getURI();\n\t }\n\t return name;\n }",
"com.microsoft.schemas.xrm._2011.contracts.Label getLabel();",
"public int getLabel() {\n\t\treturn label;\n\t}",
"public String getLabel();",
"public String getLabel();",
"public String getLabel();",
"public String getLabel();",
"public Object getLabel(T instance) {\n if (labels.containsKey(instance)) {\n return labels.get(instance);\n } else {\n return \"\";\n }\n }",
"@JsonProperty(\"label\")\n @JsonInclude(JsonInclude.Include.NON_DEFAULT)\n public String getLabel() {\n return this.label;\n }",
"Label getLabel();",
"Label getLabel();",
"Label getLabel();",
"public T2 getLabel() {\r\n\t\treturn label;\r\n\t}",
"@Override\n public String getLabel() {\n return label;\n }",
"public String getLabelName() {\r\n if( this.jlblHolder != null )\r\n return this.jlblHolder.getText();\r\n else\r\n return label;\r\n }",
"String getLabel();",
"String getLabel();",
"public String getLabelName() {\n return m_labelName;\n }",
"@Nullable\n public CharSequence getLabel() {\n return mPrimaryLabel;\n }",
"public com.google.protobuf.ByteString\n getLabelBytes() {\n java.lang.Object ref = label_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n label_ = 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 getLabelBytes() {\n java.lang.Object ref = label_;\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 label_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public\t\tMiPart\t\tgetLabel()\n\t\t{\n\t\treturn(label);\n\t\t}",
"public JLabel getLabel() {\n return this.label;\n }",
"public JLabel getLabel() {\n return label;\n }",
"public String getLabel() {\n if (ICEvent_Type.featOkTst && ((ICEvent_Type)jcasType).casFeat_label == null)\n jcasType.jcas.throwFeatMissing(\"label\", \"org.oaqa.model.ICEvent\");\n return jcasType.ll_cas.ll_getStringValue(addr, ((ICEvent_Type)jcasType).casFeatCode_label);}",
"public String getNameOfEntityHere() {\n \n return entityHere_.getName();\n \n }",
"public String getLabel() {\n return TrackerRes.getString(\"ModelFunctionPanel.Label\"); //$NON-NLS-1$\n }",
"public double getLabel() {\n\t\treturn label;\n\t}",
"public String getLabel() {\n\t\t// just return item text until we get the grade levels straighted out for\n\t\t// comm_core\n\t\treturn this.itemText;\n\t\t/*\n\t\t * if (this.label == null) { if (this.getLevel() == 1) { this.label =\n\t\t * this.itemText; } else if (this.getIsLeafNode()) { this.label = \"[\" +\n\t\t * this.getGradeRange() + \"] \" + this.itemText; } else { this.label =\n\t\t * this.itemText + \" [\" + this.getGradeRange() + \"]\"; } } return this.label;\n\t\t */\n\t}",
"@DISPID(32)\r\n\t// = 0x20. The runtime will prefer the VTID if present\r\n\t@VTID(37)\r\n\tjava.lang.String label();",
"com.google.ads.googleads.v6.resources.CampaignLabel getCampaignLabel();",
"public ComponentLabel getComponentLabel() {\n\t\treturn componentLabel;\n\t}",
"@DISPID(74)\r\n\t// = 0x4a. The runtime will prefer the VTID if present\r\n\t@VTID(72)\r\n\tjava.lang.String label();",
"public String getLabel(){\n\t\treturn sAnzeige;\n\t}",
"public String getLabelText();",
"@Override\n\tpublic String getShortLabel()\n\t{\n\t\treturn label;\n\t}",
"public abstract String getLabel();",
"public String toString() {\n return label;\n }",
"default String getLabel() { return ((TensorImpl<?>) this).find(NDFrame.class).map(NDFrame::getLabel).orElse(\"\"); }"
]
| [
"0.75552267",
"0.7487074",
"0.7455346",
"0.74483466",
"0.7442091",
"0.7337152",
"0.7324227",
"0.7319385",
"0.7319385",
"0.7319385",
"0.7318926",
"0.7314135",
"0.731195",
"0.731195",
"0.731195",
"0.731195",
"0.73059297",
"0.73059297",
"0.73059297",
"0.7295544",
"0.7288441",
"0.7287851",
"0.7276633",
"0.72757417",
"0.7268228",
"0.7268228",
"0.72453034",
"0.72433406",
"0.7242068",
"0.7229912",
"0.72292966",
"0.72222114",
"0.7219595",
"0.7219595",
"0.7219595",
"0.7219595",
"0.7213026",
"0.7210139",
"0.7200678",
"0.7196084",
"0.7184231",
"0.7184202",
"0.7167296",
"0.7161974",
"0.7155084",
"0.7137061",
"0.71368766",
"0.7125236",
"0.7120289",
"0.70986116",
"0.70961016",
"0.70961016",
"0.7094636",
"0.70790327",
"0.7071559",
"0.70507896",
"0.7042902",
"0.7042742",
"0.70118946",
"0.7010212",
"0.69923544",
"0.6980133",
"0.69727755",
"0.6937495",
"0.6922528",
"0.6922528",
"0.6922528",
"0.6922528",
"0.692003",
"0.6887097",
"0.6870577",
"0.6870577",
"0.6870577",
"0.68541867",
"0.6794793",
"0.67779756",
"0.6770984",
"0.6770984",
"0.6769368",
"0.67284817",
"0.6661108",
"0.6659384",
"0.6650903",
"0.6646212",
"0.6641375",
"0.663451",
"0.66036034",
"0.6583447",
"0.6579744",
"0.65746886",
"0.6548577",
"0.6533943",
"0.65131295",
"0.64766437",
"0.64510256",
"0.6446653",
"0.64454293",
"0.6444529",
"0.64379185",
"0.64183384"
]
| 0.65260977 | 92 |
Retrieve the center points of the connector handles. | public Point[] getPorts() {
return new Point[] { new Point((int) ports[0].getCenterX(), (int) ports[0].getCenterY()),
new Point((int) ports[1].getCenterX(), (int) ports[1].getCenterY()),
new Point((int) ports[2].getCenterX(), (int) ports[2].getCenterY()),
new Point((int) ports[3].getCenterX(), (int) ports[3].getCenterY()) };
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double[] getCenter() {\n return this.center;\n }",
"public Coords getCenter()\r\n {\r\n return new Coords(Math.round(x + width / 2), Math.round(y + height / 2));\r\n }",
"private double[] getMeanCenter(){\n double[] meanXY = new double[2];\n float[] trans = getTranslationVector(center.getX(),center.getY(),BITMAP_SIZE,BITMAP_SIZE,CONSTANT);\n // Plot points\n for (MeasurementService.DataPoint p: list) {\n meanXY[0] += (p.getX()*CONSTANT)+trans[0];\n meanXY[1] += (p.getY()*CONSTANT)+trans[1];\n }\n\n meanXY[0] = meanXY[0] / list.size();\n meanXY[1] = meanXY[1] / list.size();\n return meanXY;\n }",
"public Point getCenter() {\r\n\t\treturn center;\r\n\t}",
"public Point getCenter() {\n \treturn new Point(x+width/2,y+height/2);\n }",
"public Point getCenter() {\n return center;\n }",
"public int getXCenter() {\n return getXOrigin() + panelWidth/2;\n }",
"public Point getCenter() {\r\n return this.center;\r\n }",
"public int getCenterX() {\n\t\t\treturn (int) origin.x + halfWidth;\n\t\t}",
"public double getBorderCenterX()\n {\n return borderCenterX;\n }",
"public double getCenterX() {\n return this.getLayoutSlot().getX() + (int) (this.getLayoutSlot().getWidth() / 2);\n }",
"public Coordinate getCenter() {\n return center;\n }",
"public PointF getCenter() {\n return center;\n }",
"double[] circleCentre()\n\t{\n\t\tdouble toOriginLength = Math.sqrt(originX*originX + originY*originY);\n\t\tdouble toCentreLength = toOriginLength + radius;\n\t\t\n\t\tdouble[] centrePoint = new double[2];\n\t\t\n\t\tcentrePoint[0] = (toCentreLength * originX)/toOriginLength;\n\t\tcentrePoint[1] = (toCentreLength * originY)/toOriginLength;\n\t\t\n\t\treturn centrePoint;\n\t}",
"public Point getCenter() {\n return new Point((int) getCenterX(), (int) getCenterY());\n }",
"public int getCenter() {\n\t\t\treturn center;\n\t\t}",
"Point getCenter();",
"Point getCenter();",
"public Vector getCenters(){\n\treturn synchroCenters;\n }",
"public Point getCenterPx(){\n\t\tint centerX = images[0].getWidth()/2;\n\t\tint centerY = images[0].getHeight()/2;\n\t\tPoint centerPx = new Point(centerX,centerY);\n\t\treturn centerPx;\n\t}",
"public Point2D getGraphViewCenter() {\n \n \t\t// be explicit\n \t\treturn (graphViewCenterX != null && graphViewCenterY != null) ? new Point2D.Double(\n \t\t\t\tgraphViewCenterX.doubleValue(), graphViewCenterY.doubleValue())\n \t\t\t\t: null;\n \t}",
"public Point2D.Float getCenter() {\r\n\t\treturn center;\r\n\t}",
"public double getCenterX() { return centerX.get(); \t}",
"public Vec2 getCenter()\n {\n int numTriangles = numPoints - 2;\n\n // Calculate the average midpoint of each composite triangle\n Vec2 averageMidpoint = new Vec2(0, 0);\n float area = 0;\n for (int i=0; i<numTriangles; i++)\n {\n Triangle t = new Triangle(points[0], points[i+1], points[i+2]);\n Vec2 triangleMidpoint = t.getCenter();\n float triangleArea = t.getArea();\n\n averageMidpoint.addX(triangleMidpoint.getX() * triangleArea);\n averageMidpoint.addY(triangleMidpoint.getY() * triangleArea);\n\n area += triangleArea;\n\n// Color color;\n// if (i==0) color = Color.GREEN;\n// else color = Color.ORANGE;\n// SumoGame.ADD_DEBUG_DOT(points[0].getX(), points[0].getY(), 5, color);\n// SumoGame.ADD_DEBUG_DOT(points[i+1].getX(), points[i+1].getY(), 5, color);\n// SumoGame.ADD_DEBUG_DOT(points[i+2].getX(), points[i+2].getY(), 5, color);\n// SumoGame.ADD_DEBUG_DOT(triangleMidpoint.getX(), triangleMidpoint.getY(), triangleArea/2000, color);\n }\n\n averageMidpoint.div(area);\n\n// SumoGame.ADD_DEBUG_DOT(averageMidpoint.getX(), averageMidpoint.getY(), 20, Color.RED);\n\n return averageMidpoint;\n }",
"public ImageWorkSpacePt findCurrentCenterPoint() {\n WebPlot plot= getPrimaryPlot();\n\n\n int screenW= plot.getScreenWidth();\n int screenH= plot.getScreenHeight();\n int sw= getScrollWidth();\n int sh= getScrollHeight();\n int cX;\n int cY;\n if (screenW<sw) {\n cX= screenW/2;\n }\n else {\n int scrollX = getScrollX();\n cX= scrollX+sw/2- wcsMarginX;\n }\n\n if (screenH<sh) {\n cY= screenH/2;\n }\n else {\n int scrollY = getScrollY();\n cY= scrollY+sh/2- wcsMarginY;\n }\n\n ScreenPt pt= new ScreenPt(cX,cY);\n\n return plot.getImageWorkSpaceCoords(pt);\n }",
"private Point2D getCenterLatLon(){\n Point2D.Double result = new Point2D.Double();\n Point2D.Double screenCenter = new Point2D.Double();\n screenCenter.x = getWidth()/2; //contentpane width/height\n screenCenter.y = getHeight()/2;\n try{\n transform.inverseTransform(screenCenter,result); //transform to lat/lon using the current transform\n } catch (NoninvertibleTransformException e) {\n throw new RuntimeException(e);\n }\n return result;\n }",
"public double getCenter() {\n return 0.5 * (lo + hi);\n }",
"public GJPoint2D center();",
"private PointList center(PointList T, double radius){\n\t\t\n\t\tPointList centers = new PointList(Color.PINK);\n\t\tPoint[] extrema = new Point[4];\n\t\tPoint currentCenter;\n\t\t\n\t\tdouble xLength;\n\t\tdouble yLength;\n\t\tdouble xStart;\n\t\tdouble xEnd;\n\t\tdouble yStart;\n\t\tdouble yEnd;\n\t\t\n\t\textrema = T.getExtremePoints();\n\t\t\n\t\tif (extrema[0] == null) return centers; // centers is empty\n\t\t\n\t\tif (radius < T.delta()) return centers; // centers is empty\n\t\t\n\t\t// find X coordinates\n\t\tcurrentCenter = new Point(extrema[0].posX + radius, extrema[0].posY);\n\t\tif (currentCenter.posX + radius == extrema[1].posX) {\n\t\t\t// current x position is only possible x position\n\t\t\txStart = currentCenter.posX;\n\t\t\txEnd = xStart;\n\t\t\t\n\t\t} else {\n\t\t\t// we can move in x direction\n\t\t\txLength = Math.abs(currentCenter.posX + radius - extrema[1].posX);\n\t\t\txStart = currentCenter.posX - xLength;\n\t\t\txEnd = currentCenter.posX;\n\t\t}\n\n\t\t// find Y coordinates\n\t\tcurrentCenter = new Point(extrema[2].posX, extrema[2].posY + radius);\n\t\tif (currentCenter.posY + radius == extrema[3].posY) {\n\t\t\t// current y position is only possible y position\n\t\t\tyStart = currentCenter.posY;\n\t\t\tyEnd = yStart;\n\t\t} else {\n\t\t\t// we can move in y direction\n\t\t\tyLength = Math.abs(currentCenter.posY + radius - extrema[3].posY);\n\t\t\tyStart = currentCenter.posY - yLength;\n\t\t\tyEnd = currentCenter.posY;\n\t\t}\n\t\t\n\t\tcenters.addPoint(new Point(xStart, yStart));\n\t\tif (!centers.contains(new Point(xStart, yEnd))){\n\t\t\tcenters.addPoint(new Point(xStart, yEnd));\n\t\t}\n\t\tif (!centers.contains(new Point(xEnd, yStart))){\n\t\t\tcenters.addPoint(new Point(xEnd, yStart));\n\t\t}\n\t\tif (!centers.contains(new Point(xEnd, yEnd))){\n\t\t\tcenters.addPoint(new Point(xEnd, yEnd));\n\t\t}\n\t\t\n\t\treturn centers;\n\t\n\t}",
"public double getCenterX() {\n\t\treturn centerX;\n\t}",
"public double getCenterX()\n {\n return mainVBox.getTranslateX() + (mainVBox.getWidth() / 2);\n }",
"private double centerX() {\n return (piece.boundingBox().getWidth() % 2) / 2.0;\n }",
"Cell Center(){\n double sum_x = 0;\r\n double sum_y = 0;\r\n \r\n for(int i = 0; i < this.edgeCells.size(); i++){\r\n sum_x = this.edgeCells.get(i).x;\r\n sum_y = this.edgeCells.get(i).y;\r\n }\r\n \r\n for(int i = 0; i < this.seedCells.size(); i++){\r\n sum_x = this.seedCells.get(i).x;\r\n sum_y = this.seedCells.get(i).y;\r\n }\r\n \r\n sum_x = sum_x/(this.edgeCells.size() + this.seedCells.size()); //center of weight\r\n sum_y = sum_y/(this.edgeCells.size() + this.seedCells.size()); //\r\n \r\n center = new Cell((int)sum_x, (int)sum_y, this.edgeCells.get(0).z, this.edgeCells.get(0).id);\r\n \r\n \r\n return center;\r\n }",
"public Point getCentrePoint()\n\t\t{\n\t\t\tif(shape.equals(\"circle\") || shape.equals(\"ellipse\"))\n\t\t\t\treturn new Point((int)((Ellipse2D)obj).getCenterX(),(int)((Ellipse2D)obj).getCenterY());\n\t\t\tif(shape.equals(\"poly\"))\n\t\t\t{\n\t\t\t\tint xtot = 0;\n\t\t\t\tint ytot = 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\txtot += coords[i];\n\t\t\t\t\telse\n\t\t\t\t\t\tytot += coords[i];\n\t\t\t\t}\n\t\t\t\treturn new Point((xtot*2)/coords.length,(ytot*2)/coords.length);\n\t\t\t}else\n\t\t\t{\n\t\t\t\treturn new Point((int)((Rectangle)obj).getCenterX(),(int)((Rectangle)obj).getCenterY());\n\t\t\t}\n\t\t}",
"public Point2D.Double getImageCenter();",
"public Point centroid() {\n\t\t\tdouble xSum = 0.0;\n\t\t\tdouble ySum = 0.0;\n\t\t\tfor(Point point : clusterPointsList){\n\t\t\t\txSum += point.x;\n\t\t\t\tySum += point.y;\n\t\t\t}\n\t\t\tPoint centroid = new Point();\n\t\t\tcentroid.x = xSum / size();\n\t\t\tcentroid.y = ySum / size();\n\t\t\t\n\t\t\treturn centroid;\n\t\t}",
"public static int getCenter() {\n\t\treturn Center;\n\t}",
"public Point getCenter() {\n return location.center();\n }",
"public Point2d get2DCenter() {\n double xOfCenter = 0;\n double yOfCenter = 0;\n for (IAtom atom : atoms) {\n xOfCenter += atom.getPoint2d().x;\n yOfCenter += atom.getPoint2d().y;\n }\n\n return new Point2d(xOfCenter / ((double) getAtomCount()),\n yOfCenter / ((double) getAtomCount()));\n }",
"public int getCenterX(){\r\n return centerX;\r\n }",
"public Point centeroid ()\r\n {\r\n return new Point ((v1.getX()+v2.getX()+v3.getX())/3,(v1.getY()+v2.getY()+v3.getY())/3);\r\n }",
"public LatLng getCenter() {\n return center;\n }",
"public Coordinates getCentroid() {\r\n return centroid;\r\n }",
"public final int centerX() {\n return (left + right) >> 1;\n }",
"public PointF centroid()\n {\n if (cachedCentroid == null)\n {\n PointF centroid = new PointF();\n\n for (int i = 0; i < size(); i++)\n {\n PointF curr = get(i);\n PointF next = get(i + 1);\n\n float mult = curr.x * next.y - next.x * curr.y;\n centroid.x += (curr.x + next.x) * mult;\n centroid.y += (curr.y + next.y) * mult;\n }\n\n centroid.x /= 6 * signedArea();\n centroid.y /= 6 * signedArea();\n\n cachedCentroid = centroid;\n }\n\n return Geometry.clone(cachedCentroid);\n }",
"public Point2D centerOfMass() \n {\n double cx = 0, cy = 0;\n double area = areaUnsigned();\n double factor = 0;\n for (Line2D line : lines) \n {\n factor = line.getP1().getX() * line.getP2().getY() - line.getP2().getX() * line.getP1().getY();\n cx += (line.getP1().getX() + line.getP2().getX()) * factor;\n cy += (line.getP1().getY() + line.getP2().getY()) * factor;\n }\n area *= 6.0d;\n factor = 1 / area;\n cx *= factor;\n cy *= factor;\n return new Point2D.Double(cx, cy);\n }",
"public Point2D getCentre() {\n return new Point2D.Float(centreX, centreY);\n }",
"private PointsOfContactEditorPanel getCenterPointsOfContactEditorPanel() {\r\n if (this.centerPointsOfContactEditorPanel == null) {\r\n this.centerPointsOfContactEditorPanel = new PointsOfContactEditorPanel();\r\n }\r\n return this.centerPointsOfContactEditorPanel;\r\n }",
"public final native LatLng getCenter() /*-{\n return this.getCenter();\n }-*/;",
"public Vector2 getCenter() {\n return center;\n }",
"protected Point getCenter(ArrayList<Unit> units) {\n\t\tint x = 0, y = 0;\n\t\t\n\t\tif(units.size() >= 1) {\n\t\t\tfor(Unit unit: units) {\n\t\t\t\tx += unit.getX();\n\t\t\t\ty += unit.getY();\n\t\t\t}\n\t\t\tx = x / units.size();\n\t\t\ty = y / units.size();\n\t\t}\n\t\treturn new Point(x,y);\n\t}",
"public LatLng getCentrePos() {\n double lat = 0;\n double lon = 0;\n for (int i=0; i<newHazards.size(); i++) {\n lat += frags.get(i).getHazard().getLatitude();\n lon += frags.get(i).getHazard().getLongitude();\n }\n return new LatLng(lat / newHazards.size(), lon / newHazards.size());\n }",
"public Coord3d getCenter() {\n return new Coord3d((xmin + xmax) / 2, (ymin + ymax) / 2, (zmin + zmax) / 2);\n }",
"public final Vector getCenter() {\n\t\treturn (center == null) ? computeCenter() : center;\n\t}",
"public float[] getCenterCo(float x, float y)\n\t{\n\t\tfloat[] co = new float[2];\n\t\tint xco = getXVal(x);\n\t\tco[0] = (xco*PIXEL_WIDTH) - (PIXEL_WIDTH/2);\n\t\t\n\t\tint yco = getYVal(y);\n\t\tco[1] = (yco*PIXEL_HEIGHT) - (PIXEL_HEIGHT/2);\n\t\t\n\t\treturn co;\n\t}",
"public final Point getCenterPointOnScreen() {\n\t\treturn Calculations.tileToScreen(getLocalRegionX(), getLocalRegionY(),\n\t\t\t\t0.5D, 0.5D, 0);\n\t}",
"public Vec3d getCenter() {\n\t\treturn set;\n\t}",
"public float getCentreX() {\n return centreX;\n }",
"public native vector kbAreaGetCenter(int areaID);",
"public int centerX() {\n return mRect.centerX();\n }",
"public int[] getCenterBiomeSectionBlockCoords() {\n \n int lowX = getCenterBlockCoords()[0];\n int lowZ = getCenterBlockCoords()[1];\n \n int sectionX = lowX >> BiomeSection.bitshifts;\n int sectionZ = lowZ >> BiomeSection.bitshifts;\n \n int centerOfSectionX = (sectionX << BiomeSection.bitshifts) + BiomeSection.sectionWidth/2;\n int centerOfSectionZ = (sectionZ << BiomeSection.bitshifts) + BiomeSection.sectionWidth/2;\n \n //TerraformGeneratorPlugin.logger.info(\"MC(\" + this.x + \",\" + this.z + \"):(\" + (lowX + megaChunkBlockWidth/2) + \",\" + (lowZ + megaChunkBlockWidth/2) + \")\");\n return new int[]{centerOfSectionX, centerOfSectionZ};\n }",
"public Vector3D getCenter() {\n return center;\n }",
"private int get_x() {\n return center_x;\n }",
"final public Vector2 getCenter()\n\t{\n\t\treturn center;\n\t}",
"public Spatial boardCentre() {\r\n return tiles[2][2].tile;\r\n }",
"public DoubleProperty centerXProperty() { \n\t\t\treturn centerX; \t\n\t\t}",
"public final Point getCenterPointOnScreen() {\n return bot.getManagers().getCalculations().tileToScreen(localRegionX, localRegionY,\n 0.5D, 0.5D, 0);\n }",
"public Coordinate getCenteredCoordinate() {\n return coordinate.add(getHalfSize());\n }",
"void setCenter() {\n\t\tLine line02 = new Line(myParent, new PVector(), new PVector());\n\t\tLine line13 = new Line(myParent, new PVector(), new PVector());\n\t\tline02.set(point[0].position, point[2].position);\n\t\tline13.set(point[1].position, point[3].position);\n\t\tif (line02.intersects_at(line13) != null) // if two points are on each\n\t\t\t\t\t\t\t\t\t\t\t\t\t// other\n\t\t\tcenter.set(line02.intersects_at(line13));\n\t}",
"public Vector3f getCenter() {\r\n return center;\r\n }",
"private void calculateCentre() {\n \t\t// The size of the centre is presently one 5th of the maze size\n \t\tcentreSize = size / 5;\n \t\t// System.out.println(\"centreSize is: \" + centreSize);\n \n \t\t// Min and max are the start points of the centre\n \t\tint min = (int) Math.ceil((centreSize * 2.0));\n \t\tint max = min + centreSize;\n \t\tmin++; // this adjusts for the border\n \t\tmax++;\n \t\t// System.out.println(\"min is: \" + min);\n \t\t// System.out.println(\"max is: \" + max);\n \n \t\t// centre is the centre point of the maze\n \t\tdouble centre = (centreSize / 2.0) + min;\n \t\t// System.out.println(\"centre is: \" + centre);\n \t\tcentrePoint = new Point2D.Double(centre, centre);\n \t\t\n \t\t//set the min and max points for the centre\n \t\tcentreMin = min;\n \t\tcentreMax = max;\n \t}",
"public FPointType calculateCenter() {\n fRectBound = getBounds2D();\n FPointType fptCenter = new FPointType();\n fptCenter.x = fRectBound.x + fRectBound.width / 2.0f;\n fptCenter.y = fRectBound.y + fRectBound.height / 2.0f;\n calculate(fptCenter);\n \n rotateRadian = 0.0f;\n \n return fptCenter;\n }",
"public EastNorth getCenter() {\n\t\treturn null;\n\t}",
"public Point2D getTopCenterPoint()\n {\n double x = mainVBox.getTranslateX() + (mainVBox.getWidth() / 2);\n double y = mainVBox.getTranslateY();\n return new Point2D(x, y);\n }",
"public Point2D.Double GetCentrePoint() {\n \t\treturn new Point2D.Double(centrePoint.getX(), centrePoint.getY());\n \t}",
"@Override\n public Point[] chooseCentroids(AbstractCluster self) {\n if (K!=2) {\n System.err.println(\"The used splitter is not suppose to be used with K>2. This program will shut down\"); //#like\n exit(1);\n }\n Point[] result={self.get(0),self.get(0)};\n double max=0;\n for (int i=0; i<self.size(); ++i)\n for (int j=0; j<i; ++j)\n if (max<_distances.get(self.get(i).getId(),self.get(j).getId())) {\n max=_distances.get(self.get(i).getId(),self.get(j).getId());\n result[0]=self.get(i);\n result[1]=self.get(j);\n }\n return result;\n }",
"private Point middleLeft() {\n return this.topLeft.add(0, this.height / 2).asPoint();\n }",
"private Point findTopLeftCornerPoint() {\n return new Point(origin.getX(), origin.getY() + width);\n }",
"protected void calculateMinMaxCenterPoint() {\n\t\tfinal ImagePlus imp = c.getImage();\n\t\tfinal int w = imp.getWidth(), h = imp.getHeight();\n\t\tfinal int d = imp.getStackSize();\n\t\tfinal Calibration cal = imp.getCalibration();\n\t\tmin = new Point3d();\n\t\tmax = new Point3d();\n\t\tcenter = new Point3d();\n\t\tmin.x = w * (float) cal.pixelHeight;\n\t\tmin.y = h * (float) cal.pixelHeight;\n\t\tmin.z = d * (float) cal.pixelDepth;\n\t\tmax.x = 0;\n\t\tmax.y = 0;\n\t\tmax.z = 0;\n\n\t\tfloat vol = 0;\n\t\tfor (int zi = 0; zi < d; zi++) {\n\t\t\tfinal float z = zi * (float) cal.pixelDepth;\n\t\t\tfinal ImageProcessor ip = imp.getStack().getProcessor(zi + 1);\n\n\t\t\tfinal int wh = w * h;\n\t\t\tfor (int i = 0; i < wh; i++) {\n\t\t\t\tfinal float v = ip.getf(i);\n\t\t\t\tif (v == 0) continue;\n\t\t\t\tvol += v;\n\t\t\t\tfinal float x = (i % w) * (float) cal.pixelWidth;\n\t\t\t\tfinal float y = (i / w) * (float) cal.pixelHeight;\n\t\t\t\tif (x < min.x) min.x = x;\n\t\t\t\tif (y < min.y) min.y = y;\n\t\t\t\tif (z < min.z) min.z = z;\n\t\t\t\tif (x > max.x) max.x = x;\n\t\t\t\tif (y > max.y) max.y = y;\n\t\t\t\tif (z > max.z) max.z = z;\n\t\t\t\tcenter.x += v * x;\n\t\t\t\tcenter.y += v * y;\n\t\t\t\tcenter.z += v * z;\n\t\t\t}\n\t\t}\n\t\tcenter.x /= vol;\n\t\tcenter.y /= vol;\n\t\tcenter.z /= vol;\n\n\t\tvolume = (float) (vol * cal.pixelWidth * cal.pixelHeight * cal.pixelDepth);\n\n\t}",
"public Point2D getLeftCenterPoint()\n {\n double x = mainVBox.getTranslateX();\n double y = mainVBox.getTranslateY() + (mainVBox.getHeight() / 2);\n return new Point2D(x, y);\n }",
"public static ArrayList<Point> getInitialCenters(FileSystem fs, Path input, int k) throws IOException {\n\t\treturn getInitialCenters(fs, input, k, false);\n\t}",
"public float getCenterX() {\n return cPosition.getX() + (float) cFishSizeX / 2;\n }",
"public void getNeighbors(){\n // North \n if(this.row - this.value>=0){\n this.north = adjacentcyList[((this.row - this.value)*col_size)+col];\n }\n // South\n if(this.row + value<row_size){\n this.south = adjacentcyList[((this.row+this.value)*row_size)+col];\n }\n // East\n if(this.col + this.value<col_size){\n this.east = adjacentcyList[((this.col+this.value)+(this.row)*(col_size))];\n }\n // West\n if(this.col - this.value>=0){\n this.west = adjacentcyList[((this.row*col_size)+(this.col - this.value))];\n }\n }",
"public int getX() {\r\n return (int) center.getX();\r\n }",
"public void centerSelection() {\n RenderContext myrc = (RenderContext) rc; if (myrc == null) return;\n Set<String> sel = myrc.filterEntities(getRTParent().getSelectedEntities());\n if (sel != null && sel.size() > 0) {\n Iterator<String> it = sel.iterator();\n\twhile (it.hasNext()) { \n\t String ent = it.next(); Point2D point = entity_to_wxy.get(ent);\n\t if (last_shft_down) entity_to_wxy.put(ent, new Point2D.Double(point.getX(),m_wy)); \n\t else if (last_ctrl_down) entity_to_wxy.put(ent, new Point2D.Double(m_wx,point.getY()));\n\t else entity_to_wxy.put(ent, new Point2D.Double(m_wx,m_wy));\n\t transform(ent); \n\t}\n getRTComponent().render();\n }\n }",
"@Override\n\tpublic Object getCentroid() {\n\t\treturn centroid;\n\t}",
"public int getX() {\n return (int) center.getX();\n }",
"public Vector2 getCenter() {\n\t\treturn new Vector2(position.x + size / 4f, position.y + size / 4f);\n\t}",
"public Array<Point> allOuterPoints() {\r\n \tArray<Point> innerPoints = innerPiece.getPoints();\r\n Array<Point> outerPoints = new Array<Point>();\r\n for (Point inner : innerPoints) {\r\n outerPoints.add(toOuterPoint(inner));\r\n }\r\n return outerPoints;\r\n }",
"public Location3D getCenter() {\n\t\treturn new Location3D(world, lowPoint.getBlockX() + getXSize() / 2, lowPoint.getBlockY() + getYSize() / 2, lowPoint.getBlockZ() + getZSize() / 2);\n\t}",
"public Point3d get3DCenter() {\n double xOfCenter = 0;\n double yOfCenter = 0;\n double zOfCenter = 0;\n for (IAtom atom : atoms) {\n xOfCenter += atom.getPoint3d().x;\n yOfCenter += atom.getPoint3d().y;\n zOfCenter += atom.getPoint3d().z;\n }\n\n return new Point3d(xOfCenter / getAtomCount(),\n yOfCenter / getAtomCount(),\n zOfCenter / getAtomCount());\n }",
"public Vector getCentroid() {\n return centroid;\n }",
"public BoardCell getCenterCell() {\n\t\treturn null;\n\t}",
"public void smartCenter() {\n WebPlot p = getPrimaryPlot();\n if (p==null) return;\n\n if (isWcsSync()) {\n wcsSyncCenter(computeWcsSyncCenter());\n }\n else if (p.containsAttributeKey(WebPlot.FIXED_TARGET)) {\n Object o = p.getAttribute(WebPlot.FIXED_TARGET);\n if (o instanceof ActiveTarget.PosEntry) {\n ActiveTarget.PosEntry entry = (ActiveTarget.PosEntry) o;\n ImageWorkSpacePt ipt = p.getImageWorkSpaceCoords(entry.getPt());\n if (ipt!=null && p.pointInPlot(entry.getPt())) centerOnPoint(ipt);\n else simpleImageCenter();\n }\n } else {\n simpleImageCenter();\n }\n }",
"public Double2D getCentral() {\n\n int width = (int)Math.sqrt(state.numAgents);\n if (Math.sqrt(state.numAgents) / width == 1.0) {\n\n double halfWidth = width / 2.0;\n int x = id / width;\n int y = id % width;\n\n double length = state.simWidth / width;\n double halfLength = length / 2.0;\n\n double dx = ((x - halfWidth) * length + halfLength) + meanLocation.getX();\n double dy = ((y - halfWidth) * length + halfLength) + meanLocation.getY();\n //state.printlnSynchronized(\"Dx = \" + dx + \" dy = \" + dy);\n return new Double2D(dx, dy);\n }else {\n return meanLocation;\n }\n }",
"public Vector3D getCentrePosition()\n\t{\n\t\treturn centrePosition;\n\t}",
"public double getBorderCenterZ()\n {\n return borderCenterZ;\n }",
"public Line2D.Double\ncenterAtMidPt()\n{\n\tPoint2D midPt = this.getMidPt();\n\treturn new Line2D.Double(\n\t\tgetX1() - midPt.getX(),\n\t\tgetY1() - midPt.getY(),\n\t\tgetX2() - midPt.getX(),\n\t\tgetY2() - midPt.getY());\n}",
"public Point getLocation() {\r\n\t\treturn this.center;\r\n\t}",
"private PointF getCenterOfCropRect() {\n return new PointF(\n cropRect.centerX(),\n cropRect.centerY());\n }",
"public int getYCenter() {\n return getYOrigin() + panelHeight/2;\n }"
]
| [
"0.6457902",
"0.6402138",
"0.6383645",
"0.6364336",
"0.63611615",
"0.6334377",
"0.6303055",
"0.6261225",
"0.6208064",
"0.6204626",
"0.61990756",
"0.61799794",
"0.6149161",
"0.61471057",
"0.61440176",
"0.6139243",
"0.61217886",
"0.61217886",
"0.61202717",
"0.6053046",
"0.6052929",
"0.602422",
"0.60207075",
"0.6009992",
"0.5986264",
"0.5941835",
"0.59324116",
"0.59246606",
"0.59110194",
"0.58936024",
"0.58917373",
"0.5884764",
"0.5850134",
"0.58314735",
"0.5815179",
"0.58077717",
"0.5806032",
"0.57975656",
"0.5788859",
"0.57760495",
"0.5760019",
"0.5758782",
"0.57533324",
"0.57379615",
"0.573256",
"0.572538",
"0.57154566",
"0.570221",
"0.5699977",
"0.5680563",
"0.5660363",
"0.56246585",
"0.56167823",
"0.56078607",
"0.5603395",
"0.5595928",
"0.55828655",
"0.55810773",
"0.5578619",
"0.55700946",
"0.5566714",
"0.55665755",
"0.55624175",
"0.5561654",
"0.5559451",
"0.5537013",
"0.5530765",
"0.55289555",
"0.55161816",
"0.55038047",
"0.5501283",
"0.5488193",
"0.54726565",
"0.5471443",
"0.5470723",
"0.5465865",
"0.54637355",
"0.5444634",
"0.54444563",
"0.5436963",
"0.5430452",
"0.542983",
"0.54225034",
"0.53954273",
"0.5394197",
"0.53721535",
"0.53711796",
"0.5369768",
"0.5365332",
"0.53436416",
"0.5336156",
"0.53286237",
"0.53074795",
"0.52935416",
"0.5282814",
"0.52790105",
"0.52777946",
"0.52763164",
"0.52588415",
"0.5253768",
"0.5251065"
]
| 0.0 | -1 |
Retrieve the icon of the entity. | public EntityIcon getIcon() {
return icon;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getIcon() {\n return icon;\n }",
"public String getIcon() {\n return icon;\n }",
"public String getIcon() {\n return icon;\n }",
"public String getIcon() {\n return icon;\n }",
"public Icon getIcon();",
"protected Icon getIcon() {\n return getConnection().getIcon(getIconUri());\n }",
"public byte[] getIcon()\r\n {\r\n return icon;\r\n }",
"public Icon getIcon() {\n if (model != null)\n return model.getIcon(21, 16, \"model\"); //$NON-NLS-1$\n return null;\n }",
"java.lang.String getIcon();",
"java.lang.String getIcon();",
"public FSIcon getIcon() {\n return icon;\n }",
"public ResourceLocation getIcon() {\n return icon;\n }",
"public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n icon_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n icon_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n icon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n icon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public Icon getIcon()\n {\n return getComponent().getIcon();\n }",
"public String getIcon() {\n\t\treturn \"icon\";\n\t}",
"Icon getIcon();",
"String getIcon();",
"String getIcon();",
"@Nullable\n public final Drawable getIcon() {\n return mIcon;\n }",
"public URL getIcon()\r\n {\r\n\treturn icon;\r\n }",
"public ImageDescriptor getIcon();",
"public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public org.netbeans.modules.j2ee.dd.api.common.Icon getIcon(){return null;}",
"@Nullable\n // Safe as we want to provide all getters being public for POJOs\n @SuppressWarnings({\"unused\", \"WeakerAccess\"})\n public final String getIconId() {\n return iconId;\n }",
"public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\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 icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\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 icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public int getIconId(){\n return mIconId;\n }",
"@NotNull\n SVGResource getIcon();",
"public URI getIconUri() {\n return this.iconUri;\n }",
"public Bitmap getIcon() {\n return mBundle.getParcelable(KEY_ICON);\n }",
"public String getIconString() {\n return theIconStr;\n }",
"com.google.protobuf.ByteString\n getIconBytes();",
"com.google.protobuf.ByteString\n getIconBytes();",
"public String getIcon(){\n\t\t\t\t\n\t\treturn inCity.getWeather().get(0).getIcon();\n\t}",
"public Icon getIcon() {\n\t\treturn null;\n\t}",
"public Icon getIcon() {\n \t\treturn null;\n \t}",
"public Icon icon() {\n\t\treturn new ImageIcon(image());\n\t}",
"public AwesomeIcon icon() {\n\t\treturn icon;\n\t}",
"public Icon getIcon()\n {\n return this.blockIcon;\n }",
"public int getIcon()\n\t{\n\t\treturn getClass().getAnnotation(AccuAction.class).icon();\n\t}",
"public Icon getImageIcon() {\r\n\t\treturn lblImageViewer.getIcon();\r\n\t}",
"public String getIconUrl() {\n return iconUrl;\n }",
"public char getIcon() {\n return this.icon;\n }",
"public String getIconUrl() {\r\n return iconUrl;\r\n }",
"public abstract ImageDescriptor getIcon();",
"@Nullable\n public Drawable getIcon() {\n return mPrimaryIcon;\n }",
"public String getIconClass(ContentEntity entity, boolean expanded);",
"public byte[] getIcon()\n {\n return Resources.getImage(Resources.DICT_LOGO);\n }",
"protected String getIconUri() {\n return getResourceUrl(ComponentConstants.ICON_RESOURCE);\n }",
"@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource(\"images/icon.png\"));\n return retValue;\n }",
"@Override\n\tpublic long getIconId() {\n\t\treturn _scienceApp.getIconId();\n\t}",
"public Icon getIcon(Object object);",
"@Override\n\tImageIcon getImage() {\n\t\treturn img;\n\t}",
"public Icon getIcon(@NotNull DartComponent component) {\n return getIcon();\n }",
"public Icon getIcon() {\r\n\r\n if (icon == null && this.getIconString() != null) {\r\n InputStream in = this.getClass().getResourceAsStream(this.getIconString());\r\n BufferedImage img = null;\r\n Image scaledImg = null;\r\n try {\r\n img = ImageIO.read(in);\r\n scaledImg = img.getScaledInstance(this.useToolIconSize ? PirolPlugInSettings.StandardToolIconWidth : PirolPlugInSettings.StandardPlugInIconWidth, this.useToolIconSize ? PirolPlugInSettings.StandardToolIconHeight : PirolPlugInSettings.StandardPlugInIconHeight, img.getType());\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n img = null;\r\n icon = null;\r\n }\r\n if (scaledImg != null) {\r\n icon = new ImageIcon(scaledImg);\r\n }\r\n }\r\n return icon;\r\n }",
"@Nullable\n final public String getIconImageUrl() {\n return mIconImageUrl;\n }",
"public String getUserIcon() {\n return userIcon;\n }",
"public String getXpeIcon() {\n return (String) getAttributeInternal(XPEICON);\n }",
"@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource(\"imagenes/Icon.jpg\"));\n return retValue;\n }",
"@Override\n\tpublic Image getIconImage() {\n\t\tImage retValue = Toolkit.getDefaultToolkit().getImage(\"C:/BuildShop/IMG/Logo64x64.png\");\n\t\treturn retValue;\n\t}",
"public abstract Drawable getIcon();",
"public String getIconCls() {\n\t\tif (null != this.iconCls) {\n\t\t\treturn this.iconCls;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"iconCls\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public abstract String typeIcon();",
"public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().\n getImage(ClassLoader.getSystemResource(\"Imagenes/Cagliero.png\"));\n return retValue;\n }",
"@Override\n\tpublic ToolIconURL getIconURL() {\n\t\treturn iconURL;\n\t}",
"@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().\n getImage(ClassLoader.getSystemResource(\"Imagenes/Sisapre001.png\"));\n return retValue;\n }",
"@SideOnly(Side.CLIENT)\n\tpublic IIcon getIconFromDamage(int meta)\n\t{\n\t\treturn icon;\n\t}",
"public abstract String getIconPath();",
"protected Drawable getIcon(Context context) {\n if (this.iconResource != 0) {\n return ContextCompat.getDrawable(context, this.iconResource);\n } else {\n return this.icon;\n }\n }",
"@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().\n getImage(ClassLoader.getSystemResource(\"Images/mainIcon.png\"));\n\n\n return retValue;\n }",
"public ImageIcon getIcon() {\n\t\treturn null;\n\t}",
"public ImageIcon getIcon() {\n\t\treturn null;\n\t}",
"public String getIconFileName() {\n\tif (this.isSuccess()) {\n\t return this.icon;\n\t} else {\n\t return null;\n\t}\n }",
"public Image getSourceIcon() {\n return impl.getSourceIcon();\n }",
"Texture getIcon();",
"public static IIconDescriptor getIconDescriptor() {\n\t\tif (iconDescriptor == null)\n\t\t\ticonDescriptor = new ServerIconDescriptor(\"servers\"); //$NON-NLS-1$\n\t\treturn iconDescriptor;\n\t}",
"String getIconFile();",
"@Deprecated\n\tpublic String getIconLocation(ContentEntity entity, boolean expanded);",
"public AppIcon getAppIcon () ;",
"Icon getIcon(URI activityType);",
"@Override\n public Image getFlagImage() {\n Image image = AwsToolkitCore.getDefault().getImageRegistry().get(AwsToolkitCore.IMAGE_FLAG_PREFIX + id);\n if ( image == null ) {\n image = AwsToolkitCore.getDefault().getImageRegistry().get(AwsToolkitCore.IMAGE_AWS_ICON);\n }\n return image;\n }",
"protected Image loadIcon() {\n /*\n * Icon by http://www.artua.com/, retrieved here:\n * http://www.iconarchive.com/show/star-wars-icons-by-artua.html\n */\n return new ImageLoader().loadIcon(\"moon.png\");\n }",
"public String getMessageIcon() {\n return messageIcon;\n }",
"public int getIconIndex() {\n return iconIndex;\n }",
"public Integer getIconImageResourceId() {\n return null;\n }",
"public String getNomIcone() {\n\t\treturn nomIcone;\n\t}",
"public String getWeatherIcon() {\n\t\treturn weatherIcon;\n\t}",
"public String getAccessibleIconDescription();",
"public String getIconURL()\n {\n return null; \n }",
"public @Nullable IIconData getIcon(@Nullable URL url);",
"public int getSmallIconId() throws android.os.RemoteException;",
"public Image getIconImage(){\n Image retValue = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource(\"Reportes/logoAlk.jpg\"));\n return retValue;\n }",
"public abstract String getIconString();",
"public IIcon method_2681() {\r\n return this.field_2146;\r\n }",
"public char getCurrentIcon(){\n\t\treturn icon;\r\n\t}",
"public int getIconImageNumber(){return iconImageNumber;}"
]
| [
"0.78421533",
"0.78421533",
"0.78421533",
"0.78421533",
"0.7691652",
"0.76369977",
"0.7569367",
"0.7565402",
"0.7561498",
"0.7561498",
"0.75592566",
"0.7552315",
"0.7538647",
"0.7538647",
"0.75258976",
"0.75258976",
"0.7509828",
"0.75073147",
"0.74715984",
"0.74400103",
"0.74400103",
"0.7382363",
"0.7327868",
"0.72919816",
"0.7285988",
"0.7285988",
"0.72839034",
"0.7262581",
"0.7244603",
"0.7244603",
"0.721887",
"0.72025484",
"0.71921676",
"0.7191842",
"0.71601397",
"0.71595746",
"0.71595746",
"0.7144399",
"0.710034",
"0.7096408",
"0.7037048",
"0.70192707",
"0.7012817",
"0.69984895",
"0.6967313",
"0.69400036",
"0.6919772",
"0.69151443",
"0.6914741",
"0.68881154",
"0.6876384",
"0.6875211",
"0.68635005",
"0.68612397",
"0.6856498",
"0.6831894",
"0.6825542",
"0.6778143",
"0.67710125",
"0.6766444",
"0.674119",
"0.6722678",
"0.6713748",
"0.6710405",
"0.67028403",
"0.6684844",
"0.66216046",
"0.6619015",
"0.6597834",
"0.6580971",
"0.6570664",
"0.6567622",
"0.6551267",
"0.6502958",
"0.64827347",
"0.64827347",
"0.64716226",
"0.64675415",
"0.64607894",
"0.64571077",
"0.64566785",
"0.64403194",
"0.6433622",
"0.6421291",
"0.6416285",
"0.64054126",
"0.6389437",
"0.63891524",
"0.6379327",
"0.6372477",
"0.636796",
"0.63664293",
"0.6357513",
"0.633559",
"0.6330134",
"0.6328323",
"0.6325563",
"0.63225424",
"0.63213766",
"0.6320476"
]
| 0.8526124 | 0 |
recipes in a course | @RequestMapping(value = "course", method = RequestMethod.GET)
public String course(Model model, @RequestParam int id){
Course cor = courseDao.findOne(id);
List<Recipe> recipes = cor.getRecipes();
model.addAttribute("recipes", recipes);
model.addAttribute("title", cor.getCourseName() + " recipes");
return "recipe/list-under";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void readRecipes() {\n\t\tBufferedReader br = null;\n\t\tString line = \"\";\n\t\tString cvsSplitBy = \",\";\n\t\ttry {\n\n\t\t\tbr = new BufferedReader(new FileReader(inputFileLocation));\n\t\t\twhile ((line = br.readLine()) != null) {\n\n\t\t\t\tString[] currentLine = line.split(cvsSplitBy);\n\t\t\t\tRecipe currentRecipe = new Recipe(currentLine[0]);\n\t\t\t\t/*\n\t\t\t\t * String[] recipe=new String[currentLine.length-1];\n\t\t\t\t * System.arraycopy(currentLine,1,recipe,0,recipe.length-2);\n\t\t\t\t */\n\t\t\t\tString[] recipe = java.util.Arrays.copyOfRange(currentLine, 1,\n\t\t\t\t\t\tcurrentLine.length);\n\t\t\t\tArrayList<String> ingredients = new ArrayList<String>();\n\t\t\t\tfor (String a : recipe) {\n\t\t\t\t\tingredients.add(a);\n\t\t\t\t}\n\t\t\t\tcurrentRecipe.setIngredients(ingredients);\n\t\t\t\tRecipes.add(currentRecipe);\n\t\t\t}\n\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} finally {\n\t\t\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}",
"ArrayList<RecipeObject> getRecipes();",
"public Recipe getRecipe() {\r\n return recipe;\r\n }",
"List<Recipe> getAllRecipes();",
"private static HashMap<Integer, Course> getCourses() {\r\n return IO.getCoursesFromInput(); // get courses from file\r\n }",
"public Recipe getRecipe(){\n\t\tRecipe recipe = new Recipe();\n\t\trecipe.setName(name);\n\t\trecipe.setNumPersons(numPersons);\n\t\trecipe.setPrepTime(prepTime);\n\t\trecipe.setRestTime(restTime);\n\t\trecipe.setCookingTime(cookingTime);\n\t\tHashMap<Ingredient, Quantity> ingredients = new HashMap<Ingredient,Quantity>();\n\t\tfor(int i = 0; i<ingredientsList.size(); i++){\n\t\t\tingredients.put(ingredientsList.get(i), quantities.get(i));\n\t\t}\n\t\trecipe.setIngredients(ingredients);\n\t\trecipe.setSteps(steps);\n\t\treturn recipe;\n\t}",
"public Recipe getRecipe() {\n return recipe;\n }",
"void addTestTermsAndCourses() {\n // Creates Terms\n addTerm(\"Term 1\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 2\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 3\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 4\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 5\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 6\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 7\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 8\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 9\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 10\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 11\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 12\", \"5/19/2019\", \"6/23/2019\");\n int term1Id = getTermIdFromIndex(0);\n int term2Id = getTermIdFromIndex(1);\n// int term3Id = getTermIdFromIndex(2);\n\n // Creates Courses\n addCourse(\"course 1\", \"5/29/2019\", \"5/29/19\",\n \"Working On\", \"Dr. Phil\", \"80183834433\",\n \"[email protected]\", \"TESTING OPTIONAL NOTE\", term1Id);\n addCourse(\"course 2\", \"5/29/2019\", \"5/29/19\",\n \"Working On\", \"Dr. Phil\", \"80183834433\",\n \"[email protected]\", \"TESTING OPTIONAL NOTE\", term1Id);\n addCourse(\"course 3\", \"5/29/2019\", \"5/29/19\",\n \"Working On\", \"Dr. Phil\", \"80183834433\",\n \"[email protected]\", \"TESTING OPTIONAL NOTE\", term2Id);\n addCourse(\"course 4\", \"5/29/2019\", \"5/29/19\",\n \"Working On\", \"Dr. Phil\", \"80183834433\",\n \"[email protected]\", \"TESTING OPTIONAL NOTE\", term1Id);\n addCourse(\"course 5\", \"5/29/2019\", \"5/29/19\",\n \"Working On\", \"Dr. Phil\", \"80183834433\",\n \"[email protected]\", \"TESTING OPTIONAL NOTE\", term1Id);\n addCourse(\"course 6\", \"5/29/2019\", \"5/29/19\",\n \"Working On\", \"Dr. Phil\", \"80183834433\",\n \"[email protected]\", \"TESTING OPTIONAL NOTE\", term2Id);\n int course1Id = getCourseIdFromIndex(0);\n int course2Id = getCourseIdFromIndex(1);\n\n // Creates Assignments\n addAssignment(\"Assignment 1\", \"this shit is whack\", \"5/29/2019\", course1Id);\n addAssignment(\"Assignment 2\", \"this shit is whack\", \"5/29/2019\", course2Id);\n addAssignment(\"Assignment 3\", \"this shit is whack\", \"5/29/2019\", course2Id);\n addAssignment(\"Assignment 4\", \"this shit is whack\", \"5/29/2019\", course2Id);\n addAssignment(\"Assignment 5\", \"this shit is whack\", \"5/29/2019\", course1Id);\n addAssignment(\"Assignment 6\", \"this shit is whack\", \"5/29/2019\", null);\n addAssignment(\"Assignment 7\", \"this shit is whack\", \"5/29/2019\", course1Id);\n addAssignment(\"Assignment 8\", \"this shit is whack\", \"5/29/2019\", course2Id);\n addAssignment(\"Assignment 9\", \"this shit is whack\", \"5/29/2019\", course2Id);\n addAssignment(\"Assignment 10\", \"this shit is whack\", \"5/29/2019\", course2Id);\n addAssignment(\"Assignment 11\", \"this shit is whack\", \"5/29/2019\", course1Id);\n addAssignment(\"Assignment 12\", \"this shit is whack\", \"5/29/2019\", null);\n }",
"public List<Recipe> getRecipes()\n {\n return _recipes;\n }",
"@java.lang.Override\n public io.grafeas.v1.Recipe getRecipe() {\n return recipe_ == null ? io.grafeas.v1.Recipe.getDefaultInstance() : recipe_;\n }",
"@Override\n\tpublic void initRecipes()\n\t{\n\n\t}",
"private void loadRecipes() {\n\t\tGameRegistry.addRecipe(new ItemStack(RamsesMod.ramsesHelmet),\n\t\t\t\t\"XXX\",\n\t\t\t\t\"X X\",\n\t\t\t\t\" \", 'X', Blocks.lapis_ore);\n\n\t\tGameRegistry.addRecipe(new ItemStack(RamsesMod.ramsesChestplate),\n\t\t\t\t\"X X\",\n\t\t\t\t\"XXX\",\n\t\t\t\t\"XXX\", 'X', Blocks.lapis_ore);\n\n\t\tGameRegistry.addRecipe(new ItemStack(RamsesMod.ramsesLeggings),\n\t\t\t\t\"XXX\",\n\t\t\t\t\"X X\",\n\t\t\t\t\"X X\", 'X', Blocks.lapis_ore);\n\n\t\tGameRegistry.addRecipe(new ItemStack(RamsesMod.ramsesBoots),\n\t\t\t\t\" \",\n\t\t\t\t\"X X\",\n\t\t\t\t\"X X\", 'X', Blocks.lapis_ore);\n\t}",
"@Override\n\tpublic void addRecipes() {\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Core.materials, 1, MaterialsMeta.DYE_BROWN), \"coralBrown\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Core.materials, 1, MaterialsMeta.DYE_RED), \"coralRed\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Core.materials, 1, MaterialsMeta.DYE_YELLOW), \"coralYellow\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Items.dye, 1, Dye.LIGHT_BLUE), \"coralLightBlue\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Items.dye, 1, Dye.MAGENTA), \"coralMagenta\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Items.dye, 1, Dye.ORANGE), \"coralOrange\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Items.dye, 1, Dye.PINK), \"coralPink\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Items.dye, 1, Dye.PURPLE), \"coralPurple\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Items.dye, 1, Dye.GREY), \"coralGray\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Items.dye, 1, Dye.LIGHT_GREY), \"coralLightGray\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Core.materials, 1, MaterialsMeta.DYE_WHITE), \"coralWhite\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Core.materials, 1, MaterialsMeta.DYE_GREEN), \"plantKelp\", true);\n\t\t\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_BLUE), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_BRAIN), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_CANDYCANE), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_CUCUMBER), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_ORANGE), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_PINK), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_PURPLE), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_RED), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_GREY), new ItemStack(coral, 1, CoralMeta.CORAL_LIGHT_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_LIGHT_GREY), new ItemStack(coral, 1, CoralMeta.CORAL_WHITE), 5);\n\t\t\n\t\t//Kelp Wrap Recipe\n\t\tRecipeHelper.add9x9Recipe(new ItemStack(Core.food, 1, FoodMeta.KELP_WRAP), \"plantKelp\");\n\t\t\n\t\taddOceanChestLoot();\n\t}",
"ArrayList<RecipeObject> getRecipes(String recipeName);",
"public List<Recipe> getRecipe()\n {\n SQLiteDatabase db = getReadableDatabase();\n SQLiteQueryBuilder qb = new SQLiteQueryBuilder();\n\n //Attributes as they appear in the database\n String[] sqlSelect = {\"recipeid\",\"name\",\"type\",\"description\",\"ingredients\",\"instruction\",\"imageid\",\"nutritionimage\",\"cookingtime\",\"totalcost\"};\n String RECIPE_TABLE = \"Recipe\"; //Table name as it is in database\n\n qb.setTables(RECIPE_TABLE);\n Cursor cursor = qb.query(db,sqlSelect, null,null, null, null, null);\n List<Recipe> result = new ArrayList<>();\n if(cursor.moveToFirst())\n {\n do{\n Recipe recipe = new Recipe();\n recipe.setRecipeid(cursor.getInt(cursor.getColumnIndex(\"recipeid\")));\n recipe.setName(cursor.getString(cursor.getColumnIndex(\"name\")));\n recipe.setType(cursor.getString(cursor.getColumnIndex(\"type\")));\n recipe.setDescription(cursor.getString(cursor.getColumnIndex(\"description\")));\n recipe.setIngredients(cursor.getString(cursor.getColumnIndex(\"ingredients\")));\n recipe.setInstruction(cursor.getString(cursor.getColumnIndex(\"instruction\")));\n recipe.setImageid(cursor.getString(cursor.getColumnIndex(\"imageid\")));\n recipe.setNutritionimage(cursor.getString(cursor.getColumnIndex(\"nutritionimage\")));\n recipe.setCookingtime(cursor.getInt(cursor.getColumnIndex(\"cookingtime\")));\n recipe.setTotalcost(cursor.getFloat(cursor.getColumnIndex(\"totalcost\")));\n\n result.add(recipe);\n }while(cursor.moveToNext());\n }\n return result;\n }",
"@Override\r\n\tpublic boolean takeCourse(String studentId,Course course) {\n\t\tList<String> hasTaken=db.findStudentCourseHistory( studentId);\r\n\t\tList<String> prerequisite=getPrerequisite(course.getDescription());\r\n\t\treturn false;\r\n\t}",
"@RequestMapping(method = RequestMethod.GET, value = \"/recipes\", produces = MediaType.APPLICATION_JSON_VALUE)\n public RecipesDescriptor getRecipes() {\n final Stream<Recipe> stream = StreamSupport.stream(this.recipeRepository.findAll().spliterator(), false);\n\n final List<Recipe> recipes = stream.collect(Collectors.toList());\n return new RecipesDescriptor(recipes);\n }",
"public int getNumRecipes()\n {\n return _recipes.size();\n }",
"@Override\npublic ArrayList<String> courses() {\n\tArrayList<String> studentCourses = new ArrayList<String>();\n\tstudentCourses.add(\"CMPE - 273\");\n\tstudentCourses.add(\"CMPE - 206\");\n\tstudentCourses.add(\"CMPE - 277\");\n\tSystem.out.println(this.name+\" has take these courses\");\n\tfor(int i = 0 ; i < studentCourses.size() ; i++){\n\t\tSystem.out.println( studentCourses.get(i));\n\t}\n\treturn null;\n}",
"@Override\n public void loadCraftingRecipes(ItemStack result)\n {\n if (!Compare.isStackAChemical(result))\n {\n return;\n }\n // Add all decomposer recipes that can yield the result.\n PotionChemical resultChemical = MinechemUtil.itemStackToChemical(result);\n if (resultChemical == null)\n {\n return;\n }\n for (DecomposerRecipe dr : DecomposerRecipe.recipes.values())\n {\n if (dr.outputContains(resultChemical))\n {\n registerDecomposerRecipe(dr);\n }\n }\n arecipes = sortList(arecipes);\n }",
"public Cursor loadRecipe(int id){\r\n Cursor c = db.query(recipes.TABLENAME, new String[]{recipes.TITLE, recipes.IMAGE, recipes.INGREDIENTS, recipes.STEPS, recipes.TYPE, recipes.TIME, recipes.PEOPLE, recipes.IDRECIPE}, recipes.IDRECIPE + \"=\" + id, null, null, null, null);\r\n if (c != null) c.moveToFirst();\r\n return c;\r\n }",
"Observable<List<Recipe>> getRecipes();",
"public static void main(String[] args)\n {\n\n // open text file\n File courseFile = new File(\"courses.txt\");\n // open a Scanner to read data from File\n Scanner courseReader = null;\n try\n {\n courseReader = new Scanner(courseFile);\n }\n catch (FileNotFoundException e)\n {\n System.out\n .println(\"No courseList Course found- courseList is empty\");\n }\n\n\n\n // Instantiate the HashMap\n HashMap<Integer, Course> courseHM = new HashMap<>();\n\n\n\n // read the file one course at a time & determine which subject\n // it is before creating an instance of the course and adding it\n // to the HashMap\n while ( courseReader != null && courseReader.hasNext() )\n {\n\n String category = courseReader.nextLine();\n String name = courseReader.nextLine();\n String crnString = courseReader.nextLine();\n Integer crn = Integer.parseInt(crnString);\n\n if ( category.equalsIgnoreCase(\"English\") )\n {\n\n String level = courseReader.nextLine();\n String format = courseReader.nextLine();\n\n // Creates the English course & puts it in the HashMap\n English tempClass = new English(category, name, crn, level, format);\n courseHM.put(crn, tempClass);\n\n }\n else if ( category.equalsIgnoreCase(\"Math\") )\n {\n\n String temp = courseReader.nextLine();\n boolean stem = Boolean.parseBoolean(temp);\n String format = courseReader.nextLine();\n\n // Creates the Math course & puts it in the HashMap\n Math tempClass = new Math(category, name, crn, stem, format);\n courseHM.put(crn, tempClass);\n\n }\n else if ( category.equalsIgnoreCase(\"History\") )\n {\n\n String temp = courseReader.nextLine();\n boolean areaEligible = Boolean.parseBoolean(temp);\n String format = courseReader.nextLine();\n\n // Creates the History course & puts it in the HashMap\n History tempClass = new History(category, name, crn, areaEligible,\n format);\n courseHM.put(crn, tempClass);\n\n }\n else\n {\n System.out.println(\"Unknown Course type \" + category);\n }\n\n }\n\n\n\n\n // iterates through the key set of Integers\n Set<Integer> keySet = courseHM.keySet();\n for (Integer key : keySet)\n {\n Course course = courseHM.get(key);\n System.out.println(key + \" : \" + course.toString());\n }\n\n\n\n }",
"Recipe getRecipe(CharSequence query);",
"public CSCourses() {\n courseList = new LinkedList<Course>(); \n numOfCourses = 0;\n }",
"public static ArrayList<Recipe> getAllRecipes() {\n allRecipes.add(new Recipe(\"Pizza\", 1.0, \"gn_logo\", \"Italian\", \"5\", \"instr\", \"ingredients2\"));\n allRecipes.add(new Recipe(\"Pasta\", 1.0, \"gn_logo\", \"Italian\", \"5\", \"instr\", \"ingredients\"));\n\n allRecipes.add(new Recipe(\"Sushi Rolls\", 2.0, \"mkp_logo\", \"Japanese\", \"5\", \"instr\", \"ingredients\"));\n\n allRecipes.add(new Recipe(\"Crepe\", 3.5, \"mt_logo\", \"French\", \"5\", \"instr\", \"ingredients\"));\n\n allRecipes.add(new Recipe(\"Baked Salmon\", 0, \"pb_logo\", \"American\", \"5\", \"1. prep ingredients\\n2.cook food\\n3.eat your food\", \"ingredients1 ingredient 2 ingredient3\"));\n\n return allRecipes;\n }",
"@Override\n public void setupRecipes()\n {\n\n }",
"private void getCourseList(){\r\n\r\n CourseDAO courseDAO = new CourseDAO(Statistics.this);\r\n List<Course> courseList= courseDAO.readListofCourses();\r\n for(Course course: courseList) {\r\n courses.add(course.getName());\r\n }\r\n\r\n }",
"private void obtainCourseSafely() {\n System.out.println(\"What is the name of the Course you wish to add (eg. CPSC 210)\");\n String name = scanner.nextLine();\n\n System.out.println(\"How many Sub-Classes does this have? (eg. CPSC 210 201 and CPSC 210 202 would mean 2)\");\n subClassNames = getNames(obtainIntSafely(1, 999, \"Enter int > 0\"), \"Class\");\n subClassTimes = getTimes(name, subClassNames);\n\n boolean response1 = yesNoQuestion(\"Does this class have a separate lab component?\");\n if (response1) {\n System.out.println(\"How many Labs does this have?\");\n labNames = getNames(obtainIntSafely(1, 999, \"Enter int > 0\"), \"Lab\");\n labTimes = getTimes(name, labNames);\n }\n\n boolean response2 = yesNoQuestion(\"Does this class have a separate tutorial component?\");\n if (response2) {\n System.out.println(\"How many Tutorials does this have?\");\n tutorialNames = getNames(obtainIntSafely(1, 999, \"Enter int > 0\"), \"Tutorial\");\n tutorialTimes = getTimes(name, tutorialNames);\n }\n\n if (response1 || response2) {\n activeCourseList.add(new Course(name, subClassNames, subClassTimes, response1, labNames, labTimes,\n response2, tutorialNames, tutorialTimes));\n } else {\n activeCourseList.add(new Course(name, subClassNames, subClassTimes));\n }\n }",
"private void _generateCourses() {\n for (int i = 0; i < underCourses_.size(); i++) {\n _generateACourse( ( (CourseInfo) underCourses_.get(i)).globalIndex);\n }\n for (int i = 0; i < gradCourses_.size(); i++) {\n _generateAGraduateCourse( ( (CourseInfo) gradCourses_.get(i)).globalIndex);\n }\n for (int i = 0; i < webCourses_.size(); i++) {\n _generateAWebCourse( ( (CourseInfo) webCourses_.get(i)).globalIndex);\n }\n }",
"public void generate() {\n for(Course course : courses) {\n if(!setLecture(course)) {\n possible = false;\n return;\n }\n }\n possible = true;\n }",
"public void addRecipe(Recipe recipe){\n //recipes.add(recipe);\n if(recipe != null){\n recipes.add(recipe);\n }\n }",
"public List<Recipe> getRecipes() {\r\n \t\tCollections.sort(recipeList, Comparators.RECIPE_COMPARATOR);\r\n \t\treturn Collections.unmodifiableList(recipeList);\r\n \t}",
"public static void main(String[] args) {\n Recipe recipe ;\n Scanner keyboard= new Scanner (System.in);\n ArrayList<Recipe> recipeArrayList= new ArrayList<> ();\n ArrayList<String> ingridetList= new ArrayList<>();\n ArrayList<String>directionsList= new ArrayList<>();\n String answer;\n\n do{\n recipe = new Recipe ();\n System.out.println (\"Enter the ingredient :\" );\n recipe.setIngredients ( keyboard.nextLine () );\n\n\n\n\n System.out.println (\"Do you want to add more ingredients?(yes/no)\" );\n answer=keyboard.nextLine ();\n ingridetList.add(recipe.getIngredients());\n recipe.setArrayIngredients(ingridetList);\n\n }while(answer.equalsIgnoreCase ( \"yes\" )||!answer.equalsIgnoreCase ( \"no\" ));\n\n\n\n System.out.println (\"Enter the directions for the ingredients: \" );\n recipe.setDirections ( keyboard.nextLine () );\n // directionsList.add(recipe.getIngredients());\n\n\n\n recipeArrayList.add ( recipe );\n\n for(Recipe recipe1:recipeArrayList) {\n\n\n for(String ingRec: recipe1.getArrayIngredients())\n {\n System.out.println ( \"The Ingredients is : \" + ingRec );\n }\n System.out.println (\"The Directions is : \" + recipe1.getDirections () );\n }\n\n }",
"private Recipe grabRecipeInfo() {\n\t\t// Get the number of images the recipe has\n\t\tImageController.updateImageNumber(currentRecipe);\n\n\t\tEditText etTitle = (EditText) findViewById(R.id.etRecipeTitle);\n\t\tEditText etDescription = (EditText) findViewById(R.id.etRecipeDescription);\n\t\tEditText etDirections = (EditText) findViewById(R.id.etDirectionsList);\n\n\t\tString title = etTitle.getText().toString();\n\t\tString description = etDescription.getText().toString();\n\t\tString directions = etDirections.getText().toString();\n\t\tString email = currentRecipe.getCreatorEmail();\n\t\tRecipe newRecipe = new Recipe();\n\t\tnewRecipe.setName(title);\n\t\tnewRecipe.setDescription(description);\n\t\tnewRecipe.setDirections(directions);\n\t\tnewRecipe.setIngredients(currentRecipe.getIngredients());\n\t\tnewRecipe.setQuantities(currentRecipe.getQuantities());\n\t\tnewRecipe.setUnits(currentRecipe.getUnits());\n\t\tnewRecipe.setCreatorEmail(email);\n\t\tnewRecipe.setRecipeId(currentRecipe.getRecipeId());\n\t\treturn newRecipe;\n\n\t}",
"private void checkRecipes() {\n\n for (Recipe recipe : this.recipeItems.values()) {\n List<String> requiredItems = new ArrayList<>(recipe.getRequiredItems());\n\n for (Item item : this.commonItems.values()) {\n requiredItems.remove(item.getName());\n }\n if (requiredItems.isEmpty()) {\n this.combineRecipe(recipe);\n break;\n }\n }\n }",
"public Cursor getRecipeContents(String title){\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor data = db.rawQuery(\"SELECT * FROM \" + TABLE_NAME\n + \" WHERE \" + COLUMN_TITLE\n + \"=\" + \"'\" + title + \"';\", null);\n return data;\n }",
"public void addNewRecipe() {\r\n listOfRecipes.add(new Recipe().createNewRecipe());\r\n }",
"@Test\n public void getAllRecipeCategories_RecipeInfo(){\n int returned = testDatabase.addRecipe(testRecipe);\n ArrayList<RecipeCategory> allCategories = testDatabase.getAllRecipeCategories(returned);\n RecipeCategory retrieved = allCategories.get(allCategories.size()-1);\n //Retrieved should now contain all the same information as testRecipe\n assertEquals(\"getAllRecipeCategories - Correct Recipe ID\", returned, retrieved.getRecipeID());\n assertEquals(\"getAllRecipeCategories - Correct Category ID\", categoryID, retrieved.getCategoryID());\n }",
"@Test\n public void testGetRecipes() throws AmountOfRecipeException, DuplicatedRecipeException{\n boolean ok = CM.addRecipe(r1);\n ok = CM.addRecipe(r2);\n ok = CM.addRecipe(r3);\n Vector<Recipe> recipes = CM.getRecipes();\n assertEquals(3,recipes.size());\n assertTrue(recipes.contains(r1));\n assertTrue(recipes.contains(r2));\n assertTrue(recipes.contains(r3));\n }",
"List<String> getRecipeTitles();",
"private ArrayList<Course> getCourses(File coursePath,ArrayList<Node> nodes)\n {\n //add event to the log file\n Start.log(\"Getting Courses\");\n ArrayList<Course> tempCourses = new ArrayList<Course>();\n ArrayList<String> file = getFile(coursePath);\n for (int i = 0; i < file.size();i++)\n {\n //pharse the data into there relivant feilds\n Scanner scan = new Scanner(file.get(i));\n ArrayList<Node> tnodes = new ArrayList<Node>();\n char ident = scan.next().charAt(0);\n //find the nodes that match and add them to the course\n int noNodes = scan.nextInt();\n for (int j = 0; j < noNodes;j++)\n {\n int nodeNo = scan.nextInt();\n for (int k = 0; k < nodes.size();k++)\n {\n if (nodes.get(k).getNode() == nodeNo)\n {\n tnodes.add(nodes.get(k));\n break;\n }\n }\n }\n //finaly add the course to the list\n tempCourses.add(new Course(ident,tnodes));\n }\n return tempCourses;\n }",
"private static ArrayList<Quest> createQuests() {\n ArrayList<Quest> quests = new ArrayList();\n //Create Cooks assistant and imp catcher;\n\n //Imp Catcher\n ArrayList<String> itemReqs = new ArrayList();\n itemReqs.add(\"Yellow Bead\");\n itemReqs.add(\"Red Bead\");\n itemReqs.add(\"Black Bead\");\n itemReqs.add(\"While Bead\");\n QuestStep qs1 = new QuestStep(1, \"Hand in beads to wizard\", itemReqs,12337);\n ArrayList<QuestStep> questSteps = new ArrayList();\n questSteps.add(qs1);\n\n int[] skillReqs = new int[Constant.NUMBER_OF_Skills];\n for (int i = 0; i < Constant.NUMBER_OF_Skills; i++) {\n skillReqs[i] = 0;\n }\n ArrayList<String> questReqs = new ArrayList();\n Quest q1 = new Quest(\"Imp Catcher\", questSteps,12337, skillReqs, 0, questReqs);\n quests.add(q1);\n\n //Cooks assistant\n itemReqs = new ArrayList();\n itemReqs.add(\"Pot of Flour\");\n itemReqs.add(\"Egg\");\n itemReqs.add(\"Bucket of Milk\");\n qs1 = new QuestStep(1, \"Hand in ingredients to chef\", itemReqs,12850);\n questSteps = new ArrayList();\n questSteps.add(qs1);\n\n\n Quest q2 = new Quest(\"Cooks Assistant\", questSteps,12850, skillReqs, 0, questReqs);\n quests.add(q2);\n return quests;\n }",
"protected abstract void initCache(List<RECIPE> recipes);",
"@Override\r\n\tpublic Set<Course> getAllCources() throws SQLException {\n\t\tSet<Course> courses = new HashSet<Course>();\r\n\t\tStatement statement = connection.createStatement();\r\n\t\tString sql = \"Select * from course\";\r\n\t\tResultSet resultSet = statement.executeQuery(sql);\r\n\t\twhile (resultSet.next()) {\r\n\t\t\tCourse course = new Course();\r\n\t\t\tcourse.setIdCourse(resultSet.getInt(\"idCourse\"));\r\n\t\t\tcourse.setDecription(resultSet.getString(\"decription\"));\r\n\t\t\tcourse.setDuration(resultSet.getString(\"duration\"));\r\n\t\t\tcourse.setName(\"name\");\r\n\t\t\tcourse.setPrerequisites(\"prerequisites\");\r\n\t\t\tcourses.add(course);\r\n\t\t}\r\n\t\treturn courses;\r\n\t}",
"public ArrayList<Recipe> search(String searchTerm){\n\t\t\t\t\n\t\t\t\t// The final container to be returned\n\t\t\t\tArrayList<Recipe> mRecipes = new ArrayList<Recipe>();\n\t\t\t\t\n\t\t\t\t// Temporary containers to hold the search results until they can \n\t\t\t\t// be combined in mRecipes \n\t\t\t\tArrayList<Recipe> mRecipesNAME = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesCATEGORY = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesINGREDIENT = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesDESCRIPTION = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesINSTRUCTION = new ArrayList<Recipe>();\n\t\t\t\tIterator<Recipe> iterator = RECIPES.iterator(); \n\t\t\t\t\n\t\t\t\t// Search all recipes in Recipe Box for name matches\n\t\t\t\twhile (iterator.hasNext()){\n\n\t\t\t\t\t// Load the next recipe\n\t\t\t\t\tRecipe recipe = iterator.next();\n\t\t\t\t\t\n\t\t\t\t\t// Check for recipe NAME match\n\t\t\t\t\tif (recipe.nameContains(searchTerm)){\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesNAME.add(recipe);\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe CATEGORY match\n\t\t\t\t\telse if (recipe.categoriesContain(searchTerm)) {\n\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesCATEGORY.add(recipe);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe INGREDIENT match\n\t\t\t\t\telse if (recipe.ingredientsContain(searchTerm)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesINGREDIENT.add(recipe);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe DESCRIPTION match\n\t\t\t\t\telse if (recipe.descriptionContains(searchTerm)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesDESCRIPTION.add(recipe);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe INSTRUCTION match\n\t\t\t\t\telse if (recipe.instructionsContain(searchTerm)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesINSTRUCTION.add(recipe);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Create an ordered list of recipes from most important to least important\n\t\t\t\tmRecipes.addAll(mRecipesNAME);\n\t\t\t\tmRecipes.addAll(mRecipesCATEGORY);\n\t\t\t\tmRecipes.addAll(mRecipesINGREDIENT);\n\t\t\t\tmRecipes.addAll(mRecipesDESCRIPTION);\n\t\t\t\tmRecipes.addAll(mRecipesINSTRUCTION);\n\t\t\t\t\n\t\t\t\t// Return ordered list of recipes\n\t\t\t\tLog.d(TAG, \"Finish function searchNames\");\n\t\t\t\treturn mRecipes;\n\t\t\t\t\n\t\t\t}",
"private void removeEnchantRecipe() {\n Iterator<Recipe> it = Bukkit.recipeIterator();\n\n while (it.hasNext()) {\n Recipe res = it.next();\n\n if (res.getResult().getType() == ENCHANT_TABLE.getType()) {\n it.remove();\n }\n }\n }",
"public static void main(String[] args) {\n Course course1 = new Course(\"Data Structures\");\n Course course2 = new Course(\"Database Systems\");\n\n course1.addStudent(\"Deniz Salman\");\n course1.addStudent(\"Ahmet Kaya\");\n course1.addStudent(\"Neşet Ertaş\");\n\n course2.addStudent(\"Mahir Çayan\");\n course2.addStudent(\"İbrahim Kayapakkaya\");\n\n course1.dropStudent(\"Deniz Salman\");\n System.out.println(\"Number of students in course1: \" + course1.numberOfStudents());\n System.out.println(course1.getStudents());\n\n System.out.println(\"Number of students in course2: \" + course2.numberOfStudents());\n System.out.println(course2.getStudents());\n\n }",
"void addRecipe(RecipeGroup rg)\r\n\t{\tthis.recipes.add(rg);\t}",
"public CatalogDescription getCatalogDescription(String course_id);",
"public void addRecipe(Recipe recipe)\n {\n recipe.setDataSource(this);\n _recipes.add(recipe);\n }",
"public List<Recipe> search(String queryText, Category category, CookingMethod cookingMethod);",
"public RecipeDataBase(){\n //recipes = new ArrayList<>();\n loadDatabase();\n \n }",
"@Test\n\tpublic void testAddRecipe(){\n\t\t\n\t\ttestingredient1.setName(\"Peanut Butter\");\n\t\ttestingredient2.setName(\"Jelly\");\n\t\ttestingredient3.setName(\"Bread\");\n\t\t\n\t\t\n\t\tingredients.add(testingredient1);\n\t\tingredients.add(testingredient2);\n\t\tingredients.add(testingredient3);\n\t\t\n\t\ttestRecipe.setName(\"PB and J\");\n\t\ttestRecipe.setDescription(\"A nice, tasty sandwich\");\n\t\ttestRecipe.setIngredients(ingredients);\n\t\t\n\t\ttest2.saveRecipe(testRecipe);\n\t\t//test2.deleteRecipe(testRecipe);\n\t}",
"public static void craft()\r\n\t{\r\n\t\tList<IRecipe> recipeList = CraftingManager.getInstance().getRecipeList();\r\n\t\tIterator<IRecipe> recipe = recipeList.iterator();\r\n\r\n\t\twhile (recipe.hasNext())\r\n\t\t{\r\n\t\t\tItemStack stack = recipe.next().getRecipeOutput();\r\n\r\n\t\t\tif (stack != null && stack.areItemsEqual(stack, new ItemStack(Blocks.STONEBRICK, 1, 0)))\r\n\t\t\t{\r\n\t\t\t\trecipe.remove();\r\n\t\t\t} else if (stack != null && stack.areItemsEqual(stack, new ItemStack(Blocks.END_BRICKS, 1, 0)))\r\n\t\t\t{\r\n\t\t\t\trecipe.remove();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Adds all the 2 by 2 crafting Recipes\r\n\t\t */\r\n\t\tcraft2by2(new ItemStack(Blocks.STONE, 1, 2), new ItemStack(BBBlocks.moreStones, 4, 1));\r\n\t\tcraft2by2(new ItemStack(Blocks.STONE, 1, 4), new ItemStack(BBBlocks.moreStones, 4, 3));\r\n\t\tcraft2by2(new ItemStack(Blocks.STONE, 1, 6), new ItemStack(BBBlocks.moreStones, 4, 5));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 6), new ItemStack(BBBlocks.moreStones, 4, 9));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 9), new ItemStack(BBBlocks.moreStones, 4, 8));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 10), new ItemStack(BBBlocks.moreStones, 4, 13));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 13), new ItemStack(BBBlocks.moreStones, 4, 12));\r\n\t\tcraft2by2(new ItemStack(Blocks.SANDSTONE, 1, 2), new ItemStack(BBBlocks.moreStones, 4, 14));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 8), new ItemStack(BBBlocks.cotswoldBricks, 4));\r\n\t\tcraft2by2(new ItemStack(Blocks.BRICK_BLOCK, 1), new ItemStack(BBBlocks.agedBricks, 4));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 2), new ItemStack(BBBlocks.moreStones2, 4, 5));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 5), new ItemStack(BBBlocks.moreStones2, 4, 4));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 1), new ItemStack(BBBlocks.moreStones2, 4, 0));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 14), new ItemStack(BBBlocks.moreStones2, 4, 1));\r\n\t\tcraft2by2(new ItemStack(Blocks.RED_SANDSTONE, 1, 2), new ItemStack(BBBlocks.moreStones2, 4, 6));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 6), new ItemStack(BBBlocks.moreStones2, 4, 9));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 9), new ItemStack(BBBlocks.moreStones2, 4, 8));\r\n\t\tcraft2by2(new ItemStack(Blocks.NETHERRACK, 1), new ItemStack(BBBlocks.moreStones2, 4, 11));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 11), new ItemStack(BBBlocks.moreStones2, 4, 10));\r\n\t\tcraft2by2(new ItemStack(Blocks.STONE), new ItemStack(BBBlocks.moreStones2, 4, 12));\r\n\t\tcraft2by2(new ItemStack(Blocks.END_STONE), new ItemStack(BBBlocks.moreStones2, 4, 13));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 12), new ItemStack(Blocks.STONEBRICK, 4, 0));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 13), new ItemStack(Blocks.END_BRICKS, 4, 0));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones3, 1, 0), new ItemStack(BBBlocks.moreStones3, 4, 2));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones3, 1, 2), new ItemStack(BBBlocks.moreStones3, 4, 1));\r\n\r\n\r\n\t\t/**\r\n\t\t * Adds all the stair Recipes\r\n\t\t */\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 0), new ItemStack(BBBlocks.cobbleGraniteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 2), new ItemStack(BBBlocks.cobbleDioriteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 4), new ItemStack(BBBlocks.cobbleAndesiteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 7), new ItemStack(BBBlocks.cobbleLimestoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 11), new ItemStack(BBBlocks.cobbleMarbleStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 15), new ItemStack(BBBlocks.cobbleSandstoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 3), new ItemStack(BBBlocks.cobbleBasaltStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 7), new ItemStack(BBBlocks.cobbleRedsandstoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 1), new ItemStack(BBBlocks.brickGraniteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 3), new ItemStack(BBBlocks.brickDioriteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 5), new ItemStack(BBBlocks.brickAndesiteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 8), new ItemStack(BBBlocks.brickLimestoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 12), new ItemStack(BBBlocks.brickMarbleStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 0), new ItemStack(BBBlocks.brickSandstoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 4), new ItemStack(BBBlocks.brickBasaltStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 8), new ItemStack(BBBlocks.brickRedsandstoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 10), new ItemStack(BBBlocks.brickNetherrackStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.cotswoldBricks, 1), new ItemStack(BBBlocks.brickCotswoldStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.agedBricks, 1), new ItemStack(BBBlocks.brickAgedbrickStair, 4));\r\n\t\tcraftStair(new ItemStack(Blocks.END_BRICKS, 1), new ItemStack(BBBlocks.brickEndstoneStair, 4));\r\n\t\tcraftStair(new ItemStack(Blocks.RED_NETHER_BRICK, 1), new ItemStack(BBBlocks.brickRednetherStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones3, 1, 1), new ItemStack(BBBlocks.brickAcheriteStair, 4));\r\n\r\n\t\t/**\r\n\t\t * Adds all the slab Recipes\r\n\t\t */\r\n\t\tcraftSlab(BBBlocks.cobbleAndesiteSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleGraniteSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleDioriteSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleMarbleSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleLimestoneSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleSandstoneSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleBasaltSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleRedsandstoneSlab);\r\n\t\tcraftSlab(BBBlocks.brickAndesiteSlab);\r\n\t\tcraftSlab(BBBlocks.brickGraniteSlab);\r\n\t\tcraftSlab(BBBlocks.brickDioriteSlab);\r\n\t\tcraftSlab(BBBlocks.brickMarbleSlab);\r\n\t\tcraftSlab(BBBlocks.brickLimestoneSlab);\r\n\t\tcraftSlab(BBBlocks.brickSandstoneSlab);\r\n\t\tcraftSlab(BBBlocks.brickBasaltSlab);\r\n\t\tcraftSlab(BBBlocks.brickRedsandstoneSlab);\r\n\t\tcraftSlab(BBBlocks.brickRednetherSlab);\r\n\t\tcraftSlab(BBBlocks.brickEndstoneSlab);\r\n\t\tcraftSlab(BBBlocks.brickNetherrackSlab);\r\n\t\tcraftSlab(BBBlocks.brickCotswoldSlab);\r\n\t\tcraftSlab(BBBlocks.brickAgedbrickSlab);\r\n\t\tcraftSlab(BBBlocks.brickAcheriteSlab);\r\n\t\t\r\n\t\t/**\r\n\t\t * Other Crafting Recipes\r\n\t\t */\r\n\t\tGameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(BBBlocks.moreStones2, 16, 14), new Object[] { Blocks.CLAY, \"sand\", Blocks.GRAVEL, Items.WATER_BUCKET}));\r\n\t\tNBTTagCompound concreteTag = new NBTTagCompound();\r\n\t\tconcreteTag.setInteger(\"color\", 16777215);\r\n\t\tItemStack concreteStack = new ItemStack(BBBlocks.concreteDyeable, 8, 0);\r\n\t\tconcreteStack.setTagCompound(concreteTag);\r\n\t\tGameRegistry.addRecipe(concreteStack, new Object[] { \"###\", \"#O#\", \"###\", '#', new ItemStack(BBBlocks.moreStones2, 1, 15), 'O', Items.PAPER });\r\n\t\tGameRegistry.addRecipe(new RecipesConcreteDyeable());\r\n\t\tGameRegistry.addRecipe(new RecipesConcreteTiles());\r\n\t\tGameRegistry.addRecipe(new RecipesConcreteDyeable.RecipeDuplicateConcrete());\r\n\t\tGameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(BBBlocks.overgrowth, 8),new Object[] { \"treeLeaves\", \"treeLeaves\"}));\r\n\r\n\t\t/**\r\n\t\t * Adds all the smelting Recipes\r\n\t\t */\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 0), new ItemStack(Blocks.STONE, 1, 1));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 2), new ItemStack(Blocks.STONE, 1, 3));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 4), new ItemStack(Blocks.STONE, 1, 5));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 7), new ItemStack(BBBlocks.moreStones, 1, 6));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 11), new ItemStack(BBBlocks.moreStones, 1, 10));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 15), new ItemStack(BBBlocks.moreStones, 1, 14));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones2, 1, 3), new ItemStack(BBBlocks.moreStones2, 1, 2));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones2, 1, 7), new ItemStack(BBBlocks.moreStones2, 1, 6));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones2, 1, 14), new ItemStack(BBBlocks.moreStones2, 1, 15));\r\n\r\n\t}",
"public List<Recipe> findAllRecipe(){\n\t\treturn sessionFactory.openSession().createQuery(\"from Recipe\").list();\n\t\t\n\t}",
"private void addDaciteEnrichingRecipes(Consumer<IFinishedRecipe> consumer, String basePath) {\n enriching(consumer, BYGBlocks.DACITE_BRICKS, BYGBlocks.DACITE_TILE, basePath + \"brick_to_tile\");\n enriching(consumer, BYGBlocks.DACITE_BRICK_SLAB, BYGBlocks.DACITE_TILE_SLAB, basePath + \"brick_slabs_to_tile_slabs\");\n enriching(consumer, BYGBlocks.DACITE_BRICK_STAIRS, BYGBlocks.DACITE_TILE_STAIRS, basePath + \"brick_stairs_to_tile_stairs\");\n enriching(consumer, BYGBlocks.DACITE_BRICK_WALL, BYGBlocks.DACITE_TILE_WALL, basePath + \"brick_walls_to_tile_walls\");\n //Dacite -> Dacite Bricks\n enriching(consumer, BYGBlocks.DACITE, BYGBlocks.DACITE_BRICKS, basePath + \"to_brick\");\n enriching(consumer, BYGBlocks.DACITE_SLAB, BYGBlocks.DACITE_BRICK_SLAB, basePath + \"slabs_to_brick_slabs\");\n enriching(consumer, BYGBlocks.DACITE_STAIRS, BYGBlocks.DACITE_BRICK_STAIRS, basePath + \"stairs_to_brick_stairs\");\n enriching(consumer, BYGBlocks.DACITE_WALL, BYGBlocks.DACITE_BRICK_WALL, basePath + \"walls_to_brick_walls\");\n }",
"public static void main(String[] args) {\n Course AbstractAdvancedJavaSuperClass = new AdvancedJavaCourse(\"AdvancedJava\", \"-003\");\r\n Course AbstractJavaSuperClass = new IntroJavaCourse(\"IntroJava\", \"-002\");\r\n Course AbstractProgramClass = new IntroToProgrammingCourse(\"Intro\", \"-001\");\r\n\r\n AbstractAdvancedJavaSuperClass.setCredits(4);\r\n AbstractJavaSuperClass.setCredits(4.0);\r\n AbstractProgramClass.setCredits(4.0);\r\n \r\n //this is a test\r\n \r\n AbstractAdvancedJavaSuperClass.setPrerequisites(AbstractJavaSuperClass.getCourseNumber());\r\n AbstractJavaSuperClass.setPrerequisites(AbstractProgramClass.getCourseNumber());\r\n \r\n System.out.println(AbstractProgramClass.getCapitalizedCourseName()\r\n + \" \" + AbstractProgramClass.getCourseNumber() );\r\n \r\n System.out.println(AbstractJavaSuperClass.getCourseName()\r\n + \" \" + AbstractJavaSuperClass.getCourseNumber() \r\n + \" \" + AbstractJavaSuperClass.getPrerequisites());\r\n \r\n System.out.println(AbstractAdvancedJavaSuperClass.getCourseName()\r\n + \" \" + AbstractAdvancedJavaSuperClass.getCourseNumber() \r\n + AbstractAdvancedJavaSuperClass.getPrerequisites() );\r\n}",
"public static Course readConsol() throws DataFormatException, IOException {\n Course readCourse = new Course();\n Scanner in = new Scanner(System.in);\n boolean valid = false;\n\n System.out.println(\"Input course Title.\");\n System.out.println(\"With a capital letter, using letters,numbers and _.\");\n String title = in.nextLine();\n valid = Validator.validate(title, ValidPaterns.TITLEVLIDPATERN);\n if (valid) {\n readCourse.setTitle(title);\n } else {\n in.close();\n throw new IOException();\n }\n\n System.out.println(\"Input course startDate in formate dd-mm-yyyy-hh-mm. as delims yu can use[.-:]\");\n String startTime = in.nextLine();\n Calendar startDate = DateParser.pars(startTime);\n readCourse.setStartTime(startDate);\n\n System.out.println(\"Input course endDate in formate mm-dd-yyyy-hh-mm. as delims yu can use[.-:]\");\n String endTime = in.nextLine();\n Calendar endtDate = DateParser.pars(endTime);\n readCourse.setEndTime(endtDate);\n\n System.out.println(\"хотите добавить модуль в существующий курс\");\n \n System.out.println(\"Input module Title.\");\n System.out.println(\"With a capital letter, using letters,numbers and _.\");\n String moduleTitle = in.nextLine();\n valid = Validator.validate(moduleTitle, ValidPaterns.TITLEVLIDPATERN);\n if (valid) {\n List<Modul> modules = new ArrayList<>();\n Modul modul1 = new Modul();\n modul1.setTitle(moduleTitle);\n readCourse.setModules(modules);\n modules.add(modul1);\n \n System.out.println(\"Input module startDate in formate dd-mm-yyyy-hh-mm. as delims yu can use[.-:]\");\n String startTimeM = in.nextLine();\n Calendar startDateM = DateParser.pars(startTimeM);\n modul1.setStartTime(startDateM);\n\n System.out.println(\"Input module endDate in formate mm-dd-yyyy-hh-mm. as delims yu can use[.-:]\");\n String endTimeM = in.nextLine();\n Calendar endtDateM = DateParser.pars(endTimeM);\n modul1.setEndTime(endtDateM);\n \n System.out.println(\"This module include the test Yes/No ?\");\n String testInclude = in.nextLine();\n valid = Validator.validate(testInclude, ValidPaterns.TESTAVALIBLEPATERN);\n if (valid) {\n if(testInclude.equals(\"yes\")){\n modul1.setTestInclude(true);\n }\n if(testInclude.equals(\"No\")){\n modul1.setTestInclude(false);\n }\n }\n } else {\n in.close();\n throw new IOException();\n }\n\n in.close();\n return readCourse;\n }",
"public io.grafeas.v1.Recipe getRecipe() {\n if (recipeBuilder_ == null) {\n return recipe_ == null ? io.grafeas.v1.Recipe.getDefaultInstance() : recipe_;\n } else {\n return recipeBuilder_.getMessage();\n }\n }",
"public Course[] getPrerequisiteCourses() {\r\n return PREREQUISITE_COURSES;\r\n }",
"public Course(int id, String name, String description) {\n this.id = id;\n this.name = name;\n this.description = description;\n this.teachers = new ArrayList<>();\n }",
"@Test\n public void getAllRecipes_RecipeInfo(){\n int returned = testDatabase.addRecipe(testRecipe);\n ArrayList<Recipe> allRecipes = testDatabase.getAllRecipes();\n Recipe retrieved = allRecipes.get(allRecipes.size()-1);\n //Retrieved should now contain all the same information as testRecipe\n assertEquals(\"getAllRecipes - Correct Title\", recipeTitle, retrieved.getTitle());\n assertEquals(\"getAllRecipes - Correct Servings\", 1, retrieved.getServings(), 0);\n assertEquals(\"getAllRecipes - Correct Prep Time\", 30, retrieved.getPrep_time(), 0);\n assertEquals(\"getAllRecipes - Correct Total Time\", 60, retrieved.getTotal_time(), 0);\n assertEquals(\"getAllRecipes - Correct Favorited\", false, retrieved.getFavorited());\n }",
"@Override\n\tpublic Recipe getRecipe() {\n\t\treturn null;\n\t}",
"public Recipe() { }",
"public void print(){\n for(Recipe r : recipes){\n System.out.println(r.toString());\n }\n }",
"public static void main(String[] args) {\n\n Scanner input = new Scanner(System.in);\n\n ArrayList<Student> studentList = new ArrayList<Student>();\n ArrayList<Teacher> teacherList = new ArrayList<Teacher>();\n ArrayList<Courses> courseList = new ArrayList<Courses>();\n ArrayList studentCourseRegistered = new ArrayList();\n ArrayList teacherCourseRegistered = new ArrayList();\n long studentId = 101;\n long teacherId = 10100;\n long courseId = 1010010;\n boolean studentMoreCourse = false;\n boolean teacherMoreCourse = false;\n\n\n do {\n System.out.print(\"\\n\\n 1. Add Student\\n 2. Add Teacher\\n 3. Add Course\\n 4. List of students\\n 5. List of Teacher\\n 6. List of Courses\\n\");\n\n switch (input.nextInt()) {\n case 1:\n Student student = new Student();\n\n\n System.out.print(\"First Name: \");\n student.setFirstName(input.next());\n\n System.out.print(\"Last Name: \");\n student.setLastName(input.next());\n\n System.out.print(\"e-mail: \");\n student.setEmailAddress(input.next());\n\n do {\n\n System.out.println(\"Enter the course you want to register? \");\n String course = input.next();\n studentCourseRegistered.add(course);\n System.out.print(\"Do you want to add more? (y/n)\");\n if (input.next().equalsIgnoreCase(\"y\")) {\n studentMoreCourse = true;\n } else {\n student.setCourseList(studentCourseRegistered);\n System.out.println(\"--> \" + studentCourseRegistered);\n studentMoreCourse = false;\n break;\n }\n } while (studentMoreCourse);\n\n student.setId(studentId);\n studentId++;\n studentList.add(student);\n break; // optional\n\n case 2:\n Teacher teacher = new Teacher();\n\n System.out.print(\"First Name: \");\n teacher.setFirstName(input.next());\n\n System.out.print(\"Last Name: \");\n teacher.setLastName(input.next());\n\n System.out.print(\"e-mail: \");\n teacher.setEmailAddress(input.next());\n do {\n ArrayList courseRegistered = new ArrayList();\n System.out.print(\"Enter the course you teaching: \");\n String course = input.next();\n teacherCourseRegistered.add(course);\n System.out.print(\"Are you teaching more course? (y/n)\");\n if (input.next().equalsIgnoreCase(\"y\")) {\n teacherMoreCourse = true;\n } else {\n teacher.setCourseList(teacherCourseRegistered);\n teacherMoreCourse = false;\n break;\n }\n } while (teacherMoreCourse);\n teacher.setId(teacherId);\n teacherId++;\n\n teacherList.add(teacher);\n break; // optional\n\n case 3:\n Courses course = new Courses();\n\n System.out.print(\"Course Name: \");\n course.setCourseName(input.next());\n\n System.out.print(\"ID: \");\n course.setId(courseId);\n courseId++;\n courseList.add(course);\n break; // optional\n\n case 4:\n System.out.println(\"List of Students\");\n for (Student stList : studentList) {\n System.out.println(\"ID Number: \" + stList.getId() + \"\\n\" + \"First Name: \" + stList.getFirstName() + \"\\n\" + \"Last Name: \" + stList.getLastName() + \"\\n\" + \"Email: \" + stList.getEmailAddress());\n\n ArrayList stCour = stList.getCourseList();\n\n System.out.print(\"Takes: \");\n for (int i = 0; i < stCour.size(); i++) {\n System.out.print(stCour.get(i)+\" \");\n }\n }\n\n break; // optional\n case 5:\n System.out.println(\"List of Teachers\");\n for (Teacher tList : teacherList) {\n System.out.println(\"ID Number: \" + tList.getId() + \"\\n\" + \"First Name: \" + tList.getFirstName() + \"\\n\" + \"Last Name: \" + tList.getLastName() + \"\\n\" + \"Email: \" + tList.getEmailAddress() + \"\\n\");\n\n ArrayList stCour = tList.getCourseList();\n\n for (int i = 0; i < stCour.size(); i++) {\n System.out.print(stCour.get(i));\n }\n }\n break; // optional\n\n case 6:\n System.out.println(\"List of Courses\");\n for (Courses cList : courseList) {\n System.out.println(\"Course ID Number: \" + cList.getId() + \"\\n\" + \"Course Name: \" + cList.getCourseName() + \"\\n\");\n }\n break; // optional\n // You can have any number of case statements.\n default: // Optional\n\n }\n } while (true);\n }",
"public Course(String courseName, String courseID, Course[] prerequisites, Textbook[] textbooks) {\r\n COURSE_NAME = courseName;\r\n COURSE_ID = courseID;\r\n PREREQUISITE_COURSES = prerequisites;\r\n TEXTBOOKS = textbooks;\r\n }",
"public Recipes()\n {\n\t\titems = new ArrayList<food>();\n }",
"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 static ArrayList<Recipe> convertJsonToRecipeObjects() throws JSONException {\n //Convert fullJsonMoviesData to JsonObject\n String urlResponse = null;\n URL jsonURL = buildUrl();\n try {\n urlResponse = getResponseFromHttpUrl(jsonURL);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n JSONArray bakingDataArray = new JSONArray(urlResponse);\n ArrayList<Recipe> results = new ArrayList<>();\n for (int i = 0; i < bakingDataArray.length(); i++) {\n Recipe recipe = new Recipe();\n recipe.setId(bakingDataArray.getJSONObject(i).getInt(ID));\n recipe.setName(bakingDataArray.getJSONObject(i).getString(NAME));\n recipe.setImage(getDefaultorActualImage(bakingDataArray.getJSONObject(i).getString(IMAGE)));\n recipe.setServings(bakingDataArray.getJSONObject(i).getString(SERVINGS));\n JSONArray ingredientsJSONArray = bakingDataArray.getJSONObject(i).getJSONArray(INGREDIENTS);\n ArrayList<Ingredient> ingredientsArray = new ArrayList<>();\n for (int j = 0; j < ingredientsJSONArray.length(); j++) {\n Ingredient ingredient = new Ingredient();\n ingredient.setIngredient(ingredientsJSONArray.getJSONObject(j).getString(INGREDIENT));\n ingredient.setMeasure(ingredientsJSONArray.getJSONObject(j).getString(MEASURE));\n ingredient.setQuantity(ingredientsJSONArray.getJSONObject(j).getString(QUANTITY));\n ingredientsArray.add(ingredient);\n }\n recipe.setIngredients(ingredientsArray);\n JSONArray stepJSONArray = bakingDataArray.getJSONObject(i).getJSONArray(STEPS);\n ArrayList<Step> stepArray = new ArrayList<>();\n for (int k = 0; k < stepJSONArray.length(); k++) {\n Step step = new Step();\n step.setId(stepJSONArray.getJSONObject(k).getString(STEP_ID));\n step.setDescription(stepJSONArray.getJSONObject(k).getString(DESCRIPTION));\n step.setShortDescription(stepJSONArray.getJSONObject(k).getString(SHORT_DESCRIPTION));\n step.setThumbnailURL(stepJSONArray.getJSONObject(k).getString(thumbnailURL));\n step.setVideoURL(stepJSONArray.getJSONObject(k).getString(videoURL));\n stepArray.add(step);\n }\n recipe.setSteps(stepArray);\n results.add(recipe);\n }\n return results;\n }",
"private void addCrusherDaciteRecipes(Consumer<IFinishedRecipe> consumer, String basePath) {\n crushing(consumer, BYGBlocks.DACITE, BYGBlocks.DACITE_COBBLESTONE, basePath + \"to_cobblestone\");\n crushing(consumer, BYGBlocks.DACITE_SLAB, BYGBlocks.DACITE_COBBLESTONE_SLAB, basePath + \"slabs_to_cobblestone_slabs\");\n crushing(consumer, BYGBlocks.DACITE_STAIRS, BYGBlocks.DACITE_COBBLESTONE_STAIRS, basePath + \"stairs_to_cobblestone_stairs\");\n crushing(consumer, BYGBlocks.DACITE_WALL, BYGBlocks.DACITE_COBBLESTONE_WALL, basePath + \"walls_to_cobblestone_walls\");\n //Dacite Tile -> Dacite Bricks\n crushing(consumer, BYGBlocks.DACITE_TILE, BYGBlocks.DACITE_BRICKS, basePath + \"tile_to_brick\");\n crushing(consumer, BYGBlocks.DACITE_TILE_SLAB, BYGBlocks.DACITE_BRICK_SLAB, basePath + \"tile_slabs_to_brick_slabs\");\n crushing(consumer, BYGBlocks.DACITE_TILE_STAIRS, BYGBlocks.DACITE_BRICK_STAIRS, basePath + \"tile_stairs_to_brick_stairs\");\n crushing(consumer, BYGBlocks.DACITE_TILE_WALL, BYGBlocks.DACITE_BRICK_WALL, basePath + \"tile_walls_to_brick_walls\");\n //Dacite Bricks -> Dacite\n crushing(consumer, BYGBlocks.DACITE_BRICKS, BYGBlocks.DACITE, basePath + \"from_brick\");\n crushing(consumer, BYGBlocks.DACITE_BRICK_SLAB, BYGBlocks.DACITE_SLAB, basePath + \"brick_slabs_to_slabs\");\n crushing(consumer, BYGBlocks.DACITE_BRICK_STAIRS, BYGBlocks.DACITE_STAIRS, basePath + \"brick_stairs_to_stairs\");\n crushing(consumer, BYGBlocks.DACITE_BRICK_WALL, BYGBlocks.DACITE_WALL, basePath + \"brick_walls_to_walls\");\n //Dacite Pillar -> Dacite\n ItemStackToItemStackRecipeBuilder.crushing(\n ItemStackIngredient.from(BYGBlocks.DACITE_PILLAR),\n new ItemStack(BYGBlocks.DACITE, 2)\n ).addCondition(modLoaded)\n .build(consumer, Mekanism.rl(basePath + \"from_pillar\"));\n }",
"public static void doRecycleRecipes()\n {\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.golden_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.gold_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.golden_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.gold_ore, 2, 0), 30.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.golden_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.gold_ore, 2, 0), 30.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.golden_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.gold_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.golden_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.gold_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.golden_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.gold_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.golden_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.gold_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.golden_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.gold_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.golden_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.gold_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.golden_horse_armor, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.gold_ore, 2, 0), 30.0F);\n // extra Gold recycling\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.clock), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, 1), new ItemStack(Blocks.gold_ore), 15.0F);\n //\n // recycle your Leather\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.leather_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.leather_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore, 2, 0), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.leather_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore, 2, 0), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.leather_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 5.0F);\n //\n // recycle your Wood\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.wooden_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.wooden_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.wooden_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.wooden_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.wooden_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.bow, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 5.0F);\n // extra Wood recycling\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.boat), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.bed), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.wooden_door), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.fishing_rod, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 3.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Blocks.bookshelf), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore, 2, 0), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Blocks.chest), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore, 2, 0), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Blocks.trapped_chest), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore, 2, 0), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Blocks.hay_block), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore, 2, 0), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Blocks.crafting_table), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 3.0F);\n //\n // recycle your Stone\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.stone_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.stone), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.stone_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.stone), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.stone_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.stone), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.stone_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.stone), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.stone_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.stone), 5.0F);\n // extra Stone recycling\n FusionFurnaceRecipes.addSmelting(new ItemStack(Blocks.furnace), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.stone, 2, 0), 10.0F);\n //\n // recycle your Iron\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.iron_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.iron_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore, 2, 0), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.iron_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore, 2, 0), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.iron_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.iron_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.iron_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.iron_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.iron_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.iron_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.iron_horse_armor, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore, 2, 0), 20.0F);\n // extra Iron recycling\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.chainmail_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.chainmail_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore, 2, 0), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.chainmail_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore, 2, 0), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.chainmail_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.bucket), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.cauldron), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore, 2, 0), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.compass), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.iron_door), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.flint_and_steel, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.minecart), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.hopper_minecart), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore, 2, 0), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.shears, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Blocks.anvil, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 4, 0), new ItemStack(Items.coal, 4, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore, 4, 0), 40.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Blocks.hopper), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n //\n // recycle your Diamond\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.diamond_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), new ItemStack(Items.lava_bucket), new ItemStack(Blocks.diamond_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.diamond_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore, 2, 0), new ItemStack(Items.lava_bucket), new ItemStack(Blocks.diamond_ore, 2, 0), 40.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.diamond_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore, 2, 0), new ItemStack(Items.lava_bucket), new ItemStack(Blocks.diamond_ore, 2, 0), 40.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.diamond_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), new ItemStack(Items.lava_bucket), new ItemStack(Blocks.diamond_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.diamond_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), new ItemStack(Items.lava_bucket), new ItemStack(Blocks.diamond_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.diamond_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), new ItemStack(Items.lava_bucket), new ItemStack(Blocks.diamond_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.diamond_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), new ItemStack(Items.lava_bucket), new ItemStack(Blocks.diamond_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.diamond_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), new ItemStack(Items.lava_bucket), new ItemStack(Blocks.diamond_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.diamond_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), new ItemStack(Items.lava_bucket), new ItemStack(Blocks.diamond_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.diamond_horse_armor, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore, 2, 0), new ItemStack(Items.lava_bucket), new ItemStack(Blocks.diamond_ore, 2, 0), 20.0F);\n //\n\t\tif(Loader.isModLoaded(\"simpleores\") && Settings.enableSimpleOres){\n // recycle your Copper\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.copper_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.copper_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.copper_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(soBase.copper_ore, 2, 0), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.copper_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(soBase.copper_ore, 2, 0), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.copper_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.copper_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.copper_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.copper_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.copper_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.copper_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.copper_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.copper_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.copper_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.copper_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.copper_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.copper_ore), 10.0F);\n // extra Copper recycling\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.copper_bucket), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.copper_ore), 10.0F);\n// FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.copper_door_block), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.copper_ore), 10.0F);\n //\n // recycle your Tin\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.tin_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.tin_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.tin_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(soBase.tin_ore, 2, 0), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.tin_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(soBase.tin_ore, 2, 0), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.tin_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.tin_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.tin_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.tin_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.tin_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.tin_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.tin_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.tin_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.tin_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.tin_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.tin_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.tin_ore), 10.0F);\n // extra Tin recycling\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.tin_shears, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.tin_ore), 10.0F);\n //\n // recycle your Mythril\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.mythril_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.mythril_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.mythril_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(soBase.mythril_ore, 2, 0), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.mythril_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(soBase.mythril_ore, 2, 0), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.mythril_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.mythril_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.mythril_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.mythril_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.mythril_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.mythril_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.mythril_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.mythril_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.mythril_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.mythril_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.mythril_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.mythril_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.mythril_bow, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.mythril_ore), 15.0F);\n // extra Mythril recycling\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.mythril_rod), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.mythril_ore), 15.0F);\n// FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.mythril_furnace), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(soBase.mythril_ore, 2, 0), 15.0F);\n //\n // recycle your Adamantium\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.adamantium_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.adamantium_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.adamantium_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(soBase.adamantium_ore, 2, 0), 30.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.adamantium_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(soBase.adamantium_ore, 2, 0), 30.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.adamantium_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.adamantium_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.adamantium_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.adamantium_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.adamantium_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.adamantium_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.adamantium_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.adamantium_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.adamantium_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.adamantium_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.adamantium_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.adamantium_ore), 15.0F);\n // extra Adamantium recycling\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.adamantium_shears, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.adamantium_ore), 15.0F);\n //\n // recycle your Onyx\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack, 2, 0), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore, 2, 0), 40.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack, 2, 0), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore, 2, 0), 40.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_bow, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore), 20.0F);\n // extra Onyx recycling\n// FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_door_block), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_rod), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_shears, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore), 20.0F);\n// FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_furnace), new ItemStack(Blocks.netherrack, 2, 0), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore, 2, 0), 40.0F);\n //\n // recycle your Bronze\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.bronze_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soAlloy.large_bronze_chunk), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.bronze_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(soAlloy.large_bronze_chunk, 2, 0), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.bronze_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(soAlloy.large_bronze_chunk, 2, 0), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.bronze_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soAlloy.large_bronze_chunk), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.bronze_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soAlloy.large_bronze_chunk), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.bronze_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soAlloy.large_bronze_chunk), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.bronze_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soAlloy.large_bronze_chunk), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.bronze_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soAlloy.large_bronze_chunk), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.bronze_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soAlloy.large_bronze_chunk), 10.0F);\n //\n // recycle your Thyrium\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.thyrium_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_thyrium_chunk), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.thyrium_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_thyrium_chunk, 2, 0), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.thyrium_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_thyrium_chunk, 2, 0), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.thyrium_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_thyrium_chunk), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.thyrium_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_thyrium_chunk), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.thyrium_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_thyrium_chunk), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.thyrium_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_thyrium_chunk), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.thyrium_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_thyrium_chunk), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.thyrium_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_thyrium_chunk), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.thyrium_bow, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_thyrium_chunk), 15.0F);\n // extra Thyrium recycling\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.thyrium_rod), new ItemStack(Blocks.gravel), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_thyrium_chunk), 15.0F);\n //\n // recycle your Sinisite\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.sinisite_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_sinisite_chunk), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.sinisite_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack, 2, 0), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_sinisite_chunk, 2, 0), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.sinisite_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack, 2, 0), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_sinisite_chunk, 2, 0), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.sinisite_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_sinisite_chunk), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.sinisite_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_sinisite_chunk), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.sinisite_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_sinisite_chunk), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.sinisite_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_sinisite_chunk), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.sinisite_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_sinisite_chunk), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.sinisite_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_sinisite_chunk), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.sinisite_bow, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_sinisite_chunk), 20.0F);\n // extra Sinisite recycling\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.sinisite_rod), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_sinisite_chunk), 20.0F);\n }}",
"@java.lang.Override\n public io.grafeas.v1.RecipeOrBuilder getRecipeOrBuilder() {\n return recipe_ == null ? io.grafeas.v1.Recipe.getDefaultInstance() : recipe_;\n }",
"public static void reci(){\n\n GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(generatorBase, 1),\"XXX\", \"XXX\", \"XXX\", 'X', ItemHandler.ironHard));\n GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(generatorCombust, 1), \"XYX\", \"DFD\", \"XXX\", 'X', generatorBase, 'Y', \"gemDiamond\", 'D', \"dustRedstone\", 'F', Blocks.furnace));\n GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(tank, 1), \"XXX\", \"XYX\", \"XXX\", 'X', ItemHandler.ironHard, 'Y', \"blockGlass\"));\n GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(charcoalBlock, 1), \"CCC\", \"CCC\", \"CCC\", 'C', new ItemStack(Items.coal, 1, 1)));\n GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Items.coal, 9, 1), new ItemStack(charcoalBlock)));\n }",
"public static void readData(ArrayList<Student> students, ArrayList<Course> courses)\r\n {\r\n //emfanizie mnm ston xrhsth,dexetai apanthsh apo ton xrhsth\r\n //kai thn apanthsh thn epistrefei ws alfarithmitiko\r\n\r\n //String answer= JOptionPane.showInputDialog(\"Enter your name:\");\r\n\r\n boolean more= true;\r\n\r\n while(more)\r\n {\r\n\r\n String selection= JOptionPane.showInputDialog(\"1:Student 2:Graduate\");\r\n int choice =Integer.parseInt(selection);\r\n\r\n String name= JOptionPane.showInputDialog(\"Name: \");\r\n String id= JOptionPane.showInputDialog(\"Id: \");\r\n\r\n //to arxikopoiw ws null gia na mhn vgazei error\r\n //ayto symvanei dioti an mpei mesa sto if pernei mai timh an omws den mpei den tha parei timh kai tha vgazei error\r\n String supervisor=null;\r\n\r\n if(choice == 2)\r\n {\r\n supervisor= JOptionPane.showInputDialog(\"Supervisor: \");\r\n }\r\n\r\n Student student;\r\n if(choice==1)\r\n {\r\n student= new Student(name,id);\r\n }\r\n else\r\n {\r\n student= new Graduate(name,id,supervisor);\r\n }\r\n\r\n String coursename =JOptionPane.showInputDialog(\"Enter course name: \");\r\n\r\n //ftiaxnoume ena for wste na diatreksw ola ta mathimata poy exie mesa h lista\r\n //sthn synexeia tha sygkrinw to mathima me thn epilogh tou xrhsth\r\n for (Course course:courses)\r\n {\r\n if(course.getName().equals(coursename))\r\n {\r\n student.addCourses(course);\r\n }\r\n\r\n }\r\n\r\n //ton foithth ton topothetoume sthn lista poy yparxeis thn main kai thn pernei ws orisma h synarthsh\r\n students.add(student);\r\n\r\n String answer= JOptionPane.showInputDialog(\"More Students (Y/N)\");\r\n //gia string tha mporousa na kanw==\"n\"\r\n if(answer.equals(\"N\"))\r\n {\r\n more= false;\r\n }\r\n\r\n }\r\n\r\n\r\n }",
"public static void main(String[] args) {\n ArrayList<Course> courses = new ArrayList<>();\n courses.add(new Course(\"Math\", \"12030\"));\n courses.add(new Course(\"English\", \"46537\"));\n courses.add(new Course(\"Programming\", \"64537\"));\n\n ArrayList<Teacher> teachers = new ArrayList<>();\n teachers.add(new Teacher(\"Albert\", \"Einstein\", \"[email protected]\", \"1\"));\n teachers.add(new Teacher(\"Nikola\", \"Tesla\", \"[email protected]\", \"2\"));\n teachers.add(new Teacher(\"Ada\", \"Lovelace\", \"[email protected]\", \"3\"));\n teachers.add(new Teacher(\"Charles\", \"Babbage\", \"[email protected]\", \"4\"));\n\n courses.get(0).getTaughtBy().add(teachers.get(1));\n courses.get(0).getTaughtBy().add(teachers.get(2));\n courses.get(1).getTaughtBy().add(teachers.get(0));\n courses.get(1).getTaughtBy().add(teachers.get(1));\n courses.get(2).getTaughtBy().add(teachers.get(2));\n\n\n\n ArrayList<Student> students = new ArrayList<>();\n students.add(new Student(\"Irina\", \"Smirnova\", \"[email protected]\", \"245\"));\n students.add(new Student(\"Andrey\", \"Smirnov\", \"[email protected]\", \"249\"));\n students.add(new Student(\"Galina\", \"Kutarina\", \"[email protected]\", \"246\"));\n\n courses.get(0).getTakenBy().add(students.get(1));\n courses.get(0).getTakenBy().add(students.get(2));\n courses.get(1).getTakenBy().add(students.get(1));\n courses.get(2).getTakenBy().add(students.get(0));\n\n\n listCourses(courses);\n // listTeachers(teachers);\n// listStudents(students);\n\n\n\n }",
"public static void addRecipes() {\n\t\tModLoader.addRecipe(new ItemStack(blockWirelessR, 1), new Object[] {\n\t\t\t\t\"IRI\", \"RLR\", \"IRI\", Character.valueOf('I'), Item.ingotIron,\n\t\t\t\tCharacter.valueOf('R'), Item.redstone, Character.valueOf('L'),\n\t\t\t\tBlock.lever });\n\t\tModLoader.addRecipe(new ItemStack(blockWirelessT, 1), new Object[] {\n\t\t\t\t\"IRI\", \"RTR\", \"IRI\", Character.valueOf('I'), Item.ingotIron,\n\t\t\t\tCharacter.valueOf('R'), Item.redstone, Character.valueOf('T'),\n\t\t\t\tBlock.torchRedstoneActive });\n\t}",
"private void generateRecipeList(List<Match> recipeDataList, int ingredients) {\n allMatches.clear();\n // Produces numerical score for each recipe\n weightedSearchByIngredients(recipeDataList, ingredients);\n allMatches.addAll(recipeDataList);\n adapter = new IngredientSearchAdapter(allMatches);\n recyclerView.setAdapter(adapter);\n for (Match recipe : recipeDataList){\n System.out.println(\"Recipe: \" + recipe.getRecipeName()\n + \"| Weight: \" + recipe.getWeight()\n + \"| Ingredients: \" + recipe.getIngredients().size());\n }\n }",
"public static void main(String[] args) {\n\t\t\tRecipeBook recipeBook= new RecipeBook();\n\t\t\trecipeBook.setName(\"My Recipe Book\");\n\t\t// This is the default value that will be shown on the drop down list\n\t\t\trecipeBook.newRecipe(\"Select an Option\");\n\t\t\n\t\t//Loading sample recipes into memory\n\t\t\t//Create an object type Recipe\n\t\t\t\trecipeBook.newRecipe(\"Peach Almond Pie\");\n\t\t\t\t\n\t\t\t//\tAdding ingredients to the the Recipe\n\t\t\t\trecipeBook.addIngredient(\"Peach Almond Pie\",\" fresh peaches, sliced \",2, \"cups\");\n\t\t\t\trecipeBook.addIngredient(\"Peach Almond Pie\",\" lemon juice \",1, \"Tbsp\");\n\t\t\t\trecipeBook.addIngredient(\"Peach Almond Pie\",\" sugar \",0.25, \"cup\");\n\t\t\t\trecipeBook.addIngredient(\"Peach Almond Pie\",\" cornstarch \",3, \"Tbsp\");\n\t\t\t\trecipeBook.addIngredient(\"Peach Almond Pie\",\" butter \",2, \"tsp\");\n\t\t\t\trecipeBook.addIngredient(\"Peach Almond Pie\",\" salt \",1, \"dash\");\n\t\t\t\trecipeBook.addIngredient(\"Peach Almond Pie\",\" almond extract \",0.25, \"tsp\");\n\t\t\t\trecipeBook.addIngredient(\"Peach Almond Pie\",\" pie shell \",1, \"9 inch\");\n\t\t\n\t\t\t\t// Adding cooking instructions\t\n\t\t\t\trecipeBook.setRecipeInstruction(\"Peach Almond Pie\", \"Sprinkle peaches with lemon and sugar. Let stand 1 hour. Drain to get 1 cup syrup. Add cornstarch to syrup and blend. Cook over low heat until thick. Remove from heat. Add butter, salt, and almond extract. Cool. Carefully stir in peaches. Put in shell. Chill. Serve with whipped cream, topped with slivered almonds and marachino cherries.\");\n\t\t\t\trecipeBook.newRecipe(\"Creamy Chicken Broccoli with Rice\");\n\t\t\t\trecipeBook.addIngredient(\"Creamy Chicken Broccoli with Rice\",\" miracle whip \",0.5, \"cups\");\n\t\t\t\trecipeBook.addIngredient(\"Creamy Chicken Broccoli with Rice\",\" skinless chicken breast, cubed \",1, \"pound\");\n\t\t\t\trecipeBook.addIngredient(\"Creamy Chicken Broccoli with Rice\",\" broccoli, chopped \",2, \"cups\");\n\t\t\t\trecipeBook.addIngredient(\"Creamy Chicken Broccoli with Rice\",\" Velveeta rice \",0.5, \"pound\");\n\t\t\t\trecipeBook.setRecipeInstruction(\"Creamy Chicken Broccoli with Rice\", \"Heat salad dressing in a large skillet. Add chicken and completely cook for about 8 minutes. Stir in broccoli and cook until heated. Add Velveeta and stir until thoroughly melted. Serve over rice.\");\n\t\t\n\t\t\t\t\n\t\t\t\t//Display the Main Menu to the user\n\t\tMainMenu mainMenu =new MainMenu(recipeBook);\n\t\tmainMenu.setVisible(true);\n//\t\t\n\t}",
"public ArrayList<Integer> getIdRecipeCraftable() {\n ArrayList<Integer> idRecipes = new ArrayList<>();\n\n int lineRecipe = 0;\n for (int recipe = 0; recipe < MathDataBuilder.countLinesInFiles(RECIPES); recipe++) {\n\n lineRecipe = getRecipeLine(lineRecipe);\n\n String idItemCraft = \"\";\n boolean isFinished = false;\n for (int c = 0; c < line.length() && !isFinished; c++) {\n idItemCraft = idItemCraft + line.charAt(c);\n if (line.charAt(c + 1) == ';') {\n isFinished = true;\n }\n }\n idRecipes.add(Integer.parseInt(idItemCraft));\n }\n\n return idRecipes;\n }",
"private void createRowForChapter(Composite section)\n {\n // Create the composite\n Composite compo = toolkit.createComposite(section);\n compo.setLayout(new GridLayout(2, false));\n // Create Label\n labelChapter = toolkit.createLabel(compo, \"Chapter organisation: \"); //$NON-NLS-1$\n // Create the text component\n String helpText = Messages.ImportRequirementWizardPageSelectFormat_FLAT_OR_HIERARCHICAL;\n chapterRecognizeComponent = new ComponentHelpRadioButton(new NotifyElement()\n {\n public void handleModelChange()\n {\n controller.setHierarchical(chapterRecognizeComponent.isHierarchical());\n controller.removeDocumentType();\n ImportRequirementWizardPageSelectFormat.this.handleModelChange();\n }\n }, compo, toolkit, SWT.NONE, helpText);\n chapterRecognizeComponent.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1));\n GridData data = new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1);\n compo.setLayoutData(data);\n // load pref\n chapterRecognizeComponent.setHierachical(chapterPref);\n\n }",
"public interface Recipe {\n\n String getTitle();\n\n String getDescription();\n\n List<String> getMealType();\n\n List<String> getFoodType();\n\n List<String> getIngredients();\n}",
"public Vector<CourseSubject> getCourses() throws IOException{\n\n\t\tVector<CourseSubject> coursesVector = new Vector<CourseSubject>();\t\n\t\tString sourceLine = \"\";\n\t\tString content = \"\";\t\n\t\t\n\t\tInputStreamReader pageInput = new InputStreamReader(address.openStream());\n\t\tBufferedReader source = new BufferedReader(pageInput);\n\t\twhile( (sourceLine = source.readLine()) != null){\n\t\t\tcontent += sourceLine + \"\\n\";\n\t\t}\n\t\tPattern style = null;\n\t\tPattern p = null;\n\t\tString regex0 = \"\";\t\t// required for the split\n\t\tString regex1 = \"\";\t\t// required for the split\n\t\t\n\t\tswitch (flag) {\t// dependent on different schools\n \tcase 0:\n \t\tregex0 = \"<div class=\\\"ws-course-title\\\"><a href.*?>\";\n \t\tstyle = Pattern.compile(\"<div class=\\\"ws-course-title\\\"><a href.*?>.*?</a></div>\");\n \t\tp = Pattern.compile(\"<a href=\\\".*?skinId=2169\\\">\");\n \t\tregex1 = \"</a></div>\";\n \tbreak;\n }\n\t\t\n\n Matcher mstyle = style.matcher(content);\n String address = null;\n Matcher pstyle = null;\n if( p != null)\n \tpstyle = p.matcher(content);\n \n String tag = \"\";\n String[] str = null;\n // need to change counter for Stanford mstyle has more values then pstyle\n int counter = 0;\n boolean done = false;\n while (mstyle.find() ){\n \tdone = pstyle.find();\n \ttag = mstyle.group();\n \tstr = tag.split(regex0, 3);\n \tif(str.length != 1)\n \t\tstr = str[str.length-1].split(regex1, 3);\t\t// str[0] holds the name of the course\n \tCourseSubject courseSub = new CourseSubject(str[0], null);\t\t// no subclasses yet.\n \t\n \tif(flag == 3){\t\t// for berkeley\n \t\taddress = str[0].trim().replace(' ', '+');\n \t\taddress = cleanURL(address, flag);\n \t}\n \telse{\n \t\tif(flag == 2 && (counter < 9 || !done) )\t// done for stanford\n \t\t\taddress = \"http://www.fail.com\";\t// fail this will be removed in linkedcoursesApp\n \t\telse\n \t\t\taddress = pstyle.group();\n \t\taddress = cleanURL(address, flag);\n \t}\n \tcourseSub.setURL(new URL(address));\n \t\n \tcoursesVector.add(courseSub);\n \tcounter++;\n }\n \n\t\tpageInput.close();\n\t\tsource.close();\n\t\treturn coursesVector;\n\t}",
"public List<Subject> getsixthsubj(String course) {\n\t\treturn sub_dao.getsixthsubj(course);\r\n\t}",
"@Override\n public void registerRecipeCatalysts(IRecipeCatalystRegistration registry) {\n CatalystRegistryHelper.register(registry, MekanismBlocks.ENRICHMENT_CHAMBER);\n CatalystRegistryHelper.register(registry, MekanismBlocks.CRUSHER);\n CatalystRegistryHelper.register(registry, MekanismBlocks.COMBINER);\n CatalystRegistryHelper.register(registry, MekanismBlocks.PURIFICATION_CHAMBER, MekanismJEIRecipeType.GAS_CONVERSION);\n CatalystRegistryHelper.register(registry, MekanismBlocks.OSMIUM_COMPRESSOR, MekanismJEIRecipeType.GAS_CONVERSION);\n CatalystRegistryHelper.register(registry, MekanismBlocks.CHEMICAL_INJECTION_CHAMBER, MekanismJEIRecipeType.GAS_CONVERSION);\n CatalystRegistryHelper.register(registry, MekanismBlocks.PRECISION_SAWMILL);\n CatalystRegistryHelper.register(registry, MekanismBlocks.METALLURGIC_INFUSER, MekanismJEIRecipeType.INFUSION_CONVERSION);\n CatalystRegistryHelper.register(registry, MekanismBlocks.CHEMICAL_CRYSTALLIZER);\n CatalystRegistryHelper.register(registry, MekanismBlocks.CHEMICAL_DISSOLUTION_CHAMBER, MekanismJEIRecipeType.GAS_CONVERSION);\n CatalystRegistryHelper.register(registry, MekanismBlocks.CHEMICAL_INFUSER);\n CatalystRegistryHelper.register(registry, MekanismBlocks.CHEMICAL_OXIDIZER);\n CatalystRegistryHelper.register(registry, MekanismBlocks.CHEMICAL_WASHER);\n CatalystRegistryHelper.register(registry, MekanismBlocks.SOLAR_NEUTRON_ACTIVATOR);\n CatalystRegistryHelper.register(registry, MekanismBlocks.ELECTROLYTIC_SEPARATOR);\n CatalystRegistryHelper.register(registry, MekanismJEIRecipeType.SPS, MekanismBlocks.SPS_CASING, MekanismBlocks.SPS_PORT, MekanismBlocks.SUPERCHARGED_COIL);\n CatalystRegistryHelper.register(registry, MekanismJEIRecipeType.EVAPORATING, MekanismBlocks.THERMAL_EVAPORATION_CONTROLLER,\n MekanismBlocks.THERMAL_EVAPORATION_VALVE, MekanismBlocks.THERMAL_EVAPORATION_BLOCK);\n CatalystRegistryHelper.register(registry, MekanismJEIRecipeType.BOILER, MekanismBlocks.BOILER_CASING, MekanismBlocks.BOILER_VALVE,\n MekanismBlocks.PRESSURE_DISPERSER, MekanismBlocks.SUPERHEATING_ELEMENT);\n CatalystRegistryHelper.register(registry, MekanismBlocks.PRESSURIZED_REACTION_CHAMBER);\n CatalystRegistryHelper.register(registry, MekanismBlocks.ISOTOPIC_CENTRIFUGE);\n CatalystRegistryHelper.register(registry, MekanismBlocks.NUTRITIONAL_LIQUIFIER);\n CatalystRegistryHelper.register(registry, MekanismBlocks.PIGMENT_EXTRACTOR);\n CatalystRegistryHelper.register(registry, MekanismBlocks.PIGMENT_MIXER);\n CatalystRegistryHelper.register(registry, MekanismBlocks.PAINTING_MACHINE);\n CatalystRegistryHelper.register(registry, MekanismBlocks.ANTIPROTONIC_NUCLEOSYNTHESIZER, MekanismJEIRecipeType.GAS_CONVERSION);\n CatalystRegistryHelper.registerRecipeItem(registry, MekanismBlocks.ROTARY_CONDENSENTRATOR, MekanismJEIRecipeType.CONDENSENTRATING,\n MekanismJEIRecipeType.DECONDENSENTRATING);\n CatalystRegistryHelper.registerRecipeItem(registry, MekanismBlocks.ENERGIZED_SMELTER, MekanismJEIRecipeType.SMELTING, RecipeTypes.SMELTING);\n CatalystRegistryHelper.registerRecipeItem(registry, MekanismBlocks.FORMULAIC_ASSEMBLICATOR, RecipeTypes.CRAFTING);\n CatalystRegistryHelper.registerRecipeItem(registry, MekanismItems.ROBIT, MekanismJEIRecipeType.SMELTING, RecipeTypes.ANVIL,\n RecipeTypes.CRAFTING, RecipeTypes.SMELTING);\n //TODO: Decide if we want to make it so all mekanism energy supporting blocks that have gui's are added as catalysts?\n CatalystRegistryHelper.register(registry, MekanismJEIRecipeType.ENERGY_CONVERSION, MekanismBlocks.BASIC_ENERGY_CUBE, MekanismBlocks.ADVANCED_ENERGY_CUBE,\n MekanismBlocks.ELITE_ENERGY_CUBE, MekanismBlocks.ULTIMATE_ENERGY_CUBE);\n }",
"public void addRecipes(CraftingManager par1CraftingManager)\n {\n for (int var2 = 0; var2 < this.recipeItems[0].length; ++var2)\n {\n Object var3 = this.recipeItems[0][var2];\n\n for (int var4 = 0; var4 < this.recipeItems.length - 1; ++var4)\n {\n Item var5 = (Item)this.recipeItems[var4 + 1][var2];\n par1CraftingManager.addRecipe(new ItemStack(var5), new Object[] {this.recipePatterns[var4], 'X', var3});\n }\n }\n }",
"@Override\r\n\tpublic void seCourse() {\n\t\tString coursename = \"\";\r\n int teacherid = 0;\r\n String inputStr = \"\";\r\n System.out.println(\"是否需要输入教师编号关键词(y/n):\");\r\n inputStr = input.next();\r\n if(inputStr.equals(\"y\")) {\r\n System.out.println(\"请输入教师编号关键词:\");\r\n teacherid = input.nextInt();\r\n }\r\n System.out.println(\"是否需要输入课程名称关键词(y/n):\");\r\n inputStr = input.next();\r\n if(inputStr.equalsIgnoreCase(\"y\")) {\r\n System.out.println(\"请输入课程名称关键词:\");\r\n coursename = input.next();\r\n }\r\n StudentDAO dao = new StudentDAOimpl();\r\n List<Course> list = dao.seCourse(coursename, teacherid);\r\n System.out.println(\"课程编号\\t课程名称\\t教师编号\\t课程课时\");\r\n for(Course c : list) {\r\n System.out.println(c.getCourseid()+\"\\t\"+c.getCoursename()+\"\\t\"+c.getTeacherid()+\"\\t\"+c.getCoursetime());\r\n }\r\n\t}",
"private void retrieveStudentsEnrolledForACourse() {\n Scanner sc = new Scanner(System.in);\n Course c;\n while (true) {//Der Kursname sollte existieren\n System.out.print(\"Course ID: \");\n Long id = Long.parseLong(sc.next());\n c = ctrl.getCourse(id);\n if (c == null)\n System.out.println(\"Course with this ID doesn't exist! Please try again!\");\n else\n break;\n }\n\n //Wir rufen die eingeschriebenen Studenten Funktion von dem Controller\n System.out.println(\"Students enrolled for the course: \");\n ctrl.retrieveStudentsEnrolledForACourse(c);\n }",
"public List findChapters() {\n chap = new ArrayList();\n int c_count = 0;\n //check if testament is old \n if (testament.equals(\"old\")) {\n //assign the value of the number of chapters to c_count\n c_count = Integer.parseInt(BookModel.old[chapter][1]);\n } //check if testament is new \n else if (testament.equals(\"new\")) {\n //assign the value of the number of chapters to c_count\n c_count = Integer.parseInt(BookModel.newT[chapter][1]);\n }\n\n //add chapter number to a string for each chapter\n for (int y = 1; y <= c_count; y++) {\n chap.add(\"Chapter \" + y);\n }\n //return a list of chapters for the selected book\n return chap;\n }",
"static void loadCourse() {\n\t\tScanner inputStreamC = null; // create object variable for Course\n\n\t\ttry { // create Scanner object & assign to variable\n\t\t\tinputStreamC = new Scanner(new File(\"course.txt\"));\n\t\t\tinputStreamC.useDelimiter(\",\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"No Course Infomation was Loaded\");\n\t\t\t// System.exit(0);\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\twhile (inputStreamC.hasNext()) {\n\n\t\t\t\tString readCourseID = inputStreamC.next();\n\t\t\t\tString readCourseName = inputStreamC.next();\n\t\t\t\tString readCourseUserName = inputStreamC.next();\n\t\t\t\t\n\t\t\t\tCourse c1 = new Course(readCourseID, readCourseName, readCourseUserName);\n\t\t\t\tcourseInfoArray.add(c1);\n\t\t\t\t//System.out.println(\"Read a Course \" + c1.getCourseID() + \" \" + c1.getCourseName() + \" \"\t+ c1.getCoordinatorUserID());\n\t\t\t\t\n\t\t\t} //eo while\n\t\t} catch (IllegalStateException e) {\n\t\t\tSystem.err.println(\"Could not read from the file\");\n\t\t} catch (InputMismatchException e) {\n\t\t\tSystem.err.println(\"Something wrong happened while reading the file\");\n\t\t}\n\t\tinputStreamC.close();\n\t}",
"public String[] getCourses();",
"public ArrayList getCourses();",
"private void givenRecipeSourceIsSet() {\n sourceSet = new HashSet();\n\n Recipe recipe1 = new Recipe();\n recipe1.setId(1L);\n sourceSet.add(recipe1);\n\n Recipe recipe2 = new Recipe();\n recipe2.setId(2L);\n sourceSet.add(recipe2);\n }",
"public static List<RecipeItemSelector> getRequireItemsFromRecipe(IRecipe recipe){\n\t\tif(recipe instanceof ShapelessRecipes){\n\t\t\tList<ItemStack> isList = ((ShapelessRecipes)recipe).recipeItems;\n\t\t\treturn isList.stream().map(input -> RecipeItemSelector.of(input, null)).collect(Collectors.toList());\n\t\t}\n\t\tif(recipe instanceof ShapedRecipes){\n\t\t\tItemStack[] isarray = ((ShapedRecipes)recipe).recipeItems;\n\n\t\t\treturn Lists.<ItemStack>newArrayList(isarray).stream().map( is ->RecipeItemSelector.of(is, null)).collect(Collectors.toList());\n\t\t}\n\t\tif(recipe instanceof ShapelessOreRecipe){\n\n\n\n\t\t\tList<RecipeItemSelector> list1 = (((ShapelessOreRecipe)recipe).getInput()).stream().filter(obj -> obj instanceof ItemStack)\n\t\t\t\t\t.map(obj -> RecipeItemSelector.of((ItemStack)obj, null)).collect(Collectors.toList());\n\t\t\tList<RecipeItemSelector> list2 = (((ShapelessOreRecipe)recipe).getInput()).stream().filter(obj -> obj instanceof String)\n\t\t\t\t\t.map(obj -> RecipeItemSelector.of(null, new OreDict((String)obj))).collect(Collectors.toList());\n\t\t\tList<RecipeItemSelector> rt = Lists.newArrayList();\n\t\t\trt.addAll(list1);\n\t\t\trt.addAll(list2);\n\t\t\treturn rt;\n\n\t\t}\n\t\tif(recipe instanceof ShapedOreRecipe){\n\t\t\tObject[] isarray = ((ShapedOreRecipe)recipe).getInput();\n\t\t\tList<Object> objList = Lists.newArrayList(isarray);\n\t\t\tobjList.stream().flatMap(obj ->{\n\t\t\t\t//\t\t\t\t\tUnsagaMod.logger.trace(\"recipe\", input.getClass());\n\t\t\t\tList<RecipeItemSelector> rt = Lists.newArrayList();\n\t\t\t\tif(obj instanceof List){\n\t\t\t\t\t//\t\t\t\t\t\tUnsagaMod.logger.trace(\"shaped\", \"array\");\n\t\t\t\t\trt.addAll(convertListTypeObject(obj));\n\t\t\t\t}\n\t\t\t\tif(obj instanceof ItemStack){\n\t\t\t\t\t//\t\t\t\t\t\tUnsagaMod.logger.trace(\"shaped\", \"itemstack\");\n\t\t\t\t\tList<RecipeItemSelector> list = Lists.newArrayList(RecipeItemSelector.of((ItemStack)obj, null));\n\t\t\t\t\trt.addAll(list);\n\t\t\t\t}\n\n\t\t\t\t//\t\t\t\t\tif(objs!=null){\n\t\t\t\t//\t\t\t\t\t\tObject[] objarray = (Object[]) objs;\n\t\t\t\t//\t\t\t\t\t\treturn ListHelper.stream(objarray).map(new Function<Object,Tuple<ItemStack,OreDict>>(){\n\t\t\t\t//\n\t\t\t\t//\t\t\t\t\t\t\t@Override\n\t\t\t\t//\t\t\t\t\t\t\tpublic Tuple<ItemStack, OreDict> apply(Object input) {\n\t\t\t\t//\t\t\t\t\t\t\t\tUnsagaMod.logger.trace(\"shaped\", input);\n\t\t\t\t//\t\t\t\t\t\t\t\tif(input instanceof ItemStack){\n\t\t\t\t//\t\t\t\t\t\t\t\t\treturn Tuple.of((ItemStack)input,null);\n\t\t\t\t//\t\t\t\t\t\t\t\t}\n\t\t\t\t//\t\t\t\t\t\t\t\tif(input instanceof String){\n\t\t\t\t//\t\t\t\t\t\t\t\t\treturn Tuple.of(null, new OreDict((String) input));\n\t\t\t\t//\t\t\t\t\t\t\t\t}\n\t\t\t\t//\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t//\t\t\t\t\t\t\t}}\n\t\t\t\t//\t\t\t\t\t\t).getList();\n\t\t\t\t//\t\t\t\t\t}\n\n\t\t\t\treturn rt.stream();\n\t\t\t});\n\t\t}\n\t\tHSLib.logger.trace(\"recipeutil\", \"どのレシピにも合致しない?\");\n\t\treturn Lists.newArrayList();\n\t}",
"@Test\n public void getAllRecipeCategories_ReturnsList(){\n int returned = testDatabase.addRecipe(testRecipe);\n ArrayList<RecipeCategory> allCategories = testDatabase.getAllRecipeCategories(returned);\n assertNotEquals(\"getAllRecipeCategories - Non-empty List Returned\", 0, allCategories.size());\n }",
"public List<Courses> courseInfo(String courseid) {\n\t\t\n\t\tList<Courses> courselist = new ArrayList<Courses>();\n\t\t\n\t\tMongoConnection mongocon = new MongoConnection();\n\t\tDBCursor resultcursor = mongocon.getDBObject(\"courseid\", courseid, \"Course\");\n\t\tif(resultcursor.hasNext()){\n\t\t\tDBObject theObj = resultcursor.next();\n\t\t\t\n\t\t\tCourses courses = new Courses();\n\t\t\tcourses.setCourseCategory((String)theObj.get(\"courseCategory\"));\n\t\t\tcourses.setCourseDescription((String)theObj.get(\"courseDescription\"));\n\t\t\tcourses.setCourseFee((String)theObj.get(\"courseFee\"));\n\t\t\tcourses.setCourseid((String)theObj.get(\"courseid\"));\n\t\t\tcourses.setCourseimageid((String)theObj.get(\"courseimageid\"));\n\t\t\tcourses.setCourseName((String)theObj.get(\"courseName\"));\n\t\t\tcourses.setCourseownerid((String)theObj.get(\"courseownerid\"));\n\t\t\tString[] partners = ((String)theObj.get(\"coursePartners\")).split(\",\");\n\t\t\tcourses.setCoursePartners(partners);\n\t\t\t//String[] reviews = ((String)theObj.get(\"courseReview\")).split(\",\");\n\t\t\tcourses.setCourseReview((String)theObj.get(\"courseReview\"));\n\t\t\tString[] sponsors = ((String)theObj.get(\"courseSponsors\")).split(\",\");\n\t\t\tcourses.setCourseSponsors(sponsors);\n\t\t\tString[] faqids = ((String)theObj.get(\"FAQid\")).split(\",\");\n\t\t\tcourses.setFAQid(faqids) ;\n\t\t\t\n\t\t\tcourselist.add(courses);\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\n\t\t/*\n\t\t * for(int i=0;i<courseinfo.size();i++){ Courses corselst =\n\t\t * courseinfo.get(i); courselist.add(corselst.getCoursename());\n\t\t * courselist.add(corselst.getCourseid());\n\t\t * courselist.add(corselst.getCourseCategory());\n\t\t * courselist.add(corselst.getCourseDescription());\n\t\t * courselist.add(corselst.getCourseFee());\n\t\t * courselist.add(corselst.getCourseimageid());\n\t\t * courselist.add(corselst.getTimeduration());\n\t\t * courselist.add(corselst.getFAQ());\n\t\t * \n\t\t * \n\t\t * ApplicationContext ctx1 = new\n\t\t * AnnotationConfigApplicationContext(SpringMongoConfig.class);\n\t\t * MongoOperations mongoOperation1 = (MongoOperations)\n\t\t * ctx1.getBean(\"mongoTemplate\");\n\t\t * \n\t\t * //User Details Query query1 = new Query(); //\n\t\t * query2.addCriteria(Criteria.where(\"courseOwner\").is(\"dog\").and(\"age\")\n\t\t * .is(40)); query1.addCriteria(Criteria.where(\"userid\").is(\n\t\t * \"572f7777bc22c22add92894e\")); List<Profile> profileinfo =\n\t\t * (List<Profile>) mongoOperation1.find(query1, Profile.class); for(int\n\t\t * j=0;j<profileinfo.size();j++){\n\t\t * \n\t\t * Profile prof = profileinfo.get(j);\n\t\t * \n\t\t * courselist.add(prof.getAboutme());\n\t\t * courselist.add(prof.getProfileThumbnailid());\n\t\t * courselist.add(prof.getCoursesids());\n\t\t * courselist.add(prof.getEmailid());\n\t\t * courselist.add(prof.getExperience());\n\t\t * courselist.add(prof.getFollowers());\n\t\t * \n\t\t * }\n\t\t * \n\t\t * \n\t\t * //Partners details String[] coursePartners =\n\t\t * corselst.getCoursePartners(); for(int\n\t\t * m=0;m<coursePartners.length;m++){\n\t\t * \n\t\t * List partners;\n\t\t * \n\t\t * Query query2 = new Query(); //\n\t\t * query2.addCriteria(Criteria.where(\"courseOwner\").is(\"dog\").and(\"age\")\n\t\t * .is(40));\n\t\t * query2.addCriteria(Criteria.where(\"companyid\").is(coursePartners[m]))\n\t\t * ; partners = (List<Company>) mongoOperation.find(query2,\n\t\t * Company.class);\n\t\t * \n\t\t * if(partners.isEmpty()){ Query query3 = new Query(); //\n\t\t * query2.addCriteria(Criteria.where(\"courseOwner\").is(\"dog\").and(\"age\")\n\t\t * .is(40));\n\t\t * query3.addCriteria(Criteria.where(\"organizationID\").is(coursePartners\n\t\t * [m])); partners = (List<Organization>) mongoOperation.find(query1,\n\t\t * Organization.class);\n\t\t * \n\t\t * for(int n=0;n<partners.size();n++){ Organization org = (Organization)\n\t\t * partners.get(n); courselist.add(org.getOrganizationID());\n\t\t * courselist.add(org.getOrglogoid()); }\n\t\t * \n\t\t * \n\t\t * }else{ for(int n=0;n<partners.size();n++){ Company company =\n\t\t * (Company) partners.get(n); courselist.add(company.getCompanyid());\n\t\t * courselist.add(company.getCompanylogoid()); } }\n\t\t * \n\t\t * }\n\t\t * \n\t\t * \n\t\t * \n\t\t * //Sponsor details String[] courseSponsors =\n\t\t * corselst.getCourseSponsors(); for(int\n\t\t * o=0;o<courseSponsors.length;o++){\n\t\t * \n\t\t * List sponsors;\n\t\t * \n\t\t * Query query2 = new Query(); //\n\t\t * query2.addCriteria(Criteria.where(\"courseOwner\").is(\"dog\").and(\"age\")\n\t\t * .is(40));\n\t\t * query2.addCriteria(Criteria.where(\"companyid\").is(courseSponsors[o]))\n\t\t * ; sponsors = (List<Company>) mongoOperation.find(query1,\n\t\t * Company.class);\n\t\t * \n\t\t * if(sponsors.isEmpty()){ Query query3 = new Query(); //\n\t\t * query2.addCriteria(Criteria.where(\"courseOwner\").is(\"dog\").and(\"age\")\n\t\t * .is(40));\n\t\t * query3.addCriteria(Criteria.where(\"organizationID\").is(courseSponsors\n\t\t * [o])); sponsors = (List<Organization>) mongoOperation.find(query1,\n\t\t * Organization.class);\n\t\t * \n\t\t * for(int n=0;n<sponsors.size();n++){ Organization org = (Organization)\n\t\t * sponsors.get(n); courselist.add(org.getOrganizationID());\n\t\t * courselist.add(org.getOrglogoid()); }\n\t\t * \n\t\t * \n\t\t * }else{ for(int n=0;n<sponsors.size();n++){ Company company =\n\t\t * (Company) sponsors.get(n); courselist.add(company.getCompanyid());\n\t\t * courselist.add(company.getCompanylogoid()); } }\n\t\t * \n\t\t * }\n\t\t * \n\t\t * //Review details\n\t\t * \n\t\t * }\n\t\t */\n\n\t\tSystem.out.println(\"courseinfo >>.\" + courselist);\n\n\t\treturn courselist;\n\n\t}",
"long getRecipesCount();",
"@Test\n\tpublic void testAddCorrectNumberOfRecipes() throws RecipeException {\n\t\tcoffeeMaker.addRecipe(recipe1);\n\t\tcoffeeMaker.addRecipe(recipe2);\n\t\tcoffeeMaker.addRecipe(recipe3);\n\t}",
"public void addRecipes(CraftingManager par1CraftingManager) {\r\n\t\tpar1CraftingManager.addRecipe(new ItemStack(Block.chest), new Object[] {\r\n\t\t\t\t\"###\", \"# #\", \"###\", '#', Block.planks });\r\n\t\tpar1CraftingManager.addRecipe(new ItemStack(Block.stoneOvenIdle),\r\n\t\t\t\tnew Object[] { \"###\", \"# #\", \"###\", '#', Block.cobblestone });\r\n\t\tpar1CraftingManager.addRecipe(new ItemStack(Block.workbench),\r\n\t\t\t\tnew Object[] { \"##\", \"##\", '#', Block.planks });\r\n\t\tpar1CraftingManager.addRecipe(new ItemStack(Block.sandStone),\r\n\t\t\t\tnew Object[] { \"##\", \"##\", '#', Block.sand });\r\n\t\tpar1CraftingManager.addRecipe(new ItemStack(Block.sandStone, 4, 2),\r\n\t\t\t\tnew Object[] { \"##\", \"##\", '#', Block.sandStone });\r\n\t\tpar1CraftingManager.addRecipe(new ItemStack(Block.sandStone, 1, 1),\r\n\t\t\t\tnew Object[] { \"#\", \"#\", '#',\r\n\t\t\t\t\t\tnew ItemStack(Block.stairSingle, 1, 1) });\r\n\t\tpar1CraftingManager.addRecipe(new ItemStack(Block.stoneBrick, 4),\r\n\t\t\t\tnew Object[] { \"##\", \"##\", '#', Block.stone });\r\n\t\tpar1CraftingManager.addRecipe(new ItemStack(Block.fenceIron, 16),\r\n\t\t\t\tnew Object[] { \"###\", \"###\", '#', Item.ingotIron });\r\n\t\tpar1CraftingManager.addRecipe(new ItemStack(Block.thinGlass, 16),\r\n\t\t\t\tnew Object[] { \"###\", \"###\", '#', Block.glass });\r\n\t\tpar1CraftingManager.addRecipe(new ItemStack(Block.redstoneLampIdle, 1),\r\n\t\t\t\tnew Object[] { \" R \", \"RGR\", \" R \", 'R', Item.redstone, 'G',\r\n\t\t\t\t\t\tBlock.glowStone });\r\n\t}"
]
| [
"0.59384054",
"0.5900457",
"0.58887243",
"0.5861732",
"0.58466446",
"0.5825758",
"0.5763878",
"0.57242775",
"0.57211745",
"0.5533625",
"0.5528189",
"0.5510665",
"0.5504736",
"0.5497366",
"0.5489718",
"0.5475491",
"0.5423683",
"0.5381466",
"0.5358342",
"0.5339338",
"0.53370523",
"0.5335996",
"0.5330864",
"0.5323932",
"0.53210384",
"0.531998",
"0.53004986",
"0.53002393",
"0.5290206",
"0.5251114",
"0.5203618",
"0.51911443",
"0.51882297",
"0.5180847",
"0.517906",
"0.5171434",
"0.5162519",
"0.5156815",
"0.5155885",
"0.51552504",
"0.5133552",
"0.5121712",
"0.51117057",
"0.5111112",
"0.5110427",
"0.5108217",
"0.50991017",
"0.5098101",
"0.5097577",
"0.5096322",
"0.50947094",
"0.5090561",
"0.5088596",
"0.5079357",
"0.5071822",
"0.50606215",
"0.5058634",
"0.50566137",
"0.50552344",
"0.5055197",
"0.50533867",
"0.5050342",
"0.50372213",
"0.5031926",
"0.502899",
"0.501405",
"0.5013566",
"0.501244",
"0.50081605",
"0.5004227",
"0.4997575",
"0.49963415",
"0.49942887",
"0.49830163",
"0.49801138",
"0.49737382",
"0.49734628",
"0.49724707",
"0.49690792",
"0.4968426",
"0.4963815",
"0.49626315",
"0.49619603",
"0.49587566",
"0.4958139",
"0.49577206",
"0.4956736",
"0.4956062",
"0.4947963",
"0.49465498",
"0.49401125",
"0.49375844",
"0.4933902",
"0.49322367",
"0.49321684",
"0.49270624",
"0.4918321",
"0.49161962",
"0.49118882",
"0.49089313"
]
| 0.58716893 | 3 |
recipes in a category | @RequestMapping(value = "category", method = RequestMethod.GET)
public String category(Model model, @RequestParam int id){
Category cat = categoryDao.findOne(id);
List<Recipe> recipes = cat.getRecipes();
model.addAttribute("recipes", recipes);
model.addAttribute("title", cat.getCategoryName() + " recipes");
return "recipe/list-under";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"SortedSet<Recipe> findRecipesByCategory(MealCategory category) throws ServiceFailureException;",
"@Test\n public void ShouldFindbyCategory() {\n Recipe curry = new Recipe();\n curry.setCategory(\"curry\");\n Recipe curryOne = new Recipe();\n curryOne.setCategory(\"curry\");\n Recipe breakfast = new Recipe();\n breakfast.setCategory(\"breakfast\");\n recipesRepository.save(curry);\n recipesRepository.save(curryOne);\n recipesRepository.save(breakfast);\n\n // When I check for curries\n List<Recipe> curries = recipesRepository.findByCategory(\"curry\");\n\n // Then only curries are returned\n assertThat(curries).containsExactly(curry, curryOne);\n }",
"public List<Recipe> search(String queryText, Category category, CookingMethod cookingMethod);",
"public RecipeCategory getCategoryForCreativeTab(CreativeTabs tab)\n {\n // TODO Auto-generated method stub\n return null;\n }",
"@Override\r\n\tpublic Set<Product> getSet(String category) throws ItemNotFoundException{\r\n\t\taddItems();\r\n\t\tSet<Product> targetSet=new HashSet<>();\r\n\r\n\t\tif((category.toLowerCase()).equals(\"food items\")){ //creating a set of food items\r\n\t\t\tfor(Product p:productSet) {\r\n\t\t\t\tif(p instanceof FoodItems) {\r\n\t\t\t\t\ttargetSet.add(p);\r\n\t\t\t\t}\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\telse if((category.toLowerCase()).equals(\"apparels\")) {//creating a set of apparels\r\n\t\t\tfor(Product p:productSet) {\r\n\t\t\t\tif(p instanceof Apparels) {\r\n\t\t\t\t\ttargetSet.add(p);\r\n\t\t\t\t\t//System.out.print(p);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if((category.toLowerCase()).equals(\"electronics\")) {//creating a set of electronics\r\n\t\t\tfor(Product p:productSet) {\r\n\t\t\t\tif(p instanceof Electronics) {\r\n\t\t\t\t\ttargetSet.add(p);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\tif (targetSet!=null) //thowing exception\r\n\t\t\treturn targetSet;\r\n\t\telse \r\n\t\t\tthrow new ItemNotFoundException(\"item not found\");\r\n\t\t\r\n\t}",
"public void readInCategories() {\n // read CSV file for Categories\n allCategories = new ArrayList<Category>();\n InputStream inputStream = getResources().openRawResource(R.raw.categories);\n CSVFile csvFile = new CSVFile(inputStream);\n List scoreList = csvFile.read();\n // ignore first row because it is the title row\n for (int i = 1; i < scoreList.size(); i++) {\n String[] categoryInfo = (String[]) scoreList.get(i);\n\n // inputs to Category constructor:\n // String name, int smallPhotoID, int bannerPhotoID\n\n // get all image IDs according to the names\n int smallPhotoID = context.getResources().getIdentifier(categoryInfo[1], \"drawable\", context.getPackageName());\n int bannerPhotoID = context.getResources().getIdentifier(categoryInfo[2], \"drawable\", context.getPackageName());\n allCategories.add(new Category(categoryInfo[0],smallPhotoID, bannerPhotoID));\n\n //System.out.println(\"categoryInfo: \" + categoryInfo[0] + \" \" + categoryInfo[1] + \" \" + categoryInfo[2]);\n }\n }",
"@Test\n public void getAllRecipeCategories_ReturnsList(){\n int returned = testDatabase.addRecipe(testRecipe);\n ArrayList<RecipeCategory> allCategories = testDatabase.getAllRecipeCategories(returned);\n assertNotEquals(\"getAllRecipeCategories - Non-empty List Returned\", 0, allCategories.size());\n }",
"public List<Concept> populateConceptSection(String category){\n\t\tConceptService cs = Context.getConceptService();\n\t\tDeIdentifiedExportService d = Context.getService(DeIdentifiedExportService.class);\n\t\tList<String> list = d.getConceptByCategory(category);\n\t\tInteger temp;\n\t\tList<Concept> conceptList = new Vector<Concept>();\n\t\tfor(int i=0; i<list.size();i++){\n\t\t\tfor (String retval: list.get(i).split(\",\")){\n\t\t\t\ttemp = Integer.parseInt(retval);\n\t\t\t\tconceptList.add(cs.getConcept(temp));\n\t\t\t}\n\t\t}\n\t\tSet set = new HashSet(conceptList);\n\t\tList list1 = new ArrayList(set);\n\t\treturn list1;\n\t}",
"public RecipeCategory getCategoryForOutput(ItemStack recipeOutput)\n {\n // TODO Auto-generated method stub\n return null;\n }",
"String category();",
"public Recipe(String id, String title, String url, ArrayList<String> ingredients,ArrayList<String> category, String image) {\n this.id = id;\n this.title = title;\n this.url = url;\n this.tag = tag;\n this.ingredients = ingredients;\n this.category = category;\n this.image = image;\n }",
"List<Recipe> getAllRecipes();",
"ArrayList<RecipeObject> getRecipes();",
"void updateUsedCategoriesContent() {\n try{\n InputStream inputStream = DMOZCrawler.class.getResourceAsStream(\"Used_categories.txt\");\n InputStreamReader inputStreamReader = new InputStreamReader(inputStream);\n BufferedReader bufferedReader = new BufferedReader(inputStreamReader);\n HashSet<String> usedCategories = new HashSet<>();\n\n String currentLine;\n while ((currentLine = bufferedReader.readLine()) != null){\n usedCategories.add(currentLine.toLowerCase());\n System.out.println(\"Used category added :: \" + currentLine);\n }\n\n System.out.println(usedCategories);\n\n for(String id : usedCategories){\n categoryContent(Integer.parseInt(id));\n }\n } catch (Exception exception){\n exception.printStackTrace();\n }\n }",
"static void readRecipes() {\n\t\tBufferedReader br = null;\n\t\tString line = \"\";\n\t\tString cvsSplitBy = \",\";\n\t\ttry {\n\n\t\t\tbr = new BufferedReader(new FileReader(inputFileLocation));\n\t\t\twhile ((line = br.readLine()) != null) {\n\n\t\t\t\tString[] currentLine = line.split(cvsSplitBy);\n\t\t\t\tRecipe currentRecipe = new Recipe(currentLine[0]);\n\t\t\t\t/*\n\t\t\t\t * String[] recipe=new String[currentLine.length-1];\n\t\t\t\t * System.arraycopy(currentLine,1,recipe,0,recipe.length-2);\n\t\t\t\t */\n\t\t\t\tString[] recipe = java.util.Arrays.copyOfRange(currentLine, 1,\n\t\t\t\t\t\tcurrentLine.length);\n\t\t\t\tArrayList<String> ingredients = new ArrayList<String>();\n\t\t\t\tfor (String a : recipe) {\n\t\t\t\t\tingredients.add(a);\n\t\t\t\t}\n\t\t\t\tcurrentRecipe.setIngredients(ingredients);\n\t\t\t\tRecipes.add(currentRecipe);\n\t\t\t}\n\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} finally {\n\t\t\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}",
"@Test\n public void getAllRecipeCategories_RecipeInfo(){\n int returned = testDatabase.addRecipe(testRecipe);\n ArrayList<RecipeCategory> allCategories = testDatabase.getAllRecipeCategories(returned);\n RecipeCategory retrieved = allCategories.get(allCategories.size()-1);\n //Retrieved should now contain all the same information as testRecipe\n assertEquals(\"getAllRecipeCategories - Correct Recipe ID\", returned, retrieved.getRecipeID());\n assertEquals(\"getAllRecipeCategories - Correct Category ID\", categoryID, retrieved.getCategoryID());\n }",
"public ArrayList<Recipe> search(String searchTerm){\n\t\t\t\t\n\t\t\t\t// The final container to be returned\n\t\t\t\tArrayList<Recipe> mRecipes = new ArrayList<Recipe>();\n\t\t\t\t\n\t\t\t\t// Temporary containers to hold the search results until they can \n\t\t\t\t// be combined in mRecipes \n\t\t\t\tArrayList<Recipe> mRecipesNAME = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesCATEGORY = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesINGREDIENT = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesDESCRIPTION = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesINSTRUCTION = new ArrayList<Recipe>();\n\t\t\t\tIterator<Recipe> iterator = RECIPES.iterator(); \n\t\t\t\t\n\t\t\t\t// Search all recipes in Recipe Box for name matches\n\t\t\t\twhile (iterator.hasNext()){\n\n\t\t\t\t\t// Load the next recipe\n\t\t\t\t\tRecipe recipe = iterator.next();\n\t\t\t\t\t\n\t\t\t\t\t// Check for recipe NAME match\n\t\t\t\t\tif (recipe.nameContains(searchTerm)){\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesNAME.add(recipe);\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe CATEGORY match\n\t\t\t\t\telse if (recipe.categoriesContain(searchTerm)) {\n\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesCATEGORY.add(recipe);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe INGREDIENT match\n\t\t\t\t\telse if (recipe.ingredientsContain(searchTerm)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesINGREDIENT.add(recipe);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe DESCRIPTION match\n\t\t\t\t\telse if (recipe.descriptionContains(searchTerm)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesDESCRIPTION.add(recipe);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe INSTRUCTION match\n\t\t\t\t\telse if (recipe.instructionsContain(searchTerm)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesINSTRUCTION.add(recipe);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Create an ordered list of recipes from most important to least important\n\t\t\t\tmRecipes.addAll(mRecipesNAME);\n\t\t\t\tmRecipes.addAll(mRecipesCATEGORY);\n\t\t\t\tmRecipes.addAll(mRecipesINGREDIENT);\n\t\t\t\tmRecipes.addAll(mRecipesDESCRIPTION);\n\t\t\t\tmRecipes.addAll(mRecipesINSTRUCTION);\n\t\t\t\t\n\t\t\t\t// Return ordered list of recipes\n\t\t\t\tLog.d(TAG, \"Finish function searchNames\");\n\t\t\t\treturn mRecipes;\n\t\t\t\t\n\t\t\t}",
"ArrayList<RecipeObject> getRecipes(String recipeName);",
"@Override\n\tpublic List<AnimalCategory> findCategory() {\n\t\tList<AnimalCategory> list = animaldao.findCategory();\n\t\treturn list;\n\t}",
"@Test\r\n\tpublic void catTest() {\r\n\t\tItem item = new Item();\r\n\t\ttry {\r\n\t\t\tString tempSet[] = item.getCats();\r\n\t\t\tassertNotSame(tempSet.length, 0);\r\n\t\t\tfor (int i = 0; i < tempSet.length; i++) { // check if categories are empty\r\n\t\t\t\tassertNotNull(tempSet[i]);\r\n\t\t\t\tassertNotSame(tempSet[i], \"\");\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to execute the retrieval of the list of categories: SQLException\");\r\n\t\t}\r\n\t\t\r\n\t}",
"boolean hasCategory();",
"public ItemCategory getCategory();",
"String getCategory();",
"String getCategory();",
"public static List<RecipeItemSelector> getRequireItemsFromRecipe(IRecipe recipe){\n\t\tif(recipe instanceof ShapelessRecipes){\n\t\t\tList<ItemStack> isList = ((ShapelessRecipes)recipe).recipeItems;\n\t\t\treturn isList.stream().map(input -> RecipeItemSelector.of(input, null)).collect(Collectors.toList());\n\t\t}\n\t\tif(recipe instanceof ShapedRecipes){\n\t\t\tItemStack[] isarray = ((ShapedRecipes)recipe).recipeItems;\n\n\t\t\treturn Lists.<ItemStack>newArrayList(isarray).stream().map( is ->RecipeItemSelector.of(is, null)).collect(Collectors.toList());\n\t\t}\n\t\tif(recipe instanceof ShapelessOreRecipe){\n\n\n\n\t\t\tList<RecipeItemSelector> list1 = (((ShapelessOreRecipe)recipe).getInput()).stream().filter(obj -> obj instanceof ItemStack)\n\t\t\t\t\t.map(obj -> RecipeItemSelector.of((ItemStack)obj, null)).collect(Collectors.toList());\n\t\t\tList<RecipeItemSelector> list2 = (((ShapelessOreRecipe)recipe).getInput()).stream().filter(obj -> obj instanceof String)\n\t\t\t\t\t.map(obj -> RecipeItemSelector.of(null, new OreDict((String)obj))).collect(Collectors.toList());\n\t\t\tList<RecipeItemSelector> rt = Lists.newArrayList();\n\t\t\trt.addAll(list1);\n\t\t\trt.addAll(list2);\n\t\t\treturn rt;\n\n\t\t}\n\t\tif(recipe instanceof ShapedOreRecipe){\n\t\t\tObject[] isarray = ((ShapedOreRecipe)recipe).getInput();\n\t\t\tList<Object> objList = Lists.newArrayList(isarray);\n\t\t\tobjList.stream().flatMap(obj ->{\n\t\t\t\t//\t\t\t\t\tUnsagaMod.logger.trace(\"recipe\", input.getClass());\n\t\t\t\tList<RecipeItemSelector> rt = Lists.newArrayList();\n\t\t\t\tif(obj instanceof List){\n\t\t\t\t\t//\t\t\t\t\t\tUnsagaMod.logger.trace(\"shaped\", \"array\");\n\t\t\t\t\trt.addAll(convertListTypeObject(obj));\n\t\t\t\t}\n\t\t\t\tif(obj instanceof ItemStack){\n\t\t\t\t\t//\t\t\t\t\t\tUnsagaMod.logger.trace(\"shaped\", \"itemstack\");\n\t\t\t\t\tList<RecipeItemSelector> list = Lists.newArrayList(RecipeItemSelector.of((ItemStack)obj, null));\n\t\t\t\t\trt.addAll(list);\n\t\t\t\t}\n\n\t\t\t\t//\t\t\t\t\tif(objs!=null){\n\t\t\t\t//\t\t\t\t\t\tObject[] objarray = (Object[]) objs;\n\t\t\t\t//\t\t\t\t\t\treturn ListHelper.stream(objarray).map(new Function<Object,Tuple<ItemStack,OreDict>>(){\n\t\t\t\t//\n\t\t\t\t//\t\t\t\t\t\t\t@Override\n\t\t\t\t//\t\t\t\t\t\t\tpublic Tuple<ItemStack, OreDict> apply(Object input) {\n\t\t\t\t//\t\t\t\t\t\t\t\tUnsagaMod.logger.trace(\"shaped\", input);\n\t\t\t\t//\t\t\t\t\t\t\t\tif(input instanceof ItemStack){\n\t\t\t\t//\t\t\t\t\t\t\t\t\treturn Tuple.of((ItemStack)input,null);\n\t\t\t\t//\t\t\t\t\t\t\t\t}\n\t\t\t\t//\t\t\t\t\t\t\t\tif(input instanceof String){\n\t\t\t\t//\t\t\t\t\t\t\t\t\treturn Tuple.of(null, new OreDict((String) input));\n\t\t\t\t//\t\t\t\t\t\t\t\t}\n\t\t\t\t//\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t//\t\t\t\t\t\t\t}}\n\t\t\t\t//\t\t\t\t\t\t).getList();\n\t\t\t\t//\t\t\t\t\t}\n\n\t\t\t\treturn rt.stream();\n\t\t\t});\n\t\t}\n\t\tHSLib.logger.trace(\"recipeutil\", \"どのレシピにも合致しない?\");\n\t\treturn Lists.newArrayList();\n\t}",
"public void addCategory(String type) {\n\t\tif (type.equals(\"Cheese\")) {\n\t\t\taddIngredient(\"Pepperjack\");\n\t\t\taddIngredient(\"Mozzarella\");\n\t\t\taddIngredient(\"Cheddar\");\n\t\t}\n\t\tif (type.equals(\"Sauces\")) {\n\t\t\taddIngredient(\"Mayonnaise\");\n\t\t\taddIngredient(\"Baron Sauce\");\n\t\t\taddIngredient(\"Mustard\"); \n\t\t\taddIngredient(\"Ketchup\");\n\t\t}\n\t\tif (type.equals(\"Veggies\")) {\n\t\t\taddIngredient(\"Pickle\");\n\t\t\taddIngredient(\"Lettuce\");\n\t\t\taddIngredient(\"Tomato\");\n\t\t\taddIngredient(\"Onions\"); \n\t\t\taddIngredient(\"Mushrooms\");\n\t\t}\n\t}",
"public void chooseCategory(String category) {\n for (Category c : categories) {\n if (c.getName().equals(category)) {\n if (c.isActive()) {\n c.setInActive();\n } else {\n c.setActive();\n }\n }\n }\n for (int i = 0; i < categories.size(); i++) {\n System.out.println(categories.get(i).getName());\n System.out.println(categories.get(i).isActive());\n }\n }",
"private void getItemCategory(ShapeableImageView itemPhoto) {\n Log.d(TAG, \"getItemCategory: \");\n String category = item.getCategory();\n\n if (category.equals(\"Clothes\")) {\n itemPhoto.setImageResource(R.drawable.ic_clothes);\n return;\n }\n if (category.equals(\"Office supplies\")) {\n itemPhoto.setImageResource(R.drawable.ic_office_supplies);\n return;\n }\n if (category.equals(\"Medical equipment\")) {\n itemPhoto.setImageResource(R.drawable.ic_medical_equipment);\n return;\n }\n if (category.equals(\"Gaming\")) {\n itemPhoto.setImageResource(R.drawable.ic_gaming);\n return;\n }\n if (category.equals(\"Electronics\")) {\n itemPhoto.setImageResource(R.drawable.ic_electronics);\n return;\n }\n if (category.equals(\"Appliances\")) {\n itemPhoto.setImageResource(R.drawable.ic_appliances);\n return;\n }\n if (category.equals(\"Gift cards\")) {\n itemPhoto.setImageResource(R.drawable.ic_gift_cards);\n return;\n }\n if (category.equals(\"Lighting\")) {\n itemPhoto.setImageResource(R.drawable.ic_lighting);\n return;\n }\n if (category.equals(\"Food\")) {\n itemPhoto.setImageResource(R.drawable.ic_food);\n return;\n }\n if (category.equals(\"Cosmetic\")) {\n itemPhoto.setImageResource(R.drawable.ic_cosmetic);\n return;\n }\n if (category.equals(\"Games and Toys\")) {\n itemPhoto.setImageResource(R.drawable.ic_games_and_toys);\n return;\n }\n if (category.equals(\"Cellular\")) {\n itemPhoto.setImageResource(R.drawable.ic_cellular);\n return;\n }\n if (category.equals(\"Books\")) {\n itemPhoto.setImageResource(R.drawable.ic_books);\n return;\n }\n if (category.equals(\"Baby Supplies\")) {\n itemPhoto.setImageResource(R.drawable.ic_baby_supplies);\n return;\n }\n if (category.equals(\"Computers\")) {\n itemPhoto.setImageResource(R.drawable.ic_computers);\n return;\n }\n if (category.equals(\"Other\")) {\n itemPhoto.setImageResource(R.drawable.ic_other);\n return;\n }else {\n itemPhoto.setImageResource(R.drawable.ic_other);\n return;\n }\n }",
"private List<Category> extractTargets() {\n List<String> names = getNames(\"category\");\n CategorySelectAsyncTask task = new CategorySelectAsyncTask();\n CategoryMapper mapper = new CategoryMapper();\n task.setNames(names);\n List<Category> list = new ArrayList<>();\n try {\n list.addAll(mapper.to(task.execute().get()));\n } catch (ExecutionException | InterruptedException e) {\n Log.e(TAG, \"extractTargets: \" + e.getMessage(), e);\n }\n return list;\n }",
"@Override\n\tpublic List<Literature> searchCategory(String category) {\n\t\treturn null;\n\t}",
"public void setCategory(Category cat) {\n this.category = cat;\n }",
"public static void loopCategories() throws IOException {\n //If all of the categories haven't been checked yet check the response at the current index (count).\n if (count < CATEGORY_ARRAY_SIZE) {\n //If that response if equal to TRUE (1).\n if (currentUser.getSingleCategory(count) == TRUE) {\n //Adjust the start index.\n startIndex = count * LOCATIONS_PER_CATEGORY;\n //Call the locaitons view.\n Main.FxmlLoader(LOCATIONS_PATH);\n }\n //Otherwise increment count and check the next index recursively.\n else {\n count++;\n loopCategories();\n }\n }\n }",
"private Category classify() {\n Category category = null;\n if (name != null) {\n if (name.contains(\"potato\") || name.contains(\"apple\")) {\n category = Category.FOOD;\n } else if (name.contains(\"cloths\") || name.contains(\"pants\") || name.contains(\"shirt\")) {\n category = Category.CLOTHING;\n }\n }\n return category;\n }",
"List getCategoriesOfType(String typeConstant);",
"public abstract String getCategory();",
"public abstract String getCategory();",
"public List<Cvcategory> findAllCvcategories();",
"public Recipe getRecipe() {\r\n return recipe;\r\n }",
"public String getCategory();",
"public void setCategory(String category){\n this.category = category;\n }",
"@Test\n\tpublic void testGetAllResourcesByCategory() throws ResourceNotFoundException\n\t{\n\t\tLocalDate resDate = null;\n\t\t\n\t\tCategory cat = new Category();\n\t\tcat.setCatId(10);\n\t\tcat.setCatName(\"Clothing\");\n\t\t\n\t\tResource res = new Resource();\n\t\tres.setResId(10);\n\t\tres.setResDate(resDate);\n\t\tres.setCategory(cat);\n\t\tres.setResDescription(\"100% Cotton\");\n\t\tres.setResTitle(\"Shirt\");\n\t\tres.setResPrice(1000);\n\t\t\n\t\tList<Resource> resources = new ArrayList<>();\n\t\tresources.add(res);\n\t\tMockito.when(resourceRepository.findByCategory(10)).thenReturn(resources);\n\t\tList<Resource> actualResource = resourceService.getAllResourcesByCategory(10);\n\t\tassertEquals(10,actualResource.get(0).getCategory().getCatId());\n\t\t\n\t}",
"public static void displayRestaurants(Category category){\n ArrayList<Restaurant> restaurants = Restaurant.getCategorizedRestaurants(category.getCategory_id());\n for(int i = 0; i < restaurants.size(); i++){\n System.out.println(\"[\" + (i+1) + \"] \" + restaurants.get(i).getRestaurant_name());\n }\n\n }",
"public Set<String> getCategory(){return category;}",
"public List<Categorie> getAllCategories();",
"public Cursor getCatItems(String cat)\n {\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor res = db.rawQuery(\"Select * from products where category = '\"+cat+\"'\",null);\n return res;\n }",
"@Override\n\tpublic void addRecipes() {\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Core.materials, 1, MaterialsMeta.DYE_BROWN), \"coralBrown\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Core.materials, 1, MaterialsMeta.DYE_RED), \"coralRed\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Core.materials, 1, MaterialsMeta.DYE_YELLOW), \"coralYellow\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Items.dye, 1, Dye.LIGHT_BLUE), \"coralLightBlue\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Items.dye, 1, Dye.MAGENTA), \"coralMagenta\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Items.dye, 1, Dye.ORANGE), \"coralOrange\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Items.dye, 1, Dye.PINK), \"coralPink\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Items.dye, 1, Dye.PURPLE), \"coralPurple\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Items.dye, 1, Dye.GREY), \"coralGray\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Items.dye, 1, Dye.LIGHT_GREY), \"coralLightGray\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Core.materials, 1, MaterialsMeta.DYE_WHITE), \"coralWhite\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Core.materials, 1, MaterialsMeta.DYE_GREEN), \"plantKelp\", true);\n\t\t\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_BLUE), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_BRAIN), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_CANDYCANE), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_CUCUMBER), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_ORANGE), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_PINK), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_PURPLE), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_RED), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_GREY), new ItemStack(coral, 1, CoralMeta.CORAL_LIGHT_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_LIGHT_GREY), new ItemStack(coral, 1, CoralMeta.CORAL_WHITE), 5);\n\t\t\n\t\t//Kelp Wrap Recipe\n\t\tRecipeHelper.add9x9Recipe(new ItemStack(Core.food, 1, FoodMeta.KELP_WRAP), \"plantKelp\");\n\t\t\n\t\taddOceanChestLoot();\n\t}",
"Category selectCategory(String name);",
"void addRecipe(RecipeGroup rg)\r\n\t{\tthis.recipes.add(rg);\t}",
"public List<ProductCatagory> getAllCategory() throws BusinessException;",
"public Iterator findTasksOfCategory(String requestedCategory) {\n ArrayList<TodoItem> categoryList = new ArrayList<TodoItem>();\n // TODO: Add source code that will find and return all tasks for the requestedCategory\n Iterator iterator = todoItems.iterator();\n while(iterator.hasNext()) {\n TodoItem todoItem = (TodoItem)iterator.next();\n if(todoItem.getCategory().equals(requestedCategory)) {\n categoryList.add(todoItem);\n }\n }\n\n return categoryList.iterator();\n }",
"@Override\n\t\t\t\tpublic String getKey() {\n\t\t\t\t\treturn \"category\";\n\t\t\t\t}",
"private void getAnimalCategory() {\n mProgressBar.setVisibility(View.VISIBLE);\n VolleyInvokeWebService volleyClient = new VolleyInvokeWebService(this, VolleyInvokeWebService.JSON_TYPE_REQUEST, this, Request.Method.GET);\n volleyClient.hitWithOutTokenService(Constants.GET_ANIMAL_CATEGORY, null, GET_ANIMAL_CATEGORY_TAG);\n }",
"List<SubCategory> getSubCategory(Category category) throws DataBaseException;",
"public final void readCategoria() {\n cmbCategoria.removeAllItems();\n cmbCategoria.addItem(\"\");\n categoryMapCategoria.clear();\n AtividadePreparoDAO atvprepDAO = new AtividadePreparoDAO();\n for (AtividadePreparo atvprep : atvprepDAO.readMotivoRetrabalho(\"Categoria\")) {\n Integer id = atvprep.getMotivo_retrabalho_id();\n String name = atvprep.getMotivo_retrabalho();\n cmbCategoria.addItem(name);\n categoryMapCategoria.put(id, name);\n }\n }",
"List<Categorie> findAll();",
"@Test\n public void addRecipeCategory_DatabaseUpdates(){\n int returnedRecipe = testDatabase.addRecipe(testRecipe);\n int returnedCategory = testDatabase.addRecipeCategory(recipeCategory);\n ArrayList<RecipeCategory> allCategories = testDatabase.getAllRecipeCategories(returnedRecipe);\n RecipeCategory retrieved = new RecipeCategory();\n if(allCategories != null){\n for(int i = 0; i < allCategories.size(); i++){\n if(allCategories.get(i).getKeyID() == returnedCategory){\n retrieved = allCategories.get(i);\n }\n }\n }\n assertEquals(\"addRecipeDirection - Correct RecipeID\", returnedRecipe, retrieved.getRecipeID());\n assertEquals(\"addRecipeDirection - Correct CategoryID\", categoryID, retrieved.getCategoryID());\n }",
"public List<Category> findAll();",
"public List<Recipe> getRecipes()\n {\n return _recipes;\n }",
"public Recipe getRecipe() {\n return recipe;\n }",
"public ArrayList<Item> getCardsByCategory(String category)\n {\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor res = db.rawQuery( \"SELECT * FROM \" + CARDS_TABLE_NAME +\n \" WHERE \" + CARDS_COLUMN_CATEGORY + \" LIKE '\" + category + \"' \" +\n \"ORDER BY \" + CARDS_COLUMN_NAME + \" COLLATE NOCASE\", null );\n res.moveToFirst();\n\n while(res.isAfterLast() == false){\n card = new Item();\n card.setItemId(res.getInt(res.getColumnIndex(CARDS_COLUMN_ID)));\n card.setItemName(res.getString(res.getColumnIndex(CARDS_COLUMN_NAME)));\n card.setItemCategory(res.getString(res.getColumnIndex(CARDS_COLUMN_CATEGORY)));\n card.setItemFormat(res.getString(res.getColumnIndex(CARDS_COLUMN_FORMAT)));\n card.setItemNumber(res.getString(res.getColumnIndex(CARDS_COLUMN_NUMBER)));\n items.add(card);\n res.moveToNext();\n }\n return items;\n }",
"String getCategoria();",
"@Test\n public void getAllRecipeCategories_ReturnsNull(){\n int returned = testDatabase.addRecipe(testRecipe);\n testDatabase.deleteRecipeCategory(returned);\n assertEquals(\"getAllRecipeCategories - Empty List Returned\", null, testDatabase.getAllRecipeCategories(returned));\n }",
"@Before\n\tpublic void buildCategories()\n\t{\n\t\t// make a root node for the tree (i.e. like a franchise in the CR data set\n\t\tCategoryNode rootParent = null;\n\t\taRootCategory = new CategoryNode(\"rootCategoryId\", \"rootCategoryName\", rootParent);\n\t\t\n\t\t// Add a subtree containing a singleton. The singleton should get removed\n\t\tCategoryNode singleton = new CategoryNode(\"singletonId\", \"singletonName\", aRootCategory);\n\t\taRootCategory.addSubcategory(singleton);\n\t\tCategoryNode childOfSingleton = new CategoryNode(\"childOfSingletonId\", \"childOfSingletonName\", singleton);\n\t\tsingleton.addSubcategory(childOfSingleton);\n\t\tCategoryNode leaf0 = new CategoryNode(\"leaf0Id\", \"leaf0Name\", childOfSingleton);\n\t\tchildOfSingleton.addSubcategory(leaf0);\n\t\tCategoryNode leaf1 = new CategoryNode(\"leaf1Id\", \"leaf1Name\", childOfSingleton);\n\t\tchildOfSingleton.addSubcategory(leaf1);\n\t\t\n\t\t// Add a subtree will have similar leaves, so the subtree should be turned into an equivalence class\n\t\tCategoryNode equivalenceClass = new CategoryNode(\"equivalenceClassId\", \"equivalenceClassName\", aRootCategory);\n\t\taRootCategory.addSubcategory(equivalenceClass);\n\t\tCategoryNode similarNode0 = new CategoryNode(\"similarNode0Id\", \"similarNode0Name\", equivalenceClass);\n\t\tequivalenceClass.addSubcategory(similarNode0);\n\t\tCategoryNode similarNode1 = new CategoryNode(\"similarNode1Id\", \"similarNode1Name\", equivalenceClass);\n\t\tequivalenceClass.addSubcategory(similarNode1);\n\t\t\n\t\t// This subtree has dissimilar leaves, so the subtree shouldn't be turned into an equivalence class\n\t\tCategoryNode nonEquivalenceClass = new CategoryNode(\"nonEquivalenceClassId\", \"nonEquivalenceClassName\", aRootCategory);\n\t\taRootCategory.addSubcategory(nonEquivalenceClass);\n\t\tCategoryNode dissimilarNode0 = new CategoryNode(\"dissimilarNode0Id\", \"dissimilarNode0Name\", nonEquivalenceClass);\n\t\tnonEquivalenceClass.addSubcategory(dissimilarNode0);\n\t\tCategoryNode dissimilarNode1 = new CategoryNode(\"dissimilarNode1Id\", \"dissimilarNode1Name\", nonEquivalenceClass);\n\t\tnonEquivalenceClass.addSubcategory(dissimilarNode1);\n\t}",
"List<Category> findAll();",
"Category getCategoryByName(String categoryName);",
"@RequestMapping(method = RequestMethod.GET, value = \"/recipes\", produces = MediaType.APPLICATION_JSON_VALUE)\n public RecipesDescriptor getRecipes() {\n final Stream<Recipe> stream = StreamSupport.stream(this.recipeRepository.findAll().spliterator(), false);\n\n final List<Recipe> recipes = stream.collect(Collectors.toList());\n return new RecipesDescriptor(recipes);\n }",
"public List<Question> getCategory(String category) {\n List<Question> questions = loadQuestions(\"quiz/\" + category + \".txt\");\n return questions;\n }",
"public int getCategory(){\n\t\treturn this.cat;\n\t}",
"@Override\n\tpublic Iterable<Category> findAllCategory() {\n\t\treturn categoryRepository.findAll();\n\t}",
"default List<String> getCategory(String category) {\n return new ArrayList<>(getCategories().get(category.toLowerCase()).values());\n }",
"public Category getCategory();",
"@Override\n public String getCategory() {\n return category;\n }",
"public List<String> getCategories();",
"@Override\n\tpublic List<Category> findcategory() {\n\t\t\n\t\tConnection conn=null;\n\t\tPreparedStatement pst=null;\n\t\tResultSet rs=null;\n\t\t\n\t\tList<Category> list=new ArrayList<Category>();\n\t\ttry {\n\t\t\tconn=DBUtils.getConnection();\n\t\t\tpst=conn.prepareStatement(\"select id,parent_id,name,status,sort_order,create_time,update_time from category\");\n\t\t\t\n\t\t\trs=pst.executeQuery();\n\t\t\t\n\t\t\twhile (rs.next()) {\n\t\t\t\tCategory category=new Category(rs.getInt(\"id\"),rs.getInt(\"parent_id\"),rs.getString(\"name\"),rs.getInt(\"status\"),rs.getInt(\"sort_order\"),rs.getDate(\"create_time\"),rs.getDate(\"update_time\"));\n\t\t\t\tlist.add(category);\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\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\ttry {\n\t\t\t\tDBUtils.Close(conn, pst, rs);\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t\t\n\t\t\n\n\t}",
"public static ArrayList<String> catToCateg(String categ) throws Exception {\n\n\t\tArrayList<String> list = new ArrayList<String>();\n\n\t\tif (categOffsetIndex == null) {\n\t\t\tSystem.out.println(\"categ loading index...\");\n\t\t\tloadCategIndex();\n\t\t\tSystem.out.println(\"categ index loaded !!!\");\n\t\t}\n\n\t\tif (categOffsetIndex.get(categ) != null) {\n\t\t\tFile file = new File(basedir + \"categHierarchy\");\n\t\t\tRandomAccessFile rFile = new RandomAccessFile(file, \"r\");\n\t\t\t// System.out.println(categOffsetIndex.get(categ));\n\t\t\trFile.seek(categOffsetIndex.get(categ));\n\t\t\tString temp = rFile.readLine();\n\t\t\trFile.close();\n\t\t\tString arr[] = temp.split(\"\\t\");\n\n\t\t\tString temp1 = arr[1].substring(1, arr[1].length() - 1);\n\t\t\tString arr1[] = temp1.split(\",\");\n\n\t\t\tfor (String key : arr1) {\n\t\t\t\tlist.add(key.trim());\n\t\t\t}\n\t\t\trFile.close();\n\t\t\treturn list;\n\n\t\t}\n\n\t\telse {\n\n\t\t\treturn null;\n\t\t}\n\n\t}",
"public String categoryList(CategoryDetails c);",
"public void addRecipe(Recipe recipe){\n //recipes.add(recipe);\n if(recipe != null){\n recipes.add(recipe);\n }\n }",
"public List<CategoryPath> classify(AodnTerm term) {\n CategoryPath termPath = new CategoryPath(getCategoryLabel(term)); // Category path for this term\n List<CategoryPath> categoryPaths = getPathsForVocabularyTerm(term, termPath);\n\n if (categoryPaths.size() == 0) {\n logger.warn(String.format(\"No category paths found for uri='%s', prefLabel='%s', vocabulary='%s'\",\n term.getUri(), term.getPrefLabel(), vocabularyThesaurus.getThesaurusTitle()));\n }\n\n return categoryPaths;\n }",
"void addCategory(Category category);",
"List<ConfigCategory> getCategoryOfTypeAndDisplayName(String typeConstant, String catDisplayName);",
"@Override\n public void onCategoryClicked(View itemView) {\n int position = mRecyclerView.getChildLayoutPosition(itemView);\n\n String mCategory = CategoryData.CATEGORY_LIST[position].toLowerCase();\n\n String mDifficulty = \"medium\";\n\n // select a random difficulty level\n Random random = new Random();\n switch(random.nextInt(3)) {\n case 0:\n mDifficulty = \"easy\";\n break;\n case 1:\n mDifficulty = \"medium\";\n break;\n case 2:\n mDifficulty = \"hard\";\n break;\n }\n\n // Select a random word from the assigned category and difficulty\n int resId = FileHelper.getStringIdentifier(getActivity(), mCategory + \"_\" + mDifficulty, \"raw\");\n mWord = FileHelper.selectRandomWord(getActivity(), resId);\n\n // set the edit text\n mEditText.setText(mWord);\n }",
"@Test\n public void typeCategoriesTest() {\n final Category cardio = Category.CARDIO;\n final Category core = Category.CORE;\n final Category fullBody = Category.FULL_BODY;\n final Type endurance = Type.ENDURANCE;\n\n final List<Category> myCategories = new ArrayList<>();\n\n myCategories.add(cardio);\n myCategories.add(core);\n assertEquals(\"Categories of Endurance Type\", myCategories, endurance.getCategories());\n\n myCategories.add(fullBody);\n assertNotEquals(\"Not all the Categories are of Endurance Type\", myCategories, endurance.getCategories());\n\n }",
"Recipe getRecipe(CharSequence query);",
"public List<Category> getListCategory() {\n List<Category> list = new ArrayList<>();\n SQLiteDatabase sqLiteDatabase = dbHelper.getWritableDatabase();\n\n Cursor cursor = sqLiteDatabase.rawQuery(\"SELECT * FROM Category\", null);\n while (cursor.moveToNext()) {\n int id =cursor.getInt(0);\n\n Category category = new Category(id, cursor.getString(cursor.getColumnIndex(\"Name\")), cursor.getString(cursor.getColumnIndex(\"Image\")));\n Log.d(\"TAG\", \"getListCategory: \" + category.getId());\n list.add(category);\n }\n cursor.close();\n dbHelper.close();\n return list;\n }",
"List<Category> getAllCategories();",
"public String getCategory() {\n return this.category;\n }",
"@Override\n\tpublic List<Category> getCategoryByKey(String mc) {\n\t\treturn dao.getCategoryByKey(mc);\n\t}",
"@Override\n\tpublic void initRecipes()\n\t{\n\n\t}",
"public List<String> getConceptByCategory(String category)\n\t{\n\t\tList<String> concept = dao.getConceptByCategory(category);\n\t\treturn concept;\n\t}",
"public void onCategoryClicked(String category){\n\t\tfor(int i = 0 ; i < mData.getStatistics().size(); i++){\r\n\t\t\tif(mData.getStatistics().get(i).getCategory().equals(category)){\r\n\t\t\t\tif(mData.getStatistics().get(i).getDueChallenges() == 0){\r\n\t\t\t\t\tmGui.showToastNoDueChallenges(mData.getActivity());\r\n\t\t\t\t} else {\r\n\t\t\t\t\t//Start activity challenge (learn session) with category and user \t\r\n\t\t\t\t\tNavigation.startActivityChallenge(mData.getActivity(), mData.getUser(), category);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t\t\t\r\n\t}",
"@Test\r\n public void testCategory() {\n Category createdCategory1 = createCategory(getRootCategory());\r\n\r\n // verify if created\r\n Category newRoot = getBuilder(\"/category/1\").get(Category.class);\r\n Assert.assertTrue(newRoot.contains(createdCategory1.getId()));\r\n\r\n // create a new category\r\n Category createdCategory2 = createCategory(getRootCategory());\r\n\r\n // verify if created\r\n Category newRoot2 = getBuilder(\"/category/1\").get(Category.class);\r\n Assert.assertTrue(newRoot2.contains(createdCategory1.getId()));\r\n Assert.assertTrue(newRoot2.contains(createdCategory2.getId()));\r\n\r\n Category actualCat2 = getBuilder(\"/category/\" + createdCategory2.getId()).get(Category.class);\r\n\r\n Dimension saved1 = createDimension();\r\n Category catHasDim = getBuilder(\"/category/add-dimension/\" + createdCategory1.getId() + \"/\" + saved1.getId()).post(Category.class, \" \");\r\n Assert.assertTrue(catHasDim.hasDimension(saved1.getId()));\r\n\r\n Dimension saved2 = createDimension();\r\n Category cat3 = getBuilder(\"/category/add-dimension/\" + createdCategory1.getId() + \"/\" + saved2.getId()).post(Category.class, \" \");\r\n Assert.assertTrue(cat3.hasDimension(saved1.getId()));\r\n Assert.assertTrue(cat3.hasDimension(saved2.getId()));\r\n\r\n // remove dim1\r\n getBuilder(\"/dimension/remove/\" + saved1.getId()).post(\" \");\r\n\r\n try {\r\n getBuilder(\"/dimension/\" + saved1.getId()).get(String.class);\r\n Assert.assertTrue(false);\r\n } catch (UniformInterfaceException e) {\r\n Assert.assertEquals(ServiceError.NotFound.getErrorCode(), e.getResponse().getStatus());\r\n }\r\n\r\n Category cat4 = getBuilder(\"/category/\" + createdCategory1.getId()).get(Category.class);\r\n Assert.assertFalse(cat4.hasDimension(saved1.getId()));\r\n }",
"public void setCategory(String category) {\n this.category = category;\n }",
"public void setCategory(String category) {\n this.category = category;\n }",
"public void setCategory(String category) {\n this.category = category;\n }",
"public void setCategory(String category) {\n this.category = category;\n }",
"public void setCategory(String category) {\n this.category = category;\n }",
"List<Category> lisCat() {\n return dao.getAll(Category.class);\n }",
"public void UpdateCategoriesCheckRepeats(){\n dbHandler.OpenDatabase();\n ArrayList<Category> CategoryObjectList = dbHandler.getAllCategory();\n // Create Category String List\n ArrayList<String> CategoryStringList = new ArrayList<>();\n for (int i = 0; i < CategoryObjectList.size(); i++) {\n CategoryStringList.add( CategoryObjectList.get(i).getName() );\n }\n\n Category category;\n // cycle through object list\n for (int i = 0; i < CategoryObjectList.size(); i++) {\n category = CategoryObjectList.get(i);\n CategoryObjectList.remove(i);\n CategoryStringList.remove(i); // remove so it doesn't find itself\n\n // find name in Category List\n int index = CategoryStringList.indexOf( category.getName() );\n\n if (index == -1){\n CategoryObjectList.add(category);\n CategoryStringList.add(category.getName());\n }else{\n CategoryObjectList.get(index).increaseCounter( category.getCounter() );\n CategoryObjectList.get(index).increaseAmount( category.getAmount() );\n i--;\n }\n }\n\n // Add back to database\n dbHandler.deleteAllCategory();\n for (int i = 0; i < CategoryObjectList.size(); i++) {\n dbHandler.addCategory(CategoryObjectList.get(i));\n }\n\n dbHandler.CloseDatabase();\n }",
"List<Category> selectCategoryList();",
"public void setCategory(String cat) {\t//TODO\n\t\tcategory = cat;\n\t}"
]
| [
"0.66475296",
"0.63849795",
"0.63177955",
"0.62229526",
"0.59414214",
"0.5931748",
"0.5925992",
"0.5894831",
"0.5877931",
"0.5828168",
"0.5816349",
"0.57722056",
"0.5750304",
"0.5672554",
"0.5670553",
"0.5668514",
"0.5654459",
"0.5631286",
"0.56305623",
"0.5576489",
"0.5574109",
"0.556667",
"0.55510944",
"0.55510944",
"0.5546036",
"0.5498183",
"0.5484425",
"0.5478717",
"0.5473932",
"0.5443414",
"0.54315317",
"0.54226726",
"0.54221606",
"0.54215544",
"0.5420067",
"0.5420067",
"0.54192334",
"0.5411579",
"0.54057175",
"0.5402301",
"0.53990215",
"0.53959775",
"0.5388143",
"0.5384952",
"0.53809893",
"0.53807575",
"0.5363153",
"0.5344322",
"0.5334597",
"0.53294164",
"0.53276414",
"0.53275335",
"0.5327318",
"0.5326882",
"0.5325864",
"0.5311008",
"0.53095376",
"0.53076667",
"0.53042686",
"0.52970415",
"0.5293746",
"0.5291481",
"0.52881396",
"0.52838236",
"0.5280826",
"0.52706057",
"0.52684426",
"0.5266607",
"0.52648693",
"0.52637357",
"0.52607995",
"0.5256831",
"0.52559",
"0.5253176",
"0.52489424",
"0.52456987",
"0.52453566",
"0.5242517",
"0.52387106",
"0.5232776",
"0.5228794",
"0.52284414",
"0.5227556",
"0.52271575",
"0.52238286",
"0.5213844",
"0.52135015",
"0.5211185",
"0.5210809",
"0.51934123",
"0.51918644",
"0.51909846",
"0.51909846",
"0.51909846",
"0.51909846",
"0.51909846",
"0.51855373",
"0.5179766",
"0.51791096",
"0.5178911"
]
| 0.5754103 | 12 |
We will never update a message, we want the user to think before write ;) | @Override
public DomainMessage update(DomainMessage entity) {
throw new UnsupportedOperationException();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract void updateMessage(String msg);",
"public abstract void update(Message message);",
"@Override\r\n public void update(String message) {\r\n send(message);\r\n }",
"@Override\n\tpublic MessagePojo updatemessage(MessagePojo message) {\n\t\treturn null;\n\t}",
"public void saveChanges() throws MessagingException {\n/* 546 */ throw new IllegalWriteException(\"POP3 messages are read-only\");\n/* */ }",
"@Override\n\tpublic boolean update(Message entity) throws SQLException {\n\t\treturn false;\n\t}",
"protected void sendMessage(String msg) {\n message = msg; \n newMessage = true;\n }",
"public void writeMassege() {\n m = ChatClient.message;\n jtaChatHistory.setText(\"You : \" + m);\n //writeMassageServer();\n }",
"public void updateSendingMessage(String message, boolean isMe) {\n\n\n Log.v(\"adsl\", \"came here\");\n\n final MessageModel sendingMessage = new MessageModel();\n sendingMessage.setMessage(message);\n sendingMessage.setTime(\"8:57Pm\"); //set current time in form of database format\n sendingMessage.setMe(isMe);\n\n if (isMe == true) {\n\n\n if (!messageBox.getText().toString().trim().matches(\"\"))\n\n {\n doScreenUpdate(sendingMessage);\n }\n\n\n } else\n\n {\n\n doScreenUpdate(sendingMessage);\n\n\n }\n\n\n }",
"void update(T message);",
"void beforeSendMessage(Message message, MutationBatch mb);",
"@Override\r\n\tvoid updateMessage(String msg) {\n\t\tSystem.out.println(msg);\r\n\t}",
"private void updateDatabase(String messageText)\n {\n HashMap<String, ChatData> mapThis = new HashMap<>();\n ChatData thisData = new ChatData(thisUsername, otherUsername, otherUid, messageText, thisPhoto, otherPhoto, new Date());\n thisData.setRead(true);\n mapThis.put(otherUid, thisData);\n FirebaseFirestore.getInstance().collection(\"chats\").document(thisUid).set(mapThis, SetOptions.merge());\n \n HashMap<String, ChatData> mapOther = new HashMap<>();\n ChatData otherData = new ChatData(otherUsername, thisUsername, thisUid, messageText, otherPhoto, thisPhoto, new Date());\n mapOther.put(thisUid, otherData);\n FirebaseFirestore.getInstance().collection(\"chats\").document(otherUid).set(mapOther, SetOptions.merge());\n \n Map<String, String> map = new HashMap<>();\n map.put(\"message\", messageText);\n map.put(\"user\", thisUsername);\n reference.push().setValue(map);\n messageArea.setText(\"\");\n \n new Notification(otherUid, thisUsername, Notification.NOTIFICATION_CHAT, messageText, this);\n }",
"void append(final String msg) {\n Preconditions.checkState(isOpen);\r\n\r\n message.append(msg);\r\n isDirty = true;\r\n }",
"@Override\r\n\tpublic boolean handleMessage(Message msg) {\n\t\treturn false;\r\n\t}",
"private void sendMessage() {\n Log.d(\"FlashChat\", \"I sent something\");\n // get the message the user typed\n String userInput = mInputText.getText().toString();\n\n if (! (userInput.length() == 0)){\n\n InstantMessage message = new InstantMessage(userInput, mUserMe);\n // push the message to Firebase DB\n mDatabaseReference.child(mLocation).push().setValue(message);\n mInputText.setText(\"\");\n }\n\n }",
"@Override\n\tpublic void reSendMessage(TransactionMessage transactionMessage) {\n\t\t\n\t}",
"@Override\n\tpublic void msgAtFrige() {\n\t\t\n\t}",
"@Override\n\tpublic void sendMessage() {\n\t\t\n\t}",
"public synchronized void write(String message) {\n\n /* RULE: empty, eligible for WRITE only; !empty, eligible for READ only :\n for write process to proceed, need message tray empty, so while !empty,\n make this thread sleep (the READER thread) so the other thread will run\n and read/empty out the message tray */\n\n while(!empty) { // loop while not empty (cant write)\n // DEADLOCK FIX\n try {\n wait(); // an Object method, not Thread's\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n empty = false; // i receive a msg from Writer, wrote it in my data, so now message tray is now not empty\n this.message = message;\n notifyAll(); // executed only after we have updated 'empty'\n }",
"private void saveOrUpdateNewMessageRealm(_Message message) {\r\n\r\n //realm required to submit from separate thread. IF I do operation in ui thread,\r\n //I need .allowQueriesOnUiThread(true), that's no need in my case\r\n executor.execute(() -> {\r\n // use Realm on background thread\r\n _RealmController.insertOrUpdateNewMessage(message);\r\n });\r\n }",
"private void handleMessage (Message message, Update update){\r\n\t\tSendMessage sendMessage = new SendMessage();\r\n\t\tLong chatId = update.getMessage().getChatId();\r\n\t\tif (isPolling == true){//Si el comando de la encuesta ha sido pulsado, modo encuesta...\t\t\t\r\n\t\t\tif (haveQuestion == false){//Si es falso todavia no se ha asignado la pregunta...\r\n\t\t\t\tpoll.setQuestion(message.getText());//Asignamos\tla pregunta.\t\t\t\r\n\t\t\t\tsendMessage.setChatId(chatId);\r\n\t\t\t\tsendMessage.setParseMode(Poll.parseMode);\r\n\t\t\t\tsendMessage.setText(BotConfig.POLL_QUESTION_STRING+ message.getText() +BotConfig.POLL_FIRST_ANSWER_STRING);\r\n\t\t\t\thaveQuestion = true;//Marcamos que hay pregunta.\r\n\t\t\t} else {//En este estado tenemos la pregunta, asignamos las respuestas.\r\n\t\t\t\tpoll.setAnswers(message.getText());\t\t\t\t\r\n\t\t\t\tsendMessage.setChatId(chatId);\r\n\t\t\t\tsendMessage.setText(BotConfig.POLL_ANSWER_STRING);\r\n\t\t\t}\t\t\t\r\n\t\t} else if(update.getMessage().getFrom().getId() != null){//Si el id del usuario no es null...\r\n\t\t\tInteger id = update.getMessage().getFrom().getId();\r\n\t\t\tif (id == BotConfig.DEV_ID){//Si es mi id...\r\n\t\t\t\tsendMessage.setChatId(chatId);\r\n\t\t\t\tsendMessage.setText(BotConfig.DEV_WORDS);//Mensaje personalizado...xD\r\n\t\t\t}\t\r\n\t\t} else {//Sino respondemos con el mismo texto enviado por el usuario.\r\n\t\t\tsendMessage.setChatId(chatId);\r\n\t\t\tsendMessage.setText(update.getMessage().getText());\r\n\t\t} \t\t\r\n try { \t\r\n execute(sendMessage);//Enviamos mensaje. \r\n } catch (TelegramApiException e) {\r\n \tBotLogger.error(LOGTAG, e);//Guardamos mensaje y lo mostramos en pantalla de la consola.\r\n e.printStackTrace();\r\n }\r\n\t}",
"private void writeMessage(Message message) throws IOException {\n Message.Command temp = message.getCommand();\n if (temp != Message.Command.GET_RESERVED && temp != Message.Command.GET_AVAILABLE) {\n connectionLoggerService.add(\"Bank : \" + message.toString());\n }\n objectOutputStream.reset();\n objectOutputStream.writeObject(message);\n }",
"public final void manageMessage(Message message)\n\t{\n\t\tif(message.getText() != null)\n\t\t{\n\t\t\ttextMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getAudio() != null)\n\t\t{\n\t\t\taudioMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getDocument() != null)\n\t\t{\n\t\t\tdocumentMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getPhoto() != null)\n\t\t{\n\t\t\tphotoMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getSticker() != null)\n\t\t{\n\t\t\tstickerMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getVideo() != null)\n\t\t{\n\t\t\tvideoMessage(message);\n\t\t\treturn;\n\t\t}\n\n\t\tif(message.getVideoNote() != null)\n\t\t{\n\t\t\tvideoNoteMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getVoice() != null)\n\t\t{\n\t\t\tvoiceMessage(message);\n\t\t\treturn;\n\t\t}\n\t\tif(message.getContact() != null)\n\t\t{\n\t\t\tcontactMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getLocation() != null)\n\t\t{\n\t\t\tlocationMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getVenue() != null)\n\t\t{\n\t\t\tvenueMessage(message);\n\t\t\treturn;\n\t\t}\n\n\t\tif (message.getDice() != null)\n\t\t{\n\t\t\tdiceMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getNewChatMember() != null)\n\t\t{\n\t\t\tnewChatMemberMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getNewChatMembers() != null)\n\t\t{\n\t\t\tnewChatMembersMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getLeftChatMember() != null)\n\t\t{\n\t\t\tleftChatMemberMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getPinned_message() != null)\n\t\t{\n\t\t\tpinnedMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getNewChatTitle() != null)\n\t\t{\n\t\t\tnewChatTitleMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getNewChatPhoto() != null)\n\t\t{\n\t\t\tnewChatPhotoMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.GetDeleteChatPhoto())\n\t\t{\n\t\t\tgroupChatPhotoDeleteMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.GetGroupChatCreated())\n\t\t{\n\t\t\tgroupChatCreatedMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getGame() != null)\n\t\t{\n\t\t\tgameMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getSuccessfulPayment() != null)\n\t\t{\n\t\t\tsuccessfulPaymentMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getInvoice() != null)\n\t\t{\n\t\t\tinvoiceMessage(message);\n\t\t\treturn;\n\t\t}\n\t}",
"@Override\r\n\tpublic void sendMessage(String message) {\n\t\t\r\n\t}",
"void onUpdate(Message message);",
"void notifyWrite();",
"@Override\n public void onRead() {\n /*\n * It should be an error that the remote send something before we\n * pre-write.\n */\n throw new IllegalStateException();\n }",
"static synchronized void SendMessage(String message, ClientHandler user, boolean same) throws IOException\r\n {\r\n String mes = message;\r\n if(!same)\r\n mes = user.username + \": \" + mes;\r\n //System.out.println(mes);\r\n\r\n chatLogWriter.write(mes + \"\\n\");\r\n chatLogWriter.flush();\r\n\r\n for (ClientHandler ch : users)\r\n {\r\n if(!ch.equals(user))\r\n ch.WriteCypherMessage(mes);\r\n else if(same)\r\n ch.WriteCypherMessage(message);\r\n }\r\n }",
"@Override\n\tpublic boolean updateMsgAsRead(int id) {\n\t\tMessage message = msgdao.findOne(id);\n\t\tmessage.setStatus(true);\n\t\treturn msgdao.update(message);\n\t}",
"public void sendMessage() {\n String userMessage = textMessage.getText();\n if (!userMessage.isBlank()) {//проверяю а есть ли что то в текстовом поле\n textMessage.clear();//очищаю текстовое поле на форме\n\n //пока оставлю\n //sb.append(userMessage).append(\"\\n\");\n\n //в общее поле добавляю сообщение\n areaMessage.appendText(userMessage+\"\\n\");\n }\n\n }",
"private void b_sendActionPerformed(java.awt.event.ActionEvent evt) { \r\n\t\tString nothing = \"\";\r\n\t\tif ((b_sendText.getText()).equals(nothing)) {\r\n\t\t\tb_sendText.setText(\"\");\r\n\t\t\tb_sendText.requestFocus();\r\n\t\t}\r\n\t\telse {\r\n\t\t\ttry {\r\n\t\t\t\ttellEveryone(\"Server\" + \":\" + b_sendText.getText() + \":\" + \"Chat\");\r\n\t\t\t\tPrint_Writer.flush(); // flushes the buffer\r\n\t\t\t} catch (Exception ex) {\r\n\t\t\t}\r\n\t\t\tb_sendText.setText(\"\");\r\n\t\t\tb_sendText.requestFocus();\r\n\t\t}\r\n\r\n\t\tb_sendText.setText(\"\");\r\n\t\tb_sendText.requestFocus();\r\n\r\n\t}",
"private void updateChat() throws SQLException{\n DBConnect db = DBConnect.getInstance();\n ArrayList<String> messages = db.getChat(selectedCustomer.getChat_id());\n chat.getItems().clear();\n for(String mess :messages){\n chat.getItems().add(mess);\n }\n }",
"private static void msg(Object msg) {\n msg(msg, true);\n }",
"@Override\n public boolean sendMessage(ChatMessage chatMessage){\n return true;\n }",
"void messageSent();",
"public void tellEveryone(String message) \r\n\t{\r\n\t\tIterator it = Output_Streams_Client.iterator();\r\n\t\twhile (it.hasNext()) \r\n\t\t{\r\n\t\t\ttry \r\n\t\t\t{\r\n\t\t\t\tPrintWriter writer = (PrintWriter) it.next();\r\n\t\t\t\twriter.println(message);\r\n\t\t\t\tChat.append(\"Sending : \" + message + \"\\n\");\r\n\t\t\t\twriter.flush();\r\n\t\t\t\tChat.setCaretPosition(Chat.getDocument().getLength());\r\n\r\n\t\t\t} \r\n\t\t\tcatch (Exception ex) \r\n\t\t\t{\r\n\t\t\t\tChat.append(\"Mistake to tell everyone \\n\");\r\n\t\t\t}\r\n\t\t} \r\n\t}",
"@Override\n public void publishAndUpdate(MessageEntity msg) {\n if (mapper.updateIsPublished(msg.getMessageId(), MessageIsPublished.NO.val, MessageIsPublished.YES.val) == 1) {\n messagingService.send(MessagingParam.builder()\n .payload(msg.getPayload())\n .exchange(msg.getExchange())\n .routingKey(msg.getRoutingKey())\n .deliveryMode(MessageDeliveryMode.NON_PERSISTENT)\n .messagePostProcessor(new HeaderMessagePostProcessor(msg))\n .build());\n }\n }",
"boolean editMessage(int roomId, long messageId, String updatedMessage) throws RoomNotFoundException, RoomPermissionException, IOException;",
"protected boolean processPersonalTell(String username, String titles, String message){return false;}",
"public boolean SendingMessage() {\n \t\t\treturn false;\n \t\t}",
"@Override\n\tpublic int saveAndSendMessage(TransactionMessage transactionMessage) {\n\t\treturn 0;\n\t}",
"@Override\n public void onWrite() {\n onChannelPreWrite();\n }",
"private void handleWrite(SelectionKey key, String message, SSLClientSession session) throws IOException {\n\t\t\tSSLSocketChannel ssl_socket_channel = session.getSSLSocketChannel();\n\t\t\t\n\t\t\tByteBuffer out_message = ssl_socket_channel.getAppSendBuffer();\n\t\t\t\n\t\t\tif(message != null) \n\t\t\t\tout_message.put(message.getBytes());\n\t\t\t\n//\t\t\tOutputHandler.println(\"Server: writing \"+new String(out_message.array(), 0, out_message.position()));\n\t\t\tint count = 0;\n\t\t\t\n\t\t\twhile (out_message.position() > 0) {\n\t\t\t\tcount = ssl_socket_channel.write();\n\t\t\t\tif (count == 0) {\n//\t\t\t\t\tOutputHandler.println(\"Count was 0.\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n//\t\t\t\telse {\n//\t\t\t\t\tOutputHandler.println(\"Count was \"+count);\n//\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (out_message.position() > 0) {\n\t\t\t\t// short write:\n\t\t\t\t// Register for OP_WRITE and come back here when ready\n\t\t\t\tkey.interestOps(key.interestOps() | SelectionKey.OP_WRITE);\n\t\t\t\t\n\t\t\t\tsession.rewrite = true;\n\t\t\t} else {\n\t\t\t\tif(session.out_messages.isEmpty()) { \n\t\t\t\t\t// Write succeeded, don�t need OP_WRITE any more\n\t\t\t\t\tkey.interestOps(key.interestOps() & ~SelectionKey.OP_WRITE);\n\t\t\t\t} \n\t\t\t\t\n\t\t\t\tsession.rewrite = false;\n\t\t\t}\n\t\t}",
"public void updateMessage(Message message){\n Tag Tag = null;\n db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(databaseValues.STORY_COLUMN_NAME2, message.getMessage());\n values.put(databaseValues.STORY_COLUMN_NAME3, message.getMessageType());\n values.put(databaseValues.STORY_COLUMN_NAME4, message.getPicture());\n db.update(databaseValues.TABLE_NAME3,values,\"Username=?\",new String[]{message.username});\n }",
"public Message updateMessage(Message message){\n Message existeMessage= repo.findById(message.getIdMessage()).orElse(null);\n existeMessage.setMessageText(message.getMessageText());\n return repo.save(existeMessage); \n }",
"private void updateDatabase(users.Message msg, DatabaseConnection dc) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"INSERT into \" + this.messagesTable + \" \");\n\t\tsb.append(\"(id, type, datesent, timesent, senderid, receiverid, opened, replied, subject, body) \");\n\t\tsb.append(\"VALUES \"); //(1, 2, 3, \"20141225\", 100, 5);\");\n\t\tsb.append(\"(\" + msg.id + \", \" + msg.type + \", \");\n\t\tsb.append(\"\\\"\"+msg.datesent + \"\\\", \\\"\" + msg.timesent + \"\\\", \");\n\t\tsb.append(msg.senderid + \", \\\"\" + msg.receiverid + \"\\\", \");\n\t\tsb.append(msg.opened + \", \" + msg.replied + \", \");\n\t\tsb.append(\"\\\"\"+msg.subject + \"\\\", \\\"\" + msg.body + \"\\\");\");\n\t\tdc.executeUpdate(sb.toString());\n\t}",
"private void sendMessage(String message) {\n\t\tMainstarter.meClient.sendMessage(new MessageSend(message, Mainstarter.meClient));\n\t\ttextInputMessage.clear();\n\t}",
"@Override\r\n\tpublic void onMessage(BmobMsg message) {\n\t\trefreshNewMsg(message);\r\n\t}",
"public void setMessage(Message msg){\n message = msg;\n setChanged();\n notifyObservers();\n }",
"@Override\n\tpublic boolean sendMessage(Message message) {\n\t\treturn messagedao.sendMessage(message);\n\t}",
"public boolean updateMessageContent (int mid, String content) {\n boolean updateResult = false;\n String sql = \"UPDATE message SET is_read = 0 , content = ?, time = NOW() WHERE mid = ?\";\n \ttry {\t\t\t\n this.statement = connection.prepareStatement(sql);\n this.statement.setString(1, content);\n this.statement.setInt(2, mid);\n this.statement.executeUpdate();\n updateResult = true;\n this.statement.close();\n\t}\n catch(SQLException ex) {\n Logger.getLogger(UserDBManager.class.getName()).log(Level.SEVERE, null, ex);\n }\n return updateResult; \n }",
"public void setMessage(String message);",
"public void setMessage(String message);",
"public void setMessage(String message);",
"void setMessage(String message);",
"void setMessage(String message);",
"public void setMessage(String message) {\r\n\tthis.message = message;\r\n}",
"private void setMessage(final String message) {\n }",
"@Override\n\tpublic void directSendMessage(TransactionMessage transactionMessage) {\n\t\t\n\t}",
"protected boolean processChannelTell(String username, String titles, int channelNumber, String message){return false;}",
"public synchronized void write(String message) {\n\t\tcontent.add(message);\n\n\t\tnotify();\n }",
"@Override\n\tpublic void processMessage(Message message) {\n\t\t\n\t}",
"public void updateMessage(String name, String msg){\r\n\t\tSQLiteDatabase db = this.getWritableDatabase();\r\n\t\t\r\n\t\tContentValues values = new ContentValues();\r\n \t\r\n\t\t\r\n\t\tvalues.put(DBHelper.COLUMN_MESSAGE, msg);\r\n\t\t\r\n\t\tdb.update(DBHelper.CONTACT_TABLE_NAME, values, DBHelper.COLUMN_NAME + \"=?\", new String[] {name});\r\n\t\tdb.close();\r\n\t}",
"@Override\r\n public void handleMessage(Message msg) {\n }",
"public abstract void stickerMessage(Message m);",
"public abstract void documentMessage(Message m);",
"public boolean handleMessage(Message message)\n {\n return false;\n }",
"public void write(String message){\n this.write(message, false);\n }",
"public Message update(Message message) {\n if (message.getIdMessage()!= null) {\n Optional<Message> tmpMessage = messageRepository.getMessage(message.getIdMessage());\n if (!tmpMessage.isEmpty()) {\n if (message.getMessageText()!= null) {\n tmpMessage.get().setMessageText(message.getMessageText());\n }\n messageRepository.save(tmpMessage.get());\n return tmpMessage.get();\n\n } else {\n return message;\n }\n } else {\n return message;\n }\n }",
"public boolean canHandleOutdatedMessaged() {\n\t return false;\n\t}",
"public void writeThrough(Message message) {\n Entity messageEntity = new Entity(\"chat-messages\", message.getId().toString());\n messageEntity.setProperty(\"uuid\", message.getId().toString());\n messageEntity.setProperty(\"conv_uuid\", message.getConversationId().toString());\n messageEntity.setProperty(\"author_uuid\", message.getAuthorId().toString());\n messageEntity.setProperty(\"content\", message.getContent());\n messageEntity.setProperty(\"creation_time\", message.getCreationTime().toString());\n datastore.put(messageEntity);\n }",
"public boolean updateMessageToRead(int mid) {\n boolean updateResult = false;\n String sql = \"UPDATE message SET is_read = 1 WHERE mid = ?\";\n \ttry {\t\t\t\n this.statement = connection.prepareStatement(sql);\n this.statement.setInt(1, mid);\n this.statement.executeUpdate();\n updateResult = true;\n this.statement.close();\n\t}\n catch(SQLException ex) {\n Logger.getLogger(UserDBManager.class.getName()).log(Level.SEVERE, null, ex);\n }\n return updateResult; \n }",
"public void setMsg(String msg) { this.msg = msg; }",
"public void sendMessage(String message) {\n\n setChanged();\n notifyObservers(message);\n }",
"public void addMessage() {\n }",
"void write(String message) {\n this.message = message;\n }",
"@Override\n public void sendMessage(Message m)\n {\n messages.put(m);\n }",
"@Override\n\tpublic void sendMsg(String msg) {\n\n\t}",
"public void sendMessage(String message){\n pw.print(message);\n pw.flush();\n }",
"public void putMessage (Message message);",
"public void setMessage(String message) { this.message = message; }",
"@Override\n public void update() {\n String msg = (String) topic.getUpdate(this);\n if(msg == null){\n System.out.println(this.imeRonioca + \" no new messages\");\n }else{\n System.out.println(this.imeRonioca + \" consuming message: \" + msg);\n }\n }",
"@Override\n public void handleMessage(Message message) {}",
"protected void setMessage(java.lang.String newMessage)\r\n {\r\n if (message == null)\r\n {\r\n message = newMessage;\r\n }\r\n else\r\n {\r\n message += \"\\n\" + newMessage;\r\n }\r\n }",
"private void sendMessage()\n\t{\n\t\tfinal String message = messageTextArea.getText(); \n\t\tif(message.length() == 0)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\tmessageTextArea.setText(\"\");\n\t\ttry\n\t\t{\n\t\t\teventsBlockingQueue.put(new MessageEvent(message));\n\t\t}\n\t\tcatch (final InterruptedException e1)\n\t\t{\n\t\t}\n\t}",
"@Override\n\tpublic void msgGotHungry() {\n\t\t\n\t}",
"public boolean is_set_msg() {\n return this.msg != null;\n }",
"private void writeMessageInDataFile(String message){\n try {\n String messageToWrite = \"\\n\" + this + message;\n messagesManager.add(messageToWrite); // adds last message to last 15 messages queue\n Files.write(Paths.get(\"messages.txt\"), messageToWrite.getBytes(), StandardOpenOption.APPEND); // writes last message in messages database\n }catch (IOException e) {\n System.err.println(\"*** ERROR ***\\nCouldn't write in data file.\");\n }\n }",
"void sendMessage(ChatMessage msg) {\n\t\ttry {\n\t\t\tsOutput.writeObject(msg);\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tdisplay(\"Não foi possível enviar a mesagem !!!\");\n\t\t}\n\t}",
"@Override\n\tpublic void save(Message msg) {\n\t\tmsgdao.save(msg);\n\n\t}",
"protected boolean processAnnouncement(String username, String message){return false;}",
"public void setMessage(String setMessage)\n\t{\n\t\tif(this.status == 1) {\n\t\t\tthis.message = setMessage;\n\t\t}else{System.out.println(\"it's already in published state, cannnot change the message\");}\n\t}",
"void sendMessage() {\n\n\t}",
"@Override\n\tpublic void messageFromServer(String message, SimpleAttributeSet keyWord) throws RemoteException {\t\t\t\n\t\ttry { \n\t\t\t// first argument sets the position of the meesage to go in\n \tchatGUI.doc.insertString(chatGUI.doc.getLength(), message + \"\\n\", keyWord); \n }\n catch (BadLocationException e){\n \tSystem.out.print(e);\n } \n\n\t}",
"private void seenMessage(String documentId) {\n db.collection(\"messages\").document(documentId)\n .update(\"isSeen\", true);\n }",
"@Override\n public void onTextMessage(ReceivedTextMessage message) {\n //ignore the message\n }",
"@Override\n public void setMessageRead(Long id) {\n Message msg = messageRepository.findById(id).get();\n if(msg != null){\n msg.setRead(true);\n messageRepository.save(msg);\n }\n }",
"@Test\n public void UserCanWriteAndSendAMessage() {\n proLogin(proWait);\n handler.getDriver(\"user\").navigate().refresh();\n // User to queue\n waitAndFillInformation(userWait);\n // User from queue\n\n waitAndPickFromQueue(proWait);\n\n // User can write message\n waitChatWindowsAppear(userWait).sendKeys(\"yy kaa koo\");\n\n // Can send it By Pressing Submit\n waitElementPresent(userWait, By.name(\"send\")).submit();\n assertEquals(\"\", waitChatWindowsAppear(userWait).getText());\n assertTrue(waitForTextToAppear(userWait, \"yy kaa koo\"));\n\n // Can send it By Pressing Enter\n waitChatWindowsAppear(userWait).sendKeys(\"kaa koo yy\");\n waitChatWindowsAppear(userWait).sendKeys(Keys.ENTER);\n\n assertEquals(\"\", waitChatWindowsAppear(userWait).getText());\n assertTrue(waitForTextToAppear(userWait, \"kaa koo yy\"));\n endConversationPro(proWait);\n }",
"private synchronized void addMessage(String user, String message) {\n\t\tchatData.addElement(new ChatMessage(user, message));\n\t\tif (chatData.size() > 20)\n\t\t\tchatData.removeElementAt(0);\n\t}",
"@Override\n\tpublic void reSendMessageByMessageId(String messageId) {\n\t\t\n\t}"
]
| [
"0.6813672",
"0.6690752",
"0.65555096",
"0.65279937",
"0.6461275",
"0.64200366",
"0.6406262",
"0.63917434",
"0.63337946",
"0.62806636",
"0.627658",
"0.6246203",
"0.6190159",
"0.6175662",
"0.61679786",
"0.61436",
"0.61404824",
"0.611725",
"0.6072308",
"0.6058841",
"0.6047745",
"0.6033721",
"0.60316515",
"0.60276055",
"0.6019991",
"0.59978807",
"0.59922284",
"0.598697",
"0.5983019",
"0.5964558",
"0.5964364",
"0.59608537",
"0.5960767",
"0.5952141",
"0.5919341",
"0.5918029",
"0.5913",
"0.5904609",
"0.59042686",
"0.58914286",
"0.58877635",
"0.5884456",
"0.588042",
"0.58663565",
"0.58545804",
"0.5852783",
"0.58459675",
"0.5841937",
"0.583905",
"0.5836823",
"0.5835197",
"0.5821915",
"0.58163667",
"0.58163667",
"0.58163667",
"0.5798526",
"0.5798526",
"0.5794143",
"0.57902145",
"0.5783814",
"0.5783356",
"0.57761294",
"0.57691526",
"0.57671154",
"0.5765219",
"0.57635725",
"0.5757358",
"0.57567495",
"0.5756742",
"0.5756185",
"0.57550544",
"0.5748938",
"0.5746161",
"0.5745584",
"0.57343686",
"0.5734118",
"0.57337916",
"0.5726857",
"0.57218814",
"0.5719646",
"0.571836",
"0.57165086",
"0.5710961",
"0.57106507",
"0.570452",
"0.5700169",
"0.5695472",
"0.5693867",
"0.5692275",
"0.56782264",
"0.5675957",
"0.5669363",
"0.5667243",
"0.5665995",
"0.56620944",
"0.56591856",
"0.56591487",
"0.565812",
"0.5657037",
"0.56563675",
"0.5650113"
]
| 0.0 | -1 |
Our policy forbids to retrieve only one message | @Override
public DomainMessage get(Long key) {
throw new UnsupportedOperationException();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Cursor getUndeliveredOneToOneChatMessages();",
"protected byte[] getNextMessage(){\n if (messages.size() > 0) {\n byte message[] = messages.get(0).clone();\n messages.remove(0);\n return message;\n } else {\n return null;\n }\n \n }",
"Message getCurrentMessage();",
"Message getNextMessage();",
"public String getNextMessage(){\r\n String msg = this.receivedMessages.get(0);\r\n this.receivedMessages.remove(0);\r\n return msg;\r\n }",
"public boolean hasMessage(){\r\n return this.receivedMessages.size()>0;\r\n }",
"io.dstore.engine.Message getMessage(int index);",
"io.dstore.engine.Message getMessage(int index);",
"io.dstore.engine.Message getMessage(int index);",
"io.dstore.engine.Message getMessage(int index);",
"io.dstore.engine.Message getMessage(int index);",
"@Override\r\n\tpublic Message getMessage(String messageId) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic Message findOneMessage(long id) {\n\t\treturn null;\n\t}",
"java.lang.String getMessageId();",
"@Override\n\tpublic int numberOfMessages() {\n\t\treturn 0;\n\t}",
"private void getLatestMessageFromSocialService(String[] decrList) {\n Request request = new Request(Request.RequestCode.MESSAGES);\n prototype.sendRequest(serviceName,request,getNewResponseListener(decrList));\n }",
"Message getPreviousMessage();",
"@Override\n\tpublic MessagePojo getMessage(int id) {\n\t\treturn null;\n\t}",
"boolean getSkipMessage();",
"@Override\n\tpublic String viewmessage_request() {\n\t\treturn null;\n\t}",
"int getClientMsgNo();",
"@Override\r\n\tpublic message getMessage(Integer id) {\n\t\tString sql=\"select * from message where id=?\";\r\n\t\tmessage m=null;\r\n\t\ttry {\r\n\t\t\tm=getObject(conn, sql, id);\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\treturn m;\r\n\t}",
"boolean hasMessageID();",
"public String getRequestMessage()\r\n/* 34: */ {\r\n/* 35:26 */ return this.requestMessage;\r\n/* 36: */ }",
"@Override\n\tpublic MessageVO readMessage(String userid, int mid) {\n\t\treturn null;\n\t}",
"ReadResponseMessage fetchAllMessages();",
"public Collection<Message> findNextForSending();",
"long getMessageID();",
"long getMessageID();",
"@Override\n public int getMessageSize()\n {\n return 0;\n }",
"void enforceCollectiveDeliveryPolicy(Message msg){ \r\n\t\t//from the message obtained from msg.getRefersTo() get the message id, while from msg.getSenderId() we get the sender to look up the entry in the data structure\r\n\t\ttry{\r\n\t\t\tboolean policySucceeded = checkCollectiveDeliveryPolicy(msg); //return true if policy conclusively succeeded, false if still valid but still not succeeded, Exception if conclusively failed. \r\n\t\t\tif (policySucceeded){ //collective policy conclusively succeeded. Purge entries from corresponding data structures.\r\n\t\t\t\t//collectiveDiscardCondition.lock(); //with the concurrent map should also work without this\r\n\t\t\t\tdiscardEntriesInPeerDeliveryPolicyDataStructure(msg.getRefersTo(), msg.getReceiverId());\r\n\t\t\t\tdiscardCollectivePolicyEntry(msg.getRefersTo(), msg.getReceiverId());\r\n\t\t\t\t//TODO if (DeliveryPolicy.Message.ACKNOWLEDGE is set for the initial message)\r\n\t\t\t\tsend(PredefinedMessageHelper.createAcknowledgeMessageFromAdaptersAcknowledgeMessage(msg)); //or send to TEE directly\r\n\t\t\t}\r\n\t\t}catch(Exception e){ //collective policy conclusively failed. Purge entries, and inform the original sender of the ERR.\r\n\t\t\t//if (!collectiveDiscardCondition.isHeldByCurrentThread()) collectiveDiscardCondition.lock();\r\n\t\t\t\r\n\t\t\tdiscardEntriesInPeerDeliveryPolicyDataStructure(msg.getRefersTo(), msg.getReceiverId());\r\n\t\t\tdiscardCollectivePolicyEntry(msg.getRefersTo(), msg.getReceiverId());\r\n\t\t\t\r\n\t\t\t//this implies that I want the broker to deliver me messages which will have: \r\n\t\t\t//sender=the actual peer that failed/succeeded, receiver: the component who originally sent the message to which they are replying to\r\n\t\t\t//plus refersTo field, containing the id of the original message - check with Philipp\r\n\t\t\tsend(PredefinedMessageHelper.createDeliveryErrorMessageFromAdaptersCommunicationErrorMessage(msg)); \r\n\t\t}finally{\r\n\t\t\t//collectiveDiscardCondition.unlock();\r\n\t\t}\r\n\r\n\t}",
"public synchronized ClientMessage readClientMessage(){\n while ( !currClient.isUpdatingClientMessage() ) {\n try {\n wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n currClient.setUpdateClientMessage(false);\n return currClient.getClientMessage();\n }",
"public ArrayList<Message> getAllmessage(){return allmessage;}",
"@Override\n\tpublic byte[] retrieve(String msgid)\n\t{\n\t\treturn null;\n\t}",
"private boolean noMessage() {\n\t\treturn nbmsg==0;\n\t}",
"long getMessageId();",
"long getMessageId();",
"private ArrayList<Message> getMyMessages(String requestId, String msg){\n\n ArrayList<Message> myMessages = new ArrayList<Message>();\n long elapsedTime = 0;\n int i = 1;\n long startTime = System.currentTimeMillis();\n do{\n try{\n Thread.sleep(100);\n elapsedTime = System.currentTimeMillis() - startTime;\n if(elapsedTime >= 5000*i){ \n //resend message from client at 5 seconds interval, ensuring that client receives an answer if server is down \n multicast.sendMessage(msg);\n i++;\n }\n } catch(Exception e){\n System.out.print(e);\n }\n myMessages.addAll(getMessagesByRequestId(requestId));\n } while (myMessages.size() < 2 && (elapsedTime < 1000 || myMessages.size() <= 0) && elapsedTime < 30000);\n return myMessages;\n }",
"protected final void setDontShowThisAgain() {\n messageFactory.setDontShowThisAgain(messageId);\n }",
"private byte[] uniqueMessageID(Random rand){\n \tbyte[] messageID = new byte[Constants.MESSAGE_ID_LEN];\n \t\n synchronized (this.messageIDs) {\n boolean uniqueID = false;\n while (!uniqueID) {\n rand.nextBytes(messageID); //Fills messageID with random bytes\n uniqueID = true;\n for (byte[] i : messageIDs){\n if (Arrays.equals(i, messageID)) {\n Log.d(TAG, \"Message already recieved, ID starts with: \" //Message exists in messageIDs\n + messageID[0]);\n uniqueID = false;\n break; //Regenerates a random ID and tries again.\n }\n }\n }\n }\n \n return messageID;\n }",
"public Message getMessage(){\n return message;\n }",
"private static Player getThroughWhomSendMessage() {\n\t\treturn Remain.getOnlinePlayers().isEmpty() ? null : Remain.getOnlinePlayers().iterator().next();\n\t}",
"@Order(2)\n\t\t@Test\n\t\tpublic void getInvalidMessage() throws IOException, ParseException {\n\t\t\tboolean response = Requests.sendGETBoolReturn(Requests.MESSAGE_URL, INVALID_MESSAGE_ID);\n\t\t\t\n\t\t\t//expect that response == false :: Request should not return a 200\n\t\t\tassertFalse(response);\n\t\t}",
"@Override\n\tpublic long getNewPrivateMessage(String userName) throws Exception {\n\t\treturn 0;\n\t}",
"public Message getMessage() throws MessageNotFetchedException {\n \tcheckedActivate(2);\n \tmMessage.initializeTransient(mFreetalk);\n return mMessage;\n }",
"@Override\r\n\tpublic List<message> getNotReadMessages(Integer receive_id) {\n\t\tList<message> messageList=null;\r\n\t\tString sql=\"select * from message where receive_id=? and isread=0\";\r\n\t\ttry {\r\n\t\t\tmessageList=getObjectList(conn, sql,receive_id);\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\tif(messageList.size()==0) {\r\n\t\t\treturn null;\r\n\t\t}else\r\n\t\treturn messageList;\r\n\t}",
"public Long getMessage_id() {\n return message_id;\n }",
"java.lang.String getTheMessage();",
"@Override\r\n\tpublic List<ChatMessageModel> getMessages(int messageIndex) {\n\t\treturn null;\r\n\t}",
"public FermatMessage readNextMessage() {\n if(!pendingIncomingMessages.isEmpty()) {\n\n /*\n * Return the next message\n */\n return pendingIncomingMessages.iterator().next();\n\n }else {\n\n //TODO: CREATE A APPROPRIATE EXCEPTION\n throw new RuntimeException();\n }\n\n }",
"public AsyncResult<IQ> requestAllMessages() {\r\n return xmppSession.query(IQ.get(new OfflineMessage(true, false)));\r\n }",
"private void clearMessageId() {\n messageId_ = emptyLongList();\n }",
"@Override\n\tpublic JCRPageList getPrivateMessage(String userName, String type)\n\t\t\tthrows Exception {\n\t\treturn null;\n\t}",
"int getMessageIdCount();",
"public int getTotalNumOfMsg(){ return allmessage.size();}",
"private static PluginMessageRecipient getThroughWhomSendMessage() {\n\t\treturn Remain.getOnlinePlayers().isEmpty() ? Bukkit.getServer() : Remain.getOnlinePlayers().iterator().next();\n\t}",
"public String concludeRequest() {\n\t\treturn \"Already received a request\";\n\t}",
"@Override\n public Message findOne(Integer key) throws SQLException {\n //Ei toteutettu\n return null;\n }",
"ReadResponseMessage fetchUserMessages(String user);",
"boolean hasMessageId();",
"boolean hasMessageId();",
"boolean hasMessageId();",
"public RequestMessage getMessage() {\r\n return message;\r\n }",
"public Integer maxMessages();",
"boolean hasSkipMessage();",
"private String getMessage() {\n\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);\r\n\t\t\r\n\t\tboolean addSign = prefs.getBoolean(\"addsign\", true);\r\n\t\t\r\n\t\ttry {\r\n\t\t\r\n\t\tdefMessage = \"I am busy right now and will call you latter.\";\r\n\t\t\r\n\t\tfinalMessage = prefs.getString(\"message\", defMessage);\r\n\t\tif(finalMessage.equals(\"\"))\r\n\t\t\tfinalMessage = defMessage;\r\n\t\t} catch (RuntimeException e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tfinalMessage = defMessage;\r\n\t\t}\r\n\t\t\r\n\t\tif(addSign)\r\n\t\t\tfinalMessage += \"\\nSent using Calls and SMS Blocker for android.\\nDownload from: https://play.google.com/store/apps/details?id=com.atiffarrukh.callandsmsblocker\";\r\n\t\treturn finalMessage;\r\n\t}",
"public Object getMessageId()\n {\n return getUnderlyingId(true);\n }",
"private void clearMessageId() {\n \n messageId_ = 0L;\n }",
"java.lang.String getUserMessage();",
"java.util.List<io.dstore.engine.Message> \n getMessageList();",
"java.util.List<io.dstore.engine.Message> \n getMessageList();",
"java.util.List<io.dstore.engine.Message> \n getMessageList();",
"java.util.List<io.dstore.engine.Message> \n getMessageList();",
"java.util.List<io.dstore.engine.Message> \n getMessageList();",
"boolean hasMessage();",
"boolean hasMessage();",
"boolean hasMessage();",
"boolean hasMessage();",
"boolean hasMessage();",
"boolean hasMessage();",
"boolean hasMessage();",
"boolean hasMessage();",
"com.exacttarget.wsdl.partnerapi.QueryRequestMsgDocument.QueryRequestMsg getQueryRequestMsg();",
"int getMessageId();",
"@Override\n public int numberOfMessages() {\n return messages.size();\n }",
"public long getMessageId() {\n return instance.getMessageId();\n }",
"@Override\n public void onObjectMessage(ReceivedObjectMessage message) {\n //ignore the message\n }",
"public String getNoPagedMessage() {\n\t\treturn getNoPagedMessage(null);\n\t}",
"@Override\n\tpublic boolean supportsPartialMessages() {\n\t\treturn false;\n\t}",
"@Order(2)\n\t\t@Test\n\t\tpublic void listExistingMessagesBetweenNonExistentUsers() throws IOException {\n\t\t\tboolean result = Requests.listMessagesBoolReturn(INVALID_USER_ID, INVALID_USER_ID);\n\t\t\tassertTrue(result);\n\t\t}",
"@Override\n public ASN1Decodable getResponseOp() {\n // responseOp has been load, just return it\n if (super.getResponseOp() != null) {\n return super.getResponseOp();\n }\n\n int messageId = getMessageId();\n\n // Unsolicited Notification\n if (messageId == 0) {\n return new UnsolicitedNotificationImpl();\n }\n\n // get response operation according messageId\n Element element = requests.get(Integer\n .valueOf(messageId));\n if (element == null) {\n element = batchedSearchRequests.get(Integer\n .valueOf(messageId));\n }\n\n if (element != null) {\n return element.response.getResponseOp();\n }\n\n /*\n * FIXME: if messageId not find in request list,\n * what should we do?\n */\n return null;\n }",
"ChatRecord.Req getChatRecordReq();",
"@Override\r\n\tpublic Object getSpecifiedOfflineMsgStatus(String userName, String msgId) {\n\t\treturn null;\r\n\t}",
"public boolean getAllowMessageDel() {\n return allowMessageDel;\n }",
"@Override\n\tpublic TransactionMessage getMessageByMessageId(String messageId) {\n\t\treturn null;\n\t}",
"public Message getMessage() throws MessageNotFetchedException {\n \t\t\tif(mMessage == null)\n \t\t\t\tthrow new MessageNotFetchedException(mThreadID);\n \t\t\t\n \t\t\treturn super.getMessage();\n \t\t}",
"@Override\r\n\tpublic boolean handleMessage(Message msg) {\n\t\treturn false;\r\n\t}",
"Object getMessageId();",
"boolean hasUserMessage();",
"protected String getMessage() {\n if (allMessage == null)\n return allMessage;\n return allMessage.trim();\n }",
"public String getNoPagedMessage(javax.faces.context.FacesContext facesContext) {\n\t\tString s = engine.getStringProperty(Properties.NO_PAGED_MESSAGE, facesContext);\n\t\treturn s;\n\t}"
]
| [
"0.6375965",
"0.59802926",
"0.5851197",
"0.5781152",
"0.57753783",
"0.5720371",
"0.5695424",
"0.5695424",
"0.5695424",
"0.5695424",
"0.5695424",
"0.5665781",
"0.56476855",
"0.56066316",
"0.5598457",
"0.55850065",
"0.55653566",
"0.55625653",
"0.5551946",
"0.5542074",
"0.5537917",
"0.5521747",
"0.55090827",
"0.55086464",
"0.55081373",
"0.55039054",
"0.5485095",
"0.54840034",
"0.54840034",
"0.5482402",
"0.54804695",
"0.54652786",
"0.54614335",
"0.54588634",
"0.54517496",
"0.54400504",
"0.54400504",
"0.54399973",
"0.54338783",
"0.5430657",
"0.5429051",
"0.5428467",
"0.54256964",
"0.54224443",
"0.5420066",
"0.54162467",
"0.54092",
"0.5401441",
"0.5401216",
"0.540068",
"0.5397945",
"0.5382973",
"0.5381939",
"0.53771025",
"0.5366525",
"0.5362796",
"0.5360271",
"0.5341886",
"0.53397346",
"0.53309083",
"0.53309083",
"0.53309083",
"0.5330094",
"0.5326275",
"0.532384",
"0.5323685",
"0.53210604",
"0.532044",
"0.53186345",
"0.5312927",
"0.5312927",
"0.5312927",
"0.5312927",
"0.5312927",
"0.53094727",
"0.53094727",
"0.53094727",
"0.53094727",
"0.53094727",
"0.53094727",
"0.53094727",
"0.53094727",
"0.53034836",
"0.52989554",
"0.5295814",
"0.52950627",
"0.5290991",
"0.529059",
"0.52890915",
"0.52878934",
"0.5286133",
"0.5281415",
"0.5279426",
"0.5277902",
"0.5277226",
"0.52769417",
"0.5276236",
"0.5275186",
"0.5272995",
"0.52706486",
"0.52701014"
]
| 0.0 | -1 |
Our CEO got drunk and deleted all messages. He said "Never again!", here is the result. | @Override
public void delete(Long key) {
throw new UnsupportedOperationException();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void onDeletedMessages(Context context, int total) {\n\t}",
"public static Boolean deleteAllDraftMessage() {\r\n\r\n\t\ttry {\r\n\r\n\t\t\tdb.execSQL(\"DELETE FROM drafts\");\r\n\t\t\t//Log.d(\"DRAFT DELETE\", \"Record deleted!\");\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t//Log.e(\"DRAFT DELETE\", \"error : \" + e.toString());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"void deleteAllMessages() throws IOException;",
"public void deleteMessages() {\n\t\tmessageDAO.modifyMessageList(currentContact.getMsgId(), new LinkedList<Mensaje>());\n\t\tcurrentContact.removeMessages();\n\t\tcontactDAO.modifyContact(currentContact);\n\t\t// Groups share the message list, only single contacts has to be updated\n\t\tif (currentContact instanceof ContactoIndividual) {\n\t\t\tUsuario user = userCatalog.getUser(currentContact.getUserId());\n\t\t\tOptional<Contacto> result = user.getContacts().stream().filter(c -> c.getUserId() == currentUser.getId())\n\t\t\t\t\t.findFirst();\n\t\t\tif (!result.isPresent())\n\t\t\t\treturn;\n\t\t\tmessageDAO.modifyMessageList(result.get().getMsgId(), new LinkedList<Mensaje>());\n\t\t\tresult.get().removeMessages();\n\t\t\tcontactDAO.modifyContact(result.get());\n\t\t}\n\t}",
"public boolean deleteAllMessages() throws SQLException{\n boolean areDeleted;\n database = dbH.getReadableDatabase();\n dbH.openDataBase();\n areDeleted= database.delete(\"Message\", null, null)>0;\n\n dbH.close();\n return areDeleted;\n\n }",
"public static Boolean deleteAllSentMessage() {\r\n\r\n\t\ttry {\r\n\r\n\t\t\tdb.execSQL(\"DELETE FROM sentItems\");\r\n\t\t\t//Log.d(\"TABLE_SENT_ITEM DELETE\", \"Record deleted!\");\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t//Log.e(\"TABLE_SENT_ITEM DELETE\", \"error : \" + e.toString());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"@Override\n protected void onDeletedMessages(Context context, int total) {\n Log.i(TAG, \"Received deleted messages notification\");\n }",
"public String deleteMessage(Integer id ){\n repo.deleteById(id);\n return \"Mensaje Eliminado\" + id;\n }",
"@DELETE\n\t@Produces(\"text/plain\")\n\tpublic String onDelete() {\n\t\tmsg = null;\n\t\treturn \"Message deleted.\\n\";\n\t}",
"public abstract void delete(int msg);",
"protected void removeOrphanedMessages() {\r\n Enumeration e = orphanedMessageSet.elements();\r\n MessageToken[] orphanedTokens = new MessageToken[orphanedMessageSet.size()];\r\n int index = 0;\r\n while(e.hasMoreElements()) {\r\n FolderMessage message = (FolderMessage)e.nextElement();\r\n folderMessageCache.removeFolderMessage(folderTreeItem, message);\r\n orphanedTokens[index++] = message.getMessageToken();\r\n }\r\n orphanedMessageSet.clear();\r\n mailStoreServices.fireFolderExpunged(folderTreeItem, orphanedTokens, new MessageToken[0]);\r\n }",
"void removeAll(){\n\t\tmessages.clear();\n\t}",
"public void deleteReply() {\n\r\n\t}",
"protected void clearMessages(){\n\t\twMessages.clear();\n\t}",
"@Override\r\n\tpublic void deleteMessage(Integer id) {\n\t\tString sql=\"delete from message where id=?\";\r\n\t\ttry {\r\n\t\t\tupdate(conn, sql, id);\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}",
"protected void deleteWithoutCommit() {\n \t\ttry {\n \t\t\tcheckedActivate(3); // TODO: Figure out a suitable depth.\n \t\t\t\n \t\t\tfor(MessageReference ref : getAllMessages(false)) {\n \t\t\t\tref.initializeTransient(mFreetalk);\n \t\t\t\tref.deleteWithoutCommit();\n \t\t\t}\n \n \t\t\tcheckedDelete();\n \t\t}\n \t\tcatch(RuntimeException e) {\n \t\t\tcheckedRollbackAndThrow(e);\n \t\t}\n \n \t}",
"@Override\n\tpublic List<MessagePojo> deleteMessage(int id) {\n\t\treturn null;\n\t}",
"private void deleteMail(long position0){\n\t\tint position = (int) position0;\n\n\t\tArrayList<String> messages_to_delete = new ArrayList<String>();\n\t\tmessages_to_delete.clear(); //TESTING\n\t\tmessages_to_delete.add(Integer.toString(messages_array.get(position).id));\n\t\tString str = Integer.toString(messages_array.get(position).id);\n\t\tcounter2++;\n\t\tLog.d(\"ID is at:\", str);\n\t\tInbox inb = new Inbox();\n\n\t\tString request = inb.TrashMessages(2, selectedAccount.sessionID, messages_to_delete);\n\n Log.d(\"SelectMessage.DeleteMail\", \"Request String\"+request);\n\t\tServerRequest sRequest = new ServerRequest(selectedAccount.server, Inbox.url, request);\n\t\tAsyncServer s = new AsyncServer();\n\t\t//s.addListener(this);\n\t\ttry {\n\t\t\ts.execute(sRequest);\n\t\t} catch (Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public synchronized void clearPersistentMessages() {\n _persistent.clear();\n }",
"public void deleteMessage(int i) {\n\t\tSession session;\n\t\tProperties properties = System.getProperties();\n\t\tsession = Session.getDefaultInstance(properties, new javax.mail.Authenticator(){\n\t\t\tprotected PasswordAuthentication getPasswordAuthentication(){\n\t\t\t\t\treturn new PasswordAuthentication(username, password);\n\t\t\t}\n\t\t});\n\t\ttry {\n\t\t\tMyMessage toBeDeleted = messageList.get(i);\n\t\t\tStore store = session.getStore(\"imaps\");\t\n\t\t\tstore.connect(\"imap.gmail.com\", username,\n\t\t\t\t\tpassword);\n\t\t\tfolder = store.getDefaultFolder();\n\t\t\tfolder = folder.getFolder(\"inbox\");\n\t\t\tfolder.open(Folder.READ_WRITE);\n\t\t\tMessage[] messages = folder.getMessages();\n\t\t\t//SHOULD MAKE SURE WE HAVE THE RIGHT ONE\n\t\t\tmessages[i].setFlag(Flags.Flag.DELETED, true);\n\t\t\tfolder.close(true);\n\t\t\t\n\t\t} catch (Exception e){\n\t\t\tSystem.out.println(\"ERROR: COULD NOT SEND MAIL\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void DeleteSentMessages(DBMethods dbm, String choice) {\r\n\r\n\t\tScanner DeleteSentMessagesSC = new Scanner(System.in);\r\n\t\t\r\n\t\t//Query to show all sent messages\r\n\t\tString queryfinal1=\"SELECT messages.id AS 'Message id',(SELECT users.username FROM dont_shoot_the_messenger.users WHERE users.id=messages.receiver_id) AS 'Receiver',messages.text AS 'Message',messages.date_time_sent AS 'Time Sent'\"+\"\\n\"+\r\n\t\t\t \"FROM dont_shoot_the_messenger.messages\"+\"\\n\"+\r\n\t\t\t\t \"WHERE messages.sender_id=(\"+\"\\n\"+\r\n\t\t\t\t \"SELECT users.id\"+\"\\n\"+\r\n\t\t\t\t \"FROM dont_shoot_the_messenger.users\"+\"\\n\"+\r\n\t\t\t\t \"WHERE users.username='\"+getUsername()+\"'\"+\"\\n\"+\r\n\t\t\t\t \") AND messages.sender_view=0\"+\"\\n\"+\r\n\t\t\t\t \"ORDER BY date_time_sent DESC;\";\r\n\r\n\t\ttry {\r\n\t\t\tStatement stm5 = dbm.getConnection().createStatement();\r\n\r\n\t\t\tResultSet rs3 = stm5.executeQuery(queryfinal1);\r\n\r\n\t\t\tSystem.out.print(\"\\n\");\r\n\r\n\t\t\t//Message that is shown in case that there are no SENT messages\r\n\t\t\tif (rs3.next() == false) {\r\n\t\t\t\tSystem.out.println(\"You dont have any Sent messages!!!\"+\"\\n\"+\"\\n\"+\"Returning to Delete Message Menu...\");\r\n\t\t\t} else {\r\n\t\t\t\tString answer1 = null;\r\n\t\t\t\tString deleteAnswer=null;\r\n\t\t\t\tString answerShowNext=null;\r\n\r\n\t\t\t\tswitch (choice) {\r\n\r\n\t\t\t\t//Case 1.Delete(Hide) Sent Messages One by One\r\n\t\t\t\tcase \"1\":\r\n\r\n\t\t\t\t\t//Do...while Loop that shows each Sent message\r\n\t\t\t\t\t//Asks whether to Delete (Hide) it or not\r\n\t\t\t\t\t//And waits for confirmation to continue to the next or not\r\n\t\t\t\t\tdo {\r\n\t\t\t\t\t\tint Message_id=rs3.getInt(\"Message id\");\r\n\t\t\t\t\t\tString Receiver = rs3.getString(\"Receiver\");\r\n\t\t\t\t\t\tString Message = rs3.getString(\"Message\");\r\n\t\t\t\t\t\tString Time_Sent = rs3.getString(\"Time Sent\");\r\n\t\t\t\t\t\t//Showing the messages\r\n\t\t\t\t\t\tSystem.out.println(\"Receiver : \" + Receiver + \"\\n\" + \r\n\t\t\t\t\t\t \"Message : \" + Message + \"\\n\" +\r\n\t\t\t\t\t\t\t\t \"Time Sent : \" + Time_Sent + \"\\n\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Asking whether or not to Delete current message\r\n\t\t\t\t\t\tSystem.out.println(\"Delete current message (y/n) ?: \");\r\n\t\t\t\t\t\tdeleteAnswer=DeleteSentMessagesSC.next();\r\n\t\t\t\t\t\tSystem.out.print(\"\\n\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//While Loop for preventing Wrong Input\r\n\t\t\t\t\t\twhile(!deleteAnswer.equals(\"y\")&&!deleteAnswer.equals(\"n\")) {\r\n\t\t\t\t\t\t\tSystem.out.println(\"Invalid input\"+\"\\n\"+\"Delete current message (y/n) ?: \");\r\n\t\t\t\t\t\t\tdeleteAnswer=DeleteSentMessagesSC.next();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tswitch (deleteAnswer){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t //Case that the user wants to Delete the current SENT message\r\n\t\t\t\t\t\t case \"y\":\r\n\t\t\t\t\t\t \t\r\n\t\t\t\t\t\t \t//Query that changes the sender_view value from '0' to '1'\r\n\t\t\t\t\t\t \tString queryDelete=\"UPDATE dont_shoot_the_messenger.messages\"+\"\\n\"+\r\n\t\t\t\t\t\t \"SET messages.sender_view=1\"+\"\\n\"+\r\n\t\t\t\t\t\t \t\t\t \"WHERE messages.id=\"+Message_id+\";\";\r\n\t\t\t\t\t\t \t\r\n\t\t\t\t\t\t \tdbm.executeStatement(queryDelete);\r\n\t\t\t\t\t\t \t\r\n\t\t\t\t\t\t \t//Keeping Log of the action\r\n\t\t\t\t\t\t\t\tLog.appendStrToFile(\"Dont_Shoot_The_Messenger_Log_File.txt\", getUsername()+\r\n\t\t\t\t\t\t\t\t\t\t \" Hid a Message that he had sent to \"+Receiver+\" at \"+timeStamp+\" Message text: \"+Message);\r\n\t\t\t\t\t\t \t\r\n\t\t\t\t\t\t \tSystem.out.println(\"\\n\"+\"Deleting current message...\"+\"\\n\"+\"Message Deleted\"+\"\\n\");\r\n\t\t\t\t\t\t \t\r\n\t\t\t\t\t\t \tbreak;\r\n\t\t\t\t\t\t \t\r\n\t\t\t\t\t\t //Case that the user does NOT want to Delete the current SENT message\r\n\t\t\t\t\t\t case \"n\":\r\n\t\t\t\t\t\t \tSystem.out.println(\"\\n\"+\"Skipping message Deletion...\"+\"\\n\");\r\n\t\t\t\t\t\t \tbreak;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t//Asking whether or not to show next message\r\n\t\t\t\t\t\tSystem.out.println(\"Show next (y/n) ?: \");\r\n\t\t\t\t\t\tanswerShowNext = DeleteSentMessagesSC.next();\r\n\t\t\t\t\t\tSystem.out.print(\"\\n\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//While Loop for preventing Wrong Input\r\n\t\t\t\t\t\twhile(!answerShowNext.equals(\"y\")&&!answerShowNext.equals(\"n\")) {\r\n\t\t\t\t\t\t\tSystem.out.println(\"Invalid input\"+\"\\n\"+\"Delete current message (y/n) ?: \");\r\n\t\t\t\t\t\t\tanswerShowNext=DeleteSentMessagesSC.next();\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t} while (rs3.next() && answerShowNext.equalsIgnoreCase(\"y\"));\r\n\t\t\t\t\tSystem.out.println(\"Nothing more to show\" + \"\\n\" + \"Returning to Delete Message Menu...\");\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t//Case 2.Delete(Hide) All Sent Messages Together\r\n\t\t\t\tcase \"2\":\r\n\t\t\t\t\t\r\n\t\t\t\t\tSystem.out.println(\"\\n\"+\"Are you sure you want to Delete all your Sent messages? (y/n):\");\r\n\t\t\t\t\tString DeleteAllSentChoice=DeleteSentMessagesSC.next();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//While Loop for preventing Wrong Input\r\n\t\t\t\t\twhile(!DeleteAllSentChoice.equals(\"y\")&&!DeleteAllSentChoice.equals(\"n\")) {\r\n\t\t\t\t\t\tSystem.out.println(\"Invalid input\"+\"\\n\"+\"Are you sure you want to Delete all your Read messages? (y/n):\");\r\n\t\t\t\t\t\tDeleteAllSentChoice=DeleteSentMessagesSC.next();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tswitch(DeleteAllSentChoice) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Case 1.The User wants to Delete all the Sent Messages\r\n\t\t\t\t\tcase \"y\":\r\n\t\t\t\t\t\r\n\t\t\t\t\tdo {\r\n\t\t\t\t\t\tint Message_id=rs3.getInt(\"Message id\");\r\n\t\t\t\t\t\tString Receiver = rs3.getString(\"Receiver\");\r\n\t\t\t\t\t\tString Message = rs3.getString(\"Message\");\r\n\t\t\t\t\t\tString Time_Sent = rs3.getString(\"Time Sent\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Query that changes the sender_view value from '0' to '1'\r\n\t\t\t\t\t\tString queryDeleteAll=\"UPDATE dont_shoot_the_messenger.messages\"+\"\\n\"+\r\n\t\t \"SET messages.sender_view=1\"+\"\\n\"+\r\n\t\t \t\t\t \"WHERE messages.id=\"+Message_id+\";\";\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tdbm.executeStatement(queryDeleteAll);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Keeping Log of the action\r\n\t\t\t\t\t\tLog.appendStrToFile(\"Dont_Shoot_The_Messenger_Log_File.txt\", getUsername()+\r\n\t\t\t\t\t\t\t\t \" Hid a Message that he had sent to \"+Receiver+\" at \"+timeStamp+\" Message text: \"+Message);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t} while (rs3.next());\r\n\t\t\t\t\t\r\n\t\t\t\t\tSystem.out.print(\"\\n\"+\"Deleting all Sent messages...\"+\"\\n\");\r\n\t\t\t\t\tSystem.out.print(\"\\n\"+\"All Sent messages Deleted Successfully\" + \"\\n\" + \"Returning to Delete Message Menu...\"+\"\\n\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Case 2.The User does NOT want to Delete all the Read Messages\r\n\t\t\t\t\tcase \"n\":\r\n\t\t\t\t\t\tSystem.out.println(\"\\n\"+\"Canceling All Sent Messages Deletion...\"+ \"\\n\" + \"Returning to Delete Message Menu...\"+\"\\n\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\t//e.printStackTrace();\r\n\t\t}\r\n\t}",
"private void m16569e() {\n this.f14723f.removeMessages(this.f14724g);\n }",
"public abstract void deletedSentences(long ms, int n);",
"void resetMessageCounter();",
"@Override\n\tpublic void delMessage(String id) {\n\t\t messageDAO.deleteMessage(id);\n\t\n\t}",
"@Override\n\tpublic String deleteMsg(long id,CustomerUser user) throws Exception {\n\t\tCustomerMessage entity = msgDao.queryById(id);\n\t\tmsgDao.delete(entity);\n\t\treturn \"success\";\n\t}",
"public static Boolean deleteDraftMessage(String id) {\r\n\r\n\t\ttry {\r\n\r\n\t\t\tdb.execSQL(\"DELETE FROM drafts WHERE id =\" + id);\r\n\t\t\t//Log.d(\"DRAFT DELETE\", \"Record deleted!\");\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t//Log.e(\"DRAFT DELETE\", \"error : \" + e.toString());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public void DeleteReadMessages(DBMethods dbm, String choice) {\r\n\r\n\t\tScanner DeleteReadMessagesSC = new Scanner(System.in);\r\n\t\t\r\n\t\t//Query that Shows the Received Messages that are Read(NOT New)\r\n\t\tString queryDeleteRead=\"SELECT messages.id AS 'Message id',messages.text AS 'Message',messages.date_time_sent AS 'Time Sent',(SELECT users.username FROM dont_shoot_the_messenger.users WHERE users.id=messages.sender_id) AS 'Sender'\"+\"\\n\"+\r\n \"FROM dont_shoot_the_messenger.messages\"+\"\\n\"+\r\n \"WHERE messages.receiver_id=(\"+\"\\n\"+\r\n \"SELECT users.id\"+\"\\n\"+\r\n \"FROM dont_shoot_the_messenger.users\"+\"\\n\"+\r\n \"WHERE users.username='\"+getUsername()+\"'\"+\"\\n\"+\r\n \") \"+\"\\n\"+\r\n \"AND messages.viewed='Read'\"+\"\\n\"+\r\n \"AND messages.receiver_view=0\"+\"\\n\"+\r\n \"ORDER BY date_time_sent DESC;\";\r\n\r\n\t\ttry {\r\n\t\t\tStatement stm2 = dbm.getConnection().createStatement();\r\n\r\n\t\t\tResultSet rs1 = stm2.executeQuery(queryDeleteRead);\r\n\r\n\t\t\tSystem.out.print(\"\\n\");\r\n\r\n\t\t\t//Message that is shown in case that there are no READ messages in the INBOX\r\n\t\t\tif (rs1.next() == false) {\r\n\t\t\t\tSystem.out.println(\"You dont have any Read messages!!!\"+\"\\n\"+\"\\n\"+\"Returning to Delete Message Menu...\");\r\n\t\t\t} else {\r\n\t\t\t\tString answer1 = null;\r\n\r\n\t\t\t\tswitch (choice) {\r\n\r\n\t\t\t\t//Case 1.Delete Read Messages One by One\r\n\t\t\t\tcase \"1\":\r\n\r\n\t\t\t\t\t//Do...while Loop that shows each received Read message\r\n\t\t\t\t\t//Asks whether to Delete (Hide) it or not\r\n\t\t\t\t\t//And waits for confirmation to continue to the next or not\r\n\t\t\t\t\tdo {\r\n\t\t\t\t\t\tint Message_id = rs1.getInt(\"Message id\");\r\n\t\t\t\t\t\tString Sender = rs1.getString(\"Sender\");\r\n\t\t\t\t\t\tString Message = rs1.getString(\"Message\");\r\n\t\t\t\t\t\tString Time_Sent = rs1.getString(\"Time Sent\");\r\n\t\t\t\t\t\t//Showing the messages\r\n\t\t\t\t\t\tSystem.out.println(\"Sender : \" + Sender + \"\\n\" + \r\n\t\t\t\t\t\t \"Message : \" + Message + \"\\n\" +\r\n\t\t\t\t\t\t\t\t \"Time Sent : \" + Time_Sent + \"\\n\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Asking whether or not to Delete current message\r\n\t\t\t\t\t\tSystem.out.println(\"Delete current message (y/n) ?: \");\r\n\t\t\t\t\t\tString deleteAnswer=DeleteReadMessagesSC.next();\r\n\t\t\t\t\t\tSystem.out.print(\"\\n\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//While Loop for preventing Wrong Input\r\n\t\t\t\t\t\twhile(!deleteAnswer.equals(\"y\")&&!deleteAnswer.equals(\"n\")) {\r\n\t\t\t\t\t\t\tSystem.out.println(\"Invalid input\"+\"\\n\"+\"Delete current message (y/n) ?: \");\r\n\t\t\t\t\t\t\tdeleteAnswer=DeleteReadMessagesSC.next();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tswitch (deleteAnswer){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t //Case that the user wants to Delete the current message\r\n\t\t\t\t\t\t case \"y\":\r\n\t\t\t\t\t\t \t//Query that changes the receiver_view value from '0' to '1'\r\n\t\t\t\t\t\t \tString queryDelete=\"UPDATE dont_shoot_the_messenger.messages\"+\"\\n\"+\r\n\t\t\t\t\t\t \"SET messages.receiver_view=1\"+\"\\n\"+\r\n\t\t\t\t\t\t \t\t\t \"WHERE messages.id=\"+Message_id+\";\";\r\n\t\t\t\t\t\t \t\r\n\t\t\t\t\t\t \tdbm.executeStatement(queryDelete);\r\n\t\t\t\t\t\t \t\r\n\t\t\t\t\t\t \tSystem.out.println(\"\\n\"+\"Deleting current message...\"+\"\\n\"+\"Message Deleted\"+\"\\n\");\r\n\t\t\t\t\t\t \t\r\n\t\t\t\t\t\t \t//Keeping Log of the action\r\n\t\t\t\t\t\t\t\tLog.appendStrToFile(\"Dont_Shoot_The_Messenger_Log_File.txt\", getUsername()+\r\n\t\t\t\t\t\t\t\t\t\t \" Hid a Message that \"+Sender+\" had sent him at \"+timeStamp+\" Message text: \"+Message);\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 \tbreak;\r\n\t\t\t\t\t\t \t\r\n\t\t\t\t\t\t //Case that the user does NOT want to Delete the current message\r\n\t\t\t\t\t\t case \"n\":\r\n\t\t\t\t\t\t \tSystem.out.println(\"\\n\"+\"Skipping Read message Deletion...\"+\"\\n\");\r\n\t\t\t\t\t\t \tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Asking whether or not to show next message\r\n\t\t\t\t\t\tSystem.out.println(\"Show next (y/n) ?: \");\r\n\t\t\t\t\t\tanswer1 = DeleteReadMessagesSC.next();\r\n\t\t\t\t\t\tSystem.out.print(\"\\n\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//While Loop for preventing Wrong Input\r\n\t\t\t\t\t\twhile(!answer1.equals(\"y\")&&!answer1.equals(\"n\")) {\r\n\t\t\t\t\t\t\tSystem.out.println(\"Invalid input\"+\"\\n\"+\"Delete current message (y/n) ?: \");\r\n\t\t\t\t\t\t\tanswer1=DeleteReadMessagesSC.next();\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t} while (rs1.next() && !answer1.equalsIgnoreCase(\"n\"));\r\n\t\t\t\t\tSystem.out.println(\"Nothing more to show\" + \"\\n\" + \"Returning to Delete Message Menu\");\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t//Case 2.Delete All Received Read Messages Together\r\n\t\t\t\tcase \"2\":\r\n\t\t\t\t\t\r\n\t\t\t\t\tSystem.out.println(\"\\n\"+\"Are you sure you want to Delete all your Read messages? (y/n):\");\r\n\t\t\t\t\tString DeleteAllReadChoice=DeleteReadMessagesSC.next();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//While Loop for preventing Wrong Input\r\n\t\t\t\t\twhile(!DeleteAllReadChoice.equals(\"y\")&&!DeleteAllReadChoice.equals(\"n\")) {\r\n\t\t\t\t\t\tSystem.out.println(\"Invalid input\"+\"\\n\"+\"Are you sure you want to Delete all your Read messages? (y/n):\");\r\n\t\t\t\t\t\tDeleteAllReadChoice=DeleteReadMessagesSC.next();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tswitch(DeleteAllReadChoice) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Case 1.The User wants to Delete all the Read Messages\r\n\t\t\t\t\tcase \"y\":\r\n\r\n\t\t\t\t\t//Do...while Loop that Deletes (Hides) all Received Read messages\r\n\t\t\t\t\tdo {\r\n\t\t\t\t\t\tint Message_id = rs1.getInt(\"Message id\");\r\n\t\t\t\t\t\tString Sender = rs1.getString(\"Sender\");\r\n\t\t\t\t\t\tString Message = rs1.getString(\"Message\");\r\n\t\t\t\t\t\tString Time_Sent = rs1.getString(\"Time Sent\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tString query2 = \"UPDATE dont_shoot_the_messenger.messages\" + \"\\n\" + \r\n\t\t\t\t \"SET messages.receiver_view=1\" + \"\\n\" + \r\n\t\t\t\t\t\t \"WHERE messages.id=\" + Message_id + \";\";\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tdbm.executeStatement(query2);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Keeping Log of the action\r\n\t\t\t\t\t\tLog.appendStrToFile(\"Dont_Shoot_The_Messenger_Log_File.txt\", getUsername()+\r\n\t\t\t\t\t\t \" Hid a Message that \"+Sender+\" had sent him at \"+timeStamp+\" Message text: \"+Message);\r\n\t\t\t\t\t\t} while (rs1.next());\r\n\t\t\t\t\tSystem.out.print(\"\\n\"+\"Deleting all Read messages...\"+\"\\n\");\r\n\t\t\t\t\tSystem.out.print(\"\\n\"+\"All Read messages Deleted Successfully\" + \"\\n\" + \"Returning to Delete Message Menu...\"+\"\\n\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Case 2.The User does NOT want to Delete all the Read Messages\r\n\t\t\t\t\tcase \"n\":\r\n\t\t\t\t\t\tSystem.out.println(\"\\n\"+\"Canceling All Read Messages Deletion...\"+ \"\\n\" + \"Returning to Delete Message Menu...\"+\"\\n\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\t//e.printStackTrace();\r\n\t\t}\r\n\t}",
"public void deleteMessage(Integer tid, int rank);",
"private void delete_message_everyone(final int position, final MessageHolder messageHolder){\r\n\r\n Mprogress.setTitle(\"Wait for a moment ...\");\r\n Mprogress.setMessage(\"Please wait for delete message\");\r\n Mprogress.setCanceledOnTouchOutside(false);\r\n Mprogress.show();\r\n\r\n DatabaseReference MessageRoot = FirebaseDatabase.getInstance().getReference();\r\n MessageRoot.child(\"Message\").child(userMessageListModals.get(position).getTo())\r\n .child(userMessageListModals.get(position).getFrom())\r\n .child(userMessageListModals.get(position).getMessage_Id())\r\n .removeValue()\r\n .addOnCompleteListener(new OnCompleteListener<Void>() {\r\n @Override\r\n public void onComplete(@NonNull Task<Void> task) {\r\n if(task.isSuccessful()){\r\n MessageRoot.child(\"Message\").child(userMessageListModals.get(position).getFrom())\r\n .child(userMessageListModals.get(position).getTo())\r\n .child(userMessageListModals.get(position).getMessage_Id())\r\n .removeValue()\r\n .addOnCompleteListener(new OnCompleteListener<Void>() {\r\n @Override\r\n public void onComplete(@NonNull Task<Void> task) {\r\n\r\n if(task.isSuccessful()){\r\n /// todo finial task\r\n userMessageListModals.remove(position);\r\n notifyDataSetChanged();\r\n Mprogress.dismiss();\r\n }\r\n else {\r\n Toast.makeText(messageHolder.context, task.getException().getMessage(), Toast.LENGTH_SHORT).show();\r\n\r\n Mprogress.dismiss();\r\n }\r\n\r\n }\r\n });\r\n }\r\n else {\r\n Toast.makeText(messageHolder.context,task.getException().getMessage(), Toast.LENGTH_LONG).show();\r\n Mprogress.dismiss();\r\n }\r\n }\r\n });\r\n }",
"private void clearMessageId() {\n messageId_ = emptyLongList();\n }",
"public int deleteMessageFromDatabaseByMessageText(String message) {\r\n\t\tint recordsDeleted = 0;\r\n\r\n\t\ttry {\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\t\tConnection conn = DriverManager.getConnection(url, user, password);\r\n\r\n\t\t\tPreparedStatement statement = conn.prepareStatement(sql_deleteMessageFromDatabaseByMessageText, Statement.RETURN_GENERATED_KEYS);\r\n\t\t\tstatement.setString(1, message);\r\n\r\n\t\t\trecordsDeleted = statement.executeUpdate();\r\n\t\t\tconn.close();\r\n\t\t} catch (ClassNotFoundException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t} catch (SQLException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn recordsDeleted;\r\n\t}",
"@Override\n public void deleteSms() {\n Uri uri = Uri.parse(\"content://sms/\");\n Cursor cursor = presenter.getContext().getContentResolver().query(uri, null, null, null, null);\n if (cursor.moveToFirst()) {\n String messageId = cursor.getString(0);\n presenter.getContext().getContentResolver().delete(Uri.parse(\"content://sms/\" + messageId), null, null);\n }\n }",
"@Override\n\tpublic int deleteMessage(int message_no) {\n\t\tSystem.out.println(\"===> Mybatis deleteMessage() 호출\");\n\t\treturn mybatis.delete(\"message.deleteMessage\" , message_no);\n\t}",
"public String deleteMsg(Long id){\n return messagesParser.deleteMsg(id);\n }",
"@RequestMapping(value = \"/deleteAllmensajes\", method = RequestMethod.DELETE)\n\tpublic ResponseEntity<Void> deleteAll(){\n\t\tList<Mensaje> mensajeBorrar = chatDAO.getAllMessages();\n\t\tchatDAO.deleteAll(mensajeBorrar);\n\t\treturn new ResponseEntity<Void>(HttpStatus.OK);\n\t}",
"@Override\n public void removeAllMessages() throws RemoteException {\n Logger.d(TAG, \"removeAllMessages() entry\");\n final String[] args = { mContactString };\n ContentResolver contentResolver = MediatekFactory\n .getApplicationContext().getContentResolver();\n contentResolver.delete(PluginUtils.SMS_CONTENT_URI,\n SELECTION_SMS_ADDRESS, args);\n Logger.d(TAG, \"removeAllMessages() exit address is \" + mContactString);\n }",
"@Before\n public void cleanConversations() {\n restController.deleteAllConvoMsgsForBlog(MAIN_BLOG_NAME);\n restController.deleteAllConversationsForBlog(MAIN_BLOG_NAME);\n }",
"public void deleteMessageTest(){\n\t\tint messageId = 102;\n\t\tgiven()\n\t\t\t.pathParam(\"messageId\", messageId)\n\t\t.when()\n\t\t\t.delete(\"/message/{messageId}\")\n\t\t.then()\n\t\t\t.statusCode(200)\n\t\t\t.body(\"message\", is(\"Message Deleted \"+messageId));\n\t}",
"@Override\n public final void removeNextMessage() {\n }",
"@Order(5)\n\t\t@Test\n\t\tpublic void deleteWithBlankMessageId() throws IOException, ParseException {\n\t\t\tboolean result = Requests.sendDELETEBoolReturn(Requests.MESSAGE_URL, \"\");\n\t\t\tassertFalse(result);\n\t\t}",
"private void delete_message_sender(final int position, final MessageHolder messageHolder){\r\n\r\n Mprogress.setTitle(\"Wait for a moment ...\");\r\n Mprogress.setMessage(\"Please wait for delete message\");\r\n Mprogress.setCanceledOnTouchOutside(false);\r\n Mprogress.show();\r\n\r\n DatabaseReference MessageRoot = FirebaseDatabase.getInstance().getReference();\r\n MessageRoot.child(\"Message\").child(userMessageListModals.get(position).getFrom())\r\n .child(userMessageListModals.get(position).getTo())\r\n .child(userMessageListModals.get(position).getMessage_Id())\r\n .removeValue()\r\n .addOnCompleteListener(new OnCompleteListener<Void>() {\r\n @Override\r\n public void onComplete(@NonNull Task<Void> task) {\r\n if(task.isSuccessful()){\r\n userMessageListModals.remove(position);\r\n notifyDataSetChanged();\r\n Mprogress.dismiss();\r\n }\r\n else {\r\n Toast.makeText(messageHolder.context, task.getException().getMessage(), Toast.LENGTH_LONG).show();\r\n Mprogress.dismiss();\r\n }\r\n }\r\n });\r\n\r\n\r\n }",
"MessageResource deleteMensaje(Integer mensID) throws NoPermissionException;",
"private void clearMessageId() {\n \n messageId_ = 0L;\n }",
"@Override\n\tpublic void onDeletionNotice(long directMessageId, long userId) {\n\n\t}",
"public AsyncResult<IQ> removeAllMessages() {\r\n return xmppSession.query(IQ.set(new OfflineMessage(false, true)));\r\n }",
"void showDataDeletedMsg();",
"public void mo64175c() {\n if (this.f41223d != null) {\n this.f41223d.removeMessages(1);\n }\n this.f41225f = true;\n }",
"private void delete_message_reciver(final int position, final MessageHolder messageHolder){\r\n\r\n Mprogress.setTitle(\"Wait for a moment ...\");\r\n Mprogress.setMessage(\"Please wait for delete message\");\r\n Mprogress.setCanceledOnTouchOutside(false);\r\n Mprogress.show();\r\n\r\n DatabaseReference MessageRoot = FirebaseDatabase.getInstance().getReference();\r\n MessageRoot.child(\"Message\").child(userMessageListModals.get(position).getTo())\r\n .child(userMessageListModals.get(position).getFrom())\r\n .child(userMessageListModals.get(position).getMessage_Id())\r\n .removeValue()\r\n .addOnCompleteListener(new OnCompleteListener<Void>() {\r\n @Override\r\n public void onComplete(@NonNull Task<Void> task) {\r\n if(task.isSuccessful()){\r\n userMessageListModals.remove(position);\r\n notifyDataSetChanged();\r\n Mprogress.dismiss();\r\n }\r\n else {\r\n Toast.makeText(messageHolder.context, task.getException().getMessage(), Toast.LENGTH_SHORT).show();\r\n Mprogress.dismiss();\r\n }\r\n }\r\n });\r\n\r\n }",
"public boolean deleteMessages(String ip){\n boolean isDeleted=false;\n try{\n database=dbH.getReadableDatabase();\n dbH.openDataBase();\n isDeleted=database.delete(\"Message\",\"fromIP=\"+\"'\"+ip+\"'\",null)>=1;\n Log.i(TAG,\"Are messages deleted? \"+isDeleted);\n dbH.close();\n }\n catch(SQLException e){\n e.printStackTrace();\n }\n return isDeleted;\n }",
"@DefaultMessage(\"Pressing commit will delete the current record from the database\")\n @Key(\"gen.deleteMessage\")\n String gen_deleteMessage();",
"private void RecoverMessages()\n {\n String messages = new String();\n int nodeIndex = getNodeIndex(localport);\n int i;\n String msgToSend;\n for(i=nodeIndex+1;i<=nodeIndex+2;i++)\n {\n msgToSend = localport;\n String temp = (sendMsg(nodes[i % 5], \"RECOVER##\" + msgToSend));\n if(temp !=null && !temp.equals(\"null\"))\n messages+=temp;\n }\n\n Log.i(\"current node\",Integer.toString(nodeIndex));\n for(i=nodeIndex+4;i>=nodeIndex+3;i--)\n {\n Log.i(\"replicate from\",nodes[i % 5]);\n msgToSend = nodes[i % 5];\n String temp = (sendMsg(nodes[i % 5], \"RECOVER##\" + msgToSend));\n if(temp !=null && !temp.equals(\"null\"))\n messages+=temp;\n }\n Log.i(\"messages recovered\", messages);\n if(!messages.equals(\"null\") && messages.length()>0)\n {\n Log.i(\"sasa\",Integer.toString(messages.length()));\n String msgs = messages.substring(0,messages.length()-1);\n String[] Allmessages = msgs.split(\" \");\n Log.i(\"recover\",msgs);\n for(String msg: Allmessages)\n {\n String key = msg.split(\"&&\")[0];\n String value = msg.split(\"&&\")[1];\n if(myKeys.containsKey(key))\n continue;\n myKeys.put(key,value);\n }\n\n }\n }",
"public boolean delete(Connection db) throws SQLException {\n boolean commit = true;\n Statement st = null;\n ResultSet rs = null;\n\n try {\n commit = db.getAutoCommit();\n\n //Check to see if a message is being used by any unfinished campaigns\n //If so, the message can't be deleted\n inactiveCount = 0;\n st = db.createStatement();\n rs = st.executeQuery(\n \"SELECT COUNT(*) AS message_count \" +\n \"FROM campaign \" +\n \"WHERE message_id = \" + this.getId() + \" \" +\n \"AND status_id <> \" + Campaign.FINISHED);\n rs.next();\n inactiveCount = rs.getInt(\"message_count\");\n rs.close();\n if (inactiveCount > 0) {\n st.close();\n return false;\n }\n\n //If not, then the message can be deleted because a copy is made for\n //activated campaigns\n if (commit) {\n db.setAutoCommit(false);\n }\n st.executeUpdate(\"DELETE FROM contact_message WHERE message_id = \" + this.getId());\n MessageAttachmentList attachmentList = new MessageAttachmentList();\n attachmentList.delete(db, Constants.MESSAGE_FILE_ATTACHMENTS, this.getId());\n st.executeUpdate(\"DELETE FROM \" + DatabaseUtils.addQuotes(db, \"message\") + \" WHERE id = \" + this.getId());\n st.close();\n if (commit) {\n db.commit();\n }\n } catch (SQLException e) {\n if (commit) {\n db.rollback();\n }\n throw new SQLException(e.toString());\n } finally {\n if (commit) {\n db.setAutoCommit(true);\n }\n }\n return true;\n }",
"public void decache(TransportMessage message) throws TransportException {\n\n try {\n storage(Q_STORENAME).remove(message);\n } catch(IllegalArgumentException iae) {\n //Already removed from the cache. Possibly by another sender. Not a problem.\n Logger._().log(\"transport\", \"Attempt to decache already decached message\", new Date());\n return;\n }\n message.setID(-1);\n\n // if we're dequeuing a successfully sent message\n // then transfer it to the recently sent list\n if (message.isSuccess()) {\n IStorageUtilityIndexed recent = storage(RECENTLY_SENT_STORENAME);\n // ensure that the recently sent store doesn't grow indefinitely\n // by limiting its size\n\n //With threads this gets tricky, since nextID can throw an exception if the iterator becomes invalid\n //before the next ID is retrieved. As such, we'll put this attempt to remove the message in\n //a loop and try to properly use the lock.\n\n boolean entered=false;\n int attempts = 0;\n\n while(attempts < 5 && !entered) {\n attempts++;\n\n if(recent.getNumRecords() == RECENTLY_SENT_STORE_MAXSIZE) {\n try {\n //I don't think we can simply grab the lock, since it's needed\n //by the actual storage processes\n IStorageIterator it = recent.iterate();\n int first = it.nextID();\n recent.remove(first);\n\n //ITERATOR IS NOW INVALID\n } catch(StorageModifiedException sme) {\n //The iterator became invalid before it could properly remove the record\n //in question. Will try again.\n Logger._().log(\"transport\", \"Iterator invalidated before message removal\", new Date());\n } catch(IllegalArgumentException iae) {\n //The record that was going to be removed was deleted before we\n //could get to it. Will try again.\n }\n }\n try {\n recent.write(message);\n entered = true;\n } catch (StorageFullException e) {\n throw new TransportException(e);\n }\n }\n }\n updateCachedCounts();\n }",
"public void resetSystemMessageCount(){\n\t\tiMessageCount = 0;\n\t}",
"@Override\n\tpublic void deleteMessageByMessageId(String messageId) {\n\t\t\n\t}",
"public abstract void groupChatPhotoDeleteMessage(Message m);",
"public int getDeletedMessageCount() throws MessagingException {\n // MONITORENTER : this\n var1_1 = this.isOpen();\n if (!var1_1) {\n // MONITOREXIT : this\n return -1;\n }\n var2_2 = 0;\n var3_3 = this.getMessageCount();\n var4_4 = 1;\n block5 : do {\n if (var4_4 > var3_3) {\n // MONITOREXIT : this\n return var2_2;\n }\n try {\n var1_1 = this.getMessage(var4_4).isSet(Flags.Flag.DELETED);\n var5_5 = var2_2;\n if (var1_1) {\n var5_5 = var2_2 + 1;\n }\nlbl18: // 4 sources:\n do {\n ++var4_4;\n var2_2 = var5_5;\n continue block5;\n break;\n } while (true);\n }\n catch (MessageRemovedException var6_6) {\n var5_5 = var2_2;\n ** continue;\n }\n } while (true);\n }",
"@Override\r\n\tpublic int deleteMessage(int[] list, int[] list2) {\n\t\tfor (int i = 0; i < list.length; i++) {\r\n\t\t\tmessageMapper.deleteMessageById(list[i], list2[i]);\r\n\t\t}\r\n\t\treturn 0;\r\n\t}",
"@Override\n public void handleSuccess(final Message m) {\n queueAccessor.deleteMessage(m.getReceiptHandle());\n }",
"public static Boolean deleteAllAutoReply() {\r\n\r\n\t\ttry {\r\n\r\n\t\t\tdb.execSQL(\"DELETE FROM autoReply\");\r\n\t\t\t//Log.d(\"AUTO_REPLY DELETE\", \"Record deleted!\");\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t//Log.e(\"AUTO_REPLY DELETE\", \"error : \" + e.toString());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"int deleteByExample(TbMessageExample example);",
"@Override\r\n\tpublic int deleteMessageById(int id, int parentid) {\n\t\treturn messageMapper.deleteMessageById(id,parentid);\r\n\t}",
"private boolean checkIfReadyToRemoveFromTracking(long messageID) {\n MsgData messageTrackingData = getTrackingData(messageID);\n return messageTrackingData.messageStatus.isOKToRemove();\n }",
"@Override\n\t\tpublic void onDeletionNotice(long arg0, long arg1) {\n\t\t\t\n\t\t}",
"@Override\n\tprotected List<Message> validateDelete(Long id) {\n\t\treturn null;\n\t}",
"@Override\n\t\t\t\t\tpublic void clearChatMessage() {\n\t\t\t\t\t\tchat.clearChatMsg();\n\t\t\t\t\t}",
"@Override\r\n\tpublic ReturnResultEntity delTenantsMessage(TenantsMessageEntity item) {\n\t\treturn dao.delTenantsMessage(item);\r\n\t}",
"private void deleteFloatingReplies()\n\t{\n\t\tList<DBObject> groupList = groups.find().toArray();\n\t\t\n\t\tfor(DBObject group : groupList)\n\t\t{\n\t\t\tDBCollection c = getGroupColl((String) group.get(\"customID\"));\n\t\t\tList<DBObject> list = c.find(QueryBuilder.start(\"target.messageID\").notEquals(\"\").get()).toArray();\n\t\t\t\n\t\t\tfor(DBObject reply : list)\n\t\t\t{\n\t\t\t\tif(c.findOne(MongoUtils.queryID(((DBObject)reply.get(\"target\")).get(\"messageID\").toString())) == null) {\n\t\t\t\t\tc.remove(reply);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"boolean deleteMessage(int roomId, long messageId) throws RoomNotFoundException, RoomPermissionException, IOException;",
"@Order(6)\n\t\t@TestFactory\n\t\tIterable<DynamicTest> deleteExistingMessages() throws IOException, ParseException {\n\t\t\tCollection<DynamicTest> tests = new ArrayList<DynamicTest>();\n\t\t\tString response = Requests.getMessage(\"\");\n\t\t\tArrayList<String> idList = JSONUtils.getAllRecordsByKey(response, \"id\");\n\t\t\t\n\t\t\tfor (String id: idList) {\n\t\t\t\t//System.out.println(id);\n\t\t\t\tboolean result = Requests.sendDELETEBoolReturn(Requests.MESSAGE_URL, id);\n\t\t\t\t\n\t\t\t\ttests.add(DynamicTest.dynamicTest(\"Verify expected valid deletion of existing messages\", () -> assertTrue(result)));\n\t\t\t}\n\t\t\treturn tests;\n\t\t}",
"public void removeMessage(int i) {\n try {\n this.emails.remove(i);\n System.out.println(\"Email removido com sucesso!\\n\");\n } catch (Exception e) {\n System.out.println(\"ERROR: Mensagem não existe!\");\n }\n }",
"private void cleanActionsTables() {\n getContentResolver().delete(\n ChatObjectContract.CONTENT_URI_ACTIONS_PUBLIC,\n null,\n null\n );\n getContentResolver().delete(\n ChatObjectContract.CONTENT_URI_ACTIONS_PRIVATE,\n BaseColumns.MSG_IN_QUEUE + \"=1\",\n null\n );\n }",
"@Override\r\n\tpublic Message del(int id) {\n\t\treturn new Message(dao.del(id));\r\n\t}",
"@Override\n\t\tpublic void delete() {\n\t\t\tSystem.out.println(\"새로운 삭제\");\n\t\t}",
"@Override\n\tpublic void deleteMsg(int msgNo) {\n\t\tsession.delete(namespace + \".deleteMsg\", msgNo);\n\t}",
"@Override\n public void handleMessage(Message message) {\n switch (message.what) {\n case Flinnt.SUCCESS:\n stopProgressDialog();\n if (LogWriter.isValidLevel(Log.INFO))\n LogWriter.write(\"SUCCESS_RESPONSE : \" + message.obj.toString());\n mAdapter.remove(courseID);\n // Delete Item from offline database\n Helper.showToast(context.getString(R.string.successfully_deleted), Toast.LENGTH_SHORT);\n break;\n\n case Flinnt.FAILURE:\n stopProgressDialog();\n if (LogWriter.isValidLevel(Log.INFO))\n LogWriter.write(\"FAILURE_RESPONSE : \" + message.obj.toString());\n if (((WishResponse) message.obj).errorResponse != null) {\n Helper.showAlertMessage(WishlistActivity.this, \"Error\", ((WishResponse) message.obj).errorResponse.getMessage(), \"CLOSE\");\n }\n\n break;\n default:\n super.handleMessage(message);\n }\n }",
"@Override\n\t\tpublic void onMessageBulkDelete(MessageBulkDeleteEvent event)\n\t\t{\n\t\t\t//These are provided with every event in JDA\n\t\t\tJDA jda = event.getJDA(); //JDA, the core of the api.\n\n\t\t\tlong serverId = event.getGuild().getIdLong();\n\t\t\tlong channelId = event.getChannel().getIdLong();\n\n\t\t\tboolean declaredLoggableHit = false;\n\t\t\tfor (DiscordMonitorTargetIdentifier targetid : DiscordMonitor.this.appconfig.logTargets)\n\t\t\t{\n\t\t\t\tif (!targetid.matches(serverId, channelId, null, null, null, MessageEventType.DELETE))\n\t\t\t\t\tcontinue;\n\n\t\t\t\t// All conditions passed.\n\t\t\t\tif (!declaredLoggableHit)\n\t\t\t\t{\n\t\t\t\t\tdeclaredLoggableHit = true;\n\t\t\t\t\tSystem.out.print(\"(i) Logging for:\");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\" \" + targetid.identifierLabel);\n\t\t\t}\n\t\t\tif (declaredLoggableHit)\n\t\t\t\tSystem.out.println();\n\n\t\t\tboolean declaredNotificationHit = false;\n\t\t\tfor (DiscordMonitorTargetIdentifier targetid : DiscordMonitor.this.appconfig.notificationWatchlist)\n\t\t\t{\n\t\t\t\tif (!targetid.matches(serverId, channelId, null, null, null, MessageEventType.DELETE))\n\t\t\t\t\tcontinue;\n\n\t\t\t\t// All conditions passed.\n\t\t\t\tif (!declaredNotificationHit)\n\t\t\t\t{\n\t\t\t\t\tdeclaredNotificationHit = true;\n\t\t\t\t\tSystem.out.print(\"/!\\\\ WATCHLIST HIT:\");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\" \" + targetid.identifierLabel);\n\t\t\t}\n\t\t\tif (declaredNotificationHit)\n\t\t\t\tSystem.out.println();\n\n\n\t\t\tStringBuilder msg = new StringBuilder(\"\\n\")\n\t\t\t\t.append(\"Time: \").append(OffsetDateTime.now().format(DiscordMonitor.LOG_DATETIME_FORMAT)).append(\" (approximate)\")\n\t\t\t\t.append(\"\\nMESSAGES DELETED:\");\n\t\t\tfor (String msgId : event.getMessageIds())\n\t\t\t\tmsg.append(\" \").append(msgId);\n\n\t\t\t//TODO Poll .sqlite db for previous message details\n\n\t\t\tTextChannel textChannel = (TextChannel)event.getChannel();\n\t\t\tSystem.out.printf(\"(%s)[%s]: %s\\n\\n\", textChannel.getGuild().getName(), textChannel.getName(), msg);\n\t\t}",
"@Override\n\tpublic boolean delete(Message entity) throws SQLException {\n\t\treturn false;\n\t}",
"static boolean delete(SQLiteDatabase db, long msgId) {\n return db.delete(TABLE_NAME, _ID + \"=\" + msgId, null) > 0;\n }",
"public int deleteMessageFromDatabaseById(long id) {\r\n\t\tint recordsDeleted = 0;\r\n\r\n\t\ttry {\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\r\n\t\t\tConnection conn = DriverManager.getConnection(url, user, password);\r\n\r\n\t\t\tPreparedStatement statement = conn.prepareStatement(sql_deleteMessageFromDatabaseById, Statement.RETURN_GENERATED_KEYS);\r\n\t\t\tstatement.setLong(1, id);\r\n\r\n\t\t\trecordsDeleted = statement.executeUpdate();\r\n\t\t\tconn.close();\r\n\t\t} catch (ClassNotFoundException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t} catch (SQLException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn recordsDeleted;\r\n\t}",
"public void clearMessages() throws RemoteException {\r\n messages.removeAllElements();\r\n }",
"public void clickToDeleteTextMessageUserLeft(MessageUser message, String mTalkerId) {\n mIvGarbageMessage.setOnClickListener(v -> {\n if (!ShowSnackBarInfoInternet.checkConnectionAnother()) {\n ShowSnackBarInfoInternet.showToastInfoInternet(mContext);\n } else {\n showDialogToDeleteMessage(mContext, message, mTalkerId);\n }\n });\n\n }",
"@Override\n\tpublic void deleteMsgById(int mid) {\n\t\tmp.deleteMsgById(mid);\n\t}",
"int deleteByExample(PrivateMessageExample example);",
"public void deleteAllLog()\n\t{\n\t\tchatLog.clear();\n\t}",
"public boolean deleteMessage(int idMessage) {\n Boolean aBoolean = getMessage(idMessage).map(message -> {\n messageRepository.delete(message);\n return true;\n }).orElse(false);\n return aBoolean;\n }",
"private void deleteLeftOversFromDB(String uid, String message){\n Toast.makeText(RegistrationActivity.this, message, Toast.LENGTH_LONG).show();\n database.getReference(\"ids\").child(uid).removeValue(); //remove the id from ids if user wasn't created eventually\n mAuth.getCurrentUser().delete(); // remove the user from the authentication db if user not created\n }",
"private void handleWhiteboardCleared() {\n for (SocketConnection tobeNotified : SocketManager.getInstance()\n .getNotManagerConnectionList()) {\n tobeNotified.send(this.message);\n }\n }",
"public void handleMessage(Message message) {\n super.handleMessage(message);\n \n if (message.arg1 == KeychainIntentServiceHandler.MESSAGE_OKAY) {\n Toast.makeText(activity, R.string.file_delete_successful,\n Toast.LENGTH_SHORT).show();\n }\n }",
"public void onClick(DialogInterface dialog, int whichButton) {\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n\r\n Realm.getInstanceAsync(_RealmController.getConfigurationOnlyForWriteQueriesInUIAsyc(),\r\n new Realm.Callback() {\r\n @Override\r\n public void onSuccess(@NonNull Realm realm) {\r\n _RealmController.deleteAMessage(realm, message);\r\n }\r\n });\r\n\r\n\r\n }\r\n });\r\n\r\n }",
"protected void delete () {\n OleThreadRequest request = \n new OleThreadRequest(DELETE,\n 0, 0, 0, 0);\n synchronized (this) {\n messagesWaiting.add(request);\n notify();\n }\n while (!request.finished) { \n synchronized(request) {\n try {\n request.wait(POLL_FOR_RESULT_HEARTBEAT);\n }\n catch (InterruptedException e) { \n }\n } \n }\n }",
"public void setAllowMessageDel(Boolean delete) {\n this.allowMessageDel = delete;\n }",
"private String onClearAllIntent() {\n\t\tprops.clear();\n\t\treturn \"Okido, I've cleaned all previous entries.\";\n\t}",
"public void stampMessageAsDLCAndRemoveFromTacking(long messageID) throws AndesException {\n //remove actual object from memory\n if(log.isDebugEnabled()) {\n log.debug(\"Removing all tracking of message id = \" + messageID);\n }\n MsgData trackingData = msgId2MsgData.remove(messageID);\n UUID channelID = trackingData.channelId;\n String queueName = trackingData.queue;\n Slot slot = trackingData.slot;\n releaseMessageDeliveryFromTracking(channelID, messageID);\n releaseMessageBufferingFromTracking(slot, messageID);\n\n decrementMessageCountInSlotAndCheckToResend(slot, queueName);\n }",
"@AfterClass(groups ={\"Attachment\",\"Body\",\"AttachmentBody\"})\n\tpublic void deleteMails() {\n\t\tdciFunctions.deleteAllEmailsFromInbox(suiteData);\n\t}",
"public void cleanErrorMessages() {\r\n\r\n }",
"@Override\n\tpublic int deleteNotice(int id) throws Exception {\n\t\treturn -1;//res;\n\t}",
"@Override\n\tpublic void confirmAndSendMessage(String messageId) {\n\t\t\n\t}",
"private void delete() {\n\n\t}",
"private byte[] handleDelete() {\n\t\tboolean success = replaceSecretWith(currentUser, \"\");\n\n\t\tif (success) {\n\t\t\tComMethods.report(\"SecretServer has deleted \"+currentUser+\"'s secret.\", simMode);\n\t\t\treturn preparePayload(\"secretdeleted\".getBytes());\n\t\t} else {\n\t\t\tComMethods.report(\"SecretServer has FAILED to delete \"+currentUser+\"'s secret.\", simMode);\n\t\t\treturn preparePayload(\"writingfailure\".getBytes());\n\t\t}\n\t}"
]
| [
"0.67509645",
"0.67443085",
"0.66470754",
"0.66258293",
"0.65486073",
"0.6478055",
"0.64338994",
"0.63736683",
"0.6359684",
"0.6348178",
"0.6339886",
"0.6336516",
"0.6312401",
"0.6298116",
"0.6293213",
"0.62849486",
"0.6248561",
"0.62325317",
"0.6229878",
"0.6188247",
"0.6185392",
"0.618458",
"0.6177765",
"0.61737007",
"0.61559224",
"0.613539",
"0.61090845",
"0.6099666",
"0.6088681",
"0.60858446",
"0.6070045",
"0.6067503",
"0.60617405",
"0.60473347",
"0.60337144",
"0.6017903",
"0.6010461",
"0.597034",
"0.5969639",
"0.59683967",
"0.5967949",
"0.59583396",
"0.5947369",
"0.5928922",
"0.59287655",
"0.5926646",
"0.59163755",
"0.5915553",
"0.5905054",
"0.5882915",
"0.5867439",
"0.5864745",
"0.5842045",
"0.58413583",
"0.5826208",
"0.581075",
"0.5802971",
"0.5801223",
"0.57945895",
"0.5793159",
"0.5783969",
"0.57423925",
"0.5735709",
"0.57335395",
"0.5731201",
"0.57249546",
"0.57177675",
"0.57148707",
"0.571038",
"0.5707852",
"0.5704716",
"0.5701398",
"0.568336",
"0.5669304",
"0.5667032",
"0.5659372",
"0.5653987",
"0.56516355",
"0.5643604",
"0.5642625",
"0.56403935",
"0.5634385",
"0.5624014",
"0.56182784",
"0.5614247",
"0.56126064",
"0.5601115",
"0.5596009",
"0.5593937",
"0.55937284",
"0.55903566",
"0.558257",
"0.557032",
"0.55669993",
"0.55636734",
"0.5548648",
"0.5547365",
"0.55309236",
"0.55289876",
"0.55283576",
"0.5528045"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public int itemLayoutRes()
{
return R.layout.recommendlist_item;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public View getView(int position, View convertView, ViewGroup parent, ViewHolder viewHolder)
{
ImageView iv_avatar = viewHolder.obtainView(convertView, R.id.iv_avatar);
ViewGroup.LayoutParams layoutParams = iv_avatar.getLayoutParams();
layoutParams.height = YARDisplayUtil.getScreenWidth() / 4 - 30;
iv_avatar.setLayoutParams(layoutParams);
TextView tv_age = viewHolder.obtainView(convertView, R.id.tv_age);
User user = list.get(position);
YARImageLoader.newInstance().get(iv_avatar, user.avatar);
tv_age.setText(user.age + "");
return convertView;
} | {
"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 |
double saldoAlterado = saldo valor; saldo = saldoAlterado; OUTRO OPCAO1 saldo = saldo valor; OUTRO OPCAO2 saldo = valor; OUTRO OPCAO3 this.saldo = valor; | boolean sacar(double valor) {
if (valor <= this.saldo+this.limite) {
this.saldo -= valor;
return true;
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSaldo(double saldo) {\r\n this.saldo = saldo;\r\n }",
"public void setSaldo(double saldo) {\n this.saldo = saldo;\n }",
"public void setMontoDescuento(double param){\n \n this.localMontoDescuento=param;\n \n\n }",
"public void setMontoPedidoRechazado(double param){\n \n this.localMontoPedidoRechazado=param;\n \n\n }",
"public Cuenta(Usuario usuario) { // constructor que crea objetos tipo cuenta que recibe por parámetro\n //un objeto de tipo usuario\n\n this.usuario = usuario;\n saldo = 0;\n }",
"public void hallarPerimetroEscaleno() {\r\n this.perimetro = this.ladoA+this.ladoB+this.ladoC;\r\n }",
"public void depositar(double valor) {\n this.saldo += valor;\n }",
"public void setMontoSolicitado(double param){\n \n this.localMontoSolicitado=param;\n \n\n }",
"public void setMontoFacturadoSinDescuento(double param){\n \n this.localMontoFacturadoSinDescuento=param;\n \n\n }",
"public Calculadora(){\n this.operador1 = 0.0;\n this.operador2 = 0.0;\n this.resultado = 0.0;\n }",
"public void setSaldo(double saldo) {\n\t\tthis.saldo = saldo;\n\t}",
"public abstract void sacar( Double valor);",
"public Cuadrado (double lado){\n this.lado = lado;\n }",
"void modificarSaldo(int cantidad){\n this.saldo = this.saldo + cantidad;\n }",
"public void setPreco(Double preco);",
"@Override\r\n public void hallarPerimetro() {\r\n this.perimetro = this.ladoA*3;\r\n }",
"public void setMontoEstimado(double param){\n \n this.localMontoEstimado=param;\n \n\n }",
"public Conta(String numero, String agencia, Double saldo) { // Construtor 1\n this.numero = numero;\n this.agencia = agencia;\n this.saldo = saldo;\n }",
"public void setMontoFacturado(double param){\n \n this.localMontoFacturado=param;\n \n\n }",
"void setMonto(double monto);",
"void setMonto(double monto);",
"public void deposito (double valor) {\r\n\t\tsetSaldoConta(getLimiteCorrente()+getSaldoConta()+valor);\r\n\t}",
"public Funcionario(String nome, double salario){//construtor\nthis.nome=nome;\nthis.salario=salario;\n\n}",
"public void calcular()\r\n/* 530: */ {\r\n/* 531:556 */ this.facturaProveedorSRI.setMontoIva(this.facturaProveedorSRI.getBaseImponibleDiferenteCero().multiply(\r\n/* 532:557 */ ParametrosSistema.getPorcentajeIva().divide(BigDecimal.valueOf(100L))));\r\n/* 533: */ }",
"public SuperRodada(){\n this.pontos_em_disputa=0;\n this.truco=false;\n this.Desafiante=null;\n this.addPontosEmDisputa(2);\n Game game = Game.getGame();\n DonoDoBaralho=(DonoDoBaralho==null)?game.getDupla(1).getJogadorA():this.proximoAJogar(DonoDoBaralho);\n \n }",
"public void setMontoCatalogoEstimado(double param){\n \n this.localMontoCatalogoEstimado=param;\n \n\n }",
"public double calculoCuotaEspecialOrdinario() {\n\tdouble resultado =0;\n\tresultado = (getMontoCredito()+(getMontoCredito()*getInteres()/100))/getPlazo(); \n\treturn resultado;\n}",
"@Override\r\n\tpublic void salarioNovo(double salario) {\n\t\tthis.valor=salario;\r\n\r\n\t\t\r\n\t}",
"public void setPercepcion(double param){\n \n this.localPercepcion=param;\n \n\n }",
"public void setInsertarSaldo() {\r\n\t\tSystem.out.println(\"Insertar saldo:\");\r\n\t\tScanner scanner = new Scanner (System.in);\r\n\t\tsaldo = scanner.nextDouble();\r\n\t}",
"@Override\n public double calculaSalario() \n {\n double resultado = valor_base - ((acumulado * 0.05) * valor_base);\n resultado += auxilioProcriacao();\n //vale-coxinha\n resultado += 42;\n return resultado;\n }",
"public void sacar(double valor) {\n this.saldo -= valor;\n }",
"private void limpiarValores(){\n\t\tpcodcia = \"\";\n\t\tcedula = \"\";\n\t\tcoduser = \"\";\n\t\tcluser = \"\";\n\t\tmail = \"\";\n\t\taudit = \"\";\n\t\tnbr = \"\";\n\t\trol = \"\";\n\t}",
"public void pridejNovePivo ()\n\t{\n\t\n\t\tpivo = pivo + PRODUKCE;\n\t\t\n\t}",
"@Test\n public void testSetSaldo() {\n System.out.println(\"setSaldo\");\n double saldo = 0.0;\n DetalleAhorro instance = new DetalleAhorro();\n instance.setSaldo(saldo);\n // TODO review the generated test code and remove the default call to fail.\n // fail(\"The test case is a prototype.\");\n }",
"public double getSaldo() {\r\n return saldo;\r\n }",
"public double getSaldo() {\r\n return saldo;\r\n }",
"public void setValorCalculo(ValoresCalculo valorCalculo)\r\n/* 93: */ {\r\n/* 94:111 */ this.valorCalculo = valorCalculo;\r\n/* 95: */ }",
"double getDiametro(){\n return raggio * 2;\n }",
"public void Nodo(){\r\n this.valor = \"\";\r\n this.siguiente = null;\r\n }",
"public void setSaldoKoperasi(double saldoKoperasi) {\n this.saldoKoperasi = saldoKoperasi;\n }",
"public void setlado(int lado) {\r\n this.lado = lado;\r\n }",
"public int precioFinal(){\r\n int monto=super.PrecioFinal();\r\n\t \t \r\n\t if (pulgadas>40){\r\n\t monto+=precioBase*0.3;\r\n\t }\r\n\t if (sintonizador){\r\n\t monto+=50;\r\n\t }\r\n\t \r\n\t return monto;\r\n\t }",
"void setSalario(double salario);",
"@Override\r\n public long deposito(long deposito) {\n saldo += deposito;\r\n \r\n // Mediante un cuadro de dialogo se anuncia el nuevo saldo\r\n JOptionPane.showMessageDialog(null, \"Su nuevo saldo es: \" + saldo);\r\n\r\n return saldo;\r\n\r\n }",
"public void recarga(){\n \tthis.fuerza *= 1.1;\n \tthis.vitalidad *= 1.1; \n }",
"public double getMontoDescuento(){\n return localMontoDescuento;\n }",
"public double getMontoPedidoRechazado(){\n return localMontoPedidoRechazado;\n }",
"public double getSaldo() {\n return saldo;\n }",
"public double getSaldo() {\n return saldo;\n }",
"double getPerimetro(){\n return 2 * 3.14 * raggio;\n }",
"public void sueldo(){\n if(horas <= 40){\n sueldo = horas * cuota;\n }else {\n if (horas <= 50) {\n sueldo = (40 * cuota) + ((horas - 40) * (cuota * 2));\n } else {\n sueldo = ((40 * cuota) + (10 * cuota * 2)) + ((horas - 50) + (cuota * 3));\n }\n }\n\n }",
"@Override\n public void llenardeposito(){\n this.setCombustible(getTankfuel());\n }",
"@Override\r\n\tpublic void salarioAtual() {\n\t\tSystem.out.print(\"VALOR ATUAL\"+this.valor);\r\n\t\t\r\n\t}",
"public CuentaAhorroP(int numCl, String nom, String numCu, double inve, double intAnual, int plazoInv,\n double saldo){\n this.numCl = numCl;\n this.nom = nom;\n this.numCu = numCu;\n this.inve = inve;\n this.intAnual = intAnual;\n this.plazoInv = plazoInv;\n this.saldo = saldo;\n }",
"public double getCustoAluguel(){\n return 2 * cilindradas;\n }",
"public void salvarProdutos(Produto produto){\n }",
"public double darCosto(){\n return costo;\n }",
"public static void main(String[] args) {\n\n Poupanca poupanca = new Poupanca();\n\n Corrente corrente = new Corrente();\n\n poupanca.setNome(\"maria\");\n poupanca.setNumero(123);\n poupanca.setDiaAniversario(10);\n poupanca.depositar(100);\n\n\n System.out.println(\"=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\");\n System.out.println(\"nome do cliente da poupança:\" + poupanca.getNome());\n\n boolean operacao = poupanca.sacar(50);\n\n if(operacao){\n System.out.println(\"saque realizado com sucesso\");\n }else {\n System.out.println(\"saldo insuficiente\");\n }\n\n System.out.println(\"saldo de \" + poupanca.getNome() + \": \" + poupanca.getSaldo());\n\n\n // para conta corrente\n corrente.setNumero(234);\n corrente.setNome(\"rafael\");\n corrente.depositar(1000);\n corrente.setLimite(500);\n\n System.out.println(\"=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\");\n System.out.println(\"nome do cliente: \" + corrente.getNome());\n System.out.println(\"saldo atual: \" + corrente.getSaldo());\n\n operacao = corrente.sacar(500);\n\n if(operacao){\n System.out.println(\"saque realizado com sucesso\");\n }else {\n System.out.println(\"saldo insuficiente\");\n }\n\n System.out.println(\"saldo atual: \" + corrente.getSaldo());\n System.out.println(\"=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\");\n\n Corrente corrente1 = new Corrente();\n corrente1.setSaldo(1000);\n\n GerenciarPatrimonioBanco gp = new GerenciarPatrimonioBanco();\n gp.adicionarConta(corrente);\n gp.adicionarConta(poupanca);\n gp.adicionarConta(corrente1);\n\n System.out.println();\n System.out.println(\"=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\");\n System.out.println(\"total do dinheiro dos clientes no banco: \" );\n System.out.println(gp.getTotalPatrimonio());\n\n System.out.println(\"=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\");\n\n }",
"public double getMontoSolicitado(){\n return localMontoSolicitado;\n }",
"public void codigo(String cadena, String codigo,int codigos,Reserva2 reserva,JDateChooser dateFechaIda,JDateChooser dateFechaVuelta,JTextField DineroFaltante) {\n\t\tcadena=codigo.split(\",\")[1];\n\t\tubicacion=codigo.split(\",\")[5];\n\t\tnombre=codigo.split(\",\")[3];\n\t\tprecio=codigo.split(\",\")[8];\n\t\tcodigos=Integer.parseInt(cadena);\n\t\tSystem.out.println(\"hola\");\n\t\tSystem.out.println(Modelo1.contador);\n\t\t\n\t\tif(Modelo1.contador==1) {\n\t\t\treserva.setUbicacion(ubicacion);\n\t\t\treserva.setCodigohotel(codigos);\n\t\t\treserva.setNombreAlojamiento(nombre);\n\t\t\t\n\t\t}\n\t\telse if(Modelo1.contador==2) {\n\t\t\t\n\t\t\totroprecio=Double.parseDouble(precio);\n\t\t\treserva.setUbicacion(ubicacion);\n\t\t\treserva.setCodigocasa(codigos);\n\t\t\treserva.setNombreAlojamiento(nombre);\n\t\t\tpreciofinal=metodos.preciototal(dateFechaIda, dateFechaVuelta, otroprecio);\n\t\t\treserva.setPrecio(preciofinal);\n\t\t\tSystem.out.println(reserva.getUbicacion());\n\t\t\tSystem.out.println(reserva.getCodigocasa());\n\t\t\tSystem.out.println(reserva.getNombreAlojamiento());\n\t\t\tSystem.out.println(reserva.getPrecio());\n\t\t\tDineroFaltante.setText(reserva.getPrecio()+\" \\u20ac\");\n\t\t\tModelo1.total_faltante = reserva.getPrecio();\n\t\t\t\n\t\t}\n\t\telse if(Modelo1.contador==3) {\n\t\t\t\n\t\t\totroprecio=Double.parseDouble(precio);\n\t\t\treserva.setUbicacion(ubicacion);\n\t\t\treserva.setCodigoapatamento(codigos);\n\t\t\treserva.setNombreAlojamiento(nombre);\n\t\t\tpreciofinal=metodos.preciototal(dateFechaIda, dateFechaVuelta, otroprecio);\n\t\t\treserva.setPrecio(preciofinal);\n\t\t\tSystem.out.println(reserva.getUbicacion());\n\t\t\tSystem.out.println(reserva.getCodigoapatamento());\n\t\t\tSystem.out.println(reserva.getNombreAlojamiento());\n\t\t\tSystem.out.println(reserva.getPrecio());\n\t\t\tDineroFaltante.setText(reserva.getPrecio()+\" \\u20ac\");\n\t\t\tModelo1.total_faltante = reserva.getPrecio();\n\t\t}\n\t\t\n\t}",
"public void setSueldo(double sueldo) {\n this.sueldo = sueldo;\n }",
"private void setPrecioVentaBaterias() throws Exception {\n\t\tRegisterDomain rr = RegisterDomain.getInstance();\n\t\tlong idListaPrecio = this.selectedDetalle.getListaPrecio().getId();\n\t\tString codArticulo = this.selectedDetalle.getArticulo().getCodigoInterno();\t\t\n\t\tArticuloListaPrecioDetalle lista = rr.getListaPrecioDetalle(idListaPrecio, codArticulo);\n\t\tString formula = this.selectedDetalle.getListaPrecio().getFormula();\n\t\tif (lista != null && formula == null) {\n\t\t\tthis.selectedDetalle.setPrecioGs(this.selectedCondicion.isCondicionContado()? lista.getPrecioGs_contado() : lista.getPrecioGs_credito());\n\t\t} else {\n\t\t\tdouble costo = this.selectedDetalle.getArticulo().getCostoGs();\n\t\t\tint margen = this.selectedDetalle.getListaPrecio().getMargen();\n\t\t\tdouble precio = ControlArticuloCosto.getPrecioVenta(costo, margen);\n\t\t\t\n\t\t\t// formula lista precio mayorista..\n\t\t\tif (idListaPrecio == 2 && formula != null) {\n\t\t\t\tArticuloListaPrecio distribuidor = (ArticuloListaPrecio) rr.getObject(ArticuloListaPrecio.class.getName(), 1);\n\t\t\t\tArticuloListaPrecioDetalle precioDet = rr.getListaPrecioDetalle(distribuidor.getId(), codArticulo);\n\t\t\t\tif (precioDet != null) {\n\t\t\t\t\tdouble cont = precioDet.getPrecioGs_contado();\n\t\t\t\t\tdouble cred = precioDet.getPrecioGs_credito();\n\t\t\t\t\tdouble formulaCont = cont + Utiles.obtenerValorDelPorcentaje(precioDet.getPrecioGs_contado(), 10);\n\t\t\t\t\tdouble formulaCred = cred + Utiles.obtenerValorDelPorcentaje(precioDet.getPrecioGs_credito(), 10);\n\t\t\t\t\tthis.selectedDetalle.setPrecioGs(this.selectedCondicion.isCondicionContado()? formulaCont : formulaCred);\n\t\t\t\t} else {\n\t\t\t\t\tmargen = distribuidor.getMargen();\n\t\t\t\t\tdouble precioGs = ControlArticuloCosto.getPrecioVenta(costo, margen);\n\t\t\t\t\tdouble formula_ = precioGs + Utiles.obtenerValorDelPorcentaje(precioGs, 10);\n\t\t\t\t\tthis.selectedDetalle.setPrecioGs(formula_);\n\t\t\t\t}\n\n\t\t\t// formula lista precio minorista..\n\t\t\t} else if (idListaPrecio == 3 && formula != null) {\n\t\t\t\tArticuloListaPrecio distribuidor = (ArticuloListaPrecio) rr.getObject(ArticuloListaPrecio.class.getName(), 1);\n\t\t\t\tArticuloListaPrecioDetalle precioDet = rr.getListaPrecioDetalle(distribuidor.getId(), codArticulo);\n\t\t\t\tif (precioDet != null) {\n\t\t\t\t\tdouble cont = precioDet.getPrecioGs_contado() + Utiles.obtenerValorDelPorcentaje(precioDet.getPrecioGs_contado(), 10);\n\t\t\t\t\tdouble cred = precioDet.getPrecioGs_credito() + Utiles.obtenerValorDelPorcentaje(precioDet.getPrecioGs_credito(), 10);\n\t\t\t\t\tdouble formulaCont = (cont * 1.15) / 0.8;\n\t\t\t\t\tdouble formulaCred = (cred * 1.15) / 0.8;\n\t\t\t\t\tthis.selectedDetalle.setPrecioGs(this.selectedCondicion.isCondicionContado()? formulaCont : formulaCred);\n\t\t\t\t} else {\n\t\t\t\t\tmargen = distribuidor.getMargen();\n\t\t\t\t\tdouble precioGs = ControlArticuloCosto.getPrecioVenta(costo, margen);\n\t\t\t\t\tdouble formula_ = ((precioGs + Utiles.obtenerValorDelPorcentaje(precioGs, 10)) * 1.15) / 0.8;\n\t\t\t\t\tthis.selectedDetalle.setPrecioGs(formula_);\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tthis.selectedDetalle.setPrecioGs(precio);\n\t\t\t}\t\t\n\t\t}\n\t}",
"@Override\n public void cantidad_Ataque(){\n ataque=5+2*nivel+aumentoT;\n }",
"private void funcaoTotalPedido() {\n\n ClassSale.paymentCoupon(codeCoupon);\n BigDecimal smallCash = PaymentCoupon.getSmallCash();\n\n jTextValueTotalCoupon.setText(v.format(PaymentCoupon.getTotalCoupon()));\n \n jTextSmallCash.setText(v.format(smallCash.setScale(2, BigDecimal.ROUND_HALF_UP)));\n //jTextValueTotalDiscontCoupon.setText(v.format(PagamentoPedido.getDesconto_pagamento()));\n\n if (smallCash.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue() < 0) {\n valor_devido = smallCash.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();\n jTextCash.setText(\"0,00\");\n jTextValueDiscontCoupon.setText(\"0,00\");\n jTextCash.requestFocus(true);\n } else {\n\n if (last_cod_tipo_pagamento != null && smallCash.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue() > 0) {\n\n if (JOptionPane.showConfirmDialog(this, \"Não é permitido troco para pagamento com cartão.\\nDeseja emitir um contra vale?\", \"Mensagem\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, icon) == 0) {\n\n JOptionPane.showMessageDialog(this, \"Emitindo contra vale...\");\n\n fechouVenda = true;\n //BeanConsulta.setVenda_fechada(fechouVenda);\n this.dispose();\n\n } else {\n\n funcaoLimpaPag();\n }\n } else {\n \n \n valor_devido = smallCash.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue(); \n jButtonFinalizaCalculoPagameto.setEnabled(true);\n jButtonFinalizaCalculoPagameto.requestFocus(true);\n\n }\n }\n\n }",
"public Variables() {\n this.numCliente = 0;\n this.tiempoSalida = 999;\n }",
"public void calculos() {\n a = a1+a2+a3;\n b = b1+b2+b3;\n c = c1+c2+c3;\n }",
"public Comida(String nombre, double valor){\n super(nombre, valor);\n this.calorias = 10;\n }",
"public void abrir(String name, String rfc, Double sueldo, Double aguinaldo2,// Ya esta hecho es el vizualizador\r\n\t\t\tDouble primav2, Double myH2, Double gF, Double sGMM2, Double hip, Double donat, Double subR,\r\n\t\t\tDouble transp, String NivelE, Double colegiatura2) {\r\n\t\tthis.nombre=name;//\r\n\t\tthis.RFC=rfc;//\r\n\t\tthis.SueldoM=sueldo;//\r\n\t\tthis.Aguinaldo=aguinaldo2;//\r\n\t\tthis.PrimaV=primav2;//\r\n\t\tthis.MyH=myH2;//\r\n\t\tthis.GatsosFun=gF;//\r\n\t\tthis.SGMM=sGMM2;//\r\n\t\tthis.Hipotecarios=hip;//\r\n\t\tthis.Donativos=donat;//\r\n\t\tthis.SubRetiro=subR;//\r\n\t\tthis.TransporteE=transp;//\r\n\t\tthis.NivelE=NivelE;//\r\n\t\tthis.Colegiatura=colegiatura2;//\r\n\t\t\r\n\t\tthis.calculo(this.nombre, this.RFC, this.SueldoM, this.Aguinaldo, this.PrimaV,this.MyH,this.GatsosFun,\r\n\t\t\t\tthis.SGMM,this.Hipotecarios,this.Donativos,this.SubRetiro,this.TransporteE,this.NivelE,this.Colegiatura);\r\n\t\t\r\n\t\tpr.Imprimir(this.nombre, this.RFC, this.SueldoM,this.IngresoA,this.Aguinaldo,this.PrimaV,this.MyH,this.GatsosFun,this.SGMM,this.Hipotecarios,this.Donativos,this.SubRetiro,this.TransporteE,this.NivelE,this.Colegiatura,this.AguinaldoE,this.AguinaldoG,this.PrimaVE,this.PrimaVG,this.TotalIngresosG,this.MaxDedColeg,this.TotalDedNoRetiro,this.DedPerm,this.MontoISR,this.CuotaFija,this.PorcExced,this.PagoEx,this.Total);\r\n\t\t\r\n\t}",
"public double estado() {\r\n return getSaldo();\r\n }",
"public double calcular_costo() {\n\t\t return 1.3*peso+30 ;\n\t}",
"public void setValor(String valor)\n/* 22: */ {\n/* 23:34 */ this.valor = valor;\n/* 24: */ }",
"public BigDecimal getSaldo() {\r\n return saldo;\r\n }",
"public ValorPorUnidadLogic()throws SQLException,Exception {\r\n\t\tsuper();\r\n\t\t\r\n\t\ttry\t{\t\t\t\t\t\t\r\n\t\t\tthis.valorporunidadDataAccess = new ValorPorUnidadDataAccess();\r\n\t\t\t\r\n\t\t\tthis.valorporunidads= new ArrayList<ValorPorUnidad>();\r\n\t\t\tthis.valorporunidad= new ValorPorUnidad();\r\n\t\t\t\r\n\t\t\tthis.valorporunidadObject=new Object();\r\n\t\t\tthis.valorporunidadsObject=new ArrayList<Object>();\r\n\t\t\t\t\r\n\t\t\t/*\r\n\t\t\tthis.connexion=new Connexion();\r\n\t\t\tthis.datosCliente=new DatosCliente();\r\n\t\t\tthis.arrDatoGeneral= new ArrayList<DatoGeneral>();\r\n\t\t\t\r\n\t\t\t//INICIALIZA PARAMETROS CONEXION\r\n\t\t\tthis.connexionType=Constantes.CONNEXIONTYPE;\r\n\t\t\tthis.parameterDbType=Constantes.PARAMETERDBTYPE;\r\n\t\t\t\r\n\t\t\tif(Constantes.CONNEXIONTYPE.equals(ConnexionType.HIBERNATE)) {\r\n\t\t\t\tthis.entityManagerFactory=ConstantesCommon.JPAENTITYMANAGERFACTORY;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.datosDeep=new DatosDeep();\r\n\t\t\tthis.isConDeep=false;\r\n\t\t\t*/\r\n\t\t\t\r\n\t\t\tthis.valorporunidadDataAccess.setConnexionType(this.connexionType);\r\n\t\t\tthis.valorporunidadDataAccess.setParameterDbType(this.parameterDbType);\r\n\t\t\t\r\n\t\t\t\r\n\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tthis.invalidValues=new InvalidValue[0];\r\n\t\t\tthis.stringBuilder=new StringBuilder();\r\n\t\t\tthis.conMostrarMensajesStringBuilder=true;\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t \r\n }",
"public void setSaldo(final BigDecimal saldoConta) {\r\n this.saldo = saldoConta.setScale(2, RoundingMode.HALF_EVEN);\r\n }",
"public void precioFinal(){\r\n if(getConsumoEnergetico() == Letra.A){\r\n precioBase = 100+precioBase;\r\n }\r\n else if((getConsumoEnergetico() == Letra.B)){\r\n precioBase = 80+precioBase;\r\n }\r\n else if(getConsumoEnergetico() == Letra.C){\r\n precioBase = 60+precioBase;\r\n }\r\n else if((getConsumoEnergetico() == Letra.D)){\r\n precioBase = 50+precioBase;\r\n }\r\n else if(getConsumoEnergetico() == Letra.E){\r\n precioBase = 30+precioBase;\r\n }\r\n else if((getConsumoEnergetico() == Letra.F)){\r\n precioBase = 10+precioBase;\r\n }\r\n else{\r\n aux=1;\r\n System.out.println(\"...No existe...\");\r\n }\r\n if (aux==0){\r\n peso();\r\n }\r\n \r\n }",
"public void calculoSalarioBruto(){\n salarioBruto = hrTrabalhada * valorHr;\n }",
"public void ponerDinero(double platita){\r\n if (platita > 0)\r\n setMonto(getMonto() + platita);\r\n }",
"public double getMontoFacturado(){\n return localMontoFacturado;\n }",
"void desconto_final(){\n setDesconto_final(this.inss + this.irpf);\n System.out.println(\"desconto_total = R$ \" + arredondar(this.desconto_final));\n }",
"public DuploQuantidadeFaturacao(){\r\n faturacao = 0;\r\n quantidade = 0;\r\n }",
"public void Ordenamiento() {\n\n\t}",
"public Double getPotencia(){\n return this.valor;\n }",
"@Override\n protected void carregaObjeto() throws ViolacaoRegraNegocioException {\n entidade.setNome( txtNome.getText() );\n entidade.setDescricao(txtDescricao.getText());\n entidade.setTipo( txtTipo.getText() );\n entidade.setValorCusto(new BigDecimal((String) txtCusto.getValue()));\n entidade.setValorVenda(new BigDecimal((String) txtVenda.getValue()));\n \n \n }",
"public void engordar(double peso){\r\n\t\tthis.peso = this.peso + peso;\r\n\t}",
"private double calculeSalaires() {\n return salaireHoraire * heures;\n }",
"public void refreshDatos(String jugador, String oponente, double saldo, double saldo2, float apuesta) {\n lblJugador.setText(\"Jug.: \" + jugador);\n lblOponente.setText(\"Op.: \" + oponente);\n lblSaldo.setText(\"Saldo Jug1: $\" + saldo);\n lblSaldo2.setText(\"Saldo Jug2: $\" + saldo2);\n txtApuesta.setText(\"Apuesta: $\" + apuesta);\n }",
"public void setValor(Double valor) {\n this.valor = valor;\n }",
"@Override\r\n\tpublic float chekearDatos(){\r\n\t\t\r\n\t\tfloat monto = 0f;\r\n\t\tfloat montoPorMes = creditoSolicitado/plazoEnMeses;\r\n\t\tdouble porcentajeDeSusIngesosMensuales = (cliente.getIngresosMensuales()*0.7);\r\n\t\t\r\n\t\tif(cliente.getIngresoAnual()>=15000f && montoPorMes<=porcentajeDeSusIngesosMensuales){\r\n\t\t\t\r\n\t\t\tmonto = this.creditoSolicitado;\r\n\t\t\tsetEstadoDeSolicitud(true);\r\n\t\t}\t\r\n\t\t\r\n\t\t\r\n\t\treturn monto;\r\n\t}",
"public void realizarDeposito(String codigo_cuenta, double monto) {\n try {\n Cuenta cuenta = obtenerCuenta(codigo_cuenta);\n double credito_total = cuenta.getCredito() + monto;\n PreparedStatement PrSt;\n String Query = \"UPDATE Cuenta SET Credito = ? WHERE Codigo = ?\";\n PrSt = conexion.prepareStatement(Query);\n PrSt.setDouble(1, credito_total);\n PrSt.setString(2, codigo_cuenta);\n PrSt.executeUpdate();\n PrSt.close();\n } catch (SQLException e) {\n System.out.println(e.toString());\n }\n }",
"public double getMontoFacturadoSinDescuento(){\n return localMontoFacturadoSinDescuento;\n }",
"public void calculoPersonal(){\n ayudantes = getAyudantesNecesarios();\n responsables = getResponsablesNecesarios();\n \n //Calculo atencion al cliente (30% total trabajadores) y RRPP (10% total trabajadores):\n \n int total = ayudantes + responsables;\n \n atencion_al_cliente = (total * 30) / 100;\n \n RRPP = (total * 10) / 100;\n \n //Creamos los trabajadores\n \n gestor_trabajadores.crearTrabajadores(RRPP, ayudantes,responsables,atencion_al_cliente);\n \n }",
"public void setPrecioc(int p){\n this.precioc=p;\n \n }",
"double objetosc() {\n return dlugosc * wysokosc * szerokosc; //zwraca obliczenie poza metode\r\n }",
"public void obterDados() {\r\n\r\n\t\tidade = Integer.parseInt(JOptionPane.showInputDialog(\"Informe a idade\"));\r\n\t\taltura = Double.parseDouble(JOptionPane.showInputDialog(\"Informe a altura\"));\r\n\t\tpeso = Double.parseDouble(JOptionPane.showInputDialog(\"Informe o peso\"));\r\n\t\t\r\n\t\tjogCadastrados ++;\r\n totalaltura += altura;\r\n\r\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}",
"@Override\r\n /* OSINE791 - RSIS1 - Inicio */\r\n //public ExpedienteDTO asignarOrdenServicio(ExpedienteDTO expedienteDTO,String codigoTipoSupervisor,UsuarioDTO usuarioDTO) throws ExpedienteException{\r\n public ExpedienteGSMDTO asignarOrdenServicio(ExpedienteGSMDTO expedienteDTO,String codigoTipoSupervisor,UsuarioDTO usuarioDTO,String sigla) throws ExpedienteException{\r\n LOG.error(\"asignarOrdenServicio\");\r\n ExpedienteGSMDTO retorno=expedienteDTO;\r\n try{\r\n //cambiarEstado expediente \r\n \tExpedienteGSMDTO expedCambioEstado=cambiarEstadoProceso(expedienteDTO.getIdExpediente(),expedienteDTO.getPersonal().getIdPersonal(),expedienteDTO.getPersonal().getIdPersonal(),expedienteDTO.getPersonal().getIdPersonal(),expedienteDTO.getEstadoProceso().getIdEstadoProceso(),null,usuarioDTO);\r\n LOG.info(\"expedCambioEstado:\"+expedCambioEstado);\r\n //update expediente\r\n PghExpediente registroDAO = crud.find(expedienteDTO.getIdExpediente(), PghExpediente.class);\r\n registroDAO.setDatosAuditoria(usuarioDTO);\r\n if(expedienteDTO.getTramite()!=null){\r\n registroDAO.setIdTramite(new PghTramite(expedienteDTO.getTramite().getIdTramite()));\r\n }else if(expedienteDTO.getProceso()!=null){\r\n registroDAO.setIdProceso(new PghProceso(expedienteDTO.getProceso().getIdProceso()));\r\n }\r\n if(expedienteDTO.getObligacionTipo()!=null){\r\n registroDAO.setIdObligacionTipo(new PghObligacionTipo(expedienteDTO.getObligacionTipo().getIdObligacionTipo()));\r\n }\r\n if(expedienteDTO.getObligacionSubTipo()!=null && expedienteDTO.getObligacionSubTipo().getIdObligacionSubTipo()!=null){\r\n registroDAO.setIdObligacionSubTipo(new PghObligacionSubTipo(expedienteDTO.getObligacionSubTipo().getIdObligacionSubTipo()));\r\n }\r\n registroDAO.setIdUnidadSupervisada(new MdiUnidadSupervisada(expedienteDTO.getUnidadSupervisada().getIdUnidadSupervisada()));\r\n crud.update(registroDAO);\r\n //inserta ordenServicio\r\n Long idLocador=codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_NATURAL)?expedienteDTO.getOrdenServicio().getLocador().getIdLocador():null;\r\n Long idSupervisoraEmpresa=codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_JURIDICA)?expedienteDTO.getOrdenServicio().getSupervisoraEmpresa().getIdSupervisoraEmpresa():null;\r\n OrdenServicioDTO OrdenServicioDTO=ordenServicioDAO.registrar(expedienteDTO.getIdExpediente(), \r\n expedienteDTO.getOrdenServicio().getIdTipoAsignacion(), expedienteDTO.getOrdenServicio().getEstadoProceso().getIdEstadoProceso(), \r\n /* OSINE791 - RSIS1 - Inicio */\r\n //codigoTipoSupervisor, idLocador, idSupervisoraEmpresa, usuarioDTO);\r\n codigoTipoSupervisor, idLocador, idSupervisoraEmpresa, usuarioDTO,sigla);\r\n /* OSINE791 - RSIS1 - Fin */\r\n LOG.info(\"OrdenServicioDTO:\"+OrdenServicioDTO.getNumeroOrdenServicio());\r\n //busca idPersonalDest\r\n PersonalDTO personalDest=null;\r\n List<PersonalDTO> listPersonalDest=null;\r\n if(codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_NATURAL)){\r\n listPersonalDest=personalDAO.find(new PersonalFilter(expedienteDTO.getOrdenServicio().getLocador().getIdLocador(),null));\r\n }else if(codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_JURIDICA)){\r\n listPersonalDest=personalDAO.find(new PersonalFilter(null,expedienteDTO.getOrdenServicio().getSupervisoraEmpresa().getIdSupervisoraEmpresa()));\r\n }\r\n if(listPersonalDest==null || listPersonalDest.isEmpty() || listPersonalDest.get(0).getIdPersonal()==null){\r\n throw new ExpedienteException(\"La Empresa Supervisora no tiene un Personal asignado\",null);\r\n }else{\r\n personalDest=listPersonalDest.get(0);\r\n }\r\n //inserta historico Orden Servicio\r\n EstadoProcesoDTO estadoProcesoDto=estadoProcesoDAO.find(new EstadoProcesoFilter(Constantes.IDENTIFICADOR_ESTADO_PROCESO_OS_REGISTRO)).get(0);\r\n MaestroColumnaDTO tipoHistorico=maestroColumnaDAO.findMaestroColumna(Constantes.DOMINIO_TIPO_COMPONENTE, Constantes.APLICACION_INPS, Constantes.CODIGO_TIPO_COMPONENTE_ORDEN_SERVICIO).get(0);\r\n /* OSINE_SFS-480 - RSIS 40 - Inicio */\r\n HistoricoEstadoDTO historicoEstado=historicoEstadoDAO.registrar(null, OrdenServicioDTO.getIdOrdenServicio(), estadoProcesoDto.getIdEstadoProceso(), expedienteDTO.getPersonal().getIdPersonal(), personalDest.getIdPersonal(), tipoHistorico.getIdMaestroColumna(),null,null, null, usuarioDTO); \r\n LOG.info(\"historicoEstado:\"+historicoEstado);\r\n /* OSINE_SFS-480 - RSIS 40 - Fin */\r\n retorno=ExpedienteGSMBuilder.toExpedienteDto(registroDAO);\r\n retorno.setOrdenServicio(new OrdenServicioDTO(OrdenServicioDTO.getIdOrdenServicio(),OrdenServicioDTO.getNumeroOrdenServicio()));\r\n }catch(Exception e){\r\n LOG.error(\"error en asignarOrdenServicio\",e);\r\n ExpedienteException ex = new ExpedienteException(e.getMessage(), e);\r\n throw ex;\r\n }\r\n return retorno;\r\n }",
"public String actualizarPuntuacion(int idUsuario, int idLibro, double puntuacion) {\r\n Connection con = Conexion.getConnection();\r\n PreparedStatement ps1;\r\n PreparedStatement ps2;\r\n PreparedStatement ps3;\r\n PreparedStatement ps4;\r\n ResultSet rs1;\r\n ResultSet rs2;\r\n ResultSet rs3;\r\n ResultSet rs4;\r\n String rpta = \"\";\r\n String sql1 = \"select puntuacion from usuarioxlibro where idusuario =\" + idUsuario\r\n + \" and idlibro = \" + idLibro;\r\n String sql3 = \"update usuarioxlibro set puntuacion = ? where idusuario= \" + idUsuario\r\n + \" and idlibro = \" + idLibro;\r\n String sql2 = \"select vez from libro where idlibro =\" + idLibro;\r\n String sql4 = \"update libro set vez = ? where idlibro =\" + idLibro;\r\n double puntAnt = 0;\r\n int vez = 0;\r\n try {\r\n ps1 = con.prepareStatement(sql1);\r\n rs1 = ps1.executeQuery();\r\n while (rs1.next()) {\r\n puntAnt = rs1.getDouble(1);\r\n }\r\n\r\n ps2 = con.prepareStatement(sql2);\r\n rs2 = ps2.executeQuery();\r\n while (rs2.next()) {\r\n vez = rs2.getInt(1);\r\n }\r\n\r\n double nuevaPunt = puntuacionNueva(puntAnt, puntuacion, vez);\r\n ps3 = con.prepareStatement(sql3);\r\n ps3.setDouble(1, nuevaPunt);\r\n rpta = \"Puntuación registrada\";\r\n ps3.executeUpdate();\r\n\r\n ps4 = con.prepareStatement(sql4);\r\n ps4.setInt(1, vez + 1);\r\n ps4.executeUpdate();\r\n } catch (Exception e) {\r\n System.out.println(e);\r\n rpta = \"No se pudo registrar la puntuacion\";\r\n }\r\n return rpta;\r\n }",
"public Cuadrado(double lado, String nombre){\n this.lado = lado;\n this.nombre = nombre;\n }",
"public Boleto(double valor) {\n precio = valor;\n }",
"public void VaciarPila()\n {\n this.tope = 0;\n }"
]
| [
"0.70229083",
"0.6947313",
"0.68157536",
"0.67851603",
"0.6742573",
"0.6676275",
"0.65972936",
"0.65484387",
"0.65219325",
"0.6454004",
"0.6452844",
"0.6420195",
"0.641545",
"0.6391229",
"0.63352084",
"0.6333743",
"0.6328248",
"0.6319252",
"0.6316532",
"0.62811315",
"0.62811315",
"0.62752104",
"0.6247123",
"0.62363213",
"0.6224025",
"0.6219553",
"0.621889",
"0.62175673",
"0.6208705",
"0.6202414",
"0.61880624",
"0.6175724",
"0.61667264",
"0.61584884",
"0.6156313",
"0.6131525",
"0.6131525",
"0.61274654",
"0.6122455",
"0.6120822",
"0.6118733",
"0.61120176",
"0.61090225",
"0.6098653",
"0.6086422",
"0.608424",
"0.60819614",
"0.6080055",
"0.60714096",
"0.60714096",
"0.6069372",
"0.60660213",
"0.60627943",
"0.6035537",
"0.6025951",
"0.601939",
"0.60192525",
"0.60095984",
"0.60067475",
"0.5994866",
"0.59945405",
"0.5990371",
"0.59667706",
"0.59614766",
"0.5952939",
"0.5947035",
"0.59441197",
"0.59365934",
"0.5935265",
"0.5932291",
"0.5923735",
"0.58927035",
"0.5892383",
"0.5887099",
"0.5883313",
"0.58824277",
"0.58821833",
"0.5872047",
"0.5859054",
"0.5854946",
"0.58530045",
"0.5852288",
"0.5842384",
"0.58414984",
"0.5836759",
"0.5835424",
"0.58346695",
"0.5831391",
"0.58304393",
"0.5829838",
"0.58128023",
"0.58112645",
"0.5794311",
"0.5791188",
"0.5785783",
"0.5781585",
"0.5773621",
"0.5767033",
"0.57643086",
"0.5756674",
"0.57512414"
]
| 0.0 | -1 |
Constructor for the build settings page area. | public PmdMavenBuildSettings(Job parent) {
super(parent, "pmd-PmdReporter");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public SettingsPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}",
"public SettingPage() {\n\t\tPageFactory.initElements(driver, this);\t\t\n\t}",
"public HeaderSettingsPage()\n {\n initialize();\n }",
"public LandRYSettingPage() {\n initComponents();\n }",
"public Settings() {\n initComponents();\n }",
"public Settings() {\n initComponents();\n }",
"public Settings(){}",
"public SettingsPanel() {\n initComponents();\n }",
"public Settings() {\r\n\t\tthis.settings = new HashMap<String, Object>();\r\n\t\tloadDefaults();\r\n\t}",
"@Override\n \tpublic ISettingsPage makeSettingsPage() {\n \t\treturn new ProcessSettingsPage(settings);\n \t}",
"Settings ()\n {\n }",
"public SwitchYardSettingsPropertyPage() {\n super();\n noDefaultAndApplyButton();\n }",
"HeaderSettingsPage(SettingsContainer container)\n {\n super(container);\n initialize();\n }",
"private Settings() { }",
"public WorkspaceSettings() {\n super();\n }",
"public JpSetting() {\n initComponents();\n fillThongtin();\n }",
"private Settings() {}",
"public BuildingConfigPanel() {\n\n\t\tthis.setLayout(new BorderLayout());\n\t\tthis.setOpaque(true);\n\t\tDimension size = new Dimension(1200, 700);\n\t\tthis.setMaximumSize(size);\n\t\tthis.setPreferredSize(size);\n\t\tthis.setMinimumSize(size);\n\t\tthis.setAlignmentX(LEFT_ALIGNMENT);\n\t\tthis.setBorder(BorderFactory.createLineBorder(Color.blue));\n\t\tthis.setBackground(Color.WHITE);\n\t\tthis.setLayout(null);\n\n\t\tfont = new Font(\"Serif\", Font.BOLD, 18);\n\t\tfont1 = new Font(\"Serif\", Font.PLAIN, 15);\n\n\t\t// method to create sensors checkboxes, date and time fields\n\t\tcreateSensors();\n\t\t// method to connect to database\n\t\tcreateJDBCConnection();\n\t\t// method to highlight the area of selection\n\t\tareaTracker();\n\n\t}",
"public ConfigPanel(JavaDocSettings settings) {\n this.settings = settings;\n setLayout(new BorderLayout());\n add(panel, BorderLayout.CENTER);\n setupBorders();\n setupTemplatesPanel();\n }",
"protected Main(Settings settings) {\r\n this.settings = settings; \r\n configureUI();\r\n build();\r\n setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);\r\n }",
"public SettingsFragment(){}",
"private Settings()\n {}",
"public Setting() {\n\t}",
"@SuppressWarnings(\"serial\")\n\tpublic ProjectPage() {\n\t\tagregarForm();\n\t}",
"private AppSettings() {\n /* =============== UI settings =============== */\n brightnessInNightModeOnly = false;\n fullScreen = false;\n showTitle = true;\n pageInTitle = true;\n pageNumberToastPosition = ToastPosition.Bottom;\n zoomToastPosition = ToastPosition.Bottom;\n showAnimIcon = false;\n linkHighlightColor = 0x80FFFF00;\n searchHighlightColor = 0x3F0000FF;\n currentSearchHighlightColor = 0x7F007F00;\n storeGotoHistory = false;\n storeLinkGotoHistory = false;\n storeOutlineGotoHistory = false;\n storeSearchGotoHistory = false;\n\n /* =============== Tap & Scroll settings =============== */\n tapsEnabled = true;\n scrollHeight = Dips.dpToPx(10);\n touchProcessingDelay = 50;\n animateScrolling = true;\n /* =============== Performance settings =============== */\n\n\t\tpagesInMemory = 2;\n decodingThreadPriority = Thread.NORM_PRIORITY; // 7\n drawThreadPriority = Thread.NORM_PRIORITY; // 6\n\n hwaEnabled = false;\n bitmapSize = 9;// 6-64,7-128,8-256,9-512,10-1024\n bitmapFileringEnabled = false;\n textureReuseEnabled = true;\n useBitmapHack = false;\n useEarlyRecycling = false;\n reloadDuringZoom = false;\n heapPreallocate = 0;// 0-256\n pdfStorageSize = 64;// 16-128\n\n /* =============== DjVU Format-specific settings =============== */\n djvuRenderingMode = 0;// 0-color,1-black,2 color only, 3 mask, 4 backgroud, 5 foreground\n }",
"public StartSettingsView() {\n\n super();\n super.setTitle(\"Settings\");\n\n this.createPatientsComboBox();\n this.createButtons();\n\n super.setLayouts(0.2f, 0.2f,0,0.6f);\n\n\t}",
"public client_settings_Fragment()\n {\n }",
"private Settings() {\n prefs = NbPreferences.forModule( Settings.class );\n }",
"public SettingsForm() {\n initComponents();\n }",
"public Setting() {\n }",
"public PrivacySettingsWeb() {\n\t}",
"public Site_GuiBean() {\n\n\t\tsetMinimumSize(new Dimension(140,100));\n\t\tsetPreferredSize(new Dimension(160,100));\n\t\t\n\t\t// add the longitude and latitude paramters\n\t\tparameterList.addParameter(longitude);\n\t\tparameterList.addParameter(latitude);\n\t\tlatitude.addParameterChangeListener(this);\n\t\tlongitude.addParameterChangeListener(this);\n\t\tlatitude.addParameterChangeFailListener(this);\n\t\tlongitude.addParameterChangeFailListener(this);\n\n\t\t// maake the new site object\n\t\tsite = new Site(new Location(((Double) latitude.getValue())\n\t\t\t\t.doubleValue(), ((Double) longitude.getValue()).doubleValue()));\n\t\tparameterEditor = new ParameterListEditor(parameterList);\n\t\tparameterEditor.setTitle(SITE_PARAMS);\n\t\ttry {\n\t\t\tjbInit();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tthis.add(parameterEditor, new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0,\n\t\t\t\tGridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(\n\t\t\t\t\t\t0, 0, 0, 0), 0, 0));\n\t}",
"public FDRSettingsPanel() {\n initComponents();\n }",
"public SettingsWindow()\n {\n House.seed = System.currentTimeMillis();\n initWindow();\n showWindows();\n }",
"public CatalogSettings() {\n init();\n }",
"@Override\n\tpublic void initSettings() {\n\n\t}",
"public LetterSettingView() {\r\n initComponents();\r\n }",
"public DoilyPanel() {\n\t\tthis(new DoilySettings());\n\t}",
"public server_settings_Fragment()\n {\n }",
"public GetSettings() {\r\n }",
"@Override\n protected void initSettings (GameSettings settings) {\n settings.setWidth(15 * 70);\n settings.setHeight(10* 70);\n settings.setVersion(\"0.1\");\n settings.setTitle(\"Platformer Game\");\n settings.setMenuEnabled(true);\n settings.setMenuKey(KeyCode.ESCAPE);\n }",
"public SettingsFragment() {\n // Empty constructor required for fragment subclasses\n }",
"static Menu settings ()\r\n \t{\r\n \t\tfinal byte width = 45;\r\n \t\tOption ram, rightHanded, dumpState, trackTime, assembly, compression;\r\n \t\tString label [] = {\"Which settings field would you\",\r\n \t\t\"like to modify?\"};\r\n \t\tMenu settings = new Menu (label, \"Change program settings.\", width);\r\n \t\t\r\n \t\t//Initialising options:\r\n \t\tassembly = new Editor (Settings.assembly, \"Assembly Definitions\");\r\n \t\trightHanded = new Toggle (Settings.rightHanded, \"RAM select\", \"Right\", \"Left\"); //True stands for right;\r\n \t\t//False for left.\r\n \t\tdumpState = new Toggle (Settings.dumpState, \"Data Recording\");\r\n \t\ttrackTime = new Toggle (Settings.trackTime, \"Time Tracking\");\r\n \t\tram = new PickNumber (Settings.rAMallowed, \"RAM Allowed\", \"bytes\");\r\n \t\tcompression = new Toggle (Settings.compressNBT, \"Schematic compression\");\r\n \t\t\r\n \t\t//Adding options to setting menu:\r\n \t\tsettings.addOption(assembly);\r\n \t\tsettings.addOption(rightHanded);\r\n \t\tsettings.addOption(dumpState);\r\n \t\tsettings.addOption(trackTime);\r\n \t\tsettings.addOption(ram);\r\n \t\t//Settings menu will display these options in the order they are added here.\r\n \t\t\r\n \t\t//TODO option for program name, target and programming language settings.\r\n \t\t\r\n \t\treturn settings;\r\n \t}",
"private SettingsWindow() {\n loadData();\n createListeners();\n }",
"private Config()\n {\n try\n {\n // Load settings from file\n load();\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n }",
"public AdminPage() {\n initComponents();\n }",
"public PaperSettingsJPanel() {\n initComponents();\n }",
"public SetupBuilderBox() {\n\tsuper();\n\tsetLayout(new BorderLayout());\n\n\tboard = new EditableBoard(this);\n\tboard.init(cols, rows);\n\tgb = new GraphicalBoard(board);\n\tgb.setDim(32);\n\tgb.init();\n\ttsp = new ToolSelectPanel(this);\n\tsap = new SetupSavePanel(this);\n\tssp = new SetupSettingsPanel(this);\n\n\tJPanel center = new JPanel();\n\tcenter.setLayout(new BorderLayout());\n\tcenter.add(gb, BorderLayout.CENTER);\n\tcenter.add(tsp, BorderLayout.SOUTH);\n\n\tadd(sap, BorderLayout.NORTH);\n\tadd(center, BorderLayout.CENTER);\n\tadd(ssp, BorderLayout.EAST);\n\n }",
"public PowerContactSettings () {\n }",
"public PreferencesPanel()\n {\n initComponents();\n CB_CHECK_NEW.setSelected( Main.get_long_prop(Preferences.CHECK_NEWS) > 0);\n CB_CACHE_MAILS.setSelected( Main.get_long_prop(Preferences.CACHE_MAILFILES) > 0);\n\n\n\n COMBO_UI.removeAllItems();\n ArrayList<String> ui_names = UI_Generic.get_ui_names();\n for (int i = 0; i < ui_names.size(); i++)\n {\n String string = ui_names.get(i);\n COMBO_UI.addItem(string);\n }\n\n last_ui = (int)Main.get_long_prop(Preferences.UI, 0l);\n if (last_ui < COMBO_UI.getItemCount())\n COMBO_UI.setSelectedIndex( last_ui );\n else\n COMBO_UI.setSelectedIndex( 0 );\n\n String ds = Main.get_prop( Preferences.DEFAULT_STATION );\n if (ds != null && ds.length() > 0)\n {\n ParseToken pt = new ParseToken(ds);\n String ip = pt.GetString(\"IP:\");\n long po = pt.GetLongValue(\"PO:\");\n boolean only_this = pt.GetBoolean(\"OT:\");\n TXT_SERVER_IP.setText(ip);\n if (po > 0)\n TXT_SERVER_PORT.setText(Long.toString(po) );\n CB_NO_SCANNING.setSelected(only_this);\n }\n\n String l_code = Main.get_prop( Preferences.COUNTRYCODE, \"DE\");\n\n if (l_code.compareTo(\"DE\") == 0)\n COMBO_LANG.setSelectedIndex(0);\n if (l_code.compareTo(\"EN\") == 0)\n COMBO_LANG.setSelectedIndex(1); \n }",
"public Setup(Settings settings) {\n initComponents();\n doctors = new ArrayList<String>();\n this.settings = settings;\n if (this.settings != null) {\n doctors = new ArrayList<String>(Arrays.asList(settings.getDoctors()));\n lstDoctors.setListData(doctors.toArray(new String[0]));\n txfBankName.setText(this.settings.getBankName());\n txfBankNumber.setText(this.settings.getBankNumber());\n txfBranchCode.setText(this.settings.getBranchCode());\n txfPracticeNumber.setText(this.settings.getPracticeNumber());\n txfPracticeAddress.setText(this.settings.getPracticeAddress());\n }\n }",
"public NavigationPanel()\n\t{\n\t\tmakeContent();\n\t}",
"public SettingsMenuPanel() {\n initComponents();\n changed.setVisible(false);\n }",
"protected CommonSettings() {\r\n port = 1099;\r\n objectName = \"library\";\r\n }",
"private void settings() {\n mainTitle = makeLabel(\"Settings\", true);\n add(mainTitle);\n add(content);\n add(diffSlider);\n add(colourChooser);\n add(mainB);//button to main menu\n diffSlider.requestFocus();\n }",
"public SavingsInfoPage() {\n setLocationRelativeTo(null);\n setResizable(false); \n initComponents();\n onRun();\n }",
"public PreferencesPanel() {\n initComponents();\n }",
"public DeveloperPrefsPanel(DeveloperPreferences prefs) {\n\t\tthis.prefs = prefs;\n\t\tinitComponents();\n\t}",
"public DeviceSettingsPanel(JDialog creator) {\n\n this.creator = creator;\n\n $$$setupUI$$$();\n setLayout(new BorderLayout());\n add(contentPane, BorderLayout.CENTER);\n\n /* Warning label */\n warningLabel.setFont(warningLabel.getFont().deriveFont(Font.BOLD, 14.0F));\n warningLabel.setForeground(new Color(0x993333));\n\n /* load values from Setting */\n this.acceleration.setValue(Settings.getHandlerAcceleration());\n this.deceleration.setValue(Settings.getHandlerDeceleration());\n this.axialAFPosition.setValue(Settings.getHandlerAxialAFPosition());\n this.transverseYAFPosition.setValue(Settings.getHandlerTransverseYAFPosition());\n this.measurementPosition.setValue(Settings.getHandlerMeasurementPosition());\n this.velocity.setValue(Settings.getHandlerVelocity());\n this.measurementVelocity.setValue(Settings.getHandlerMeasurementVelocity());\n this.xAxisCalibration.setValue(Settings.getMagnetometerXAxisCalibration());\n this.yAxisCalibration.setValue(Settings.getMagnetometerYAxisCalibration());\n this.zAxisCalibration.setValue(Settings.getMagnetometerZAxisCalibration());\n this.demagRamp.addItem(new Integer(3));\n this.demagRamp.addItem(new Integer(5));\n this.demagRamp.addItem(new Integer(7));\n this.demagRamp.addItem(new Integer(9));\n int rampValue = Settings.getDegausserRamp();\n if (rampValue == 3 || rampValue == 5 || rampValue == 7 || rampValue == 9) {\n demagRamp.setSelectedItem(new Integer(rampValue));\n } else {\n demagRamp.setSelectedItem(new Integer(3));\n }\n for (int i = 1; i < 10; i++) {\n this.demagDelay.addItem(new Integer(i));\n }\n this.demagDelay.setSelectedItem(new Integer(Settings.getDegausserDelay()));\n this.sampleLoadPosition.setValue(Settings.getHandlerSampleLoadPosition());\n this.backgroundPosition.setValue(Settings.getHandlerBackgroundPosition());\n this.rotation.setValue(Settings.getHandlerRotation());\n this.rotationVelocity.setValue(Settings.getHandlerRotationVelocity());\n this.rotationAcc.setValue(Settings.getHandlerAcceleration());\n this.rotationDec.setValue(Settings.getHandlerDeceleration());\n this.maximumField.setValue(Settings.getDegausserMaximumField());\n\n /* Format Number-only Text Fields */\n MyFormatterFactory factory = new MyFormatterFactory();\n acceleration.setFormatterFactory(factory);\n deceleration.setFormatterFactory(factory);\n velocity.setFormatterFactory(factory);\n measurementVelocity.setFormatterFactory(factory);\n transverseYAFPosition.setFormatterFactory(factory);\n axialAFPosition.setFormatterFactory(factory);\n sampleLoadPosition.setFormatterFactory(factory);\n backgroundPosition.setFormatterFactory(factory);\n measurementPosition.setFormatterFactory(factory);\n rotation.setFormatterFactory(factory);\n rotationVelocity.setFormatterFactory(factory);\n rotationAcc.setFormatterFactory(factory);\n rotationDec.setFormatterFactory(factory);\n xAxisCalibration.setFormatterFactory(factory);\n yAxisCalibration.setFormatterFactory(factory);\n zAxisCalibration.setFormatterFactory(factory);\n maximumField.setFormatterFactory(factory);\n\n /* Find all ports system has */\n Enumeration ports = CommPortIdentifier.getPortIdentifiers();\n\n ArrayList<String> portList = new ArrayList<String>();\n\n if (!ports.hasMoreElements()) {\n System.err.println(\"No comm ports found!\");\n } else {\n while (ports.hasMoreElements()) {\n /*\n * Get the specific port\n */\n CommPortIdentifier portId = (CommPortIdentifier) ports.nextElement();\n\n if (portId.getPortType() == CommPortIdentifier.PORT_SERIAL) {\n portList.add(portId.getName());\n }\n }\n }\n Collections.sort(portList);\n\n /* Add all port to lists */\n for (int i = 0; i < portList.size(); i++) {\n this.magnetometerPort.addItem(portList.get(i));\n this.handlerPort.addItem(portList.get(i));\n this.demagnetizerPort.addItem(portList.get(i));\n }\n\n /* Select currently used port */\n this.magnetometerPort.setSelectedItem(Settings.getMagnetometerPort());\n this.handlerPort.setSelectedItem(Settings.getHandlerPort());\n this.demagnetizerPort.setSelectedItem(Settings.getDegausserPort());\n\n /* Buttons */\n saveButton.setAction(this.getSaveAction());\n getSaveAction().setEnabled(false);\n cancelButton.setAction(this.getCancelAction());\n\n /* Update listener for FormattedTextFields */\n DocumentListener saveListener = new DocumentListener() {\n public void insertUpdate(DocumentEvent e) {\n if (correctValues()) {\n getSaveAction().setEnabled(true);\n } else {\n getSaveAction().setEnabled(false);\n }\n }\n\n public void removeUpdate(DocumentEvent e) {\n if (correctValues()) {\n getSaveAction().setEnabled(true);\n } else {\n getSaveAction().setEnabled(false);\n }\n }\n\n public void changedUpdate(DocumentEvent e) {\n }\n };\n\n /* Update listener for Comboboxes */\n ActionListener propertiesActionListener = new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n if (correctValues()) {\n getSaveAction().setEnabled(true);\n } else {\n getSaveAction().setEnabled(false);\n }\n }\n };\n\n /* Lets set all listeners for changes */\n magnetometerPort.addActionListener(propertiesActionListener);\n demagnetizerPort.addActionListener(propertiesActionListener);\n handlerPort.addActionListener(propertiesActionListener);\n\n xAxisCalibration.getDocument().addDocumentListener(saveListener);\n yAxisCalibration.getDocument().addDocumentListener(saveListener);\n zAxisCalibration.getDocument().addDocumentListener(saveListener);\n\n demagRamp.addActionListener(propertiesActionListener);\n demagDelay.addActionListener(propertiesActionListener);\n\n acceleration.getDocument().addDocumentListener(saveListener);\n deceleration.getDocument().addDocumentListener(saveListener);\n velocity.getDocument().addDocumentListener(saveListener);\n measurementVelocity.getDocument().addDocumentListener(saveListener);\n\n transverseYAFPosition.getDocument().addDocumentListener(saveListener);\n axialAFPosition.getDocument().addDocumentListener(saveListener);\n sampleLoadPosition.getDocument().addDocumentListener(saveListener);\n backgroundPosition.getDocument().addDocumentListener(saveListener);\n measurementPosition.getDocument().addDocumentListener(saveListener);\n\n rotation.getDocument().addDocumentListener(saveListener);\n rotationVelocity.addActionListener(propertiesActionListener);\n rotationAcc.addActionListener(propertiesActionListener);\n rotationDec.addActionListener(propertiesActionListener);\n\n maximumField.addActionListener(propertiesActionListener);\n\n saveButton.setEnabled(correctValues());\n }",
"public BuildingsPanel() {\n \n player = Player.getInstance();\n buttons = new JButton[8];\n structureData = new Building[10];\n \n initComponents();\n init();\n }",
"public MazeSettingsPanel(MazeSettings settings){\r\n \tsuper();\r\n \tthis.settings=settings;\r\n \tthis.layout = new GridLayout(0,2);\r\n \tthis.layout.setVgap(10);\r\n \tthis.setLayout(this.layout);\r\n \r\n \tpadding = BorderFactory.createEmptyBorder(20,20,15,10);\r\n \tthis.setBorder(padding);\r\n \r\n \tinitFields();\r\n \tupdateFieldValues();\r\n }",
"public SettingFragment() {\n // Required empty public constructor\n }",
"private void init_settings() {\n\t\tSettings.setDifficulty(Difficulty.NORMAL);\n\t\tSettings.setGravity(BowmanConstants.DEFAULT_GRAVITY);\n\t}",
"public TextEditorPreferencePage() {\n \t\tsuper(GRID);\n \t\t\n \t\tsetDescription(TextEditorMessages.getString(\"PreferencePage.description\"));\t\t //$NON-NLS-1$\n \t\tPlugin plugin= Platform.getPlugin(\"org.eclipse.ui.workbench\"); //$NON-NLS-1$\n \t\tif (plugin instanceof AbstractUIPlugin) {\n \t\t\tAbstractUIPlugin uiPlugin= (AbstractUIPlugin) plugin;\n \t\t\tsetPreferenceStore(uiPlugin.getPreferenceStore());\n \t\t}\n \t}",
"public EwonConfigPage(IConfigPage configPage) {\n super(\n configPage,\n null,\n null,\n ((IgnitionWebApp) Application.get())\n .getContext()\n .getPersistenceInterface()\n .find(EwonConnectorSettings.META, 0L));\n }",
"public OpenShift2PreferencePage() {\n\t\tsuper(\"JBoss Tools\", \"OpenShift 2\");\n\t}",
"public PlanPage() {\n this( new PageParameters() );\n }",
"protected void createSettingsComponents() {\r\n periodTimeComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_PERIOD_TIME, MIN_PERIOD_TIME, MAX_PERIOD_TIME, 1 ) );\r\n maxNumberOfPlayersComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_MAX_NUMBER_OF_PLAYERS, MIN_MAX_NUMBER_OF_PLAYERS, MAX_MAX_NUMBER_OF_PLAYERS, 1 ) );\r\n mapWidthComponent = new JComboBox( MAP_WIDTH_NAMES );\r\n mapHeightComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_MAP_HEIGHT, MIN_MAP_HEIGHT, MAX_MAP_HEIGHT, 1 ) );\r\n welcomeMessageComponent = new JTextArea( 10, 20 );\r\n gameTypeComponent = new JComboBox( GAME_TYPE_NAMES );\r\n isKillLimitComponent = new JCheckBox( \"Kill limit:\" );\r\n killLimitComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_KILL_LIMIT, MIN_KILL_LIMIT, MAX_KILL_LIMIT, 1 ) );\r\n isTimeLimitComponent = new JCheckBox( \"Time limit:\" );\r\n timeLimitComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_TIME_LIMIT, MIN_TIME_LIMIT, MAX_TIME_LIMIT, 1 ) );\r\n passwordComponent = new JTextField( 10 );\r\n amountOfWallRubblesComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_AMOUNT_OF_WALL_RUBBLES, MIN_AMOUNT_OF_WALL_RUBBLES, MAX_AMOUNT_OF_WALL_RUBBLES, 1 ) );\r\n amountOfBloodComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_AMOUNT_OF_BLOOD, MIN_AMOUNT_OF_BLOOD, MAX_AMOUNT_OF_BLOOD, 1 ) );\r\n amountOfWallComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_AMOUNT_OF_WALL, MIN_AMOUNT_OF_WALL, MAX_AMOUNT_OF_WALL, 1 ) );\r\n amountOfStoneComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_AMOUNT_OF_STONE, MIN_AMOUNT_OF_STONE, MAX_AMOUNT_OF_STONE, 1 ) );\r\n amountOfWaterComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_AMOUNT_OF_WATER, MIN_AMOUNT_OF_WATER, MAX_AMOUNT_OF_WATER, 1 ) );\r\n }",
"public SearchSettings() { }",
"void setSettings(ControlsSettings settings);",
"public AdminWorkPage() {\n initComponents();\n getContentPane().setBackground(Color.white);\n }",
"private void showCrawlerSettings()\n {\n SpiderConfig config = spider.getConfig();\n \n JPanel crawlerSettingsPanel = new JPanel(new GridLayout(8, 2));\n JLabel crawlDistanceLabel = new JLabel(\"Max crawl distance\");\n JLabel maxAdjLinksLabel = new JLabel(\"Max adjacent URL's\");\n JLabel bufferSizeLabel = new JLabel(\"Buffer size\");\n JLabel cacheSizeLabel = new JLabel(\"Cache size\");\n JLabel updateDurationLabel = new JLabel(\"Duration (days) until update\");\n JLabel maxImagesLabel = new JLabel(\"Max number of images\");\n JLabel collectImagesLabel = new JLabel(\"Fetch images\");\n JLabel defaultIndexFileLabel = new JLabel(\"Default index file\");\n JTextField crawlDistanceField = new JTextField();\n JTextField maxAdjLinksField = new JTextField();\n JTextField bufferSizeField = new JTextField();\n JTextField cacheSizeField = new JTextField();\n JTextField updateDurationField = new JTextField();\n JTextField maxImagesField = new JTextField();\n JTextField indexFileField = new JTextField();\n JCheckBox collectImagesCheck = new JCheckBox();\n \n crawlerSettingsPanel.add(crawlDistanceLabel);\n crawlerSettingsPanel.add(crawlDistanceField);\n crawlerSettingsPanel.add(maxAdjLinksLabel);\n crawlerSettingsPanel.add(maxAdjLinksField);\n crawlerSettingsPanel.add(bufferSizeLabel);\n crawlerSettingsPanel.add(bufferSizeField);\n crawlerSettingsPanel.add(cacheSizeLabel);\n crawlerSettingsPanel.add(cacheSizeField);\n crawlerSettingsPanel.add(updateDurationLabel);\n crawlerSettingsPanel.add(updateDurationField);\n crawlerSettingsPanel.add(maxImagesLabel);\n crawlerSettingsPanel.add(maxImagesField);\n crawlerSettingsPanel.add(defaultIndexFileLabel);\n crawlerSettingsPanel.add(indexFileField);\n crawlerSettingsPanel.add(collectImagesLabel);\n crawlerSettingsPanel.add(collectImagesCheck);\n \n crawlDistanceField.setText(\"\" + config.getMaxCrawlDistance());\n maxAdjLinksField.setText(\"\" + config.getMaxAdjUrls());\n bufferSizeField.setText(\"\" + config.getBufferSize());\n cacheSizeField.setText(\"\" + config.getCacheSize());\n updateDurationField.setText(\"\" + config.getUpdateDays());\n maxImagesField.setText(\"\" + config.getMaxImages());\n collectImagesCheck.setSelected(config.isFetchingImages());\n indexFileField.setText(config.getDatabaseFile());\n \n int option = JOptionPane.showConfirmDialog(null, crawlerSettingsPanel, \"Crawler settings\", JOptionPane.OK_CANCEL_OPTION);\n if(option == JOptionPane.YES_OPTION)\n {\n try\n {\n int maxDistance = Integer.parseInt(crawlDistanceField.getText());\n int maxLinks = Integer.parseInt(maxAdjLinksField.getText());\n int bufferSize = Integer.parseInt(bufferSizeField.getText());\n int cacheSize = Integer.parseInt(cacheSizeField.getText());\n int updateDays = Integer.parseInt(updateDurationField.getText());\n int maxImages = Integer.parseInt(maxImagesField.getText());\n String defaultIndex = indexFileField.getText();\n boolean fetchImages = collectImagesCheck.isSelected();\n \n config.setBufferSize(bufferSize);\n config.setCacheSize(cacheSize);\n config.setMaxCrawlDistance(maxDistance);\n config.setMaxAdjUrls(maxLinks);\n config.setUpdateDays(updateDays);\n config.setFetchImages(fetchImages);\n config.setMaxImages(maxImages);\n config.setDatabaseFile(defaultIndex);\n \n spider.updateConfig();\n }\n \n catch(NumberFormatException e)\n {\n JOptionPane.showMessageDialog(null, \"Invalid config settings\");\n }\n }\n }",
"public OptionPanel(Main w) {\r\n\t\tthis.w = w;\r\n\t\tstartButton = new JButton();\r\n\t\texitButton = new JButton();\r\n\t\t\r\n\t}",
"public AboutPanel() {\n super();\n initialize();\n }",
"public Window()\n\t{\n\t\t//Appel du constructeur de jFrame\n\t\tsuper();\n\n\t\tsetTitle(\"Administration des livres\");\n\t\tsetSize(nWindowWidth, nWindowHeight);\n\t\tsetLocationRelativeTo(null);// Centré\n\t\tsetResizable(false); // non redimentionnable\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);// Action du bouton close\n\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tsetContentPane(panel);\n\t\t\n\n\t\t//Mise en place des onglets\n\t\tpConfig = new PageConfig();\n\t\tpBookPage = new PageBook();\n\t\t\n\t\tptTabs = new JTabbedPane();\n\t\tptTabs.setBounds(0, 0, nWindowWidth, nWindowHeight - 29);\n\t\tptTabs.add(\"Configuration\", pConfig);\n\t\tptTabs.add(\"Livres\", pBookPage);\n\t\tptTabs.addChangeListener(this);\n\t\tpanel.add(ptTabs);\n\t\t//\n\n\t\t// Actualisation de la page de configuration\n\t\tpConfig.update();\n\t}",
"protected TemplatePreferencePage() {\n \t\tsuper();\n \n \t\tsetDescription(TemplatesMessages.TemplatePreferencePage_message);\n \t}",
"public StoreReadSettings() {\n }",
"private void setupSettings() {\n add(announcementBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(currentGamesBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(chatRoomBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(friendsListBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(leaderboardBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n }",
"private void setPrefs( File build_file ) {\n if ( _settings != null )\n _settings.load( build_file );\n else\n _settings = new OptionSettings( build_file );\n _prefs = _settings.getPrefs();\n }",
"public JPanel buildProjectProperties()\n\t{\n\t\tprojectProperties.setPreferredSize(new Dimension(200, 190)); //Set the size of the window\n \tprojectProperties.setBorder (projectTitle); //Add a border around the window\n \t\n \treturn projectProperties;\n\t}",
"public void setSettings(Settings settings)\r\n\t{\r\n\t\tthis.settings = settings;\r\n\t}",
"protected void createContents() {\n\t\tsetText(\"Account Settings\");\n\t\tsetSize(450, 225);\n\n\t}",
"@Override\n protected void onCreate(Bundle arg0) {\n super.onCreate(arg0);\n addPreferencesFromResource(R.xml.settings_prefs);\n\n initActionBar();\n initViews();\n }",
"public NewsParamPanel() {\n initComponents();\n titleAnalyzer.setFieldName(\"TITLE\");\n dateAnalyzer.setFieldName(\"DATE\");\n sourceExtractor.setFieldName(\"SOURCENAME\");\n authorExtractor.setFieldName(\"AUTHOR\");\n commentsExtractor.setFieldName(\"COMMENT_COUNT\");\n clicksExtractor.setFieldName(\"CLICK_COUNT\");\n transmitExtractor.setFieldName(\"TRANSMIT_COUNT\");\n summaryExtractor.setFieldName(\"SUMMARY\");\n chnlExtractor.setFieldName(\"CHANNEL\");\n contentExtractor.setFieldName(\"CONTENT\");\n }",
"public ReconstructionSettingsFrame(ReconstructionFrame parent) {\n pref = Preferences.userNodeForPackage(getClass());\n this.parent = parent;\n\n loadPrefs();\n\n setLocationRelativeTo(parent);\n initComponents();\n }",
"public HomePanel() {\r\n\t\tinitialisation();\r\n initComponents();\r\n\t\tpostInit();\r\n }",
"public SystemAdminWorkArea() {\n initComponents();\n }",
"public SelectProjectWizardPage build() {\r\n return new SelectProjectWizardPage(this);\r\n }",
"public DocsAppHomePO ()\n\t{\n\t\tPageFactory.initElements(driver, this);\n\t}",
"public PagePane() {\n instance = this;\n u = CommonUtil.getInstance();\n toolBar = ToolBar.getInstance();\n MsgBoard.getInstance().subscribe(this);\n generalModel = (GeneralModel) GeneralEditor.getInstance().getModel();\n gridModel = (GridModel) GridEditor.getInstance().getModel();\n model = new PageModel();\n mousePt = new Point(generalModel.getWidth() / 2, generalModel.getHeight() / 2);\n canvasWidth = Builder.CANVAS_WIDTH;\n canvasHeight = Builder.CANVAS_HEIGHT;\n this.addMouseListener(new MouseHandler());\n this.addMouseMotionListener(new MouseMotionHandler());\n this.addKeyListener(new DeleteKeyListener());\n this.setLocation(0, 0);\n this.setOpaque(true);\n this.setFocusable( true ); \n this.setBorder(BorderFactory.createLineBorder(Color.black));\n this.setVisible(true);\n bZoom = true;\n }",
"private SizeModifierSettingsEditor() {\n\t\tinitComponents();\n\t\tsettings = SizeModifierSettings.getInstance();\n\t\tloadSettings();\n\t\tmainShell.pack();\n\t\tmainShell.setBounds(\n\t\t\tCrunch3.mainWindow.getShell().getBounds().x + Crunch3.mainWindow.getShell().getBounds().width / 2 - mainShell.getBounds().width / 2,\n\t\t\tCrunch3.mainWindow.getShell().getBounds().y + Crunch3.mainWindow.getShell().getBounds().height / 2 - mainShell.getBounds().height / 2,\n\t\t\tmainShell.getBounds().width,\n\t\t\tmainShell.getBounds().height);\n\t\tmainShell.open();\n\t}",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.layout_settings);\n\t\tinit();\n\t}",
"TvShowScraperNfoSettingsPanel() {\n checkBoxListener = e -> checkChanges();\n comboBoxListener = e -> checkChanges();\n\n // UI init\n initComponents();\n initDataBindings();\n\n // data init\n\n // implement checkBoxListener for preset events\n settings.addPropertyChangeListener(evt -> {\n if (\"preset\".equals(evt.getPropertyName())) {\n buildComboBoxes();\n }\n });\n\n buildCheckBoxes();\n buildComboBoxes();\n }",
"@Override\n\tprotected void handleSettings(ClickEvent event) {\n\t\t\n\t}",
"private SettingsManager() {\r\n\t\tthis.loadSettings();\r\n\t}",
"public MainWindow()\n\t{\n\t\tsettingsWindow = new SettingsWindow(this);\n\t\t\n\t\tplayingField = null;\n\t\t\n\t\tthis.setTitle(\"Minesweeper\");\n\t\tthis.setResizable(false);\n\t\tthis.setJMenuBar(createMenuBar());\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tthis.newGame();\n\t\t\n\t\tthis.setVisible(true);\n\t}",
"public SettingsController(){\n SharedPreferences prefs = MainActivity.context.getSharedPreferences(MY_PREFERENCES, MODE_PRIVATE);\n backgroundMusicOn = prefs.getBoolean(MUSIC_PREFERENCES, true);\n soundEffectsOn= prefs.getBoolean(SOUND_EFFECTS_PREFERENCES, true);\n deckSkin=prefs.getString(DECK_SKIN_PREFERENCES, \"back1\");\n animationSpeed=prefs.getInt(ANIMATION_SPEED_PREFERENCES,ANIMATION_MEDIUM);\n }",
"public DebugConfigurationDialog() {\n configuration = new DataSourceConfiguration();\n initComponents();\n }",
"public CopyPage() {\n initComponents();\n }",
"public Admin_MainPage() {\n initComponents();\n }",
"private void buildSettingsMenu() {\r\n settingsMenu = new JMenu( Msgs.str( \"Settings\" ) );\r\n\r\n qMarkItem = new JCheckBoxMenuItem( Msgs.str( \"Qmarks\" ), qMarksOn );\r\n ks = KeyStroke.getKeyStroke( KeyEvent.VK_Q, Event.ALT_MASK );\r\n qMarkItem.setAccelerator( ks );\r\n qMarkItem.setMnemonic( 'Q' );\r\n qMarkItem.addActionListener( listener );\r\n\r\n newGameItem = new JMenuItem( Msgs.str( \"game.new\" ) );\r\n ks = KeyStroke.getKeyStroke( KeyEvent.VK_F2, 0 );\r\n newGameItem.setAccelerator( ks );\r\n newGameItem.addActionListener( listener );\r\n\r\n showSettingsItem = new JMenuItem( Msgs.str( \"settings.change\" ) );\r\n ks = KeyStroke.getKeyStroke( KeyEvent.VK_C, Event.ALT_MASK );\r\n showSettingsItem.setAccelerator( ks );\r\n showSettingsItem.setMnemonic( 'C' );\r\n showSettingsItem.addActionListener( listener );\r\n\r\n settingsMenu.add( qMarkItem );\r\n settingsMenu.add( newGameItem );\r\n settingsMenu.add( showSettingsItem );\r\n }"
]
| [
"0.7249059",
"0.7067198",
"0.69152474",
"0.68492776",
"0.6838699",
"0.6838699",
"0.66991055",
"0.6675251",
"0.65593046",
"0.65401",
"0.6510181",
"0.6508382",
"0.64869565",
"0.6441339",
"0.6432581",
"0.64243907",
"0.64136",
"0.63947624",
"0.6325822",
"0.6250974",
"0.61666435",
"0.6098602",
"0.6080191",
"0.6065607",
"0.60564595",
"0.60216117",
"0.6019575",
"0.6018779",
"0.60171807",
"0.60131204",
"0.5958354",
"0.59380704",
"0.5929856",
"0.5904557",
"0.5904254",
"0.58825934",
"0.5874326",
"0.58614784",
"0.5832024",
"0.5826218",
"0.5825762",
"0.57900196",
"0.57758003",
"0.5768303",
"0.57651204",
"0.57451105",
"0.5739979",
"0.57078856",
"0.5688205",
"0.5685902",
"0.56748813",
"0.566975",
"0.56607115",
"0.565609",
"0.5655652",
"0.5647483",
"0.5620715",
"0.560198",
"0.55867594",
"0.55845225",
"0.55833274",
"0.55700165",
"0.5556873",
"0.5556126",
"0.5555764",
"0.555402",
"0.5541456",
"0.55323",
"0.55323",
"0.55210614",
"0.552072",
"0.55124193",
"0.5512057",
"0.5505128",
"0.5501763",
"0.54967374",
"0.5494445",
"0.5494274",
"0.54905117",
"0.5489618",
"0.5472396",
"0.54682535",
"0.5465866",
"0.5465615",
"0.5459546",
"0.5448099",
"0.5436393",
"0.5433058",
"0.5429488",
"0.5427094",
"0.5424223",
"0.5424035",
"0.5421059",
"0.5417905",
"0.5408429",
"0.5396121",
"0.5395207",
"0.538722",
"0.5387205",
"0.53811795",
"0.5376263"
]
| 0.0 | -1 |
Function is sending temperature value to server and getting the converted value and return the value | public double convertor(double temperature) {
// Create the locator object to locate the server
FahrenheitToCelsiusServiceLocator locatorObject = new FahrenheitToCelsiusServiceLocator();
double result = 0;
// setting the locator end point address
locatorObject.setFahrenheitToCelsiusEndpointAddress("http://localhost:8080/com.metacube.SoapServer/services/FahrenheitToCelsius");
try {
FahrenheitToCelsius temperatureConversion = locatorObject.getFahrenheitToCelsius();
result = temperatureConversion.convertFahrenheitToCelsius(temperature);
} catch (ServiceException | RemoteException e) {
System.out.println("Error in connection.");
} catch (Exception e) {
System.out.println("Error occured.");
}
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void getTemperature() {\r\n \t\r\n \t//Get the date from the DateService class\r\n \tDate theDate = theDateService.getDate(); \r\n \t\r\n \t//Increment the number of readings\r\n \tlngNumberOfReadings ++;\r\n \tdouble temp = 0.0;\r\n \tString rep = \"\";\r\n \t\r\n \t//Assume that the TMP36 is connected to AIN4\r\n \trep = this.theTemperatureService.readTemperature(\"4\");\r\n \tpl(rep);\r\n \ttemp = this.theTemperatureService.getTheTemperature();\r\n \t\r\n \t//All details necessary to send this reading are present so create a new TemperatureReading object\r\n \tTemperatureReading theReading = new TemperatureReading(temp, theDate, lngNumberOfReadings);\r\n \tthis.send(theReading);\r\n \t\r\n }",
"float getTemperature();",
"private void readRealTemp() {\n YCBTClient.getRealTemp(new BleDataResponse() {\n @Override\n public void onDataResponse(int i, float v, HashMap hashMap) {\n if (i == 0) {\n String temp = (String) hashMap.get(\"tempValue\");\n }\n }\n });\n }",
"@RequestMapping(\"/temperature\")\n public TemperatureResponse temperature() {\n LOG.info(\"Reading temperature\");\n TemperatureResponse response = new TemperatureResponse();\n response.setHost(getHostname());\n response.setTemperature(getTemperature());\n return response;\n }",
"public double convertirTemperaturas(){\r\n double resultado=.0;\r\n if(unidadOrigen=='C' && unidadDestino == 'F'){\r\n resultado=Math.round(conversorTemperatura.obtenerDeCelsiusAFahrenheit());\r\n }else if(unidadOrigen=='C' && unidadDestino == 'K'){\r\n resultado=conversorTemperatura.obtenerDeCelsiusAKelvin();\r\n }else if(unidadOrigen=='F' && unidadDestino == 'C'){\r\n resultado=Math.round(conversorTemperatura.obtenerDeFahrenheitACelsius());\r\n }else if(unidadOrigen=='F' && unidadDestino == 'K'){\r\n resultado=conversorTemperatura.obtenerDeFahrenheitAKelvin();\r\n }else if (unidadOrigen=='K' && unidadDestino == 'C'){\r\n resultado=conversorTemperatura.obtenerDeKelvinACelsius();\r\n }else if (unidadOrigen=='K' && unidadDestino == 'F'){\r\n resultado=conversorTemperatura.obtenerDeKelvinAFahrenheit();\r\n }else if (unidadOrigen=='C' && unidadDestino == 'C'){\r\n resultado=conversorTemperatura.getNumero();\r\n }\r\n return resultado;\r\n }",
"public static void temperatureConversion()\n\t{\n\t\tSystem.out.println(\"enter temperature in farenheit\");\n\t\tdouble mTemperatureFarenheit = scanner.nextDouble();\n\t\t\t\n\t\tdouble mToCelcius = ((mTemperatureFarenheit - 32) / 1.8);\n\t\tdouble mToFarenheit = ((mToCelcius * 1.8) + 32);\n\t\tSystem.out.println(\"temperature in celcius is \" + mToCelcius);\n\t\tSystem.out.println(\"temperature in farenheit is \" +mToFarenheit);\n\t\t\n\t}",
"private void convert() {\n\t\t//first we have to get the input from textField to covert it\n\t\tString input = inputText.getText(); //caz getText() returns anything in String only.\n\t\tfloat enteredTemperature = 0.0f;\n\t\ttry {\n\t\t\tenteredTemperature = Float.parseFloat(input); //converting string in float type.\n\t\t}catch (Exception e){\n\t\t\twarnUser(); // here we warn, user to enter valid temperature but the info shows value for default\n\t\t\t// we have to add retrun; to end the code here only.\n\t\t\treturn;\n\t\t}\n\t\tfloat newConvertedTemperature = 0.0f;\n\t\tif(isC_to_F_selected) //IF user selected C_to_F_Text then do this\n\t\t{\n\t\t\tnewConvertedTemperature = (enteredTemperature * 9/5) + 32;\n\t\t}else{ //IF user selected F_to_C_Text then do this\n\t\t\tnewConvertedTemperature = (enteredTemperature - 32) * 5/9;\n\t\t}\n\t\tdisplay(newConvertedTemperature);\n\t}",
"protected void onGetTemperatureSetting1(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}",
"public double getTemperature() {return temperature;}",
"public Float getTemperature () {\n return temperature;\n }",
"private String HumidityConversion() {\n int reading = ((raw[21] & 0xFC) >> 2) + ((raw[22] & 0x0F) << 6);\n\n // double fixed = (161.29 * (0.000967742 * reading - 0.16)) / (1.0546 - 0.00216 * Double.parseDouble(TemperatureConversion()));\n\n double fixed = (0.204036 * reading - 25.8065) / (1.0546 - 0.00216 * Double.parseDouble(TemperatureConversion())) + 6;\n\n return Double.valueOf(threeDForm.format(fixed)) + \"\";\n }",
"double getTempo();",
"public static int getTemperature() {\n\t\t\n\t\tSystem.out.println(\"Enter temperature value : \");\n\t\tint inputValue = sc.nextInt();\n\t\treturn inputValue;\n\t}",
"protected void onGetTemperatureSetting2(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}",
"private void updateTemperatureValue(float temperature) {\n \t\t\n \t\tString mValue = null;\n \t\t\n \t\tif(temperatureFormat.equals(\"c\")) {\n \t\t\tmValue = String.format(celsiusFormat, temperature);\n \t\t} else if(temperatureFormat.equals(\"f\")) {\n \t\t\tmValue = String.format(fahrenheitFormat, \n \t\t\t\t\tUnitConversionUtils.comvertTemperature(temperature, UnitConversionUtils.CELSIUS, UnitConversionUtils.FAHRENHEIT));\n \t\t} else {\n \t\t\tmValue = String.format(kelvinFormat, \n \t\t\t\t\tUnitConversionUtils.comvertTemperature(temperature, UnitConversionUtils.CELSIUS, UnitConversionUtils.KELVIN));\n \t\t}\n \t\t\n temperatureValueView.setText(mValue);\n \t}",
"protected void onGetMeasuredRoomTemperature(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}",
"@Override\r\n\tpublic void askTemperatureAsync() throws Exception\r\n\t\t{\n\r\n\t\tbyte[] tabByte = TrameEncoder.coder(ASK_MSG_TEMPERATURE);\r\n\t\toutputStream.write(tabByte);\r\n\t\t}",
"public float getTemperature() {\n\t\treturn (float) getRawTemperature() / 100f;\n\t}",
"@Override \n public double getTemperature() { \n return pin.getValue();\n }",
"private void openRealTemp() {\n YCBTClient.appTemperatureMeasure(0x01, new BleDataResponse() {\n @Override\n public void onDataResponse(int i, float v, HashMap hashMap) {\n if (i == 0) {\n //success\n }\n }\n });\n }",
"void getCabinTemperature(Bus bus, TempHandler callback);",
"public java.lang.String getTemperature() {\n java.lang.Object ref = temperature_;\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 temperature_ = s;\n return s;\n }\n }",
"public int getTemperature() {\n return temperature;\n }",
"public void updateCelcius(){\n tempInC = ( (tempInF - 32)/9 ) * 5;\n }",
"public String getTemperature() {\n return temperature;\n }",
"public String getCpuTemperature_huawei(){\n\n String maxTemp = \"\";\n try {\n RandomAccessFile reader = new RandomAccessFile( \"/sys/class/thermal/thermal_zone1/temp\", \"r\" );\n\n boolean done = false;\n while ( ! done ) {\n String line = reader.readLine();\n if ( null == line ) {\n done = true;\n break;\n }\n maxTemp =line;\n }\n\n } catch ( IOException ex ) {\n ex.printStackTrace();\n }\n return String.valueOf(Double.parseDouble(maxTemp) / 1000);\n }",
"public int getTemperature() {\n return temperature;\n }",
"private String tempConversion() {\n int reading = ((record[17] & 255) + ((record[21] & 0x30) << 4));\n\n double voltage = (reading * 3.3) / 1024;\n return formatter.format((voltage - .6) / .01);\n\n }",
"public String getCurrentTempInVancouver() throws IOException, JSONException {\n JSONObject json = readJsonFromUrl(theURL);\n JSONObject main = (JSONObject) json.get(\"main\");\n double kelvinD = 987654;\n int kelvinI = 987654;\n double c;\n try {\n kelvinD = (Double) main.get(\"temp\");\n } catch (ClassCastException e) {\n kelvinI = (Integer) main.get(\"temp\");\n }\n if (kelvinD != 987654) {\n c = kelvinD - 273.15;\n } else {\n c = kelvinI - 273.15;\n }\n double ccOneDecimal = Math.round(c * 10) / 10.0;\n return ccOneDecimal + \"°C\";\n }",
"public double getInputTemperature() throws NumberFormatException {\n\t\treturn inputPanel.getTemperature();\n\t}",
"public java.lang.String getTemperature() {\n java.lang.Object ref = temperature_;\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 temperature_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"private double measureTemp() {\n try {\n analog0 = blueTooth.sensor(0);\n analog1 = blueTooth.sensor(1);\n return ((analog0 - analog1) * 5 * 100) / 1024.0;\n } catch (TimeoutException ex) {\n Logger.getLogger(TempMeasure.class.getName()).log(Level.SEVERE, null, ex);\n }\n return ((analog0 - analog1) * 5 * 100) / 1024.0;\n }",
"@Override\r\n public int getTemperature(){\r\n return 10;\r\n }",
"@Override\n public void onReceive(BluetoothLeUart uart, BluetoothGattCharacteristic rx) {\n\n\n\n writeLine(\"Received: \" + rx.getStringValue(0));\n String data = rx.getStringValue(0);\n String delim = \"[,]\";\n final String[] tokens = data.split(delim);\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() { //Using the conversions in the Hardware README.\n TextView tempDoe = (TextView) findViewById(R.id.tempMonitor);\n TextView humid = (TextView) findViewById(R.id.humidMonitor);\n TextView noisePol = (TextView) findViewById(R.id.noisePolMonitor);\n TextView carMon = (TextView) findViewById(R.id.coMonitor);\n float value = new BigInteger(tokens[0], 16).longValue();\n //System.out.println(value);\n float temp = (value * 50) / 65535;\n //System.out.println(temp);\n double tempFah = temp * 1.8000 + 32.00;\n String tempFahStr = String.valueOf(tempFah);\n //System.out.println(tempFah);\n int humidity = (Integer.parseInt(tokens[1],16) * 100) / 65535;\n String humidityDoe = String.valueOf(humidity);\n double noiseLev = Integer.parseInt(tokens[2],16);\n noiseLev = 20*(Math.log10(noiseLev/1024));\n String noiseLevStr = String.valueOf(noiseLev);\n int methane = Integer.parseInt(tokens[3],16);\n String methaneStr = String.valueOf(methane);\n tempDoe.setText(tempFahStr);\n humid.setText(humidityDoe);\n noisePol.setText(noiseLevStr);\n carMon.setText(methaneStr);\n }\n });\n\n\n\n float value = new BigInteger(tokens[0], 16).longValue(); //Done twice because, well, time\n //System.out.println(value); //issues...\n float temp = (value * 50) / 65535;\n //System.out.println(temp);\n double tempFah = temp * 1.8000 + 32.00;\n //System.out.println(tempFah);\n int humidity = (Integer.parseInt(tokens[1],16) * 100) / 65535;\n double noiseLev = Integer.parseInt(tokens[2],16);\n noiseLev = 20*(Math.log10(noiseLev/1024));\n int methane = Integer.parseInt(tokens[3],16);\n\n\n\n System.out.println(tempFah + \" \" + humidity + \" \" + noiseLev + \" \" + methane);\n\n writeLine(\"Pushing to Parse...\");\n //Parse.initialize(this, /*YOUR APP ID*/, /*YOUR CLIENT ID*/);\n ParseObject dataStuff = new ParseObject(\"SensorData\");\n dataStuff.put(\"User\",\"UserName\");\n dataStuff.put(\"Latitude\",\"Latitude Information\");\n dataStuff.put(\"Longitude\",\"Longitude Information\");\n dataStuff.put(\"Temperature\",tempFah);\n dataStuff.put(\"Humidity\",humidity);\n dataStuff.put(\"NoiseLevel\",noiseLev);\n dataStuff.put(\"Methane\",methane);\n dataStuff.saveInBackground();\n writeLine(\"Finished pushing.\");\n writeLine(\"Temperature (F): \" + tempFah);\n writeLine(\"Humidity: \" + humidity);\n writeLine(\"Noise Level: \" + noiseLev);\n writeLine(\"Methane: \" + methane);\n writeLine(\"Sensor Data Collected and pushed!\");\n\n }",
"public static float getCpuTemperature() throws IOException, InterruptedException, NumberFormatException {\n \treturn pi4jSystemInfoConnector.getCpuTemperature();\r\n }",
"private void getTemperatureAndHumidity() {\n // Get Temp and Humid sensors only at PM10 locations, otherwise\n // the connection takes too long to load all\n for (Sensor pm10sensor : this.sensorsPm10) {\n this.sensorsTempHumid.addAll(\n this.getSensors(\n this.readHTML(\n this.buildURLTempHumid(\n pm10sensor.getLatLng()))));\n }\n }",
"protected abstract byte[] getTemperatureSetting1();",
"public String getTemperature() {\r\n\t\treturn temperature;\r\n\t}",
"public double getExternalTemperature() {\r\n return externalTemperature;\r\n }",
"FloatResource temperatureCoefficient();",
"public float getTempCelsius() {\n float tempC = 0;\n if (readings.size() > 0) {\n tempC = readings.get(readings.size() - 1).temperature;\n }\n return tempC;\n }",
"protected abstract byte[] getTemperatureSetting2();",
"@Override\n public void run() {\n double range = 100 - 0;\n double scaled = random.nextDouble() * range;\n // to get the timestamp\n String timeStamp = \"{\\\"Timestamp\\\":\\\"\" + new SimpleDateFormat(\"yyyy.MM.dd.HH.mm.ss\").format(new Date()) + \"\\\", \"+ \"\\\"Temperature\\\":\";\n double shifted = scaled + 0;\n String topic;\n // to determine the range of temperatures and accordingly determine the topics to which they need to be sent\n if (shifted >= 0 && shifted <= 45) {\n topic = \"temperature/pittsburgh/coldTemps\";\n } else if (shifted > 45 && shifted <= 80) {\n topic = \"temperature/pittsburgh/niceTemps\";\n } else {\n topic = \"temperature/pittsburgh/hotTemps\";\n }\n String content = (Double.toString(Math.round(shifted*100.0)/100.0));\n content = timeStamp + \"\\\"\" + content + \"\\\"\" + \"}\";\n //create a new message \n MqttMessage message = new MqttMessage(content.getBytes());\n message.setQos(qos);\n try {\n // publish the message to the MQTT broker\n sampleClient.publish(topic, message);\n } // catching and printing the exception\n catch (MqttException me) {\n System.out.println(\"reason \" + me.getReasonCode());\n System.out.println(\"msg \" + me.getMessage());\n System.out.println(\"loc \" + me.getLocalizedMessage());\n System.out.println(\"cause \" + me.getCause());\n System.out.println(\"excep \" + me);\n me.printStackTrace();\n //Logger.getLogger(TemperatureSensor.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public static double convertFahtoCel(double temp){\r\n return ((temp - 32) * 5) / 9;\r\n }",
"protected void onGetMeasuredFloorTemperature(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}",
"@Override\n public void skinTemperature(int value, int timestamp) {\n }",
"protected void onSetTemperatureSetting1(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}",
"public String getTemperature() {\n\t\treturn temperature;\n\t}",
"public String getTemperatureInCelcius(float temp)\n {\n\n temp = ((temp - 32) * 5) / 9;\n\n return Float.toString(temp);\n }",
"private MqttMessage readEngineTemp() {\n double temp = 80 + rnd.nextDouble() * 20.0;\n byte[] payload = String.format(\"T:%04.2f\",temp).getBytes();\n MqttMessage msg = new MqttMessage(payload);\n return msg;\n }",
"public HLAfloat32BE getTemperature() { return this.temperature; }",
"public int getTemperature() {\n return VirtualHardwareManager.getInstance().getTemperature();\n }",
"public static double getTemperature(String weatherInfos) {\n\t\tMap<String, Object> respMap = jsonToMap(weatherInfos.toString());\n\t\tMap<String, Object> mainMap = jsonToMap(respMap.get(\"main\").toString());\n\t\t\n\t\tObject temp = mainMap.get(\"temp\");\n\t\t\n\t\tdouble temperatureInKelvin = (double)temp;\n\t\t\n\t\tdouble temperatureInCelsius = convertKelvinToCelsius(temperatureInKelvin);\n\t\tdouble rounded = BigDecimal.valueOf(temperatureInCelsius)\n\t\t\t\t.setScale(2, RoundingMode.HALF_UP)\n\t\t\t\t.doubleValue();\n\t\treturn rounded;\n\n\t}",
"@Override public void askTemperatureAsync() throws MeteoServiceException\n\t\t{\n\t\ttry\n\t\t\t{\n\t\t\tcomConnexion.askTemperatureAsync();\n\t\t\t}\n\t\tcatch (Exception e)\n\t\t\t{\n\t\t\tthrow new MeteoServiceException(\"[MeteoService] : askTemperatureAsync failure\", e);\n\t\t\t}\n\t\t}",
"public void setTemperature(int value) {\n this.temperature = value;\n }",
"public static double celsiusToFahrenheit(double celsius){\n \n //declare variable for converted temperature\n double convertedTemperature = ((9.0 / 5) * celsius + 32);\n \n //return value of converted temperature\n return convertedTemperature;\n \n }",
"public Double getThermistorCelsiusTemperature()\n {\n return finchController.getThermistorCelsiusTemperature();\n }",
"protected void onSetTemperatureSetting2(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}",
"public int getTemperature() {\n\t\treturn temperature;\n\t}",
"@Override\r\n public void onChanged(BleDevice device, BluetoothGattCharacteristic characteristic) {\r\n L.e(TAG, \"onChanged==data:\" + Arrays.toString(characteristic.getValue()));\r\n\r\n /**\r\n * {\"tmp\":\"test\",\"now_tmp\":\"37.6\",\"max_tmp\":\"38.1\",\"min_tmp\":\"36.5\"} 模拟数据\r\n * */\r\n\r\n try {\r\n if (result == null) {\r\n result = sb.append(new String(characteristic.getValue(), \"UTF-8\"));\r\n String over = result.toString();\r\n Toast.makeText(getApplicationContext(),over,Toast.LENGTH_SHORT).show();\r\n } else {\r\n result = sb.append(new String(characteristic.getValue(), \"UTF-8\"));\r\n String over = result.toString();\r\n Toast.makeText(getApplicationContext(),over,Toast.LENGTH_SHORT).show();\r\n if (over.contains(\"}\")) {\r\n //解析\r\n JSONObject obj = new JSONObject(over);\r\n // String test = obj.getString(\"tmp\"); //test\r\n String current = obj.getString(\"now_tmp\"); //当前体温\r\n String max = obj.getString(\"max_tmp\"); //最高体温\r\n String min = obj.getString(\"min_tmp\");\r\n if (!TextUtils.isEmpty(current)) {\r\n tv_current_temperature.setText(current);\r\n } else {\r\n tv_current_temperature.setText(\"未知\");\r\n }\r\n if (!TextUtils.isEmpty(max)) {\r\n tv_max_temperature.setText(max);\r\n } else {\r\n tv_max_temperature.setText(\"未知\");\r\n }\r\n\r\n if (!TextUtils.isEmpty(min)) {\r\n tv_min_temperature.setText(min);\r\n } else {\r\n tv_min_temperature.setText(\"未知\");\r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n } catch (Exception e) {\r\n Toast.makeText(getApplicationContext(),\"数据源格式出错\",Toast.LENGTH_SHORT).show();\r\n e.printStackTrace();\r\n }\r\n\r\n }",
"public double getHumidityTemperature() {\r\n return humidityTemperature;\r\n }",
"public static double fahrenheitToCelsius(double fahrenheit){\n \n //declare variable for converted temperature\n double convertedTemperature = ((5.0 / 9) * (fahrenheit - 32));\n \n //return value of converted temperature\n return convertedTemperature; \n }",
"int surfaceTemperature(C config);",
"public Temperature toCelsius(){\n\t\tif (scale==\"F\"){\n\t\t\tdegrees=(degrees-32)*5/9;\n\t\t\tscale=\"C\";}\n\t\t\treturn this;\n\t}",
"public void setExternalTemperature(double value) {\r\n this.externalTemperature = value;\r\n }",
"public void setTemperature(double temp){tempval.setText(Double.toString(temp));}",
"public static double convertCeltoFah(double temp){\r\n return (temp * 9/5) + 32;\r\n }",
"public double getTemperatureCelsius() {\n return temperatureCelsius;\n }",
"public void setTemp(int temp) {\n \tthis.temperature = temp;\n }",
"public void setTemperature(Float temperature) {\n this.temperature = temperature;\n }",
"public void convert() throws IOException {\n URL url = new URL(SERVICE + City + \",\" + Country + \"&\" + \"units=\" + Type + \"&\" + \"APPID=\" + ApiID);\n BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream()));\n String line = reader.readLine();\n // Pobieranie JSON\n\n // Wyciąganie informacji z JSON\n //*****************************************************************\n //Temp\n if (!StringUtils.isBlank(line)) {\n int startIndex = line.indexOf(\"{\\\"temp\\\"\") + 8;\n int endIndex = line.indexOf(\",\\\"feels_like\\\"\");\n temperature = line.substring(startIndex, endIndex);\n // System.out.println(temperature);\n }\n //Min temp\n if (!StringUtils.isBlank(line)) {\n int startIndex = line.indexOf(\",\\\"temp_min\\\"\") + 12;\n int endIndex = line.indexOf(\",\\\"temp_max\\\"\");\n temperatureMin = line.substring(startIndex, endIndex);\n // System.out.println(temperatureMin);\n }\n //Max temp\n if (!StringUtils.isBlank(line)) {\n int startIndex = line.indexOf(\"\\\"temp_max\\\":\") + 11;\n int endIndex = line.indexOf(\",\\\"pressure\\\"\");\n temperatureMax = line.substring(startIndex, endIndex);\n //System.out.println(temperatureMax);\n }//todo dodaj więcej informacji takich jak cisnienie i takie tam\n //*****************************************************************\n }",
"@Override\n\tpublic int getTemperature() throws emException, TException {\n\t\treturn 0;\n\t}",
"public com.google.protobuf.ByteString\n getTemperatureBytes() {\n java.lang.Object ref = temperature_;\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 temperature_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public float getTemperatureInFahrenheit() {\n\t\tif(this.metric==Metric.CELSIUS) {\n\t\t\treturn(this.temperature*(9/5)+32);\n\t\t}else if(this.metric==Metric.KELVIN) {\n\t\t\treturn (9*(this.temperature - 273)/5 + 32);\n\t\t}\n\t\treturn this.temperature;\n\t\t\n\t}",
"public void setHumidityTemperature(double value) {\r\n this.humidityTemperature = value;\r\n }",
"public float getTempFarenheit() {\n float tempF = 0;\n float tempC;\n if (readings.size() > 0) {\n tempC = readings.get(readings.size() - 1).temperature;\n tempF = (float) ((tempC * 1.8) + 32);\n\n }\n return tempF;\n }",
"protected abstract void getPotentiometerValue(int value, int channelNo);",
"public com.google.protobuf.ByteString\n getTemperatureBytes() {\n java.lang.Object ref = temperature_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n temperature_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"private String requestHttp(Intent intent) throws IOException {\n List<NameValuePair> params = new ArrayList<NameValuePair>();\r\n params.add(new BasicNameValuePair(\"temp\", intent.getSlot(SLOT_TEMPERATURE).getValue()));\r\n\r\n// Gson gson = new Gson();\r\n\r\n// for (NameValuePair nvp : params) {\r\n// String name = nvp.getName();\r\n// String value = nvp.getValue();\r\n// System.out.println(\"basic name: \" + name + \" -- \" + value);\r\n// }\r\n httpPostTemp(params);\r\n// HttpPost httpPost = new HttpPost(\"http://ec2-13-229-56-107.ap-southeast-1.compute.amazonaws.com/methods/setTemp\");\r\n// httpPost.setEntity(new UrlEncodedFormEntity(params));\r\n// HttpResponse resp = client.execute(httpPost);\r\n// EntityUtils.consumeQuietly(resp.getEntity());\r\n\r\n return getCurrentTemp();\r\n }",
"private static Temperature getNewTemperature() {\n System.out.println(\"Enter an initial temperature reading, which\");\n System.out.print(\"should be a number optionally followed by C or F: \"); \n String response = input.nextLine().trim(); \n if (echo) { System.out.println(response); }\n double initVal = parseOutNum(response);\n char scale = Character.toUpperCase(parseOutScale(response));\n\n if (scale == CEL_SCALE_CODE) { \n System.out.printf(\"Calling Temperature(%f,true)\\n\", initVal);\n return new Temperature(initVal, true);\n }\n else if (scale == FAH_SCALE_CODE) {\n System.out.printf(\"Calling Temperature(%f,false)\\n\", initVal);\n return new Temperature(initVal, false);\n }\n else { // no scale indicated\n System.out.printf(\"Calling Temperature(%f)\\n\", initVal);\n return new Temperature(initVal);\n }\n }",
"void update(double temperature, double maxTemperature, double minTemperature, int humidity);",
"public void convert(){\n afterValue = firstValue * 1000;\n }",
"public float getCurrentTemp(){\n return currentTemp;\n }",
"public void run() {\n\t\t\t\t\t\tint success;\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t// Building Parameters\r\n\t\t\t\t\t\t\tList<NameValuePair> params = new ArrayList<NameValuePair>();\r\n\t\t\t\t\t\t\tparams.add(new BasicNameValuePair(TAG_NAME, \"TempSensor\"));\r\n\t\t\t\t\t\t\t// getting product details by making HTTP request\r\n\t\t\t\t\t\t\t// Note that product details url will use GET request\r\n\t\t\t\t\t\t\tJSONObject json = jsonParser.makeHttpRequest(\r\n\t\t\t\t\t\t\t\t\turl_read_sensor, \"GET\", params);\r\n\t\t\t\t\t\t// check your log for json response\r\n\t\t\t\t\t\t\tLog.d(\"Smart Home\",\"===========sensor value=================\");\r\n\t\t\t\t\t\t\tLog.d(\"Smart Home\",json.toString());\r\n\t\t\t\t\t\t\tString result = \"CurrentValue \" + json.getString(TAG_SENSOR) + \"\\n\";\r\n\t\t\t\t\t\t\twelcome.append(myUI.getStyle(result, 12, 15, \"GREEN\") );\t\t\t\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t\tcatch (Exception e) {\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}",
"public double getHumidityValue() {\r\n return humidityValue;\r\n }",
"int getTempo();",
"public double GetMashTemperature() {\n\t\treturn msc.GetMashTemperature();\n\t}",
"public void setTemperature(int value) {\n\t\tthis.temperature = value;\n\t}",
"private static double getUserInputCelsius() {\n Scanner input = new Scanner(System.in);\n double celsius = input.nextDouble();\n\n return celsius;\n }",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n String celsius = req.getParameter(\"celsius\");\n\n try {\n double celsiusDouble = Double.parseDouble(celsius);\n double farenheit = 1.8 * celsiusDouble + 32;\n\n BigDecimal resultat = BigDecimal.valueOf(farenheit);\n resultat = resultat.setScale(2, RoundingMode.HALF_UP);\n\n //J'encapsule le resultat dans la requete en tant qu'attribut\n req.setAttribute(\"resultat\", resultat);\n } catch (NumberFormatException e) {\n req.setAttribute(\"error\", \"Erreur de saisie\");\n } finally {\n doGet(req, resp);\n }\n }",
"public double getCurrentTemperature() {\n return this.currentTemperature;\n }",
"private String externalConversion() {\n int reading = ((record[19] & 255) + ((record[21] & 0x03) << 8));\n\n Map<String, BigDecimal> variables = new HashMap<String, BigDecimal>();\n variables.put(\"x\", new BigDecimal(reading));\n BigDecimal result = externalConversion.eval(variables);\n\n String x = result + \"\";\n\n if(this.counter){\n x = Integer.parseInt(x) * (60/rate) + \"\";\n }\n\n return x;\n }",
"public double getWeatherAPI() {\n\t\tRestAssured.baseURI= props.getProperty(\"BaseURI\");\n\t\tString response = \tgiven().log().all().header(\"Content-Type\",\"application/json\").\n\t\t\t\tqueryParam(\"q\", props.getProperty(\"city\")).\n\t\t\t\tqueryParam(\"appid\", props.getProperty(\"key\")).\n\t\t\t\tqueryParam(\"units\", props.getProperty(\"unit\"))\n\t\t\t\t.when().get(\"data/2.5/weather\")\n\t\t\t\t.then().log().all().assertThat().statusCode(200).header(\"charset\", \"UTF-8\").extract().response().asString();\n\n\n\t\tSystem.out.println(response);\n\n\t\tJsonPath json = new JsonPath(response); // parsing the String response to Json\n\t\tString temp = json.getString(\".main.temp\");\n\t\tSystem.out.println(temp);\n\t\t\n\t\tdouble tempurature = Double.parseDouble(temp);\n\t\t\n\t\treturn tempurature;\n\t\t\n\t\t\n\t\t\n\t}",
"public String getTempInCelsius() {\n\t\treturn tempInCelsius;\n\t}",
"public void setTemperature(String temperature) {\n this.temperature = temperature;\n }",
"public void run (){\n double degF;\n double degC;\n\n // Get degF from user input\n degF = readDouble(\"Enter the temperature in Fahrenheit: \");\n\n // Compute degC = 5.0 / 9 * (f - 32);\n degC = (5.0 / 9) * (degF - 32);\n // Output degC\n System.out.println(\"The temperature in Celsius is \" + degC + \" degrees.\");\n }",
"public Float getHumidity () {\n return humidity;\n }",
"@Override\r\n public Double makeCall() throws UnsupportedEncodingException, MalformedURLException, IOException{\r\n String charset = \"UTF-8\";\r\n String symbol = this.pair;\r\n String query = String.format(\"?symbol=%s\",\r\n URLEncoder.encode(symbol, charset));\r\n URLConnection connection = new URL(this.url + query).openConnection();\r\n connection.setRequestProperty(\"Accept-Charset\", charset);\r\n InputStream stream = connection.getInputStream();\r\n ByteArrayOutputStream responseBody = new ByteArrayOutputStream();\r\n byte buffer[] = new byte[1024];\r\n int bytesRead = 0;\r\n while ((bytesRead = stream.read(buffer)) > 0) {\r\n responseBody.write(buffer, 0, bytesRead);\r\n }\r\n String responseString = responseBody.toString();\r\n int index = responseString.indexOf(\",\"); //a response only contains 1 comma\r\n return Double.parseDouble(responseString.substring(index + 10, responseString.lastIndexOf('\"')));\r\n }",
"private int calculateTemp(){\n\n int time = (int) Bukkit.getServer().getWorld(worldName).getTime();\n\n // Calculate temp (y value) on a manipulated sine wave\n return (int) Math.round(\n Math.sin( (time * 0.000262) - ( (peakTime/24000.0) * Math.PI * 2 ) + (0.5 * Math.PI) ) * ((maxTemp-minTemp)/2.0)\n + (minTemp + ((maxTemp-minTemp)/2.0))\n );\n }",
"public void CommitTempData(View view)\n {\n //Data validation\n String minTempField = ((EditText) findViewById(R.id.temperature_minTemp_EditText)).getText().toString();\n String maxTempField = ((EditText) findViewById(R.id.temperature_maxTemp_EditText)).getText().toString();\n\n if((!minTempField.equals(\"\"))&&(!maxTempField.equals(\"\"))) {\n //Creates connection\n String[] connectionData = new String[5];\n connectionData[0] = getResources().getString(R.string.server_set_temp_data);\n connectionData[1] = \"?DeviceCode=\" + deviceCode;\n connectionData[2] = \"&MinSet=\" + minTempField;\n connectionData[3] = \"&MaxSet=\" + maxTempField;\n connectionData[4]=\"&CurrentTemp=\"+Float.toString(currentTemp);\n new SetTempData(this).execute(connectionData);\n }\n else\n {\n Toast.makeText(this,getResources().getString(R.string.temp_empty_field),Toast.LENGTH_SHORT).show();\n }\n }"
]
| [
"0.6786036",
"0.67057574",
"0.6541925",
"0.63427705",
"0.63037765",
"0.62909216",
"0.6207452",
"0.61954814",
"0.6162984",
"0.61320275",
"0.6123412",
"0.6111857",
"0.6093232",
"0.6085996",
"0.6052514",
"0.60494894",
"0.6034902",
"0.6016575",
"0.59995884",
"0.59713084",
"0.5962855",
"0.5939406",
"0.5938386",
"0.59303546",
"0.5925644",
"0.5896444",
"0.58943766",
"0.58912164",
"0.58821255",
"0.58780605",
"0.58438516",
"0.58361936",
"0.58284783",
"0.58228654",
"0.58211935",
"0.58138376",
"0.5808295",
"0.5803522",
"0.58021027",
"0.5798636",
"0.57858855",
"0.5763031",
"0.5753911",
"0.5736996",
"0.5718177",
"0.5716656",
"0.5707464",
"0.57055163",
"0.5703177",
"0.569399",
"0.5677577",
"0.5659132",
"0.56563604",
"0.5644283",
"0.56400704",
"0.5634627",
"0.5625913",
"0.5615041",
"0.56142753",
"0.5612206",
"0.56112844",
"0.56091005",
"0.55985713",
"0.55966526",
"0.55957246",
"0.558967",
"0.5588954",
"0.5585357",
"0.5568442",
"0.55677855",
"0.5552313",
"0.5543961",
"0.55387586",
"0.553724",
"0.55259514",
"0.5524737",
"0.5498178",
"0.5497485",
"0.54905236",
"0.5485851",
"0.54851407",
"0.54645354",
"0.5447799",
"0.5447769",
"0.5447576",
"0.54461753",
"0.5416153",
"0.540948",
"0.5408494",
"0.54070616",
"0.5400517",
"0.5393419",
"0.5388855",
"0.5383047",
"0.5382527",
"0.53808916",
"0.5367301",
"0.53575075",
"0.5356887",
"0.5349192"
]
| 0.7271355 | 0 |
Write a recursive function to calculate sum of digits of any number | public static void main(String[] args) {
int input = 7123456;
int result = sumOfDigits(input, 0);
System.out.println(result);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static int sumDigits(int sum) {\n int result;\n do {\n result = 0;\n while (sum != 0) {\n result += sum % 10;\n sum /= 10;\n }\n sum = result;\n }\n while (result > 9);\n return result;\n }",
"public static int sumDigits(int number){\n if(number < 10){\r\n return -1;\r\n }\r\n\r\n\r\n //need to assign the digit to an empty variable\r\n int sum = 0;\r\n\r\n while(number > 0){\r\n\r\n //assign last digit in number to variable\r\n int last_digit = number%10;\r\n\r\n //add last_digit to sum\r\n sum += last_digit;\r\n\r\n //drop the least significant digit\r\n number = number/10;\r\n\r\n //number is now the digits without the last digit and this new number is used to test the loop\r\n }\r\n\r\n return sum;\r\n\r\n\r\n\r\n }",
"public static long sumOfDigits(long n) {\n int sum = 0;\n // Checks the integer and adds up its variables\n while (n > 0) {\n sum += n % 10;\n n /= 10;\n }\n // returns the sum of digits back\n return sum;\n }",
"int digitDegree(int n) {Process\n\t // 1. Input int n\n\t // 2. Get digitSum\n\t // 3. Check if it's singleDigit\n\t // 3.1. If not - recursive with count\n\t // 4. Return count \n\t // \n\t \n\t int digitSum = 0;\n\t int count = 0;\n\t \n\t if (n >= 10) {\n\t count++;\n\t }\n\t while (n > 0) {\n\t digitSum += n%10;\n\t n /= 10;\n\t }\n\t \n\t if (digitSum >= 10) {\n\t digitDegree_Recursive(digitSum, &count);\n\t }\n\t return count;\n\t}",
"protected static int sumDigits(int number) {\n int total = 0;\n int todo = number;\n while (todo > 0) {\n total += todo % 10;\n todo = todo / 10;\n }\n return total;\n }",
"private static int calcDigitsSum(long number) {\r\n\t\tint sum = 0;\r\n\t\t\r\n\t\twhile (number != 0) {\r\n\t\t\tint value = (int) (number % 10);\r\n\t\t\tsum += value;\r\n\t\t\tnumber /= 10;\r\n\t\t}\r\n\t\t\r\n\t\treturn sum;\r\n\t}",
"static int digitSum(String n, int k) {\n int sum = findSum(convertToList(n));\n // Finding the initial super digit where k=1\n sum = findSuperDigit(convertToList(sum));\n // Calculating k times the super digit to find actual result\n return findSuperDigit(convertToList(sum*k));\n }",
"public static void main(String[] args) {\nScanner sc=new Scanner(System.in);\nint n=sc.nextInt();\nint temp=n;\nint sum=0;\nwhile(temp>0){\n\tint lastDigit=temp%10;\n\ttemp /= 10;\n\tsum += lastDigit;\n\tSystem.out.println(lastDigit+\" \"+temp+\" \"+sum);\n}\nSystem.out.println(\"Sum of the digits of \" + n +\" is \"+sum);\n//int numberofDigits=(int)Math.log10(n)+1;\n//System.out.println(numberofDigits);\n\t}",
"public static int sumNumberRec(int i)\r\n\t{\n\t\tif (i == 0){\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn (i % 10) + sumNumberRec( i / 10);\r\n\t\t}\r\n\t}",
"private static int sumDigits(int number)\n {\n if (number < 10)\n return -1;\n int sum = 0, leastSignificantBit = 0;\n\n while (number > 0)\n {\n //extract the least significant bit\n leastSignificantBit = number % 10;\n sum += leastSignificantBit;\n\n //drop the least significant digit\n number /= 10;\n }\n return sum;\n }",
"public int sumFirstAndLastDigit(int num) {\n\t\t// TODO Write an implementation for this method declaration\n\t\tint sum;\n\t\tint firstDigit = 0;\n\t\tint lastDigit = 0;\n\t\tint size;\n\t\tint num2;\n\t\tString num_string;\n\t\tif(num < 0) {\n\t\t\tsum = -1;\n\t\t}\n\t\telse {\n\t\t\tnum_string = Integer.toString(num);\n\t\t\tsize = num_string.length()-1;\n\t\t\tfirstDigit = (int)(num / (Math.pow(10, size)));\n\t\t\twhile(num > 10) {\n\t\t\t\tnum2 = (int)(num / (Math.pow(10, size)));\n\t\t\t\tnum = num % (int)(num2 * (Math.pow(10, size)));;\n\t\t\t\t//System.out.println(num);\n\t\t\t\tsize--;\n\t\t\t\t\n\t\t\t}\n\t\t\tlastDigit = num;\n\t\t\t//System.out.println(firstDigit);\n\t\t\t//System.out.println(lastDigit);\n\t\t\tsum = firstDigit+lastDigit;\n\t\t\t//System.out.println(sum);\n\t\t}\n\t\t\n\n\n\n//\t\tfirstDigit = (int) (num / (Math.pow(10, size)));\n//\t\tnum = (int)(num / (Math.pow(10, size)));\n//\t\tfirstDigit = num;\n\n\n\t\t\n\t\treturn sum;\n\t}",
"public static long digitSum(long n){\n if (String.valueOf(n).contains(\"-\")) return 0;\n long sum = 0;\n char[] chs = String.valueOf(n).toCharArray();\n for (char ch : chs){\n sum += Long.parseLong(String.valueOf(ch));\n }\n return sum;\n }",
"public int sumNumbers(TreeNode root) {\n if(root == null)\n return 0;\n res = 0;\n sumnum(root,0);\n return res;\n }",
"public static int addDigits(int x)\n\t{\n\t\t//Method variable\n\t\tint sum = 0;\n\t\t//Assign while loop and return a value.\n\t\twhile(x>0)\n\t\t{\n\t\t\t sum = x%10+sum;\n\t\t\t x=x/10;\n\t\t}\n\t\treturn(sum);\n\t}",
"public int sumNumbers(TreeNode root) {\n int solution = 0;\n\n String currentPath = \"\";\n\n // execute a dfs to find the leaf nodes\n findLeafNodes(root, currentPath);\n\n // loop through all the paths, convert to int, add to solution\n for(String curr:rootToLeafs){\n // save the current string as an integer\n int currentVal = Integer.parseInt(curr);\n\n // add the current value to the solution\n solution+=currentVal;\n }\n\n // return the solution\n return solution;\n }",
"include<stdio.h>\nint main()\n{\n int num,first_digit,last_digit,sum;\n scanf(\"%d\",&num);\n last_digit = num%10;\n first_digit=num;\n while(num>10)\n {\n num=num/10;\n }\n first_digit=num;\n sum = first_digit + last_digit;\n printf(\"%d\",sum);\n return 0;\n}",
"int sumRootToLeafNumbers();",
"public static int sumOfDigits(int A) {\n\n\t\tif (A == 0)\n\t\t\treturn 0;\n\t\telse\n\t\t\treturn A % 10 + sumOfDigits(A / 10);\n\n\t}",
"public static int sumSqure(int x){\n int sum=0;\n do{\n sum+=(x%10)*(x%10);\n x=x/10;\n }while(x!=0);\n return sum;\n }",
"public static int getSumOfDigitsinInt(int val) {\n\t\t// if we have just on digit, stop it\n\t\tif (val < 10) {\n\t\t\treturn val;\n\t\t} else {\n\t\t\t//we find the last digit in the int value, if 123, the last is 3\n\t\t\tint theLastDigit = val % 10;\n\t\t\t//we find another part of int, to divide it, until we don't come to 1 digit\n\t\t\tint beforeTheLastDigit = val / 10;\n\t\t\treturn theLastDigit + getSumOfDigitsinInt(beforeTheLastDigit);\n\t\t}\n\t}",
"public int sumNumbers(TreeNode root) {\n\t if(null == root) return 0;\n\t int bsum = 0;\n\t int tsum = 0;\n\t return sum (root, bsum, tsum);\n\t \n\t }",
"public int sumNumbers(TreeNode root) {\n // track the sum that we want to add\n int solution = 0;\n\n // execute a dfs to find the leaf nodes\n solution = findLeafNodes(root, solution);\n\n // return the solution\n return solution;\n }",
"public static int recursionSum(int[] num, int n) {\n if (n <= 2)\n System.out.println(num[n]);\n if (n <= 0)\n return 0;\n return recursionSum(num, n - 1) + num[n - 1];\n }",
"public int addDigits(int num) {\n\t\tint no = num;\n\t\twhile (no / 10 > 0) {\n\t\t\tint sum = 0;\n\t\t\twhile (no > 0) {\n\t\t\t\tint rem = no % 10;\n\t\t\t\tsum += rem;\n\t\t\t\tno = no / 10;\n\t\t\t}\n\n\t\t\tno = sum;\n\n\t\t}\n\t\treturn no;\n\t}",
"private static void digitSum(int UI)\n\t{\n\t\tint Sum = 0;\n\t\tint ValHold;\n\t\t\n\t\twhile (UI > 0)\n\t\t{\n\t\t\tValHold = UI%10;\n\t\t\tSum = Sum+ValHold;\n\t\t\tUI = UI/10;\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"The sum of the digits is: \"+Sum);\n\t\tSystem.out.println();\n\t}",
"public int sumNumbers2(TreeNode root) {\n \n int sum = 0 ;\n int cur = 0 ;\n Stack<Pair<TreeNode, Integer>> stack = new Stack<>() ;\n stack.push(new Pair(root, 0)) ;\n \n while(!stack.empty()){\n \n Pair<TreeNode, Integer> p = stack.pop() ;\n root = p.getKey() ;\n cur = p.getValue() ;\n \n if(root != null){\n \n cur = cur * 10 + root.val ;\n \n if(root.left == null && root.right == null){\n sum += cur ;\n }else{\n stack.push(new Pair(root.left, cur)) ;\n stack.push(new Pair(root.right, cur)) ;\n }\n \n }\n \n \n }\n \n return sum ; \n \n \n }",
"static int sum(int n) {\n\t\tif(n==1) \n\t\t\treturn 1;\n\t\treturn n+sum(n-1);\n\t}",
"public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n\n System.out.print(\"ENTER A NUMBER BETWEEN 0 AND 1000: \");\n int number = input.nextInt();\n \n //Extracting digits from the integer \n int number1 = number % 10;\n int number2 = (number / 10) % 10;\n int number3 = number / 100;\n\n //Adding the extracted digits\n int sum = number1 + number2 + number3;\n\n System.out.print(\"The sum of the digits is \" + sum +\"!\");\n \n }",
"public static int alldigits(int x) {\n count1=0;\n do {\n x = x / 10;\n count1++;\n } while (x != 0);\n return count1;\n }",
"public int addDigits(int num) {\n \tif (num == 0) {\n \t\treturn 0;\n \t}\n\n // the possible solution are between 1 and 9, and they always occur in order beginning from 1\n \tif (num % 9 == 0) {\n \t\treturn 9;\n \t}\n return num % 9;\n }",
"public static int digits(int a) {\n\t\tint digits=0; // initialize to 0 first\n\t\twhile(a !=0) { // while a is not 0 do under\n\t\t\ta = a/10; // since its dividing by integer if the number is lower than 10 it will return 0;\n\t\t\tdigits++; // when a/10 != 0 add 1 to digits \n\t\t}\n\t\treturn digits; // return digits\n\t}",
"public int countDigitOne(int n) {\n long res = 0;\n for(int i = 10; i <= n*10 ; i *= 10){\n int tmp = n - (n/i)*i;\n tmp = tmp > (i/10) ? (i/10) : (tmp - i/10);\n tmp = tmp > 0 ? tmp: 0;\n// int tmp = (n%i - i/10 + 1)>(i/10)?(i/10): (n%i - i/10 + 1);\n res += n/i + tmp;\n }\n return (int)res;\n }",
"public static int addDigits(int num) {\n\t\tif (num > 0) {\n\t\t\treturn num % 10 + addDigits(num/10);\n\t\t} else\n\t\t\treturn num;\n\t}",
"public static void sumNum() {\n\t\tint result = 0;\n\t\tfor(int i = 1; i<=112; i = i + 3) {\n\t\t\tresult = result + i;\t\n\t\t}\n\tSystem.out.println(\"Sum = \" + result);\n\t}",
"public static int digitCounter(int n){\r\n int counter=1;\r\n while(n>10){\r\n n=n/10;\r\n counter++;\r\n }\r\n System.out.println(\"conter : \" +counter);\r\n return counter;\r\n }",
"public static long sumOfDigitsByLooping(BigInteger integer) {\n String data = integer.toString();\n long sum = 0;\n for (int i = 0; i < data.length(); i++) {\n sum += data.charAt(i) & 0xF;\n }\n return sum;\n }",
"public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Enter a number: \");\n int number = sc.nextInt();\n\n int remainder;\n int sum = 0;\n int newSum = 0;\n int singleDigitNumber;\n if (number < 0) {\n System.exit(1);\n }\n while (number != 0) {\n remainder = number % 10;\n sum += remainder;\n number = number / 10;\n }\n\n if (sum < 10) {\n System.out.println(\"The sum of digits in entered number is: \" + sum);\n } else {\n while (sum != 0) {\n singleDigitNumber = sum % 10;\n newSum += singleDigitNumber;\n sum = sum / 10;\n\n }\n if (newSum == 10) {\n System.out.println(\"The sum of digits in entered number is: \" + 1);\n System.exit(1);\n }\n System.out.println(\"The sum of digits in entered number is: \" + newSum);\n }\n }",
"public int countDigitOne(int n) {\n long res = 0;\n for(int i = 1; i < n ; i *= 10){\n res += (long)n/i + n%(i*10);\n }\n return (int)res;\n }",
"public static void main (String[] args){\n int a,no,sum=0;\nScanner s=new Scanner(System.in);\n//System.out.println(\"Enter any number: \");\nno=s.nextInt();\nwhile(no>0)\n{\na=no%10;\nno=no/10;\nsum=sum+a;\n}\nSystem.out.println(sum);\n}",
"public static long sumofnum(String input){\n\t\tlong total = 0;\n\t\tfor(int i = 0; i <input.length(); i++){\n\t\t\tchar number = input.charAt(i); //extracts each digit in a number as a char\t\n\t\t\tlong sum = (long) Math.pow(Character.getNumericValue(number), 2); //Gets the numeric value of the char and then casts it as a long and then squares the number\n\t\t\ttotal += sum;\t// stores the total of the squares\n\t\t}\n\t\treturn total; //returns the total sum of the squares of each digit\n\t}",
"static int findSuperDigit(List<Integer> numList){\n int superDig = findSum(numList);\n // when the super digit is single stop recursion and return digit.\n if(superDig/10 >0)\n superDig = findSuperDigit(convertToList(superDig));\n return superDig;\n }",
"public int addDigits(int num) {\n\tif(num<10)\n\t return num;\n\telse if(num%9 ==0)\n\t return 9;\n\telse\n\t return num%9; \n}",
"public int countDigitOne(int n) {\n int res = 0;\n for(long i = 1 ; i <= n; i *= 10){\n long k = n/i, r = n % i;\n res += (k + 8) / 10 * i + ((k%10 == 1)?(r+1):0);\n }\n return res;\n }",
"public static int digitSumPowerTwo(int n) {\n String num = BigInteger.ONE.shiftLeft(1000).toString();\n int sum = 0;\n\n for (int i = 0; i < num.length(); i++)\n sum += num.charAt(i) - '0';\n \n return sum;\n }",
"static int find(int decimal_number) \r\n { \r\n if (decimal_number == 0) \r\n return 0; \r\n \r\n else\r\n \r\n return (decimal_number % 2 + 10 * \r\n find(decimal_number / 2)); \r\n }",
"public static int digitSum(String input){\n\t\tint sum = 0;\n\t\tfor(int i = 0; i < input.length(); i++){\n\t\t\tsum += Character.getNumericValue(input.charAt(i));\n\t\t}\n\t\treturn sum;\n\t}",
"protected int sumRecursive(int a, int b){\n if (b == 0){\n return a;\n } else {\n if (b > 0){\n return sumRecursive(a + 1, b - 1);\n } else {\n return sumRecursive(a - 1, b + 1);\n }\n }\n }",
"public int countNumbersWithUniqueDigits(int n) {\n if(n==0) return 1;\n if(n==1) return 10;\n if(n>10) return 0;\n int current = 81;//for f(2) f(n)=f(n-1)*(11-n);depend on previous result, we have 11-n \n int total=91;\n for(int i=3;i<=n;i++){\n current*=(11-i);\n total+=current;\n }\n return total;\n }",
"private int getNumDigits(int x) {\n int ans = 1;\n for (int digit = 9; digit >=0; digit--) {\n int power_of_ten = (int) Math.pow(10, digit);\n if (x / power_of_ten > 0) {\n ans = digit + 1;\n break;\n }\n }\n \n return ans;\n }",
"static BigInteger findSum(BigInteger n) {\n if (n.equals(BigInteger.ZERO))\n return BigInteger.ZERO;\n BigInteger TWO = BigInteger.valueOf(2);\n\n BigInteger sum = BigInteger.ZERO;\n sum = sum.add(\n n.multiply(n.add(BigInteger.ONE))\n .divide(TWO)\n );\n\n BigInteger flooredN = findFraction(n);\n sum = sum.add(\n n.multiply(flooredN)\n );\n\n sum = sum.subtract(\n flooredN.multiply(flooredN.add(BigInteger.ONE))\n .divide(TWO)\n );\n\n sum = sum.subtract(findSum(flooredN));\n\n return sum;\n }",
"public int addDigits(int num) {\n\t\tif (num <= 0) {\n\t\t\treturn 0;\n\t\t}\n\t\twhile (num >= 10) {\n\t\t\tint n = 0;\n\t\t\twhile (num > 0) {\n\t\t\t\tn += num % 10;\n\t\t\t\tnum /= 10;\n\t\t\t}\n\t\t\tnum = n;\n\t\t}\n\t\treturn num;\n\t}",
"public static int countDigitisRec(int i)\r\n\t{\n\t\tif (i == 0)\r\n\t\t{\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn countDigitisRec(i/10) + 1;\r\n\t\t}\r\n\t}",
"private static int calcul(int n,boolean flag)\n {\n if (n==0) //stop condition - the end case, if there is no number to add / reduce\n return 0;\n if (flag)\n return (n%10)+calcul(n/10, !flag);//return the ended calculate of adding the current digit and recall method\n else\n return (-n%10)+calcul(n/10, !flag);//return the ended calculate of reduce the current digit and recall method\n }",
"public int recursive(int n) {\r\n //base case: return n if <= 1\r\n if (n <= 1) {\r\n return n;\r\n }\r\n //else return result of of two previous #s being added to each other\r\n return recursive(n - 1) + recursive(n - 2);\r\n }",
"static int count(int n)\r\n\t\t{\r\n\t\t\tint c = 0; //initially count of digits is 0\r\n\t\t\twhile(n != 0)\r\n\t\t\t{\r\n\t\t\t\tc++;\r\n\t\t\t\tn = n/10;\r\n\t\t\t}\r\n\t\t\treturn c;\r\n\t\t}",
"public int sum(int number) {\n int sum = 0;\n while (Math.abs(number) != 0) {\n sum += Math.abs(number % RADIX);\n number /= RADIX;\n }\n return sum;\n }",
"private static int solve(ArrayList<Integer> digits, int b, int c) {\n for (int i=0;i<digits.size();i++) {\r\n int num = digits.get(i);\r\n int numDigits=b-1;\r\n for (int j=0; j<i && numDigits>0 ; j++) {\r\n num = num*10 + digits.get(j);\r\n }\r\n for (int j=i+1;j<digits.size();j++) {\r\n num = num*10 + digits.get(j);\r\n }\r\n }\r\n \r\n return 0;\r\n }",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\r\n\r\n System.out.println(\"Enter a number you want to find the sum of it's digits: \");\r\n\r\n\r\n // Numerical data input\r\n //To read numerical values of a certain data type XYZ, the function to use is nextXYZ().\r\n int sum_of_digits = sc.nextInt();\r\n\r\n //call function and assign to variable\r\n int result = sumDigits(sum_of_digits);\r\n\r\n //print all sum\r\n System.out.println(\"The sum of the digits in \" + sum_of_digits + \" is: \" + result);\r\n\r\n }",
"public static void main(String[] args) {\n\t\tint var=98;\n\t\tint sumofdigit=addDigits(var);\n\t\tSystem.out.println(sumofdigit);\n\n\t}",
"public static void main(String[] args) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t// input = 123;\r\n\t\t// Problem statement : sum of all the digits\r\n\t\t// 1 + 2 + 3 = 6\r\n\r\n\t\tint number = 1238768;\r\n\t\tint sum = 0;\r\n\t\t\r\n\t\t// 123 --> reminder = 3\r\n\t\t// --> quotient = 12\r\n\t\t// --> sum = 0 + 3 sum = 3\r\n\t\t// --> number = 12\r\n\t\t\r\n\t\t\r\n\t\t// 12 --> reminder = 2\r\n\t\t\t\t// --> quotient = 1\r\n\t\t\t\t// --> sum = 3 + 2 sum = 5\r\n\t\t\t\t// --> number = 1\r\n\t\t\r\n\t\t// 1 --> 1 > 0 ( true)\r\n\t\t // --> reminder = 1\r\n\t\t // --> quotient = 1/10 == 0.1 = 0\r\n\t\t// --> sum = 5+ 1 sum = 6\r\n\t\t// --> number = 0\r\n\t\t\r\n\t\t// 0 --> 0 > 0 (false)\r\n\t\t// --> comes out of the loop\r\n\t\t\r\n\r\n\t\twhile (number > 0) {\r\n\t\t\tint reminder = number % 10;\r\n\t\t\tint quotient = number / 10;\r\n\t\t\tsum = sum + reminder;\r\n\t\t\tnumber = quotient;\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"reminder:\"+ reminder);\r\n\t\t\tSystem.out.println(\"quotient:\"+ quotient);\r\n\t\t\tSystem.out.println(\"sum:\"+ sum);\r\n\t\t\tSystem.out.println(\"number:\"+ number);\r\n\t\t\tSystem.out.println(\"*************\");\r\n\t\t}\r\n\t\tSystem.out.println(sum);\r\n\t\t\r\n\t\t\r\n\t/*\tdo {\r\n\t\t\tint reminder = number % 10;\r\n\t\t\tint quotient = number / 10;\r\n\t\t\tsum = sum + reminder;\r\n\t\t\tnumber = quotient;\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"reminder:\"+ reminder);\r\n\t\t\tSystem.out.println(\"quotient:\"+ quotient);\r\n\t\t\tSystem.out.println(\"sum:\"+ sum);\r\n\t\t\tSystem.out.println(\"number:\"+ number);\r\n\t\t\tSystem.out.println(\"*************\");\r\n\t\t}while(number > 0); */\r\n\r\n\t}",
"public int digitCounts(int k, int n) {\n\n int result = 0;\n int base = 1;\n while (n/base > 0) {\n\n int cur = (n/base)%10;\n int low = n-(n/base) * base;;\n int high = n/(base * 10);\n\n if (cur < k)\n {\n result += high*base;\n }\n else if (cur > k)\n {\n result += (high+1)*base;\n }\n else\n {\n result += high*base+low+1;\n }\n\n base *= 10;\n }\n\n return result;\n }",
"public static void main(String[] args) {\nScanner s=new Scanner(System.in);\r\nSystem.out.println(\"enter the numbr\");\r\nint n=Integer.parseInt(s.nextLine());\r\nint sum=0;int r=0;\r\nwhile(n>0)\r\n{\r\n\t\r\nr=n%10;\r\n\r\nsum=sum+n%10;\r\n\tn=n/10;\r\n\t\r\n\t\r\n\r\n}\r\nSystem.out.println( sum);\r\n\r\n\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\tint n=345;\r\n\t\tint s=0;\r\n\t\twhile(n!=0)\r\n\t\t{\r\n\t\tint last=n%10;\r\n\t\ts =s+last;\r\n\t\tn= n/10;\t\r\n\t\t\t\r\n\t\t\t}\r\n\r\nSystem.out.println(s);\r\n\t}",
"public int sumNumb(String str) {\n\t\tint sum = 0;\n\t\tString tempStr = \"\";\n\t\t//change to char array in order to iterate\n\t\tfor (char c:str.toCharArray()){\n\t\t\t//if it is a digit append to tempStr\n\t\t\tif(Character.isDigit(c)){\n\t\t\t\ttempStr += c;\n\t\t\t}\n\t\t\t//if it is a char, add the previously stored digites and empty the tempstr\n\t\t\telse{\n\t\t\t if(tempStr.length() >= 1){\n\t\t\t\t sum = sum + Integer.parseInt(tempStr);\n\t\t\t }\n\t\t\t\ttempStr = \"\";\n\t\t\t}\n\t\t}\n\t\t//add the number at the end of the string\n\t\tif(tempStr.length() >= 1){\n\t\t\tsum = sum + Integer.parseInt(tempStr);\n\t\t}\n\t\treturn sum;\n\t}",
"public long iterativeSum(long n){\n long result = 0;\n for(long i = 1L; i <= n; i++){\n result += i;\n }\n return result;\n }",
"public int maxPathSum(TreeNode root) {\n helper(root); \n //run the function but don't use the final return value\n //only save the \"result\" when we run the function\n return result;\n }",
"public static void main(String[] args) {\n\t\t\n\t\tScanner scanner=new Scanner(System.in);\n\t\tSystem.out.println(\"Enter a number to find sum of its digits \");\n\t\t\n\t\tint num = Math.abs(scanner.nextInt());\n\t\tint sum=0;\n\t\t\n\t\twhile(num!=0) {\n\t\t\t\n\t\t\tsum=sum+num%10;\n\t\t\tnum=num/10;\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(\"the sup of digits is \"+ sum);\n\t\t\n\t\t\n\t\t \n\t\t\n\t\t\n\t\tscanner.close();\n\t}",
"public static int returnDigit(int number) { \n\t\t\t\tif (number < 9) \n\t\t\t\t\treturn number; \n\t\t\t\treturn number / 10 + number % 10; \n\t\t\t}",
"public int numberOfDigit(int v) {\n int total = 1;\n while ((v / 10) > 0) {\n total++;\n v = v / 10;\n }\n return total;\n }",
"private int getSumOfSquares(int n) {\n\t\tint sum = 0;\n\t\tint number = n;\n\t\tint current;\n\t\t\n\t\twhile(number != 0) {\n\t\t\tcurrent = number % 10;\n\t\t\tsum += Math.pow(current, 2);\n\t\t\tnumber /= 10;\n\t\t}\n\t\treturn sum;\n\t}",
"public static int getSum(int b, int n1, int n2) {\n int carry = 0;\r\n int pos = 1;\r\n int num = 0;\r\n while (n1 != 0 || n2 != 0 || carry != 0) {\r\n int a = n1 % 10;\r\n int d = n2 % 10;\r\n int c = a + d + carry;\r\n \r\n // if (c >= b)\r\n // c = c % b;\r\n carry = c/ b;\r\n c=c%b;\r\n num = num + pos * (c);\r\n \r\n pos *= 10;\r\n n1 /= 10;\r\n n2 /= 10;\r\n }\r\n\r\n return num;\r\n }",
"public static double getSum(long num) {\r\n double total = 0;\r\n for(int i = 0; i < digitBit.length; i ++){\r\n double sum = 0;\r\n Bucket bkt = digitBit[i].bucket;\r\n //find sum of buckets of size (j+1)\r\n while(bkt.endTimestamp >= (currentTimeStamp - num + 1)){\r\n sum += bkt.size;\r\n if(bkt.next != null){\r\n bkt = bkt.next;\r\n }else{\r\n break;\r\n }\r\n }\r\n if(bkt.startTimeStamp >= (currentTimeStamp - num + 1)){\r\n sum += (bkt.size)/2;\r\n }\r\n //add the contribution of ith position bits to the total\r\n total += sum * Math.pow(2, i);\r\n }\r\n return total;\r\n }",
"short digits();",
"private static int summation(int x) {\n if (x == 1)\n return 1;\n else \n return x + summation(x - 1);\n }",
"public static void main(String[] args) {\n\t\tScanner s=new Scanner(System.in);\r\n\t\tSystem.out.println(\"ENTER THE NUMBER\");\r\n\t\tint number=s.nextInt();\r\n\t\tint i=0,j=0,r,sum=0;\r\n\t\tint a=number;\r\n\t\twhile(number>0)\r\n\t\t{\r\n\t\t\tr=number%10;\r\n\t\t\tsum=sum+r;\r\n\t\t\tnumber=number/10;\r\n\t\t}\r\n\t\tSystem.out.printf(\"SUM OF DIGIT=%d\", sum);\r\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tint num=456;\n\t\t\n\t\tint rem1 = 456%10;\n\t\tSystem.out.println(rem1);\n\t\t\n\t\t//123 -> 12\n\t\t\n\t\tint num2 = num/10; // 123/10 -> 12.3 -> 12\n\t\tSystem.out.println(num2);\n\t\t\n\t\tint rem2=num2%10; // 12%10 -> 2\n\t\t\n\t\t//12 ->1\n\t\t\n\t\tint num3 = num2/10; // 12/10 -> 1.2 -> 1\n\t\t\n\t\tint rem3 = num3%10; // 1%10 -> 1\n\t\t\n\t\tSystem.out.println(\"The sum of digits: \"+(rem1+rem2+rem3));\n\t\t\n\t}",
"public static int numberLength(int n, int accum)\n\t\t{//numberLength(n, 1);\n\t\t if (Math.abs(n) < 10) {return (accum);}\n\t\t else {return (numberLength(Math.abs(n)/10, accum+1));}\n\t\t}",
"public static long sumOfDigitsByStream(BigInteger integer) {\n return integer.toString().chars()\n .map(x -> x & 0xF)\n .sum();\n }",
"public static int numeralSum(String s) {\n \tint sum = 0;\n \tfor(int i = 0; i<s.length(); i++) {\n \t\tif(Character.isDigit(s.charAt(i))) {\n \t\t\tsum += Integer.parseInt(s.substring(i, i + 1));\n \t\t}\n \t}\n return sum;\n }",
"public int calculate(String s) {\n \n int sum = 0;\n int sign = 1;\n \n Stack<Integer> stack = new Stack<>();\n for(int i=0; i < s.length(); i++) {\n char ch = s.charAt(i);\n \n if(Character.isDigit(ch)) { // eg-> 312 +\n \n int val = 0;\n while(i < s.length() && Character.isDigit(s.charAt(i))) {\n val = val*10 + (s.charAt(i)-'0');\n i++;\n }\n i--;\n val *= sign;\n sum += val;\n sign = +1;\n \n } else if(ch == '(') {\n stack.push(sum);\n stack.push(sign);\n sum = 0;\n sign = +1;\n } else if(ch == ')') {\n sum *= stack.pop();\n sum += stack.pop();\n } else if(ch == '-') {\n sign *= -1;\n }\n }\n return sum;\n }",
"public static int digitFifthPowerSum(final int num) {\n\t\tif (num < 1) {\n\t\t\tthrow new IllegalArgumentException(\"Supplied number should be at least 2. num = \" + num);\n\t\t}\n\n\t\tint copy = num;\n\t\tint sum = 0;\n\t\twhile (copy != 0) {\n\t\t\tfinal int digit = copy % 10;\n\t\t\tsum += Math.pow(digit, 5);\n\t\t\tcopy /= 10;\n\t\t}\n\n\t\treturn sum;\n\t}",
"public static int getDigitCount(int n) {\n if(n < 0) return -1;\n\n int count = 0;\n do {\n count++;\n n /= 10;\n } while(n != 0);\n\n return count;\n }",
"public int countNumbersWithUniqueDigits(int n) {\n int result = 10;\n if(n == 0) {\n return 1;\n } else if (n == 1) {\n return 10;\n } \n \n int avblNums = 9;\n int multipliers = 9;\n int combos = 0;\n for(int i=2; i<= n; i++) {\n combos = avblNums * multipliers--;\n result += combos;\n avblNums = combos;\n }\n return result;\n }",
"private int combineDigits(int acc, char digit) {\n return acc * 10 + Character.getNumericValue(digit);\n }",
"static long findSum(int N)\n\t{\n\t\tif(N==0) return 0;\n\t\treturn (long)((N+1)>>1)*((N+1)>>1)+findSum((int)N>>1);\n\t\t\n\t}",
"public void daffodilNum(int digit) {\n int count = 0;\n for (int i = (int) Math.pow(10, digit-1); i < (int) Math.pow(10, digit); i++) {\n int sum = 0;\n for (int index = 0; index < digit; index++) {\n int curDigit = (i / ((index == 0) ? 1 : ((int) Math.pow(10, index)))) % 10;\n sum += Math.pow(curDigit, 3);\n }\n if (sum == i) {\n System.out.print(i);\n System.out.print(' ');\n count++;\n if (count == 2) {\n System.out.println();\n count = 0;\n }\n }\n }\n }",
"public static void main(String[] args) {\n long number = 100;\n System.out.println(sumOfDigitsByLooping(Count.factorialOf(number)));\n }",
"public int countNumbersWithUniqueDigits(int n) {\n if (n == 0) return 1;\n int sAcc = 10;\n int mAcc = 9;\n int i = 1;\n n = Math.min(n, 10);\n while (i < n) {\n mAcc *= (10 - i);\n sAcc += mAcc;\n i++;\n }\n return sAcc;\n }",
"int main()\n{\n long int a;\n cin>>a;\n int count=0;\n int flag=0;\n if(a>=0){\n while(a>0)\n {\n if(a%10!=0)\n {\n flag=1;\n }\n a=a/10;\n count=count+1;\n }}\n else if(a<0)\n {\n while(a<0)\n {\n a=a/10;\n count=count+1;\n }\n }\n if(flag==0)\n {\n count++;\n }\n cout<<count;return 0;\n}",
"public static int funky(int a, int digit) {\n int count = 0;// always zero right here\n\n // Point A\n while (a != 0) {\n \n // Point B\n\n if (a % 10 == digit) { \n count++;\n // Point C\n } else if (count > 0) { // only decrements when count > 0 \n count--;\n // Point D\n }\n a = a / 10;\n }\n\n // Point E : may or may not have gone into loop\n return count;\n}",
"public static int sumOfCubes(int num) {\n\t\tint sum=0;\r\n\t\twhile(num!=0) {\r\n\t\t\tint last = num%10;\r\n\t\t sum=sum+last*last*last;\r\n\t\t num=num/10;\r\n\t\t}\r\n\t\t return sum;\r\n\t}",
"public int[] plusOne(int[] digits) {\n\n if(digits==null || digits.length==0){\n return digits;\n }\n\n int carry =1;\n\n for(int i= digits.length-1;i>=0;i--){\n int sum = digits[i]+ carry;\n if(sum>=10){\n carry =1;\n }else\n carry =0;\n digits[i]= sum%10;\n }\n\n if(carry ==1){\n int [] newResult = new int[digits.length+1];\n newResult[0]=1;\n for(int i=0;i<digits.length;i++){\n newResult[i+1] =digits[i];\n }\n return newResult;\n }\n\n return digits;\n\n\n\n\n /*2nd Method\n int len = digits.length-1;\n\n if(digits[len] !=9)\n digits[len] = digits[len] +1;\n else{\n while(digits[len] == 9 && len!=0){\n digits[len] = 0;\n len--;\n }\n\n if(len==0 && digits[len]==9){\n digits[len] = 0;\n int newArray [] = new int[digits.length+1];\n newArray[0] = 1;\n for(int i=0;i<digits.length;i++){\n newArray[i+1] = digits[i];\n }\n return newArray;\n\n }else{\n digits[len] = digits[len] +1;\n }\n\n }\n return digits;*/\n\n }",
"private int dfs_my(TreeNode root, int sum) {\n if (root == null) return 0;\n int rsum = dfs(root.right, sum);\n int oval = root.val;\n root.val += sum + rsum;\n int lsum = dfs(root.left, root.val);\n return oval + lsum + rsum;\n }",
"public static void main(String[] args) {\nint number = 4321; //Defining input number\r\nint sum = 0; //Declaring total with the name as sum\r\nint quotient = 1; //To satisfy the while condition, declaring quotient value as 1\r\nint remainder;\r\nwhile(quotient != 0) //while loop will process until the quotient becomes 0\r\n{\r\n\t\r\n\tremainder = number%10; //4321%10=1\r\n\tSystem.out.println(\"Remainder is \" + remainder); //Print the remainder\r\n\tsum = sum + remainder; //sum=0+1 = 1\r\n\tSystem.out.println(\"Sum is \" + sum); //Print the sum\r\n\tquotient = number/10; //4321/10=432\r\n\tSystem.out.println(\"Quotient is \" +quotient); //Print the quotient\r\n\tnumber = quotient; //number =432\r\n}\r\nSystem.out.println(\"Sum of all the digits :\" + sum);\r\n\t}",
"public static int dfs(TreeNode root, int sum){\n\t\tif(root.left == null && root.right == null){\r\n\t\t\treturn 10*sum + root.val;\r\n\t\t\t//result.add(sum);\r\n\t\t}\r\n\t\tif(root.left != null && root.right == null){\r\n\t\t\treturn dfs(root.left, 10*sum+root.val);\r\n\t\t}\r\n\t\tif(root.right != null && root.left == null){\r\n\t\t\treturn dfs(root.right, 10*sum+root.val);\r\n\t\t}\r\n\t\t//if(root.left != null && root.right != null){\r\n\t\t\treturn dfs(root.left, 10*sum+root.val)+dfs(root.right, 10*sum+root.val);\r\n\t\t//}\r\n\t\t//for(int i = 0; i < result.size(); i++){\r\n\t\t\t//System.out.print( result.get(i) + \"->\");\r\n\t\t//}\r\n\t}",
"public static int digits(ByteReader r, int length) {\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < length; i++)\n\t\t\tsum = sum * DECIMAL_RADIX + digit(r);\n\t\treturn sum;\n\t}",
"public static int getDigits(int i) {\n\t\tif (i < 10) {\n\t\t\treturn 1;\n\t\t}\n\t\treturn 1 + getDigits(i / 10);\n\t}",
"private void collectDigits(int number, List<Integer> digits) {\n if (number / 10 > 0) {\n collectDigits(number / 10, digits);\n }\n digits.add(number % 10);\n }",
"private void addition()\n {\n\tint tempSum = 0;\n\tint carryBit = 0;\n\tsum = new Stack<String>();\n\tStack<String> longerStack = pickLongerStack(number, otherNumber);\n\twhile(!longerStack.isEmpty())\n\t{\n\t tempSum = digitOf(number) + digitOf(otherNumber) + carryBit; //adding\n\t carryBit = tempSum / 10;\n\t sum.push((tempSum % 10) + \"\"); //store the digit which is not carryBit\n\t}\n\tif(carryBit == 1) sum.push(\"1\"); //the last carry bit need to be add as very first digit of sum if there is carry bit\n }",
"public static int findTotal(int number) {\n int num = 0;\n for (int i = 1; i < number; i++) {\n num += i*(number/i);\n }\n return num;\n }"
]
| [
"0.729017",
"0.7266182",
"0.71737844",
"0.70809454",
"0.70464987",
"0.69996494",
"0.69425774",
"0.69311225",
"0.6834423",
"0.6807154",
"0.67953753",
"0.67299294",
"0.6643616",
"0.64977705",
"0.6497311",
"0.64746475",
"0.64410347",
"0.64382935",
"0.64061815",
"0.6346776",
"0.6343625",
"0.6336764",
"0.633235",
"0.6280396",
"0.626325",
"0.62590754",
"0.6256243",
"0.62426996",
"0.62282294",
"0.6200401",
"0.6170329",
"0.61424917",
"0.6100286",
"0.60956675",
"0.6077633",
"0.606989",
"0.60529184",
"0.60523576",
"0.6051856",
"0.6019042",
"0.60142386",
"0.6013799",
"0.5981723",
"0.59623706",
"0.5938157",
"0.59262925",
"0.59229565",
"0.591002",
"0.5895184",
"0.5883148",
"0.58601713",
"0.585341",
"0.5813407",
"0.5813277",
"0.5784444",
"0.57819885",
"0.5777004",
"0.5772032",
"0.57674605",
"0.57660383",
"0.57409704",
"0.5735946",
"0.5723955",
"0.5709303",
"0.57075584",
"0.57055664",
"0.56818056",
"0.56791914",
"0.5672179",
"0.5669208",
"0.56313396",
"0.5628635",
"0.5627699",
"0.5620355",
"0.56126386",
"0.5596114",
"0.55955833",
"0.55941707",
"0.5592029",
"0.55831856",
"0.5569225",
"0.55601597",
"0.55528235",
"0.5550563",
"0.5535641",
"0.5535576",
"0.5530736",
"0.55228364",
"0.5514659",
"0.5514633",
"0.54842865",
"0.54632026",
"0.54596055",
"0.54566246",
"0.5452365",
"0.54484427",
"0.5434187",
"0.5433321",
"0.5427645",
"0.54232615"
]
| 0.67412573 | 11 |
TODO Autogenerated method stub | public static void main(String[] args) {
LongestIncreasingSub l=new LongestIncreasingSub();
int[] arr= {3,4,5};
List<Integer> list=new ArrayList<Integer>();
list=l.LongestSub(arr);
System.out.print(list);
} | {
"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 |
Constructor: calls from superclass. Increases count of birds. | public Vulture(int x, int y){
super(x,y);
super.countbird++;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MountainBike() {\n super();\n }",
"public Boop() {\n\t\tsuper();\n\t}",
"public Billfold()\n {\n \n }",
"public Rook()\n {\n super();\n }",
"Vehicle() \n {\n System.out.println(\"Constructor of the Super class called\");\n noOfTyres = 5;\n accessories = true;\n brand = \"X\";\n counter++;\n }",
"public SnakesAndLadders()\n {\n this(2);\n }",
"public Frog() {\n frogCount += 1; // Modify the value in the constructor\n }",
"public MountainBike(int gear,int speed,\r\n int startHeight)\r\n {\r\n // invoking base-class(Bicycle) constructor\r\n super(gear, speed);\r\n seatHeight = startHeight;\r\n }",
"public Clover() {\n\t\tsuper();\n\t}",
"public BarSeat(){\n\t\tsuper(1);\n\t}",
"Bicycle(){\n\t\tthis.wheels=2;\n\t}",
"public Game(int balls) {\r\n currentLevel = new NullLevel();\r\n totalScore = 0;\r\n this.balls = balls;\r\n }",
"@Override\n public void initialize() {\n conveyor.setBallCount(0);\n conveyor.startTime(); \n }",
"protected Betaling()\r\n\t{\r\n\t\t\r\n\t}",
"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 }",
"public Bicycle(int gear, int speed)\r\n {\r\n this.gear = gear;\r\n this.speed = speed;\r\n }",
"private Bird(final Species species, final Genome genome) {\n if (cache.containsKey(species))\n images = cache.get(species);\n else {\n final Color color = new Color(rnd.nextInt(0x1000000));\n images = new BufferedImage[3];\n for (int i = 0; i < 3; ++i)\n images[i] = colorBird(BIRD_IMAGES[i], color);\n cache.put(species, images);\n }\n\n this.genome = genome; //Sets the genome to the current one\n height = HEIGHT / 2.0; //Bird starts in the middle of screen\n }",
"public BicycleStation() {\n super();\n }",
"public Knights()\r\n\t{\r\n\t\tsuper(Settings.COST_PRODUCTION_KNIGHT, Settings.TIME_COST_KNIGHT, \r\n\t\t\t\tSettings.SPEED_KNIGHT, Settings.DAMMAGES_KNIGHT, Settings.DAMMAGES_KNIGHT);\r\n\t}",
"public CircusDog(String b)\n {\n super(b);\n }",
"public Bishop()\n {\n super();\n }",
"public Ball(int x, int y, URL url) \n\t{\n\t\tsuper(x, y, 0, 0, url, false);\n\t}",
"public GchCarLifeBbs() {\n this(\"gch_car_life_bbs\", null);\n }",
"public ElectricBike() {\n\t\tsuper();\n\t}",
"public Bird(String name) {\n this.name = this.name+name;\n }",
"Boat(String name)\n {\n this.name = name;\n speed = 0;\n sail = true;\n }",
"public void initializeGame() {\n speed = 75;\n ticks = 0;\n ticksTubes = 0;\n best = null;\n score = 0;\n\n //Make a new pool of birds based on the parameters set in the species'\n //genomes\n birds.clear();\n for (final Species species : Pool.species)\n for (final Genome genome : species.genomes) {\n genome.generateNetwork();\n birds.add(new Bird(species, genome));\n }\n tubes.clear();\n }",
"protected void initialize() {\n\t\tL.ogInit(this);\n\t\t_timesRumbled = 0;\n\t}",
"public Glow() {}",
"public Spider(double x, double y)\n\t{\n\t\tsuper(x, y, \"Res/indaSpider.png\", 2);\n\t\thspd = 0.4;\n\t\tvspd = 0.4;\n\t\tspeed = 0.4;\n\t\timageSpeed = 0.05;\n\t\tdamage = 1;\n\t\talarm = new Alarm(50);\n\t\tshootTimer = new Alarm(200);\n\t\trandom = new Random();\n\t\tclose = false;\n\t}",
"public Bathroom(int size) {\n this.size = size;\n myBathtub = new Bathtub(100); //instantiate bathtub object during Bathroom object creation\n }",
"public Ball(int number){\r\n this.num = number;\r\n }",
"public Ninja(int x, int y)\r\n {\r\n super(x, y, 5);\r\n }",
"public Bike(){\n\t}",
"public BirdView(MyCumulusGame game) {\n super(game);\n }",
"public Scania() {\n\n super(2, 600, Color.white, \"Scania\", 13000);\n truckBed = new Ramp();\n }",
"public Blocks(int h)\n {\n health=h;\n worth=h;\n setImage(colors[health-1]);\n }",
"protected void initialize() {\n \tbrakeFactor = 0.0;\n }",
"public void constructor() {\n setEdibleAnimals();\n }",
"public Boat() {\n }",
"public Breadfruit() {\r\n super(sciPlantName, commonPlantName, hiPlantName, \"\",\r\n origin, status, plantForm, plantSize,\r\n Evergreen.getMinHeightFromSize(plantSize),\r\n Evergreen.getMaxHeightFromSize(plantSize),\r\n Evergreen.getMinWidthFromSize(plantSize),\r\n Evergreen.getMaxWidthFromSize(plantSize),\r\n latitude, longitude);\r\n }",
"public Bumper(int xPos, int yPos, int objectRadius, Machine theMachine)\n {\n super(xPos, yPos, Color.GRAY, objectRadius, theMachine); \n\n }",
"public Zombie() {\r\n\t\tsuper(myAnimationID, 0, 0, 60, 60);\r\n\t}",
"public Boss() {\n\t\tlife = 3;\n\t\timage = new Image(\"/Model/boss3.png\", true);\n\t\tboss = new ImageView(image);\n\t\tRandom r = new Random();\n\t\tboss.setTranslateX(r.nextInt(900));\n\t\tboss.setTranslateY(0);\n\t\tisAlive = true;\n\t}",
"public HotDogStand(int standId,int noHDS)//constructor that initializes both instance variables\n{\n\tsuper();//super constructor\n\tthis.standId = standId;//refers to this stand id\n\tthis.noHDS = noHDS;// refers to this stands number of hot dogs sold\n}",
"public Bicycle(int startCadence, int startSpeed, int startGear,\n String name) {\n System.out.println(\"Bicycle.Bicycle- has arguments\");\n this.gear = startGear;\n this.cadence = startCadence;\n this.speed = startSpeed;\n this.name = name;\n }",
"public Sandwich()\n\t{super();\n \n\t\t\n\t}",
"public Guppy() {\n this(DEFAULT_GENUS, DEFAULT_SPECIES, 0, true, 0,\n DEFAULT_HEALTH_COEFFICIENT);\n }",
"public ShearY() {\n this(0);\n }",
"public Chicken() {\n\t\tsuper(id, price, type, description, happiness, health);\n\t}",
"public Stack() {\r\n this(20);\r\n }",
"public Bonus(Bitmap bitmap) {\n super(bitmap);\n setSpeed(2);\n }",
"public Fruit() {\n super(0, \"melon.png\",HEIGHT);\n\n reposition();\n isSinglePlayer = false;\n timeSinceSpeedUp = 0;\n difficulty = 1f;\n }",
"BruceScore() {}",
"public Chick() {\n\t}",
"public Boat() {\n batch = new SpriteBatch();\n }",
"public Deck()\n {\n this(1);\n }",
"public GdGame()\n\t{\n\t\tthis(100);\t\t\n\t}",
"public ChickenAbstract(int x, int y)\n\t{\teggs= new ArrayList <EggAbstract> ();\n\n\tsetX(x);\n\tsetY(y);\n\n\t}",
"public Ball(Game game) { // constructor that initializes the class Game\r\n this.game = game; // initializes the class Game\r\n }",
"public Bid() {}",
"public Lightning() {\n super(\"Death Lightning\", 2);\n }",
"public Bomb(){\n this.num_uses = 2147483647; // Constant set num times we can use this\n }",
"public Eagle() {\n super(5.8, 0.29, false);\n }",
"public HitCounter() {\n hits = new int[300];\n times = new int[300];\n }",
"public HitCounter() {\n hits = new int[300];\n times = new int[300];\n }",
"public CowMeat(){\n\t\tsuper(\"CowMeat\", 100000);\n\t}",
"public CrabWorld()\n {\n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n musica=new GreenfootSound(\"Ufo-t-balt.mp3\");\n super(560,560, 1);\n }",
"public Car()\n {\n \tsuper();\n bodyType = null;\n noOfDoors = 0;\n noOfSeats = 0;\n }",
"private Lights(int port)\n\t{\n super(port);\n System.out.println(this.getClass().getName() + \": Started Constructing\");\n System.out.println(this.getClass().getName() + \": Finished Constructing\");\n }",
"public Blacksmith(){\n\t\t\n\t}",
"public Bombas(int x,int y) {\n \tsuper(x,y);\n }",
"public Dwarf(Object own){\n\t\tsuper(\"Dwarf\", own);\n\t\tthis.rank = 3;\n\t}",
"public Grain(String name) {\n super(name);\n }",
"public flappyBird(){\n GreenfootImage image = getImage();\n image.scale(image.getWidth(),image.getHeight());\n }",
"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 HitCounter() {\n q = new ArrayDeque();\n PERIOD = 300;\n }",
"public FruitStand() {}",
"public Fruit(int x) {\n super(x, \"melon.png\",HEIGHT);\n\n isSinglePlayer = false;\n startTime = TimeUtils.millis();\n timeSinceSpeedUp = 0;\n difficulty = 1f;\n }",
"public PoisonBrick(Flyweight newFlyweight) {\n hitpoints = 2;\n flyweight = newFlyweight;\n for (Observer observer: flyweight.getObservers()) {\n addObserver(observer);\n }\n }",
"public Knight()\n\t{\n\t\tsuper(name, 100);\n\t}",
"public BreweriesAdapter() {\n }",
"public Ball(int x, int y, int diameter)\n {\n currentBallX = x;\n currentBallY = y;\n this.diameter = diameter;\n }",
"public Robber() {\n\t\t// robberPlayers = (ArrayList<Player>) GSC.players.clone();\n\t}",
"public Cow() {\n\t\tsuper();\n\t\tloadImages();\n\t}",
"public b3(){\n super();\n }",
"public BlusterCritter (int c) {\n super();\n courage = c;\n }",
"public CarrierShape(int x,int y)\n {\n super(x,y);\n }",
"public Cheese(Sandwich sandwich){\n super(sandwich);\n }",
"public Charmander(World w)\n {\n //TODO (48): Add a third parameter of Fire to this super line\n super(700, 1);\n getImage().scale(150, 100);\n w.addObject( getHealthBar() , 300, w.getHeight() - 50 );\n }",
"public CarrierShape()\n {\n super();\n }",
"public CrazyEights(int numPlayers)\t{\n\t\tthis.numPlayers = numPlayers;\n\t\trecord = new String[2];\n\t\thand = new Hand[2];\n\t\tinitialDeck();\n\t\tinitialGame();\n\t}",
"public EspressoDrink(){\t\n\t}",
"public Aggressive(){\r\n\t\tsuper();\r\n\t\t\r\n\t}",
"public BallContainer() {\n\t\tthis.contents = new LinkedList<Ball>();\n\t}",
"public Bout()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n CreaBoutique();\n\n }",
"protected void initialize() {\n \tsetShowStartScreen(false);\n \t\n \t// do not preload resources, for this very simple game\n \t// preloadResources();\n \t\n \t// Max number of balls is just 17\n \tchains.setMaxBalls(17);\n }",
"public PlantingHarvester(int x, int y)\n {\n super(x, y);\n }",
"public Resource() {\n\t\tsuper();\n\t\tfor (int i = 0; i < chopsticks.length; i++) {\n\t\t\tchopsticks[i] = 1;\n\t\t}\n\t}",
"public Vehicle(){\n System.out.println(\"Parking a unknown model Vehicle\");\n numberOfVehicle++;\n }"
]
| [
"0.66075736",
"0.6511449",
"0.6510507",
"0.64637345",
"0.64576584",
"0.6437485",
"0.6423698",
"0.6414618",
"0.6408502",
"0.6383607",
"0.6357696",
"0.6333522",
"0.63299257",
"0.6291172",
"0.6284499",
"0.6264379",
"0.6259318",
"0.625245",
"0.62490577",
"0.6233029",
"0.6218693",
"0.62183553",
"0.6183967",
"0.6181858",
"0.617327",
"0.6168922",
"0.61631453",
"0.6151611",
"0.6147171",
"0.61260986",
"0.6124244",
"0.61198926",
"0.61137724",
"0.6088679",
"0.6083162",
"0.60813427",
"0.6081272",
"0.60738796",
"0.6059993",
"0.60496867",
"0.60417897",
"0.60368377",
"0.60297716",
"0.5964769",
"0.59497476",
"0.5927485",
"0.59237355",
"0.5917094",
"0.59024256",
"0.5893515",
"0.588826",
"0.58859605",
"0.587233",
"0.5870165",
"0.5865108",
"0.5861762",
"0.58593684",
"0.58508956",
"0.584974",
"0.5841698",
"0.5834769",
"0.583469",
"0.58340174",
"0.5821005",
"0.58202976",
"0.58202976",
"0.5812468",
"0.5807872",
"0.57856864",
"0.5780765",
"0.5778521",
"0.577581",
"0.5773759",
"0.57693696",
"0.5767074",
"0.5763482",
"0.57588",
"0.5758572",
"0.5754475",
"0.5753668",
"0.5746448",
"0.5741899",
"0.5741321",
"0.5740546",
"0.57394004",
"0.5739306",
"0.5734225",
"0.57096624",
"0.5698502",
"0.5697724",
"0.569667",
"0.56929284",
"0.5687299",
"0.5676814",
"0.5676301",
"0.5675761",
"0.56718946",
"0.566498",
"0.5664865",
"0.56641054"
]
| 0.6864076 | 0 |
This method returns the color of the bird according to the fied above. | public Color getColor(){
return COL;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Color getColor() {\n return BirdColor;\n }",
"private static BufferedImage colorBird(final BufferedImage refImage,\n final Color color) {\n \n final BufferedImage image = new BufferedImage(BIRD_WIDTH,\n BIRD_HEIGHT, BufferedImage.TYPE_INT_ARGB);\n \n final Color bright = color.brighter().brighter();\n final Color dark = color.darker().darker();\n \n for (int y = 0; y < BIRD_HEIGHT; ++y){\n for (int x = 0; x < BIRD_WIDTH; ++x) {\n int argb = refImage.getRGB(x, y);\n if (argb == 0xffe0802c)\n argb = dark.getRGB();\n else if (argb == 0xfffad78c)\n argb = bright.getRGB();\n else if (argb == 0xfff8b733)\n argb = color.getRGB();\n image.setRGB(x, y, argb);\n }\n } \n return image;\n }",
"public int getColor() {\n \t\treturn color;\n \t}",
"public int getColour()\r\n\t{\r\n\t\treturn colour;\r\n\t}",
"public int getColor(){\r\n\t\treturn color;\r\n\t}",
"public int getColor() {\n return color;\n }",
"public DyeColor getColor() {\n/* 43 */ return DyeColor.getByWoolData(getData());\n/* */ }",
"public int getColor(){\n\t\treturn color;\n\t}",
"public int getColor(){\n\t\treturn color;\n\t}",
"public GameColor getColor();",
"public int getColor();",
"public int getColor();",
"int getColour();",
"public int getColor() {\n return this.color;\n }",
"Color getColor();",
"Color getColor();",
"Color getColor();",
"Color getColor();",
"Color getColor();",
"public int getRenderColor(int p_149741_1_)\n {\n \n \tBlock[] coloredStones = MachineryCraft.blocks.coloredStoneSlab;\n \n \tfor(int i = 0; i<coloredStones.length; i++){\n \t\tif(this == coloredStones[i]) return this.colors[i];\n \t\t\n \t}\n \treturn colors[1];\n \n }",
"public int getColour() {\n return colour;\n }",
"@Nonnull\n @Override\n public DyeColor getColor() {\n return this.getMushroomType().getColor();\n }",
"public final int getB() {\n\t\treturn blue;\n\t}",
"@Override\n public Color getColor() {\n return Utils.Pion.BLANC.getCouleur();\n }",
"public Integer getColor() {\n\t\treturn color;\n\t}",
"public int getColor()\r\n {\r\n return m_iColor;\r\n }",
"Color getCor();",
"public int getColor() {\n\t\treturn getMappedColor(color);\n\t}",
"String getColour();",
"public int getColorInt () {\r\n return this.colorReturned;\r\n }",
"public abstract int getColour();",
"public Color getColor() {\n \t\treturn color;\n \t}",
"public Color getColor() {\n\t\treturn couleur;\n\t}",
"public int color() {\n\t\treturn color;\n\t}",
"public Color getColor()\n {\n return color;\n }",
"public Color getColor() \n\t{\n\t\treturn color;\n\t}",
"public abstract BossColor getColor();",
"public int getBiomeFoliageColor()\n {\n double d = getFloatTemperature();\n double d1 = getFloatRainfall();\n return ((ColorizerFoliage.getFoliageColor(d, d1) & 0xfefefe) + 0x4e0e4e) / 2;\n }",
"public String getBubbleColour(){\n return myBathtub.getBubbleColour();\n }",
"public float getBlue() {\n return blue;\n }",
"public Color getColor()\r\n\t{\r\n\t\treturn _g2.getColor();\r\n\t}",
"public RMColor getColor() { return getFill()==null? RMColor.black : getFill().getColor(); }",
"public int getColor() {\r\n return Color;\r\n }",
"public Color getColor() { return color; }",
"public Color getColor()\n { \n return color;\n }",
"public Color getColor()\n {\n return color;\n }",
"public Color getColor()\n {\n return color;\n }",
"public Color getColor()\n {\n return color;\n }",
"public DiceColor getColor() {\n return color;\n }",
"String getColor();",
"public Color getColor() {\r\n\t\treturn new Color(Color.HSBtoRGB(hsb[0], hsb[1], hsb[2]));\r\n\t}",
"private int getCurrentMainColor () {\n int translatedHue = 255 - ( int ) ( mCurrentHue * 255 / 360 );\n int index = 0;\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 255, 0, ( int ) i );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 255 - ( int ) i, 0, 255 );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 0, ( int ) i, 255 );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 0, 255, 255 - ( int ) i );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( ( int ) i, 255, 0 );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 255, 255 - ( int ) i, 0 );\n index++;\n }\n return Color.RED;\n }",
"public Color getColor() {\n return color;\r\n }",
"public Color getBlue() {\n return fBlue;\n }",
"int getBlue(int x, int y);",
"public int getColorValue() {\r\n\t\treturn color;\r\n\t}",
"java.awt.Color getColor();",
"public Color getColor();",
"public Color getColor();",
"public Color getColor();",
"public String getColor()\n {\n return this.color;\n }",
"public static int getDyeColor (ItemStack stack) {\n \n if (ItemStackUtils.isValidStack(stack))\n for (final VanillaColor color : VanillaColor.values())\n for (final ItemStack oreStack : OreDictionary.getOres(color.getDyeName()))\n if (oreStack.isItemEqual(stack))\n return color.color.getRGB();\n \n return -1337;\n }",
"public String getColor()\n {\n return color;\n }",
"public String getColor()\n {\n return color;\n }",
"public Color getColor() {\n\treturn color;\n }",
"public String getColor() { \n return color; \n }",
"@Override\n\tpublic String getColor() {\n\t\treturn \"blue\";\n\t}",
"public Color getColor() {\r\n return this.color;\r\n }",
"public Color getColor() {\r\n return color;\r\n }",
"public Color getColor() {\r\n return color;\r\n }",
"public Color getColor() {\r\n return color;\r\n }",
"public String getColour()\n\t{\n\t\treturn colour;\n\t}",
"protected final Color getColor() {\n\t\treturn tile.getColor();\n\t}",
"public Color getColor() {\n return color;\n }",
"public Piece.color getColor() { return color; }",
"public Color getColor() {\r\n\t\tColor retVal = theColor;\r\n\t\treturn retVal;\r\n\t}",
"public Color getColor()\n {\n return color;\n }",
"public Color getColor(){\n return color;\n }",
"public String getColour() {\r\n return colour;\r\n }",
"private Color getBrickColour(int brickColor){\n switch (brickColor) {\n case 0 -> { // I piece\n return Color.rgb(89,185,215);\n }\n case 1 -> { // O piece\n return Color.rgb(232,224,105);\n }\n case 2 -> { // T piece\n return Color.rgb(130,120,210);\n }\n case 3 -> { // S piece\n return Color.rgb(59,206,156);\n }\n case 4 -> { // Z piece\n return Color.rgb(227,38,54);\n }\n case 5 -> { // J piece\n return Color.rgb(34,68,145);\n }\n case 6 -> { // L piece\n return Color.rgb(255,183,51);\n }\n default -> {\n return Color.BLACK;\n }\n }\n }",
"public RGBColor getColor(){\r\n return this._color;\r\n }",
"public Colour getColour();",
"public Color getColor() {\n return color;\n }",
"public Color getColor() {\n return color;\n }",
"public Color getColor() {\n return color;\n }",
"public Color getColor() {\n return color;\n }",
"public Color getColor() {\n return color;\n }",
"public Color getColor() {\n return color;\n }",
"public Color getColor() {\n return this.color;\n }",
"public static int getHoloBlue() {\n\t\treturn Color.rgb(51, 181, 229);\n\t}",
"public String getColor(){\n return this._color;\n }",
"public Color getColor() {\n return this.color;\n }",
"public Color getColor() {\n return this.color;\n }",
"public Color getColor() {\n return this.color;\n }",
"public String getColour() {\n return colour;\n }",
"public String getColour() {\n return colour;\n }",
"public String getColor(){\n\t\treturn color;\n\t}",
"@Override\n public String getColor() {\n return this.color.name();\n }",
"@ColorInt\n public int getColor() {\n return Color.HSVToColor(mColorHSV);\n }",
"public Color getColor() {\r\n\t\treturn color;\r\n\t}",
"public Color getColor() {\r\n\t\treturn color;\r\n\t}"
]
| [
"0.82198054",
"0.7429001",
"0.7129767",
"0.7087231",
"0.7052885",
"0.70323724",
"0.7026924",
"0.7026174",
"0.7026174",
"0.7013578",
"0.70127815",
"0.70127815",
"0.7001386",
"0.69885284",
"0.6978873",
"0.6978873",
"0.6978873",
"0.6978873",
"0.6978873",
"0.6968339",
"0.6941322",
"0.6924165",
"0.6878382",
"0.6844714",
"0.6842366",
"0.681157",
"0.68070173",
"0.6805",
"0.68040746",
"0.6759688",
"0.67534447",
"0.67511845",
"0.67455745",
"0.6711201",
"0.6709054",
"0.6706364",
"0.6705925",
"0.6701222",
"0.668225",
"0.66798556",
"0.6670939",
"0.66670287",
"0.66665757",
"0.666547",
"0.66633546",
"0.66621995",
"0.66621995",
"0.66621995",
"0.66608083",
"0.6656996",
"0.6650605",
"0.6648156",
"0.66441727",
"0.66331065",
"0.6625509",
"0.6618454",
"0.6617189",
"0.66161937",
"0.66161937",
"0.66161937",
"0.6595216",
"0.65865976",
"0.65858275",
"0.65858275",
"0.65857786",
"0.65629864",
"0.6555696",
"0.6544573",
"0.65437216",
"0.65437216",
"0.65437216",
"0.6542593",
"0.65365016",
"0.65362585",
"0.6534805",
"0.653216",
"0.65281445",
"0.652716",
"0.6525255",
"0.6524946",
"0.65184134",
"0.65178037",
"0.65129447",
"0.65129447",
"0.65129447",
"0.65129447",
"0.65129447",
"0.65129447",
"0.6511411",
"0.65100145",
"0.6504518",
"0.6502185",
"0.6502185",
"0.6502185",
"0.6501585",
"0.6501585",
"0.64968544",
"0.648966",
"0.64842737",
"0.64825165",
"0.64825165"
]
| 0.0 | -1 |
This method makes the bird to move. | public void fly(){
//If bird is facing up.
if (i == 0){
//Move up one position and change direction (i).
super.p.y = super.p.y - 1;
i = 1;
//If bird is facing to the left.
} else if (i == 1){
//Move to the left one position and change direction (i).
super.p.x = super.p.x - 1;
i = 2;
//If bird is facing down.
} else if (i == 2){
//Move down right one position and change direction (i).
super.p.y = super.p.y + 1;
i = 3;
//If bird is facing to the right.
} else if (i == 3){
//Move to the right one position and change direction (i).
super.p.x = super.p.x + 1;
i = 0;
}
//Increase count of flights.
super.countfly++;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void moveBird() {\n\t\t// your code here\n\t\txBird += xVelo;\n\t\tyBird += yVelo;\n\t\t\n\t\tif(gSwitch) {\n\t\t\tyVelo += G;\n\t\t}\n\t\t\n\t\tif (yI >= W_HEIGHT) {\n\t\t\txI = 200; yI = 300;\n\t\t\tgSwitch = false;\n\t\t\txVelo = 0; yVelo = 0;\n\t\t\t}\n\t\t}",
"public void move() {\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t}",
"public void move(){\n\t\t\n\t}",
"public void move() {\n\t\tmoveX();\n\t\tmoveY();\n\t}",
"public void move() {\n\t\tthis.hero.setPF(1);\n\t\tthis.hero.setState(this.hero.getMoved());\n\t}",
"public void move() {\n\t\tthis.position.stepForwad();\n\t\tthis.position.spin();\n\t}",
"public void move() {\n\r\n\t}",
"public void move()\n {\n daysSurvived+=1;\n\n energy -= energyLostPerDay;\n\n Random generator = new Random();\n\n //losowo okreslony ruch na podstawie genomu\n int turnIndex = generator.nextInt((int)Math.ceil(Genome.numberOfGenes));\n int turn = genome.getGenome().get(turnIndex);\n\n //wywolujemy metode obrotu - dodaje odpowiednio liczbe do aktualnego kierunku\n direction.turn(turn);\n\n //zmieniamy pozycje zwierzaka przez dodanie odpowiedniego wektora\n position = position.add(direction.move());\n //walidacja pozycji tak, by wychodzac za mape byc na mapie z drugiej strony\n position.validatePosition(map.getWidth(),map.getHeight());\n\n moveOnSimulation();\n\n //jesli po ruchu zwierzaczek nie ma juz energii na kolejny ruch\n if(energy < energyLostPerDay )\n {\n this.animalHungry = true;\n }\n }",
"private void move() {\n\n if(currentPosition.getX() == -1 && currentPosition.getY() == -1) {\n System.out.println(\"Robot is not placed, yet.\");\n return;\n }\n\n Position.Direction direction = currentPosition.getDirection();\n int newX = -1;\n int newY = -1;\n switch (direction) {\n case EAST:\n newX = currentPosition.getX() + 1;\n newY = currentPosition.getY();\n break;\n case WEST:\n newX = currentPosition.getX() - 1;\n newY = currentPosition.getY();\n break;\n case NORTH:\n newX = currentPosition.getX();\n newY = currentPosition.getY() + 1;\n break;\n case SOUTH:\n newX = currentPosition.getX();\n newY = currentPosition.getY() - 1;\n break;\n }\n\n if(newX < lowerBound.getX() || newY < lowerBound.getY()\n || newX > upperBound.getX() || newY > upperBound.getY()) {\n System.out.println(\"Cannot move to \" + direction);\n return;\n }\n\n currentPosition.setX(newX);\n currentPosition.setY(newY);\n }",
"public void move() {\n super.move(DIRECTION.getRandom());\n }",
"private void move()\n\t{\n\t\tif(moveRight)\n\t\t{\n\t\t\tif(position.getX() + speedMovement <= width)\n\t\t\t{\n\t\t\t\tposition.setX(position.getX() +speedMovement+speedBoost);\n\t\t\t\tmoveRight = false;\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t\n\t\tif(moveLeft)\n\t\t{\n\t\t\tif(position.getX() - speedMovement > 0)\n\t\t\t{\n\t\t\t\tposition.setX(position.getX() -speedMovement - speedBoost + gravitationalMovement);\n\t\t\t\tmoveLeft = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*\n\t\t * If a gravitational field is pushing the ship, set the movement accordingly\n\t\t */\n\t\tif(gravitationalMovement>0)\n\t\t{\n\t\t\tif(position.getX()+gravitationalMovement <= width)\n\t\t\t\tposition.setX(position.getX() + gravitationalMovement);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(position.getX() + gravitationalMovement > 0)\n\t\t\t\tposition.setX(position.getX() + gravitationalMovement);\n\t\t}\n\t}",
"public void moveBomber(){\n\t\t\t\n\t\t\tif (startredtimer) redtimer++;\n\t\t\tif (redtimer > 5) {\n\t\t\t\tredtimer = 0;\n\t\t\t\tstartredtimer = false;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tif (rand.nextInt(21) == 20){ //controls the switching of directions\n\t\t\t\tif (direction == 1) direction = 0;\n\t\t\t\telse if (direction == 0) direction = 1;\n\t\t\t}\n\t\t\tif (direction == 1){ //actually moves the plain\n\t\t\t\tx += 10;\n\t\t\t\tr = true;\n\t\t\t}\n\t\t\telse if (direction == 0){\n\t\t\t\tx -= 10;\n\t\t\t\tr = false;\n\t\t\t}\n\t\t\t\n\t\t\tif (x <= 0) x = 992; //handles the ofscrean plane\n\t\t\telse if ( x >= 992) x = 0;\n\t\t\t\n\t\t\tthis.setBounds(x,y,100,50); //updates the bounds\n\t\t\t\n\t\t}",
"public void move()\n\t{\n\t\tVector v = ship.v;\n\t\tb = b.getLocation().add(v).getBlock();\n\t\tif(triangle != null) triangle.move();\n\t\tif(rear != null) rear.move();\n\t\tif(foreAndAft != null) foreAndAft.move();\n\t\tif(sails != null) for(int i = 0; i < sails.size(); i++)\n\t\t{\n\t\t\tSail sail = sails.get(i);\n\t\t\tsail.move();\n\t\t}\n\t}",
"public void move() {\n\t\tif(right) {\n\t\t\tgoRight();\n\t\t\tstate++;\n\t\t\tif(state > 5) {\n\t\t\t\tstate = 3;\n\t\t\t}\n\t\t}\n\t\telse if(left) {\n\t\t\tgoLeft();\n\t\t\tstate++;\n\t\t\tif(state > 2) {\n\t\t\t\tstate = 0;\n\t\t\t}\n\t\t}\n\t}",
"public void move() {\n\t\tdouble xv = 0;\r\n\t\tdouble yv = 0;\r\n\t\t//this method allows the entity to hold both up and down (or left and right) and not move. gives for smooth direction change and movement\r\n\t\tif (moveRight) {\r\n\t\t\txv+=getSpeed();\r\n\t\t\torientation = Orientation.EAST;\r\n\t\t}\r\n\t\tif (moveLeft) {\r\n\t\t\txv-=getSpeed();\r\n\t\t\torientation = Orientation.WEST;\r\n\t\t}\r\n\t\tif (moveUp)\r\n\t\t\tyv-=getSpeed();\r\n\t\tif (moveDown)\r\n\t\t\tyv+=getSpeed();\r\n\t\tif (!doubleEquals(xv,0) || !doubleEquals(yv,0)) {\r\n\t\t\t((Player)this).useMana(0.1);\r\n\t\t\tImageIcon img = new ImageIcon(\"lib/assets/images/fireball.png\");\r\n\t\t\tBufferedImage image = new BufferedImage(32,32,BufferedImage.TYPE_INT_ARGB);\r\n\t\t\tGraphics g = image.getGraphics();\r\n\t\t\tg.drawImage(img.getImage(), 0, 0, image.getWidth(), image.getHeight(), null);\r\n\t\t\tColor n = loop[ind%loop.length];\r\n\t\t\tind++;\r\n\t\t\timage = ImageProcessor.scaleToColor(image, n);\r\n\t\t\t//PopMessage.addPopMessage(new PopMessage(image,getX(),getY()));\r\n\t\t}\r\n\t\telse\r\n\t\t\t((Player)this).useMana(-0.1);\r\n\t\tmove(xv,yv);\r\n\t}",
"private void move() {\n if(this.movement[0]) {\n moveRight();\n } else {\n moveLeft();\n }\n if(this.movement[1]) {\n moveDown();\n } else {\n moveUp();\n }\n\n //Checking boundaries of the game\n if(this.XPosition + this.ballWidth > instance.getWidth()) {\n this.movement[0] = false;\n } else if(XPosition <= 0) {\n this.movement[0] = true;\n } else if(YPosition <= 0) {\n this.movement[1] = true;\n } else if(YPosition + ballHeight >= instance.getHeight()) {\n instance.missedBall();\n if (instance.getBalls() > 0){\n this.lostLife.play();\n }\n this.XPosition = instance.getWidth() / 2;\n this.YPosition = instance.getHeight() - 43;\n this.movement[1] = false;\n Player.setPlayerX((instance.getWidth() - 111) / 2);\n Player.setPlayerY(instance.getHeight() - 19);\n instance.isPaused(true);\n }\n\n if (this.boundingBox.intersects(this.playerBoundingBox)){\n Rectangle leftHalfOfPlayer = new Rectangle((int)this.playerBoundingBox.getWidth() / 2, (int)this.playerBoundingBox.getHeight(),\n this.playerBoundingBox.x, this.playerBoundingBox.y);\n this.movement[0] = !this.boundingBox.intersects(leftHalfOfPlayer);\n this.movement[1] = false;\n } else {\n // Check if ball collides with brick;\n for (Bricks[] bricks : instance.getBricks()){\n for (Bricks brick: bricks){\n if (brick.collidesWith(new Rectangle(this.XPosition , this.YPosition , this.ballWidth , this.ballHeight))){\n Rectangle iRect = brick.brickHitBox.intersection(this.boundingBox);\n brick.destroy();\n //Sound brickBreak = new Sound(\"res/Break-Sound.wav\");\n this.brickBreak.play();\n // make logic\n this.movement[1] = true;\n if ((this.boundingBox.x+(this.boundingBox.width/2))<(iRect.x+(iRect.width/2))) {\n this.movement[0] = false;\n }\n if ((this.boundingBox.x+(this.boundingBox.width/2))>(iRect.x+(iRect.width/2))) {\n this.movement[0] = true;\n }\n if ((this.boundingBox.y+(this.boundingBox.height/2))<(iRect.y+(iRect.height/2))) {\n this.movement[1] = false;\n }\n }\n }\n }\n\n }\n\n }",
"@Override\n\tpublic void move() {\n\t\t\n\t}",
"public void move() {\n\t\tsuper.move();\n\t\t\n\t\t// if the slime hit the ground\n\t\tif (y >= 64*2) {\n\t\t\t// begin sliding (only needed for the first time he falls)\n\t\t\tif (accel_x != .25 && accel_x != duck_accel_x) accel_x = .25;\n\t\t\t\n\t\t\t// allow player to jump, since vel_y = 0 stops the jump\n\t\t\tif (jumping)\n\t\t\t\tjumping = false;\n\t\t\telse\n\t\t\t\tvel_y = 0;\n\t\t\t\n\t\t\t// slime is slightly lower while ducking\n\t\t\tif (ducking)\n\t\t\t\ty = 64*2+20;\n\t\t\telse\n\t\t\t\ty = 64*2;\n\t\t}\n\t\t\n\t\t// bounce if the slime hit the top\n\t\tif (y < 0) vel_y *= -1;\n\t}",
"public void move() {\n\n }",
"public void move()\n {\n move(WALKING_SPEED);\n }",
"@Override\n\tpublic void move() {\n\n\t}",
"@Override\n\tpublic void movment() {\n\t\tif(ghost.shot && fired) {\n\t\t\tif(direction == RIGHT)\n\t\t\t\tmove(RIGHT);\n\t\t\telse if(direction == LEFT)\n\t\t\t\tmove(LEFT);\n\t\t\telse if(direction == UP)\n\t\t\t\tmove(UP);\n\t\t\telse if(direction == DOWN)\n\t\t\t\tmove(DOWN);\n\t\t}\n\t}",
"@Override\n \t\t\t\tpublic void doMove() {\n \n \t\t\t\t}",
"public void move() {\n\t\t\tar.setAhead(10 * fahrtrichtung);\n\n\t\t\t// Wie schnell sich der Roboter drehen soll\n\t\t\tar.setTurnRight(45 * drehrichtung);\n\t\t\tar.execute();\n\t\t\tfarbschema = farbschema * (-1);\n\t\t}",
"public void move() {\n spriteBase.move();\n\n Double newX = spriteBase.getXCoordinate() + spriteBase.getDxCoordinate();\n Double newY = spriteBase.getYCoordinate() + spriteBase.getDyCoordinate();\n\n if (!newX.equals(spriteBase.getXCoordinate())\n || !newY.equals(spriteBase.getYCoordinate())) {\n Logger.log(String.format(\"Monster moved from (%f, %f) to (%f, %f)\",\n spriteBase.getXCoordinate(), spriteBase.getYCoordinate(), newX, newY));\n }\n }",
"@Override\n\tpublic void move() {\n\t}",
"public void move();",
"public void move();",
"protected void move()\n {\n // Find a location to move to.\n Debug.print(\"Fish \" + toString() + \" attempting to move. \");\n Location nextLoc = nextLocation();\n\n // If the next location is different, move there.\n if ( ! nextLoc.equals(location()) )\n {\n // Move to new location.\n Location oldLoc = location();\n changeLocation(nextLoc);\n\n // Update direction in case fish had to turn to move.\n Direction newDir = environment().getDirection(oldLoc, nextLoc);\n changeDirection(newDir);\n Debug.println(\" Moves to \" + location() + direction());\n }\n else\n Debug.println(\" Does not move.\");\n }",
"public void move()\r\n {\r\n if(goRight)\r\n {\r\n setLocation(getX()+10,getY()+3);\r\n if(contFall<8)\r\n contFall++;\r\n else contFall=0;\r\n switch(contFall)\r\n {\r\n case 0:setImage(im1);\r\n break;\r\n case 2:setImage(im2);\r\n break;\r\n case 4:setImage(im3);\r\n break;\r\n case 6:setImage(im4);\r\n break;\r\n }\r\n }else\r\n {\r\n setLocation(getX()-10,getY()+3);\r\n if(contFall<8)\r\n contFall++;\r\n else contFall=0;\r\n switch(contFall)\r\n {\r\n case 0:setImage(im1);\r\n break;\r\n case 2:setImage(im2);\r\n break;\r\n case 4:setImage(im3);\r\n break;\r\n case 6:setImage(im4);\r\n break;\r\n }\r\n }\r\n if(getY()>getWorld().getHeight())\r\n ((CaveWorld)(getWorld())).deleteAxe(this);\r\n }",
"public void move()\n {\n xPosition = xPosition + xSpeed;\n yPosition = yPosition + ySpeed;\n draw();\n if (xPosition >= rightBound - diameter)\n {\n xSpeed = -(xSpeed);\n\n }\n else\n {\n }\n if (xPosition <= leftBound)\n {\n xSpeed = -(xSpeed);\n\n }\n else\n {\n }\n if (yPosition <= upBound)\n {\n ySpeed = -(ySpeed);\n\n }\n else\n {\n }\n if (yPosition >= lowBound - diameter)\n {\n ySpeed = -(ySpeed);\n\n }\n else \n {\n }\n\n }",
"@Override\r\n\tpublic void move() {\n\r\n\t}",
"public void move() {\n\t\tthis.move(velocity.x, velocity.y);\n\t}",
"public void move() {\n this.pposX = this.posX;\n this.pposY = this.posY;\n this.posX = newPosX;\n this.posY = newPosY;\n }",
"public void act(){\n // Removing object, if out of the simulated zone\n if (atWorldEdge()){\n getWorld().removeObject(this);\n return;\n }\n\n //Move Thanos up\n setLocation (getX(), getY() - speed);\n }",
"@Override\n public void move () {\n }",
"public abstract void move();",
"public abstract void move();",
"public abstract void move();",
"public abstract void move();",
"public abstract void move();",
"public abstract void move();",
"public abstract void move();",
"public void move() {\r\n\t\tSystem.out.print(\"This Goose moves forward\");\r\n\t}",
"public void move()\n\t{\n\t\tx = x + frogVelocityX;\n\t}",
"public void move(int tick) {\n moveMade = true;\n Location newTail;\n if (grow) {\n\n switch (body.getLast().direction) {\n case RIGHT:\n newTail = new Location(body.getLast().locX - GraphicsBounds.spriteSize,\n body.getLast().locY, body.getLast().direction);\n break;\n case LEFT:\n newTail = new Location(body.getLast().locX + GraphicsBounds.spriteSize,\n body.getLast().locY, body.getLast().direction);\n break;\n case UP:\n newTail = new Location(body.getLast().locX, body.getLast().locY\n + GraphicsBounds.spriteSize, body.getLast().direction);\n break;\n case DOWN:\n newTail = new Location(body.getLast().locX, body.getLast().locY\n - GraphicsBounds.spriteSize, body.getLast().direction);\n break;\n default:\n newTail = new Location(0,0);\n break;\n\n }\n\n\n body.addLast(newTail);\n }\n\n for (int i = body.size() - 1; i > 0; i--) {\n body.get(i).direction = body.get(i - 1).direction;\n }\n\n switch (direction) {\n case RIGHT:\n body.getFirst().direction = Direction.RIGHT;\n break;\n case LEFT:\n body.getFirst().direction = Direction.LEFT;\n break;\n case UP:\n body.getFirst().direction = Direction.UP;\n break;\n case DOWN:\n body.getFirst().direction = Direction.DOWN;\n break;\n default:\n break;\n }\n\n\n\n for (int i = body.size() - 1; i >= 0; i--) {\n Direction dir = body.get(i).direction;\n Location segment = body.get(i);\n switch (dir) {\n case RIGHT:\n segment.locX += snakeSpeed;\n break;\n case LEFT:\n segment.locX -= snakeSpeed;\n break;\n case UP:\n segment.locY -= snakeSpeed;\n break;\n case DOWN:\n segment.locY += snakeSpeed;\n break;\n default:\n break;\n }\n }\n\n\n\n grow = false;\n }",
"public void move() {\r\n\t\tSystem.out.print(\"This animal moves forward\");\r\n\t}",
"@Override\n\tpublic void move() {\n\t\theading = Heading.randHeading();\n\t\tif (heading == Heading.NORTH) {\n\t\t\tthis.location.y -= Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.EAST) {\n\t\t\tthis.location.x += Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.SOUTH) {\n\t\t\tthis.location.y += Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.WEST) {\n\t\t\tthis.location.x -= Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t}\n\t\tadjustPos();\n\t\tinfect();\n\t}",
"public void move() {\n\t\tif (isLuck) {\n\t\t\tif (rand.nextBoolean()) {\n\t\t\t\txPos++;\n\t\t\t}\n\t\t} else {\n\t\t\tif (rightCount < skill) {\n\t\t\t\trightCount++;\n\t\t\t\txPos++;\n\t\t\t}\n\t\t}\n\t}",
"public void move() {\r\n\t\tx = x + speed;\r\n\t}",
"private void moveBall() {\n\t\tball.move(vx,vy);\n\t\tpause(10);\t\n\t\t\n\t}",
"public void flap(){\n bird.setY(bird.getY() - 6);\n }",
"public void move() {\n\t\tsetHealth(getHealth() - 1);\n\t\t//status();\n\t\tint row = getPosition().getRow() ;\n\t\tint column = getPosition().getColumn();\n\t\tint randomInt = (int)((Math.random()*2) - 1);\n\t\t\n\t\tif(hunter == false && row < 33) {\n\t\t\tif(row == 32) {\n\t\t\t\tgetPosition().setCoordinates(row -1 , randomInt);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t\tif(row == 0) {\n\t\t\t\tgetPosition().setCoordinates(row + 1 , randomInt);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t\tif(column == 99) {\n\t\t\t\tgetPosition().setCoordinates(randomInt , column - 1);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t\tif(column == 0) {\n\t\t\t\tgetPosition().setCoordinates(randomInt , column + 1);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t}\n\t\tif(hunter == false && row > 32) {\n\t\t\t//setHealth(100);\n\t\t\tgetPosition().setCoordinates(row -1 , randomInt);\n\t\t\tsetPosition(getPosition()) ;\n\t\t}\n\t\telse {\n\t\t\tif(row < 65 && hunter == true) {\n\t\t\t\tgetPosition().setCoordinates(row + 1, column);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tgetPosition().setCoordinates(65, column);\n\t\t\t\tsetPosition(getPosition());\n\t\t\t\t//Check if there is a gazelle\n\t\t\t\tPair [][] range = {{Drawer.pairs[row+1][column-1],Drawer.pairs[row+1][column],\n\t\t\t\t\t\t\t Drawer.pairs[row+1][column+1]}, {\n\t\t\t\t\t\t\t Drawer.pairs[row+2][column-1],\n\t\t\t\t\t\t\t Drawer.pairs[row+2][column],Drawer.pairs[row+2][column+1]}};\n\t\t\t\t\n\t\t\t\tfor(Pair [] line: range) {\n\t\t\t\t\tfor(Pair prey: line) {\n\t\t\t\t\t\tif(prey.getAnimal() instanceof Gazelle ) {\n\t\t\t\t\t\t\tattack();\n\t\t\t\t\t\t\tprey.getAnimal().die();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void Move()\n {\n \n }",
"private void move() {\n\t\t\tangle += Math.PI/24;\n\t\n\t\t\tcow.locX = Math.sin(angle) * 2.5 + player.getLocation().getX();\n\t\t\tcow.locZ = Math.cos(angle) * 2.5 + player.getLocation().getZ();\n\t\t\t\n\t\t\tLocation loc = new Location(player.getWorld(), cow.locX, player.getLocation().getY() + 1.5, cow.locZ);\n\t\t\tloc.setDirection(player.getLocation().subtract(loc).toVector()); //Look at the player\n\t\t\t\n\t\t\tPacketHandler.teleportFakeEntity(player, cow.getId(), loc);\n\t\t}",
"@Override\n public void move() {\n System.out.println(\"I like to burrow around in the ground and avoid rocky areas.\");\n }",
"public void move() {\n\n\tGrid<Actor> gr = getGrid();\n\tif (gr == null) {\n\n\t return;\n\t}\n\n\tLocation loc = getLocation();\n\tif (gr.isValid(next)) {\n\n\t setDirection(loc.getDirectionToward(next));\n\t moveTo(next);\n\n\t int counter = dirCounter.get(getDirection());\n\t dirCounter.put(getDirection(), ++counter);\n\n\t if (!crossLocation.isEmpty()) {\n\t\t\n\t\t//reset the node of previously occupied location\n\t\tArrayList<Location> lastNode = crossLocation.pop();\n\t\tlastNode.add(next);\n\t\tcrossLocation.push(lastNode);\t\n\t\t\n\t\t//push the node of current location\n\t\tArrayList<Location> currentNode = new ArrayList<Location>();\n\t\tcurrentNode.add(getLocation());\n\t\tcurrentNode.add(loc);\n\n\t\tcrossLocation.push(currentNode);\t\n\t }\n\n\t} else {\n\t removeSelfFromGrid();\n\t}\n\n\tFlower flower = new Flower(getColor());\n\tflower.putSelfInGrid(gr, loc);\n\t\n\tlast = loc;\n\t\t\n }",
"public void move() {\n\t\tGrid<Actor> gr = getGrid();\n\t\tif (gr == null) {\n\t\t\treturn;\n\t\t}\n\t\tLocation loc = getLocation();\n\t\tif (gr.isValid(next)) {\n\t\t\tsetDirection(getLocation().getDirectionToward(next));\n\t\t\tmoveTo(next);\n\t\t} else {\n\t\t\tremoveSelfFromGrid();\n\t\t}\n\t\tFlower flower = new Flower(getColor());\n\t\tflower.putSelfInGrid(gr, loc);\n\t}",
"public void move() {\r\n posX += movementX;\r\n posY += movementY;\r\n anchorX += movementX;\r\n anchorY += movementY;\r\n }",
"public void move() {\n float xpos = thing.getX(), ypos = thing.getY();\n int xdir = 0, ydir = 0;\n if (left) xdir -= SPEED; if (right) xdir += SPEED;\n if (up) ydir -= SPEED; if (down) ydir += SPEED;\n xpos += xdir; ypos += ydir;\n\n VeggieCopter game = thing.getGame();\n int w = game.getWindowWidth(), h = game.getWindowHeight();\n int width = thing.getWidth(), height = thing.getHeight();\n if (xpos < 1) xpos = 1; if (xpos + width >= w) xpos = w - width - 1;\n if (ypos < 1) ypos = 1; if (ypos + height >= h) ypos = h - height - 1;\n thing.setPos(xpos, ypos);\n }",
"public void move() {\n\t\tif (!visible) {\r\n\t\t\thideTurtle();\r\n\t\t}\r\n\t}",
"public void move_to_gantry() {\n\t\tstop_moving();\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tmove(gpX, gpY, gpZ);\n\t}",
"public void moveBoss() {\n\t\tdouble position = boss.getTranslateY();\n\t\tspeed = Math.random()*30;\n\t\tif(position > 600-70) {\n\t\t\tRandom r = new Random();\n\t\t\tboss.setTranslateY(-6);\n\t\t\tboss.setTranslateX(r.nextInt(900));\n\t\t}else {\n\t\tboss.setTranslateY(position + speed);\n\t\t}\n\t}",
"public void move() {\n if(Objects.nonNull(this.position)) {\n Position position = this.getPosition();\n Function<Position, Position> move = moveRobotInDirectionMap.get(position.getDirection());\n this.position = move.apply(position);\n }\n }",
"private void move() {\n resetUpdate();\n\n gameMessage.setSpace1(clientMessage.getSpace1());\n gameMessage.resetGameMessage();\n gameMessage.notify(gameMessage);\n\n\n if( liteGame.isWinner() ) endOfTheGame = true;\n }",
"void move() {\n\t\tif (reachedEdge()) {\n\t\t\tvelocityX = velocityX * -1;\n\t\t\ty = y + 50;\n\t\t}\n\t\tif (reachedLeft()) {\n\t\t\tvelocityX = velocityX * -1;\n\t\t\ty = y + 50;\n\t\t}\n\n\t\tx = x + velocityX;\n\t}",
"public void act() \r\n {\r\n move();\r\n }",
"public void move()\n\t{\n\t\tx = x + dx;\n\t}",
"private void move() {\n\t\t\tx += Math.PI/12;\n\t\t\thead.locY = intensity * Math.cos(x) + centerY;\n\t\t\thead.yaw = spinYaw(head.yaw, 3f);\n\t\t\t\t\t\n\t\t\tPacketHandler.teleportFakeEntity(player, head.getId(), \n\t\t\t\tnew Location(player.getWorld(), head.locX, head.locY, head.locZ, head.yaw, 0));\n\t\t}",
"public void move(String direction) {\n \n }",
"public void move() {\n Grid<Actor> gr = getGrid();\n if (gr == null) {\n return;\n }\n Location loc = getLocation();\n if (gr.isValid(next)) {\n setDirection(getLocation().getDirectionToward(next));\n moveTo(next);\n } else {\n removeSelfFromGrid();\n }\n Flower flower = new Flower(getColor());\n flower.putSelfInGrid(gr, loc);\n }",
"@Override\r\n public void run() {\r\n move();\r\n }",
"public void move()\n {\n universe.erase(this);\n \n // compute new position\n \n yPosition += ySpeed;\n xPosition += xSpeed;\n\n // check if it has hit the ground\n if(yPosition >= (groundPosition - diameter) && ySpeed > 0) {\n yPosition = groundPosition - diameter;\n ySpeed = -ySpeed; \n }\n // check if top\n if(yPosition <= 0 && ySpeed < 0){\n ySpeed = -ySpeed; \n }\n //check right\n if(xPosition >= (universe.getLength() - diameter) && xSpeed >0){\n xSpeed = -xSpeed;\n }\n //check left\n if(xPosition <= 0 && xSpeed < 0){\n xSpeed = -xSpeed;\n }\n \n // draw again at new position\n universe.draw(this);\n }",
"public void move() {\r\n\r\n\t\tif(x < 0) {\r\n\t\t\tx = 400;\r\n\t\t}\r\n\r\n\t\t// factor for speed increase\r\n\t\tx -= 1 * factor;\r\n\t}",
"@Override\n\tvoid move(int x, int y) {\n\n\t}",
"public void move() { \n\t\tSystem.out.println(\"MOVING\");\n\t\tswitch(direction) {\n\t\t\tcase NORTH: {\n\t\t\t\tyloc -= ySpeed;\n\t\t\t}\n\t\t\tcase SOUTH: {\n\t\t\t\tyloc+= xSpeed;\n\t\t\t}\n\t\t\tcase EAST: {\n\t\t\t\txloc+= xSpeed;\n\t\t\t}\n\t\t\tcase WEST: {\n\t\t\t\txloc-= xSpeed;\n\t\t\t}\n\t\t\tcase NORTHEAST: {\n\t\t\t\txloc+=xSpeed;\n\t\t\t\tyloc-=ySpeed;\n\t\t\t}\n\t\t\tcase NORTHWEST: {\n\t\t\t\txloc-=xSpeed;\n\t\t\t\tyloc-=ySpeed;\n\t\t\t}\n\t\t\tcase SOUTHEAST: {\n\t\t\t\txloc+=xSpeed;\n\t\t\t\tyloc+=ySpeed;\n\t\t\t}\n\t\t\tcase SOUTHWEST: {\n\t\t\t\txloc-=xSpeed;\n\t\t\t\tyloc+= ySpeed;\n\t\t\t}\n\t\t}\n\t}",
"public abstract void move(Position position);",
"public void move()\r\n\t{\r\n\t\ty-=8;\r\n\t}",
"void move();",
"public void move()\n {\n double angle = Math.toRadians( getRotation() );\n int x = (int) Math.round(getX() + Math.cos(angle) * WALKING_SPEED);\n int y = (int) Math.round(getY() + Math.sin(angle) * WALKING_SPEED);\n setLocation(x, y);\n }",
"public void act() \n {\n move(-16);\n \n \n if (isAtEdge())\n {\n setLocation(700,getY());\n }\n \n if (isTouching(Shots.class))\n {\n getWorld().addObject(new SpaceObject(), 500,Greenfoot.getRandomNumber(400));\n }\n \n }",
"@Override\n public void move() {\n System.out.println(\"I roam here and there\");\n }",
"public void Obstaclemove() {\n for (int i = 0; i < getNumberObstacles(); i++) {\n if (ObstacleDeplace.class.isInstance(getObstacle()[i])) {\n getObstacle()[i].setX(getObstacle()[i].getX() - getObstacle()[i].getSpeed());\n\n if (getObstacle()[i].getX() < -200) {\n getObstacle()[i].setX(600);\n getObstacle()[i].setSpeed(randomGenerator.nextFloat());\n }\n }\n setChanged();\n notifyObstacle(i, getObstacle()[i].getX(), getObstacle()[i].getY());\n }\n }",
"@Override\n\tpublic void move() {\n\t\tSystem.out.println(\"fly\");\n\n\t}",
"abstract void move();",
"public void moveObjects() {\n // move ball and paddles\n ball.moveBall();\n playerOnePaddle.movePaddle();\n playerTwoPaddle.movePaddle();\n }",
"public void move() {\n\t\tGrid<Actor> gr = getGrid();\n\t\tif (gr == null) {\n\t\t\treturn;\n\t\t}\n\t\tLocation loc = getLocation();\n\t\tLocation next = loc.getAdjacentLocation(getDirection());\n\t\t\n\t\tLocation next2 = next.getAdjacentLocation(getDirection());\n\t\tif (gr.isValid(next2)) {\n\t\t\tmoveTo(next2);\n\t\t} else {\n\t\t\tremoveSelfFromGrid();\n\t\t}\n\t}",
"private void move() {\n\n for (int z = snakeLength; z > 0; z--) {\n xLength[z] = xLength[(z - 1)];\n yLength[z] = yLength[(z - 1)];\n }\n\n if (left) {\n xLength[0] -= elementSize;\n }\n\n if (right) {\n xLength[0] += elementSize;\n }\n\n if (up) {\n yLength[0] -= elementSize;\n }\n\n if (down) {\n yLength[0] += elementSize;\n }\n }",
"public abstract void Move();",
"public void move() {\n health -= 2; //health decrement\n age++; //age increment\n if (yPos > 300) {\n speed += 3;\n }\n boolean canMove = false;\n int distancex = (int) (Math.random() * speed);\n int distancey = (int) (Math.random() * speed);\n int counterx = r.nextInt(2);\n int countery = r.nextInt(2);\n while (!canMove) {\n distancex = (int) (Math.random() * speed);\n distancey = (int) (Math.random() * speed);\n counterx = r.nextInt(2);\n countery = r.nextInt(2);\n if (counterx == 0 && this.xPos - distancex > 0\n && countery == 0 && this.yPos - distancey > 0) {\n canMove = true;\n } else if (counterx == 1 && this.xPos + distancex < 510\n && countery == 1 && this.yPos + distancey < 530) {\n canMove = true;\n }\n }\n if (counterx == 0 && countery == 0) {\n xPos -= distancex;\n yPos -= distancey;\n } else if (counterx == 0 && countery == 1) {\n xPos -= distancex;\n yPos += distancey;\n } else if (counterx == 1 && countery == 0) {\n xPos += distancex;\n yPos -= distancey;\n } else if (counterx == 1 && countery == 1) {\n xPos += distancex;\n yPos += distancey;\n }\n }",
"public void move() {\r\n if (y > HEIGHT)\r\n y = initialY;\r\n y = y + speed;\r\n }",
"@Override\n\tpublic void move(int xPos, int yPos) {\n\t}",
"private void moveGame() {\r\n\t\tmoveFireball1();\r\n\t\tmoveFireball2();\r\n\t\tmoveMehran();\r\n\t\tmoveLaser();\r\n\t\tmoveBullet();\r\n\t\tcheckPlayerCollisions();\r\n\t\tcheckForBulletCollisions();\r\n\t\tpause(DELAY);\r\n\t\tcount++;\r\n\t}",
"public boolean move();",
"public void move() {\n boolean changeDirection = true;\r\n if (y + y1 < 0) { // We want to change the direction if the ball hits the upper border\r\n y1 = game.speed;\r\n }else if (y + y1 > game.getHeight() - DIAMETER) { // we want to change the direction if the ball hits the lower border\r\n y1 = -game.speed;\r\n }else if (x + x1 < 0) { // Checks if the ball hits the left or right border. If it does, the round ends\r\n score2++;\r\n game.player2Score = score2;\r\n x1 = game.speed;\r\n }else if (x + x1 > game.getWidth() - DIAMETER) {\r\n score1++;\r\n game.player1Score = score1;\r\n x1 = -game.speed;\r\n }else if (collision1()) { // checks if our ball collides with our first racket\r\n x1 = -game.speed;\r\n// y = game.racket1.getTopY() - DIAMETER;\r\n game.speed++;\r\n }else if (collision2()) { // checks if our ball collides with our second racket\r\n x1 = game.speed + 1;\r\n// y = game.racket2.getTopY() + DIAMETER;\r\n// game.speed++;\r\n }else { // if neither of the borders nor the rackets are hit, we don't change our direction of the ball\r\n changeDirection = false;\r\n }\r\n if (changeDirection) { // if the ball hits the border or the racket, the sound of collision is going to play.\r\n Sound.BALL.play();\r\n }\r\n\r\n if (score1 == 3 || score2 == 3) {\r\n game.gameOver(\" Wins!\");\r\n }\r\n x += x1; // helps in moving our ball in x-axis\r\n y += y1; // helps in moving our ball in y-axis\r\n }",
"public void moveRobber(HexLocation loc) {\n\n\t}",
"protected void move(Direction d) {\n\t\tbody.move(d);\n\t}",
"@Override\r\n\tpublic void turnToward(int x, int y) {\n\t}",
"private static void move() {\r\n\t\ttry {\r\n\t\t\tThread.sleep(timer);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\trunTime += timer;\r\n\t\tif (runTime > stepUp) {\r\n\t\t\ttimer *= 0.9;\r\n\t\t\tstepUp += 5000;\r\n\t\t}\r\n\r\n\t\tupdateSnake(lastMove);\r\n\t\t// updateField();\r\n\r\n\t\tif (score >= 10 && (r.nextInt(40) == 0)) {\r\n\t\t\taddFood(MOUSE);\r\n\t\t}\r\n\t\tif (score >= 30 && (r.nextInt(50) == 0)) {\r\n\t\t\taddFood(POISON);\r\n\t\t}\r\n\t}",
"public void move() {\n\t\tif (type.equals(\"Fast\")) {\n\t\t\tspeed = 2;\n\t\t}else if (type.equals(\"Slow\")){\n\t\t\tspeed = 4;\n\t\t}\n\t\t\n\t\tif (rand.nextInt(speed) == 1){\n\t\t\tif (currentLocation.x - ChristopherColumbusLocation.x < 0) {\n\t\t\t\tif (currentLocation.x + 1 < oceanMap.getDimensions()) {\n\t\t\t\t\tcurrentLocation.x++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (currentLocation.x != 0) {\t\t\t\t\n\t\t\t\t\tcurrentLocation.x--;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (currentLocation.y - ChristopherColumbusLocation.y < 0) {\n\t\t\t\tif (currentLocation.y + 1 < oceanMap.getDimensions()) {\n\t\t\t\t\tcurrentLocation.y++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (currentLocation.y != 0) {\n\t\t\t\t\tcurrentLocation.y--;\n\t\t\t\t}\n\t\t\t} \n\t\t}\n\t}",
"public void moveBlueCrab() {\n\t\tloseLife();\n\t\tif (wallOverlapX()) {\n\t\t\tif (hitRight) {\n\t\t\t\tif (xVel > 0) {\n\t\t\t\t\tyPos += yVel;\n\t\t\t\t\treturn;\n\t\t\t\t} else {\n\t\t\t\t\txPos += xVel;\n\t\t\t\t\tyPos += yVel;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t} else if (hitLeft) {\n\t\t\t\tif (xVel < 0) {\n\t\t\t\t\tyPos += yVel;\n\t\t\t\t\treturn;\n\t\t\t\t} else {\n\t\t\t\t\txPos += xVel;\n\t\t\t\t\tyPos += yVel;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (wallOverlapY()) {\n\t\t\tif (hitUp) {\n\t\t\t\tif (yVel < 0) {\n\t\t\t\t\txPos += xVel;\n\t\t\t\t\treturn;\n\t\t\t\t} else {\n\t\t\t\t\txPos += xVel;\n\t\t\t\t\tyPos += yVel;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t} else if (hitDown) {\n\t\t\t\tif (yVel > 0) {\n\t\t\t\t\txPos += xVel;\n\t\t\t\t\treturn;\n\t\t\t\t} else {\n\t\t\t\t\txPos += xVel;\n\t\t\t\t\tyPos += yVel;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint xLow = xPos;\n\t\tint xHigh =xPos + width;\n\t\tint yTop = yPos;\n\t\tint yBot = yPos + height;\n\t\tfor (int i = 0; i < game.m.walls.size(); i++) {\n\t\t\tif (game.m.walls.get(i).wallHit(this) > 0) {\n//\t\t\t\twhile (game.m.walls.get(i).wallHit(this)) {\n\t\t\t\tif (game.m.walls.get(i).wallHit(this) == 4) {\n\t\t\t\t\tif (yVel < 0) {\n\t\t\t\t\t\tyPos += yVel;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t} \n\t\t\t\t\telse {\n\t\t\t\t\t\tfor (int j = 0; j < game.m.walls.size(); j++) {\n\t\t\t\t\t\t\tif (game.m.walls.get(j).wallHit(this) == 1) {\n\t\t\t\t\t\t\t\tif (xVel > 0) {\n\t\t\t\t\t\t\t\t\txPos += xVel;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int j = 0; j < game.m.walls.size(); j++) {\n\t\t\t\t\t\t\tif (game.m.walls.get(j).wallHit(this) == 2) {\n\t\t\t\t\t\t\t\tif (xVel < 0) {\n\t\t\t\t\t\t\t\t\txPos += xVel;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\txPos += xVel;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (game.m.walls.get(i).wallHit(this) == 3) {\n\t\t\t\t\tif (yVel > 0) {\n\t\t\t\t\t\tyPos += yVel;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t} \n\t\t\t\t\telse {\n\t\t\t\t\t\tfor (int j = 0; j < game.m.walls.size(); j++) {\n\t\t\t\t\t\t\tif (game.m.walls.get(j).wallHit(this) == 1) {\n\t\t\t\t\t\t\t\tif (xVel > 0) {\n\t\t\t\t\t\t\t\t\txPos += xVel;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int j = 0; j < game.m.walls.size(); j++) {\n\t\t\t\t\t\t\tif (game.m.walls.get(j).wallHit(this) == 2) {\n\t\t\t\t\t\t\t\tif (xVel < 0) {\n\t\t\t\t\t\t\t\t\txPos += xVel;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\txPos += xVel;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (game.m.walls.get(i).wallHit(this) == 2) {\n\t\t\t\t\tif (xVel < 0) {\n\t\t\t\t\t\txPos += xVel;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t} \n\t\t\t\t\telse {\n\t\t\t\t\t\tfor (int j = 0; j < game.m.walls.size(); j++) {\n\t\t\t\t\t\t\tif (game.m.walls.get(j).wallHit(this) == 3) {\n\t\t\t\t\t\t\t\tif (yVel > 0) {\n\t\t\t\t\t\t\t\t\tyPos += yVel;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int j = 0; j < game.m.walls.size(); j++) {\n\t\t\t\t\t\t\tif (game.m.walls.get(j).wallHit(this) == 4) {\n\t\t\t\t\t\t\t\tif (yVel < 0) {\n\t\t\t\t\t\t\t\t\tyPos += yVel;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tyPos += yVel;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (game.m.walls.get(i).wallHit(this) == 1) {\n\t\t\t\t\tif (xVel > 0) {\n\t\t\t\t\t\txPos += xVel;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t} \n\t\t\t\t\telse {\n\t\t\t\t\t\tfor (int j = 0; j < game.m.walls.size(); j++) {\n\t\t\t\t\t\t\tif (game.m.walls.get(j).wallHit(this) == 3) {\n\t\t\t\t\t\t\t\tif (yVel > 0) {\n\t\t\t\t\t\t\t\t\tyPos += yVel;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int j = 0; j < game.m.walls.size(); j++) {\n\t\t\t\t\t\t\tif (game.m.walls.get(j).wallHit(this) == 4) {\n\t\t\t\t\t\t\t\tif (yVel < 0) {\n\t\t\t\t\t\t\t\t\tyPos += yVel;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tyPos += yVel;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n//\t\t\t\tif (xVel > 0) {\n//\t\t\t\t\txPos -= 20;\n//\t\t\t\t\treturn;\n//\t\t\t\t} \n//\t\t\t\telse if (xVel < 0) {\n//\t\t\t\t\txPos += 20;\n//\t\t\t\t\treturn;\n//\t\t\t\t}\n//\t\t\t\tif (yVel > 0) {\n//\t\t\t\t\tyPos -= 20;\n//\t\t\t\t\treturn;\n//\t\t\t\t}\n//\t\t\t\telse if (yVel < 0) {\n//\t\t\t\t\tyPos += 20;\n//\t\t\t\t\treturn;\n//\t\t\t\t}\n//\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (xPos <= 0) {\n\t\t\tif (xVel > 0) {\n\t\t\t\txPos += xVel;\n\t\t\t} else if (yPos + height <= game.mapHeight && yPos >= 0){\n\t\t\t\tyPos += yVel;\n\t\t\t} else {\n\t\t\t\treturn;\n\t\t\t}\n\t\t} else if (xPos + width >= game.mapWidth) {\n\t\t\tif (xVel < 0) {\n\t\t\t\txPos += xVel;\n\t\t\t} else if (yPos + height <= game.mapHeight && yPos >= 0){\n\t\t\t\tyPos += yVel;\n\t\t\t} else {\n\t\t\t\treturn;\n\t\t\t}\n\t\t} else if (yPos <= 0) {\n\t\t\tif (yVel > 0) {\n\t\t\t\tyPos += yVel;\n\t\t\t} else if (xPos + width <= game.mapWidth && xPos >= 0){ \n\t\t\t\txPos += xVel;\n\t\t\t} else {\n\t\t\t\treturn;\n\t\t\t}\n\t\t} else if (yPos + height >= game.mapHeight) { \n\t\t\tif (yVel < 0) {\n\t\t\t\tyPos += yVel;\n\t\t\t} else if (xPos + width <= game.mapWidth && xPos >= 0){\n\t\t\t\txPos += xVel;\n\t\t\t} else {\n\t\t\t\treturn;\n\t\t\t}\n\t\t} else {\n\t\t\txPos += xVel;\n\t\t\tyPos += yVel;\n\t\t}\n\n\t}"
]
| [
"0.83045405",
"0.7430579",
"0.715834",
"0.715448",
"0.70771784",
"0.7025088",
"0.7023505",
"0.6976796",
"0.6956428",
"0.69333327",
"0.6928395",
"0.6913052",
"0.69089174",
"0.690376",
"0.6890521",
"0.68880725",
"0.6870921",
"0.6860572",
"0.6821762",
"0.68178195",
"0.68154556",
"0.67987365",
"0.67914975",
"0.6788583",
"0.67869294",
"0.6772328",
"0.67693996",
"0.67693996",
"0.67675465",
"0.6751221",
"0.67478323",
"0.67333966",
"0.6731411",
"0.6730325",
"0.6729164",
"0.6686011",
"0.66838",
"0.66838",
"0.66838",
"0.66838",
"0.66838",
"0.66838",
"0.66838",
"0.6682291",
"0.6682179",
"0.6679953",
"0.667913",
"0.66576934",
"0.66523844",
"0.66474307",
"0.66348356",
"0.6627321",
"0.6625437",
"0.66185874",
"0.6617549",
"0.66173023",
"0.6612403",
"0.6590221",
"0.65647024",
"0.65645003",
"0.6561975",
"0.6555022",
"0.6551321",
"0.65487754",
"0.6547633",
"0.6531186",
"0.6526218",
"0.65204924",
"0.65096825",
"0.65087825",
"0.6503927",
"0.6498208",
"0.6489464",
"0.6486834",
"0.648591",
"0.6480725",
"0.647535",
"0.64691204",
"0.6468036",
"0.64676774",
"0.64620787",
"0.64486873",
"0.64474833",
"0.6442957",
"0.6435587",
"0.64163685",
"0.6414313",
"0.6398593",
"0.6392531",
"0.63895774",
"0.63879806",
"0.63878983",
"0.63846916",
"0.637883",
"0.636696",
"0.63618714",
"0.63607377",
"0.6357319",
"0.6355774",
"0.63496363",
"0.63442534"
]
| 0.0 | -1 |
Fill a suggestion for a key word | public static void associate(final String keyWord, final JHelpSuggestion<String> suggestion)
{
final Pair<String, String> association = EditorResources.KEY_WORDS.get(keyWord);
if(association == null)
{
suggestion.addSuggestion(keyWord);
}
else
{
suggestion.addSuggestion(keyWord, association.element1, association.element2);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void suggestCategory() {\n String[] allCat = {\"Pizza\", \"Pasta\", \"Dessert\", \"Salad\", \"SoftDrinks\"};\n// for (ItemDTO i : allDetails) {\n// names.add(i.getName());\n// }\n\n TextFields.bindAutoCompletion(txtCat, allCat);\n }",
"void AddSuggestion(String babyName) {\n\r\n\tT.insert(babyName);\r\n\t\r\n\r\n }",
"private void searchWord()\n {\n String inputWord = searchField.getText();\n \n if(inputWord.isEmpty())\n queryResult = null;\n \n else\n {\n char firstLetter = inputWord.toUpperCase().charAt(0);\n \n for(int i = 0 ; i < lexiNodeTrees.size() ; i++)\n {\n if(lexiNodeTrees.get(i).getCurrentCharacter() == firstLetter)\n {\n queryResult = lexiNodeTrees.get(i).searchWord(inputWord, false);\n i = lexiNodeTrees.size(); // escape the loop\n }\n }\n }\n \n // update the list on the GUI\n if(queryResult != null)\n {\n ArrayList<String> words = new ArrayList<>();\n for(WordDefinition word : queryResult)\n {\n words.add(word.getWord());\n }\n \n // sort the list of words alphabetically \n Collections.sort(words);\n \n // display the list of wordsin the UI\n DefaultListModel model = new DefaultListModel();\n for(String word : words)\n {\n model.addElement(word);\n }\n\n this.getSearchSuggestionList().setModel(model);\n }\n \n else\n this.getSearchSuggestionList().setModel( new DefaultListModel() );\n }",
"void suggest(T value);",
"void itemSuggested(String autoCompleteString, boolean keepPopupVisible, boolean triggerAction);",
"private static void addKeywordSearch()\r\n\t{\r\n\t\tString userInput;\r\n\t\tSystem.out.println(\"Enter a new keyword to search for:\");\r\n\t\tuserInput = input.nextLine();\r\n\t\tkeywords.add(userInput);\r\n\t}",
"@Override\r\n public void actionPerformed(ActionEvent arg0) {\r\n UserDictionaryProvider provider = SpellChecker.getUserDictionaryProvider();\r\n if (provider != null) {\r\n provider.addWord(word);\r\n }\r\n Dictionary dictionary = SpellChecker.getCurrentDictionary();\r\n dictionary.add(word);\r\n dictionary.trimToSize();\r\n AutoSpellChecker.refresh(jText);\r\n }",
"private void updateKeywords()\n {\n String[] enteredKeywords = getKeywordsFromBar();\n if(enteredKeywords == null)\n JOptionPane.showMessageDialog(null, \"Please enter some keywords to search for\");\n else\n spider.initKeywords(enteredKeywords);\n }",
"public String[][] findSuggestions(String w) {\n ArrayList<String> suggestions = new ArrayList<>();\n String word = w.toLowerCase();\n // parse through the word - changing one letter in the word\n for (int i = 0; i < word.length(); i++) {\n // go through each possible character difference\n for (int j = 0; j < Node.NUM_VALID_CHARS; j++) {\n // get the character that will change in the word\n Character c = (char) ((j < 26) ? j + 'a' : '\\'');\n \n // if the selected character is not the same as the character to change - avoids getting the same word as a suggestion\n if (c != word.charAt(i)) {\n // change the character in the word\n String check = word.substring(0, i) + c.toString() + ((i + 1 < word.length()) ? word.substring(i + 1, word.length()) : \"\");\n\n // if the chenged word is in the dictionary, add it to the list of suggestions\n if (this.checkDictionary(check)) {\n suggestions.add(check);\n }\n }\n }\n }\n \n // parse through the word - adding one letter to the word\n for (int i = 0; i < word.length(); i++) {\n // if the loop is not on the last charcater\n if (i < word.length() - 1) {\n // check words with one character added between current element and next element\n for (int j = 0; j < Node.NUM_VALID_CHARS; j++) {\n Character c = (char) ((j < 26) ? j + 'a' : '\\'');\n\n // add the character to the word\n String check = word.substring(0, i) + c.toString() + ((i < word.length()) ? word.substring(i, word.length()) : \"\");\n\n // if the new word is in the dictionary, add it to the list of suggestions\n if (this.checkDictionary(check)) {\n suggestions.add(check);\n }\n }\n }\n // if the loop is on the last character\n else {\n // check the words with one character added to the end of the word\n for (int j = 0; j < Node.NUM_VALID_CHARS; j++) {\n Character c = (char) ((j < 26) ? j + 'a' : '\\'');\n\n // add the character to the word\n String check = word + c;\n\n // if the new word is in the dictionary, add it to the list of suggestions\n if (this.checkDictionary(check)) {\n suggestions.add(check);\n }\n }\n }\n }\n \n // parse through the word - removing one letter from the word\n for (int i = 0; i < word.length(); i++) {\n // remove the chracter at the selected index from the word\n String check = word.substring(0, i) + ((i + 1 < word.length()) ? word.substring(i + 1, word.length()) : \"\");\n\n // if the chenged word is in the dictionary, add it to the list of suggestions\n if (this.checkDictionary(check)) {\n suggestions.add(check);\n }\n }\n \n String[][] rtn = new String[suggestions.size()][1];\n for (int i = 0, n = suggestions.size(); i < n; i++) {\n rtn[i][0] = suggestions.get(i);\n }\n \n return rtn;\n }",
"public void updateNewSuggestParamOracle() {\n\t\tif (searchSuggestDefineTextBox != null) {\n\t\t\tCQLSuggestOracle cqlSuggestOracle = new CQLSuggestOracle(parameterNameMap.values());\n\t\t}\n\t}",
"public void setSuggestion(String value) {\n setAttributeInternal(SUGGESTION, value);\n }",
"public static void autoComplete(final JTextField field, final String column) {\n\n field.addKeyListener(new KeyAdapter() {\n @Override\n public void keyReleased(KeyEvent e) {\n\n String low = field.getText().toLowerCase();\n if (low.length() == 0\n || e.isActionKey()\n || e.getKeyCode() == KeyEvent.VK_BACK_SPACE) {\n return;\n }\n\n ResultSet res = null;\n String sql = \"SELECT DISTINCT \" + column\n + \" FROM buch WHERE LOWER(\"\n + column + \") LIKE '\" + low + \"%' LIMIT 1\";\n try {\n res = BookDatabase.getInstance().query(sql);\n if (res.next()) {\n int pos = field.getCaretPosition();\n field.setText(res.getString(1));\n field.setSelectionStart(pos);\n field.setSelectionEnd(field.getText().length());\n }\n } catch (Exception ex) {\n // bewusst ignoriert\n } finally {\n try {\n if (res != null && res.getStatement() != null) {\n res.getStatement().close();\n }\n } catch (Exception ex2) {\n // bewusst ignoriert\n }\n }\n }\n });\n }",
"public SuggestedTerm(String term, int editDistance){\n this.term = term;\n this.editDistance = editDistance;\n }",
"@Override\n\tpublic void updateSuggestFuncOracle() {\n\t\tif (searchSuggestFuncTextBox != null) {\n\t\t\tMultiWordSuggestOracle multiWordSuggestOracle = (MultiWordSuggestOracle) searchSuggestFuncTextBox\n\t\t\t\t\t.getSuggestOracle();\n\t\t\tmultiWordSuggestOracle.clear();\n\t\t\tmultiWordSuggestOracle.addAll(funcNameMap.values());\n\t\t}\n\t}",
"private void refreshSuggestions() {\n \t\tString text = textBox.getText();\n \t\tif (text.equals(currentText)) {\n \t\t\treturn;\n \t\t} else {\n \t\t\tcurrentText = text;\n \t\t}\n \t\tfindSuggestions(text);\n \t}",
"private void searchSuggestionListMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_searchSuggestionListMouseClicked\n String selectedWord = this.getSearchSuggestionList().getSelectedValue();\n \n // find the definiiton of the word\n for(int i = 0 ; i < queryResult.size() ; i++)\n {\n if(queryResult.get(i).getWord().equals(selectedWord))\n {\n String definition = queryResult.get(i).getDefinition();\n definitionTextArea.setText(definition);\n i = queryResult.size();\n }\n }\n \n // select the same word in the all word list \n ListModel<String> modelList = getAllWordsList().getModel();\n \n for(int i = 0 ; i < modelList.getSize() ; i++)\n {\n if(modelList.getElementAt(i).equals(selectedWord))\n {\n getAllWordsList().setSelectedIndex(i);\n i = modelList.getSize();\n }\n }\n }",
"public void populateWord(String word) {\n\t\tthis.add(word);\n\t}",
"public void setWordSearched(String wordSearched){\r\n this.wordSearched = wordSearched;\r\n setWordSearchedLower(wordSearched);\r\n }",
"public void setHangmanWord()\n {\n if(word == null || word == \"\") return;\n\n String hangmanWord = \"\";\n for(int i=0; i<word.length(); i++)\n {\n if(showChar[i])\n hangmanWord += word.substring(i, i+1)+\" \";\n else\n hangmanWord += \"_ \";\n }\n\n wordTextField.setText(hangmanWord.substring(0, hangmanWord.length()-1));\n }",
"public FindCommand(String keyWord) {\n this.keyWord = keyWord;\n }",
"void setCompletionCase(String text, int cursorPos);",
"public void updateNewSuggestDefineOracle() {\n\t\tif (searchSuggestDefineTextBox != null) {\n\t\t\tCQLSuggestOracle cqlSuggestOracle = new CQLSuggestOracle(defineNameMap.values());\n\t\t}\n\t}",
"@FXML\r\n void searchButtonAction() {\r\n String definition=dictionary.Search(wordInput.getText());\r\n String translation=dictionary.Translate(wordInput.getText());\r\n area.setWrapText(true);\r\n area.setText(definition+\"\\n\\n\\n\\nTranslation: \"+ translation);\r\n\r\n String name = wordInput.getText().substring(0,1).toUpperCase() + wordInput.getText().substring(1).toLowerCase();\r\n wordName.setText(name);\r\n listView.getItems().addAll(wordInput.getText());\r\n }",
"public void complete() {\r\n\t\tcomplete(suggestBox.getText());\r\n\t}",
"@Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n\n List<String> suggest = new ArrayList<String>();\n //Loop in The Suggest List\n for (String search:suggestList)\n {\n if (search.toLowerCase().contains(materialSearchBar.getText().toLowerCase()))\n suggest.add(search);\n }\n materialSearchBar.setLastSuggestions(suggest);\n\n }",
"@Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n\n List<String> suggest = new ArrayList<String>();\n //Loop in The Suggest List\n for (String search:suggestList)\n {\n if (search.toLowerCase().contains(materialSearchBar.getText().toLowerCase()))\n suggest.add(search);\n }\n materialSearchBar.setLastSuggestions(suggest);\n\n }",
"@Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n List<String> suggest = new ArrayList<String>();\n for (String search : suggestionList) {\n if (search.toLowerCase().contains(product_list_search_bar.getText().toLowerCase().trim()))\n suggest.add(search);\n }\n product_list_search_bar.setLastSuggestions(suggest);\n\n }",
"@Override\r\n\t\t\t\t\t\tpublic void afterTextChanged(Editable arg0) {\n\t\t\t\t\t\t\tString keyWords = etDialogSearch.getText()\r\n\t\t\t\t\t\t\t\t\t.toString();\r\n\t\t\t\t\t\t\tif (!keyWords.equals(\"\")) {\r\n\t\t\t\t\t\t\t\tList<Note> notes = databaseHelper\r\n\t\t\t\t\t\t\t\t\t\t.searchNotes(keyWords);\r\n\t\t\t\t\t\t\t\tfor (int i = 0; i < notes.size(); i++) {\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(notes.get(i).toString());\r\n\t\t\t\t\t\t\t\t\tdialogAdapter = new NoteAdapter(\r\n\t\t\t\t\t\t\t\t\t\t\tNoteListActivity.this, notes, false);\r\n\t\t\t\t\t\t\t\t\tlvDialog.setAdapter(dialogAdapter);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t\t\t}",
"private void addCustomWords() {\r\n\r\n }",
"private void createSuggestionsList() {\r\n\t\tmListView = new LabeledListViewElement(this);\r\n\t\tmInputBar.addView(mListView);\r\n\r\n\t\tmListView.setOnItemClickListener(new OnItemClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> adapter, View view, int pos, long id) {\r\n\t\t\t\tString query = adapter.getItemAtPosition(pos).toString();\r\n\t\t\t\tif(query.contains(\" \"))\r\n\t\t\t\t\tsearch(query);\r\n\t\t\t\telse{\r\n\t\t\t\t\tmInputBar.setInputText(query + \" \");\r\n\t\t\t\t\tmInputBar.setCursorAtEnd();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t}",
"String getSelectedAutoCompleteString();",
"private void populateAdapter(String query) {\n // Create a matrixcursor, add suggtion strings into cursor\n final MatrixCursor c = new MatrixCursor(new String[]{ BaseColumns._ID, SearchManager.SUGGEST_COLUMN_TEXT_1 });\n List<String> suggestions = History.getSuggestion(query);\n String str = \"\";\n for (int i=0;i<suggestions.size();i++){\n c.addRow(new Object[] {i, suggestions.get(i)});\n str += suggestions.get(i);\n }\n Toast.makeText(context, str,Toast.LENGTH_SHORT).show();\n mAdapter.changeCursor(c);\n }",
"private void setNewSelection(SuggestFieldSuggestionImpl curSuggestion) {\n \t\tassert curSuggestion != null : \"suggestion cannot be null\";\n \t\ttextBox.setText(curSuggestion.getReplacementString());\n \t\thideSuggestions();\n \t\tsearchSuggestionTrigger.cancel();\n \t\tscheduledSearch = false;\t\t\n //\t\tsetValue(curSuggestion, true);\n \t\tfireSuggestionEvent(curSuggestion);\n //\t\tthis.currentSuggestion = curSuggestion;\n \n \t}",
"private void SetViewAndAutoCompleteText(int viewID)\n\t{\n\t\t// Auto complete words\n // !put, !get, !capture, !launch, !autotest are special commands\n\t\tfinal String [] COMMAND_LIST = new String [] { \n\t\t\t\t\"!put a.txt\", \"!get c:/test.txt\", \"!capture 1.jpg\", \"!launch\", \n\t\t\t\t\"dir\", \"cd \", \"cd ..\", \"c:\", \"tasklist\" };\n\t\tfinal String [] KEY_LIST = new String [] { \n\t\t\t\t\"!autotest\", \"!pintest\", \"!stoptest\", \"[KEY_\", \"[KEY_LGUI]\", \"[KEY_LGUI][KEY_R]\", \"[KEY_LGUI][KEY_L]\", \"[KEY_LALT]\", \"[KEY_LALT][KEY_F4]\", \"[KEY_LCONTROL]\", \"[KEY_LCONTROL][KEY_S]\", \"[KEY_UP]\",\n\t\t\t\t\"[KEY_LSHIFT]\",\t\"[KEY_ENTER]\", \"[KEY_BACKSPACE]\", \"cmd.exe\", \"d:/testagent\" };\n\t\t\n\t\t// Set view pointer\n\t\tView view;\n\t\tAutoCompleteTextView autoText;\n\t\tArrayAdapter<String> adapter;\n\t\t\n\t\t// Set view pointer\n\t\tif (viewID == VIEW_ID_COMMAND)\n\t\t{\n\t\t\tview = mTabHost.getTabContentView().findViewById(R.id.commandView);\n\t\t\tmCommandView = (TextView)view.findViewById(R.id.dataview);\n\t\t\tmCommandScrollView = (ScrollView)view.findViewById(R.id.scrollview);\n\t\t\tmCommandInputView = (AutoCompleteTextView) view.findViewById(R.id.commandInput);\n\t\t\tautoText = mCommandInputView;\n\t\t\tadapter = new ArrayAdapter(getApplicationContext(), \n\t\t\t\t\tandroid.R.layout.simple_dropdown_item_1line, COMMAND_LIST);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tview = mTabHost.getTabContentView().findViewById(R.id.keyView);\n\t\t\tmKeyView = (TextView)view.findViewById(R.id.dataview);\n\t\t\tmKeyScrollView = (ScrollView)view.findViewById(R.id.scrollview);\n\t\t\tmKeyInputView = (AutoCompleteTextView) view.findViewById(R.id.keyInput);\n\t\t\tautoText = mKeyInputView;\n\t\t\tadapter = new ArrayAdapter(getApplicationContext(), \n\t\t\t\t\tandroid.R.layout.simple_dropdown_item_1line, KEY_LIST);\t\t\t\n\t\t}\t\t\n\t\t\n\t\t// Set options for autocomplete\n\t\tautoText.setTag(viewID);\n\t\tautoText.setAdapter(adapter);\n\t\tautoText.setThreshold(1);\n\t\t\n\t\t// Process enter key\n\t\tautoText.setOnKeyListener(new OnKeyListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic boolean onKey(View arg0, int arg1, KeyEvent arg2) \n\t\t\t{\t\t\t\t\n\t\t\t\tif ((arg0 != null) && (arg2 != null) && \n\t\t\t\t\t(arg2.getAction() == KeyEvent.ACTION_DOWN) &&\n\t\t\t\t\t(arg2.getKeyCode() == KeyEvent.KEYCODE_ENTER))\n\t\t\t\t{\n\t\t\t\t\tAutoCompleteTextView view = (AutoCompleteTextView) arg0;\n\t\t\t\t\tString data;\n\t\t\t\t\tint viewID;\n\t\t\t\t\t\n\t\t\t\t\tdata = view.getText().toString();\n view.setText(\"\");\n viewID = (Integer) view.getTag();\n if (data.equals(\"\") == true)\n {\n if (viewID == VIEW_ID_KEY)\n {\n data = \"[KEY_ENTER]\";\n }\n else\n {\n return true;\n }\n }\n\n SendCommandOrKeys(viewID, data);\n\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t});\t\t\n\t}",
"public String getSearchHint();",
"public void setChosenWord(String word) {\n this.chosenWordDisplay.setText(word);\n }",
"public void setSuggestedValues (String suggestedValues) {\n this.suggestedValues = suggestedValues;\n }",
"private void challengeHandler() {\n String word = txtWord.getText().toString();\n String nextWord;\n if (word.length() >= 4 && dictionary.isWord(word)){\n endGame(true, word + \" is a valid word\");\n } else {\n nextWord = dictionary.getAnyWordStartingWith(word);\n if (nextWord != null){\n endGame(false, word + \" is a prefix of word \\\"\" + nextWord + \"\\\"\");\n } else {\n endGame(true, word + \" is not a prefix of any word\");\n }\n }\n }",
"public Suggestion (CCombo combo, String[] suggestions) {\n\t\tthis.combo = combo;\n\t\tthis.suggestions = suggestions;\n\t}",
"@Override\n protected FilterResults performFiltering(CharSequence arg0) {\n String[] tmp = API.it().getKeywords(arg0.toString());\n FilterResults results = new FilterResults();\n results.values = tmp;\n results.count = tmp.length;\n return results;\n }",
"void addWordToCandidatesSet(String word) {\n candidates.add(word);\n }",
"private void setSuggestedCategory() {\n if (selectedCategoryKey != null) {\n return;\n }\n if (suggestedCategories != null && suggestedCategories.length != 0) {\n selectedCategoryKey = suggestedCategories[0].getKey();\n selectCategory.setText(suggestedCategories[0].getName());\n }\n }",
"private void searchSong() {\n String keyword = keywordEdt.getText().toString().trim();\n if (TextUtils.isEmpty(keyword)) {\n } else {\n keyword = keyword.toLowerCase();\n\n }\n\n midiRecommendAdapter.notifyDataSetChanged();\n }",
"@Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n List<String> suggest = new ArrayList<>();\n for (String search : suggestList){\n //if thke text in the search bar is the same as in the suggestList, add it to suggest\n if (search.toLowerCase().contains(materialSearchBar.getText().toLowerCase())){\n suggest.add(search);\n\n materialSearchBar.setLastSuggestions(suggest);\n }\n }\n\n }",
"@Override\n public void afterTextChanged(Editable s) {\n List<String> mListSuggest = new ArrayList<>();\n for (String search : mSearchList){\n if (search.toLowerCase().contains(mSearchBar.getText().toLowerCase()))\n mListSuggest.add(search);\n }\n\n mSearchBar.setLastSuggestions(mListSuggest);\n }",
"@Override\n public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {\n\n List<String> suggest = new ArrayList<>();\n for (String search : suggestList) {\n if (search.toLowerCase().contains(materialSearchBar.getText().toLowerCase()))\n suggest.add(search);\n }\n materialSearchBar.setLastSuggestions(suggest);\n\n }",
"public List<String> getAutoComplete(String prefix) {\r\n List<String> words = dict.getAutoComplete(prefix); //get list of words from prefix\r\n System.out.println();\r\n System.out.println(\"Autocomplete words : \");\r\n for (String s : words) {\r\n System.out.println(s);\r\n }\r\n return words;\r\n }",
"public Suggestion (Text text, String[] suggestions) {\n\t\tthis.text = text;\n\t\tthis.suggestions = suggestions;\n\t}",
"@Override\n public void afterTextChanged(Editable s) {\n if (s.length() != 0) {\n search(searchIput.getText().toString()); // search user\n } // if input is not empty\n }",
"public abstract AutoCompleteDictionary getDictionary(SearchCategory categoryToSearch);",
"@Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n List<String> mListSuggest = new ArrayList<>();\n for (String search : mSearchList){\n if (search.toLowerCase().contains(mSearchBar.getText().toLowerCase()))\n mListSuggest.add(search);\n }\n\n mSearchBar.setLastSuggestions(mListSuggest);\n }",
"public boolean guessWord (String gword) {\n \tif (lose || victory) return false;\n \t\n \tif ( gword.toLowerCase().equals(_word.toLowerCase()) ) {\n \t\tthis.victory = true;\n \t\t\n \t\tfor (int i = 0; i < _word.length(); i++) {\n \t\t\thint.setCharAt(2*i, _word.charAt(i));\n \t\t}\n \t\t\n \t\treturn true;\n \t}\n \t\n \treturn false;\n }",
"private void autoCompleteField(int autoCompleteViewId, int editViewId, String dbField, String[] defaultValues) {\r\n\t\tmDbHelper.open();\r\n\t\tAutoCompleteTextView textView = (AutoCompleteTextView) findViewById(autoCompleteViewId);\r\n\t Cursor cursor = mDbHelper.fetch(dbField);\r\n\t if (cursor != null && cursor.getCount() > 0) {\r\n\t \tstartManagingCursor(cursor);\r\n\t\t\tint index = cursor.getColumnIndexOrThrow(dbField);\r\n\t \tList<String> field = new ArrayList<String>();\r\n\t \tif (defaultValues != null)\r\n\t \t\tfor (String value: defaultValues)\r\n\t \t\t\tfield.add(value);\r\n\t \tboolean last = false;\r\n\t \twhile (!last) {\r\n\t \t\tfield.add(cursor.getString(index));\r\n\t \t\tlast = cursor.isLast();\r\n\t \t\tcursor.moveToNext();\r\n\t \t}\r\n \t\tArrayAdapter<String> adapter = new ArrayAdapter<String>(this, editViewId, field);\r\n \t\ttextView.setAdapter(adapter);\r\n\t }\r\n\t mDbHelper.close();\r\n\t}",
"@Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n search(searchIput.getText().toString()); // search user\n }",
"private Suggestion buildSuggestion(String linearization,\n Interpretation interpretation,\n Map<String, WordType> originalWords, boolean matchAllWords) {\n String[] words = linearization.split(\"\\\\s+\");\n\n Map<String, Integer> namesMissing = new HashMap(\n interpretation.getNameTypeCounts().counts);\n\n int additionalNamesCount = 0;\n\n Set<String> wordsNotMatched = new HashSet<>(originalWords.keySet());\n for (Entry<String, WordType> entry : originalWords.entrySet()) {\n if (entry.getValue() == WordType.Name) {\n wordsNotMatched.remove(entry.getKey());\n }\n }\n int additionalGrammarWordsCount = 0;\n\n\n for (String word : words) {\n\n //name word\n if (defTempl.isVariable(word)) {\n String nameType = word.substring(2, word.length() - 2);\n if (namesMissing.containsKey(nameType)) {\n Integer missingCount = namesMissing.get(nameType);\n if (missingCount > 1) {\n namesMissing.put(nameType, missingCount - 1);\n }\n else {\n namesMissing.remove(nameType);\n }\n }\n else {\n additionalNamesCount++;\n }\n }\n //grammar word\n else {\n String lowerCaseWord = word.toLowerCase();\n\n if (wordsNotMatched.contains(lowerCaseWord)) {\n wordsNotMatched.remove(lowerCaseWord);\n }\n else {\n additionalGrammarWordsCount++;\n }\n }\n }\n\n //if removing words from query is not allowed\n if (matchAllWords && !wordsNotMatched.isEmpty()) {\n return null;\n }\n\n int grammarWordsAltered = wordsNotMatched.size();\n int grammarWordsAdded = additionalGrammarWordsCount - grammarWordsAltered;\n\n return new Suggestion(linearization, false,\n additionalNamesCount, grammarWordsAdded, grammarWordsAltered);\n }",
"void setWordGuessed( String word )\n\t{\n\t\tfor( int i = 0; i < entry.getLinkedWords().size(); i++ )\n\t\t\tif( entry.getLinkedWords().elementAt(i).equals(word) )\n\t\t\t{\n\t\t\t\twordGuessed[i] = true;\n\t\t\t\twPanel.showWord(i);\n\t\t\t}\n\t}",
"private void searchQuery() {\n edit_search.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n if (paletteComposition.getVisibility() == View.VISIBLE){\n paletteComposition.setVisibility(View.GONE);\n setComposer.setVisibility(View.VISIBLE);\n }\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n setContactThatNameContains(s.toString().trim());\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n\n }\n });\n }",
"public void setHint(String str) { this.editText.setHint(str); }",
"public interface ISimpleSuggestionPluginProvider extends ISuggestionPluginProvider {\n\n Collection<String> getSuggestions(String input, SuggestionRequestContext context);\n\n}",
"public static void addKeyWord(String word)\r\n\t{\r\n\t\tkeywords.add(word);\r\n\t}",
"private void setupSpellHereField(){\n\t\tinput_from_user = new JTextField();\n\t\tinput_from_user.setFont(new Font(\"Calibri Light\", Font.PLAIN, 45));\n\t\tinput_from_user.setEditable(true);\n\t\tinput_from_user.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t//only enable submitting if festival has finished to avoid delayed voice prompts\n\t\t\t\tif(parent_frame.getFestival().isLocked()){\n\t\t\t\t\tfeedback_display.append(\"\\tPlease submit after voice prompt has finished.\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tprocessAttempt(input_from_user.getText());\n\t\t\t\t\tinput_from_user.requestFocusInWindow(); //gets focus back on the field\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tadd(input_from_user);\n\t\tinput_from_user.setBounds(374, 484, 942, 74);\n\t}",
"public void addSuggestionSelection(String cardName) {\n SuspectCard suspect = findSuspectCard(cardName);\n RoomCard room = findRoomCard(currentPlayersTurn.getPiece().getLocation().getBelongsTo().getName());\n WeaponCard weapon = findWeaponCard(cardName);\n\n this.suggestionChoices.setRoom(room);\n if (findRoomCard(cardName) != null) {\n logMessage(\"The room for a suggestion can only be the room you are currently in.\");\n return;\n }\n if (suspect != null) {\n this.suggestionChoices.setSuspect(suspect);\n logMessage(currentPlayersTurn.getPiece().getName() + \" selected \"\n + cardName + \" as part of their suggestion.\");\n return;\n }\n if (weapon != null) {\n this.suggestionChoices.setWeapon(weapon);\n logMessage(currentPlayersTurn.getPiece().getName() + \" selected \"\n + cardName + \" as part of their suggestion.\");\n return;\n }\n }",
"private void populateDictionaryBySynonyms() {\n\n Enumeration e = dictionaryTerms.keys();\n while (e.hasMoreElements()) {\n String word = (String) e.nextElement();\n String tag = dictionaryTerms.get(word);\n\n ArrayList<String> synonyms = PyDictionary.findSynonyms(word);\n\n for (int i = 0; i < synonyms.size(); i++) {\n if (!dictionaryTerms.containsKey(synonyms.get(i))) {\n dictionaryTerms.put(synonyms.get(i), tag);\n }\n }\n }\n }",
"public String getSearchString() {\r\n return super.getSearchString();\r\n \r\n// String searchStr = \"\";\r\n// //put exact phrase at the very beginning\r\n// if(exactphrase != null && exactphrase.length() > 0)\r\n// {\r\n// searchStr += \"\\\"\" + exactphrase + \"\\\"\";\r\n// }\r\n//\r\n// String allwordsSearchStr = \"\";\r\n// if(allwords != null && allwords.length() > 0)\r\n// {\r\n// String [] words = allwords.split(\" \");\r\n// if(words.length > 0)\r\n// {\r\n// for(int i=0; i<words.length; i++)\r\n// {\r\n// allwordsSearchStr += \"+\" + words[i];\r\n// }\r\n// }\r\n// }\r\n//\r\n// String withoutwordsSearchStr = \"\";\r\n// if(withoutwords != null && withoutwords.length() > 0)\r\n// {\r\n// String [] words = withoutwords.split(\" \");\r\n// if(words.length > 0)\r\n// {\r\n// for(int i=0; i<words.length; i++)\r\n// {\r\n// withoutwordsSearchStr += \"+-\" + words[i];\r\n// }\r\n// }\r\n// }\r\n//\r\n// searchStr += allwordsSearchStr + withoutwordsSearchStr; //need to add other string\r\n// \r\n// String oneofwordsSearchStr = \"\";\r\n// if(oneofwords != null && oneofwords.length() > 0)\r\n// {\r\n// String [] words = oneofwords.split(\" \");\r\n// if(words.length > 0)\r\n// {\r\n// oneofwordsSearchStr = \"(\";\r\n// for(int i=0; i<words.length; i++)\r\n// {\r\n// oneofwordsSearchStr += words[i] + \" \";\r\n// }\r\n// oneofwordsSearchStr = oneofwordsSearchStr.trim();\r\n// oneofwordsSearchStr += \")\";\r\n// }\r\n// }\r\n// if(oneofwordsSearchStr.length() > 0)\r\n// {\r\n// searchStr += \"+\" + oneofwordsSearchStr;\r\n// }\r\n//\r\n// return searchStr;\r\n }",
"private static void addNewTermToMap(Scanner scanner) {\n System.out.println(\"Enter a term: \");\n String key = scanner.next().toLowerCase();\n System.out.println(\"Enter a definition: \");\n scanner.nextLine(); // consumes end of line input after term\n String value = key + \": \" + scanner.nextLine();\n termsData.put(key, value);\n System.out.println(\"term added to the dictionary\");\n System.out.println();\n }",
"private void configureSuggestion(final boolean requestedExplicitly) {\n myView.removeSuggestions();\n final RangeInfo rangeInfo = findNearestRangeInfo();\n final String text = getTextByRange(rangeInfo);\n\n final SuggestionInfo suggestionInfo = rangeInfo.getSuggestions();\n if (suggestionInfo == null || (!suggestionInfo.isShowSuggestionsAutomatically() && !requestedExplicitly)) {\n return;\n }\n final List<String> suggestions = new ArrayList<String>(suggestionInfo.getSuggestions());\n if (text != null && !requestedExplicitly) {\n filterLeaveOnlyMatching(suggestions, text);\n }\n // TODO: Place to add history\n if (!suggestions.isEmpty()) {\n // No need to display empty suggestions\n myView\n .displaySuggestions(new SuggestionsBuilder(suggestions), suggestionInfo.isShowAbsolute(), text);\n }\n }",
"public abstract String guessedWord();",
"public String getCorrectionWord(String misspell);",
"public void submitSearch(String word) {\n\n\t\tJSONArray definitions = this.controller.searchWord(word);\n\n\t\tif (definitions == null) {\n\t\t\tthis.result.setText(\"Error: Something went wrong (check the console).\");\n\t\t} else if (definitions.get(0).equals(\"NOT_FOUND\")) {\n\t\t\tthis.result.setText(\"Error: this word does not exist in the dictionary.\");\n\t\t} else {\n\t\t\tenterEditMode(word, definitions);\n\t\t}\n\n\t}",
"public void requestSuggestions(SuggestOracle.Request req, SuggestOracle.Callback callback) {\n fetchTags(req, callback);\n }",
"@Override\n public void onGetSuggestionResult(MKSuggestionResult mkSuggestionResult, int i) {\n if (getActivity() != null && mkSuggestionResult != null\n && mkSuggestionResult.getAllSuggestions() != null) {\n mSuggestAdapter.clear();\n List<MKSuggestionInfo> sugList = mkSuggestionResult.getAllSuggestions();\n for (MKSuggestionInfo info : sugList) {\n if (info.key != null) {\n mSuggestAdapter.add(info.key);\n }\n }\n mSuggestAdapter.notifyDataSetChanged();\n }\n }",
"void setVersesWithWord(Word word);",
"private void updateQuestion()//update the question each time\n\t{\n\t\tInteger num = random.nextInt(20);\n\t\tcurrentAminoAcid = FULL_NAMES[num];\n\t\tcurrentShortAA= SHORT_NAMES[num];\n\t\tquestionField.setText(\"What is the ONE letter name for:\");\n\t\taminoacid.setText(currentAminoAcid);\n\t\tanswerField.setText(\"\");\n\t\tvalidate();\n\t}",
"@Override\n public void onTextChanged(CharSequence userInput, int start, int before, int count) {\n System.out.println(\"User input: \" + userInput);\n\n MainActivity mainActivity = ((MainActivity) context);\n /*String query= \"\";\n if(who == 1)\n query = mainActivity.from;\n else if(who == 2)\n query = mainActivity.to;\n */\n ArrayList<String> ddlSuggestions = Map.getSimilarNamesFromName(userInput.toString());\n\n // update the adapater\n if(who == 1) {\n mainActivity.fromAdapter = new ArrayAdapter<String>(mainActivity, android.R.layout.simple_dropdown_item_1line, ddlSuggestions);\n mainActivity.fromAdapter.notifyDataSetChanged();\n mainActivity.fromAutoComplete.setAdapter(mainActivity.fromAdapter);\n System.out.println(\"Called1\");\n } else if(who == 2) {\n mainActivity.toAdapter = new ArrayAdapter<String>(mainActivity, android.R.layout.simple_dropdown_item_1line, ddlSuggestions);\n mainActivity.toAdapter.notifyDataSetChanged();\n mainActivity.toAutoComplete.setAdapter(mainActivity.toAdapter);\n System.out.println(\"Called2\");\n }\n }",
"private void setupAutoComplete() {\n // Map between AutoCompleteTextViews and their Adapters. Some text fields have a custom\n // adapter whose data is updated dynamically (rather than being statically set)\n Map<AutoCompleteTextView, ArrayAdapter<String>> map = new HashMap<>();\n map.put(mBind.layoutWidthEdit, new LayoutDimenAutoComplAdapter(this, LAYOUT_DROPDOWN_ITEM));\n map.put(mBind.layoutHeightEdit, new LayoutDimenAutoComplAdapter(this, LAYOUT_DROPDOWN_ITEM));\n map.put(mBind.backgroundEdit, new ArrayAdapter<>(this, LAYOUT_DROPDOWN_ITEM, Data.getArrColors()));\n map.put(mBind.maxWidthEdit, new DimenAutoComplAdapter(this, LAYOUT_DROPDOWN_ITEM));\n map.put(mBind.maxHeightEdit, new DimenAutoComplAdapter(this, LAYOUT_DROPDOWN_ITEM));\n\n for (Map.Entry<AutoCompleteTextView, ArrayAdapter<String>> e : map.entrySet()) {\n e.getKey().setAdapter(e.getValue());\n // For the fields with custom adapters, set up listener, so that the data of the adapter\n // is updated on every keystroke (e.g. \"14\" -> {\"14dp\", \"14in\", \"14mm\", \"14px\", \"14sp\"})\n if (e.getValue() instanceof AutoComplAdapter) {\n e.getKey().addTextChangedListener(new MyTextWatcher() {\n @Override\n public void afterTextChanged(Editable s) {\n // Trigger filtering process on 's', which updates the data of this adapter\n e.getValue().getFilter().filter(s);\n }\n });\n }\n }\n }",
"public void updateNewSuggestFuncOracle() {\n\t\tif (searchSuggestFuncTextBox != null) {\n\t\t\tCQLSuggestOracle cqlSuggestOracle = new CQLSuggestOracle(funcNameMap.values());\n\t\t}\n\t}",
"public abstract WordEntry autoTranslate(String text, String to);",
"public void setWordSearchedLower(String wordSearched){\r\n wordSearched = wordSearched.toLowerCase();\r\n this.wordSearched = wordSearched;\r\n }",
"protected abstract void fillPromptText();",
"@Override\n public void doComplete(CompletionInfo completions, String partial, int flags) {\n if (caseInsensitive) {\n partial = partial.toLowerCase();\n }\n for (String str : valueMap.keySet()) {\n if (str.startsWith(partial)) {\n completions.addCompletion(str);\n }\n }\n }",
"protected void constructNewQuestion(){\n arabicWordScoreItem = wordScoreTable.whatWordToLearn();\n arabicWord = arabicWordScoreItem.word;\n correctAnswer = dictionary.get(arabicWord);\n\n for (int i=0;i<wrongAnswers.length;i++){\n int wrongAnswerId;\n String randomArabicWord;\n String wrongAnswer;\n do {\n wrongAnswerId = constructQuestionRandom.nextInt(next_word_index);\n randomArabicWord = dictionary_key_list.get(wrongAnswerId);\n wrongAnswer = dictionary.get(randomArabicWord);\n } while (wrongAnswer.equals(correctAnswer));\n wrongAnswers[i] = wrongAnswer;\n }\n }",
"void findSuggestions(String query) {\n \t\tif (suggestionsLoaderClient != null) {\n \t\t\tif (query.length() == 0) {\n \t\t\t\tsuggestionsLoaderClient.doLoadSuggestions(\"default-query\",\n \t\t\t\t\t\tlimit);\n \t\t\t} else {\n \t\t\t\tsuggestionsLoaderClient.doLoadSuggestions(query, limit);\n \t\t\t}\n \t\t}\n \t}",
"@Override\n\tpublic void apply(IUserSupport us, Predicate hyp, String[] inputs,\n\t\t\tIProgressMonitor monitor) throws RodinDBException {\n\t\tfinal String input = RodinKeyboardUIPlugin.getDefault().translate(\n\t\t\t\tinputs[0]);\n\t\tfinal String searched = input.replaceAll(\"\\r\", \"\").replaceAll(\"\\n\", \"\");\n\t\tus.searchHyps(searched);\n\t\t// Trying to show the Search View\n\t\tfinal IViewPart view = UIUtils.showView(SearchHypothesis.VIEW_ID);\n\t\tif (view instanceof SearchHypothesis){\n\t\t\t((SearchHypothesis) view).setSearchedHyp(searched);\n\t\t}\n\t}",
"@Override\n\t\t\tpublic void insertUpdate(DocumentEvent e) {if(!updateFromSelectedValue) updateAutocomplete(e);}",
"@Override\n public Set<String> makeGuess(char guess) throws GuessAlreadyMadeException {\n\n for(String word : myDictionary) {\n ArrayList<Integer> indices = new ArrayList<>();\n for (int i = 0; i < word.length(); i++) {\n if(word.charAt(i) == guess) {\n indices.add(i);\n }\n }\n boolean matchFound = false;\n for (Map.Entry<Pattern, Set<String>> entry : myMap.entrySet()) {\n Pattern myPattern = entry.getKey();\n Set<String> myStrings = entry.getValue();\n if(indices.equals(myPattern.ReturnIndices())) {\n myStrings.add(word);\n //myNewDictionary.add(word);\n matchFound = true;\n }\n\n }\n if(matchFound == false) {\n Pattern myNewPattern = new Pattern(word.length(), word, indices);\n Set<String> myNewString = new HashSet<>();\n myNewString.add(word);\n //myNewDictionary.add(word);\n myMap.put(myNewPattern, myNewString);\n }\n\n }\n this.myDictionary = RunEvilAlgorithm();\n this.myMap = new HashMap<>();\n //make a function to run evil algorithm\n return myDictionary;\n }",
"@GET(\"w/api.php?action=opensearch&format=json&suggest&redirects=resolve\")\n Call<JsonElement> getSuggestionsFromSearch(@Query(\"search\") String search);",
"private void updateGuessedWord(String guessedLetter) {\n\t\tint guessIndex = 0;\n\t\tint indexOffset = 0;\n\t\t//we loop here because there can potentially be multiple instances of guessedLetter in actualWord\n\t\twhile (indexOffset < actualWord.length()) { //could be while true, but this protects against double letters at end of word\n\t\t\tguessIndex = actualWord.indexOf(guessedLetter, indexOffset);\n\t\t\tif (guessIndex < 0) return; //exits loop if no further instances of guessed letter are in actual word\n\t\t\telse {\n\t\t\t\tguessedWord = guessedWord.substring(0, guessIndex) + guessedLetter + guessedWord.substring(guessIndex + 1);\n\t\t\t\tindexOffset = guessIndex + 1;\n\t\t\t}\n\t\t}\n\t}",
"@SuppressWarnings(\"rawtypes\")\r\n\tpublic void suggestword(String pattern) throws Exception\r\n\t{\r\n\t\t\t// String to be scanned to find the pattern.\r\n\t\t\tString line = \" \";\r\n\t\t\tString reg = \"[\\\\w]+[@$%^&*()!?{}\\b\\n\\t]*\";\r\n\r\n\t\t\t// Create a Pattern object\r\n\t\t\tPattern p = Pattern.compile(reg);\r\n\t\t\t\r\n\t\t\t// Now create matcher object.\r\n\t\t\tMatcher m = p.matcher(line);\r\n\t\t\t\r\n\t\t\tint fileNum = 0;\r\n\t\t\t\r\n\t\t\t\tFile directory = new File(\"C:\\\\Users\\\\jayad\\\\eclipse-workspace\\\\Search Engine\\\\src\\\\Webpages\\\\Text\\\\\");\r\n\t\t\t\tFile[] fileArray = directory.listFiles();\r\n\t\t\t\tfor (int i = 0; i < fileArray.length; i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tfind(fileArray[i], fileNum, m, pattern); // Calls the function find()\r\n\t\t\t\t\tfileNum++;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t\r\n\t\t\t\t@SuppressWarnings({ \"unused\" })\r\n\t\t\t\tSet keys = new HashSet();\r\n\t\t\t\tInteger value1 = 1;\r\n\t\t\t\tInteger value2 = 0;\r\n\t\t\t\tint counter = 0;\r\n\r\n\t\t\t\tSystem.out.println(\"\\nDid you mean?:\");\r\n\t\t\t\tfor (Map.Entry entry : hashTable.entrySet())\r\n\t\t\t\t{\r\n\t\t\t\t\tif (value2 == entry.getValue())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tbreak;\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\tif (value1 == entry.getValue())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (counter == 0)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tSystem.out.print(entry.getKey());\r\n\t\t\t\t\t\t\t\tcounter++;\r\n\t\t\t\t\t\t\t}\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\tSystem.out.print(\" , \" + entry.getKey());\r\n\t\t\t\t\t\t\t\tcounter++;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t} // End of if\r\n\r\n\t\t\t\t\t} // End of else\r\n\t\t\t\t} // End of for loop\r\n\t}",
"void setWord(Word word);",
"public void requestSuggestions(SuggestOracle.Request req, SuggestOracle.Callback callback) {\n fetchPostalCodes(req, callback);\n }",
"public void setSuggestions(ArrayList<PersonDTO>persons){\n personsMap=new HashMap<>();\n for(PersonDTO person:persons){\n personsMap.put(person.getName()+\" \"+person.getSurname(),person);\n }\n }",
"public void replaceThesarusWordwithGoogleWord ( ) {\r\n\t \t\t \t\r\n\t \tfor (Map.Entry<String, List<String>> entry : GoogleToThesarus.entrySet()) {\r\n\t String key = entry.getKey();\r\n\t List<String> values = entry.getValue();\r\n\t //String wordIsReplaced=null;\r\n\t \r\n\t for (String temp: values) {\r\n\t \t//why is this null\r\n\t \t\r\n\t \tif (splitto.equals(temp)) {\r\n\t \t\tsplitto=key;\r\n\t \t\tif(!replacedWordList.contains(splitto))\r\n\t \t\t\treplacedWordList.add(splitto);\r\n \t\t\r\n\t \t \t\t \t\t}\r\n\t \telse {\r\n\t \t\t//wordIsReplaced=splitto;\r\n\t \t\t//System.out.println(\"failed\");\r\n\t \t}\r\n\t \t\t }\r\n\t \t}\r\n\t }",
"public void getSuggestedFriends(String un, UserFriends uf) {\n MongoCollection<Document> collRU = db.getCollection(\"registeredUser\");\n\n if (!uf.suggestion.isEmpty())\n uf.suggestion.clear();\n\n FindIterable<Document> allDocs = collRU.find(); // get all documents\n MongoCursor<Document> cursor = allDocs.iterator(); // set up cursor to iterate rows of documents\n try {\n while (cursor.hasNext()) {\n String nextUsername = cursor.next().getString(\"username\");\n if (!nextUsername.equals(un) && !uf.friendsList.contains(nextUsername)) {\n uf.suggestion.add(nextUsername);\n }\n }\n } finally {\n cursor.close();\n }\n }",
"@Override\n\t\t\tpublic void onGetSuggestionResult(MKSuggestionResult arg0, int arg1) {\n\t\t\t\t\n\t\t\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View rootView = inflater.inflate(R.layout.fragment_search, container, false);\n //keyword = rootView.findViewById(R.id.keyword);\n category = rootView.findViewById(R.id.category);\n distance = rootView.findViewById(R.id.distance);\n distanceUnit = rootView.findViewById(R.id.distanceUnit);\n radioGroup = rootView.findViewById(R.id.radio_locations);\n radioButtonHere= (RadioButton) rootView.findViewById(R.id.radio_here);\n radioButtonOther = (RadioButton) rootView.findViewById(R.id.radio_other);\n locationText = rootView.findViewById(R.id.locationText);\n search = (Button) rootView.findViewById(R.id.search);\n clear = rootView.findViewById(R.id.clear);\n locationText.setEnabled(false);\n keyword = rootView.findViewById(R.id.keyword);\n autoSuggestAdapter = new AutoCompleteAdapter(getContext(),\n android.R.layout.simple_dropdown_item_1line);\n keyword.setOnItemClickListener(\n new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n\n itemPositon = autoSuggestAdapter.getObject(position);\n }\n });\n keyword.setThreshold(2);\n keyword.setAdapter(autoSuggestAdapter);\n keyword.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int\n count, int after) {\n\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before,\n int count) {\n handler.removeMessages(TRIGGER_AUTO_COMPLETE);\n handler.sendEmptyMessageDelayed(TRIGGER_AUTO_COMPLETE,\n AUTO_COMPLETE_DELAY);\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n\n }\n });\n\n handler = new Handler(new Handler.Callback() {\n @Override\n public boolean handleMessage(Message msg) {\n if (msg.what == TRIGGER_AUTO_COMPLETE) {\n if (!TextUtils.isEmpty(keyword.getText())) {\n Log.d(\"From autocomplete call\",keyword.getText().toString());\n makeApiCall(keyword.getText().toString());\n }\n }\n return false;\n }\n });\n\n radioButtonHere.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n locationText.setText(\"\");\n locationText.setEnabled(false);\n }\n });\n\n radioButtonOther.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n locationText.setEnabled(true);\n\n }\n });\n\n //Does Validation and if validation passes, then send data to TM.\n search.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n // Code here executes on main thread after user presses button\n //Keyword field is empty\n if(keyword.getText().toString().trim().length() == 0){\n rootView.findViewById(R.id.errorKeyword).setVisibility(View.VISIBLE);\n Toast toast = Toast.makeText(getActivity().getApplicationContext(),\n \"Please fix all fields with errors\", Toast.LENGTH_SHORT);\n toast.show();\n keywordFlag = false;\n }\n else {\n rootView.findViewById((R.id.errorKeyword)).setVisibility(View.GONE);\n keywordFlag = true;\n }\n if(radioButtonHere.isChecked()){\n //Take current location\n rootView.findViewById(R.id.errorLocation).setVisibility(View.GONE);\n locationFlag = true;\n }\n if(radioButtonOther.isChecked()){\n if(locationText.getText().toString().trim().length()==0) {\n rootView.findViewById(R.id.errorLocation).setVisibility(View.VISIBLE);\n Toast toast = Toast.makeText(getActivity().getApplicationContext(),\n \"Please fix all fields with errors\", Toast.LENGTH_SHORT);\n toast.show();\n locationFlag = false;\n }\n else{\n rootView.findViewById(R.id.errorLocation).setVisibility(View.GONE);\n locationFlag = true;\n }\n }\n if(keywordFlag && locationFlag){\n //Valid data, make the URL for first TM Event search.\n //If User selects here\n if(radioButtonHere.isChecked()){\n //Use current lat and long values\n params = \"current_location?latitude=\"+latitude+\"&longitude=\"+longitude;\n String current_url = URL + params;\n Log.d(\"current_URL\",current_url);\n getCurrentResponse(current_url);\n }\n //If User has typed in custom location\n if(radioButtonOther.isChecked()) {\n params = \"geocoding?location=\" + Uri.encode(locationText.getText().toString()) + \"&api_key=\" + api_key;\n geocoding_url = URL + params;\n Log.d(\"Before Geocoding sent\", geocoding_url);\n getGeocodeResponse(geocoding_url);\n }\n }\n }\n });\n\n clear.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n keyword.setText(\"\");\n distance.setText(\"\");\n locationText.setText(\"\");\n radioButtonHere.setChecked(true);\n locationText.setEnabled(false);\n rootView.findViewById(R.id.errorKeyword).setVisibility(View.GONE);\n rootView.findViewById(R.id.errorLocation).setVisibility(View.GONE);\n }\n });\n return rootView;\n }",
"public interface DictionaryCorrectior {\n\n\t/**\n\t * get correction word that have the most possibility from the misspelled text\n\t * @author liyuan\n\t * \n\t */\n\tpublic String getCorrectionWord(String misspell);\n\t\n\t\n\t\n\t/**\n\t * get a list of correction words from the misspelled text\n\t * @author liyuan\n\t * \n\t */\n\tpublic String[] getCorrectionList(String misspell);\n}",
"private static void populateWordList(Scanner dictScan) {\n\t\tfor(int i=2; i<wordList.length; i++) {\n\t\t\tif(dictScan.hasNext()) {\n\t\t\t\twordList[i] = dictScan.nextLine();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\t\tpublic void onGetSuggestionResult(MKSuggestionResult arg0, int arg1) {\n\t\t\t\n\t\t}",
"public void GuessFullWordEvent() {\n\t\t\n\t\tString finalGuess = AnswerBox.getText();\n\t\tfinalGuess = finalGuess.toLowerCase(); // the answer is not case sensitive\n\n\t\t//if the final guess is the correct word or not\n\t\tif(finalGuess.equals(mysteryWord))\n\t\t\tGameWin();\n\t\telse\n\t\t\tGameOver();\n\t}",
"public void updateWordPoints() {\n for (String word: myList.keySet()) {\n int wordValue = 0;\n for (int i = 0; i < word.length(); i++) {\n // gets individual characters from word and\n // from that individual character get the value from scrabble list\n int charValue = scrabbleList.get(word.toUpperCase().charAt(i));\n // add character value gotten from character key from scrabble map to word value\n wordValue = wordValue + charValue;\n }\n\n // update the value of the word in myList map\n myList.put(word, wordValue);\n }\n }"
]
| [
"0.64450157",
"0.6345676",
"0.63301027",
"0.6280766",
"0.61847305",
"0.6154497",
"0.6015924",
"0.59775037",
"0.5922519",
"0.59143287",
"0.591167",
"0.5897375",
"0.58844906",
"0.58521885",
"0.57930183",
"0.5744052",
"0.5730508",
"0.56997836",
"0.5684675",
"0.5671603",
"0.5665858",
"0.56616676",
"0.5625577",
"0.56175524",
"0.56069124",
"0.55851454",
"0.5544713",
"0.55434257",
"0.55431324",
"0.5537894",
"0.5530612",
"0.5528726",
"0.5516348",
"0.55108494",
"0.550476",
"0.5492737",
"0.5473459",
"0.5472751",
"0.54722095",
"0.5461219",
"0.54563624",
"0.5452978",
"0.544707",
"0.5433215",
"0.54263055",
"0.54061216",
"0.53887486",
"0.5382764",
"0.53776425",
"0.53768486",
"0.5366841",
"0.5360095",
"0.5352004",
"0.5348629",
"0.5346973",
"0.53424764",
"0.53394204",
"0.53357726",
"0.5316309",
"0.53156537",
"0.53141415",
"0.53068656",
"0.52991605",
"0.52927214",
"0.5286805",
"0.5276895",
"0.5275754",
"0.5273796",
"0.5257445",
"0.525085",
"0.5247395",
"0.5245761",
"0.5245046",
"0.524302",
"0.5238479",
"0.52382606",
"0.5237697",
"0.52367175",
"0.52358824",
"0.5231606",
"0.5210808",
"0.52092046",
"0.52089876",
"0.52066624",
"0.52021426",
"0.51976347",
"0.5193072",
"0.518632",
"0.517884",
"0.51699275",
"0.51513726",
"0.5151092",
"0.5150328",
"0.5148721",
"0.5141978",
"0.51369417",
"0.5128207",
"0.5116991",
"0.5112783",
"0.51103246"
]
| 0.5909574 | 11 |
TODO Autogenerated method stub | @Override
public List<MsgVO> listSendMsg(String sendUser) {
return session.selectList(namespace + ".listAllSendMsg", sendUser);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public List<MsgVO> listReceiveMsg(String receiveUser) {
return session.selectList(namespace + ".listAllReceiveMsg", receiveUser);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public MsgVO detailMsg(int msgNo) {
return session.selectOne(namespace + ".detailMsg", msgNo);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void sendMsg(MsgVO mvo) {
session.insert(namespace + ".sendMsg", mvo);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void deleteMsg(int msgNo) {
session.delete(namespace + ".deleteMsg", msgNo);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void updateMsg(MsgVO mvo) {
session.update(namespace + ".readMsg", mvo);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public boolean findUser(String findId) {
if(session.selectOne(namespace + ".searchUser", findId) != null)
{
return true;
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void sendAskLvUp(MsgVO mvo) {
session.insert(namespace + ".sendLvUp", mvo);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public MsgVO selectUpMsg(String userId) {
return session.selectOne(namespace + ".selectUpMsg", userId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void completeMsg(int msgNo) {
session.update(namespace + ".completeUpMsg", msgNo);
} | {
"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 |
The natural order of these keys is primarily according to start positions. Field lineId is the secondary sort condition so that lines with identical start position aren't lost and are kept in original order. | public IndexKey(BpCoord start, long lineId) {
this.start = start;
this.lineId = lineId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public IndexKey(BpCoord start, long lineId, boolean isRowNumber) {\n\t\tthis(start, lineId);\n\t\tthis.isRowNumber = isRowNumber;\n\t}",
"abstract String getSortKey();",
"public void sort() // sort according to primary key defined in RecordTemplate\n\t{\n\t\trecordList.sort((Record r1, Record r2)->r1.getValue(PRIMARY_KEY_FIELD_INDEX).compareTo(r2.getValue(PRIMARY_KEY_FIELD_INDEX))); \n //recordList.forEach((r)->System.out.println(r)); \n\t}",
"@Override\n\tpublic int getOrderLineIndex(int parseInt) {\n\t\treturn 0;\n\t}",
"Map<String, org.springframework.batch.item.database.Order> genBatchOrderByFromSort(TableFields tableFields, Sort sort);",
"private Collection<IndexedDiskElementDescriptor> createPositionSortedDescriptorList()\r\n {\r\n final List<IndexedDiskElementDescriptor> defragList = new ArrayList<>(keyHash.values());\r\n defragList.sort(Comparator.comparing(ded1 -> ded1.pos));\r\n\r\n return defragList;\r\n }",
"public Integer getCellLineSortOrder()\n {\n return this.cellLineSortOrder;\n }",
"@Override\n public int hashCode()\n {\n return lineSegment.hashCode();\n }",
"SegmentIndexComparator(final PolyLine line)\n {\n this.lineSegments = line.segments();\n }",
"public void setLineId(String line_id)\r\n {\r\n this.line_id = line_id;\r\n }",
"@Override\n public boolean isFieldLine(int line) {\n return lineToField.containsKey(line);\n }",
"static Map<String, Integer> primaryKeyOrder(Session session, String keyspace, String table) {\n HashMap<String, Integer> returnValue = new HashMap<>();\n Statement select = primarykeyCQL(keyspace, table);\n ResultSet rs = session.execute(select.toString());\n\n TreeMap<String, String> sortedMap = new TreeMap<>();\n for (Row row : rs) {\n String columnName = row.get(COLUMN_NAME_COLUMN, String.class);\n String kind = row.get(KIND_COLUMN, String.class);\n String position = row.get(POSITION_COLUMN, Integer.class).toString();\n if (kind.equals(\"clustering\")) {\n sortedMap.put(\"clustering_\" + position, columnName);\n } else {\n sortedMap.put(position, columnName);\n }\n }\n\n List<String> sortedKeyset = new ArrayList<>(sortedMap.keySet());\n for (int i = 0; i < sortedKeyset.size(); i++) {\n returnValue.put(sortedMap.get(sortedKeyset.get(i)), i);\n }\n\n return returnValue;\n }",
"@Override\n protected List<String> getFieldOrder() {\n ArrayList<String> FieldOrder= new ArrayList<String>();\n FieldOrder.add(\"dsapiVersionNo\");\n FieldOrder.add(\"sessionId\");\n FieldOrder.add(\"valueMark\");\n FieldOrder.add(\"fieldMark\");\n return FieldOrder;\n }",
"public static final Comparator fieldOrder()\n {\n return new Comparator()\n {\n public int compare(Object o1, Object o2)\n {\n int v1 = ((ReportField) o1).getPk().intValue();\n int v2 = ((ReportField) o2).getPk().intValue();\n return v1 - v2;\n }\n };\n }",
"protected FieldList generateFieldsMap(String delimiter,List<String> lines) throws RemoteException {\n\n\t\tlogger.debug(\"generateFieldsMap --\");\n\t\t\n\t\tFieldList fl = new OrderedFieldList();\n\t\ttry {\n\t\t\t\n\t\t\tMap<String,Set<String>> valueMap = new LinkedHashMap<String,Set<String>>();\n\t\t\tMap<String,Integer> nbValueMap = new LinkedHashMap<String,Integer>();\n\t\t\t\n\t\t\tMap<String, FieldType> schemaTypeMap = new LinkedHashMap<String, FieldType>();\n\t\t\t\n\t\t\tif (lines != null) {\n\t\t\t\tlogger.trace(\"key_delimiter: \" + Pattern.quote(delimiter));\n\t\t\t\tfor (String line : lines) {\n\t\t\t\t\tboolean full = true;\n\t\t\t\t\tif (!line.trim().isEmpty()) {\n\t\t\t\t\t\tint cont = 0;\n\t\t\t\t\t\tfor (String s : line.split(Pattern\n\t\t\t\t\t\t\t\t.quote(delimiter))) {\n\n\t\t\t\t\t\t\tString nameColumn = generateColumnName(cont++);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(!valueMap.containsKey(nameColumn)){\n\t\t\t\t\t\t\t\tvalueMap.put(nameColumn, new LinkedHashSet<String>());\n\t\t\t\t\t\t\t\tnbValueMap.put(nameColumn, 0);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif(valueMap.get(nameColumn).size() < 101){\n\t\t\t\t\t\t\t\tfull = false;\n\t\t\t\t\t\t\t\tvalueMap.get(nameColumn).add(s.trim());\n\t\t\t\t\t\t\t\tnbValueMap.put(nameColumn,nbValueMap.get(nameColumn)+1);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(full){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tIterator<String> valueIt = valueMap.keySet().iterator();\n\t\t\t\twhile(valueIt.hasNext()){\n\t\t\t\t\tString cat = valueIt.next();\n\t\t\t\t\tfl.addField(cat,getType(valueMap.get(cat),nbValueMap.get(cat), schemaTypeMap.get(cat)));\n\t\t\t\t}\n\n\t\t\t}\n\t\t} catch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\treturn fl;\n\n\t}",
"@Override\npublic int compareTo(CompositeKey o) {\n\tif(o == null ||this.key1<o.getKey1()) return -1;\n if(this.key1>o.getKey1())return 1;\n\treturn 0;\n}",
"@Override\n\t\t\tpublic int compare(Entry<Long, String> e1, Entry<Long, String> e2) {\n\t\t\t\t\n\t\t\t\treturn (int) (e1.getKey()-e2.getKey());\n\t\t\t}",
"@Override\n \t\t\t\t\tpublic int compare(Entry<Fooable, Integer> o1,\n \t\t\t\t\t\t\tEntry<Fooable, Integer> o2) {\n \t\t\t\t\t\tif (o1.getValue() < o2.getValue())\n \t\t\t\t\t\t\treturn -1;\n \n \t\t\t\t\t\tif (o1.getValue() > o2.getValue())\n \t\t\t\t\t\t\treturn 1;\n \n \t\t\t\t\t\t// Fallback sorting on String comparison\n \t\t\t\t\t\treturn o1.getKey().getName()\n \t\t\t\t\t\t\t\t.compareToIgnoreCase(o2.getKey().getName());\n \t\t\t\t\t}",
"public List<Line> sortLines(List<Line> lineList) {\r\n\t\tCollections.sort(lineList,new Comparator<Line>() {\r\n\t\t\tpublic int compare(Line l1, Line l2) {\r\n\t\t\t\treturn l1.getLineScore().compareTo(l2.getLineScore());\r\n\t\t\t}\r\n\t\t});\r\n\t\treturn lineList;\r\n\t}",
"protected void setSortKey(Key key)\n\t{\n\t\tfor (int i = 0; i < _searchKeyList.size(); i++)\n\t\t{\n\t\t\tKey ky = (Key)_searchKeyList.get(i) ;\n\t\t\tif (ky.getTableColumn().equals(key.getTableColumn()))\n\t\t\t{\n\t\t\t\tky.setTableOrder(key.getTableOrder()) ;\n\t\t\t\tky.setTableDesc(key.getTableDesc()) ;\n\t\t\t\t_searchKeyList.set(i, ky) ;\n\t\t\t\tbreak ;\n\t\t\t}\n\t\t}\n\t}",
"private List<KeyFileEntry> convertLinesIntoInMemoryObjectList(List<String> lines) {\n List<KeyFileEntry> retList = new ArrayList<>(1250);\n\n int i = 0;\n\n // Ignore the header lines and information\n for (; i < lines.size(); i++) {\n String lineIgnore = lines.get(i);\n if (lineIgnore.startsWith(\"______\")) {\n break;\n }\n }\n\n // Ignore underscore ___ line\n i++;\n\n // reached entries lines\n KeyFileEntry entry = new KeyFileEntry();\n\n // create in memory list of objects\n while (i < lines.size()) {\n String line = lines.get(i);\n\n // For terminating line no need to complete loop\n if (line.equals(\"//\")) {\n retList.add(entry);\n entry = new KeyFileEntry();\n i++;\n continue;\n }\n\n String[] tokens = line.split(SPLIT_SPACES);\n switch (tokens[0]) {\n case \"ID\":\n entry.id = tokens[1];\n break;\n case \"IC\":\n entry.ic = tokens[1];\n break;\n case \"AC\":\n entry.ac = tokens[1];\n break;\n case \"DE\":\n entry.de.add(tokens[1]);\n break;\n case \"SY\":\n entry.sy.add(tokens[1]);\n break;\n case \"HI\":\n entry.hi.add(tokens[1]);\n break;\n case \"GO\":\n entry.go.add(tokens[1]);\n break;\n case \"CA\":\n entry.ca = tokens[1];\n break;\n case \"WW\":\n entry.ww.add(tokens[1]);\n break;\n default:\n LOG.info(\"Unhandle line found while parsing file: {}\", line);\n\n }\n\n // read and save next line\n i++;\n }\n return retList;\n }",
"io.dstore.values.IntegerValueOrBuilder getSortNoOrBuilder();",
"public String getLineId() {\n return lineId;\n }",
"Listof<K> sortedKeys();",
"@Override\n public String getKey(Tuple2<Point, Point> e) throws Exception {\n return e.f0.objID; // keyBy Trajectory ID\n }",
"@Override\n public String getKey(Tuple2<Point, Point> e) throws Exception {\n return e.f0.objID; // keyBy Trajectory ID\n }",
"@Override\n public String getKey(Tuple2<Point, Point> e) throws Exception {\n return e.f0.objID; // keyBy Trajectory ID\n }",
"public interface SortField {\n\n /**\n * The field path.\n */\n PropertyPath getPath();\n\n /**\n * Indicates if sorting is ascending or descending.\n */\n boolean isAscending();\n}",
"@Override\n\t\t\tpublic int compare(Sentence s1, Sentence s2) {\n\t\t\t\tif(s1.getId() < s2.getId()) return -1;\n\t\t\t\telse return 1;\n\t\t\t}",
"private void sortByKeys(LazyMap<ProcessorDistributionKey, Collection<Geometry>> keyToGeoms,\n Collection<? extends Geometry> sortGeoms, Collection<Geometry> unprocessed)\n {\n final ProcessorDistributionKey hull = new ProcessorDistributionKey();\n for (final Geometry geom : sortGeoms)\n {\n sortByKeys(keyToGeoms, geom, unprocessed, hull);\n }\n }",
"@JsonProperty(\"OrderLine\")\r\n\tpublic void setOrderLine(OrderLine orderLine) {\r\n\t\tthis.orderLine = orderLine;\r\n\t}",
"protected Convention.Key getBlankLinesBeforeKey()\n {\n return ConventionKeys.BLANK_LINES_BEFORE_HEADER;\n }",
"@Override\n\t\t\tpublic int compare(KeyValueData o1, KeyValueData o2) {\n\t\t\t\tif(o1.value < o2.value){\n\t\t\t\t\treturn -1;\n\t\t\t\t}else if(o1.value > o2.value){\n\t\t\t\t\treturn 1;\n\t\t\t\t}else{\n\t\t\t\t\tif(o1.key.compareTo(o2.key) < 0){\n\t\t\t\t\t\treturn -1;\n\t\t\t\t\t}else if(o1.key.compareTo(o2.key) > 0){\n\t\t\t\t\t\treturn 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn 0;\n\t\t\t}",
"void removeExternalOrderLine(int i);",
"public int getLineNumber(String key) {\n\t\t\treturn lineNumbers.get(key);\n\t\t}",
"@Override\r\n public int compare(Object o1, Object o2){\r\n return ((Record)o1).getField2().compareTo(((Record)o2).getField2());\r\n }",
"protected void parseHeader(String line){\n headerMap = new LinkedHashMap<>();\n String[] bits = line.split(delimiter);\n for (int i = 0; i < bits.length; i++){\n headerMap.put(bits[i], i);\n }\n }",
"public Comparable getRowKey(int row) { return this.underlying.getRowKey(row); }",
"@Override\n\tpublic FDCartLineI getOrderLineById(int parseInt) {\n\t\treturn null;\n\t}",
"@Override\r\n\t\t\tpublic int compare(Entry<Integer, LinkedList<Link>> o1, Entry<Integer, LinkedList<Link>> o2) {\n\t\t\t\treturn o1.getKey() - o2.getKey();\r\n\t\t\t}",
"io.dstore.values.IntegerValueOrBuilder getMoveSortNoOrBuilder();",
"public String getKey() {\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\tif (getLineNo() != null) {\r\n\t\t\tbuilder.append(getLineNo());\r\n\t\t} else if (this.getEntityId() != null) {\r\n\t\t\tbuilder.append(getEntityId());\r\n\t\t}\r\n\t\treturn builder.toString();\r\n\t}",
"public int compare(int rowId1, int rowId2) {\n assert _sortedRowIds != null;\n return _fileReader.compare(_sortedRowIds[rowId1], _sortedRowIds[rowId2]);\n }",
"public final static int primaryOrder(int ce)\n {\n return (ce & RuleBasedCollator.CE_PRIMARY_MASK_)\n >>> RuleBasedCollator.CE_PRIMARY_SHIFT_;\n }",
"@Override\n protected List<String> getFieldOrder() {\n ArrayList<String> FieldOrder= new ArrayList<String>();\n FieldOrder.add(\"hProject\");\n FieldOrder.add(\"serverJobHandle\");\n FieldOrder.add(\"logData\");\n FieldOrder.add(\"logDataLen\");\n FieldOrder.add(\"logDataPsn\");\n return FieldOrder;\n }",
"protected String getFieldOrderForReadList() {\n\t\treturn \"o.OwnerAccountId, o.ProjectCode ASC\";\n\t}",
"public int compare(Key<Double, Double> a, Key<Double, Double> b){\n\t\t\tif (a.getFirst() < b.getFirst()){\n\t\t\t\treturn -1;\n\t\t\t} else if (a.getFirst() == b.getFirst()){\n\t\t\t\treturn 0;\n\t\t\t} else {\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t}",
"private TreeMap<FlworKey, List<FlworTuple>> mapExpressionsToOrderedPairs() {\n // tree map keeps the natural item order deduced from an implementation of Comparator\n // OrderByClauseSortClosure implements a comparator and provides the exact desired behavior for local execution as well\n TreeMap<FlworKey, List<FlworTuple>> keyValuePairs = new TreeMap<>(new OrderByClauseSortClosure(_expressions, true));\n\n // assign current context as parent. re-use the same context object for efficiency\n DynamicContext tupleContext = new DynamicContext(_currentDynamicContext);\n while (_child.hasNext()) {\n FlworTuple inputTuple = _child.next();\n\n List<Item> results = new ArrayList<>(); // results from the expressions will become a key\n for (OrderByClauseSparkIteratorExpression orderByExpression : _expressions) {\n tupleContext.removeAllVariables(); // clear the previous variables\n tupleContext.setBindingsFromTuple(inputTuple); // assign new variables from new tuple\n\n boolean isFieldEmpty = true;\n RuntimeIterator expression = orderByExpression.getExpression();\n expression.open(tupleContext);\n while (expression.hasNext()) {\n Item resultItem = expression.next();\n if (resultItem != null && !resultItem.isAtomic())\n throw new NonAtomicKeyException(\"Order by keys must be atomics\",\n orderByExpression.getIteratorMetadata().getExpressionMetadata());\n isFieldEmpty = false;\n results.add(resultItem);\n }\n // if empty ordering field is found, add a Java null as placeholder\n if (isFieldEmpty) {\n results.add(null);\n }\n expression.close();\n }\n FlworKey key = new FlworKey(results);\n List<FlworTuple> values = keyValuePairs.get(key); // all values for a single matching key are held in a list\n if (values == null) {\n values = new ArrayList<>();\n keyValuePairs.put(key, values);\n }\n values.add(inputTuple);\n }\n return keyValuePairs;\n }",
"@Override\n public String getKeyFromTuple(ITuple tuple) {\n return tuple.getStringByField(\"top-N\");\n\t\t// End\n }",
"io.dstore.values.IntegerValue getSortNo();",
"@Override\n public int compare(Integer a, Integer b) {\n if (base.get(a) >= base.get(b)) {\n return 1;\n } else {\n return -1;\n } // returning 0 would merge keys\n }",
"@Override\r\n\tprotected List<String> getFieldOrder() {\r\n\t\treturn Arrays.asList(\"n\", \"nalloc\", \"refcount\", \"x\", \"y\");\r\n\t}",
"private String splitAndGetField(String line, String key) {\r\n\t\tString[] tmps = line.substring(line.indexOf(key) + key.length()).split(\r\n\t\t\t\t\" \");\r\n\t\treturn (tmps[0]);\r\n\t}",
"public Field[] getKeyFields();",
"public int getC_OrderLine_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_OrderLine_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}",
"private void sortByKeys(LazyMap<ProcessorDistributionKey, Collection<Geometry>> keyToGeoms, Geometry geom,\n Collection<Geometry> unprocessed, ProcessorDistributionKey hull)\n {\n boolean timeless;\n boolean foundKey;\n if (geom instanceof ConstrainableGeometry)\n {\n final Constraints constraints = ((ConstrainableGeometry)geom).getConstraints();\n\n if (constraints == null || constraints.getTimeConstraint() == null)\n {\n timeless = true;\n foundKey = false;\n }\n else\n {\n timeless = false;\n if (myTimeAgnostic)\n {\n addTimeListeners();\n updateTime();\n }\n foundKey = sortByKeys(myActiveTimeSpans, keyToGeoms, (ConstrainableGeometry)geom, hull);\n }\n }\n else\n {\n timeless = true;\n foundKey = false;\n }\n\n if (timeless)\n {\n foundKey = sortByKeys(keyToGeoms, geom, hull, null, TimeSpanList.TIMELESS);\n }\n if (!foundKey && unprocessed != null)\n {\n unprocessed.add(geom);\n }\n }",
"private static HashMap<String,Integer> sortByEditDistance(String keyword, PreSearch ps) {\r\n\t\tHashMap<String, Integer> indexDistance = new HashMap<String,Integer>();\r\n\t\tIterator<Entry<String,HashSet<Integer>>> iterator = ps.index.entrySet().iterator();\r\n\t\twhile(iterator.hasNext()) \r\n\t\t{ \t\t\t\r\n\t\t\tMap.Entry<String, HashSet<Integer>> me = (Map.Entry<String, HashSet<Integer>>)iterator.next();\r\n\t\t\tString word = me.getKey().toString();\t\t\t\r\n\t\t\tint distance = Sequences.editDistance(word, keyword);\r\n\t\t\tif(distance<3 && distance!=0) {\r\n\t\t\t\tindexDistance.put(word, distance);\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tHashMap<String,Integer> sortedDistance = SortResultsByRank.sortValues(indexDistance);\r\n\t\treturn sortedDistance;\r\n\t}",
"public static void setCSVorder(String firstLine) {\n\t\tString[] vars = firstLine.split(\",\");\n\t\tcsvOrder = new int[vars.length];\n\t\tcsvOrderDefault = false;\n\t\tfor(int i = 0; i < vars.length; i++) {\n\t\t\tvars[i] = vars[i].trim();\n\t\t\tswitch(vars[i]) {\n\t\t\tcase \"time\":csvOrder[i]=0; break;\n\t\t\tcase \"icao24\":csvOrder[i]=1; break;\n\t\t\tcase \"lat\":csvOrder[i]=2; break;\n\t\t\tcase \"lon\":csvOrder[i]=3; break;\n\t\t\tcase \"velocity\":csvOrder[i]=4; break;\n\t\t\tcase \"heading\":csvOrder[i]=5; break;\n\t\t\tcase \"vertrate\":csvOrder[i]=6; break;\n\t\t\tcase \"callsign\":csvOrder[i]=7; break;\n\t\t\tcase \"onground\":csvOrder[i]=8; break;\n\t\t\tcase \"alert\":csvOrder[i]=9; break;\n\t\t\tcase \"spi\":csvOrder[i]=10; break;\n\t\t\tcase \"squawk\":csvOrder[i]=11; break;\n\t\t\tcase \"baroaltitude\":csvOrder[i]=12; break;\n\t\t\tcase \"geoaltitude\":csvOrder[i]=13; break;\n\t\t\tcase \"lastposupdate\":csvOrder[i]=14; break;\n\t\t\tcase \"lastcontact\":csvOrder[i]=15; break;\n\t\t\tdefault: break; //Other variables are ignored\n\t\t\t}\n\t\t}\n\t\t//if order is 0,1,2,...,15; then use optimized settings\n\t\tif(vars.length == 16) {\n\t\t\tcsvOrderDefault = true;\n\t\t\tfor(int i = 0; i < 16; i++) {\n\t\t\t\tif(csvOrder[i] != i) {\n\t\t\t\t\tcsvOrderDefault = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"Listof<Pairof<K, V>> sortedKeyVals();",
"public int getLinePosition(int line) {\n\t\treturn linePositions.get(line);\n\t}",
"@Override\n //TODO lambda\n public int lastFieldLine() {\n int max = -1;\n for (int i : lineToField.keySet()) {\n if (i > max) {\n max = i;\n }\n }\n return max;\n }",
"public int[] inOrder(Integer currentLine){\r\n\t \t\t\r\n\t\t//Case for exit recursive function. CurrentLine is a leaf of the tree\r\n\t\tif (currentLine == -1){\r\n\t \t return orderedArray; \r\n\t }\r\n\t\t//Search left subtree\r\n\t\tinOrder(getLeft(currentLine));\r\n\t //Add to array the info of current Node\r\n\t orderedArray[oArrayAvail]=getKey(currentLine);\r\n\t oArrayAvail++;\r\n\t //Search right subtree\r\n\t inOrder(getRight(currentLine));\r\n\t return orderedArray;\r\n\t\t\r\n\t}",
"public int getLineDirection() {\r\n return LineDirection;\r\n }",
"void setNilExternalOrderLineArray(int i);",
"@Override\n\tpublic int compare(WritableComparable a, WritableComparable b) {\n\t\tIntPaire o1 = (IntPaire) a;\n\t\tIntPaire o2 = (IntPaire) b;\n\t\tif(!o1.getFirstKey().equals(o2.getFirstKey())){\n\t\t\treturn o1.getFirstKey().compareTo(o2.getFirstKey());\n\t\t}else{\n\t\t\treturn o1.getSecondKey() - o2.getSecondKey();\n\t\t}\n\t}",
"@Override\r\n \t\t\t\t\tpublic int compare(Token t1, Token t2) {\n \t\t\t\t\t\tif (t1.type == TokenType.SEG_END && t2.type == TokenType.TP) {\r\n \t\t\t\t\t\t\treturn -1;\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\t// If a text part (from trailing plain text) appears after seg start, move it backwards before seg start\r\n \t\t\t\t\t\telse if (t1.type == TokenType.SEG_START && t2.type == TokenType.TP) {\r\n \t\t\t\t\t\t\treturn 1;\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\t// Otherwise text parts and other type combinations are sorted by start position\r\n \t\t\t\t\t\telse {\r\n \t\t\t\t\t\t\tif (t1.textRange.start < t2.textRange.start) \r\n \t\t\t\t\t\t\t\treturn -1;\r\n \t\t\t\t\t\t\telse if (t1.textRange.start > t2.textRange.start) \r\n \t\t\t\t\t\t\t\treturn 1;\r\n \t\t\t\t\t\t\telse\r\n \t\t\t\t\t\t\t\treturn 0;\r\n \t\t\t\t\t\t}\t\t\t\t\r\n \t\t\t\t\t}",
"public void setC_OrderLine_ID (int C_OrderLine_ID)\n\t{\n\t\tif (C_OrderLine_ID < 1) \n\t\t\tset_Value (COLUMNNAME_C_OrderLine_ID, null);\n\t\telse \n\t\t\tset_Value (COLUMNNAME_C_OrderLine_ID, Integer.valueOf(C_OrderLine_ID));\n\t}",
"public void setLineId(String lineId) {\n this.lineId = lineId == null ? null : lineId.trim();\n }",
"public int getLinePosition() {\n return linePosition;\n }",
"public GeometryOrderKey getGeometryOrderKey()\n {\n return myGeometryOrderKey;\n }",
"public String getSortCondition()\n\t{\n\t\tKey[] karray = new Key[_searchKeyList.size()] ;\n\n\t\t_searchKeyList.copyInto(karray) ;\n\t\tfor (int i = 0; i < karray.length; i++)\n\t\t{\n\t\t\tfor (int j = i; j < karray.length; j++)\n\t\t\t{\n\t\t\t\tif (karray[i].getTableOrder() > karray[j].getTableOrder())\n\t\t\t\t{\n\t\t\t\t\tKey ktmp = karray[i] ;\n\t\t\t\t\tkarray[i] = karray[j] ;\n\t\t\t\t\tkarray[j] = ktmp ;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tStringBuffer stbf = new StringBuffer(256) ;\n\t\tboolean existFlg = false ;\n\n\t\tfor (int i = 0; i < karray.length; i++)\n\t\t{\n\t\t\tif (karray[i].getTableOrder() > 0)\n\t\t\t{\n\t\t\t\tstbf.append(karray[i].getTableColumn()) ;\n\t\t\t\t//#CM708958\n\t\t\t\t// The descending key word is set for the descending order. \n\t\t\t\tif (karray[i].getTableDesc() == false)\n\t\t\t\t{\n\t\t\t\t\tstbf.append(\" DESC\") ;\n\t\t\t\t}\n\t\t\t\tstbf.append(\", \") ;\n\t\t\t\tif (existFlg == false)\n\t\t\t\t\texistFlg = true ;\n\t\t\t}\n\t\t}\n\t\t//#CM708959\n\t\t// Return null when data is not set in the key value. \n\t\tif (existFlg == false)\n\t\t\treturn null ;\n\n\t\t//#CM708960\n\t\t// The last \"\"is removed because it is extra. \n\t\tint ep = stbf.toString().lastIndexOf(\",\") ;\n\t\treturn stbf.toString().substring(0, ep) ;\n\t}",
"public interface HPTKeyComparator<K> {\n\n boolean keysEqual(int queryKeyIndex, K queryKey, K treeKey);\n\n }",
"public static void readLines(String line, Map<String, List<String>> keyToLines,String dateString) {\n\t\t\n\t\tString tokens[] = line.split(\",\");\n\t\t\n\t\tdouble lat = Double.valueOf(tokens[0]);\n\t\tdouble lng = Double.valueOf(tokens[1]);\n\t\t\n\t\t\n\t\tString geohash = GeoHash.encode((float)lat, (float)lng, 2);\n\t\t//System.out.println(geohash);\n\t\t\n\t\tString key = dateString+\"-\"+geohash;\n\t\t\n\t\t\n\t\tList<String> recs = null;\n\t\tif(keyToLines.get(key) == null) {\n\t\t\trecs = new ArrayList<String>();\n\t\t\tkeyToLines.put(key, recs);\n\t\t} else {\n\t\t\trecs = keyToLines.get(key);\n\t\t}\n\t\trecs.add(line);\n\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t}",
"public static final Comparator entityOrder()\n {\n return CollectionUtil.orderAs(ENTITY_KEYS);\n }",
"io.dstore.values.IntegerValue getMoveSortNo();",
"@Override\n\tpublic int compareTo(Object o) {\n\t\tif(o instanceof Line){\n\t\t\treturn (int) (this.length()-((Line) o).length());\n\t\t}\n\t\telse \n\t\t\treturn 0;\n\t}",
"private String OutOfLineConstraint(SimpleNode treeRoot) {\n String statement = \"\";\n\n if (treeRoot.jjtGetChild(0).toString().equals(\"PrimaryKeyOutOfLineConstraint\")) {\n // primary key constraint - add columns in constraint to global keys array\n SimpleNode node = ((SimpleNode) treeRoot.jjtGetChild(0));\n\n for (int i = 0; i < node.jjtGetNumChildren(); i++) {\n _keys.add(((SimpleNode) node.jjtGetChild(i)).jjtGetFirstToken().image);\n }\n } else {\n // just copy constraint definition\n statement = SimpleNodeCompatibility.getSourceString(treeRoot);\n }\n\n return statement;\n }",
"public int getC_OrderLine_ID () \n\t{\n\t\tInteger ii = (Integer)get_Value(COLUMNNAME_C_OrderLine_ID);\n\t\tif (ii == null)\n\t\t\t return 0;\n\t\treturn ii.intValue();\n\t}",
"private com.hps.july.persistence.SuperRegionAccKey keyFromFields ( int f0 ) {\n com.hps.july.persistence.SuperRegionAccKey keyClass = new com.hps.july.persistence.SuperRegionAccKey();\n keyClass.accessid = f0;\n return keyClass;\n }",
"@Override\n\t\tpublic int compare(WritableComparable a, WritableComparable b) {\n\t\t\tSystem.out.println(\"comparision occur\");\n\t\t\tif (a instanceof IntPair && b instanceof IntPair) {\n\t\t\t\treturn ((IntPair) a).id.compareTo(((IntPair) b).id);\n\t\t\t}\n\t\t\treturn super.compare(a, b);\n\t\t}",
"@Override\n public int compare(Map<String, Object> o1, Map<String, Object> o2) {\n if(!descflag){\n return String.valueOf(o2.get(orderField)).compareTo(String.valueOf(o1.get(orderField)));\n }else {\n return String.valueOf(o1.get(orderField)).compareTo(String.valueOf(o2.get(orderField)));\n }\n // return 0;//加一个默认返回\n }",
"public int getLinePos() {\n return linePos;\n }",
"public void setRowKeyProperty(String rowKeyProperty)\n {\n _rowKeyProperty = rowKeyProperty;\n }",
"private com.hps.july.persistence.SuperRegionKey keyFromFields ( int f0 ) {\n com.hps.july.persistence.SuperRegionKey keyClass = new com.hps.july.persistence.SuperRegionKey();\n keyClass.supregid = f0;\n return keyClass;\n }",
"public int compareTo(KeyPoint other) {\n if (this.x == other.x) {\n int sign = (x - rec.r < 0) ? -1 : 1;\n int sign2 = (other.x - other.rec.r < 0) ? -1 : 1;\n return Integer.compare(this.rec.h * sign, other.rec.h * sign2);\n }\n return Integer.compare(this.x, other.x);\n }",
"@Override\n public int compareTo(LineItem other) {\n return (int)(other.getCost() - this.getCost()); // Decreasing order\n }",
"public int compareTo(Key o) {\n int i = f1.compareTo(o.f1);\n if (i != 0) return -i;\n i = f2.compareTo(o.f2);\n if (i != 0) return -i;\n i = f3.compareTo(o.f3);\n if (i != 0) return -i;\n return 0;\n }",
"@Override\n public int compare(Sentence s1, Sentence s2) {\n if (s1.getIndex() < s2.getIndex()) return -1;\n else if (s1.getIndex() > s2.getIndex()) return 1;\n return 0;\n }",
"public long getModelOutputChartOrderPK();",
"private Key createPagingKey(String nodeId, String descId) throws IncompletePathException {\n\n\t\tif (descId == null) {\n\t\t\treturn null; // Return a null key which fetches the first page\n\t\t}\n\n\t\tint distance = -1;\n\t\tList<NodeLineage> path = NodeTreeDaoUtils.getCompletePathFromRoot(descId, readMapper);\n\t\tfor (int i = 0; i < path.size(); i++) {\n\t\t\tNodeLineage lineage = path.get(i);\n\t\t\tString ancId = lineage.getAncestorOrDescendantId();\n\t\t\tif (nodeId.equals(ancId)) {\n\t\t\t\tdistance = path.size() - i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (distance < 0) {\n\t\t\tthrow new IncompletePathException(\"Node \" + nodeId + \" is not on the ancestor path of \" + descId);\n\t\t}\n\n\t\tString hashKey = DboNodeLineage.createHashKey(nodeId, LineageType.DESCENDANT);\n\t\tAttributeValue hashKeyValue = new AttributeValue().withS(hashKey);\n\t\tString rangeKey = DboNodeLineage.createRangeKey(distance, descId);\n\t\tAttributeValue rangeKeyValue = new AttributeValue().withS(rangeKey);\n\t\tKey lastKeyEvaluated = new Key().withHashKeyElement(hashKeyValue).withRangeKeyElement(rangeKeyValue);\n\t\treturn lastKeyEvaluated;\n\t}",
"public String getSortOrder();",
"private com.hps.july.persistence.CarKey keyFromFields ( int f0 ) {\n com.hps.july.persistence.CarKey keyClass = new com.hps.july.persistence.CarKey();\n keyClass.car = f0;\n return keyClass;\n }",
"@Override\n\tpublic int getLineType() {\n\t\treturn 0;\n\t}",
"private List<Integer> convertHeadersToReverseSortIndices(){\n\n List<Integer> headerIndices = new ArrayList<>();\n\n for(Object o : Arrays.asList(getRowData(0))){\n int result = skipHeaders.indexOf( o );\n if( result != -1)\n headerIndices.add( result );\n }\n Collections.reverse( headerIndices );\n return headerIndices;\n }",
"int getLineID(Vector<Integer> lineIDs,Vector<Integer> lineDepIDs, Vector<String> lineCodes, String cellValue, int depID);",
"R_order selectByPrimaryKey(Integer oId);",
"public int getRecordLineNumber();",
"public int getLineNr() {\n return this.lineNr;\n }",
"@SuppressWarnings({ \"rawtypes\"})\n\t\t@Override\n\t\tpublic int compare(WritableComparable a, WritableComparable b) {\n\t\t\tMyKey o1 = (MyKey)a;\n\t\t\tMyKey o2 = (MyKey)b;\n\t\t\treturn o1.getK().compareTo(o2.getK());\n\t\t}",
"@JsonProperty(\"OrderLine\")\r\n\tpublic OrderLine getOrderLine() {\r\n\t\treturn orderLine;\r\n\t}"
]
| [
"0.58036035",
"0.55803674",
"0.53991663",
"0.5375732",
"0.5316069",
"0.5290766",
"0.51989603",
"0.5136136",
"0.5132505",
"0.51253",
"0.5072173",
"0.5062979",
"0.5058252",
"0.50564384",
"0.49924684",
"0.49923894",
"0.49873936",
"0.49750227",
"0.49468613",
"0.49323836",
"0.49226624",
"0.4917416",
"0.48774764",
"0.48380175",
"0.48350745",
"0.48350745",
"0.48350745",
"0.48341262",
"0.4828093",
"0.48250845",
"0.4787497",
"0.47860506",
"0.4784056",
"0.4777637",
"0.4777229",
"0.47770864",
"0.47737274",
"0.4757682",
"0.47574115",
"0.4749276",
"0.47345445",
"0.4719423",
"0.47187397",
"0.4713318",
"0.47103944",
"0.47076073",
"0.4707037",
"0.47064444",
"0.47062632",
"0.47030473",
"0.4699979",
"0.46950597",
"0.46895558",
"0.46847615",
"0.46827745",
"0.46663955",
"0.4641903",
"0.46414092",
"0.46386054",
"0.46329436",
"0.46269724",
"0.46257812",
"0.46201098",
"0.46021512",
"0.46021274",
"0.45984948",
"0.4597425",
"0.4591276",
"0.45896277",
"0.4589595",
"0.45847",
"0.45837075",
"0.45731768",
"0.45711535",
"0.4569098",
"0.45606896",
"0.4555049",
"0.45525044",
"0.45513314",
"0.45411992",
"0.4538729",
"0.45355487",
"0.45347232",
"0.45305428",
"0.452582",
"0.45171854",
"0.4514913",
"0.45144",
"0.45091188",
"0.45078805",
"0.45067996",
"0.4506562",
"0.4505177",
"0.45030886",
"0.45026046",
"0.45012435",
"0.44977623",
"0.4492995",
"0.44900212",
"0.4488781"
]
| 0.6039727 | 0 |
Same as the contructor with two parameters, but sets the flag isRowNumber. When this flag is true, the lineId must be the line number of the line in file. In other words, lineId of the first line is 0, lineId of the second line is 1 and so on. | public IndexKey(BpCoord start, long lineId, boolean isRowNumber) {
this(start, lineId);
this.isRowNumber = isRowNumber;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRowNumber(int rowNumber) {\n this.rowNumber = rowNumber;\n }",
"public void setRowNumber(int number){\r\n\t\trowNumber = number;\r\n\t}",
"public void setRowNumber(int number){\r\n\t\trowNumber = number;\r\n\t}",
"public void setLineNumber(int lineNumber) {\n this.lineNumber = lineNumber;\n }",
"public void setLineNumber(Integer lineNumber) {\r\n this.lineNumber = lineNumber;\r\n }",
"public void setRowNumber(int rowNumber) {\n\t\tthis.rowNumber = rowNumber;\n\t}",
"public void setLineNumber(Integer lineNumber) {\n this.lineNumber = lineNumber;\n }",
"public void setLineNum(int nLineNum){\n\t\tlineNumber = nLineNum;\n\t}",
"public Integer getRowNumber() {\n\t\tif (isRowNumber) {\n\t\t\treturn (int) lineId;\n\t\t}\n\t\treturn null;\n\t}",
"public void setRowNo(Integer rowNo) {\n this.rowNo = rowNo;\n }",
"public Row setPosition(int rowNumber) {\n this.rowNumber = rowNumber;\n this.nextRowSet = false;\n return this;\n }",
"public static void setRowNumber(int pRowNumber) {\r\n\t\trowNumber = pRowNumber;\r\n\t}",
"void setLineNumber(int lineNumber) {}",
"public Line() {\n \n this.buffer = new ArrayList<ArrayList<Integer>>();\n this.buffer.add(new ArrayList<Integer>());\n this.lineT = 0;\n this.columnT = 0;\n this.inputMode = false;\n }",
"public int getLineNr() {\n return this.lineNr;\n }",
"public void setLineNo (int LineNo);",
"public int getLineNum() {\n\t\treturn lineNum;\n\t}",
"public int getRowNum(){ return this.rowNum; }",
"@Override\n public int rowNumber() throws IOException {\n return recordNumber;\n }",
"public int getRowNumber() {\n\t\treturn rowNumber;\n\t}",
"public void setLineNumbering(boolean lineNumbering) {\r\n this.lineNumbering = Boolean.valueOf(lineNumbering);\r\n }",
"public void setLineNumber(Number value) {\n setAttributeInternal(LINENUMBER, value);\n }",
"public void setPositionRow(int value){this.positionRow = value;}",
"public int getRowNumber()\r\n\t{\r\n\t\treturn this.rowNumber;\r\n\t}",
"public void setLineId(Number value) {\n setAttributeInternal(LINEID, value);\n }",
"public void setLineId(Number value) {\n setAttributeInternal(LINEID, value);\n }",
"public void setLineId(Number value) {\n setAttributeInternal(LINEID, value);\n }",
"public void setRow(int value) {\n this.row = value;\n }",
"public void setLine(int line);",
"public int getLineNumber(){\n\t\treturn lineNumber;\n\t}",
"public int lineNum() {\n return myId.lineNum();\n }",
"public int lineNum() {\n return myLineNum;\n }",
"public void setRowId(Integer rowId) {\n this.rowId = rowId;\n }",
"public void setLineId(String line_id)\r\n {\r\n this.line_id = line_id;\r\n }",
"public void initFromRows(SimpleIterator<String> lines) {\n this.reset();\n int rowId = 0;\n Optional<String> lineOpt;\n Int2ObjectMap<IntArrayList> colsMap = new Int2ObjectOpenHashMap<>();\n int maxColId = -1;\n while (true) {\n lineOpt = lines.next();\n if (!lineOpt.isPresent()) {\n break;\n } else {\n String line = lineOpt.get().trim();\n if (!line.isEmpty()) {\n String[] tokens = line.split(\"\\\\s+\");\n int[] row = new int[tokens.length];\n for (int i = 0; i < tokens.length; i++) {\n int colId = Integer.parseInt(tokens[i]) - 1; // convert to 0-based\n if (colId < 0) {\n throw new RuntimeException(\n String.format(\n \"Column %d smaller than 1, in line number %d, line:'%s'\",\n colId + 1, rowId + 1, line\n )\n );\n }\n row[i] = colId;\n if (!colsMap.containsKey(colId)) {\n colsMap.put(colId, new IntArrayList());\n }\n colsMap.get(colId).add(rowId);\n if (colId > maxColId) {\n maxColId = colId;\n }\n }\n Arrays.sort(row);\n this.rows[rowId] = row;\n }\n rowId++;\n if (rowId > this.numRows) {\n throw new RuntimeException(\n \"More rows in input rows file than the expected \" + this.numRows\n );\n }\n }\n }\n if (maxColId > this.numCols) {\n this.numCols = maxColId + 1;\n this.cols = new IntSet[this.numCols];\n }\n for (int colId = 0; colId < this.numCols; colId++) {\n if (colsMap.containsKey(colId) && !colsMap.get(colId).isEmpty()) {\n this.cols[colId] = new IntOpenHashSet(colsMap.get(colId));\n } else {\n this.cols[colId] = new IntOpenHashSet();\n }\n }\n }",
"public static Row createRow(String[] rowAsArray, int lineCount) {\n\n\t\t//Row is initialized to null so that we don't get an error if ININC is blank\n\t\t//Row object requires ININC number in constructor\n\t\tRow outputRow = new Row(lineCount);\n\n\t\t//First check if ININC column is empty for current row data\n\t\tif(rowAsArray[11].isEmpty()) {\n\t\t\tGUI.sendError(\"Error: ININC# does not exist for row \"+lineCount+\".\");\n\t\t}\n\t\telse {\n\t\t\t//If not, try to parse what is there\n\t\t\t//It should be a long integer\n\t\t\ttry {\n\t\t\t\toutputRow.setIninc(Long.parseLong(rowAsArray[11]));\n\t\t\t}\n\t\t\tcatch (NumberFormatException e) {\n\t\t\t\t//Otherwise we get an error and this row is set to invalid\n\t\t\t\t//A message is printed informing what the error is and the line in which the error occurred\n\t\t\t\tGUI.sendError(\"Error: ININC# is invalid (not a number) for row \"+lineCount+\".\");\n\t\t\t\toutputRow.setValid(false);\n\t\t\t}\n\t\t}\n\n\n\t\t//try/catch for INPRTY\n\t\t//Any numerical values have to be parsed, which allows for an exception if the String is not numerical\n\t\t//The try/catch statements handle the NumberFormatException that could potentially be thrown\n\t\ttry {\n\t\t\toutputRow.setPriority((int) Double.parseDouble(rowAsArray[0]));\n\t\t}\n\t\tcatch (NumberFormatException e) {\n\t\t\t//If there is not a valid number where there should be, print an error and set this row to invalid\n\t\t\t//Data in this row must be corrected in GUI to make it valid again\n\t\t\tGUI.sendError(\"Error: INPRTY is invalid (not a number) for row \"+lineCount+\".\");\n\t\t\toutputRow.setValid(false);\n\t\t}\n\n\n\t\t//address block\n\t\t//error handling tbd\n\t\toutputRow.setAddress(rowAsArray[1].trim());\n\n\t\tif(rowAsArray[2] != null) {\n\t\t\toutputRow.setCross(rowAsArray[2].trim());\n\t\t}\n\t\telse {\n\t\t\toutputRow.setCross(\"\");\n\t\t}\n\t\t//end address block\n\n\n\t\t//Date block\n\t\t//DateTimeFormatter is created to specify format that we expect the date/time to be in\n\t\t//This is consistent with what is usually found in the Excel/CSV\n\t\t//If the date/time read from CSV is not able to be read by this formatter, an error will be thrown\n\t\t//And this line of data will not be included\n\t\tDateTimeFormatter dateAndTimeFormatter = DateTimeFormatter.ofPattern(\"M/d/yyyy H:mm[:ss]\");\n\t\ttry {\n\t\t\toutputRow.setDispatch(LocalDateTime.parse(rowAsArray[3].trim(), dateAndTimeFormatter));\n\t\t\toutputRow.setArrive(LocalDateTime.parse(rowAsArray[4].trim(), dateAndTimeFormatter));\n\t\t}\n\t\tcatch (DateTimeParseException e) {\n\t\t\tGUI.sendError(\"Error: could not parse dispatch and/or arrive time for row \"+lineCount+\".\");\n\t\t\toutputRow.setValid(false);\n\t\t}\n\n\t\t//See above comments about parsing numbers\n\t\t//This block attempts to parse the RESPONSE variable as a double\n\t\ttry {\n\t\t\toutputRow.setResponseDouble(Double.parseDouble(rowAsArray[5]));\n\t\t}\n\t\tcatch (NumberFormatException e) {\n\t\t\tGUI.sendError(\"Error: RESPONSE is invalid (not a number) for row \"+lineCount+\".\");\n\t\t\toutputRow.setValid(false);\n\t\t}\n\t\t//If parsing was successful, we can also check that the number parsed is still valid\n\t\t//Response time logically must be at least zero, so any negative response time results in a warning\n\t\t//Warning (as opposed to error) means the row will still be valid, but there is possibly something wrong with the data\n\t\tif(outputRow.getResponseDouble() < 0) {\n\t\t\tGUI.sendInfo(\"Warning: RESPONSE is invalid (less than zero) for row \"+lineCount+\".\");\n\t\t\tGUI.sendInfo(\"This will be overwritten by a manually calculated response time, but still worth noting.\");\n\t\t}\n\n\n\t\toutputRow.setStaffing(rowAsArray[6].trim());\n\t\t//Quick validation check to ensure Staffing is either Volunteer or Career Staffing\n\t\tif(outputRow.getStaffing().toLowerCase().compareTo(\"volunteer\") != 0 && outputRow.getStaffing().toLowerCase().compareTo(\"career staff\") != 0) {\n\t\t\tGUI.sendError(\"Error: Staffing is unexpected value (neither Volunteer nor Career Staffing) for row \"+lineCount+\".\");\n\t\t\toutputRow.setValid(false);\n\t\t}\n\n\t\t//The following code ensures that the day of week is a valid day of week\n\t\t//Since is this isn't an entirely essential variable, a warning is thrown if day of week is invalid\n\t\t//Again, the data will still be included, but it does suggest there is an issue with it\n\t\toutputRow.setDay(rowAsArray[7].trim());\n\t\tswitch (outputRow.getDay().toLowerCase()) {\n\t\tcase \"monday\":\n\t\t\tbreak;\n\t\tcase \"tuesday\":\n\t\t\tbreak;\n\t\tcase \"wednesday\":\n\t\t\tbreak;\n\t\tcase \"thursday\":\n\t\t\tbreak;\n\t\tcase \"friday\":\n\t\t\tbreak;\n\t\tcase \"saturday\":\n\t\t\tbreak;\n\t\tcase \"sunday\":\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tGUI.sendError(\"Error: Day of Week is invalid for row \"+lineCount+\".\");\n\t\t\toutputRow.setValid(false);\n\t\t\tbreak;\n\t\t}\n\n\n\t\t//SSA validation moved to row class\n\t\toutputRow.setSsa(rowAsArray[8].trim());\n\n\t\t//Try/catch for district number to ensure data is numerical and avoid error causing crash\n\t\ttry {\n\t\t\toutputRow.setDistrict((int) Double.parseDouble(rowAsArray[9]));\n\t\t}\n\t\tcatch (NumberFormatException e) {\n\t\t\tGUI.sendError(\"Error: District number is invalid (not a number) for row \"+lineCount+\".\");\n\t\t\toutputRow.setValid(false);\n\t\t}\n\t\t//moved district number validation to row class\n\n\n\t\t//not sure about validation for these\n\t\toutputRow.setInori(rowAsArray[10].trim());\n\t\toutputRow.setInunit(rowAsArray[12].trim());\n\t\toutputRow.setInbdg(rowAsArray[13].trim());\n\t\toutputRow.setInitype(rowAsArray[14].trim());\n\n\n\t\t//INSECT variable is numerical so try/catch to avoid errors\n\t\ttry {\n\t\t\toutputRow.setInsect((int) Double.parseDouble(rowAsArray[15]));\n\t\t}\n\t\tcatch (NumberFormatException e) {\n\t\t\tGUI.sendError(\"Error: INSECT is invalid (not a number) for row \"+lineCount+\".\");\n\t\t\toutputRow.setValid(false);\n\t\t}\n\n\n\t\t//see above comments on numerical variables\n\t\ttry {\n\t\t\toutputRow.setCadinc(Long.parseLong(rowAsArray[16]));\n\t\t}\n\t\tcatch (NumberFormatException e) {\n\t\t\tGUI.sendError(\"Error: CAD_INC is invalid (not a number) for row \"+lineCount+\".\");\n\t\t\toutputRow.setValid(false);\n\t\t}\n\n\n\t\t//Service_type should be either FIRE or EMS\n\t\t//We can check this easily, if it is neither than throw an error and skip this row of data\n\t\t//Subject to change \n\t\tif(rowAsArray[17].compareTo(\"FIRE\") == 0) {\n\t\t\toutputRow.setServiceType(ServiceType.FIRE);\n\t\t}\n\t\telse if (rowAsArray[17].compareTo(\"EMS\") == 0) {\n\t\t\toutputRow.setServiceType(ServiceType.EMS);\n\t\t}\n\t\telse {\n\t\t\tGUI.sendError(\"Error: SERVICE_TYPE is invalid for row \"+lineCount+\".\");\n\t\t\toutputRow.setValid(false);\n\t\t}\n\n\t\toutputRow.setFua(rowAsArray[18].trim());\n\n\n\t\tif(outputRow.getDispatchTime() != null && outputRow.getArriveTime() != null) {\n\t\t\t//for calculating response time\n\t\t\t//first calculates total number of minutes between dispatch and arrive\n\t\t\tint responseTimeMinutesValue = (int) ChronoUnit.MINUTES.between(outputRow.getDispatchTime(), outputRow.getArriveTime());\n\t\t\tint responseTimeHoursValue = 0;\n\t\t\t//If minutes is 60 or greater, than response time is over an hour, so we have to account for that\n\t\t\twhile(responseTimeMinutesValue > 59) {\n\t\t\t\tresponseTimeMinutesValue -= 60;\n\t\t\t\tresponseTimeHoursValue++;\n\t\t\t}\n\t\t\t//Once hours and minutes are calculated, move on to seconds\n\t\t\tint responseTimeSecondsValue = (int) ChronoUnit.SECONDS.between(outputRow.getDispatchTime(), outputRow.getArriveTime());\n\t\t\t//Here we check to ensure that DISPATCH comes before ARRIVE, otherwise throw an error since we have a time traveler on our hands\n\t\t\tif(responseTimeSecondsValue < 0) {\n\t\t\t\tGUI.sendError(\"Error: Response time less than zero (calculated from Dispatch and Arrive) for row \"+lineCount+\".\");\t\n\t\t\t\toutputRow.setValid(false);\n\t\t\t}\n\t\t\t//Assuming that check passes, we can finalize the value of the seconds variable by calculating it modulo 60\n\t\t\tresponseTimeSecondsValue = responseTimeSecondsValue%60;\n\n\t\t\t//now make sure hours is 23 or less\n\t\t\tif(responseTimeHoursValue > 23) {\n\t\t\t\tresponseTimeHoursValue = 23;\n\t\t\t\tGUI.sendError(\"Error: Response time exceeds 1 day for row \"+lineCount+\". Response time value in table may not be accurate; check Dispatch and Arrival times.\");\n\t\t\t}\n\t\t\t//Then use the calculated variables for hours, minutes, and seconds to create the responseTime variable\n\t\t\tLocalTime responseTime = LocalTime.of(responseTimeHoursValue, responseTimeMinutesValue, responseTimeSecondsValue);\n\t\t\toutputRow.setResponseTime(responseTime);\n\t\t}\n\t\telse {\n\t\t\tGUI.sendError(\"Error: Dispatch and/or Response time are null for row \"+lineCount+\", so response time could not be calculated.\");\n\t\t\toutputRow.setValid(false);\n\t\t}\n\t\t//Now that all of the data has been imported into the Row object, return the Row object so it can be added to ArrayList\n\t\treturn outputRow;\n\t}",
"public void setLineNo(int lineNo)\n\t{\n\t\tsetIntColumn(lineNo, OFF_LINE_NO, LEN_LINE_NO);\n\t}",
"public void setLineNumberEnabled(boolean lineNumberEnabled) {\n\t\tTSEditorUtils.setLineNumberEnabled(m_editor, lineNumberEnabled);\n\t}",
"public void setLineNumbers(int ln[]) {\n lineNos = ln;\n }",
"public void setLine (int Line);",
"public Builder setStartLineNumber(int value) {\n bitField0_ |= 0x00000020;\n startLineNumber_ = value;\n onChanged();\n return this;\n }",
"public int getRecordLineNumber();",
"public int getLineNumber()\r\n {\r\n return lineNum;\r\n }",
"public int getLineNumber() {\n return lineNumber;\n }",
"public int getLineNumber() {\n return lineNumber; \n }",
"public int getLine() {\n return lineNum;\n }",
"public int getLineNumber() {\n return lineNumber;\n }",
"public void initFromRows(String filename) throws IOException {\n long numLines = Util.getNumLinesOfFile(filename);\n if (numLines != this.numRows) {\n throw new IllegalStateException(\n String.format(\"Rows file has %d lines, expecting %d\", numLines, this.numRows)\n );\n }\n\n // Read from file\n BufferedReader br = new BufferedReader(new FileReader(filename));\n initFromRows(new FileLineIterator(br));\n br.close();\n }",
"void setStepLineNumber(int number)\n\t{\n\t\tthis.stepLineNumber = number;\n\t}",
"void setStepLineNumber(int number)\n\t{\n\t\tthis.stepLineNumber = number;\n\t}",
"public Integer getLineNumber() {\r\n return this.lineNumber;\r\n }",
"public Integer getRowNo() {\n return rowNo;\n }",
"public Dargle setRowID( long nID )\n\t{ m_nRowID = nID ; return this ; }",
"public int getLineNumber() {\n\t\treturn lineNumber;\n\t}",
"public int getLineNumber() {\n\t\treturn lineNumber;\n\t}",
"public int getLineID()\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(LINEID$2, 0);\n if (target == null)\n {\n return 0;\n }\n return target.getIntValue();\n }\n }",
"public int getLineNumber() {\n return lineNumber;\n }",
"public String getLineId() {\n return lineId;\n }",
"public int getRowNo() {\n return rowIndex+1;\n }",
"public TextPos(int lineNumber, int linePos) {\n this.lineNumber = lineNumber;\n this.linePos = linePos;\n }",
"public int getLineNumber()\n {\n // LineNumberReader counts lines from 0. So add 1\n\n return lineNumberReader.getLineNumber() + 1;\n }",
"public Integer getLineNumber() {\n return lineNumber;\n }",
"public long getRowID()\n\t{ return m_nRowID ; }",
"public Number getLineId() {\n return (Number)getAttributeInternal(LINEID);\n }",
"public Number getLineId() {\n return (Number)getAttributeInternal(LINEID);\n }",
"public NoNum(String line) {\n this.line = line;\n }",
"public int getRow() {\n\t\t\treturn rowNumber;\n\t\t}",
"public int getLineNumber() {\n return line;\n }",
"public Number getLineNumber() {\n return (Number)getAttributeInternal(LINENUMBER);\n }",
"LineNumberTable(int name_index, int length, DataInputStream file, ConstantPool constant_pool) throws IOException {\n this(name_index, length, (LineNumber[]) null, constant_pool);\n data = new byte[length];\n int byteReads = file.read(data);\n isInPackedState = true;\n // assert(bytesRead==length)\n }",
"public Builder setRowId(int value) {\n \n rowId_ = value;\n onChanged();\n return this;\n }",
"public Builder setRowId(int value) {\n \n rowId_ = value;\n onChanged();\n return this;\n }",
"public Builder setRowId(int value) {\n \n rowId_ = value;\n onChanged();\n return this;\n }",
"public Builder setRowId(int value) {\n \n rowId_ = value;\n onChanged();\n return this;\n }",
"public Builder setRowId(int value) {\n \n rowId_ = value;\n onChanged();\n return this;\n }",
"public Number getLineId() {\n return (Number) getAttributeInternal(LINEID);\n }",
"public LinePosition(int lineNumber, int wordPosition) {\n this.wordPosition = wordPosition;\n this.lineNumber = lineNumber;\n }",
"public int getLineNumber();",
"public int getLineNum() {\n\t\treturn (parser == null) ? 0 : parser.getCurrentLocation().getLineNr();\n\t}",
"public void setLineNumber(Integer value){\n ((MvwDefinitionDMO) core).setLineNumber(value);\n }",
"public int getStartRow();",
"public void setRow(int row) {\n\t\tthis.row = row; \n\t}",
"public int getLineNumber() {\n return line;\n }",
"public void setRow(int i) {\n\t\tif (row != Integer.MIN_VALUE) explicitRow = true; \n\t\trow = i;\t\t\n\t}",
"public final int getLineNumber()\n {\n return _lineNumber + 1;\n }",
"public void setRow(int row)\n\t{\n\t\tthis.row = row;\n\t}",
"public void setRow(int row)\n\t{\n\t\tthis.row = row;\n\t}",
"public void setLineId(String lineId) {\n this.lineId = lineId == null ? null : lineId.trim();\n }",
"public void setStartLine(final int startLine) {\n this.startLine = startLine;\n }",
"public void setLineID(int lineID)\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(LINEID$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LINEID$2);\n }\n target.setIntValue(lineID);\n }\n }",
"public EPILine(int[][] pixels, int line, Position position)\r\n\t{\r\n\t\t_position=position;\r\n\t\t_line=line;\r\n\t\t_pixels=pixels;\r\n\t\t\r\n\t}",
"public void setRow(int row) {\n\t\tthis.row = row;\n\t}",
"public void setRow(int row) {\n\t\tthis.row = row;\n\t}",
"public ParseException(int lineNumber, int colNumber, String systemId) {\r\n super();\r\n this.lineNumber = lineNumber;\r\n this.colNumber = colNumber;\r\n this.systemId = systemId;\r\n }",
"public void updateLineNumber(int lineNumber) {\n\t\t// remember the old value\n\t\toldLineNumber = this.lineNumber;\n\t\tthis.lineNumber = lineNumber;\n\t}",
"public int getLineNo();",
"public AudioBreak(int nLineNumber){\n\t\tlineNumber = nLineNumber;\n\t\tkey = STARTKEY;\n\t}",
"public void setRow(int newRow) {\n this.row = newRow;\n }",
"public Row(int index) {\n this.index=index;\n row = new ArrayList<>(8);\n }",
"public void setLinePos(int linePos) {\n this.linePos = linePos;\n }"
]
| [
"0.68872786",
"0.6869398",
"0.6869398",
"0.65953845",
"0.65608203",
"0.656075",
"0.65265465",
"0.6498563",
"0.63968635",
"0.63572556",
"0.6335753",
"0.62973887",
"0.6287291",
"0.6237828",
"0.6199214",
"0.6089638",
"0.60807204",
"0.60511094",
"0.60466325",
"0.6033677",
"0.59900016",
"0.5984353",
"0.59710026",
"0.59612024",
"0.59256005",
"0.59256005",
"0.59256005",
"0.5917658",
"0.590708",
"0.59030646",
"0.58657163",
"0.5847149",
"0.5834795",
"0.58319694",
"0.58137107",
"0.58103883",
"0.580089",
"0.57837194",
"0.57711136",
"0.5764795",
"0.57196605",
"0.57111704",
"0.57033265",
"0.5697342",
"0.56839633",
"0.5678043",
"0.56739384",
"0.56533635",
"0.56304556",
"0.56304556",
"0.56283283",
"0.5626399",
"0.56168145",
"0.5615732",
"0.5615732",
"0.56141204",
"0.5598793",
"0.5597477",
"0.55859804",
"0.55844915",
"0.5582926",
"0.55767286",
"0.55630183",
"0.5555754",
"0.5555754",
"0.55254173",
"0.55232435",
"0.5520698",
"0.5513403",
"0.5502202",
"0.5489418",
"0.5489418",
"0.5489418",
"0.5489418",
"0.5489418",
"0.54836625",
"0.5470937",
"0.5464103",
"0.5459721",
"0.5445814",
"0.54381675",
"0.54362994",
"0.54169375",
"0.5416632",
"0.5405696",
"0.54021037",
"0.54021037",
"0.5401768",
"0.5401011",
"0.53936434",
"0.539028",
"0.53896075",
"0.53896075",
"0.5383158",
"0.5380601",
"0.5356043",
"0.53335273",
"0.5324166",
"0.5318107",
"0.5304823"
]
| 0.66153747 | 3 |
Get the row number of the line in the original data file, excluding all comment lines. The row nubmer of first content line is 0. | public Integer getRowNumber() {
if (isRowNumber) {
return (int) lineId;
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getLineNumber()\n {\n // LineNumberReader counts lines from 0. So add 1\n\n return lineNumberReader.getLineNumber() + 1;\n }",
"public final int getLineNumber()\n {\n return _lineNumber + 1;\n }",
"public int getRowNo() {\n return rowIndex+1;\n }",
"private int getLineNumber() {\n int line = 0;\n if (_locator != null)\n line = _locator.getLineNumber();\n return line;\n }",
"public int getLineNumber();",
"public int getLineNum() {\n\t\treturn (parser == null) ? 0 : parser.getCurrentLocation().getLineNr();\n\t}",
"public int lineNum() {\n return myId.lineNum();\n }",
"int getLineNumber();",
"public int getRowNumber()\r\n\t{\r\n\t\treturn this.rowNumber;\r\n\t}",
"public int getLineNo()\n\t{\n\t\treturn getIntColumn(OFF_LINE_NO, LEN_LINE_NO);\n\t}",
"public int getLineNum() {\n\t\treturn lineNum;\n\t}",
"public int getRowNumber() {\n\t\treturn rowNumber;\n\t}",
"public int getLineNumber()\r\n {\r\n return lineNum;\r\n }",
"private int getLineNumber(@NonNull String contents, int offset) {\n String preContents = contents.substring(0, offset);\n String remContents = preContents.replaceAll(\"\\n\", \"\");\n return preContents.length() - remContents.length();\n }",
"public int getLineNumber() {\n\t\treturn _parser.getLineNumber();\n\t}",
"public int lineNum() {\n return myLineNum;\n }",
"public int getLineNr() {\n return this.lineNr;\n }",
"@Override\n\tpublic long getLineCount() {\n\t\tif (lineCount == null || checksumChanged()) {\n\t\t\ttry (Stream<String> stream = Files.lines(getDataStore()\n\t\t\t\t\t.getDocument().toPath())) {\n\t\t\t\tlong count = stream.filter(line -> !line.isEmpty()).count();\n\t\t\t\tthis.lineCount = count;\n\t\t\t\treturn count;\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\treturn lineCount;\n\t\t}\n\t\tthrow new NullPointerException(\n\t\t\t\t\"Unexpected error. Could not get the line count.\");\n\t}",
"@Override\n public int rowNumber() throws IOException {\n return recordNumber;\n }",
"public String getLineNumber() \n\t{\n\t\treturn getNumber().substring(9,13);\n\t}",
"public int getLineNumber()\n {\n return parser.getLineNumber();\n }",
"public int getLineNumber() {\n return line;\n }",
"public int getLineNumber(){\n\t\treturn lineNumber;\n\t}",
"public int getLineNumber() {\n\t\treturn lineNumber;\n\t}",
"public int getLineNumber() {\n\t\treturn lineNumber;\n\t}",
"public int getLineNumber (\n Object annotation,\n Object timeStamp\n ) {\n if (annotation instanceof LineBreakpoint) {\n // A sort of hack to be able to retrieve the original line.\n LineBreakpoint lb = (LineBreakpoint) annotation;\n return LineTranslations.getTranslations().getOriginalLineNumber(lb, timeStamp);\n }\n /*if (annotation instanceof Object[]) {\n // A sort of hack to be able to retrieve the original line.\n Object[] urlLine = (Object[]) annotation;\n String url = (String) urlLine[0];\n int line = ((Integer) urlLine[1]).intValue();\n return LineTranslations.getTranslations().getOriginalLineNumber(url, line, timeStamp);\n }*/\n DebuggerAnnotation a = (DebuggerAnnotation) annotation;\n if (timeStamp == null) \n return a.getLine ().getLineNumber () + 1;\n String url = (String) annotationToURL.get (a);\n Line.Set lineSet = LineTranslations.getTranslations().getLineSet (url, timeStamp);\n return lineSet.getOriginalLineNumber (a.getLine ()) + 1;\n }",
"public Integer getRowNo() {\n return rowNo;\n }",
"public static int getLineNumber() {\n return Thread.currentThread().getStackTrace()[2].getLineNumber();\n }",
"int getStartLineNumber();",
"public int getRow() {\n\t\t\treturn rowNumber;\n\t\t}",
"private int lineNumber() throws IOException {\n int count = 0;\n File answers = new File(this.settings.getValue(\"botAnswerFile\"));\n try (RandomAccessFile raf = new RandomAccessFile(answers, \"r\")) {\n while (raf.getFilePointer() != raf.length()) {\n raf.readLine();\n count++;\n }\n }\n return count;\n }",
"public int getRecordLineNumber();",
"public Integer getLineNumber() {\r\n return this.lineNumber;\r\n }",
"public int getLineNumber() {\n return lineNumber;\n }",
"public Integer getLineNumber() {\n return lineNumber;\n }",
"public int getLineNumber() {\n return lineNumber;\n }",
"public int getLineNumber() {\n return line;\n }",
"public static int getLine() {\r\n\t\treturn rline;\r\n\t}",
"public Integer getLineNumberInSourceFile(Node componentNode) {\n if (componentNode instanceof XMLElement) {\n XMLElement xmlComponentNode = (XMLElement)componentNode;\n Integer lineNum = xmlComponentNode.getLineNumber();\n return lineNum;\n }\n\n return 0;\n }",
"public static void getnumberofrow() {\n\t\tString dataFilePath = \"Resources/[3DBroadCastSales]-Script_Result.xlsx\";\n\t\tFile datafile = new File(dataFilePath);\n\t\tString fullpath = datafile.getAbsolutePath();\n\t\tSheet firstSheet = null;\n\t\ttry {\n\t\t\tSystem.out.println(\"full path \" + datafile.getAbsolutePath() + \" con \" + datafile.getCanonicalPath());\n\t\t\tFileInputStream inputStream = new FileInputStream(new File(fullpath));\n\t\t\tWorkbook workbook = new XSSFWorkbook(inputStream);\n\t\t\tfirstSheet = workbook.getSheetAt(1);\n\t\t\tint noofrow = firstSheet.getLastRowNum();\n\t\t\tSystem.out.println(\"Number of rows :\" + noofrow);\n\t\t\tinputStream.close();\n\t\t\tfor (int i = 1; i < noofrow; i++) {\n\t\t\t\tSheetResultcellupdatetoskipped(i);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t}\n\n\t}",
"public int getLine() {\n return lineNum;\n }",
"public int getLineNumber() {\n\t\treturn _tokenizer.getLineNumber();\n\t}",
"public int getLineNumber() {\n return lineNumber; \n }",
"public int getRequiredRow() {\n\t\tint rowNumber = 0;\n\t\tfor(int i=0;i<=sheet.getLastRowNum();i++) {\n\t\t\t//System.out.println(testCaseName+sheet.getRow(i).getCell(0).toString());\n\t\t\tif(testCaseName.equals(sheet.getRow(i).getCell(0).toString())) {\n\t\t\t\trowNumber = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn rowNumber;\n\t}",
"public static int findLineNumber(AbstractInsnNode node) {\n AbstractInsnNode curr = node;\n\n // First search backwards\n while (curr != null) {\n if (curr.getType() == AbstractInsnNode.LINE) {\n return ((LineNumberNode) curr).line;\n }\n curr = curr.getPrevious();\n }\n\n // Then search forwards\n curr = node;\n while (curr != null) {\n if (curr.getType() == AbstractInsnNode.LINE) {\n return ((LineNumberNode) curr).line;\n }\n curr = curr.getNext();\n }\n\n return -1;\n }",
"public int getCurrentLine() {\n return buffer.lineNumber();\n }",
"public int getLineID()\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(LINEID$2, 0);\n if (target == null)\n {\n return 0;\n }\n return target.getIntValue();\n }\n }",
"public int getLineNumber() {\n return lineNumber;\n }",
"public int getLineNumber() {\n\t\t\treturn startLineNumber;\n\t\t}",
"public int getLine() { \n\t// * JFlex starts in zero\n\treturn yyline+1;\n}",
"public Number getLineNumber() {\n return (Number)getAttributeInternal(LINENUMBER);\n }",
"public int getOrigRow() {\n return origRow;\n }",
"private int getLastLine() {\n return lastSourcePosition.line;\n }",
"@Override\n public int getLine() {\n return mySourcePosition.getLineNumber() - 1;\n }",
"private int getNumberOfLines(String fileName) throws FileNotFoundException, IOException {\n\t\tLineNumberReader reader = null;\n\t\ttry {\n\t\t\treader = new LineNumberReader(new FileReader(fileName));\n\t\t\twhile (reader.readLine() != null)\n\t\t\t\t;\n\t\t\treturn reader.getLineNumber();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tthrow new FileNotFoundException(e.getMessage());\n\t\t} finally {\n\t\t\tif (reader != null) {\n\t\t\t\treader.close();\n\t\t\t}\n\t\t}\n\t}",
"public static int dataNum(File file) {\n int lineCount = 0; // Start line count at 0\n\n try { // Try catch\n Scanner scan = new Scanner(file); // Scans file that was specified\n while(scan.hasNextLine()) { // While loop runs until there are no more lines to read\n String line = scan.nextLine(); // Line read is stored as a string\n if (Character.isDigit(line.charAt(4))) { // Sees if the 4th character in the line is a integer\n lineCount++; // If it is an integer, it counts that line\n }\n }\n return lineCount; // Returns the line count\n } catch (FileNotFoundException e) { // If error occurs\n System.out.println(\"An error has occured\"); // Print that error has occured\n }\n return 0; // In case there is no lineCount return and to get rid of errors\n }",
"public int number_of_lines() {\r\n\t\treturn line_index.size() - 1;\r\n\t}",
"int getAfterLineNumber();",
"public int getLine() {\r\n\t\treturn line;\r\n\t}",
"public int getLine() {\n\t\treturn line;\n\t}",
"public int getRow()\n\t{\n\t\treturn row;\n\t}",
"public int getRow()\n\t{\n\t\treturn row;\n\t}",
"public int getRow()\n\t{\n\t\treturn row;\n\t}",
"public int getSourceLine(int pos) {\n unpack();\n int l = 0, r = line_number_table_length - 1;\n if (// array is empty\n r < 0)\n return -1;\n int min_index = -1, min = -1;\n /* Do a binary search since the array is ordered.\n */\n do {\n int i = (l + r) / 2;\n int j = line_number_table[i].getStartPC();\n if (j == pos)\n return line_number_table[i].getLineNumber();\n else if (// else constrain search area\n pos < j)\n r = i - 1;\n else\n // pos > j\n l = i + 1;\n /* If exact match can't be found (which is the most common case)\n * return the line number that corresponds to the greatest index less\n * than pos.\n */\n if (j < pos && j > min) {\n min = j;\n min_index = i;\n }\n } while (l <= r);\n /* It's possible that we did not find any valid entry for the bytecode\n * offset we were looking for.\n */\n if (min_index < 0)\n return -1;\n return line_number_table[min_index].getLineNumber();\n }",
"public int getRow() {\r\n\t\treturn row;\r\n\t}",
"public int getRow() {\r\n\t\treturn row;\r\n\t}",
"private int lineCount() throws IOException\n {\n //This integer will hold the amount of lines\n int lines = 0;\n\n //Create a temporary scanner to iterate through the map file\n Scanner lineCounter = new Scanner(new File(mapFile));\n\n //Iterate through the map file and increment the counter per each line\n while(lineCounter.hasNextLine())\n {\n lineCounter.nextLine();\n lines++;\n //System.out.println(\"I am at line\" + lines);\n }\n \n //Close lineCounter\n lineCounter.close();\n\n //Spit out the amount of lines\n return lines;\n }",
"public int getLineCount() {\n\t\treturn lineCount;\n\t}",
"public int idNum(String fullFilePath){\n\n int lines = 0;\n\n try {\n BufferedReader reader = new BufferedReader(new FileReader(fullFilePath));\n while (reader.readLine() != null) {\n lines++;\n }\n reader.close();\n }\n catch(IOException ioe) {\n ioe.printStackTrace();\n }\n return lines;\n }",
"public int getRow() {\n\t\treturn row;\n\t}",
"public int getRow() {\n\t\treturn row;\n\t}",
"public int getRow() {\n\t\treturn row; \n\t}",
"public int getRowNum(){ return this.rowNum; }",
"public int getRow()\r\n {\r\n return row;\r\n }",
"public int getRow() {\n\t\treturn i;\n\t}",
"public int getCurrentRowNumber() throws SQLException {\n/* 174 */ return this.currentPositionInEntireResult + 1;\n/* */ }",
"public int row() {\r\n\t\treturn row;\r\n\t}",
"private int getUnmatchedRow(){\n for (int i = 0; i < rows; i++)\n if(chosenInRow[i] < 0) return i;\n\n return -1;\n }",
"public int getRow()\r\n\t{\r\n\t\treturn this.row;\r\n\t}",
"private int getColumnNumber(@NonNull String contents, int offset) {\n String preContents = contents.substring(0, offset);\n String[] preLines = preContents.split(\"\\n\");\n int lastIndex = preLines.length -1;\n return preContents.endsWith(\"\\n\") ? 0 : preLines[lastIndex].length();\n }",
"public long getRowID()\n\t{ return m_nRowID ; }",
"int getRow();",
"public int getLineNo();",
"static int countLines(Path path) {\n try (LineNumberReader reader = new LineNumberReader(new FileReader(path.toFile()))) {\n while (reader.readLine() != null) { }\n return reader.getLineNumber();\n } catch (IOException ex) {\n throw new RuntimeException(ex);\n }\n }",
"public int getRow() {\n\t\t\treturn row;\n\t\t}",
"public int getRow() {\n\t\t\treturn row;\n\t\t}",
"public int getRowNumber() {\n return cols;\n }",
"public int getRow() { return _row; }",
"private int getRow() {\n return binaryPartition(row);\n }",
"public int getRow() {\r\n return row;\r\n }",
"protected int getRow() {\r\n\t\treturn this.row;\r\n\t}",
"public int getLineNumber(String key) {\n\t\t\treturn lineNumbers.get(key);\n\t\t}",
"public int getRow() {\r\n\t\treturn this.row;\r\n\t}",
"public int getStartLineNumber() {\n return startLineNumber_;\n }",
"private static int lines(String file) {\n\t\tint lineCount = 0;\ntry{\n \t\tFileReader fr = new FileReader(file);\n \t\t LineNumberReader lnr = new LineNumberReader(fr);\n \t\t while (lnr.readLine() != null){\n \t\t \tlineCount++;\n \t }\n \t lnr.close(); \n \t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\nreturn lineCount;\n\n\t\t\n\t}",
"public int getNumRow() {\n\t\tif (dc.size() <= 0)\n\t\t\treturn dc.size();\n\n\t\t// Pick the first entry and get its size\n\t\t// assumption: For DataTable, all columns should have the same size\n\t\tMap.Entry<String, DataColumn> entry = dc.entrySet().iterator().next();\n\t\treturn dc.get(entry.getKey()).getSize();\n\t}",
"protected final int getLineNumber(HttpServletRequest request) {\n int lineNumber = 0;\n String lineStr = request.getParameter(LINE_NUMBER);\n if (lineStr == null) {\n lineNumber = getSelectedLine(request);\n } else {\n try {\n lineNumber = Integer.parseInt(lineStr);\n } catch (Exception ex) {\n // do nothing; 0 will be returned\n }\n }\n return lineNumber;\n }",
"public int getRow() {\n return row;\n }",
"public int getRow() {\n return row;\n }",
"public int getRow() {\n return row;\n }"
]
| [
"0.7362136",
"0.7024464",
"0.6995112",
"0.68936205",
"0.6887708",
"0.6880937",
"0.6876031",
"0.686111",
"0.68356204",
"0.68173105",
"0.6811948",
"0.678419",
"0.6749734",
"0.67429525",
"0.6735402",
"0.6692985",
"0.6690664",
"0.6689367",
"0.6662944",
"0.6640367",
"0.6615009",
"0.65969884",
"0.65916294",
"0.65744734",
"0.65744734",
"0.6547323",
"0.654296",
"0.6536447",
"0.6531611",
"0.65315276",
"0.65229017",
"0.65114444",
"0.65037477",
"0.6492935",
"0.6483396",
"0.64751023",
"0.64709866",
"0.64646536",
"0.64639693",
"0.6463223",
"0.64626396",
"0.6459473",
"0.6449173",
"0.6420785",
"0.63963866",
"0.63926834",
"0.638258",
"0.63766646",
"0.6360453",
"0.63545376",
"0.63531226",
"0.63477445",
"0.6336728",
"0.63288087",
"0.6307957",
"0.6292623",
"0.6258504",
"0.62527037",
"0.62216616",
"0.62162745",
"0.621562",
"0.621562",
"0.621562",
"0.6212231",
"0.6199831",
"0.6199831",
"0.61931574",
"0.6190503",
"0.6188604",
"0.6184616",
"0.6184616",
"0.6175333",
"0.6175275",
"0.6173097",
"0.6159833",
"0.6152046",
"0.6151394",
"0.6146006",
"0.6140702",
"0.61297476",
"0.61266476",
"0.61259884",
"0.6112892",
"0.6109436",
"0.6106324",
"0.6106324",
"0.6098711",
"0.60984904",
"0.60864526",
"0.60813934",
"0.6067867",
"0.60654855",
"0.60620236",
"0.6055064",
"0.6049747",
"0.60494834",
"0.6048082",
"0.6045853",
"0.6045853",
"0.6045853"
]
| 0.7203934 | 1 |
This is the constructor, which calculates the whole magicsquare and saves it internaly in the array. | public MagicSquare(int n){
this.size = n;
if(n%2!=1) // we don't have an odd number
return;
this.numbers = new int[n][n];
int row = n-1;
int column = n/2;
int k = 0;
for(k=1; k<=n*n; k++){
this.numbers[row][column] = k;
if(this.numbers[(row+1)%n][(column+1)%n]!=0){
row --;
}else{
column = (column + 1) % n;
row = (row + 1) % n;
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double magnitudeSquared() {\n \n return _x * _x + _y * _y; \n \n }",
"public AdvancedMagicSquare(int n){//constructor\n\t\tm = new int[n * n];//array of length n*n\n\t\tthis.order = n;\n\t\tmaxNum = n * n;//calculate the the biggest number in the square\n\t\tMagic_Constant = n * (n * n + 1) / 2;//calculate the sum of each row, column and diagonal\n\t\tthis.count = 0;\n\t}",
"public List<MagicSquare> buildMagicSquares() {\n solutions = new ArrayList<>();\n sampler = new Sampler(Bound.getAllElements(1, totalNumbersCnt));\n\n for (int possibleNumber : sampler.getNumbers(new Bound(1, totalNumbersCnt))) {\n if (sampler.contains(possibleNumber)) {\n buildRow(sampler.getNumber(possibleNumber), 0, 0);\n }\n }\n\n return solutions;\n }",
"public Square () {\r\n super();\r\n \r\n }",
"public Square() {\r\n\r\n }",
"public Square()\r\n {\r\n super();\r\n }",
"public double magnitudeSquared(){\n\t\treturn x*x + y*y + z*z;\n\t}",
"public double squareMagnitude() {\n\t\treturn x*x + y*y + z*z;\n\t}",
"public ArrayList<Square> getSquares(){\n return bSquares;\n }",
"public SpecimenArray()\r\n\t{\r\n\t\tsuper();\r\n\t}",
"public double magnitudeSquared() {\n return x * x + y * y + z * z;\n }",
"public Map(){\r\n map = new Square[0][0];\r\n }",
"constructalgo(ArrayList<String> m,ArrayList<String> w,String mpref[][],String wpref[][]) throws IOException\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tmen = m;\r\n\t\t\t\twomen = w;\r\n\t\t\t\t\r\n\t\t\t\tmenpreflist = mpref;\r\n\t\t\t\t\r\n\t\t\t\twomenpreflist = wpref;\r\n\t\t\t\t\r\n\t\t\t\t// calculate a size of men Array List\r\n\t\t\t\tnumberofmen = men.size();\r\n\t\t\t\t\r\n\t\t\t\t// calculate a size of women Array List\r\n\t\t\t\tnumberofwomen = women.size();\r\n\t\t\t\t\r\n\t\t\t\t// Initially all the men are free so add them into freeman array list\r\n\t\t\t\tfreeman.addAll(men);\r\n\t\t\t\t\r\n\t\t\t//\tSystem.out.println(freeman);\r\n\t\t\t\t\r\n\t\t\t//\tSystem.out.println(\"Inside Constructor\");\r\n\t\t\t\t\r\n\t\t\t\t// Call calculatematches for follow Gale shapley Algorithm\r\n\t\t\t\tcalculatematches();\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t}",
"public T magnitudeSquared();",
"@Override\n public void setup() {\n this.savePath(\".\");\n Minim minim = new Minim(this);\n\n //Charger la chanson\n song = minim.loadFile(\"song.mp3\");\n //Créer l'objet FFT pour analyser la chanson\n fft = new FFT(song.bufferSize(), song.sampleRate());\n\n //Un cube par bande de fréquence\n nbCubes = (int) (fft.specSize() * specHi);\n cubes = new Cube[nbCubes];\n\n //Autant de murs qu'on veux\n murs = new Mur[nbMurs];\n\n //Créer tous les objets\n //Créer les objets cubes\n for (int i = 0; i < nbCubes; i++) {\n cubes[i] = new Cube(this);\n }\n\n //Créer les objets murs\n //Murs gauches\n for (int i = 0; i < nbMurs; i += 4) {\n murs[i] = new Mur(0, height / 2f, 10, height, this);\n }\n\n //Murs droits\n for (int i = 1; i < nbMurs; i += 4) {\n murs[i] = new Mur(width, height / 2f, 10, height, this);\n }\n\n //Murs bas\n for (int i = 2; i < nbMurs; i += 4) {\n murs[i] = new Mur(width / 2f, height, width, 10, this);\n }\n\n //Murs haut\n for (int i = 3; i < nbMurs; i += 4) {\n murs[i] = new Mur(width / 2f, 0, width, 10, this);\n }\n\n //Fond noir\n\n //Commencer la chanson\n// song.play(0);\n }",
"private void arretes_fY(){\n\t\tthis.cube[49] = this.cube[46]; \n\t\tthis.cube[46] = this.cube[48];\n\t\tthis.cube[48] = this.cube[52];\n\t\tthis.cube[52] = this.cube[50];\n\t\tthis.cube[50] = this.cube[49];\n\t}",
"public Echiquier()\n\t{\n\t\ttableau = new Piece[8][8];\n\t}",
"public double mag()\n {\n return (Math.sqrt(this.x*this.x + this.y*this.y));\n }",
"public Complex square() {\n\t\treturn new Complex(this.getReal()*this.getReal()-this.getImag()*this.getImag(), 2*this.getImag()*this.getReal());\n\t\t\n\t}",
"private void aretes_aY(){\n\t\tthis.cube[49] = this.cube[43]; \n\t\tthis.cube[43] = this.cube[21];\n\t\tthis.cube[21] = this.cube[10];\n\t\tthis.cube[10] = this.cube[32];\n\t\tthis.cube[32] = this.cube[49];\n\t}",
"public double magnitude(){\n return Math.sqrt((this.x * this.x) + (this.y * this.y));\n }",
"public FacultySquare(int myX, int myY, String myEidos){\r\n super(myX,myY, myEidos);\r\n }",
"public abstract float getSquareSize();",
"public MComplex() {\r\n\t\ta = b = r = phi = 0;\r\n\t\tcartesian = polar = true;\r\n\t}",
"public MagnitudeSignal(ComplexSignal s) {\n\t\tlength = s.length();\n\t\tdata = new float[length];\n\t\tfloat r, im;\n\t\tfor (int x = 0; x < s.length; x++) {\n\t\t\tr = s.getReal(x);\n\t\t\tim = s.getImag(x);\n\t\t\tdata[x] = (float) Math.sqrt(r * r + im * im);\n\t\t}\n\t}",
"public MrnWoatlas5() {\n clearVars();\n if (dbg) System.out.println (\"<br>in MrnWoatlas5 constructor 1\"); // debug\n }",
"private void aretes_aO(){\n\t\tthis.cube[40] = this.cube[7]; \n\t\tthis.cube[7] = this.cube[25];\n\t\tthis.cube[25] = this.cube[46];\n\t\tthis.cube[46] = this.cube[34];\n\t\tthis.cube[34] = this.cube[40];\n\t}",
"private ArrayOps() {\r\n }",
"public double sqrMagnitude()\n {\n return ((x*x) + (y*y) + (z*z) + (w * w));\n }",
"public SquareBumper(int x, int y, String name) throws InvalidInvariantException{\n \tsuper(new GridPoint(x, y), name, 1, 1, 1);\n physicsComponentList.add(new StaticLine(new LineSegment(this.getX(), this.getY(), this.getX() + 1,\n this.getY()), this.reflectionCoef));\n physicsComponentList.add(new StaticLine(new LineSegment(this.getX(), this.getY() + 1,\n this.getX() + 1, this.getY() + 1), this.reflectionCoef));\n physicsComponentList.add(new StaticLine(new LineSegment(this.getX() + 1, this.getY(),\n this.getX() + 1, this.getY() + 1), this.reflectionCoef));\n physicsComponentList.add(new StaticLine(new LineSegment(this.getX(), this.getY(), this.getX(),\n this.getY() + 1), this.reflectionCoef));\n\n physicsComponentList.add(new StaticCircle(new Circle(this.getX(), this.getY(), 0.01), this.reflectionCoef));\n physicsComponentList.add(new StaticCircle(new Circle(this.getX() + 1, this.getY(), 0.01), this.reflectionCoef));\n physicsComponentList.add(new StaticCircle(new Circle(this.getX(), this.getY() + 1, 0.01), this.reflectionCoef));\n physicsComponentList.add(new StaticCircle(new Circle(this.getX() + 1, this.getY() + 1, 0.01), this.reflectionCoef));\n\n if (!this.checkRep()) {\n throw new Board.InvalidInvariantException();\n }\n }",
"public SquareIF clone();",
"public Map(int r, int c){\r\n try {\r\n bomb = new Image(new FileInputStream(\"Minesweeper_Images/bomb.png\"));\r\n zero = new Image(new FileInputStream(\"Minesweeper_Images/zero.png\"));\r\n one = new Image(new FileInputStream(\"Minesweeper_Images/one.png\"));\r\n two = new Image(new FileInputStream(\"Minesweeper_Images/two.png\"));\r\n three = new Image(new FileInputStream(\"Minesweeper_Images/three.png\"));\r\n four = new Image(new FileInputStream(\"Minesweeper_Images/four.png\"));\r\n five = new Image(new FileInputStream(\"Minesweeper_Images/five.png\"));\r\n six = new Image(new FileInputStream(\"Minesweeper_Images/six.png\"));\r\n seven = new Image(new FileInputStream(\"Minesweeper_Images/seven.png\"));\r\n eight = new Image(new FileInputStream(\"Minesweeper_Images/eight.png\"));\r\n flag = new Image(new FileInputStream(\"Minesweeper_Images/flag.png\"));\r\n square = new Image(new FileInputStream(\"Minesweeper_Images/square.png\"));\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n map = new Square[r][c];\r\n for(int row = 0; row<map.length; row++){\r\n for(int col = 0; col<map[0].length; col++){\r\n map[row][col] = new Square();\r\n //map[row][col].setVisual(\" \");\r\n int x = row;\r\n int y = col;\r\n map[row][col].setVisual(square);\r\n map[row][col].getSquareButton().setOnMouseClicked(e->{\r\n if(e.getButton() == MouseButton.PRIMARY){\r\n revealArea(x, y);\r\n }\r\n if(e.getButton() == MouseButton.SECONDARY){\r\n flag(x, y);\r\n if(win() == true){\r\n System.out.println(\"WIN\");\r\n EndBox.end(\"Win\", \"YOU WIN!!!\");\r\n System.exit(0);\r\n }\r\n }\r\n });\r\n\r\n\r\n }\r\n\r\n }\r\n }",
"public void setMagnitude()\n {\n magnitude = (float) Math.sqrt(Math.pow(fx, 2) + Math.pow(fy, 2) + Math.pow(fz, 2));\n }",
"private SquareCoordinate(int x, int y)\n {\n \tthis.x = x;\n \tthis.y = y;\n }",
"public Square() {\n // initialize vertex byte buffer for shape coordinates\n ByteBuffer bb = ByteBuffer.allocateDirect(\n // (# of coordinate values * 4 bytes per float)\n squareCoords.length * 4);\n bb.order(ByteOrder.nativeOrder());\n vertexBuffer = bb.asFloatBuffer();\n vertexBuffer.put(squareCoords);\n vertexBuffer.position(0);\n\n // initialize byte buffer for the draw list\n ByteBuffer dlb = ByteBuffer.allocateDirect(\n // (# of coordinate values * 2 bytes per short)\n drawOrder.length * 2);\n dlb.order(ByteOrder.nativeOrder());\n drawListBuffer = dlb.asShortBuffer();\n drawListBuffer.put(drawOrder);\n drawListBuffer.position(0);\n\n // prepare shaders and OpenGL program\n int vertexShader = MyGLRenderer.loadShader(\n GLES20.GL_VERTEX_SHADER,\n vertexShaderCode);\n int fragmentShader = MyGLRenderer.loadShader(\n GLES20.GL_FRAGMENT_SHADER,\n fragmentShaderCode);\n\n mProgram = GLES20.glCreateProgram(); // create empty OpenGL Program\n GLES20.glAttachShader(mProgram, vertexShader); // add the vertex shader to program\n GLES20.glAttachShader(mProgram, fragmentShader); // add the fragment shader to program\n GLES20.glLinkProgram(mProgram); // create OpenGL program executables\n }",
"public Square() {\n content = \"EMPTY\";\n \n }",
"public Square[][] getSquares()\n {\n return squares;\n }",
"public SeamCarver(Picture picture) {\r\n validate(picture); // check if picture != null\r\n pic = new Picture(picture); // copy the picture\r\n width = pic.width();\r\n height = pic.height();\r\n energy = new double[width][height];\r\n for (int x = 0; x < width; x++)\r\n for (int y = 0; y < height; y++)\r\n energy[x][y] = calcEnergy(x, y);\r\n }",
"@Test\r\n\tpublic void testBoardSquareArray() {\r\n\t\tBoard board = new Board();\r\n\t\tassertNotNull(board);\r\n\t\tboard.setSquareLocations(validSquareLocations);\r\n\t\tassertArrayEquals(validSquareLocations, board.getSquareLocations());\r\n\r\n\t}",
"public Square(int w)\n {\n width = w;\n }",
"public double magnitude()\n {\n return Math.sqrt((x*x) + (y * y) + (z * z) + (w * w));\n }",
"public Square[][] getSquares() {\n \treturn squares;\n }",
"public double magnitude() {\n \n double ms = _x * _x + _y * _y; \n return Math.sqrt(ms);\n \n }",
"public Complex square() {\n\t\tdouble sqReal = (real * real) - (imaginary * imaginary);\n\t\tdouble sqImaginary = 2 * real * imaginary;\n\t\treturn new Complex(sqReal, sqImaginary);\n\t}",
"public Stat() {\n\t\tdata = new SuperArray();\n }",
"public Board()\r\n {\r\n board = new Piece[8][8];\r\n xLength = yLength = 8;\r\n }",
"public void constructArray(){\n\t\tfor (int col = 0; col < cols; col++){\n\t\t\tfor (int row = 0; row < rows; row++){\n\t\t\t\tmap[col][row] = new Pixel();\n\t\t\t}\n\t\t}\n\t}",
"public final void mag() throws ArithmeticException {\n\t\tif ((mksa&_LOG) != 0) throw new ArithmeticException\n\t\t(\"****Unit: mag(\" + symbol + \")\") ;\n\t\tvalue = -2.5*AstroMath.log(value);\n\t\tif ((mksa == underScore) && (factor == 1)) {\t// Now we've mag\n\t\t\tmksa |= _mag;\n\t\t\tif (symbol != null) symbol = \"mag\";\n\t\t} else {\n\t\t\tmksa |= (_log|_mag);\n\t\t\tif (symbol != null) symbol = \"mag[\" + symbol + \"]\";\n\t\t}\n\t}",
"public Chromosone newChromosone(){\n\tint[] result = new int[ l.size() ];\n\t//System.out.println(\"`\\n\\n\");\n\n\tjava.util.Arrays.sort(this.pcities);\n\n\t//hold subloops in arrays\n\tint[][] arrays = new int[shells][result.length];\n\tint[] array_counts = new int[shells];\n\n\t//determine best split point\n\tdouble rstep = 0;\n\tfor(PolarCity pc: pcities){\n\t if( pc.r > rstep)\n\t\trstep = pc.r;\n\t}\n\t//System.out.println(\"max: \" + rstep);\n\trstep /= (shells - 1);\n\n\t//fit them into categories\n\tint index = 0;\n\tfor(int i=0; i<pcities.length; i++){\n\t //System.out.println(\"theta: \" + pcities[i].theta + \", r=\" + pcities[i].r + \" thingy=\" + Math.sin(pcities[i].theta / 2));\n\t //mod to find out shell\n\t //System.out.println(\"steps: \" + shells + \" pcities.r = \" + pcities[i].r + \" rstep = \" + rstep);\n\t index = Math.abs((int)(pcities[i].r / rstep));\n\t arrays[index][array_counts[index]++] = pcities[i].original_index;\n\t}\n\n\t//recombobulate into a single final path\n\tint counter = 0;\n\tfor(int i=0; i<array_counts.length; i++){\n\t System.arraycopy(arrays[i], 0, result, counter, array_counts[i]);\n\t counter += array_counts[i];\n\t}\n\n\treturn new Chromosone(result);\n }",
"public ArrayIns(int max) // constructor\r\n {\r\n a = new long[max]; // create the array\r\n nElems = 0; // no items yet\r\n }",
"private void arretes_fO(){\n\t\tthis.cube[40] = this.cube[37]; \n\t\tthis.cube[37] = this.cube[39];\n\t\tthis.cube[39] = this.cube[43];\n\t\tthis.cube[43] = this.cube[41];\n\t\tthis.cube[41] = this.cube[40];\n\t}",
"public double mag2() {\n return (x * x) + (y * y);\n }",
"public Square(int i1, int j1)\n {\n i = i1;\n j = j1;\n\n x = squareSize + squareSize*i;\n y = squareSize + squareSize*j;\n\n mark = ' ';\n }",
"private void setMultipliersArraySize(int i) {\r\n\t\tp_multiplier_name = new String[i];\r\n\t\tp_multiplier_value = new Double[i];\r\n\t\tp_multiplier_description = new String[i];\r\n\t}",
"public Square(double sideIn)\r\n {\r\n super(sideIn, sideIn);\r\n }",
"protected SimpleMatrix() {}",
"public Awale(short size) {\r\n\tthis.listeners = new ArrayList<AwaleListener>();\r\n\tthis.currentSide = 0;\r\n\tthis.size = size;\r\n\tthis.territory = new short[2][size];\r\n\tthis.simulateTerritory = new short[2][size];\r\n\tArrays.fill(this.territory[0], INITIAL_SEEDS);\r\n\tArrays.fill(this.territory[1], INITIAL_SEEDS);\r\n\tthis.points = new short[2];\r\n }",
"private void initWithSize(int size) {\r\n this.size = size;\r\n if (size == 0) {\r\n size = 1; //Prevents memory allocation problem on GPU\r\n }\r\n\r\n normalX = new double[size];\r\n normalY = new double[size];\r\n normalZ = new double[size];\r\n\r\n vertexAX = new double[size];\r\n vertexAY = new double[size];\r\n vertexAZ = new double[size];\r\n\r\n edgeBAX = new double[size];\r\n edgeBAY = new double[size];\r\n edgeBAZ = new double[size];\r\n\r\n edgeCAX = new double[size];\r\n edgeCAY = new double[size];\r\n edgeCAZ = new double[size];\r\n\r\n centerX = new double[size];\r\n centerY = new double[size];\r\n centerZ = new double[size];\r\n\r\n area = new double[size];\r\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 MMAge(){\n\t\t\n\t}",
"public Square getSquare() {\n\t\treturn new Square(y, x);\n\t}",
"public SeamCarver(Picture picture) {\n validate(picture);\n width = picture.width();\n height = picture.height();\n pic = new int[width * height];\n energy = new double[width * height];\n for (int x = 0; x < width; x++) {\n for (int y = 0; y < height; y++) {\n pic[xyTo1D(x, y)] = picture.getRGB(x, y);\n }\n }\n for (int x = 0; x < width; x++) {\n for (int y = 0; y < height; y++) {\n // calcEnergy() needs full pic[]\n // use two iterations full copy and then calculate energy\n energy[xyTo1D(x, y)] = calcEnergy(x, y);\n }\n }\n }",
"Mob(Enums.Species.AllSpecies specimen, Pair<Integer, Integer> coords) {\n super(specimen, coords);\n getData();\n }",
"public CSGenepixMicroarraySet(GenepixResource gr) throws Exception {\r\n super(RandomNumberGenerator.getID(), gr.getInputFile().getName());\r\n List ctu = new ArrayList();\r\n ctu.add(\"Block\");\r\n ctu.add(\"Column\");\r\n ctu.add(\"Row\");\r\n ctu.add(\"ID\");\r\n ctu.add(\"X\");\r\n ctu.add(\"Y\");\r\n ctu.add(\"Dia\");\r\n ctu.add(\"F635 Median\");\r\n ctu.add(\"F635 Mean\");\r\n ctu.add(\"B635 Median\");\r\n ctu.add(\"B635 Mean\");\r\n ctu.add(\"F532 Median\");\r\n ctu.add(\"F532 Mean\");\r\n ctu.add(\"B532 Median\");\r\n ctu.add(\"B532 Mean\");\r\n ctu.add(\"Ratio of Means\");\r\n GenepixParser2 parser = new GenepixParser2(ctu);\r\n BufferedReader reader = new BufferedReader(new FileReader(gr.getInputFile()));\r\n String line = null;\r\n while ((line = reader.readLine()) != null) {\r\n if (!line.trim().equals(\"\")) {\r\n parser.process(line);\r\n }\r\n\r\n }\r\n\r\n Vector v = parser.getAccessions();\r\n int count = 0;\r\n DSGeneMarker mInfo = null;\r\n for (Iterator it = v.iterator(); it.hasNext();) {\r\n mInfo = new CSGeneMarker((String) it.next());\r\n mInfo.setSerial(count++);\r\n markerVector.add(mInfo);\r\n }\r\n reader.close();\r\n reader = new BufferedReader(new FileReader(gr.getInputFile()));\r\n parser.reset();\r\n while ((line = reader.readLine()) != null) {\r\n if (!line.trim().equals(\"\")) {\r\n parser.parseLine(line);\r\n }\r\n }\r\n\r\n reader.close();\r\n parser.getMicroarray().setLabel(gr.getInputFile().getName());\r\n this.add(parser.getMicroarray());\r\n experimentInfo = parser.getExperimentInfo();\r\n }",
"public Mosaic(PImage img, PImage lastSeenImage, Tile[] tiles, Tile[] lastSeenTiles, int tileSize, int pdfScale, float evenRowShift, float oddRowShift)\n {\n //this.tileSum = tilesCounter(tiles);\n this.tiles = tiles;\n this.pdfScale = pdfScale;\n this.transparentBackground = true;\n this.tileSize = tileSize;\n this.xTiles = 0;\n this.yTiles = 0;\n this.xCanvasSize = width/4*3+70;\n this.yCanvasSize = height-20;\n this.hoverIndex = new int[2];\n this.hoverIndex[0] = 0;\n this.hoverIndex[1] = 0;\n this.firstCellPosition = new int[2];\n this.firstCellPosition[0] = 210;\n this.firstCellPosition[1] = 10;\n this.xTileSize = tiles[0].getW();\n this.yTileSize = tiles[0].getH();\n this.evenRowShift = (int) (xTileSize * evenRowShift);\n this.oddRowShift = (int) (xTileSize * oddRowShift);\n this.tileMiniatures = new PImage[8];\n this.tileMiniaturesV = new PImage[8];\n this.tileMiniaturesH = new PImage[8];\n this.tileMiniaturesVH = new PImage[8];\n this.avaragedImgs = new PImage[5];\n this.lastSeenImage = lastSeenImage;\n this.lastSeenTiles = lastSeenTiles;\n this.lastImgRatio = 0.0f;\n this.lastTileRatio = tiles[0].getW()*tiles[0].getH();\n setImage(img);\n setMiniatures();\n \n }",
"public Spielfeld() {\n\t\tmulden = new int[14];\n\t\tsetSteine();\n\t}",
"public ChampionnatComplexe (int [] Eq12,Matrice mat,Options o ) {\n\t\topt = o;\n\t\tint equilibrea = 0;\n\t\tint equilibreb = 0;\n\t\tgrpA1 = new int [3]; \n\t\tgrpA2 = new int [3]; \n\t\tgrpB1 = new int [3]; \n\t\tgrpB2 = new int [3]; \n\t\tfor (int i = 0 ; i < 3 ; i++ ) {\n\t\t\tgrpA1 [i] = Eq12 [i]; \n\t\t\tgrpA2 [i] = Eq12 [i+3]; \n\t\t\tgrpB1 [i] = Eq12 [i+6]; \n\t\t\tgrpB2 [i] = Eq12 [i+9]; \n\t\t}\n\t\tArrays.sort(grpA1);\n\t\tArrays.sort(grpA2);\n\t\tArrays.sort(grpB1);\n\t\tArrays.sort(grpB2);\n\t\tint a=0;\n\t\tfor ( int i = 0 ; i < 3 ; i ++ ) {\n\t\t\tfor ( int j = 0 ; j < 3 ; j ++ ) {\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpA1[i]-1,grpA1[j]-1)*2;\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpA2[i]-1,grpA2[j]-1)*2;\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpB1[i]-1,grpB1[j]-1)*2;\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpB2[i]-1,grpB2[j]-1)*2;\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpA1[i]-1,grpA2[j]-1);\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpA2[i]-1,grpA1[j]-1);\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpB1[i]-1,grpB2[j]-1);\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpB2[i]-1,grpB1[j]-1);\n\t\t\t}\n\n\t\t\ta = (int) Math.random();\n\t\t\tif (a==0) {\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpA1[i]-1,grpB1[i]-1);\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpA2[i]-1,grpB1[i]-1);\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpB1[i]-1,grpA1[i]-1);\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpB2[i]-1,grpA1[i]-1);\n\t\t\t} else {\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpA1[i]-1,grpB2[i]-1);\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpA2[i]-1,grpB2[i]-1);\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpB1[i]-1,grpA2[i]-1);\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpB2[i]-1,grpA2[i]-1);\n\t\t\t}\n\t\t}\n\t\tint z;\n\t\tfor ( z= 0; z < 3 ; z++) {\n\t\t\tequilibrea = grpA1[z] + grpA2[z] ;\n\t\t\tequilibreb = grpB1[z] + grpB2[z] ;\n\t\t}\n\t\tequilibreDesPoule = Integer.max(equilibrea, equilibreb) - Integer.min(equilibreb, equilibreb);\n\t\tnoteDistance = getDistanceTotale() * 100 / 52000 ;\n\t\tnoteEquilibre = getEquilibreDesPoules() * 100 / 36 ;\n\t\tnoteMoyennePondereeEqDist = ( (noteDistance * opt.getPourcentageDistance()) + (noteEquilibre * (100 - opt.getPourcentageDistance()) ))/100;\n\t}",
"public static void main(String[] args) {\r\n\t\tint array[][] = { { 8, 58, 59, 5, 4, 62, 63, 1 },\r\n\t\t\t\t{ 49, 15, 14, 52, 53, 11, 10, 56 },\r\n\t\t\t\t{ 41, 23, 22, 44, 45, 19, 18, 48 },\r\n\t\t\t\t{ 32, 34, 35, 29, 28, 38, 39, 25 },\r\n\t\t\t\t{ 40, 26, 27, 37, 36, 30, 31, 33 },\r\n\t\t\t\t{ 17, 47, 46, 20, 21, 43, 42, 24 },\r\n\t\t\t\t{ 9, 55, 54, 12, 13, 51, 50, 16 },\r\n\t\t\t\t{ 64, 2, 3, 61, 60, 6, 7, 57 } };\r\n\t\tSystem.out.println(\"The array \");\r\n\t\tprintArray(array);\r\n\t\tSystem.out.println(\"is a magic square ?\");\r\n\t\tSystem.out.println(isMagicSquare(array));\r\n\r\n\t}",
"CubeModel() {\n r = 0;\n c = 0;\n s = 4;\n grid = new boolean [4][4];\n the_cube = new boolean[6];\n moves = 0;\n\n }",
"public RubiksCube(){\n\t\tString[] c = {\n\t\t\t\t\"W\",\"W\",\"W\",\"W\",\"W\",\"W\",\"W\",\"W\",\"W\",\n\t\t\t\t\"R\",\"R\",\"R\",\"R\",\"R\",\"R\",\"R\",\"R\",\"R\",\n\t\t\t\t\"B\",\"B\",\"B\",\"B\",\"B\",\"B\",\"B\",\"B\",\"B\",\n\t\t\t\t\"G\",\"G\",\"G\",\"G\",\"G\",\"G\",\"G\",\"G\",\"G\",\n\t\t\t\t\"O\",\"O\",\"O\",\"O\",\"O\",\"O\",\"O\",\"O\",\"O\",\n\t\t\t\t\"Y\",\"Y\",\"Y\",\"Y\",\"Y\",\"Y\",\"Y\",\"Y\",\"Y\",\n\t\t};\n\t\tthis.cube = c;\n\t}",
"public void enlargeSquare()\n {\n squareSize++;\n }",
"public Board() {\n this.board = new Piece[16];\n }",
"protected Individual(float[] _genes)\n\t\t{\tgenes = _genes;\n\t\t\tcreateMe();\n\t\t\twait = 0;\n\t\t\tmove = 0;\n\t\t}",
"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}",
"public double getMagnitud(){\n return Math.sqrt(x*x+y*y);\n }",
"public ImageChop shrinkImgArray() {\n if (mnLeft == 0 && mnTop == 0 && getRightPlus1() == mnWidth && getBottomPlus1() == mnHeight) {\n return this;\n } else {\n byte[][] barrayImg = new byte[mnWidth][mnHeight];\n // copy matrix.\n for (int idx = 0; idx < mnWidth; idx ++) {\n System.arraycopy(mbarrayImg[idx + mnLeft], mnTop, barrayImg[idx], 0, mnHeight);\n }\n int nX0InOriginalImg = mnX0InOriginalImg + mnLeft;\n int nY0InOriginalImg = mnY0InOriginalImg + mnTop;\n ImageChop imgChopReturn = new ImageChop();\n imgChopReturn.setImageChop(barrayImg, 0, 0, mnWidth, mnHeight, mbarrayOriginalImg, nX0InOriginalImg, nY0InOriginalImg, mnChopType);\n return imgChopReturn;\n }\n }",
"public double[] getImaginaryData() {\r\n return imagData;\r\n }",
"@Test\n public void encodeSquaresXYTest() {\n Square square1 = new BasicSquare(0, 1);\n Square square2 = new BasicSquare(2, 2);\n Square square3 = new SpawnSquare(1, 1);\n ArrayList<Square> squaresList = new ArrayList<>();\n squaresList.add(square1);\n squaresList.add(square2);\n squaresList.add(square3);\n int[] squareX = Encoder.encodeSquareTargetsX(squaresList);\n int[] squareY = Encoder.encodeSquareTargetsY(squaresList);\n int[] expectedSquareX = new int[]{0, 2, 1};\n int[] expectedSquareY = new int[]{1, 2, 1};\n for (int i = 0; i < squareX.length; i++) {\n Assert.assertEquals(expectedSquareX[i], squareX[i]);\n Assert.assertEquals(expectedSquareY[i], squareY[i]);\n }\n }",
"public PQR() {}",
"public Grid() {\n\t\tthis.moveCtr = 0; \n\t\tlistOfSquares = new ArrayList<Square>();\n\t\t//populating grid array with squares\n\t\tfor(int y = 0; y < GridLock.HEIGHT; y++) {\n\t \tfor(int x = 0; x < GridLock.WIDTH; x++) { //square coordinates go from (0,0) to (5,5)\n\t \tSquare square;\n\t \t//Setting up a square which has index values x,y and the size of square.\n\t\t\t\t\tsquare = new Square(x, y, GridLock.SQUARE_SIZE, GridLock.SQUARE_SIZE); \n\t\t\t\t\tgrid[x][y] = square;\n\t\t\t\t\tlistOfSquares.add(square);\n\t \t\t\t\t\t\n\t \t\t}\n\t \t}\n \t\n }",
"public imageAlphaClass()\n {\n array_lineas = new ArrayList<>();\n array_modelos = new ArrayList<>();\n array_productos = new ArrayList<>();\n }",
"public OthelloBoard (int height, int width){\n super(height, width);\n m_Pieces = new OthelloPiece[WIDTH][HEIGHT];\n m_PieceCount+=4;\n \n }",
"@Test\n public void testMediaMovelSimples() {\n System.out.println(\"MediaMovelSimples\");\n int[] energia = null;\n int linhas = 0;\n double n = 0;\n Double[] expResult = null;\n Double[] resultArray = null;\n double[] result = ProjetoV1.MediaMovelSimples(energia, linhas, n);\n if (resultArray != null) {\n resultArray = ArrayUtils.converterParaArrayDouble(result);\n }\n assertArrayEquals(expResult, resultArray);\n\n }",
"MagLegendre( int nt ) \n {\n nTerms = nt;\n Pcup = new double[ nTerms + 1 ];\n dPcup = new double[ nTerms + 1 ];\n }",
"public SuperArray() { \n \t_data = new Comparable[10];\n \t_lastPos = -1; //flag to indicate no lastpos yet\n \t_size = 0;\t\n }",
"public double magnitude() {\r\n\t\treturn Math.sqrt(this.x*this.x + this.y*this.y + this.z*this.z);\r\n\t}",
"@Test\n public void testTransform() {\n File file1=new File(\"testData/testfile.mgf\");\n MgfReader rdr=new MgfReader(file1);\n ArrayList<Spectrum> specs = rdr.readAll();\n System.out.println(\"transform\");\n Spectrum spec = specs.get(0);\n ReciprocalTransform instance = new ReciprocalTransform();\n Spectrum expResult = null;\n Spectrum result = null;//instance.transform(spec);\n assertEquals(result, expResult);\n }",
"public static void main(String[] args)\n {\n\n SuperMuli m=new SubMuli();\n System.out.println(m.muliplyExtra(1, 2));\n /*\n SuperMuli m = new SubMuli();\n m.printTypeName();\n System.out.println(\",\" + m.index);\n */ \n\n //byte arr[]=new byte[]{2,3,4,5};\n //for (final int i:getCharArray(arr)) \n //System.out.print(i+\" \");\n\n //int a[5]=new int[]{2,3,4,5,6};\n\n //int [][]a5=new int[5]{2,3,4,5,6};\n //int[][] a3=new int[5][];\n //int a4[][][] a3={{{1,2}},{{3,4}},{5,6}};\n //int[,] a2=new int[5,5];\n /*int j=0;\n int a[]={2,4};\n do for(int i:a)\n System.out.print(i+\" \");\n while(j++ <1);\n */\n\n System.out.println(\"\\nEnded...\");\n\n\n }",
"private byte[] magSerializedForm() {\n int len = mag.length;\n\n int bitLen = (len == 0 ? 0 : ((len - 1) << 5) + bitLengthForInt(mag[0]));\n int byteLen = (bitLen + 7) >>> 3;\n byte[] result = new byte[byteLen];\n\n for (int i = byteLen - 1, bytesCopied = 4, intIndex = len - 1, nextInt = 0;\n i >= 0; i--) {\n if (bytesCopied == 4) {\n nextInt = mag[intIndex--];\n bytesCopied = 1;\n } else {\n nextInt >>>= 8;\n bytesCopied++;\n }\n result[i] = (byte)nextInt;\n }\n return result;\n }",
"public SampleMemory(int size) {\n this.memory = new double[size];\n this.pointer = 0;\n }",
"public FullWaveformData() {\n\t\tchannelSampleArrayList = new ArrayList<>();\n\t\tdataSetArray = new DataSet[34];\n\t\tfor (int i = 0; i < 34; i++) {\n\t\t\tchannelSampleArrayList.add(new ArrayList<>());\n\t\t}\n\t\tfor (int i = 0; i < 34; i++) {\n\t\t\ttry {\n\t\t\t\tdataSetArray[i] = new DataSet(DataSetType.XYXY, WavePlot.getColumnNames());\n\t\t\t} catch (DataSetException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public double getImag() {return this.imag;}",
"public double mag() {\n return Math.sqrt(mag2());\n }",
"public Grid() {\n setPreferredSize(new Dimension(960, 640));\n setBounds(0, 0, 960, 640);\n setLayout(null);\n setBackground(Color.black);\n this.size = 30;\n squares = new Square[size][20];\n }",
"public double getSquareLength() {\n return r * r + i * i;\n }",
"public double magnitude() {\n double totalX = this.xCoord * this.xCoord;\n double totalY = this.yCoord * this.yCoord;\n double totalZ = this.zCoord * this.zCoord;\n return Math.sqrt(totalX + totalY + totalZ);\n }",
"public ExpandableArray() {\n\n\t}",
"public void setMagnitude(int magnitude)\r\n {\r\n this.magnitude = magnitude; \r\n }",
"public byte getStartSquare (){\r\n\t\treturn start_sq;\r\n\t}",
"protected Ocean(){\n for (int i=0; i<10; i++){\n for (int j=0;j<10; j++){\n EmptySea empty = new EmptySea();\n ships[i][j] = empty;\n }\n }\n }"
]
| [
"0.60309076",
"0.5962311",
"0.5828307",
"0.5687178",
"0.5608937",
"0.54843205",
"0.5483615",
"0.5453475",
"0.5347917",
"0.5346312",
"0.53384835",
"0.5310147",
"0.53050685",
"0.5291901",
"0.52848387",
"0.51963943",
"0.5177621",
"0.51730293",
"0.51639724",
"0.5147159",
"0.5113232",
"0.51090956",
"0.5065955",
"0.5062286",
"0.50543153",
"0.5053617",
"0.5044747",
"0.50297606",
"0.50167215",
"0.5011511",
"0.49894893",
"0.49774572",
"0.49720842",
"0.4961341",
"0.4957196",
"0.495556",
"0.494269",
"0.49372557",
"0.49354762",
"0.49330458",
"0.49328184",
"0.4925162",
"0.49204132",
"0.49097773",
"0.49095932",
"0.49088693",
"0.4905179",
"0.49033386",
"0.4902197",
"0.49005455",
"0.4895822",
"0.48892608",
"0.48884678",
"0.48873916",
"0.48857963",
"0.48753104",
"0.48707804",
"0.4867459",
"0.48504272",
"0.48503274",
"0.48456842",
"0.48430452",
"0.48176402",
"0.48130092",
"0.48099467",
"0.48078194",
"0.48009127",
"0.47971424",
"0.47949284",
"0.4791573",
"0.47853717",
"0.4780269",
"0.47714603",
"0.47699976",
"0.476827",
"0.47653624",
"0.47650784",
"0.47631636",
"0.4759645",
"0.47572958",
"0.47475383",
"0.4747497",
"0.4746701",
"0.4746075",
"0.47428167",
"0.474174",
"0.47372735",
"0.47270235",
"0.47161865",
"0.47025675",
"0.47005838",
"0.46995956",
"0.4697198",
"0.4697138",
"0.46969926",
"0.46940738",
"0.4693146",
"0.4690703",
"0.46896458",
"0.4686194"
]
| 0.4707727 | 89 |
This method transforms the array into a nice readable string. | public String toString(){
StringBuilder output = new StringBuilder();
for(int i = 0; i<this.size; i++){
for(int j=0; j<this.size; j++){
output.append(this.numbers[i][j] + "\t");
}
output.append("\n");
}
return output.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public String toString() {\n String arrString = \"\";\n \n //loop to add all the elements\n for (int i = 0; i < this.array.length; i++) {\n arrString = arrString + \" \" + this.array[i];\n }\n \n return arrString;\n }",
"public String toString() {\n String[] collect = new String[this.array.length];\n for (int i = 0; i < this.array.length; i++) {\n collect[i] = String.valueOf(this.array[i]);\n }\n return \"[\" + String.join(\";\", collect) + \"]\";\n }",
"private static String arrayToString(int[] array) {\n\n String arrayOutput = \"\";\n\n // seperate the elements of the array and add each to the outputstring\n for (int position = 0; position < array.length; position++) {\n\n arrayOutput += array[position] + \", \";\n }\n\n // trim the outputstring of the last seperation char\n arrayOutput = arrayOutput.substring(0, (arrayOutput.length() - 1));\n\n // output the string of the integer array\n return arrayOutput;\n }",
"public String toString() {\n int iMax = array.length - 1;\n if (iMax == -1)\n return \"[]\";\n\n StringBuilder b = new StringBuilder();\n b.append('[');\n for (int i = 0; ; i++) {\n b.append(getRaw(byteOffset(i)));\n if (i == iMax)\n return b.append(']').toString();\n b.append(',').append(' ');\n }\n }",
"public synchronized String toString()\n\t{\n\t\treturn Arrays.toString(array);\n\t}",
"private static String toString(final String...array) {\n if ((array == null) || (array.length <= 0)) return \" \";\n final StringBuilder sb = new StringBuilder();\n for (int i=0; i<array.length; i++) {\n if (i > 0) sb.append(\", \");\n sb.append(array[i]);\n }\n return sb.toString();\n }",
"public static String arrayToString(int[] arr){\n\t\tStringBuffer ans = new StringBuffer();\n\t\tfor(int i=0;i<arr.length;i++)ans.append(arr[i]);\n\t\treturn ans.toString();\n\t}",
"public static String arrayToString (int[][] a){\r\n\t\tString toString = \"\";\r\n\t\tfor (int r=0 ;r<a.length;r++) {\r\n\t\t\tfor (int c=0;c<a[0].length;c++) {\r\n\t\t\t\ttoString+=a[r][c];\r\n\t\t\t\t\tif (c<a[0].length-1)\r\n\t\t\t\t\ttoString+=\" \";\r\n\t\t\t}\r\n\t\t\t\t\tif (r<a.length-1)\r\n\t\t\t\t\ttoString+=\"\\n\";\r\n\t\t}\r\n\t\treturn toString;\r\n\t}",
"private String arrayToString(double[] a) {\n StringBuffer buffy = new StringBuffer();\n for (int i=0; i<a.length; i++) {\n buffy.append(a[i]+\"\\t\");\n }\n return buffy.toString();\n }",
"private String arrayToString(double[] a) {\n StringBuffer buffy = new StringBuffer();\n for (int i=0; i<a.length; i++) {\n buffy.append(a[i]+\"\\t\");\n }\n return buffy.toString();\n }",
"public static String toString(double[] array)\r\n\t{\r\n\t\tString str = \"[ \";\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tstr += String.valueOf(array[i]) + \" \";\r\n\t\treturn str + \"]\";\r\n\t}",
"@Override\n\tpublic String toString() {\n\t\tString s = \"\";\n\t\ts += \"[\";\n\t\tif (size() > 0) {\n\t\t\ts += arr[0];\n\t\t\tfor (int i = 1; i < arr.length; i++) {\n\t\t\t\ts += \", \" + arr[i];\n\t\t\t}\n\t\t}\n\t\ts += \"]\";\n\t\treturn s;\n\t}",
"public String toString() {\n\t\tString s = \"\";\n\t\tfor (Coord x : array)\n\t\t\ts += x;\n\t\treturn s;\n\t}",
"public static String arrayAsString(int array[]) {\n\tString ret = \"\";\n\tfor(int i = 0; i < array.length; i++) {\n\t if(i == array.length-1) {\n\t\tret += array[i];\n\t } else {\n\t\tret += array[i] + \" \";\n\t }\n\t}\n\treturn ret;\n }",
"public String toString() {\n\t\tString str = new String ();\n\t\tfor (int i = 0; i <size; i++)\n\t\t{\n\t\t\tstr +=\"(\" + i +\")\" + arr[i] + \"\\n\";\n\t\t}\n\t\treturn str;\n\t}",
"public static String arrayToString(int[][] a) {\n\t\tString toString = \"\";\n\t\tfor (int row = 0; row < a.length; row++) {\n\t\t\tfor (int column = 0; column < a[row].length; column++) {\n\t\t\t\ttoString += a[row][column];\n\t\t\t\tif (!(column == a[row].length - 1)) {\n\t\t\t\t\ttoString += \" \";\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!(row == a.length - 1)) {\n\t\t\t\ttoString += \"\\n\";\n\t\t\t}\n\t\t}\n\t\treturn toString;\n\t}",
"@Override\n public String toString(){\n String result = \"\";\n for(int i = 0; i < numItems; i++){\n result += arr[i] + \" \";\n }\n return result;\n }",
"public String toString(){\r\n\t \tString str = \"\";\r\n\t \tint i=0;\r\n\t \tfor(; i < numElems-1; i++){\r\n\t \t\tstr += array[i].toString();\r\n\t \t\tstr += \", \";\r\n\t \t}\r\n\t \tstr += array[numElems-1];\r\n\t \treturn str;\r\n\t }",
"public String toString(){\n\treturn Arrays.toString(a);\n }",
"public String toString(ArrayList<Integer> arr) {\n\t\tString mssg = \"\";\n\t\tfor(int i = 0; i < arr.size(); i++) {\n\t\t\tmssg += arr.get(i) + \" \";\n\t\t}\n\t\treturn mssg;\n\t}",
"public static String toString(int[] theArray) {\n String str = \"{\";\n\n for (int i = 0; i < theArray.length; i++) {\n str+=theArray[i];\n //adds a comma after every number except the last one\n if(i+1 < theArray.length) {\n str += \",\";\n }\n }\n str += \"}\";\n return str;\n }",
"public void toString(final int[] array) {\n String s = \"\";\n for (int p = 0; p < array.length - 1; p++) {\n s += array[p] + \",\";\n }\n s = s + array[array.length - 1];\n System.out.println(s);\n }",
"public String toString()\n\t{\n\t\t// For empty array\n\t\tif(length() < 1)\n\t\t\tSystem.out.print(\"\");\n\t\tString output = \"\";\n\n\t\tfor(int index = 0; index < length(); index++)\n\t\t{\n\t\t\toutput = output + data[index];\n\t\t\tif(index+1 < length())\n\t\t\t{\n\t\t\t\toutput = output + \" \";\n\t\t\t}\n\t\t}\n\t\treturn output;\n\t}",
"public String print(int[] array)\n {\n StringBuilder inputSB = new StringBuilder();\n String input;\n\n for(int i = 0; i < array.length; i++)\n {\n inputSB.append(array[i]);\n if(i != (array.length - 1))\n {\n inputSB.append(\",\");\n }\n }\n\n input = inputSB.toString();\n return input;\n }",
"@Override\n public String toString() {\n if (arrayLen != 1) {\n setLength(stringArray, arrayLen);\n String s = join(stringArray);\n // Create a new array to allow everything to get GC'd.\n stringArray = new String[] {s};\n arrayLen = 1;\n }\n return stringArray[0];\n }",
"public String toString()\n {\n // create a counter called count\n int count = 0;\n // create empty string for concatenation purposes\n String retString = \"\";\n while(count < size)\n {\n // appending to retString\n retString += arr[count] + \" \";\n // increment count\n count++;\n }\n return retString;\n }",
"public static String arrayToString(int[] mySortingArray) {\r\n\t\tStringBuilder sb = new StringBuilder(\"{\");\r\n\t\tString comma = null;\r\n\r\n\t\tfor (int element : mySortingArray) {\r\n\t\t\tsb.append((comma == null ? \"\" : comma) + element);\r\n\t\t\tcomma = \",\";\r\n\t\t}\r\n\t\tsb.append(\"}\");\r\n\t\treturn sb.toString();\r\n\t}",
"public String ArrayToString(ArrayList<Card> Arr){\n String ArrayContents1 = \"\"; //contents of array\n for(int i =0; i< Arr.size(); i++){\n Card card = Arr.get(i);\n\n String cardNameString = card.getCardName();\n ArrayContents1= ArrayContents1 + \", \" + cardNameString;\n }\n return ArrayContents1;\n }",
"public static String toString(boolean[] array)\r\n\t{\r\n\t\tString str = \"[ \";\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tif (array[i])\r\n\t\t\t\tstr += \"1\" + \"\";\r\n\t\t\telse\r\n\t\t\t\tstr += \"0\" + \"\";\r\n\t\treturn str + \"]\";\r\n\t}",
"public static String byteArrayToString(byte[] array) {\n\t\tStringBuilder str = new StringBuilder();\n\t\t\n\t\t//iterate through whole array, convert each element from the array to hexadecimal string form, put a space between elements\n\t\tfor(byte b : array) {\n\t\t\tstr.append(String.format(\"%02X\", b));\n\t\t\tstr.append(\" \");\n\t\t}\n\t\treturn str.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn \"\\nContents of SimpleArray:\\n\" + Arrays.toString(array);\n\t}",
"public static final <T> StrBuilder ARRAY_TO_STRING(T[][] ar){\n\t\tStrBuilder ret = new StrBuilder(50);\n\t\tfor(int row=0; row<ar.length; row++){ //TODO not null save\n\t\t\tif(ar[row]==null){\n\t\t\t\tret.append(\"[\").append(row).appendln(\"]: null\");\n\t\t\t}\n\t\t\telse if(ar[row].length==0){\n\t\t\t\tret.append(\"[\").append(row).appendln(\"]: 0\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfor(int col=0; col<ar[row].length; col++){\n\t\t\t\t\tret.append(\"[\").append(row).append(\"][\").append(col).append(\"]: \");\n\t\t\t\t\tif(ar[row][col]==null){\n\t\t\t\t\t\tret.appendln(\"null\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(\"\".equals(ar[row][col])){\n\t\t\t\t\t\tret.appendln(\"0\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tret.appendln(ar[row][col]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}",
"public String toString(){\r\n\t\treturn Arrays.toString(ray)+\"\";\r\n\t}",
"public String toString() {\n\t\treturn Arrays.toString(data);\n\t}",
"public String toString() {\r\n\t\tString elements = \"<\";\r\n\t\t\r\n\t\tfor(int i = 0; i < count; i++) {\r\n\t\t\telements += \" \" + array[i];\r\n\t\t\t}\r\n\t\t\r\n\t\t\telements += \" >\";\r\n\t\t\treturn elements;\r\n\t }",
"private static String compileArray(float[] array) {\n String arrayString = \"\\\"\";\n for (float number : array) {\n arrayString += Model.formatFloat(number) + \", \";\n }\n arrayString = arrayString.substring(0, arrayString.length() - 2);\n arrayString += \"\\\"\";\n return arrayString;\n }",
"@Override\n public final String toString() {\n final int[] temp = new int[size];\n for (int i = 0; i < size; i++) {\n temp[i] = arrayList[i];\n }\n return Arrays.toString(temp);\n }",
"public static <T> String arrayToString(T[] list) {\n\t\treturn arrayToString(list, o->o.toString());\n\t}",
"public String toString()\r\n {\r\n String result = \"\";\r\n for ( int i = 0; i < SIZE; i++)\r\n {\r\n result = myArray[i] + result;\r\n }\r\n return result;\r\n \r\n }",
"@Override\n\tpublic String toString() {\n\t\tif (size() == 0) {\n\t\t\treturn \"[]\";\n\t\t} else if (size() == 1) {\n\t\t\treturn \"[\" + arr[0] + \"]\";\n\t\t} else {\n\t\t\t// size() >= 2\n\t\t\tString result = \"[\" + arr[0];\n\t\t\tfor (int i = 1; i < end; ++i) {\n\t\t\t\tresult += \", \" + arr[i];\n\t\t\t}\n\t\t\treturn result + \"]\";\n\t\t}\n\t}",
"public String toString() {\n\t\tString str = \"\";\n\t\tfor(int i = 0;i < data.length;i++) {\n\t\t\tstr = str + data[i];\n\t\t}\n\t\tif(overflow) {\n\t\t\treturn \"Overflow\";\n\t\t}else {\n\t\t\treturn str;\n\t\t}\n\t}",
"public String toString() {\n int[] d = new int[size];\n for (int k=0; k<size; k++)\n d[k] = data[k];\n return Arrays.toString(d);\n }",
"public String format(INDArray arr, boolean summarize) {\n if(arr.isEmpty())\n return EMPTY_ARRAY_STR;\n this.scientificFormat = \"0.\";\n int addPrecision = this.precision;\n while (addPrecision > 0) {\n this.scientificFormat += \"#\";\n addPrecision -= 1;\n }\n this.scientificFormat = this.scientificFormat + \"E0\";\n if (this.scientificFormat.length() + 2 > this.padding) this.padding = this.scientificFormat.length() + 2;\n this.maxToPrintWithoutSwitching = Math.pow(10,this.precision);\n this.minToPrintWithoutSwitching = 1.0/(this.maxToPrintWithoutSwitching);\n return format(arr, 0, summarize && arr.length() > localMaxPrintElements);\n }",
"public static String arrayToString(boolean[] a){\n\t\tString output = \"\";\n\t\tfor(int i=0; i<a.length; i++){\n\t\t\tif (a[i])\n\t\t\t\toutput=output+\"1\";\n\t\t\telse\n\t\t\t\toutput=output+\"0\";\n\t\t}\n\t\treturn output;\n\t}",
"public String toString(){\r\n\t\tString theString= \"\";\r\n\t\t\r\n\t\t//loop through and add values to the string\r\n\t\tfor (int i = 0; i < this.data.length; i++)\r\n\t\t{\r\n\t\t\ttheString = theString + this.data[i];\r\n\t\t\tif (i != this.data.length - 1)\r\n\t\t\t{\r\n\t\t\t\ttheString = theString + \", \";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn \"[\" + theString + \"]\";\r\n\t}",
"public static String intArrayToString(int[] intArray) {\n String ret = \"\";\n for (int i = 0; i < intArray.length; i++) {\n if (ret.length() > 0)\n ret = ret + \",\" + Integer.toString(intArray[i]);\n else\n ret = Integer.toString(intArray[i]);\n }\n return ret;\n }",
"public String getArrayValues(){\n String tempString = \"\";\r\n for(int y = 0; y < this.arraySize; y++){\r\n tempString += \" \"+this.arr[y]+\" \";\r\n }\r\n return tempString;\r\n }",
"@Override\n public String toString()\n {\n return Arrays.toString(this.toArray());\n }",
"public static String arrayToString(double[] a, String div){\n\t\tString output = \"\";\n\t\tfor(int i=0; i<a.length; i++){\n\t\t\toutput=output+\"\"+a[i];\n\t\t\tif (i<a.length-1)\n\t\t\t\toutput=output+div;\n\t\t}\n\t\treturn output;\n\t}",
"public static String arrayToString(int[] a, String div){\n\t\tString output = \"\";\n\t\tfor(int i=0; i<a.length; i++){\n\t\t\toutput=output+\"\"+a[i];\n\t\t\tif (i<a.length-1)\n\t\t\t\toutput=output+div;\n\t\t}\n\t\treturn output;\n\t}",
"@Override\n public String toString() {\n double[][] temp = matx.getArray();\n String tempstr = \"[\";\n for (int i = 0; i < temp.length; i++) {\n for (int j = 0; j < temp.length; j++) {\n tempstr += (int) temp[i][j] + \", \";\n }\n tempstr = tempstr.substring(0, tempstr.length() - 2);\n tempstr += \"]\\n[\";\n }\n return tempstr.substring(0, tempstr.length() - 2);\n }",
"private static String getToString(Object[] arr, String delim) {\n\t\tif (arr.length == 0) return \"\"; \n\t\t\n\t\tStringBuilder sb = new StringBuilder(\"[\");\n\t\t\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tif (i > 0) sb.append(delim);\n\t\t\tsb.append(arr[i] == null ? \"\" : arr[i]);\n\t\t}\n\n\t\tsb.append(\"]\");\n\t\treturn sb.toString();\n\t}",
"public static String ToString(Object[] s) {\n\t\tString ret = \"\";\n\t\tfor (int i = 0; i < s.length; i++)\n\t\t\tret += s[i];\n\t\treturn ret;\n\t}",
"public static String toString(String format, int[] array)\r\n\t{\r\n\t\tString str = \"[ \";\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tstr += String.format(format, array[i]) + \" \";\r\n\t\treturn str + \"]\";\r\n\t}",
"public String toString()\n {\n\n String elem;\n StringBuilder s = new StringBuilder();\n for(int i = 0 ; i < n ; i++)\n {\n elem = Integer.toString(array1[i]);\n s.append(elem);\n if(i < (n-1))\n s.append(',');\n }\n s.append('|');\n for(int i = 0 ; i < n ; i++)\n {\n elem = Integer.toString(array2[i]);\n s.append(elem);\n if(i < (n-1))\n s.append(',');\n }\n return s.toString();\n }",
"public String toDebugString() {\n\t\tString text = \"[ \";\n\t\tfor (int i = 0; i < data.length; i++)\n\t\t\ttext += data[i] + (i < data.length - 1 ? \", \" : \" ]\");\n\t\treturn text;\n\t}",
"public static String toString(int[][] a) {\r\n\t\tint rowNum = a.length;\r\n\t\tint colNum = a[0].length;\r\n\t\tString ret = \"\";\r\n\t\tfor (int i = 0; i < rowNum; i++) {\r\n\t\t\tfor (int j = 0; j < colNum; j++) {\r\n\t\t\t\tif (colNum == 0) {\r\n\t\t\t\t\tret += \"\\n\";\r\n\t\t\t\t}\r\n\t\t\t\tret += \"\\t\" + a[i][j];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ret;\r\n\t}",
"private static String toString (byte[] ba) {\r\n return toString(ba, 0, ba.length);\r\n }",
"public String toString() {\r\n StringBuilder result= new StringBuilder();\r\n for(int x=0;x<8;x++){\r\n for(int y=0;y<8;y++){\r\n result.append(checks[x][y]).append(\",\");\r\n }\r\n result.append(\"\\n\");\r\n }\r\n return result.toString();\r\n }",
"public static <T> String toString(T[] collection) {\n return toString(Arrays.asList(collection));\n }",
"@Override\n\tpublic String toString() {\n\t\treturn JSONFormatter.formatArray(this, 0, false).toString();\n\t}",
"public String toString() {\n String sorted = \"[\";\n for (int i = 0; i < size - 1; i++) {\n sorted = sorted + array[i] + \", \";\n }\n sorted = sorted + array[size - 1] + \"]\";\n return sorted;\n }",
"public String toString() {\r\n\t\tString salida = \"El inicio de la subsecuencia maxima es \" + izq\r\n\t\t\t\t+ \", el final \" + der + \", la suma maxima es \" + sumaMax\r\n\t\t\t\t+ \" y los datos son \";\r\n\t\tfor (int a : array)\r\n\t\t\tsalida += a + \" \";\r\n\t\treturn salida;\r\n\t}",
"public String toString() { \n\t\t String str=\"\";\n\t\t for(int i=0; i< size; i++)\n\t\t\t str += data[i]+\" \";\n\t\t return str;\n\t }",
"public String toString()\n\t{\n\t\tSystem.out.print(\"Array list contains: [ \");\n\t\tfor(int i=0; i<size; i++)\n\t\t\tSystem.out.print(myArray[i]+ \", \");\n\t\treturn\" ]\";\n\t}",
"public static String toString(String format, double[] array)\r\n\t{\r\n\t\tString str = \"[ \";\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tstr += String.format(format, array[i]) + \" \";\r\n\t\treturn str + \"]\";\r\n\t}",
"public static String arrayToString(String[] a, String div){\n\t\tString output = \"\";\n\t\tfor(int i=0; i<a.length; i++){\n\t\t\tif (a[i].equals(\"\"))\n\t\t\t\ta[i] = \"<-_->\";\n\t\t\toutput=output+a[i];\n\t\t\tif (i<a.length-1)\n\t\t\t\toutput=output+div;\n\t\t}\n\t\t//what the fuck is this a java bug????????\n\t\tfor(int i=0; i<a.length; i++){\n\t\t\tif (a[i].equals(\"<-_->\"))\n\t\t\t\ta[i] = \"\";\n\t\t}\n\t\treturn output;\n\t}",
"public String toString(){\r\n\t\tString ret = \"MatrixArray:\\n\";\r\n\t\tfor (int i = 0; i < this.MA.length; i++) {\r\n\t\t\tfor (int j = 0; j < this.MA[i].length; j++){\r\n\t\t\t\tif (j > 0) {\r\n\t\t\t\t\tret += \", \";\r\n\t\t }\r\n\t\t ret += String.valueOf(this.MA[i][j]);\r\n\t\t\t}\r\n\t\t\tret += \"\\n\";\r\n\t\t}\r\n\t\treturn ret;\r\n\t}",
"public static String debugString(String[] arr) {\n return debugString(Arrays.asList(arr));\n }",
"private String convertToString(ArrayList<String> arr, char sep) {\n StringBuilder builder = new StringBuilder();\n // Append all Integers in StringBuilder to the StringBuilder.\n for (String str : arr) {\n builder.append(str);\n builder.append(sep);\n }\n // Remove last delimiter with setLength.\n builder.setLength(builder.length() - 1);\n return builder.toString();\n }",
"String arryToSinglelineString(int[] array,int N) {\n\t\tString str=\"\"; \n\t\tfor(int i=0;i<N;i++)\n\t\t\tstr=str+String.valueOf(array[i])+\" \";\n\t\treturn \"{\"+str+ \"}\";\n\t}",
"static String printArray(int[] numbers) {\n\t\tint index = 0;\r\n\t\tString array = \"\";\r\n\t\twhile (index < numbers.length) {\r\n\t\t\tarray = array + numbers[index] + \" \";\r\n\t\t\tindex++;\r\n\t\t}\r\n\t\tprintln(array);\r\n\t\treturn array;\r\n\t}",
"public String toString() {\n if (N == 0) return \"[ ]\";\n String s = \"\";\n s = s + \"[ \";\n for (int i = 0; i <= N; i++)\n s = s + a[i] + \" \";\n s = s + \"]\";\n return s;\n }",
"protected static void show(Comparable[] a) {\n\t\t\r\n\t\tString retStr = \"\";\r\n\t\tfor(int i=0 ; i< a.length; i++)\r\n\t\t\tretStr+=\" \"+a[i];\r\n\t\t\r\n\t\tSystem.out.println(retStr);\r\n\t\t\r\n\t}",
"private static String dumpArrayString(Object[] arguments) {\n StringBuilder argBuf = new StringBuilder(\"[\");\n for (int i = 0; i < arguments.length; i++) {\n if (i > 0) {\n argBuf.append(\", \");\n }\n argBuf.append(DefaultGroovyMethods.dump(arguments[i]));\n }\n argBuf.append(\"]\");\n return argBuf.toString();\n }",
"public static String[] toStringArray(int arr[])\n {\n String[] sArray = new String[arr.length];\n for(int i=0;i< arr.length;i++){\n sArray[i]=arr[i]+\"\";\n }\n return sArray;\n }",
"@Override\n public String toString()\n {\n StringBuffer sb = new StringBuffer();\n\n for (int i = 0; i < dice.length; i++)\n {\n sb.append(dice[i][0]);\n }\n\n return sb.toString();\n }",
"public String toString() {\n String res = \"\";\n \n for ( int[] row : img ) {\n for ( int x : row )\n res += x + \" \";\n res += \"\\n\";\n }\n return res;\n }",
"public String toString () {\n\t\tString resumen = \"\";\n\t\tfor (int i = 0; i < this.size(); i++) {\n\t\t\tresumen = resumen + this.get(i).toString();\n\t\t}\n\t\treturn resumen;\n\t}",
"public String toString(){\r\n\t\tString output = \"\";\r\n\t\tfor(String s: this.data){\r\n\t\t\toutput = output + s + \"\\t\";\r\n\t\t}\r\n\r\n\t\treturn output;\r\n\t}",
"public String toString() {\n Iterator<AlgFieldCollation> it = fieldCollations.iterator();\n if ( !it.hasNext() ) {\n return \"[]\";\n }\n StringBuilder sb = new StringBuilder();\n sb.append( '[' );\n for ( ; ; ) {\n AlgFieldCollation e = it.next();\n sb.append( e.getFieldIndex() );\n if ( e.direction != AlgFieldCollation.Direction.ASCENDING || e.nullDirection != e.direction.defaultNullDirection() ) {\n sb.append( ' ' ).append( e.shortString() );\n }\n if ( !it.hasNext() ) {\n return sb.append( ']' ).toString();\n }\n sb.append( ',' ).append( ' ' );\n }\n }",
"public String RoutesArrayToString(ArrayList<Route> arrayToConvert) {\n String resultString = \"\";\n StringBuilder resultStringBuilder = new StringBuilder(resultString);\n for (int i = 0; i < arrayToConvert.size(); i++) {\n if (arrayToConvert.get(i).getAirlineID() >= 0) {\n String routeString =\n arrayToConvert.get(i).getSourceAirport()\n + \" to \"\n + arrayToConvert.get(i).getDestinationAirport();\n if (i == arrayToConvert.size() - 1) {\n resultStringBuilder.append(routeString);\n } else {\n resultStringBuilder.append(routeString).append(\", \");\n }\n }\n }\n resultString = resultStringBuilder.toString();\n return resultString;\n }",
"public static void printArray(int[] arr) {\n String output = \"[ \";\n for (int i = 0; i < arr.length; i++) {\n if (i != 0) {\n output += \", \" + arr[i];\n }\n else {\n output += arr[i];\n }\n }\n output += \" ]\";\n System.out.println(output);\n }",
"private String longsToStr(int[] longs) { // convert array of longs back to string\n String result = \"\";\n// int[] a = new int[longs.length];\n for (int i = 0; i < longs.length; i++) {\n // a[i] = longToStr(longs[i]);\n // result += a[i];\n result += longToStr(longs[i]);\n }\n return result; // use Array.join() rather than repeated string appends for efficiency\n }",
"public static <T> String arrayToString(T[] list, Function<T,String> stringer) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"[\");\n\t\tfor (T i : list) {\n\t\t\tsb.append(stringer.apply(i));\n\t\t\tsb.append(\",\");\n\t\t}\n\t\tif (list.length>0)\n\t\t\tsb.deleteCharAt(sb.length()-1);\n\t\tsb.append(\"]\");\n\t\treturn sb.toString();\n\t}",
"public String toString() {\n\t\tString r = \"\";\n\t\tchar[][] a = toMatrix();\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tif (a[i][j] == '\\0')\n\t\t\t\t\tr += \"-\";\n\t\t\t\telse\n\t\t\t\t\tr += a[i][j];\n\t\t\t}\n\t\t\tr += \"\\n\";\n\t\t}\n\t\treturn r.substring(0, r.length() - 1);\n\t}",
"private void showArray() {\n\t\tSystem.out.println(Arrays.toString(this.array));\n\n\t}",
"public String toString() {\n\t \tif(size == 0) {\n\t \t\treturn \"[]\";\n\t \t}else {\n\t \t\t\n\t \t\tString result = \"[\" + elementData[0];\n\t \t\tfor(int i = 1; i < size; i++) {\n\t \t\t\tresult += \", \" + elementData[i];\n\t \t\t}\n\t \t\t\n\t \t\tresult += \"]\";\n\t \t\t\n\t \t\treturn result;\n\t \t}\n\t }",
"public String display(){\n StringBuilder str = new StringBuilder();\n\n for(int i = 0; i < 3; ++i){\n if( Array[i] != null ) {\n str.append('\\n' + Names[i] + '\\n');\n str.append(Array[i].display());\n }\n }\n return str.toString();\n }",
"public String toString() {\n String result = \"[\";\n if (!isEmpty()) {\n result += elementData[1];\n for (int i = 2; i <= size; i++) {\n result += \", \" + elementData[i];\n }\n }\n return result + \"]\";\n }",
"public String toString()\r\n\t{\r\n\t\tString s=\"\";\r\n\t\tfor(int i=0;i<n;i++)\r\n\t\t{\r\n\t\t\ts+=a[i]+\" \";\r\n\t\t}\r\n\t\treturn s;\r\n\t}",
"@Override\n public String toString() {\n StringBuilder builder = new StringBuilder();\n for (double[] b : matrix) {\n builder.append(\"\\n\");\n for (double c : b) {\n builder.append(c).append(\" \");\n }\n }\n return builder.toString();\n }",
"public static String[] toStringArray(int arr[])\r\n\t{\r\n\t\tint length = arr.length;\r\n\t\tString[] result = new String[length];\r\n\t\tfor (int i = 0; i < length; ++i) {\r\n\t\t\tresult[i] = String.valueOf(arr[i]);\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"@Override\r\n \tpublic String toString() {\r\n \t\tStringBuilder result = new StringBuilder();\r\n \t\tresult.append('[');\r\n \t\tif(numItems > 0) {\r\n \t\t\tresult.append(items[0].toString());\r\n \t\t\t// We want number of spaces to be equal to numItems - 1\r\n \t\t\tfor(int i=1; i<numItems; i++) {\r\n \t\t\t\tresult.append(' ');\r\n \t\t\t\tresult.append(items[i].toString());\r\n \t\t\t}\r\n \t\t}\r\n \t\tresult.append(']');\r\n \t\treturn result.toString();\r\n \t}",
"private static String classArrayToString(Class[] pts) {\n StringBuilder result = new StringBuilder();\n for (int i = 0; i < pts.length; i++) {\n result.append(getTypeName(pts[i]));\n if (i < pts.length - 1)\n result.append(\",\");\n }\n return result.toString();\n }",
"public String toString(){\n String string = new String();\n for(int i = 0; i < axis.length; i++){\n string += axis[i];\n if(i != (axis.length - 1)){\n string += \" / \";\n }\n }\n return string;\n }",
"public static String toString(final Object[] objs) {\r\n\t\tfinal StringBuilder sb = new StringBuilder();\r\n\t\tsb.append('[');\r\n\t\tif (objs != null) {\r\n\t\t\tint i = 0;\r\n\t\t\tfor (final Object obj : objs) {\r\n\t\t\t\tsb.append(obj.toString());\r\n\t\t\t\tif (i < (objs.length - 1)) {\r\n\t\t\t\t\tsb.append(',');\r\n\t\t\t\t}\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tsb.append(']');\r\n\t\treturn sb.toString();\r\n\t}",
"public static String convertCoordinatesArrayToString(ArrayList<LatLng> coordsArray){\n String result = \"\";\n LatLng coord;\n for (int i=0; i < coordsArray.size(); i+=1) {\n coord = coordsArray.get(i);\n result += coord.latitude + \",\";\n result += coord.longitude;\n if (i+1 < coordsArray.size()){\n result += \",\";\n }\n }\n return result;\n }",
"public static <E> String[] toStringArray(final E[] array) {\n String[] stringList = null;\n if (array != null) {\n stringList = new String[array.length];\n for (int i = 0; i < array.length; i++) {\n if (array[i] != null) {\n stringList[i] = array[i].toString();\n } else {\n stringList[i] = null;\n }\n }\n }\n return stringList;\n }",
"public String toString() {\n String temp = \"\";\n temp += \"[ \";\n for (int i = 0; i < elements.length - 1; i++) {\n temp += elements[i] + \",\";\n }\n temp += elements[this.elements.length - 1];\n temp += \" ]\\n\";\n return temp;\n }"
]
| [
"0.7807411",
"0.77973855",
"0.7779461",
"0.7690712",
"0.76893157",
"0.76122224",
"0.7479306",
"0.7451991",
"0.74338216",
"0.74338216",
"0.7433607",
"0.74075025",
"0.7406094",
"0.7337772",
"0.7242021",
"0.72258437",
"0.7225369",
"0.72119975",
"0.72115475",
"0.7160515",
"0.7158943",
"0.7125038",
"0.7116829",
"0.70864135",
"0.70471823",
"0.7024747",
"0.69908565",
"0.69395864",
"0.693207",
"0.6927244",
"0.69244516",
"0.69054717",
"0.6874466",
"0.686931",
"0.68669593",
"0.68650675",
"0.68628776",
"0.68588185",
"0.6848867",
"0.6839718",
"0.67696047",
"0.67565787",
"0.67554796",
"0.670598",
"0.66883767",
"0.6683742",
"0.6680595",
"0.66565484",
"0.66536367",
"0.66342777",
"0.6627298",
"0.660892",
"0.6606986",
"0.66035277",
"0.6596095",
"0.65907955",
"0.65857095",
"0.6577716",
"0.65667516",
"0.6555336",
"0.6554206",
"0.6547676",
"0.65454274",
"0.65355057",
"0.6529805",
"0.6490664",
"0.6480626",
"0.6479107",
"0.6478626",
"0.6477594",
"0.6462358",
"0.64506507",
"0.64425975",
"0.6440491",
"0.6421959",
"0.6409507",
"0.63832986",
"0.63796777",
"0.6370839",
"0.63707113",
"0.6364135",
"0.6352086",
"0.63295",
"0.63185763",
"0.6302754",
"0.6288664",
"0.628059",
"0.6270227",
"0.626418",
"0.62443125",
"0.62406427",
"0.62395024",
"0.623716",
"0.6229405",
"0.6222596",
"0.62091976",
"0.62071776",
"0.6202755",
"0.62012523",
"0.6199086"
]
| 0.6359758 | 81 |
Resets the array to its original configuration and return it. | public int[] reset()
{
return reset;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int[] reset() {\n\t\t\treturn originalArr;\n\t\t}",
"public int[] reset() {\n return Arrays.copyOf(origin, origin.length);\n }",
"public int[] reset() {\r\n return reset;\r\n }",
"public int[] reset() {\n return store;\n }",
"private int[] reset() {\n return data;\n }",
"public int[] reset() {\n return nums.clone();\n }",
"private T[] modifyArray(T[] array) {\n array[index] = null;\n return array;\n }",
"@SuppressWarnings({\"unused\", \"RedundantSuppression\"})\n public void resetArray() {\n Utils.postToMainLoop(new Runnable() {\n @Override\n public void run() {\n mBaseCacheAdapter.resetArray();\n mBaseRecyclerViewAdapter.notifyDataSetChanged();\n }\n\n @NonNull\n @Override\n public String toString() {\n return \"BaseCacheAdapterWrapper.resetArray()\";\n }\n });\n }",
"public static int[] reset() {\n nums = Arrays.copyOf(numsBackUp, numsBackUp.length);\n return nums;\n }",
"@Override\n public void clear() {\n array.reset();\n }",
"public void compact()\n {\n array = toArray();\n }",
"void reset() {\n for (int i = 0; i < array.length; i++) {\n array[i] = -1;\n }\n }",
"public int[] reset() {\n\t\treturn memos;\n\t}",
"private void reset(){\n int j=0;\n for(int i=0; i<array.length; i++){\n if(j == itemCount) {return;}\n if(array[i]!=null){\n temp[j] = array[i];\n j++;\n }\n }\n }",
"public int[] reset() {\n System.out.println(Arrays.toString(soluzioneIniziale));\n return soluzioneIniziale;\n }",
"private void restartArray() {\n for (int i = 0; i < 8; i++) {\n for (int j = 0; j < 8; j++) {\n Start.shemaArray[i][j].baseModel.state = 0;\n }\n }\n }",
"public int[] reset() {\r\n return nums;\r\n }",
"public int[] reset() {\n return nums;\n }",
"public int[] reset() {\n return nums;\n }",
"public int[] reset() {\n return nums;\n }",
"public int[] reset() {\n return nums;\n }",
"public int[] reset() {\n return nums;\n }",
"public int[] reset() {\n return nums;\n }",
"public int[] reset() {\n return nums;\n }",
"public GoLBoard reset()\n\t{\n\t\treturn reset(new GoLRandomInitializer(setSize));\n\t}",
"void reset()\n {\n reset(values);\n }",
"public int[] clone()\n\t{\t\n\t\tint[] newArray = new int[array.length];\n\t\tfor (int index = 0; index < arraySize; index++)\n\t\t{\n\t\t\tnewArray[index] = array[index];\n\t\t}\n\t\treturn newArray;\n\t}",
"public int[] reset() {\r\n\t\t\treturn this.initNums;\r\n\t\t}",
"@Override\r\n\tpublic void reset() {\r\n\t\tthis.priorityElements = Lists.newArrayList(originalElements);\r\n\t\tCollections.shuffle(priorityElements);\r\n\t\tthis.currentElements = Lists.newArrayListWithExpectedSize(2 * originalElements.size());\r\n\t\tthis.currentElements.addAll(originalElements);\r\n\t}",
"public void restore() {\n currentIm= originalIm.copy();\n }",
"public void resetChangeableArrays(int[] reg)\n {\n valList = new LinkedList<Integer>();\n possibilityList = new LinkedList<Point>();\n for(int j = 0; j<accumulator.length; j ++)Arrays.fill(accumulator[j],0);\n //accumulator = zeroAccumulator;\n region = reg;\n \n }",
"private int[] cloneArr(final int[] origArr) {\n return Arrays.copyOf(origArr, origArr.length);\n }",
"public void reset_array() {\r\n\t\tfor(int i=0;i<9;i++) {\r\n\t\t\ts[i]=\"\";\r\n\t\t}\r\n\t}",
"public Array<T> compactClone()\n {\n Array<T> out = Array.fromUnsafe(new Object[next], next);\n System.arraycopy(array, 0, out.array, 0, next);\n return out;\n }",
"public int[] shuffle() {\n\t\t\tif (originalArr == null)\n\t\t\t\treturn null;\n\t\t\tint randomArr[] = originalArr.clone();\n\t\t\tfor (int i = 1; i < originalArr.length; i++) {\n\t\t\t\tint newIndex = random.nextInt(i + 1);\n\t\t\t\tswap(i, newIndex, randomArr);\n\t\t\t}\n\t\t\treturn randomArr;\n\t\t}",
"public void reset() {\n for (int i = 0; i < this.numRows; i++) {\n this.rows[i] = new int[0];\n }\n for (int k = 0; k < this.numCols; k++) {\n this.cols[k] = new IntOpenHashSet();\n }\n }",
"public UnorderedArray cloneArray(){\r\n UnorderedArray clone = new UnorderedArray(maxSize);\r\n clone.mArray = mArray.clone();\r\n clone.numItems = numItems;\r\n return clone;\r\n }",
"public OccList reset()\n {\n size = 0;\n return this;\n }",
"private void reset() {\n\t\tdata.clear();\n\t}",
"public void reSize() {\n int newSize = arr.length * 2;\n arr = Arrays.copyOf(arr, newSize);\n }",
"public void reset() {\n this.setIndex(0);\n }",
"private void resetMask() {\n maskArray = new int [][]{\n {0,0,0,0},\n {0,0,0,0},\n {0,0,0,0},\n {0,0,0,0}\n };\n }",
"public void reset() {\n this.predictor.reset();\n for(int i=0; i<this.predictedIntraday.length; i++) {\n this.predictedIntraday[i] = 0;\n }\n }",
"public void reset() {\n\t\tlength = 0;\n\t}",
"@Override\n public void resetAllValues() {\n }",
"private static void modifyArray(int[] array) {\n\t\t\n\t\tarray[0] = 99;\n\t\t\n\t\tarray = new int[5] ;\n\t\treturn;\n\t}",
"public GoLBoard reset(GoLInitializer myInitializer)\n\t{\n \tmyGoLCell = myInitializer.getCellArray();\n \treturn this;\n\t}",
"protected void recycleArray(Bitmap[][] array)\n\t{\n\t\tint length = array.length;\n\t\tfor(int i = 0; i < length; i++)\n\t\t{\n\t\t\tif(array[i] != null)\n\t\t\t{\n\t\t\t\tint length2 = array[i].length;\n\t\t\t\tfor(int j = 0; j < length2; j++)\n\t\t\t\t{\n\t\t\t\t\tif(array[i][j] != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tarray[i][j].recycle();\n\t\t\t\t\t\tarray[i][j] = null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void resetGrid() {\n grid = new byte[grid.length];\n }",
"public void reset() {\n\t\tinit(0, 0, 1, false);\n\t}",
"@Override\n public void clear() {\n array = null;\n }",
"@Override\n\tpublic void resetToExisting() {\n\t\t\n\t}",
"private void reallocate() {\n capacity = 2 * capacity;\n ElementType[] newData = (ElementType[]) new Object[DEFAULT_INIT_LENGTH];\n System.arraycopy(elements, 0, newData, 0, size);\n elements = newData;\n }",
"public static void fillArray() {\r\n\t\tfor (int i = 0; i < myOriginalArray.length - 1; i++) {\r\n\t\t\tRandom rand = new Random();\r\n\t\t\tmyOriginalArray[i] = rand.nextInt(250);\r\n\t\t}\r\n\t\t// Copies original array 4 times for algorithm arrays\r\n\t\tmyBubbleArray = Arrays.copyOf(myOriginalArray, myOriginalArray.length);\r\n\t\tmySelectionArray = Arrays.copyOf(myOriginalArray, myOriginalArray.length);\r\n\t\tmyInsertionArray = Arrays.copyOf(myOriginalArray, myOriginalArray.length);\r\n\t\tmyQuickArray = Arrays.copyOf(myOriginalArray, myOriginalArray.length);\r\n\t}",
"public void reset() {\n this.index = this.startIndex;\n }",
"protected void recycleArray(Bitmap[] array)\n\t{\n\t\tint length = array.length;\n\t\tfor(int i = 0; i < length; i++)\n\t\t{\n\t\t\tif(array[i] != null)\n\t\t\t{\n\t\t\t\tarray[i].recycle();\n\t\t\t\tarray[i] = null;\n\t\t\t}\n\t\t}\n\t}",
"public DynamicArray<E> copy(DynamicArray<E> array) {\n synchronized (this) {\n return this.array;\n }\n }",
"public void reset() {\n\t\t\t\t\r\n\t\t\t}",
"public void reset() {\n\t\tfor (int i=0; i < this.WAYS; i++) {\n\t\t\tthis.cache[i] = new Line(this.alpha[i], REPL_VAL);\n\t\t}\n\t\t// set mru\n\t\tthis.cache[this.WAYS-1].state = INSERT_VAL;\n\t}",
"public int[] cloneMemory(){\n return memory.clone();\n }",
"public void reset () {\n\t\topen();\n\t\ttry {\n\t\t\tcontainer.setLength(0);\n\t\t\treservedBitMap.setLength(0);\n\t\t\tupdatedBitMap.setLength(0);\n\t\t\tfreeList.setLength(0);\n\t\t\tsize = 0;\n\t\t}\n\t\tcatch (IOException ie) {\n\t\t\tthrow new WrappingRuntimeException(ie);\n\t\t}\n\t}",
"public void resetField() {\n setFields(new boolean[getLength()][getHeight()]);\n }",
"@Override\r\n\t\t\tpublic void reset() {\n\t\t\t\t\r\n\t\t\t}",
"public void newArray() {\n\t\t\n\t\tE[] newArray= (E[]) new Object[list.length * 2]; //Holds the old elements from the list array while new list array is being made\n\t\t\n\t\tfor(int i = 0; i < list.length; i++) {\n\t\t\t\n\t\t\tnewArray[i] = list[i]; //Copy the old list array into the newArray\n\t\t}\n\t\t\n\t\tlist = newArray; //Point the old array at the newArray starting memory location\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n public final T[] obtainArrayCopy() {\n final T[] localArray = array;\n if (localArray == null) return (T[]) Array.newInstance(clazz, 0);\n\n return Arrays.copyOf(localArray, localArray.length);\n }",
"private void trimArray()\r\n\t\t{\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"[INFO] <RADIOBUTTON_PANEL_BUILDER> Running trimArray\");\r\n\t\t\t\r\n\t\t\tJRadioButton[] newArray = new JRadioButton[nextRadioButtonLocation]; // Create a new array of the correct size\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < nextRadioButtonLocation; i++) // For each object in the array\r\n\t\t\t{\r\n\t\t\t\tnewArray[i] = radioButtons[i]; // Copy the object\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tradioButtons = newArray; // Store the new trimmed array in components\r\n\t\t}",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"private void reallocate(){\n capacity = 2 * capacity;\n theData = Arrays.copyOf(theData, capacity);\n }",
"public void reset () {}",
"public void reset() {\n\n\t}",
"@Override\r\n\tpublic void reset()\r\n\t{\r\n\t}",
"@Override\n\t\tprotected void reset()\n\t\t{\n\t\t}",
"private final void restoreOriginalGraph() {\n // Safeguard against multiple restores\n if (startIndex == -1) return;\n \n markEdgesFrom(startIndex, false);\n markEdgesFrom(endIndex, false);\n markHasEdgeToGoal(false);\n nOutgoingEdgess[endIndex] = endOriginalSize;\n nOutgoingEdgess[startIndex] = startOriginalSize;\n nEdges = originalNEdges;\n\n nNodes = originalSize;\n startIndex = -1;\n endIndex = -1;\n }",
"public ResizingArray() {\r\n super();\r\n this.aObjects = new Object[ResizingArray.DEFAULT_SIZE];\r\n this.aFreeElements = new int[ResizingArray.DEFAULT_SIZE];\r\n }",
"public void reallocate()\r\n\t{\r\n\t\tE[] newArray = (E[]) new Object[capacity * 2];\r\n\t\tint i = 0;\r\n\t\tfor(i = 0; i < this.size(); i++)\r\n\t\t{\r\n\t\t\tnewArray[i] = innerArray[(front + i) % capacity];\r\n\t\t\tSystem.out.println((front + i) % capacity);\r\n\t\t}\r\n\t\tfront = 0;\r\n\t\trear = this.size() - 1;\r\n\t\tcapacity = capacity * 2;\r\n\t\tinnerArray = newArray;\r\n\t}",
"public void reset(final byte[] treeData) {\n \t\traw = treeData;\n \t\trawPtr = 0;\n \t}",
"protected abstract void reset();",
"public void reset() {\r\n\t\tcards.addAll(dealt);\r\n\t\tdealt.clear();\r\n\t}",
"public void reset() {\n\n }",
"public OpRewriter reset() {\n result = OpSequence.create();\n return this;\n }",
"public static int[] copy(int[] theArray) {\n\n return theArray.clone();\n }",
"private static void resetGroupLineArrays() {\n // Reset the arrays to make sure that we have uptodate information in them\n itemsArray = null;\n itemsArrayForAlterations = null;\n itemsArrayForOpenDeposit = null;\n }",
"public T[] toArray() {\n return null;\n }",
"@Override\n public void reset() \n {\n\n }",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();"
]
| [
"0.7683946",
"0.697118",
"0.6904059",
"0.6714145",
"0.6640303",
"0.64434683",
"0.6318128",
"0.6288678",
"0.62609303",
"0.6259935",
"0.6196086",
"0.6185046",
"0.6129283",
"0.60915095",
"0.601098",
"0.60055953",
"0.5967921",
"0.59418577",
"0.59418577",
"0.59418577",
"0.59418577",
"0.59418577",
"0.59418577",
"0.59418577",
"0.5872889",
"0.5870918",
"0.57786286",
"0.5768219",
"0.57543355",
"0.5716322",
"0.5685787",
"0.56746763",
"0.5663266",
"0.5663077",
"0.56539774",
"0.5636272",
"0.56317455",
"0.5601983",
"0.55621237",
"0.5538473",
"0.55365205",
"0.5524326",
"0.55232364",
"0.5515195",
"0.5507188",
"0.54990935",
"0.54981965",
"0.54725003",
"0.54724085",
"0.54705334",
"0.54596317",
"0.54540956",
"0.542261",
"0.54031897",
"0.5390596",
"0.53796774",
"0.5376527",
"0.53748786",
"0.53740066",
"0.53673774",
"0.5346156",
"0.5341975",
"0.53368694",
"0.53350514",
"0.5333946",
"0.5333095",
"0.53167206",
"0.53167206",
"0.53167206",
"0.53167206",
"0.5314903",
"0.53133017",
"0.52908844",
"0.5282181",
"0.5277244",
"0.52719283",
"0.52713454",
"0.5267086",
"0.52567065",
"0.5256291",
"0.5249986",
"0.5246228",
"0.5242759",
"0.5241111",
"0.52362406",
"0.52356803",
"0.52347755",
"0.5230565",
"0.5230565",
"0.5230565",
"0.5230565",
"0.5230565",
"0.5230565",
"0.5230565",
"0.5230565",
"0.5230565",
"0.5230565",
"0.5230565",
"0.5230565",
"0.5230565"
]
| 0.68361205 | 3 |
Returns a random shuffling of the array. | public int[] shuffle()
{
List<Integer> al = new ArrayList(reset.length);
//push all values of the original array onto an arraylist
for(int i = 0; i < reset.length; i++)
{
al.add(reset[i]);
}
//shuffles the arraylist
Collections.shuffle(al);
return al.stream().mapToInt(Integer::intValue).toArray();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int[] shuffle() {\n int len = data_random.length;\n Random rand = new Random();\n for (int i = 0; i < len; i++) {\n int r = rand.nextInt(len);\n int temp = data_random[i];\n data_random[i] = data_random[r];\n data_random[r]=temp;\n }\n return data_random;\n }",
"public int[] shuffle() {\n\t\t\tif (originalArr == null)\n\t\t\t\treturn null;\n\t\t\tint randomArr[] = originalArr.clone();\n\t\t\tfor (int i = 1; i < originalArr.length; i++) {\n\t\t\t\tint newIndex = random.nextInt(i + 1);\n\t\t\t\tswap(i, newIndex, randomArr);\n\t\t\t}\n\t\t\treturn randomArr;\n\t\t}",
"public int[] shuffle() {\n int[] result = reset();\n\n Random rand = new Random();\n for (int i = 0; i < result.length; i++) {\n int j = rand.nextInt(result.length - i) + i;\n int tmp = result[i];\n result[i] = result[j];\n result[j] = tmp;\n }\n return result;\n }",
"private static void shuffleArray(int[] array)\n {\n int index, temp;\n Random random = new Random();\n for (int i = array.length - 1; i > 0; i--)\n {\n index = random.nextInt(i + 1);\n temp = array[index];\n array[index] = array[i];\n array[i] = temp;\n }\n }",
"Actor[] shuffle(Actor[] array) {\n for (int i = array.length; i > 0; i--) {\n int k = rand.nextInt(i);\n Actor tmp = array[k];\n array[k] = array[i - 1];\n array[i - 1] = tmp;\n }\n return array;\n }",
"public static <T> void shuffle(T[] array){\n Random rnd = ThreadLocalRandom.current();\n for (int i = array.length - 1; i > 0; i--)\n {\n int index = rnd.nextInt(i + 1);\n // Simple swap\n T a = array[index];\n array[index] = array[i];\n array[i] = a;\n }\n }",
"public static <T> void shuffle(T[] array){\n Random rnd = ThreadLocalRandom.current();\n for (int i = array.length - 1; i > 0; i--)\n {\n int index = rnd.nextInt(i + 1);\n // Simple swap\n T a = array[index];\n array[index] = array[i];\n array[i] = a;\n }\n }",
"private static void shuffleArray(final int[] a) {\n for (int i = 1; i < a.length; i++) {\n int j = random.nextInt(i);\n int temp = a[i];\n a[i] = a[j];\n a[j] = temp;\n }\n }",
"private static void shuffleArray(int[] ar) {\n Random rnd = ThreadLocalRandom.current();\n for (int i = ar.length - 1; i > 0; i--) {\n int index = rnd.nextInt(i + 1);\n int a = ar[index];\n ar[index] = ar[i];\n ar[i] = a;\n }\n }",
"public void shuffle();",
"public int[] shuffle() {\r\n if (nums == null) return nums;\r\n int tmp = 0;\r\n \r\n int[] newNums = nums.clone();\r\n \r\n for (int i=1; i<newNums.length; i++) {\r\n int selectPos = rd.nextInt(i+1);\r\n tmp = newNums[i];\r\n newNums[i] = newNums[selectPos];\r\n newNums[selectPos] = tmp;\r\n }\r\n \r\n return newNums;\r\n }",
"public int[] shuffle() {\r\n int max = nums.length - 1;\r\n for (int i = 0; i < nums.length; i++) {\r\n int index = new Random().nextInt(max)%(max - i + 1) + i;\r\n int tmp = nums[i];\r\n nums[i] = nums[index];\r\n nums[index] = tmp;\r\n }\r\n return nums;\r\n }",
"public static void shuffle(int[] array)\n {\n int n = array.length;\n for (int i = 0; i < n; i++)\n {\n // choose index uniformly in [0, i]\n //explicit conversion to int\n int r = (int) (Math.random() * (i + 1));\n swap(array,r,i);\n }\n }",
"public int[] shuffle() {\n for (int i = nums.length - 1; i >= 0; i--) {\n swap(i, rnd.nextInt(i + 1));\n }\n \n return nums;\n }",
"void shuffleArray(String[] ar) {\n for (int i = ar.length - 1; i > 0; i--) {\n int index = rnd.nextInt(i + 1);\n // Simple swap\n String a = ar[index];\n ar[index] = ar[i];\n ar[i] = a;\n }\n }",
"void shuffle();",
"void shuffle();",
"private static char[] shuffle(char[] array) {\n\t\tRandom rand = new Random();\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tint randIndex = rand.nextInt(array.length - 1);\n\t\t\tchar temp = array[i];\n\t\t\tarray[i] = array[randIndex];\n\t\t\tarray[randIndex] = temp;\n\t\t}\n\t\treturn array;\n\t}",
"public static void shuffle(int[] a) {\r\n int N = a.length;\r\n for (int i = 0; i < N; i++) {\r\n int r = i + uniform(N-i); // between i and N-1\r\n int temp = a[i];\r\n a[i] = a[r];\r\n a[r] = temp;\r\n }\r\n }",
"public void shuffle() {\n for (int i = size - 1; i > 0; i--) {\n swap(i, (int)(Math.random() * (i + 1)));\n }\n }",
"public static void shuffle( int[] a ) {\n int N = a.length;\n \n for ( int i = 0; i < N; i++ ) {\n int r = i + uniform( N - i ); // between i and N-1\n int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }",
"public static int[] shuffle() {\n Random random = new Random();\n for (int i = 0; i < len; i++) {\n int j = random.nextInt(len);\n int temp = nums[i];\n nums[i] = nums[j];\n nums[j] = temp;\n }\n return nums;\n }",
"static void shuffleArray(String[] ar)\r\n {\n Random rnd = ThreadLocalRandom.current();\r\n for (int i = ar.length - 1; i > 0; i--)\r\n {\r\n int index = rnd.nextInt(i + 1);\r\n // Simple swap\r\n String a = ar[index];\r\n ar[index] = ar[i];\r\n ar[i] = a;\r\n }\r\n }",
"public int[] shuffle() {\n if (nums == null) {\n return null;\n }\n int[] a = nums.clone();\n for (int j = 1; j < a.length; j++) {\n // 类似蓄水池采样算法\n // i == j -> 1/(1+j)\n // j != j -> (1 - 1/(1+j)) * (1/j) = 1/(1/j)\n int i = random.nextInt(j + 1);\n swap(a, i, j);\n }\n return a;\n }",
"public int[] shuffle() {\n int[] shuffle = nums.clone();\n for(int i = 0; i < shuffle.length; i++){\n int index = random.nextInt(i + 1);\n swap(shuffle,i,index);\n }\n return shuffle;\n }",
"public int[] shuffle() {\n int i = random.nextInt(nums.length);\n int j = random.nextInt(nums.length);\n swap(temp, i , j);\n return temp;\n }",
"public int[] shuffle() {\n int[] shuffle = new int[nums.length];\n int[] clone = nums.clone();\n int last = clone.length - 1;\n for(int i = 0; i < clone.length; i++){\n int index = random.nextInt(last + 1);\n shuffle[i] = clone[index];\n clone[index] = clone[last--];\n }\n return shuffle;\n }",
"public int[] shuffle() {\n int[] res = new int[nums.length];\n int r;\n for (int i = 0; i < nums.length; i++) {\n r = random.nextInt(i + 1);\n res[i] = res[r];\n res[r] = nums[i];\n }\n\n\n return res;\n }",
"static void shuffleArray(int[] ar) {\n Random rnd = new Random();\n for (int i = ar.length - 1; i > 0; i--) {\n int index = rnd.nextInt(i + 1);\n // Simple swap\n int a = ar[index];\n ar[index] = ar[i];\n ar[i] = a;\n }\n }",
"public int[] shuffle() {\n int[] random = new int[nums.length];\n for (int i = 0; i < nums.length; i++) {\n // generate a random between 0 ~ i\n int r = (int)(Math.random() * (i + 1));\n random[i] = random[r];\n random[r] = nums[i];\n }\n return random;\n }",
"public static void shuffle( Object[] a ) {\n int N = a.length;\n for ( int i = 0; i < N; i++ ) {\n int r = i + uniform( N - i ); // between i and N-1\n Object temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }",
"public int[] shuffle() {\n\t\tRandom r = new Random();\n\t\tfor (int i = 0; i < this.nums.length; i++) {\n\t\t\tint index = r.nextInt(this.nums.length);\n\t\t\tif (i != index) {\n\t\t\t\tnums[i] = nums[i] ^ nums[index];\n\t\t\t\tnums[index] = nums[i] ^ nums[index];\n\t\t\t\tnums[i] = nums[i] ^ nums[index];\n\t\t\t}\n\t\t}\n\t\treturn nums;\n\t}",
"public void shuffle() {\n for (int i = 0; i < this.cards.length ; i++ ) {\n double x = Math.floor(Math.random() * ((double)this.cards.length - (double)0)) + (double)0;\n Card temp = this.cards[i];\n this.cards[i]= this.cards[(int)x];\n this.cards[(int)x]= temp;\n }\n }",
"public static int[] selectionShuffle(int[] arr) { \n int temp;\n int idx;\n for(int i = 0; i < arr.length; i ++){\n idx = (int) (Math.random() * arr.length);\n temp = arr[i];\n arr[i] = arr[idx];\n arr[idx] = temp;\n }\n return arr;\n }",
"public static void shuffle(Object[] a) {\r\n int N = a.length;\r\n for (int i = 0; i < N; i++) {\r\n int r = i + uniform(N-i); // between i and N-1\r\n Object temp = a[i];\r\n a[i] = a[r];\r\n a[r] = temp;\r\n }\r\n }",
"public int[] shuffle() {\n int[] shuffled = Arrays.copyOf(origin, origin.length);\n \n for (int i = shuffled.length - 1; i > 0; i--) {\n int index = random.nextInt(i + 1);\n int temp = shuffled[i];\n shuffled[i] = shuffled[index];\n shuffled[index] = temp;\n }\n return shuffled;\n }",
"public static void shuffle(double[] a) {\r\n int N = a.length;\r\n for (int i = 0; i < N; i++) {\r\n int r = i + uniform(N-i); // between i and N-1\r\n double temp = a[i];\r\n a[i] = a[r];\r\n a[r] = temp;\r\n }\r\n }",
"public static void shuffle( double[] a ) {\n int N = a.length;\n \n for ( int i = 0; i < N; i++ ) {\n int r = i + uniform( N - i ); // between i and N-1\n double temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }",
"public static void shuffle(String[] arrayList){\n int num=arrayList.length; \n for(int j=0;j<60;j++){ // the number of shuffling>50 times, so I choose 60 times\n for(int i=0;i<num;i++){ \n int index=(int)(Math.random()*num);\n //Swap the position of elements in the array at that index with the first element\n String temp=arrayList[i]; \n arrayList[i]=arrayList[index];\n arrayList[index]=temp;\n }}}",
"public void shuffle()\r\n\t{\r\n\t\tRandom rand = ThreadLocalRandom.current();\r\n\t\t\r\n\t\tfor (int i = topCard; i > 0; i--)\r\n\t\t{\r\n\t\t\tint index = rand.nextInt(i + 1);\r\n\t\t\tString temp = cards[index];\r\n\t\t\tcards[index] = cards[i];\r\n\t\t\tcards[i] = temp;\r\n\t\t}\r\n\t}",
"public int[] shuffle() {\n int[] shuffled = new int[length];\n for (int i = 0; i < length; i++)\n shuffled[i] = nums[i];\n for (int i = 0; i < length; i++) {\n int randomIndex = (int) (Math.random() * length);\n int temp = shuffled[i];\n shuffled[i] = shuffled[randomIndex];\n shuffled[randomIndex] = temp;\n }\n return shuffled;\n }",
"static public <T> void shuffle(T[] a, RNG rng) {\r\n\r\n for (int i = a.length - 1; i > 0; i--) {\r\n int j = (int) rng.random((i + 1));\r\n //System.out.println(j);\r\n T x = a[i];\r\n a[i] = a[j];\r\n a[j] = x;\r\n }\r\n \r\n }",
"private static void scrambleArray(int[] a, boolean randomize) {\n\t\tfor (int k = 0; k < a.length; k++)\n\t\t\ta[k] = k;\n\t\tif (randomize) // use unpredictable random shuffle\n\t\t{\n\t\t\tRandom gen = new Random();\n\t\t\tfor (int k = 0; k < a.length; k++) {\n\t\t\t\tswap(a, k, gen.nextInt(a.length));\n\t\t\t}\n\t\t} else // use repeatable math formula for shuffle\n\t\t{\n\t\t\tint cell = (int) (a.length * 3.14159) % a.length;\n\t\t\tfor (int k = 0; k < a.length; k++) {\n\t\t\t\tswap(a, k, cell);\n\t\t\t\tcell = (int) (cell * 3.14159) % a.length;\n\t\t\t}\n\t\t}\n\n\t}",
"public static void shuffle(int data[]) {\n\n }",
"public static int[] shuffle(int[] deck){\n\t\tRandom rnd = new Random();\n\t for (int i = deck.length - 1; i > 0; i--)\n\t {\n\t int index = rnd.nextInt(i + 1);\n\t int a = deck[index];\n\t deck[index] = deck[i];\n\t deck[i] = a;\n\t }\n\t return deck;\n\t}",
"public int[] shuffle() {\r\n\t\t\tRandom r = new Random();\r\n\t\t\tint[] shuffle = new int[this.nums.length];\r\n\t\t\tint i = 0;\r\n\t\t\tMap<Integer, Boolean> map = new HashMap<Integer, Boolean>();\r\n\t\t\twhile (i < this.nums.length) {\r\n\t\t\t\tint count = r.nextInt(this.nums.length);\r\n\t\t\t\tif (map.get(count) != null && map.get(count)) {\r\n\t\t\t\t} else {\r\n\t\t\t\t\tshuffle[i] = this.nums[count];\r\n\t\t\t\t\ti++;\r\n\t\t\t\t\tmap.put(count, true);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn shuffle;\r\n\t\t}",
"public void shuffle() {\n\t\tCollections.shuffle(inds);\n\t}",
"public void shuffle() {\n\t\tCollections.shuffle(Arrays.asList(reel));\n\t}",
"@Override\n public <T> T[] shuffle(T[] elements) {\n return super.shuffle(elements);\n }",
"public void shuffle() {\n Collections.shuffle(this);\n }",
"public void shuffle() {\r\n for (int i = 0; i < this.numCards; i++) {\r\n int spot = (int) (Math.random() * ((this.numCards - 1) - i + 1) + i);\r\n Card temp = cards[i];\r\n cards[i] = cards[spot];\r\n cards[spot] = temp;\r\n\r\n\r\n }\r\n }",
"public paintIntegers[] shuffle(paintIntegers[] arr){\n paintIntegers[] arrayNew = new paintIntegers[arr.length];\n paintIntegers.initPaint(arrayNew);\n //updates n\n n = arr.length;\n for(int i = 0; i < arrayNew.length; i++){\n arrayNew[i].val = i + 1;\n }//init the array with 0 to n;\n for(int i = 0; i < arrayNew.length; i++){ // shuffles the array\n //random index past current -> thats why random\n int ridx = i + rand.nextInt(arrayNew.length - i);\n //swap values\n int temp = arrayNew[ridx].val;\n arrayNew[ridx].val = arrayNew[i].val;\n arrayNew[i].val = temp;\n }\n // new origarray array\n return arrayNew.clone();\n }",
"static void shuffleArray(String[] ar) {\n Random rnd = new Random();\n for (int i = ar.length - 1; i > 0; i--) {\n int index = rnd.nextInt(i + 1);\n // Simple swap\n String a = ar[index];\n ar[index] = ar[i];\n ar[i] = a;\n }\n }",
"public static void scrambledArray(int[] array){\n Random rand=new Random();// use java.util.random method to scramble the index number\n for(int i=0;i<array.length;i++){\n int num=rand.nextInt(15);\n // swap the two different positioned values by swaping their index number \n int temp=array[i];\n array[i]=array[num];\n array[num]=temp; }\n }",
"public abstract void shuffled();",
"public Deck randomShuffle(){\n\t\tshuffleOnceRandom();\n\t\tshuffleOnceRandom();\n\t\treturn ourDeck;\n\t}",
"public static List arrayShuffle(List arrayToShuffle)\n\t{\n\t\tCollections.shuffle(arrayToShuffle);\n\t\treturn arrayToShuffle;\n\t}",
"public void shuffle() {\n\t\tfor (int i = deck.length - 1; i > 0; i--) {\n\t\t\tint rand = (int) (Math.random() * (i + 1));\n\t\t\tCard temp = deck[i];\n\t\t\tdeck[i] = deck[rand];\n\t\t\tdeck[rand] = temp;\n\t\t}\n\t\tcardsUsed = 0;\n\t}",
"void myshuffleArray(String[] ar1, String[] ar2) {\n for (int i = ar1.length - 1; i > 0; i--) {\n int index = rnd.nextInt(i+1);\n // Simple swap\n String a1 = ar1[index];\n String a2 = ar2[index];\n ar1[index] = ar1[i];\n ar2[index] = ar2[i];\n ar1[i]=a1;\n ar2[i]=a2;\n }\n }",
"public void shuffle() {\n\t\tfor (int i = 51; i > 0; i--) {\n\t\t\tint rand = (int) (Math.random() * (i + 1));\n\t\t\tint temp = deck[i];\n\t\t\tdeck[i] = deck[rand];\n\t\t\tdeck[rand] = temp;\n\t\t}\n\t\tcurrentPosition = 0;\n\t}",
"public static void knuthShuffle(Comparable[] a) {\n int r, n = a.length;\n for (int i = 1; i < n; i++) {\n r = randInt(0, i);\n exch(a, i, r);\n }\n }",
"public void Shuffle() {\n\t\tCollections.shuffle(cards);\n\t}",
"public void shuffle()\n\t{\n\t\tHashSet<Integer> usedRandoms = new HashSet<Integer>();\n\t\tthis.currentCard = 0;\n\t\tint i= 0;\n\t\twhile (i < deck.length)\n\t\t{\n\t\t\tint another = this.rand.nextInt(NUMBER_OF_CARDS);\n\t\t\tif(!usedRandoms.contains(another))\n\t\t\t{\n\t\t\t\tCard temp = this.deck[i];\n\t\t\t\tthis.deck[i] = this.deck[another];\n\t\t\t\tthis.deck[another] = temp;\n\t\t\t\ti++;\n\t\t\t\tusedRandoms.add(another);\n\t\t\t}\n\t\t}\n\t}",
"public int[] shuffle() {\n Collections.shuffle(list);\n int[] temp = new int[list.size()];\n for (int i = 0; i < list.size(); i++) {\n temp[i] = list.get(i);\n }\n return temp;\n }",
"public void scramble(){\r\n for (int i = 0; i < data.length / 2; i++){\r\n int randomIndex1 = (int)(Math.random()*(data.length - 1));\r\n int randomIndex2 = (int)(Math.random()*(data.length - 1));\r\n swap(randomIndex1, randomIndex2);\r\n }\r\n }",
"public void shuffle() {\r\n\t\tCollections.shuffle(cards);\r\n\t\t// : Shuffle with random seed each time, then we can save the seed\r\n\t\t// Collections.shuffle(cards, new Random(10));\r\n\t}",
"public void shuffle(){\r\n Collections.shuffle(cards);\r\n }",
"public void shuffle() {\r\n\t\tCollections.shuffle(cards);\r\n\t}",
"private static void scrambleArray(Integer[] a, boolean randomize) {\n\t\tfor (int k = 0; k < a.length; k++)\n\t\t\ta[k] = k;\n\t\tif (randomize) {\n\t\t\tRandom gen = new Random();\n\t\t\tfor (int k = 0; k < a.length; k++) {\n\t\t\t\tswap(a, k, gen.nextInt(a.length));\n\t\t\t}\n\t\t} else {\n\t\t\tint cell = (int) (a.length * 3.14159) % a.length;\n\t\t\tfor (int k = 0; k < a.length; k++) {\n\t\t\t\tswap(a, k, cell);\n\t\t\t\tcell = (int) (cell * 3.14159) % a.length;\n\t\t\t}\n\t\t}\n\n\t}",
"public static String [] randomizeArray(String[] array){\n Random rgen = new Random(); // Random number generator\n\n for (int i=0; i<array.length; i++) {\n int randomPosition = rgen.nextInt(array.length);\n String temp = array[i];\n array[i] = array[randomPosition];\n array[randomPosition] = temp;\n }\n\n return array;\n }",
"public void shuffle() {\n\t\tCollections.shuffle(Shoe);\n\t}",
"public void shuffle() {\n\t\tCollections.shuffle(cards);\n\t}",
"public final <T> T random(T[] array) {\n return array[random(0, array.length)];\n }",
"public void shuffle()\r\n {\r\n // We will start from the last element and swap the cards one by one. We actually\r\n // don't need to swap the last element.\r\n for (int i = valid - 1; i > 0; i --) { \r\n \r\n // By using Math.random, we will get a random integer from 0 to i\r\n int j = (int) ( (i+1) * Math.random()); \r\n \r\n // Swapping with the help of temp instance of Card Class.\r\n Card temp = cards[i]; \r\n cards[i] = cards[j]; \r\n cards[j] = temp; \r\n } \r\n // Prints the random array \r\n }",
"public void shuffle(){\n Collections.shuffle(Arrays.asList(this.deck));\n }",
"public void shuffle() {\n\n\tcardsLeft = cards.length;\n\tfor (int i=cards.length-1; i>=0; --i) {\n\n\t int r = (int)(Math.random()*(i+1)); // pick a random pos <= i\n\n\t Card t = cards[i];\n\t cards[i] = cards[r];\n\t cards[r] = t;\n\n\t}\n }",
"public void shuffle() {\n\t\t\t/*\n\t\t\t * This is very different from the sort method because:\n\t\t\t * @ we decant the cards into an array list;\n\t\t\t * @ we use a library function to do the work;\n\t\t\t * The implementation you write for the sort method should\n\t\t\t * have *neither* of these characteristics.\n\t\t\t */\n\t\t\tList<Card> cards = new ArrayList<Card>();\n\t\t\twhile (!isEmpty()) {\n\t\t\t\tcards.add(draw());\n\t\t\t}\n\t\t\tCollections.shuffle(cards);\n\t\t\tfor (Card c: cards) {\n\t\t\t\tadd(c);\n\t\t\t}\n\t\t}",
"public void shuffle() {\n Collections.shuffle(this.plateau);\n }",
"public void shuffle() {\n Random rand = new Random();\n for(int i = 0; i < deck.length; i++) {\n // get random index past current index\n int randomVal = i + rand.nextInt(deck.length - i);\n // swaps randomly selected card with card at index i\n Card swap = deck[randomVal];\n deck[randomVal] = deck[i];\n deck[i] = swap;\n }\n }",
"public void shuffle() {\n\t\tRandom randIndex = new Random();\n\t\tint size = cards.size();\n\t\t\n\t\tfor(int shuffles = 1; shuffles <= 20; ++shuffles)\n\t\t\tfor (int i = 0; i < size; i++) \n\t\t\t\tCollections.swap(cards, i, randIndex.nextInt(size));\n\t\t\n\t}",
"public static String[] randomizeHand(String[] arrayShuffle){\n String[] combine=new String[5];\n int k=-1;\n for(int i=0;i<5;i++){\n int j=(int)(Math.random()*52);\n if(j==k){continue;} // use if statements to avoid from picking up the same item twice\n else{combine[i]=arrayShuffle[j];k=j;\n }}\n return combine;}",
"public void shuffle() {\n\t\tfor (int i = 0; i < cards.size(); i++){\n\t\t\t//exchange card i with the random card from i to cards.size() - 1\n\t\t\tint j = Randoms.randomIntInRange(i, cards.size() - 1);\n\t\t\tT c1 = cards.get(i);\n\t\t\tT c2 = cards.get(j);\n\t\t\tcards.set(i, c2);\n\t\t\tcards.set(j, c1);\n\t\t}\n\t}",
"public void shuffle(){\n Collections.shuffle(this.deckOfCards);\n }",
"private void shuffle(ArrayList<Product> dataSet) {\n\t\tfor (int i = 0; i < dataSet.size(); i++) {\n\t\t\tint k = rand(0, i);\n\t\t\tProduct temp = dataSet.get(k);\n\t\t\tdataSet.set(k, dataSet.get(i));\n\t\t\tdataSet.set(i, temp);\n\t\t}\t\n\t}",
"public static void shuffle(int[] deck){\n //temporary variable for swapping the values\n int storage = 0;\n //random integer\n int randomInt;\n for(int i = 0; i < deck.length; i++){\n //set the variable equal to a random integer every time\n randomInt = (int) (Math.random() * (deck.length));\n //store the original deck[i] in storage\n //swap deck[i] and deck[randomInt]\n storage = deck[i];\n deck[i] = deck[randomInt];\n deck[randomInt] = storage;\n }\n }",
"public int[] shuffle() {\n\n Random random = new Random();\n int posizioneRandom;\n int i = 0;\n int[] shuffleArray = new int[soluzione.length];\n\n while(i < soluzione.length){\n\n posizioneRandom = random.nextInt(soluzione.length);\n\n if(shuffleArray[posizioneRandom] == 0){\n\n shuffleArray[posizioneRandom] = soluzione[i];\n i++;\n }\n\n continue;\n\n\n }\n\n soluzione = shuffleArray;\n\n return soluzione;\n\n }",
"public void shuffle()\n\t{\n\t\tCollections.shuffle(card);\n\t}",
"public static void arraySwaping(int array[]) {\r\n\r\n\t\tint temp, randInt;\r\n\r\n\t\tRandom rand = new Random();\r\n\r\n\t\tfor (int i = 0; i < array.length; i++) {\r\n\r\n\t\t\trandInt = rand.nextInt(array.length);\r\n\r\n\t\t\ttemp = array[i];\r\n\t\t\tarray[i] = array[randInt];\r\n\t\t\tarray[randInt] = temp;\r\n\r\n\t\t}\r\n\r\n\t}",
"public void shuffle() {\n Collections.shuffle((List<Nummer>) this.albumNummers);\n }",
"public JumbleBoard shuffle()\n {\n\n for (int i = 0; i < dice.length; i++)\n {\n for (int j = 0; j < dice[i].length; j++)\n {\n int a = random.nextInt(dice.length);\n int b = random.nextInt(dice[i].length);\n\n char c = dice[i][j];\n dice[i][j] = dice[a][b];\n dice[a][b] = c;\n\n }\n }\n\n return this;\n\n }",
"public void shuffle() {\n Collections.shuffle(deck);\n }",
"public void shuffle() {\n Collections.shuffle(deck);\n }",
"public void shuffle(){\n //After shuffling dealing starts at deck[0] again\n currentCard = 0;\n //for each card , pick another random card and swap them\n for(int first = 0; first < deck.length; first++){\n int second = randomNumbers.nextInt(NUMBER_OF_CARDS);\n\n //Swap Method to swap current card with randomly selected card\n Card temp = deck[first];\n deck[first] = deck[second];\n deck[second] = temp;\n }\n }",
"public void shuffle() {\n List<Card> shuffledCards = new ArrayList<>(52);\n while (cards.size() > 0) {\n int index = random.nextInt(cards.size());\n shuffledCards.add(cards.remove(index));\n }\n cards = shuffledCards;\n }",
"private static void __exercise37(final int[] a) {\n final int N = a.length;\n for (int i = 0; i < N; ++i) {\n final int r = StdRandom.uniform(N);\n final int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }",
"private static void __exercise36(final int[] a) {\n final int N = a.length;\n for (int i = 0; i < N; ++i) {\n final int r = i + StdRandom.uniform(N - i);\n final int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }",
"private void shuffleCards(final ICard[] myCards) {\r\n ICard tmp;\r\n int rand;\r\n for (int i = ZERO; i < myCards.length; i++) {\r\n rand = rmd.nextInt(myCards.length);\r\n tmp = myCards[i];\r\n myCards[i] = myCards[rand];\r\n myCards[rand] = tmp;\r\n }\r\n }",
"public static int[] shuffleArray(int[] array) {\n\t\tList<Integer> list = new ArrayList<>();\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tlist.add(array[i]);\n\t\t}\n\t\tCollections.shuffle(list, rand);\n\t\treturn list.stream().mapToInt(i->i).toArray();\n\t}",
"void shuffleDeck() {\n\t\tfor(int index = 0; index < this.getNumberOfCards(); index++) {\n\t\t\tint randomNumber = index + (int)(Math.random() * (this.getNumberOfCards() - index));\n\t\t\tCard temp = this.cardsInDeck[randomNumber];\n\t\t\tthis.cardsInDeck[randomNumber] = this.cardsInDeck[index];\n\t\t\tthis.cardsInDeck[index] = temp;\n\t\t}\n\t}",
"static void randomize(int arr[], Random r) {\n for (int i = arr.length - 1; i > 0; i--) {\n\n // Pick a random index from 0 to i\n int j = r.nextInt(i);\n\n // Swap arr[i] with the element at random index\n int temp = arr[i];\n arr[i] = arr[j];\n arr[j] = temp;\n }\n\n }"
]
| [
"0.79378474",
"0.778238",
"0.77558976",
"0.7748851",
"0.769553",
"0.7656073",
"0.7656073",
"0.764616",
"0.7633283",
"0.7544139",
"0.74743384",
"0.745568",
"0.7454164",
"0.74540776",
"0.74223113",
"0.7409494",
"0.7409494",
"0.73869467",
"0.73639935",
"0.73605025",
"0.7356231",
"0.73261786",
"0.7321312",
"0.7306085",
"0.7276382",
"0.72729564",
"0.72695166",
"0.7260634",
"0.7243679",
"0.7204779",
"0.7203283",
"0.7188711",
"0.7155403",
"0.7130805",
"0.7122232",
"0.7105189",
"0.7098895",
"0.7080142",
"0.7075019",
"0.7061934",
"0.7054396",
"0.7047806",
"0.7045515",
"0.7018579",
"0.7004252",
"0.7003321",
"0.7000025",
"0.6998794",
"0.69971424",
"0.6967456",
"0.6964762",
"0.69614476",
"0.69488674",
"0.69469607",
"0.69213086",
"0.69037575",
"0.6841731",
"0.6814215",
"0.6774359",
"0.6764662",
"0.6762832",
"0.67605084",
"0.67281485",
"0.6720151",
"0.6690804",
"0.66904813",
"0.66734195",
"0.66725683",
"0.6637918",
"0.66316605",
"0.6630798",
"0.662338",
"0.6614134",
"0.66097707",
"0.659406",
"0.6593723",
"0.658347",
"0.65531224",
"0.65498453",
"0.654241",
"0.6530047",
"0.652262",
"0.65125597",
"0.65095896",
"0.6500389",
"0.647457",
"0.6454686",
"0.6451233",
"0.64396155",
"0.642977",
"0.64169085",
"0.64169085",
"0.64026725",
"0.63826126",
"0.6369169",
"0.6360915",
"0.63487357",
"0.63424647",
"0.6330985",
"0.63300604"
]
| 0.6837485 | 57 |
Gets the order type. | public String getOrderType() {
return orderType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getOrderType() {\n\t\treturn (String) get_Value(\"OrderType\");\n\t}",
"OrderType getOrderType();",
"public String\t\tgetOrderType();",
"public OrderType getOrderType() {\r\n\t\treturn orderType;\r\n\t}",
"public io.opencannabis.schema.commerce.CommercialOrder.OrderType getType() {\n @SuppressWarnings(\"deprecation\")\n io.opencannabis.schema.commerce.CommercialOrder.OrderType result = io.opencannabis.schema.commerce.CommercialOrder.OrderType.valueOf(type_);\n return result == null ? io.opencannabis.schema.commerce.CommercialOrder.OrderType.UNRECOGNIZED : result;\n }",
"public io.opencannabis.schema.commerce.CommercialOrder.OrderType getType() {\n @SuppressWarnings(\"deprecation\")\n io.opencannabis.schema.commerce.CommercialOrder.OrderType result = io.opencannabis.schema.commerce.CommercialOrder.OrderType.valueOf(type_);\n return result == null ? io.opencannabis.schema.commerce.CommercialOrder.OrderType.UNRECOGNIZED : result;\n }",
"io.opencannabis.schema.commerce.CommercialOrder.OrderType getType();",
"String getOrderTypeId();",
"public java.lang.CharSequence getORDERTYPE() {\n return ORDER_TYPE;\n }",
"public java.lang.CharSequence getORDERTYPE() {\n return ORDER_TYPE;\n }",
"public Byte getOrderType() {\n return orderType;\n }",
"public ID getPharmacyOrderType() { \r\n\t\tID retVal = this.getTypedField(26, 0);\r\n\t\treturn retVal;\r\n }",
"public String getOrderType(@XPath(value = \"/order:order/order:type\",\n namespaces = @NamespacePrefix(prefix = \"order\", uri = \"http://vpsdemo.no/order/v1\")) String type) {\n \tif (buy.equals(\"buy\")) {\n return buy;\n }\t else if (sell.equals(\"sell\")) {\n return sell;\n } else {\n return unknown;\n }\n }",
"public String obtenirType() {\n\t\treturn this.type;\n\t}",
"public void setOrderType(String orderType) {\r\n\t\tthis.orderType = orderType;\r\n\t}",
"public String getType() {\n return _type;\n }",
"public String getType() {\n\t\treturn _type;\n\t}",
"public String getType()\n\t{\n\t\t// The enumerated type's name satisfies all the type criteria, so use\n\t\t// it.\n\t\treturn name();\n\t}",
"public String getType()\n {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType()\r\n {\r\n return type;\r\n }",
"public String get_type()\r\n\t{\r\n\t\treturn this.type;\r\n\t}",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType () {\n return type;\n }",
"public String getType () {\n return type;\n }",
"public String getType () {\n return type;\n }",
"public Sort getType() {\n\t\treturn type;\n\t}",
"public String getType()\n {\n return type;\n }",
"public String getType()\n {\n return type;\n }",
"public String getType()\n {\n return type;\n }",
"public String getType()\n {\n return type;\n }",
"public String getType()\n {\n return type;\n }",
"public String getType()\n {\n return type;\n }",
"public String getType() {\n return m_type;\n }",
"public String getType() {\n return (String) getObject(\"type\");\n }",
"private String findTypeofOrder(String orderName)\n {\n\n for (String partNameofOrder : orderName.split(\" \"))\n {\n for (Food.Types typeName : Food.Types.values()) {\n if (typeName.toString().equals(partNameofOrder)) {\n return Food.type;\n }\n }\n\n for (Medicine.Types typeName : Medicine.Types.values()) {\n if (typeName.toString().equals(partNameofOrder)) {\n return Medicine.type;\n }\n }\n\n for (Book.Types typeName : Book.Types.values()) {\n if (typeName.toString().equals(partNameofOrder)) {\n return Book.type;\n }\n }\n }\n return OtherItem.type;\n }",
"public String getType()\r\n\t{\r\n\t\treturn type;\r\n\t}",
"public int getType() {\r\n return typ;\r\n }",
"public String getType() {\n\n return this.type;\n }",
"public String getOperationType() {\n\t\treturn this.operationType;\n\t}",
"public String getType() {\r\r\n\t\treturn type;\r\r\n\t}",
"public String getType() {\r\n return type;\r\n }",
"public static String getType() {\n\t\treturn type;\n\t}",
"public String getType()\r\n {\r\n return mType;\r\n }",
"public final String type() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType()\n\t{\n\t\treturn type;\n\t}",
"private TypeOrder getTypeOrder() {\n\t\tif (JjsUtils.closureStyleLiteralsNeeded(this.options)) {\n\t\t\treturn TypeOrder.ALPHABETICAL;\n\t\t}\n\t\tif (this.options.useDetailedTypeIds()) {\n\t\t\treturn TypeOrder.NONE;\n\t\t}\n\t\treturn this.options.isIncrementalCompileEnabled()\n\t\t\t\t? TypeOrder.ALPHABETICAL\n\t\t\t\t: TypeOrder.FREQUENCY;\n\t}",
"public String getType() {\r\n\t\treturn type_;\r\n\t}",
"public String getType() {\n\t\treturn type;\n\t}"
]
| [
"0.8719366",
"0.85913455",
"0.85036075",
"0.8290917",
"0.80434775",
"0.8007302",
"0.7768034",
"0.7707993",
"0.768508",
"0.7608755",
"0.7473719",
"0.74301696",
"0.7127392",
"0.66333425",
"0.6575502",
"0.6521937",
"0.6495691",
"0.64707524",
"0.6421422",
"0.64182323",
"0.64182323",
"0.64138186",
"0.6413722",
"0.6412536",
"0.64124626",
"0.64124626",
"0.64124626",
"0.64124626",
"0.64124626",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.6410996",
"0.64070225",
"0.64070225",
"0.64070225",
"0.640453",
"0.6391457",
"0.6391457",
"0.6391457",
"0.6391457",
"0.6391457",
"0.6391457",
"0.6390702",
"0.6383496",
"0.63814074",
"0.63802",
"0.6376615",
"0.6376141",
"0.63752574",
"0.63734674",
"0.637118",
"0.6366794",
"0.63651854",
"0.63647914",
"0.63601756",
"0.63601255",
"0.63600904",
"0.63597405",
"0.63536704"
]
| 0.84081537 | 3 |
Sets the order type. | public void setOrderType(String orderType) {
this.orderType = orderType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setOrderType(OrderType inOrderType);",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder setORDERTYPE(java.lang.CharSequence value) {\n validate(fields()[0], value);\n this.ORDER_TYPE = value;\n fieldSetFlags()[0] = true;\n return this;\n }",
"public void setOrderType(Byte orderType) {\n this.orderType = orderType;\n }",
"public void\t\t\tsetOrderStatus(String orderType);",
"public void setORDERTYPE(java.lang.CharSequence value) {\n this.ORDER_TYPE = value;\n }",
"public OrderType(Type type) {\n\t\tsuper();\n\t\tthis.setType(type);\n\t}",
"public String getOrderType() {\r\n\t\treturn orderType;\r\n\t}",
"public void setType(String type);",
"public void setType(String type);",
"public void setType(String type);",
"public OrderType getOrderType() {\r\n\t\treturn orderType;\r\n\t}",
"public void setType(String type) {\n m_Type = type;\n }",
"void setType(String type) {\n this.type = type;\n }",
"private void setType(String type) {\n mType = type;\n }",
"public void setType (String type) {\n this.type = type;\n }",
"public void setType (String type) {\n this.type = type;\n }",
"public void setType (String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) \n {\n this.type = type;\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType( int type ) {\r\n typ = type;\r\n }",
"public void setType(Object type)\r\n {\r\n\tthis.type = type;\r\n }",
"public void setType( String type )\n {\n this.type = type;\n }",
"public void setType(String type){\n this.type = type;\n }",
"public void setType(int type) {\n type_ = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"@Override\n public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"void setType(Type type)\n {\n this.type = type;\n }",
"public void setType (String typ) {\n type = typ;\n }",
"final public void setType(String type)\n {\n setProperty(TYPE_KEY, (type));\n }",
"public void setType(String type){\n \tthis.type = type;\n }",
"public void setType( String type ) {\n this.type = type;\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type)\r\n {\r\n this.mType = type;\r\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public final void setType(String type){\n\t\tthis.type = type;\t\n\t}",
"public final void setType(String type) {\n this.type = type;\n }",
"public void setType (int type) {\n this.type = type;\n }",
"public void setType (int type) {\n this.type = type;\n }",
"public void setType(String type) {\n\n this.type = type;\n }",
"public void setType(int type) {\r\n this.type = type;\r\n }",
"public void setType(int type) {\r\n this.type = type;\r\n }",
"public void setType(Type type) {\n this.type = type;\n }",
"public void setType(Type type) {\n this.type = type;\n }",
"public void setType(Type type) {\n this.type = type;\n }",
"public void setType(String type) {\r\r\n\t\tthis.type = type;\r\r\n\t}",
"void setType(java.lang.String type);",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}",
"public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}",
"public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}",
"public void setType(type type) {\r\n\t\tthis.Type = type;\r\n\t}",
"public void setType(String type){\n\t\tthis.type = type;\n\t}",
"@Override\n\tpublic void setType(String type) {\n\t}",
"public void setType(int type) {\n this.type = type;\n }",
"public void setType(String type) {\r\n\t\tthis.type=type;\r\n\t}",
"public java.lang.CharSequence getORDERTYPE() {\n return ORDER_TYPE;\n }",
"public void setType(String type) {\n\t this.mType = type;\n\t}",
"public OrderSetCustomTypeActionBuilder type(\n @Nullable final com.commercetools.api.models.type.TypeResourceIdentifier type) {\n this.type = type;\n return this;\n }",
"@Override\n\tpublic void setType(String type) {\n\t\tthis.type = type;\n\t}",
"public void setType(String type)\n\t{\n\t\tthis.type = type;\n\t}",
"public void setType(Type type){\n\t\tthis.type = type;\n\t}",
"public java.lang.CharSequence getORDERTYPE() {\n return ORDER_TYPE;\n }",
"public String getOrderType() {\n\t\treturn (String) get_Value(\"OrderType\");\n\t}",
"public void setType(String type) {\n\t\tthis.type = type;\n\t}",
"public void setType(String type) {\n\t\tthis.type = type;\n\t}",
"public void setType(String type) {\n\t\tthis.type = type;\n\t}",
"public void setType(String type) {\n\t\tthis.type = type;\n\t}",
"public void setType(String type) {\n\t\tthis.type = type;\n\t}",
"public void setType(String type) {\n\t\tthis.type = type;\n\t}",
"public void setType(String type) {\n\t\tthis.type = type;\n\t}",
"public void setType(String type) {\n\t\tthis.type = type;\n\t}"
]
| [
"0.83039093",
"0.7984508",
"0.78427005",
"0.7553709",
"0.75022805",
"0.74796003",
"0.72120243",
"0.68842256",
"0.68842256",
"0.68842256",
"0.68813384",
"0.6876721",
"0.68715024",
"0.68673575",
"0.68233794",
"0.68233794",
"0.68233794",
"0.68214196",
"0.6813853",
"0.6811878",
"0.67997426",
"0.6793649",
"0.6790903",
"0.6787939",
"0.67859477",
"0.6783065",
"0.6783065",
"0.67827564",
"0.67782056",
"0.67782056",
"0.67782056",
"0.67782056",
"0.67695224",
"0.6766998",
"0.67571485",
"0.6756418",
"0.6754076",
"0.67369866",
"0.67303807",
"0.67303807",
"0.67303807",
"0.67303807",
"0.67303807",
"0.67303807",
"0.67303807",
"0.67303807",
"0.67303807",
"0.67303807",
"0.67303807",
"0.67303807",
"0.67303807",
"0.67303807",
"0.67303807",
"0.67303807",
"0.67303807",
"0.67303807",
"0.67303807",
"0.67303807",
"0.67303807",
"0.67303807",
"0.672472",
"0.67135596",
"0.67083645",
"0.67047906",
"0.6678688",
"0.6678688",
"0.6675979",
"0.6664572",
"0.6664572",
"0.6664368",
"0.6664368",
"0.6664368",
"0.66580075",
"0.66575783",
"0.66485405",
"0.66485405",
"0.66429913",
"0.66429913",
"0.66429913",
"0.66419965",
"0.6638624",
"0.6632186",
"0.6632002",
"0.66215533",
"0.6618812",
"0.6615642",
"0.66109955",
"0.659836",
"0.6588934",
"0.6580897",
"0.65558887",
"0.65515983",
"0.653702",
"0.653702",
"0.653702",
"0.653702",
"0.653702",
"0.653702",
"0.653702",
"0.653702"
]
| 0.7714705 | 3 |
Gets the vest length. | public String getVestLength() {
return vestLength;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double length() {\n return Vecteur.add(this.OB, this.OA.opposé()).length();\n }",
"public int getLength() {\n return mySize.getLength();\n }",
"public abstract long getLength() throws VlException;",
"public Integer getLength() {\n return _length;\n }",
"public Integer getLength() {\n return _length;\n }",
"protected int getLength() {\n int length = super.getLength(); //see if it is defined in the ncml\n if (length < 0) {\n double[] t = getTimes();\n if (t != null) length = t.length;\n else length = 0;\n }\n return length;\n }",
"public double get_length() {\n\t\treturn _length;\n\t}",
"public double getLength() {\r\n\t\t\treturn length;\r\n\t\t}",
"public static int size_estLength() {\n return (8 / 8);\n }",
"public double getLength() {\r\n\t\treturn length;\r\n\t}",
"public double getLength()\n\t{\n\t\treturn length;\n\t}",
"public int getLength() {\r\n return length;\r\n }",
"public int getLength() {\r\n return length;\r\n }",
"public int getLength() {\r\n return length;\r\n }",
"public double getLength() {\n\t\treturn length;\n\t}",
"public int getLength()\n\t{\n\t\treturn length;\n\t}",
"public int getLength()\n\t{\n\t\treturn length;\n\t}",
"public int getLength()\n\t{\n\t\treturn (int) length;\n\t}",
"@Override\n\tpublic Integer getLen() {\n\t\treturn this.len;\n\t}",
"public double getLength() {\r\n return length;\r\n }",
"public int getLength() {\r\n\t\treturn length;\r\n\t}",
"public int getLength() {\n return length_;\n }",
"public int getLength() {\n return length;\n }",
"public int getLength() {\n return length;\n }",
"public int getLength() {\n return length;\n }",
"public int getLength() {\n\t\treturn length;\n\t}",
"public int getLength() {\n\t\treturn length;\n\t}",
"public int getLength() {\n\t\treturn length;\n\t}",
"public int getLength() {\n\t\treturn length;\n\t}",
"public int getLength() {\n\t\treturn length;\n\t}",
"public int getLength() {\n\t\treturn length;\n\t}",
"public double getLength(){\r\n\t\treturn length;\r\n\t}",
"public int length() {\n\t\treturn value.length;\n\t}",
"public String getlength()\n\t{\n\t\treturn length.getText();\n\t}",
"public double getLength() {\n return length;\n }",
"public double getLength();",
"public Integer getLendeveille() {\r\n\t\treturn lendeveille;\r\n\t}",
"public int get_length();",
"public int getLength() {\n\t\treturn this.length;\n\t}",
"public int length() {\n return length;\n }",
"public int length() {\n return length;\n }",
"public int length() {\n return length;\n }",
"public int getLength()\n {\n return length;\n }",
"protected int getLength() {\n return length;\n }",
"public int getLength()\n {\n\treturn length;\n }",
"public int getLength(){\n\t\treturn length;\n\t}",
"public int getLength(){\n\t\treturn length;\n\t}",
"public int length()\n\t{\n\t\treturn length;\n\t}",
"public int getLength() {\n return length_;\n }",
"public double getLength() {\n return count;\n }",
"public int length() {\n\t\treturn length;\n\t}",
"public int length() {\n\t\treturn length;\n\t}",
"public long length() {\n return length;\n }",
"public int length() {\n \treturn length;\n }",
"public double getLength()\n {\n return length;\n }",
"public int getLength() {\n return this.length;\n }",
"public int getLength() {\n return this.length;\n }",
"public int getLength()\n\t{\n\t\treturn mLength;\n\t}",
"public long getLength();",
"public long getLength();",
"public int length() {\n \t \n \t //return the length\n \t return(len);\n }",
"float getLength();",
"float getLength();",
"protected int getLength() {\n\t\treturn this.length;\n\t}",
"public int getLength() {\n/* 301 */ return this.stream.getInt(COSName.LENGTH, 0);\n/* */ }",
"public int getLength()\n {\n return stream.getInt(COSName.LENGTH, 0);\n }",
"private int length() {\n\t\treturn this.lenght;\n\t}",
"int getLength();",
"int getLength();",
"int getLength();",
"int getLength();",
"int getLength();",
"int getLength();",
"int getLength();",
"int getLength();",
"int getLength();",
"int getLength();",
"public double Length() {\n return OCCwrapJavaJNI.Units_Dimensions_Length(swigCPtr, this);\n }",
"public int length() {\n return size();\n }",
"public double length()\n {\n return this.getR();\n }",
"public short get_estLength() {\n return (short)getUIntElement(offsetBits_estLength(), 8);\n }",
"public int vecLength();",
"public int getLength();",
"public int getLength();",
"public int getLength();",
"public int length() {\n \t\tif (-1 == n_points) setupForDisplay();\n \t\treturn n_points;\n \t}",
"public int getLength() { return length;\t}",
"public int getLength() {\n return this.sideLength;\n }",
"public int length()\n\t{\n\t\tif ( properties != null && properties.containsKey(\"ogg.length.bytes\") )\n\t\t{\n\t\t\tlengthInMillis = VobisBytes2Millis((Integer)properties.get(\"ogg.length.bytes\"));\n\t\t\tSystem.out.println(\"GOT LENGTH: \"+lengthInMillis);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlengthInMillis = -1;\n\t\t}\n\t\treturn (int)lengthInMillis;\n\t}",
"public int length() {\n\t\treturn size;\r\n\t}",
"public double length(){\n return end.distance(getStart());\n }",
"private int length() { return length; }",
"public int length() {\n\t\treturn this.n;\n\t}",
"@Override\n public Integer length() {\n return myLength;\n }",
"public int length(){\n\t\treturn this.tamanho;\n\t}",
"public int getLength()\n {\n return encryptionDictionary.getInt( \"Length\", 40 );\n }",
"public int getLength() {\n if (data instanceof String) {\n String string = (String) data;\n return string.length();\n } else if (data instanceof StringReference) {\n StringReference stref = (StringReference) data;\n return stref.getLength();\n } else if (data instanceof Value) {\n Value val = (Value) data;\n return val.getString().length();\n } else {\n return data.toString().length();\n }\n }",
"@Override\n\tpublic long size() {\n\t\treturn this.currentLength.get();\n\t}",
"public Double getLength()\n {\n return length;\n }",
"int length()\n\t{\n\t\treturn length;\n\t}"
]
| [
"0.73019594",
"0.7299599",
"0.7219866",
"0.72086895",
"0.72086895",
"0.7178461",
"0.71755505",
"0.71550417",
"0.71447366",
"0.71324104",
"0.7131873",
"0.71272844",
"0.71272844",
"0.71272844",
"0.7112652",
"0.7106346",
"0.7106346",
"0.7104444",
"0.71036667",
"0.70962435",
"0.70959926",
"0.7084813",
"0.7075733",
"0.7060755",
"0.7060755",
"0.7053822",
"0.7053822",
"0.7053822",
"0.7053822",
"0.7053822",
"0.7053822",
"0.7051062",
"0.7048803",
"0.704794",
"0.70459473",
"0.70262015",
"0.7024416",
"0.7023958",
"0.7009193",
"0.70025206",
"0.70025206",
"0.70025206",
"0.69963276",
"0.699203",
"0.6989213",
"0.6985678",
"0.6985678",
"0.69820935",
"0.6973339",
"0.6969373",
"0.696852",
"0.696852",
"0.696534",
"0.696185",
"0.69580716",
"0.6951305",
"0.6951305",
"0.6940708",
"0.69396794",
"0.69396794",
"0.6933591",
"0.69311196",
"0.69311196",
"0.69207287",
"0.69115114",
"0.69082934",
"0.6907511",
"0.68901044",
"0.68901044",
"0.68901044",
"0.68901044",
"0.68901044",
"0.68901044",
"0.68901044",
"0.68901044",
"0.68901044",
"0.68901044",
"0.6872582",
"0.6863568",
"0.68592525",
"0.68434995",
"0.68249696",
"0.6823884",
"0.6823884",
"0.6823884",
"0.68171746",
"0.6816548",
"0.6814062",
"0.68138474",
"0.680948",
"0.6786532",
"0.67792773",
"0.67775446",
"0.6774263",
"0.6766067",
"0.67655766",
"0.6763706",
"0.6758656",
"0.67469555",
"0.67292625"
]
| 0.86306816 | 0 |
Sets the vest length. | public void setVestLength(String vestLength) {
this.vestLength = vestLength;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setLength(int length);",
"public void setLength(long length);",
"public void setLength(long length);",
"void setLength( long length );",
"public void setSizeV(long s){\n\t\tthis.sizeV = s;\n\t}",
"public void setLength(double newLength) {\n length = newLength;\n }",
"public void setLength(int length) {\r\n this.length = length;\r\n }",
"public void setLength(int length) {\r\n this.length = length;\r\n }",
"public void setLength(int length)\n {\n this.length = length;\n }",
"public String getVestLength() {\r\n\t\treturn vestLength;\r\n\t}",
"public void setLength( int length ) { setCapacity( length ); this.length = length; }",
"public void setLength(int length) {\r\n\t\tthis.length = length;\r\n\t}",
"@Override\n\tpublic void setLength(int length) {\n\t\t\n\t}",
"synchronized void setLength(int length) {\n this.length = length;\n }",
"public void setLength(long length) { \n this.length = length; \n }",
"public void setLength( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), LENGTH, value);\r\n\t}",
"public void setLength(double length)\r\n {\r\n this.length = length;\r\n }",
"public void setLength(int length) {\n\t\tthis.length = length;\n\t}",
"public void setLength(int length) {\n\t\tthis.length = length;\n\t}",
"public void setLength(int length) {\n\t\tthis.length = length;\n\t}",
"public void setLength(double len) throws IllegalArgumentException\n {\n if (len<0) throw new IllegalArgumentException (\"Length cannot be negative\" + len);\n else length = len;\n }",
"public void setLength(long length) {\r\n\t\tthis.length = length;\r\n\t}",
"public void setLength(double length) {\r\n this.length = length;\r\n }",
"public void setLength(double length){this.length=length;}",
"public void setCurrentLength(long currentLength) { \n this.currentLength = currentLength; \n }",
"public void setLength(double length) {\n this.length = length;\n }",
"public void setLength(Double newlength)\n {\n length = newlength;\n }",
"public void set_estLength(short value) {\n setUIntElement(offsetBits_estLength(), 8, value);\n }",
"public static void setLength( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, LENGTH, value);\r\n\t}",
"public Builder setLength(int value) {\n \n length_ = value;\n onChanged();\n return this;\n }",
"public void setLength(int length){\n\t\tif(length > 0){\n\t\t\tthis.length = length; //this.length is the length were in right now. and = length is the length the object is given\n\t\t}\n\t\t\n\t\t\n\t}",
"public boolean setLength(double Length);",
"public void setLengthOfStay(int len) {\n this.length_of_stay=len;\n }",
"public void setLength(int newLength) {\r\n\t\tif (cursor + newLength > buffer.length)\r\n\t\t\tthrow new IllegalArgumentException(\"Can't set new length if it exceeds buffer\");\r\n\t\tlimit = cursor + newLength;\r\n\t}",
"public void setLength(double length) {\n\t\tthis.length = length;\n\t}",
"public void setLength(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), LENGTH, value);\r\n\t}",
"public void setLength(int length) {\n\t\tif (length <= 0)\n\t\t\tthrow new IllegalArgumentException(\"length must be > 0\");\n\n\t\tthis.length = length;\n\t}",
"public void set_size(int s);",
"public void set_length(short value) {\n setUIntElement(offsetBits_length(), 8, value);\n }",
"public void setLength(int length)\n {\n encryptionDictionary.setInt(\"Length\", length);\n }",
"@Override\n\tpublic void SetLength(long value)\n\t{\n\t\tthrow new UnsupportedOperationException(\"TarInputStream SetLength not supported\");\n\t}",
"public void setLength(float length) { // l = 2.3\r\n\t\tthis.length = length; // length = 2.3\r\n\t\t\r\n\t}",
"default void setLength(double t) {\r\n scaleDirection(t / getLength());\r\n }",
"public static void setLength(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.set(model, instanceResource, LENGTH, value);\r\n\t}",
"public void setEdgeLen(double len) {\n fEdgeLen = len;\n }",
"void setExpectedLength(final int expectedLength) {\n this.vars.put(\"expectedLength\", String.valueOf(expectedLength));\n }",
"void setFoundLength(final int foundLength) {\n this.vars.put(\"foundLength\", String.valueOf(foundLength));\n }",
"public void setSize(long value) {\n this.size = value;\n }",
"public void setCvpOperationLength(long value)\n {\n if(__cvpOperationLength != value)\n {\n _isDirty = true;\n }\n __cvpOperationLength = value;\n }",
"@JsProperty(name = \"length\")\n public native void setLength(@DoNotAutobox Number value);",
"private void set_size(int size)\r\n\t{\r\n\t\tthis.size = size;\r\n\t}",
"public void setLendeveille(Integer lendeveille) {\r\n\t\tthis.lendeveille = lendeveille;\r\n\t}",
"public void setResizeElementCount(int v) { vboSet.setResizeElementCount(v); }",
"public void setLineLength(int len) {\n lineLength = len / 4 * 4;\n }",
"public void setCvpOperationLobsLength(long value)\n {\n if(__cvpOperationLobsLength != value)\n {\n _isDirty = true;\n }\n __cvpOperationLobsLength = value;\n }",
"public void setLength(int length) {\n\t\tloadProgress.setLength(length);\n\t}",
"public final void setTermLength(int length) {\n initTermBuffer();\n termLength = length;\n }",
"public void setLength(){\n this.length = 0;\n for (Music track : this.tracks){\n this.length += track.getLength();\n }\n }",
"public void setV(long value) {\n this.v = value;\n }",
"public void setLength(int n){ // Setter method\n \n length = n; // set the class attribute (variable) radius equal to num\n }",
"public void setSleeveLength(String sleeveLength) {\r\n\t\tthis.sleeveLength = sleeveLength;\r\n\t}",
"private void setTextAreaLenght(int len) {\n // check for logical error\n if(len <= 0) {\n // error ..\n eHandler.newError(ErrorType.INVALID_ARGUMENT, \"setTextAreaLenght\", \"Zero or negative lenght\");\n\n // set to default\n textAreaLenght = DEFAULT_TEXT_AREA_LENGHT;\n\n // exit from method\n return;\n } // end of if statement\n\n // set the textAreaLenght\n textAreaLenght = len;\n\n }",
"public void setLen_cable(java.math.BigDecimal newLen_cable)\n\t\tthrows java.rmi.RemoteException;",
"public Vlen_t() {}",
"public void setLength(int duration){\n\t\tlength = duration;\n\t}",
"@Override\n public void setVisibleLength(int length) {}",
"public void setLength(int length) throws TVAnytimeException\n\t{\n\t\tif ((length >= 0) && (length < 3)) {\n\t\t\tthis.length = length;\n\t\t\tsynopsisLengthSet = true;\n\t\t}\n else if (length == UNDEFINED) {\n this.length = length;\n\t\t\tsynopsisLengthSet = false;\n }\n\t\telse throw new TVAnytimeException(\"Synopsis: Not a valid Synopsis length.\");\n\t}",
"public void setLength(Integer length) throws DBException {\n _length = length;\n }",
"public void setLength(Integer length) throws DBException {\n _length = length;\n }",
"public void setLength(long newLength) throws IOException {\n flush();\n this.randomAccessFile.setLength(newLength);\n if (newLength < this.fileOffset) {\n this.fileOffset = newLength;\n }\n }",
"public void addLength( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), LENGTH, value);\r\n\t}",
"public ExtractedSummarySentence setLength(int length) {\n this.length = length;\n return this;\n }",
"public void setLength(Point e) {\r\n int Dx = Math.abs(this.origin.getX() - e.getX());\r\n int Dy = Math.abs(this.origin.getY() - e.getY());\r\n if (Dx > Dy) {\r\n this.length = Dx;\r\n } else { this.length = Dy; }\r\n }",
"public void setTextLength(short field_6_textLength)\n {\n this.field_6_textLength = field_6_textLength;\n }",
"public void setLocalSize(int size);",
"public void setBBoxLength(int aLength)\r\n {\r\n theBBoxLength = aLength;\r\n if (theBBoxLengthField != null)\r\n {\r\n theBBoxLengthField.setValue(theBBoxLength);\r\n theBBoxLengthField.updateUI();\r\n }\r\n }",
"public void setMaxLength(int value) {\n this.maxLength = value;\n }",
"public void setLength(){\n out.print(\"Please enter a number greater than 0:\\t\");\n while (true) {\n try {\n this.sideLength = Integer.parseInt(sc.next());\n if (this.sideLength > 0) {\n break;\n } else {\n out.print(\"Please re-enter a number greater than 0!:\\t\");\n }// End if else\n } catch (NumberFormatException e) {\n out.print(\"Please enter a number (not a letter) greater than 0!:\\t\");\n //this.sideLength = 0;\n }// End try catch\n }// End running while loop\n }",
"public void setSize(long size) {\r\n\t\tthis.size = size;\r\n\t}",
"public Builder setSize(\n godot.wire.Wire.Vector3.Builder builderForValue) {\n if (sizeBuilder_ == null) {\n size_ = builderForValue.build();\n onChanged();\n } else {\n sizeBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }",
"private void setSize(int s){\n\t\tsize = s;\n\t}",
"public void setSize(int value) {\n\t\tthis.size = value;\n\t}",
"public static void addLength( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(model, instanceResource, LENGTH, value);\r\n\t}",
"public void setSizeE(long s){\n\t\tthis.sizeE = s;\n\t}",
"public void setValue(int size) {\n s.setValue(-size);\n }",
"public void setNewickLength(Double newnewicklength)\n {\n newicklength = newnewicklength; \n }",
"@Option(name = \"-sl\", aliases = \"--select-length\", metaVar = \"<length>\", usage = \"Length of select in seconds.\")\n void setSelectLength(Duration selectLength) {\n m_selectLength = selectLength;\n }",
"public void setWitdh(int newValue)\n {\n width = newValue;\n }",
"public void set_fieldsize(AST fieldsize);",
"public Builder setSize(\n godot.wire.Wire.Vector2.Builder builderForValue) {\n if (sizeBuilder_ == null) {\n size_ = builderForValue.build();\n onChanged();\n } else {\n sizeBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }",
"public Builder setSize(godot.wire.Wire.Vector3 value) {\n if (sizeBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n size_ = value;\n onChanged();\n } else {\n sizeBuilder_.setMessage(value);\n }\n\n return this;\n }",
"public void setXLength(int length) {\n this.xLength = length;\n }",
"private void setBarLenght(int len) {\n // check for logical error\n if(len <= 0) {\n // error ..\n eHandler.newError(ErrorType.INVALID_ARGUMENT, \"setBarLenght\", \"Zero or negative bar lenght\");\n\n // set to default\n barLenght =DEFAULT_BAR_LENGH;\n\n // exit from method\n return;\n } // end of if statement\n\n // set the barLenght\n barLenght = len;\n\n }",
"public void setRecord_length(int len) {\n\t\trecord_length = len;\n\t}",
"public void setSquareSide (int newLength){\r\n model.setSideLength(newLength);\r\n view.resetView(model);\r\n }",
"public void setDataLength(int length) {\n // should be below 255, check!\n m_DataLength = length + 2;\n }",
"public void setKeyLength(int keyLength) {\n\t\tthis.keyLength = keyLength;\n\t}",
"public void setHeight(int newValue)\r\n {\r\n seatHeight = newValue;\r\n }",
"public void setSize(int size) {\r\n _size = size;\r\n }",
"public void addLength(java.lang.String value) {\r\n\t\tBase.add(this.model, this.getResource(), LENGTH, value);\r\n\t}"
]
| [
"0.7124675",
"0.71165824",
"0.71165824",
"0.7024933",
"0.6958635",
"0.69220537",
"0.69102186",
"0.69102186",
"0.69059366",
"0.6810897",
"0.68085927",
"0.6795991",
"0.6758556",
"0.6756371",
"0.67173105",
"0.66933143",
"0.6668992",
"0.66628236",
"0.66628236",
"0.66628236",
"0.66323215",
"0.6619028",
"0.6618086",
"0.66147506",
"0.6602624",
"0.65691626",
"0.65509784",
"0.6540376",
"0.65349126",
"0.6476206",
"0.64402294",
"0.6437771",
"0.64240676",
"0.64115393",
"0.640696",
"0.6401958",
"0.6304033",
"0.6253774",
"0.6222909",
"0.6218658",
"0.62110704",
"0.62026703",
"0.6197817",
"0.61266106",
"0.61211026",
"0.611258",
"0.6110002",
"0.60829157",
"0.6075566",
"0.6046399",
"0.6020731",
"0.59530514",
"0.5935918",
"0.58495164",
"0.58473676",
"0.58436173",
"0.58346844",
"0.5806464",
"0.5800194",
"0.5789298",
"0.57829064",
"0.57751435",
"0.577196",
"0.57687956",
"0.57627684",
"0.5751093",
"0.5749024",
"0.5716875",
"0.5716875",
"0.5708802",
"0.57060045",
"0.5671241",
"0.56651384",
"0.56624556",
"0.5661382",
"0.5658113",
"0.5641999",
"0.5620412",
"0.558659",
"0.55862504",
"0.55616957",
"0.55519915",
"0.55278695",
"0.55230445",
"0.55191755",
"0.5517956",
"0.55162936",
"0.5498268",
"0.5487544",
"0.54846203",
"0.54845434",
"0.54810864",
"0.5470837",
"0.54630256",
"0.5452253",
"0.54367",
"0.54317224",
"0.54278845",
"0.5426074",
"0.5424465"
]
| 0.7881686 | 0 |
Gets the half hem. | public String getHalfHem() {
return halfHem;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getH();",
"public int getHalfHeight() {\n\t\t\treturn halfHeight;\n\t\t}",
"double getEndH();",
"public double getH() {\n return h;\n }",
"public double getH() {\n return h;\n }",
"public int getHeigth() {\r\n return heigth;\r\n }",
"double getStartH();",
"float getH() {\n return _h;\n }",
"public void setHalfHem(String halfHem) {\r\n\t\tthis.halfHem = halfHem;\r\n\t}",
"public int getH() {\n\t\treturn h;\n\t}",
"public double getH_() {\n\t\treturn h_;\n\t}",
"public int getH() {\n\t\treturn this.H;\n\t}",
"@Override\n\tpublic int getH() {\n\t\treturn 100;\n\t}",
"protected double getHPM() {\n\t\t\treturn this.getHealing() / this.getCost();\n\t\t}",
"private final SectionsBottomFragment m75355h() {\n AbstractC32572g gVar = this.f53744w;\n AbstractC32607k kVar = f53721a[5];\n return (SectionsBottomFragment) gVar.mo102348b();\n }",
"public static float getH(float side, HexOrientation orientation)\n\t{\n\t\treturn MathUtils.sinDeg(30) * side;\n\t}",
"public int getHalfWidth() {\n\t\t\treturn halfWidth;\n\t\t}",
"public VectorN getH()\n\t{\n\t\tVectorN r = new VectorN(rv.x[0], rv.x[1], rv.x[2]);\n\t\tVectorN v = new VectorN(rv.x[3], rv.x[4], rv.x[5]);\n\t\tVectorN out = r.crossProduct(v);\n\t\treturn out;\n\t}",
"public double getPH() {\n return pH;\n }",
"public Double getHydrogenSulfide() {\n return hydrogenSulfide;\n }",
"public static float getHalfTileHeight() {\r\n\t\treturn 32;\r\n\t}",
"public String halfwidth() {\n return this.halfwidth;\n }",
"public int hamming() {\n return ham;\n }",
"public List<VoronoiHalfEdge> getHalfEdges() {\n return halfEdges;\n }",
"public double getThigh() {\n return thigh;\n }",
"public int getHalfBandwidth() {\n\t\treturn hbw_;\n\t}",
"public double getHpregen(){\n\t\treturn hpregen;\n\t}",
"public short mo5075h() {\n return this.f3707a;\n }",
"public Float getBhHosucr() {\r\n return bhHosucr;\r\n }",
"public Float getHosucr() {\r\n return hosucr;\r\n }",
"public double getHalfPlaneThreshold() {\n return halfPlaneThreshold;\n }",
"public double getHeardPercentSE() {\n return heardPercentSE;\n }",
"public HELPFit getHF(){\n return HF;\n }",
"public double getHeardPercentOut() {\n return heardPercentOut;\n }",
"public AxisScale getHScale() {\n return (_bhp!=null)?_bhp.getScale():AxisScale.LINEAR;\n }",
"@Override\r\n\tpublic Float halfOf(Float f) {\n\t\t\r\n\t\tFloat returnValue = (float) Math.half(f.doubleValue());\r\n\t\t\r\n\t\treturn returnValue;\r\n\t}",
"public int getH() {\n\t\treturn this.height;\n\t}",
"public Halfedge ELgethash(int b) {\r\n\t\tHalfedge he;\r\n\r\n\t\tif (b < 0 || b >= ELhashsize)\r\n\t\t\treturn null;\r\n\t\the = ELhash[b];\r\n\r\n\t\tif (he == null || he.ELedge != DELETED) {\r\n\t\t\treturn he;\r\n\t\t}\r\n\r\n\t\t/* Hash table points to deleted half edge. Patch as necessary. */\r\n\t\tELhash[b] = null;\r\n\t\tif ((he.ELrefcnt -= 1) == 0)\r\n\t\t\the = null;\r\n\t\treturn null;\r\n\t}",
"public double getHeight() {\r\n\r\n\t\treturn h;\r\n\r\n\t}",
"public int getHauteur() {\n return getHeight();\n }",
"public int getTwoHeads() \n {\n return numTwoHeads; \n }",
"public double getHeardPercentMath() {\n return heardPercentMath;\n }",
"public String getAwayH(String team) {\n\n String awayH;\n // if the game status is preview or postponed\n if (getGameStatus(team).equals(\"Preview\") || getGameStatus(team).equals(\"Postponed\")) {\n awayH = \"\";\n }\n else {\n awayH = getLineScore(team, \"linescore\",\"h\", \"away\");\n }\n\n return awayH;\n }",
"public Float getHoatts() {\r\n return hoatts;\r\n }",
"public float mo512a() {\n return this.f407h;\n }",
"@Override\n public float getH() {\n return h + font.getSize() + border.getH();\n }",
"edu.usfca.cs.dfs.StorageMessages.HealMyChunk getHealMyChunk();",
"int getHScore(Point endP) {\n\t\t\t\r\n\t\t\tdouble distance;\r\n\t\t\t\r\n\t\t\tdistance=Math.sqrt(Math.pow(this.point.x-endP.x, 2) + Math.pow(this.point.y-endP.y, 2));\r\n\t\t\t// distance calculated by vertexs' coordinates\r\n\t\t\t\r\n\t\t\tthis.HScore=(int)(distance/Graph.avg_spd);\r\n\t\t\t// HScore=distance/spd (=time)\r\n\t\t\t\r\n\t\t\treturn this.HScore;\r\n\t\t}",
"public double utilisation(int h)\n {\n \tDouble result;\n \tDouble n1=(Math.pow(2,h))-1;\n \tresult=size()/n1;\n \treturn result;\n \t \t\n }",
"public int getHzyf() {\n\t\treturn this.hzyf;\n\t}",
"public int getHgap()\n {\n return hgap;\n }",
"public int hamming() {\n return hamming;\n }",
"public float mo559h() throws RemoteException {\r\n return this.f1764h;\r\n }",
"public int getHgap()\n\t{\n\t\treturn hgap;\n\t}",
"public long mo9743h() {\n return mo9760w();\n }",
"public int getH() { return height; }",
"public int hash2(int h, int m) {\r\n//\t\tint m = this.capability>>1 + 1;\r\n\t\treturn 1+(h%(m-1));\r\n\t}",
"public static float getHalfTileWidth() {\r\n\t\treturn 64;\r\n\t}",
"public double getAH() {\n\t\t\treturn archeight.get();\n\t\t}",
"public float getHdi()\n {\n return hdi;\n }",
"public int[][] getHall() {\n return Sala;\n }",
"public final Aweme mo65711h() {\n return this.f73950g;\n }",
"long getHeight();",
"public float getHlado() {\r\n return (this.lado);\r\n }",
"public double getHeightInDeg();",
"float getHeading();",
"float getHeading();",
"float getHeading();",
"public Entity getShoulderEntityRight ( ) {\n\t\treturn extract ( handle -> handle.getShoulderEntityRight ( ) );\n\t}",
"public double getHmag()\n\t{\n\t\tVectorN h = this.getH();\n\t\tdouble out = h.mag();\n\t\treturn out;\n\t}",
"public float getBrightness() {\r\n\t\treturn hsb[2];\r\n\t}",
"public MSH getMSH() {\n return getTyped(\"MSH\", MSH.class);\n }",
"public int getRayonH(){\r\n\t\treturn rayonH;\r\n\t}",
"public int getHorsePower() {\n\t\treturn horsePower;\n\t}",
"double getHeight();",
"public int getHgap() {\n/* */ return this.hgap;\n/* */ }",
"public short mo1472h() {\n return this.f1456b;\n }",
"public C11889s mo35060h() {\n return this.f30697b;\n }",
"public double getHeight() {\n/* 462 */ return getHandle().getHeight();\n/* */ }",
"public double getHeight() {\n\t\tdouble height = Math.round(sideLength + (2 * sideLength * \n\t\t\t\tMath.sin(Math.PI / 4)));\n\t\treturn height;\n\t}",
"public void setH(Double h);",
"public double getHeardPercentOther() {\n return heardPercentOther;\n }",
"public String getHeimo() {\n return this.heimo;\n }",
"public Float getBhOhoatts() {\r\n return bhOhoatts;\r\n }",
"public double getHeight();",
"public double getHeight();",
"public String getDPHeft(){\n\t\treturn this.m_sDPHeft;\n\t}",
"public int mo4310h() {\n return this.f3128f;\n }",
"@Override\n public float getHeating() {\n\n int wart = 0;\n if (!roomList.isEmpty()){\n for (Room room : roomList){\n if (room instanceof Localization){\n wart += room.getHeating();\n }\n }\n }\n return wart;\n }",
"public double getHip() {\n return hip;\n }",
"public double getHigh() {\n return high;\n }",
"public org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle getBand2H()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().find_element_user(BAND2H$6, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public double getHp() {\n return hp;\n }",
"public C0673p mo863h() {\n return this.f2277g;\n }",
"public final bmhu mo66002h() {\n Pair pair = this.f152266k;\n if (pair != null) {\n return (bmhu) pair.first;\n }\n return null;\n }",
"public Integer getBp_hr() {\r\n return bp_hr;\r\n }",
"public int getHealingNumber() {\n return healingNumber;\n }",
"public String getHinbannm() {\r\n return hinbannm;\r\n }",
"public double getHigh(){\n return /*home*/ this.high /*and eat everything*/;\r\n //then go to sleep for a day or three \r\n }",
"public Float getBh() {\r\n return bh;\r\n }"
]
| [
"0.72194684",
"0.70025206",
"0.6887065",
"0.68716586",
"0.68716586",
"0.6659721",
"0.66528684",
"0.664534",
"0.6590846",
"0.6475594",
"0.6453623",
"0.6429561",
"0.6393684",
"0.63773084",
"0.6332004",
"0.63086694",
"0.6263634",
"0.6190814",
"0.6163289",
"0.6153929",
"0.6096264",
"0.6088437",
"0.60565597",
"0.6049609",
"0.6040977",
"0.59910333",
"0.59766054",
"0.5952129",
"0.5912645",
"0.5896604",
"0.58599836",
"0.58597183",
"0.5851063",
"0.58467734",
"0.5841749",
"0.58070076",
"0.5794337",
"0.5775839",
"0.5774945",
"0.5766911",
"0.57001096",
"0.5690755",
"0.56733614",
"0.56640506",
"0.56470615",
"0.56279397",
"0.5627689",
"0.56150603",
"0.5609911",
"0.56074315",
"0.5606303",
"0.5605367",
"0.56011134",
"0.5591804",
"0.5588926",
"0.55807894",
"0.55709404",
"0.55656296",
"0.55635357",
"0.5559653",
"0.5559295",
"0.5548054",
"0.5539271",
"0.55324024",
"0.5527811",
"0.5524066",
"0.5524066",
"0.5524066",
"0.5507438",
"0.55030835",
"0.5501927",
"0.54958797",
"0.54892504",
"0.54846215",
"0.5472959",
"0.5466638",
"0.54650706",
"0.5462668",
"0.5453174",
"0.5441526",
"0.54399246",
"0.5434193",
"0.5432148",
"0.54201186",
"0.54175735",
"0.54175735",
"0.5416882",
"0.5413694",
"0.541199",
"0.5407178",
"0.5394162",
"0.53872186",
"0.5383952",
"0.53830254",
"0.5367464",
"0.5363467",
"0.5360581",
"0.53598636",
"0.5348889",
"0.53480875"
]
| 0.80964535 | 0 |
Sets the half hem. | public void setHalfHem(String halfHem) {
this.halfHem = halfHem;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void setH(double set_h) {\r\n\t\th = set_h;\t\r\n\t\t}",
"public void setH(Double h);",
"public void setH(double h) {\n this.h = h;\n }",
"public void setH_(double h_) {\n\t\tthis.h_ = h_;\n\t}",
"public String getHalfHem() {\r\n\t\treturn halfHem;\r\n\t}",
"public void setH(int h) {\n this.H = h;\n\n }",
"public void setH(double value) {\n this.h = value;\n }",
"public void setH(int h) {\n\t\tthis.H = h;\n\t}",
"public void setHall(int h) {\n hall = h;\n System.out.println(\"Singleton hall: \" + hall);\n }",
"public void setHOB(float hob);",
"public void setH(boolean h) {\n\tthis.h = h;\n }",
"public void setHalfCarry() {\n\t\tset((byte) (get() | (1 << 5)));\n\t}",
"public void setThigh(double thigh) {\n this.thigh = thigh;\n }",
"public void setHigh(int H)\t\n\t{\t//start of setHigh method\n\t\tHIGH_NUM = H;\n\t}",
"private void setHighScore(int hs) {\n setStat(hs, highScore);\n }",
"public void setHeuristic(int h) {\n\t\t\tthis.heuristique = h;\n\t\t}",
"public void setHeardPercentSE(double heardPercentSE) {\n this.heardPercentSE = heardPercentSE;\n }",
"public void setHeight(double height){\n h=height;\r\n }",
"public int getHalfHeight() {\n\t\t\treturn halfHeight;\n\t\t}",
"public void setHeight(double h) {\n\t\t\theight.set(clamp(h, HEIGHT_MIN, HEIGHT_MAX));\n\t\t}",
"public void setHydrogenSulfide(Double hydrogenSulfide) {\n this.hydrogenSulfide = hydrogenSulfide;\n }",
"public void resetHalfCarry() {\n\t\tset((byte) (get() & ~(1 << 5)));\n\t}",
"public void setRayonH(int rayon){\r\n\t\trayonH = rayon;\r\n\t}",
"public void setHeight(int h) {\n this.H = h;\n }",
"public void setHeruistic(AStarNode end) {\n if(getPrevious() !=null){\n \tthis.heruistic = (this.getDistTo(end) + getHeadingTo(end) + previous.getHeadingTo(this));\n } else{\n \tthis.heruistic = (this.getDistTo(end) + getHeadingTo(end));\n }\n }",
"public void setHsDowntime(Float hsDowntime) {\n this.hsDowntime = hsDowntime;\n }",
"public void set_heldout(final int h) {\n set_heldout(h, 0);\n }",
"public void setHoatts(Float hoatts) {\r\n this.hoatts = hoatts;\r\n }",
"@Override\n\tpublic void setPersonal_4_HalfGaugeMeter() \n\t{\n\t}",
"public HalfEdge(int q) { end = q; }",
"public void setHgap(int hgap)\n {\n this.hgap = hgap;\n }",
"public void setHeight(int h)\n {\n height = h;\n }",
"public void setHomeScore(int h);",
"public void setH(Node destination){\n\t\t\n\t\th=calculateH(destination);\n\t}",
"public void changeHasHighWall()\r\n\t{\r\n\t\thasHighWall = !hasHighWall;\r\n\t}",
"public void setHeardPercentMath(double heardPercentMath) {\n this.heardPercentMath = heardPercentMath;\n }",
"public void setHeliophilous(boolean value) {\n\t\tthis.heliophilous = value;\n\t}",
"public void setHeardPercentOut(double heardPercentOut) {\n this.heardPercentOut = heardPercentOut;\n }",
"public void setHealth(int h) {\n setStat(h, health);\n }",
"@Override\r\n public void setHspace(String hspace) {\n }",
"public void set_heldout(final int h, final int n) {\n _nheldout = h;\n _early_stopping_n = n;\n }",
"public void setHP(int h)\n\t{\n\t\tiHP = h;\n\t\t\n\t}",
"public void setHgap(int gap)\n\t{\n\t\thgap = gap;\n\t}",
"public void setHGap(int gap) {\r\n this.hgap = gap;\r\n }",
"public void setHightPrice(final float newHightPrice)\r\n{\r\n\tthis.hightPrice = newHightPrice;\r\n}",
"public void setBand2H(org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle band2H)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().find_element_user(BAND2H$6, 0);\n if (target == null)\n {\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().add_element_user(BAND2H$6);\n }\n target.set(band2H);\n }\n }",
"public void setBh(Float bh) {\r\n this.bh = bh;\r\n }",
"@Override\n\tpublic void setPersonal_4_HalfGaugeMeter() \n\t{\n\t\tbgColor = METER_SCALE_COLOR;\n\t}",
"public void setPH(final double newPH) {\n if (newPH >= 0.0 && newPH <= MAXIMUM_PH) {\n this.pH = newPH;\n }\n }",
"public void setHealth(double h){\n health = h;\n }",
"public void setH(int i) {\n\t\tthis.height=i;\n\t}",
"private void setElevator(double height) {\n spark_pidController.setReference(height, ControlType.kSmartMotion);\n }",
"public void setHeight(int h){ heightRadius = h; }",
"public void setHosucr(Float hosucr) {\r\n this.hosucr = hosucr;\r\n }",
"void setHResolution(short resolution);",
"public void setHeardPercentMusic(double heardPercentMusic) {\n this.heardPercentMusic = heardPercentMusic;\n }",
"public double getH() {\n return h;\n }",
"public double getH() {\n return h;\n }",
"public void setHighGearState() {\n shifter.set(Constants.Drivetrain.HIGH_GEAR_STATE);\n }",
"public void setHazmat(boolean value) {\r\n this.hazmat = value;\r\n }",
"public void updateFarhenheight(){\n tempInF = ( (tempInC / 5.0 ) * 9.0 ) + 32;\n }",
"public void setHeardPercentOther(double heardPercentOther) {\n this.heardPercentOther = heardPercentOther;\n }",
"public void setHue(float hue) {\r\n\t\thsb[0] = hue;\r\n\t}",
"public double getH();",
"public void setHgap(int paramInt) {\n/* */ this.hgap = paramInt;\n/* */ }",
"public void setBottom(int x) {\r\n bottomSide = x;\r\n }",
"public void setHigh(double value){high = value;}",
"public static void newHighscore(int h){\n highscore = h;\n SharedPreferences prefs = cont.getSharedPreferences(\"PAFF_SETTINGS\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putInt(\"highscore\",highscore);\n editor.commit();\n }",
"public void setHigh(double value) {\n this.high = value;\n }",
"public void setHorsePower(int horsePower) {\n\t\tthis.horsePower = horsePower;\n\t}",
"public double getH_() {\n\t\treturn h_;\n\t}",
"public void setHeuristics(Heuristic h,Heuristic totalFunction){\n\t\t_h = h;\n\t\t_totalFunction = totalFunction;\n\t}",
"public void setHeardPercentSports(double heardPercentSports) {\n this.heardPercentSports = heardPercentSports;\n }",
"public void setHijoDer (nodeTree pHDer){\n this._hDer=pHDer;\n }",
"@Override\n\tpublic void setTow(float tow) {\n\t\t\n\t}",
"void setMasterMode(double h, OrekitFixedStepHandler handler);",
"public void moveToHeight(double height) {\n\t\t//Sin(theta) = height/length\n\t\t//angleSetpoint = Math.toDegrees(Math.asin(height/Constants.BreachArm.ARM_LENGTH));\n\t}",
"public void setHeardPercentCS(double heardPercentCS) {\n this.heardPercentCS = heardPercentCS;\n }",
"public TiledView setHScale(AxisScale scale) {\n return setScales(scale,_bvp.getScale());\n }",
"public void shear(double shx, double shy)\r\n\t{\r\n\t\t// System.out.println(\"shear\");\r\n\t}",
"public void setSplitHorizon(boolean sh) {\n\t\tsplithorizon = sh;\n\t}",
"@Override\n\tpublic int getH() {\n\t\treturn 100;\n\t}",
"public void setHands(BolName bol1, BolName bol2) {\n\t\taddHand(bol1); \r\n\t\taddHand(bol2);\r\n\t\t\r\n\t\tif ((leftHand!=null) && (rightHand != null) ) {\r\n\t\t\thandType = COMBINED;\r\n\t\t} else handType = UNKNOWN;\r\n\t}",
"float getH() {\n return _h;\n }",
"public void setHigh(int high) {\n\t\tthis.high = high;\n\t}",
"public int getHalfWidth() {\n\t\t\treturn halfWidth;\n\t\t}",
"public void changeToHiGear() {\n\t\tspeedShifter.set(DoubleSolenoid.Value.kReverse); // forward is hi gear,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// port 0\n\t}",
"public void setHp(byte hp){\n this.hp = hp;\n }",
"public void setBhOhoatts(Float bhOhoatts) {\r\n this.bhOhoatts = bhOhoatts;\r\n }",
"@Override\r\n\tpublic void setClient(ClientWithHalf clientWithHalf) {\n\t\tthis.clientWithHalf = clientWithHalf;\r\n\t}",
"public void setArcheight(double ah) {\n\t\t\tarcheight.set(ah);\n\t\t}",
"public void setBhHosucr(Float bhHosucr) {\r\n this.bhHosucr = bhHosucr;\r\n }",
"public void setHalfCarry(final boolean value) {\n\t\tif (value) {\n\t\t\tsetHalfCarry();\n\t\t}\n\t\telse {\n\t\t\tresetHalfCarry();\n\t\t}\n\t}",
"private void setHighScoreTime(String hst) {\n setStringStat(hst, highScoreTime);\n }",
"public void setHeimo(String heimo) {\n this.heimo = heimo; \n }",
"public void setHigh(String high){\n range.setHigh(high);\n }",
"@Override\r\n\tpublic void setHealth(int strike) {\n\t\t\r\n\t}",
"void setHeight(VariableAmount height);",
"public void setMid(int value) {\r\n this.mid = value;\r\n }",
"public static void addHalfWall(Block halfWall) {\r\n\t\t_halfWalls.add(halfWall);\r\n\t}"
]
| [
"0.71519667",
"0.7120179",
"0.68574196",
"0.68489915",
"0.6775056",
"0.6695622",
"0.6690215",
"0.66309375",
"0.63674855",
"0.6307606",
"0.629649",
"0.6288356",
"0.6137717",
"0.6085755",
"0.5902046",
"0.5881092",
"0.5816511",
"0.58156013",
"0.5767889",
"0.57531494",
"0.5743164",
"0.57411635",
"0.5722639",
"0.5718418",
"0.5655481",
"0.559872",
"0.55895865",
"0.55750626",
"0.55745703",
"0.5573457",
"0.55544645",
"0.5546803",
"0.55420834",
"0.55403864",
"0.55367976",
"0.55307335",
"0.5504831",
"0.5483558",
"0.5483194",
"0.5473968",
"0.5464914",
"0.54631525",
"0.54518783",
"0.54426306",
"0.5433322",
"0.54084307",
"0.5407652",
"0.54071057",
"0.5399894",
"0.53992635",
"0.5387578",
"0.5387402",
"0.5350739",
"0.53414816",
"0.5339488",
"0.5317587",
"0.5309306",
"0.5309306",
"0.53042066",
"0.52851075",
"0.526668",
"0.52658314",
"0.525608",
"0.52518207",
"0.5247376",
"0.5232436",
"0.52186894",
"0.52093446",
"0.51920354",
"0.5173428",
"0.51564074",
"0.5133662",
"0.51335895",
"0.5132877",
"0.5130598",
"0.51299155",
"0.51238143",
"0.51172656",
"0.51106906",
"0.5108615",
"0.5103476",
"0.5100537",
"0.5098902",
"0.5091893",
"0.5088648",
"0.5088601",
"0.5088463",
"0.5086416",
"0.5081367",
"0.5077759",
"0.50708413",
"0.50693613",
"0.5064692",
"0.5054531",
"0.5054347",
"0.5049975",
"0.50419825",
"0.5039276",
"0.50350004",
"0.50347805"
]
| 0.79922664 | 0 |
Gets the front neck depth. | public String getFrontNeckDepth() {
return frontNeckDepth;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getBackNeckDepth() {\r\n\t\treturn backNeckDepth;\r\n\t}",
"float getDepth();",
"float getDepth();",
"public float getDepth() {\n return depth_;\n }",
"public float getDepth() {\r\n\t\treturn Float.parseFloat(getProperty(\"depth\").toString());\t\r\n\t}",
"public float getDepth() {\n return depth_;\n }",
"public float getDepth() {\n return depth_;\n }",
"public float getDepth() {\n return depth;\n }",
"public float getDepth() {\n return depth_;\n }",
"public double getDepth();",
"int getDepth();",
"public static int getDepth() {\n return depth;\n }",
"public int getDepth()\n {\n return m_Depth;\n }",
"public int getDepth();",
"int depth();",
"int depth();",
"public int getDepth() {\r\n return depth;\r\n }",
"public int getDepth() {\n return depth;\n }",
"public int depth() {\r\n\t\treturn this.depth;\r\n\t}",
"public int getDepth() {\n return depth_;\n }",
"int getDepthIndex() {\n return depthIndex;\n }",
"public int getDepth(){\n\t\treturn _depth;\n\t}",
"public int getDepth()\n {\n return depth; \n }",
"public int getDepth() {\n return depth_;\n }",
"public int getDepth(){\n\t\treturn depth;\n\t}",
"public int getMinDepth() {\n return minDepth;\n }",
"public String getnDepth() {\n return nDepth;\n }",
"public int depth ();",
"public int getDepth(){\r\n return this.depth;\r\n }",
"int getMax_depth();",
"public int depth() {\n\t\treturn depthHelp(root);\r\n\t}",
"public int getDepth()\n {\n return traversalStack.size();\n }",
"private int depth()\r\n\t{\r\n\t\t// If tree is empty then there are 0 levels\r\n\t\tif(isEmpty())\r\n\t\t{\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\t// Tree is not empty so use recursive depth method starting at Root level 1 to figure out depth\r\n\t\treturn depth(getRoot(), 1);\r\n\t}",
"private int setDepth() {\n int getDepth = depth;\n if (depth != -1) {\n getDepth = depth + 1;\n }\n return getDepth;\n }",
"public int minDepth() {\r\n\t\tint height = Integer.MAX_VALUE;\r\n\t\tif (left != null)\r\n\t\t\theight = Math.min(height, left.height() + 1);\r\n\t\tif (right != null)\r\n\t\t\theight = Math.min(height, right.height() + 1);\r\n\t\tif (left == null && right == null)\r\n\t\t\theight = 0;\r\n\t\treturn height;\r\n\t}",
"@Override\r\n\tpublic int getMaxDepth() {\r\n\t\tint profundidad = 1;// Profundidad inicial, como es la raiz es 1\r\n\t\treturn getMaxDepthRec(raiz, profundidad, profundidad);\r\n\t}",
"int getOldDepth() {\n return mOldDepth;\n }",
"public void setFrontNeckDepth(String frontNeckDepth) {\r\n\t\tthis.frontNeckDepth = frontNeckDepth;\r\n\t}",
"public int depth() {\n return parts.length - (isIndex() ? 0 : 1);\n }",
"public int getDepth() {\n if (isLiveOrCompiled())\n if(!this.getCapability(ImageComponent.ALLOW_SIZE_READ))\n throw new CapabilityNotSetException(J3dI18N.getString(\"ImageComponent3D0\"));\n return ((ImageComponent3DRetained)this.retained).getDepth();\n }",
"int getColorDepth();",
"public int depth(){\n\t\tint depth = 0;\n\t\tif(this.isEmpty()){\n\t\t\treturn depth;\n\t\t} else {\n\t\t\tdepth= 1;\n\t\t}\n\t\tQueue queue = new Queue();\n\t\tqueue.enqueue(this);\n\t\t\n\t\twhile(!queue.isEmpty()){\n\t\t\tBinaryTree tree = (BinaryTree) queue.dequeue();\n\t\t\tif(tree.left.getElement()!=null){\n\t\t\t\tqueue.enqueue(tree.left);\n\t\t\t\tdepth++;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn depth;\n\t}",
"public int getDepth() {\n return getDepthRecursive(root);\n\n }",
"public Integer getMaxDepth() {\n return this.maxDepth;\n }",
"@Override\n\tpublic Integer getDepth()\n\t{\n\t\treturn null;\n\t}",
"public Texture2D getDepthTexture()\n\t{\n\t\treturn mDepthTexture;\n\t}",
"public int depth(){\n if(root!=null){ // มี node ใน tree\n return height(root);\n }\n else {return -1;}\n }",
"int getTemporaryMaxDepth();",
"public int getMaxDepth() {\n return maxDepth;\n }",
"public short getBitDepth() {\n\n\t\treturn getShort(ADACDictionary.PIXEL_BIT_DEPTH);\n\n\t}",
"int maxDepth();",
"int getNewDepth() {\n return mNewDepth;\n }",
"public Double getValue() {\n return depth;\n }",
"public native int getDepth() throws MagickException;",
"public int depth ( BinTree tree){\n\t\tint x = 1; \n\t\twhile( tree.left != null){\n\t\t\ttree= tree.left;\n\t\t\tx++;\n\t\t}\n\t\treturn x;\n\t}",
"public int getMaxDepth() {\r\n\t\treturn maxDepth;\r\n\t}",
"public int depth() { return Math.max(left.depth(), right.depth()) + 1; }",
"public int Front() {\n if (isEmpty()) {\n return -1;\n }\n return nums[head];\n }",
"public Double getWellDepth() {\n\t\treturn wellDepth;\n\t}",
"com.microsoft.schemas.office.x2006.digsig.STPositiveInteger xgetColorDepth();",
"public int getFront() {\n if (isEmpty()) {\n return -1;\n }\n return arr[front];\n }",
"public int getTreeDepth() {\r\n\t\tmaxDepth = 0;\r\n\t\treturn getTreeDepth(root, 0);\r\n\t}",
"public int getFront() {\n if (cnt == 0)\n return -1;\n return head.val;\n }",
"public int getColorDepth() {\n\t\treturn colorDepth;\n\t}",
"public int getDepth() {\r\n\t\tint depth = 0;\r\n\t\tSearchNode<S, A> ancestor = this;\r\n\t\twhile(ancestor.parent != null) {\r\n\t\t\tdepth++;\r\n\t\t\tancestor = ancestor.parent;\r\n\t\t}\r\n\t\treturn depth;\r\n\t}",
"public int getPlaceDepth() {\n return placeDepth;\n }",
"public byte getBitDepth();",
"public int maxDepth() {\n return maxDepth;\n }",
"@Override\r\n\tpublic double getDepth()\r\n\t{\r\n\r\n\t\tList<Entity> roots = new Stack<Entity>();\r\n\t\troots.addAll(getRoots());\r\n\r\n\t\tif (roots.size() == 0) {\r\n\t\t\tlogger.error(\"There is no root for this lexical semantic resource.\");\r\n\t\t\treturn Double.NaN;\r\n\t\t}\r\n\t\telse if (roots.size() > 1) {\r\n\t\t\tlogger.error(\"There are several roots for this lexical semantic resource.\");\r\n\t\t\treturn Double.NaN;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tEntity root = roots.get(0);\r\n\t\t\t// return getEccentricity(root);\r\n\r\n\t\t\tdouble maxPathLength = 0.0;\r\n\t\t\tdouble[] returnValues = computeShortestPathLengths(root, 0.0,\r\n\t\t\t\t\tmaxPathLength, new HashSet<Entity>());\r\n\t\t\tmaxPathLength = returnValues[1];\r\n\t\t\treturn maxPathLength;\r\n\t\t}\r\n\t}",
"public int getDimZ() {\r\n return dimZ;\r\n }",
"public int maxDepth() {\n return maxDepth;\n }",
"public int discoverMaximumLayerDepth() {\n\t\tif (this.layers.size() > 0) {\n\t\t\tint layerDepth;\n\t\t\t\n\t\t\tfor (int i = 0; i < this.layers.size(); i++) {\n\t\t\t\tlayerDepth = this.layers.get(i).getDepth();\n\t\t\t\tthis.maximumLayerDepth = layerDepth > this.maximumLayerDepth ? layerDepth : this.maximumLayerDepth;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn this.maximumLayerDepth;\n\t}",
"public int getNodeDepth() {\n int depth = 0;\n TreeNode tn = this;\n \n while(tn.getFather() != null) {\n tn = tn.getFather();\n depth++;\n }\n \n return depth;\n }",
"int depthNoR(Node root) {\n\t\tNode endOfLevelMarker = new Node(-100);\n\n\t\tQueue<Node> s = new LinkedList<Node>();\n\t\t\n\t\ts.add(root);\n\t\ts.add(endOfLevelMarker);\n\n\t\tint depth = 0;\n\n\n\t\twhile (!s.isEmpty()) {\n\t\t\tNode k = s.poll();\n\n\t\t\tif (k != null) {\n\t\t\t\tif (k.data == -100) {\n\t\t\t\t\tdepth++;\n\t\t\t\t\tif (!s.isEmpty()) { // It was the last node. Without this check we will keep putting and popping marker forever.\n\t\t\t\t\t\ts.add(endOfLevelMarker);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (k.left != null) {\n\t\t\t\t\t\ts.add(k.left);\n\t\t\t\t\t}\n\t\t\t\t\tif (k.right != null) {\n\t\t\t\t\t\ts.add(k.right);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\treturn depth;\n\t}",
"public float getZ(){\n\t\tif(!isRoot()){\n\t\t\treturn getParent().getZ() + z;\n\t\t}else{\n\t\t\treturn z;\n\t\t}\n\t}",
"public Color getFrontFlankingGapColor() {\n\t\treturn frontgap ? Color.red : Color.lightGray;\n\t}",
"private int getDepthRaw(TreeNode root){\n if (root == null) {\n return 0;\n }\n\n int left = getDepthRaw(root.left);\n int right = getDepthRaw(root.right);\n if (left == -1 || right == -1) {\n return -1;\n }else{\n if (Math.abs(left - right) > 1) {\n return -1;\n }else{\n return Math.max(left, right) + 1;\n }\n }\n }",
"public int Front() {\n if (count == 0) {\n return -1;\n }\n return array[head];\n }",
"public JSONObject getDepth() throws Exception;",
"int front()\n {\n if (isEmpty())\n return Integer.MIN_VALUE;\n return this.array[this.front];\n }",
"private Integer getDepth(BinaryNode node, int depth) {\n\n if (node == null) return depth;\n else return Math.max(getDepth(node.left, depth + 1),getDepth(node.right, depth + 1));\n }",
"public String getDepthOfField() {\n double depthOfFieldMM = farFocalPoint - nearFocalPoint;\n\n // convert from mm to m\n double depthOfFieldMeters = depthOfFieldMM * 0.001;\n\n // return answer rounded to 2 decimal places\n return formatM(depthOfFieldMeters);\n }",
"public int getBufferDepth() {\n return (this.bufferDepth);\n }",
"int depth(BTNode node) {\n int d = 0;\n while (node != root) {\n node = node.parent;\n d++;\n }\n return d;\n }",
"public int peekFront() {\n int x = 0;\n if(head == null) {\n return Integer.MIN_VALUE;\n }\n\n return head.val;\n }",
"public int Front() {\n if (isEmpty()) {\n return -1;\n }\n return queue[head];\n }",
"public IfcPositiveLengthMeasure getThresholdDepth()\n\t{\n\t\treturn this.ThresholdDepth;\n\t}",
"public int getFront() {\n return !isEmpty() ? elements[last - 1] : -1;\n }",
"@Override\n public int getDepth() {\n return 680;\n }",
"protected int computeColourfulDepth() {\n Point2D.Double p1, p2, p3;\r\n int depth = 0;\r\n for (int i1 = 0; i1 < k - 2; i1++) { // first colour\r\n for (int j1 = 0; j1 < sizes[i1]; j1++) { // j1 = 0..n_i1\r\n for (int i2 = i1 + 1; i2 < k - 1; i2++) { // second colour\r\n for (int j2 = 0; j2 < sizes[i2]; j2++) {\r\n for (int i3 = i2 + 1; i3 < k; i3++) {\r\n for (int j3 = 0; j3 < sizes[i3]; j3++) {\r\n p1 = colourSets.get(i1)[j1];\r\n p2 = colourSets.get(i2)[j2];\r\n p3 = colourSets.get(i3)[j3];\r\n if (checkIfInside(p1, p2, p3)) {\r\n depth++;\r\n // paint.paint(p1, p2, p3);\r\n double theta1 = Math.toDegrees(Math.atan2(p1.y, p1.x));\r\n double theta2 = Math.toDegrees(Math.atan2(p2.y, p2.x));\r\n double theta3 = Math.toDegrees(Math.atan2(p3.y, p3.x));\r\n if (theta1 < 0) {\r\n theta1 += 360;\r\n }\r\n if (theta2 < 0) {\r\n theta2 += 360;\r\n }\r\n if (theta3 < 0) {\r\n theta3 += 360;\r\n }\r\n if (Math.abs(theta2 - theta1) == 180 ||\r\n Math.abs(theta3 - theta2) == 180 ||\r\n Math.abs(theta1 - theta3) == 180){\r\n System.out.println(\"HEY HO\");\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n System.out.println(\"Small Differences in CSD = \" + smallDiff);\r\n return depth;\r\n }",
"public String getFrontNeckDesign() {\r\n\t\treturn frontNeckDesign;\r\n\t}",
"public void setBackNeckDepth(String backNeckDepth) {\r\n\t\tthis.backNeckDepth = backNeckDepth;\r\n\t}",
"int getRecursionDepth();",
"public Node getFront(){\n return this.front;\n }",
"public int getZ() {\n\t\treturn -150;\n\t}",
"public double getFLAngle(){\r\n \treturn frontLeftPot.get() - FLOFFSET;\r\n }",
"int depth(Node root) {\n\t\tif (root == null) return 0;\n\t\treturn Math.max(depth(root.left), depth(root.right)) + 1 ;\n\t}",
"public int Front() {\n if(queue[head] == null){\n return -1;\n }else{\n return queue[head];\n }\n }",
"public double getZFactor() {\r\n\t\treturn z_factor;\r\n\t}",
"public int size() {\n\t\treturn real-front+1; //x\r\n\t}"
]
| [
"0.75244635",
"0.7308696",
"0.7308696",
"0.7183528",
"0.7176209",
"0.71594393",
"0.71594393",
"0.7156532",
"0.71414524",
"0.71367323",
"0.7135742",
"0.7093513",
"0.7025078",
"0.69727767",
"0.6960203",
"0.6960203",
"0.6933091",
"0.68967295",
"0.68858856",
"0.6847398",
"0.68427336",
"0.679356",
"0.67792267",
"0.67680293",
"0.67579037",
"0.67413425",
"0.67067796",
"0.67032915",
"0.66743",
"0.6673454",
"0.6666286",
"0.6614113",
"0.6587656",
"0.6569465",
"0.6544079",
"0.65377426",
"0.65051204",
"0.6503997",
"0.65018547",
"0.63648725",
"0.6351993",
"0.6337864",
"0.6325412",
"0.6320952",
"0.63142294",
"0.6273849",
"0.62642175",
"0.6253793",
"0.62115145",
"0.61858565",
"0.6185756",
"0.6179028",
"0.6153576",
"0.6148027",
"0.61478984",
"0.6135265",
"0.61338633",
"0.60767525",
"0.60578054",
"0.60535413",
"0.60457",
"0.6038541",
"0.6029978",
"0.6018888",
"0.6016041",
"0.5995304",
"0.5982036",
"0.5964492",
"0.59640557",
"0.5942722",
"0.5933014",
"0.59047323",
"0.58966076",
"0.5879796",
"0.5878992",
"0.58683413",
"0.5847094",
"0.5844841",
"0.58429277",
"0.5811327",
"0.5808083",
"0.5802538",
"0.5785466",
"0.57584155",
"0.5746642",
"0.57465434",
"0.574497",
"0.5740856",
"0.5728363",
"0.57245994",
"0.5711715",
"0.56887835",
"0.5685806",
"0.56802624",
"0.5673426",
"0.5665514",
"0.5665196",
"0.56621003",
"0.5660642",
"0.566053"
]
| 0.86314094 | 0 |
Sets the front neck depth. | public void setFrontNeckDepth(String frontNeckDepth) {
this.frontNeckDepth = frontNeckDepth;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setFront(Node front){\n this.front = front;\n }",
"private final void setDepth(int depth){\n\t\tthis.depth = depth;\n\t}",
"public void setFront(int x) {\r\n front = x;\r\n }",
"public void setDepth(double aDepth);",
"public String getFrontNeckDepth() {\r\n\t\treturn frontNeckDepth;\r\n\t}",
"public static void setDepth(int dep) {\n depth = dep;\n }",
"public void setDepth(int depth) {\r\n this.depth = depth;\r\n }",
"public void setBackNeckDepth(String backNeckDepth) {\r\n\t\tthis.backNeckDepth = backNeckDepth;\r\n\t}",
"private int setDepth() {\n int getDepth = depth;\n if (depth != -1) {\n getDepth = depth + 1;\n }\n return getDepth;\n }",
"public void setDepth(int newdepth)\n {\n depth = newdepth; \n }",
"public void setDepth(double depth) {\n\t\t this.depth = depth;\n\t }",
"public int setDepth(Float depth) {\n try {\n setDepth(depth.floatValue());\n } catch (Exception e) {\n setDepthError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return depthError;\n }",
"void setTemporaryMaxDepth(int depth);",
"public int setDepth(Integer depth) {\n try {\n setDepth(depth.floatValue());\n } catch (Exception e) {\n setDepthError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return depthError;\n }",
"public Builder setDepth(float value) {\n bitField0_ |= 0x00000002;\n depth_ = value;\n onChanged();\n return this;\n }",
"public Builder setDepth(int value) {\n \n depth_ = value;\n onChanged();\n return this;\n }",
"public Builder setDepth(float value) {\n bitField0_ |= 0x00000004;\n depth_ = value;\n onChanged();\n return this;\n }",
"void setDepthIndex(int depthIndex) {\n this.depthIndex = depthIndex;\n }",
"public native void setDepth(int depth) throws MagickException;",
"@JSProperty(\"front\")\n void setFront(Chart3dFrameFrontOptions value);",
"public void setFixedZdepth(int expectedZIndex);",
"void setColorDepth(int colorDepth);",
"public void setFrontNeckDesign(String frontNeckDesign) {\r\n\t\tthis.frontNeckDesign = frontNeckDesign;\r\n\t}",
"public FractalTrace setDepth(int value) throws ParameterOutOfRangeException\n {\n\t\tif(value > 65536 || value < 1)\n\t {\n\t throw new ParameterOutOfRangeException(value, 1, 65536);\n\t }\n\n m_Depth = value;\n setProperty(\"depth\", value);\n return this;\n }",
"protected void setDepth(Node root) {\n\t\tStack<Node> stack = new Stack<Node>();\n\n\t\troot.depth = 0;\n\n\t\t// push root to the stack\n\t\tstack.push(root);\n\n\t\t// walk through every node and set the according depth.\n\t\twhile (stack.size() > 0) {\n\n\t\t\tNode temp = (Node) stack.pop();\n\n\t\t\tif (temp != null) {\n\t\t\t\tif (temp.left != null) {\n\t\t\t\t\tint leftOfTempDepth = temp.depth + 1;\n\n\t\t\t\t\ttemp.left.depth = leftOfTempDepth;\n\n\t\t\t\t\tstack.push(temp.left);\n\t\t\t\t}\n\n\t\t\t\tif (temp.right != null) {\n\t\t\t\t\tint rightOfTempDepth = temp.depth + 1;\n\n\t\t\t\t\ttemp.right.depth = rightOfTempDepth;\n\n\t\t\t\t\tstack.push(temp.right);\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t}",
"public void setMinDepth(int minDepth) {\n this.minDepth = minDepth;\n }",
"public void increaseDepth() {\n currentDepth++;\n }",
"void incrementOldDepth() {\n mOldDepth++;\n }",
"public void setBack(Node back){\n this.back = back;\n }",
"public int setDepth(String depth) {\n try {\n setDepth(new Float(depth).floatValue());\n } catch (Exception e) {\n setDepthError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return depthError;\n }",
"public void setDepth(double[] depthValues) {\n depth = depthValues;\n }",
"void incrementNewDepth() {\n mNewDepth++;\n }",
"private void setDepthError (float depth, Exception e, int error) {\n this.depth = depth;\n depthErrorMessage = e.toString();\n depthError = error;\n }",
"void decrementOldDepth() {\n mOldDepth--;\n }",
"public float getDepth() {\n return depth_;\n }",
"public void frontDown(){\n frontSolenoid.set(DoubleSolenoid.Value.kReverse);\n }",
"void decrementNewDepth() {\n mNewDepth--;\n }",
"public int getDepth(){\n\t\treturn _depth;\n\t}",
"protected void incrementDepthLimit() {\n currDepthLimit++;\n }",
"public int getDepth(){\n\t\treturn depth;\n\t}",
"float getDepth();",
"float getDepth();",
"public float getDepth() {\n return depth;\n }",
"void front() {\n startAnimation(frontSubCubes(), Axis.Z, Direction.CLOCKWISE);\n frontCubeSwap();\n }",
"public float getDepth() {\n return depth_;\n }",
"public int getDepth(){\r\n return this.depth;\r\n }",
"public int getDepth() {\r\n return depth;\r\n }",
"int getDepthIndex() {\n return depthIndex;\n }",
"public void setDepthImage(T depthImage) {\n\t\tthis.depthImage = depthImage;\n\t}",
"public float getDepth() {\n return depth_;\n }",
"public float getDepth() {\n return depth_;\n }",
"int getDepth();",
"public int getDepth();",
"public void setMaxDepth(int theDepth) {\r\n\t\tmaxDepth = theDepth;\r\n\t}",
"public Builder clearDepth() {\n bitField0_ = (bitField0_ & ~0x00000002);\n depth_ = 0F;\n onChanged();\n return this;\n }",
"public int getDepth() {\n return depth_;\n }",
"public int getDepth() {\n return depth_;\n }",
"public int getDepth() {\n return depth;\n }",
"public void setMaxDepth (int maxDepth) {\n \n }",
"public void setParent(Node parent) {\r\n//\t\tdepth = parent.depth + 1;\r\n\t\tthis.parent = parent;\r\n\t\t//return depth;\r\n\t\t\r\n\t}",
"public void frontUp(){\n frontSolenoid.set(DoubleSolenoid.Value.kForward);\n }",
"public int getDepth()\n {\n return depth; \n }",
"public String getBackNeckDepth() {\r\n\t\treturn backNeckDepth;\r\n\t}",
"public static void setNodeBackFixedColor( Color color ) { BACK_FIXED_COLOR = color; }",
"public void setPrev(Level previous) {\n\t\tthis.prev = previous;\n\t}",
"public void decreaseDepth() {\n currentDepth--;\n }",
"public int getMinDepth() {\n return minDepth;\n }",
"public void setGateDepth(int value) {\r\n\t\tgateDepth = value;\r\n\t}",
"public int getDepth()\n {\n return m_Depth;\n }",
"public Builder clearDepth() {\n \n depth_ = 0;\n onChanged();\n return this;\n }",
"private void initDepthToClass(OWLOntologyManager manager, OWLOntology ont, int depth) {\n\n\t\t// Are there lower \"level\"\n\t\tboolean areThereLower = true;\n\n\t\t// Save the current top classes (subclasses of top)\n\t\tSet<OWLClass> classes = reasoner.getSubClasses(df.getOWLThing(), true).entities().collect(Collectors.toSet());\n\n\t\t// as long as there are lower level\n\t\twhile (areThereLower) {\n\n\t\t\t// Save this new subclasses as the classes for this depth\n\t\t\tdepthToClasses.put(depth, classes);\n\n\t\t\t// Create a List for the next level\n\t\t\tSet<OWLClass> newClasses = new HashSet<>();\n\n\t\t\t// For all classes of the current level\n\t\t\tfor (OWLClass cls : classes) {\n\n\t\t\t\t// Get all subclasses\n\t\t\t\tList<OWLClass> subForCls = reasoner.getSubClasses(cls, true).entities().collect(Collectors.toList());\n\n\t\t\t\t// Add them to the next level\n\t\t\t\tnewClasses.addAll(subForCls);\n\n\t\t\t\t// save parent structure\n\t\t\t\tsubForCls.stream().forEach(subCls -> {\n\t\t\t\t\tclassToParent.put(subCls, cls);\n\t\t\t\t\tclassToParentString.put(OntologyDescriptor.getCleanNameOWLObj(subCls),\n\t\t\t\t\t\t\tOntologyDescriptor.getCleanNameOWLObj(cls));\n\t\t\t\t});\n\n\t\t\t}\n\n\t\t\t// Set the new level as the current level\n\t\t\tclasses = newClasses;\n\n\t\t\t// Next level index\n\t\t\tdepth++;\n\n\t\t\t// If there are less than 1 new class stop this loop\n\t\t\tif (newClasses.size() < 1) {\n\t\t\t\tareThereLower = false;\n\t\t\t}\n\n\t\t}\n\t}",
"public void setColorDepth(int depth) {\n this.standardPairs.put(Parameters.COLOR_DEPTH, Integer.toString(depth));\n }",
"public void setBack(int x) {\r\n back = x;\r\n }",
"public Builder clearDepth() {\n bitField0_ = (bitField0_ & ~0x00000004);\n depth_ = 0F;\n onChanged();\n return this;\n }",
"public Node getFront(){\n return this.front;\n }",
"public static int getDepth() {\n return depth;\n }",
"public void lockFront()\n {\n m_bFrontLock = true;\n }",
"public void setPrev(Node prev) {\n this.prev = prev;\n }",
"public void setPrev(Node prev)\r\n\t{\r\n\t\tthis.prev = prev;\r\n\t}",
"int getOldDepth() {\n return mOldDepth;\n }",
"public void setMaximumCrawlDepth(int depth) throws Exception\n\t{\n\t\tif (depth < -1)\n\t\t{\n\t\t\tthrow new Exception(\"Maximum crawl depth should be either a positive number or -1 for unlimited depth.\");\n\t\t}\n\t\tif (depth > Short.MAX_VALUE)\n\t\t{\n\t\t\tthrow new Exception(\"Maximum value for crawl depth is \" + Short.MAX_VALUE);\n\t\t}\n\t\tWebCrawler.setMaximumCrawlDepth((short) depth);\n\t}",
"public double getDepth();",
"public void setFrontSpeed(double speed) { \r\n fmMotor.set(speed);\r\n }",
"public int depth() {\r\n\t\treturn this.depth;\r\n\t}",
"public void drawFront(GameCanvas canvas) {\n if (texture == null) {\n System.out.println(\"draw() called on wall with null texture\");\n return;\n }\n\n // Draw the front of the wall\n drawWall(canvas, true, opacity);\n }",
"public void setPrev(Node<T> prev) {\n\t\tthis.prev = prev;\n\t}",
"private void frontObject() {\n\t\tif(this.curr_obj != null) {\n this.curr_obj.uMoveToFront();\n\t\t}\n\t}",
"@Override\n\tpublic Integer getDepth()\n\t{\n\t\treturn null;\n\t}",
"@Override\n public int getDepth() {\n return 680;\n }",
"public void preorder()\n {\n preorder(root);\n }",
"public void preorder()\n {\n preorder(root);\n }",
"private void setMinHeap() {\n // parentIndex is the last leaf node parentIndex\n int parentIndex = (array.length - 2) / 2;\n // from last parentIndex down on the depth path to the root\n // convert to minHeap\n while (parentIndex >= 0) { // when parentIndex = 0, the root\n minHeapify(parentIndex, array.length);\n // go to next index(parentIndex) on that level\n parentIndex--;\n }\n }",
"public void setPrev(DNode newPrev) { prev = newPrev; }",
"void moveFront()\n\t{\n\t\tif (length != 0)\n\t\t {\n\t\t\tcursor = front;\n\t\t\tindex = 0; //cursor will be at the front\n\t\t\t\n\n\t\t}\n\t}",
"private void resetFlanker() {\n\n for (int i = 0; i < width; i++) {\n frontLinePatientCounters[i] = 0;\n flankersCount[i] = 0;\n flankerOffsets[i].clear();\n }\n leftFlankerIndices = MathUtils.getHexagonalIndicesRingAtOffset(0);\n rightFlankerIndices = MathUtils.getHexagonalIndicesRingAtOffset(0);\n }",
"public void preorder()\r\n {\r\n preorder(root);\r\n }",
"public Front() {\n\t\twheels.getrWheel().getBoundingSphereTree().getBoundingSphere().translateCenter(0.8 * Specification.TIRE_RADIUS, 0.5 * Specification.TIRE_RADIUS, 0.5 * Specification.B_DEPTH - 1.1 * Specification.TIRE_DEPTH);\n\t\twheels.getlWheel().getBoundingSphereTree().getBoundingSphere().translateCenter(0.8 * Specification.TIRE_RADIUS, 0.5 * Specification.TIRE_RADIUS, -0.5 * Specification.B_DEPTH + 1.1 * Specification.TIRE_DEPTH);\n\t}",
"public int depth ();",
"void xsetColorDepth(com.microsoft.schemas.office.x2006.digsig.STPositiveInteger colorDepth);",
"public void preorder() {\n\t\tpreorder(root);\n\t}"
]
| [
"0.7011289",
"0.68904006",
"0.68075067",
"0.67818975",
"0.6737041",
"0.6726807",
"0.6633183",
"0.65926844",
"0.652649",
"0.64966834",
"0.64516294",
"0.639505",
"0.637172",
"0.6345341",
"0.6294519",
"0.6256504",
"0.62512",
"0.61364853",
"0.61145675",
"0.6094932",
"0.6059653",
"0.6058283",
"0.6053343",
"0.6005358",
"0.60033554",
"0.60010874",
"0.58802646",
"0.5811694",
"0.58054066",
"0.57938135",
"0.578598",
"0.5705558",
"0.5691331",
"0.56541413",
"0.563757",
"0.56307",
"0.56144273",
"0.55969405",
"0.5584721",
"0.55656374",
"0.55545086",
"0.55545086",
"0.55481654",
"0.5536247",
"0.5526397",
"0.5518965",
"0.5518665",
"0.55126965",
"0.5491351",
"0.5488156",
"0.5488156",
"0.54871047",
"0.5458891",
"0.5455836",
"0.5448659",
"0.5438469",
"0.5438071",
"0.5436763",
"0.5426854",
"0.5426529",
"0.5424136",
"0.5397922",
"0.5396239",
"0.53875685",
"0.5380906",
"0.5380041",
"0.5377771",
"0.53757626",
"0.53748167",
"0.537413",
"0.536333",
"0.53524554",
"0.53507227",
"0.5345195",
"0.53451765",
"0.5304177",
"0.5283216",
"0.5274755",
"0.52696145",
"0.5266135",
"0.5263573",
"0.52520615",
"0.52241564",
"0.5224021",
"0.5215574",
"0.52052796",
"0.51938397",
"0.51919603",
"0.5190185",
"0.5180536",
"0.5180536",
"0.51745415",
"0.5167329",
"0.51632744",
"0.5142986",
"0.5140671",
"0.51388305",
"0.5137207",
"0.51272666",
"0.51192117"
]
| 0.78225833 | 0 |
Gets the back neck depth. | public String getBackNeckDepth() {
return backNeckDepth;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getFrontNeckDepth() {\r\n\t\treturn frontNeckDepth;\r\n\t}",
"int getDepth();",
"public static int getDepth() {\n return depth;\n }",
"public double getDepth();",
"int getMax_depth();",
"int depth();",
"int depth();",
"public int getDepth()\n {\n return m_Depth;\n }",
"public void setBackNeckDepth(String backNeckDepth) {\r\n\t\tthis.backNeckDepth = backNeckDepth;\r\n\t}",
"float getDepth();",
"float getDepth();",
"public String getnDepth() {\n return nDepth;\n }",
"@Override\r\n\tpublic int getMaxDepth() {\r\n\t\tint profundidad = 1;// Profundidad inicial, como es la raiz es 1\r\n\t\treturn getMaxDepthRec(raiz, profundidad, profundidad);\r\n\t}",
"public int getDepth();",
"public int getDepth() {\r\n return depth;\r\n }",
"public int depth() {\r\n\t\treturn this.depth;\r\n\t}",
"public int getDepth() {\n return depth;\n }",
"public Integer getMaxDepth() {\n return this.maxDepth;\n }",
"public int getDepth()\n {\n return traversalStack.size();\n }",
"public int getDepth()\n {\n return depth; \n }",
"public float getDepth() {\r\n\t\treturn Float.parseFloat(getProperty(\"depth\").toString());\t\r\n\t}",
"public float getDepth() {\n return depth;\n }",
"public float getDepth() {\n return depth_;\n }",
"public int getDepth() {\n return depth_;\n }",
"int maxDepth();",
"public int getDepth(){\n\t\treturn _depth;\n\t}",
"public float getDepth() {\n return depth_;\n }",
"public int getDepth() {\n return depth_;\n }",
"public float getDepth() {\n return depth_;\n }",
"public float getDepth() {\n return depth_;\n }",
"public int getDepth(){\n\t\treturn depth;\n\t}",
"public int depth ();",
"int getOldDepth() {\n return mOldDepth;\n }",
"private int depth()\r\n\t{\r\n\t\t// If tree is empty then there are 0 levels\r\n\t\tif(isEmpty())\r\n\t\t{\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\t// Tree is not empty so use recursive depth method starting at Root level 1 to figure out depth\r\n\t\treturn depth(getRoot(), 1);\r\n\t}",
"int getDepthIndex() {\n return depthIndex;\n }",
"public int getMaxDepth() {\n return maxDepth;\n }",
"public int getDepth(){\r\n return this.depth;\r\n }",
"int getTemporaryMaxDepth();",
"public int getMaxDepth() {\r\n\t\treturn maxDepth;\r\n\t}",
"public int depth() {\n return parts.length - (isIndex() ? 0 : 1);\n }",
"int getNewDepth() {\n return mNewDepth;\n }",
"public int depth(){\n if(root!=null){ // มี node ใน tree\n return height(root);\n }\n else {return -1;}\n }",
"public int maxDepth() {\n return maxDepth;\n }",
"private int setDepth() {\n int getDepth = depth;\n if (depth != -1) {\n getDepth = depth + 1;\n }\n return getDepth;\n }",
"public Texture2D getDepthTexture()\n\t{\n\t\treturn mDepthTexture;\n\t}",
"public int maxDepth() {\n return maxDepth;\n }",
"public byte getBitDepth();",
"public int depth() {\n\t\treturn depthHelp(root);\r\n\t}",
"public int getDepth() {\n return getDepthRecursive(root);\n\n }",
"public Double getWellDepth() {\n\t\treturn wellDepth;\n\t}",
"public int discoverMaximumLayerDepth() {\n\t\tif (this.layers.size() > 0) {\n\t\t\tint layerDepth;\n\t\t\t\n\t\t\tfor (int i = 0; i < this.layers.size(); i++) {\n\t\t\t\tlayerDepth = this.layers.get(i).getDepth();\n\t\t\t\tthis.maximumLayerDepth = layerDepth > this.maximumLayerDepth ? layerDepth : this.maximumLayerDepth;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn this.maximumLayerDepth;\n\t}",
"public int depth() { return Math.max(left.depth(), right.depth()) + 1; }",
"public int getBackward() {\n return this.backward;\n }",
"@Override\n\tpublic Integer getDepth()\n\t{\n\t\treturn null;\n\t}",
"public int depth(){\n\t\tint depth = 0;\n\t\tif(this.isEmpty()){\n\t\t\treturn depth;\n\t\t} else {\n\t\t\tdepth= 1;\n\t\t}\n\t\tQueue queue = new Queue();\n\t\tqueue.enqueue(this);\n\t\t\n\t\twhile(!queue.isEmpty()){\n\t\t\tBinaryTree tree = (BinaryTree) queue.dequeue();\n\t\t\tif(tree.left.getElement()!=null){\n\t\t\t\tqueue.enqueue(tree.left);\n\t\t\t\tdepth++;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn depth;\n\t}",
"public int getHeight(){\n\t\tint h=maxDepth(root);\n\t\treturn h;\n\t}",
"private int getDepthRaw(TreeNode root){\n if (root == null) {\n return 0;\n }\n\n int left = getDepthRaw(root.left);\n int right = getDepthRaw(root.right);\n if (left == -1 || right == -1) {\n return -1;\n }else{\n if (Math.abs(left - right) > 1) {\n return -1;\n }else{\n return Math.max(left, right) + 1;\n }\n }\n }",
"int depthNoR(Node root) {\n\t\tNode endOfLevelMarker = new Node(-100);\n\n\t\tQueue<Node> s = new LinkedList<Node>();\n\t\t\n\t\ts.add(root);\n\t\ts.add(endOfLevelMarker);\n\n\t\tint depth = 0;\n\n\n\t\twhile (!s.isEmpty()) {\n\t\t\tNode k = s.poll();\n\n\t\t\tif (k != null) {\n\t\t\t\tif (k.data == -100) {\n\t\t\t\t\tdepth++;\n\t\t\t\t\tif (!s.isEmpty()) { // It was the last node. Without this check we will keep putting and popping marker forever.\n\t\t\t\t\t\ts.add(endOfLevelMarker);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (k.left != null) {\n\t\t\t\t\t\ts.add(k.left);\n\t\t\t\t\t}\n\t\t\t\t\tif (k.right != null) {\n\t\t\t\t\t\ts.add(k.right);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\treturn depth;\n\t}",
"public int depth ( BinTree tree){\n\t\tint x = 1; \n\t\twhile( tree.left != null){\n\t\t\ttree= tree.left;\n\t\t\tx++;\n\t\t}\n\t\treturn x;\n\t}",
"public int getTreeDepth() {\r\n\t\tmaxDepth = 0;\r\n\t\treturn getTreeDepth(root, 0);\r\n\t}",
"public int getLastLevel() {\n return lastLevel;\n }",
"public int maxDepth() {\n\t\treturn maxDepth(root);\n\t}",
"public Node getBack(){\n return this.back;\n }",
"int getColorDepth();",
"private Integer getDepth(BinaryNode node, int depth) {\n\n if (node == null) return depth;\n else return Math.max(getDepth(node.left, depth + 1),getDepth(node.right, depth + 1));\n }",
"public native int getDepth() throws MagickException;",
"public double getMaxDepthForRuptureInRegionBounds() {\n if(maxDepth == 0)\n getSiteRegionBounds();\n return maxDepth;\n }",
"public Double getValue() {\n return depth;\n }",
"public int getDepth() {\n if (isLiveOrCompiled())\n if(!this.getCapability(ImageComponent.ALLOW_SIZE_READ))\n throw new CapabilityNotSetException(J3dI18N.getString(\"ImageComponent3D0\"));\n return ((ImageComponent3DRetained)this.retained).getDepth();\n }",
"public int getDepth() {\r\n\t\tint depth = 0;\r\n\t\tSearchNode<S, A> ancestor = this;\r\n\t\twhile(ancestor.parent != null) {\r\n\t\t\tdepth++;\r\n\t\t\tancestor = ancestor.parent;\r\n\t\t}\r\n\t\treturn depth;\r\n\t}",
"public synchronized String[][] getBookDepth() {\n\t\tString[][] bd = new String[2][];\n\t\tbd[0] = getBuySide().getBookDepth();\n\t\tbd[1] = getSellSide().getBookDepth();\n\t\treturn bd;\n\t}",
"public double getNeckLength() {\n MessageUtility.logGetter(name,\"getNeckLength\",neckLength);\n return neckLength;\n }",
"@Override\r\n\tpublic double getDepth()\r\n\t{\r\n\r\n\t\tList<Entity> roots = new Stack<Entity>();\r\n\t\troots.addAll(getRoots());\r\n\r\n\t\tif (roots.size() == 0) {\r\n\t\t\tlogger.error(\"There is no root for this lexical semantic resource.\");\r\n\t\t\treturn Double.NaN;\r\n\t\t}\r\n\t\telse if (roots.size() > 1) {\r\n\t\t\tlogger.error(\"There are several roots for this lexical semantic resource.\");\r\n\t\t\treturn Double.NaN;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tEntity root = roots.get(0);\r\n\t\t\t// return getEccentricity(root);\r\n\r\n\t\t\tdouble maxPathLength = 0.0;\r\n\t\t\tdouble[] returnValues = computeShortestPathLengths(root, 0.0,\r\n\t\t\t\t\tmaxPathLength, new HashSet<Entity>());\r\n\t\t\tmaxPathLength = returnValues[1];\r\n\t\t\treturn maxPathLength;\r\n\t\t}\r\n\t}",
"int getRecursionDepth();",
"@Override\n public int getDepth() {\n return 680;\n }",
"public int getLevel() {\n\t\treturn 1 + this.iter / this.levelfk;\n\t}",
"int depth(BTNode node) {\n int d = 0;\n while (node != root) {\n node = node.parent;\n d++;\n }\n return d;\n }",
"@Override\r\n\tpublic int getGateDepth() {\r\n\t\treturn gateDepth;\r\n\t}",
"public double getBreadth() {\n\t\treturn _tempNoTiceShipMessage.getBreadth();\n\t}",
"public int minDepth() {\r\n\t\tint height = Integer.MAX_VALUE;\r\n\t\tif (left != null)\r\n\t\t\theight = Math.min(height, left.height() + 1);\r\n\t\tif (right != null)\r\n\t\t\theight = Math.min(height, right.height() + 1);\r\n\t\tif (left == null && right == null)\r\n\t\t\theight = 0;\r\n\t\treturn height;\r\n\t}",
"public int getColorDepth() {\n\t\treturn colorDepth;\n\t}",
"public double getNeck() {\n return neck;\n }",
"public short getBitDepth() {\n\n\t\treturn getShort(ADACDictionary.PIXEL_BIT_DEPTH);\n\n\t}",
"public int getBufferDepth() {\n return (this.bufferDepth);\n }",
"public int getDOWN_BORDER() {\n\t\treturn DOWN_BORDER;\n\t}",
"public int getPlaceDepth() {\n return placeDepth;\n }",
"public Color getBackFlankingGapColor() {\n\t\treturn backgap ? Color.red : Color.lightGray;\n\t}",
"public int getZ() {\n\t\treturn -150;\n\t}",
"public int popBack() {\n int y = 0;\n if(tail == null) {\n return Integer.MIN_VALUE;\n }\n\n Node node = tail;\n tail = node.prev;\n\n size--;\n\n return node.val;\n }",
"public double getLastBackgroundLevel() {\r\n return background;\r\n }",
"com.microsoft.schemas.office.x2006.digsig.STPositiveInteger xgetColorDepth();",
"private int findDepth(int m) {\n\t\t\tint number = 0;\n\t\t\tif(m > size-1) throw new IllegalArgumentException(\"Out of range.\");\n\t\t\twhile(m != array[m]) {\n\t\t\t\tm = array[m];\n\t\t\t\tnumber++;\n\t\t\t}\n\t\t\treturn number;\n\t\t}",
"public int getBacktrackedTransitionCount() {\n return ttb.getBacksteppedTransitions();\n }",
"public String getBackwardNode() {\r\n\t\ttry {\r\n\t\t\treturn path.getPreviousNode(procNode);\r\n\t\t} catch (Exception e) {return null; /* In case of an error!*/}\r\n\t}",
"int depth(Node root) {\n\t\tif (root == null) return 0;\n\t\treturn Math.max(depth(root.left), depth(root.right)) + 1 ;\n\t}",
"public int getNbTreeBidCard() {\n\t\treturn cacheTree.getNbTreeBidCard();\n\t}",
"public int getRightEdge() {\n return rightEdge;\n }",
"public JSONObject getDepth() throws Exception;",
"public int getDimZ() {\r\n return dimZ;\r\n }",
"int getBackpack();"
]
| [
"0.7715348",
"0.7048738",
"0.6997645",
"0.6974663",
"0.6964981",
"0.69561267",
"0.69561267",
"0.6955543",
"0.69267493",
"0.6918469",
"0.6918469",
"0.6905917",
"0.6896013",
"0.687072",
"0.683974",
"0.6834218",
"0.6807708",
"0.6785072",
"0.67764366",
"0.67615527",
"0.6755977",
"0.6751214",
"0.6750644",
"0.67449",
"0.674283",
"0.67322224",
"0.67281735",
"0.6717281",
"0.67121667",
"0.67121667",
"0.6710047",
"0.67043144",
"0.66893256",
"0.66388637",
"0.6631431",
"0.662977",
"0.66234374",
"0.66129917",
"0.66046804",
"0.656515",
"0.6525265",
"0.6480981",
"0.64750373",
"0.64624983",
"0.6462491",
"0.64459515",
"0.6445494",
"0.6430909",
"0.6414888",
"0.64090586",
"0.6398757",
"0.6385328",
"0.6365127",
"0.63619435",
"0.6346825",
"0.6315709",
"0.6273406",
"0.62532085",
"0.6230894",
"0.62257546",
"0.6188596",
"0.61672384",
"0.61632323",
"0.6160274",
"0.6148116",
"0.6148104",
"0.6068576",
"0.60667884",
"0.606635",
"0.59984815",
"0.5979198",
"0.597692",
"0.59495354",
"0.5940896",
"0.5918598",
"0.59058195",
"0.59017545",
"0.58870673",
"0.5886187",
"0.5884936",
"0.58734035",
"0.5863488",
"0.58610654",
"0.5851947",
"0.5846208",
"0.5834255",
"0.58038145",
"0.5770426",
"0.5769938",
"0.5752624",
"0.5733619",
"0.5698954",
"0.5694618",
"0.5681078",
"0.5676195",
"0.5656104",
"0.5646509",
"0.56449044",
"0.56424695",
"0.56410754"
]
| 0.87911147 | 0 |
Sets the back neck depth. | public void setBackNeckDepth(String backNeckDepth) {
this.backNeckDepth = backNeckDepth;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getBackNeckDepth() {\r\n\t\treturn backNeckDepth;\r\n\t}",
"public void setBack(Node back){\n this.back = back;\n }",
"private final void setDepth(int depth){\n\t\tthis.depth = depth;\n\t}",
"void decrementNewDepth() {\n mNewDepth--;\n }",
"public void setDepth(int newdepth)\n {\n depth = newdepth; \n }",
"void setTemporaryMaxDepth(int depth);",
"void decrementOldDepth() {\n mOldDepth--;\n }",
"private int setDepth() {\n int getDepth = depth;\n if (depth != -1) {\n getDepth = depth + 1;\n }\n return getDepth;\n }",
"public void setDepth(double aDepth);",
"public void decreaseDepth() {\n currentDepth--;\n }",
"public void setDepth(int depth) {\r\n this.depth = depth;\r\n }",
"public void setBack(int x) {\r\n back = x;\r\n }",
"public void setBackedge(boolean b) {\n\t\tthis.isBackEdge = b;\r\n\t\t\r\n\t}",
"public static void setDepth(int dep) {\n depth = dep;\n }",
"public void setDepth(double depth) {\n\t\t this.depth = depth;\n\t }",
"public void setFrontNeckDepth(String frontNeckDepth) {\r\n\t\tthis.frontNeckDepth = frontNeckDepth;\r\n\t}",
"public Builder setDepth(int value) {\n \n depth_ = value;\n onChanged();\n return this;\n }",
"public native void setDepth(int depth) throws MagickException;",
"void setDepthIndex(int depthIndex) {\n this.depthIndex = depthIndex;\n }",
"public String getFrontNeckDepth() {\r\n\t\treturn frontNeckDepth;\r\n\t}",
"public void setMaxDepth (int maxDepth) {\n \n }",
"public int setDepth(Integer depth) {\n try {\n setDepth(depth.floatValue());\n } catch (Exception e) {\n setDepthError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return depthError;\n }",
"public int setDepth(Float depth) {\n try {\n setDepth(depth.floatValue());\n } catch (Exception e) {\n setDepthError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return depthError;\n }",
"public void setMaxDepth(int theDepth) {\r\n\t\tmaxDepth = theDepth;\r\n\t}",
"public static void setNodeBackFixedColor( Color color ) { BACK_FIXED_COLOR = color; }",
"void incrementOldDepth() {\n mOldDepth++;\n }",
"void setColorDepth(int colorDepth);",
"public void setDepth(double[] depthValues) {\n depth = depthValues;\n }",
"public Builder setDepth(float value) {\n bitField0_ |= 0x00000002;\n depth_ = value;\n onChanged();\n return this;\n }",
"public void setGateDepth(int value) {\r\n\t\tgateDepth = value;\r\n\t}",
"void incrementNewDepth() {\n mNewDepth++;\n }",
"public void backDown(){\n backSolenoid.set(DoubleSolenoid.Value.kReverse);\n }",
"@JSProperty(\"back\")\n void setBack(Chart3dFrameBackOptions value);",
"protected void setDepth(Node root) {\n\t\tStack<Node> stack = new Stack<Node>();\n\n\t\troot.depth = 0;\n\n\t\t// push root to the stack\n\t\tstack.push(root);\n\n\t\t// walk through every node and set the according depth.\n\t\twhile (stack.size() > 0) {\n\n\t\t\tNode temp = (Node) stack.pop();\n\n\t\t\tif (temp != null) {\n\t\t\t\tif (temp.left != null) {\n\t\t\t\t\tint leftOfTempDepth = temp.depth + 1;\n\n\t\t\t\t\ttemp.left.depth = leftOfTempDepth;\n\n\t\t\t\t\tstack.push(temp.left);\n\t\t\t\t}\n\n\t\t\t\tif (temp.right != null) {\n\t\t\t\t\tint rightOfTempDepth = temp.depth + 1;\n\n\t\t\t\t\ttemp.right.depth = rightOfTempDepth;\n\n\t\t\t\t\tstack.push(temp.right);\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t}",
"public int getDepth(){\n\t\treturn _depth;\n\t}",
"public Builder setDepth(float value) {\n bitField0_ |= 0x00000004;\n depth_ = value;\n onChanged();\n return this;\n }",
"public void setMaxDepth(int maxDepth) {\n this.maxDepth = maxDepth - 1;\n }",
"public int getDepth(){\n\t\treturn depth;\n\t}",
"public void setMaximumCrawlDepth(int depth) throws Exception\n\t{\n\t\tif (depth < -1)\n\t\t{\n\t\t\tthrow new Exception(\"Maximum crawl depth should be either a positive number or -1 for unlimited depth.\");\n\t\t}\n\t\tif (depth > Short.MAX_VALUE)\n\t\t{\n\t\t\tthrow new Exception(\"Maximum value for crawl depth is \" + Short.MAX_VALUE);\n\t\t}\n\t\tWebCrawler.setMaximumCrawlDepth((short) depth);\n\t}",
"protected void incrementDepthLimit() {\n currDepthLimit++;\n }",
"static void changeDirectionBackwards() {\n\n if(--direction == -1)\n direction = 3;\n }",
"int getOldDepth() {\n return mOldDepth;\n }",
"public void setDepthImage(T depthImage) {\n\t\tthis.depthImage = depthImage;\n\t}",
"public int getDepth(){\r\n return this.depth;\r\n }",
"public int getDepth() {\r\n return depth;\r\n }",
"public void setFixedZdepth(int expectedZIndex);",
"public FractalTrace setDepth(int value) throws ParameterOutOfRangeException\n {\n\t\tif(value > 65536 || value < 1)\n\t {\n\t throw new ParameterOutOfRangeException(value, 1, 65536);\n\t }\n\n m_Depth = value;\n setProperty(\"depth\", value);\n return this;\n }",
"public int getDepth() {\n return depth_;\n }",
"private void setDepthError (float depth, Exception e, int error) {\n this.depth = depth;\n depthErrorMessage = e.toString();\n depthError = error;\n }",
"public Builder clearDepth() {\n bitField0_ = (bitField0_ & ~0x00000002);\n depth_ = 0F;\n onChanged();\n return this;\n }",
"public void setLastLevel(int lastLevel) {\n this.lastLevel = lastLevel;\n }",
"public int getDepth() {\n return depth_;\n }",
"public int getDepth() {\n return depth;\n }",
"public Node getBack(){\n return this.back;\n }",
"public void increaseDepth() {\n currentDepth++;\n }",
"int getDepth();",
"public int getDepth()\n {\n return depth; \n }",
"public int getDepth()\n {\n return m_Depth;\n }",
"int getMax_depth();",
"public BackStepper() {\r\n\t\tengaged = true;\r\n\t\tbackSteps = new BackstepStack(Globals.maximumBacksteps);\r\n\t}",
"public final void levelUP() {\n setBackstabDmg(getBackstabDmg() + Constants.BACKSTAB_UP);\n }",
"public int setDepth(String depth) {\n try {\n setDepth(new Float(depth).floatValue());\n } catch (Exception e) {\n setDepthError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return depthError;\n }",
"public void back() {\n\n\tGrid<Actor> gr = getGrid();\n\tif (gr == null)\n\t return;\n\n\tif (!crossLocation.isEmpty()) {\n\t\t\n\t crossLocation.pop();\n\n\t //back\n\t ArrayList<Location> lastNode = crossLocation.peek();\n\t next = lastNode.get(0);\n\t}\n\n\tLocation loc = getLocation();\n\t\n\tif (gr.isValid(next)) {\n\n\t setDirection(loc.getDirectionToward(next));\n\t moveTo(next);\n\n\t} else {\n\t removeSelfFromGrid();\n\t}\n\t\n\tint counter = dirCounter.get(getDirection());\n\tdirCounter.put(getDirection(), --counter);\n\n\tFlower flower = new Flower(getColor());\n\tflower.putSelfInGrid(gr, loc);\n\t\n\tlast = loc;\n }",
"public Builder clearDepth() {\n \n depth_ = 0;\n onChanged();\n return this;\n }",
"void setDestBitDepth(Integer myDestBitDepth);",
"int getDepthIndex() {\n return depthIndex;\n }",
"public int getDepth();",
"public float getDepth() {\n return depth_;\n }",
"@Override\n public int getDepth() {\n return 680;\n }",
"int getNewDepth() {\n return mNewDepth;\n }",
"public void setMaxDepth(Integer maxDepth) {\n this.maxDepth = maxDepth;\n }",
"public static int getDepth() {\n return depth;\n }",
"public Builder clearDepth() {\n bitField0_ = (bitField0_ & ~0x00000004);\n depth_ = 0F;\n onChanged();\n return this;\n }",
"@Override\n\tpublic Integer getDepth()\n\t{\n\t\treturn null;\n\t}",
"public void setColorDepth(int depth) {\n this.standardPairs.put(Parameters.COLOR_DEPTH, Integer.toString(depth));\n }",
"void downgradeLastEdge();",
"public float getDepth() {\n return depth;\n }",
"public void setMaxDepth(int maxDepth) {\n this.maxDepth = maxDepth;\n }",
"public void backUp(){\n backSolenoid.set(DoubleSolenoid.Value.kForward);\n }",
"float getDepth();",
"float getDepth();",
"public float getDepth() {\n return depth_;\n }",
"public int depth() {\r\n\t\treturn this.depth;\r\n\t}",
"@Override\n public int getDepth() {\n return 0;\n }",
"public String getnDepth() {\n return nDepth;\n }",
"int maxDepth();",
"public void frontDown(){\n frontSolenoid.set(DoubleSolenoid.Value.kReverse);\n }",
"public void setRight(BTNode myNode){\n rightleaf = myNode;\r\n }",
"public float getDepth() {\n return depth_;\n }",
"public float getDepth() {\n return depth_;\n }",
"public void setPrev(Level previous) {\n\t\tthis.prev = previous;\n\t}",
"public double getDepth();",
"public void testSetBackButtonEnabled() {\n System.out.println(\"setBackButtonEnabled\");\n boolean newValue = false;\n Wizard instance = new Wizard();\n instance.setBackButtonEnabled(newValue);\n }",
"private void turnOverItself() {\n byte tmp = leftEdge;\n leftEdge = reversedRightEdge;\n reversedRightEdge = tmp;\n\n tmp = rightEdge;\n rightEdge = reversedLeftEdge;\n reversedLeftEdge = tmp;\n\n tmp = topEdge;\n topEdge = reversedTopEdge;\n reversedTopEdge = tmp;\n\n tmp = botEdge;\n botEdge = reversedBotEdge;\n reversedBotEdge = tmp;\n\n tmp = ltCorner;\n ltCorner = rtCorner;\n rtCorner = tmp;\n\n tmp = lbCorner;\n lbCorner = rbCorner;\n rbCorner = tmp;\n }",
"@Override\r\n\tpublic int getMaxDepth() {\r\n\t\tint profundidad = 1;// Profundidad inicial, como es la raiz es 1\r\n\t\treturn getMaxDepthRec(raiz, profundidad, profundidad);\r\n\t}",
"int getTemporaryMaxDepth();",
"public void setEndLevelOrder(int num, boolean bool)\n\t{\n\t\tsetOrder(_Prefix + HardZone.ENDLEVEL.toString(), num, bool);\n\t}",
"public int getMaxDepth() {\n return maxDepth;\n }",
"public void byLevelZigZag(int maxLevel) {\n\n if (root == null) System.out.println(\"Empty Tree :(\");\n else if (maxLevel <= 0) System.out.println(root.element);\n else{\n\n for (int i = maxLevel; i >= 0; i--) {\n zigZagger(root, i, 0);\n\n }\n }\n }",
"public void fixup(RBTNode z){\n if (z.parent == nil){\n z.color = 'B';\n// System.out.println(\"Root\");\n }\n else if (z.parent.color == 'B');\n// System.out.println(\"NIC SIĘ NIE DZIEJE\");\n else if (z.parent.parent.left == z.parent)\n fixupL(z);\n else fixupR(z);\n// System.out.println(\"——————————————————— koniec fixup: \" + z.word);\n }"
]
| [
"0.70791864",
"0.6873703",
"0.6746654",
"0.66345084",
"0.66002667",
"0.65990967",
"0.65796065",
"0.6564907",
"0.6545252",
"0.6525688",
"0.6493057",
"0.646717",
"0.63809353",
"0.6340831",
"0.63150525",
"0.62736315",
"0.613115",
"0.6109442",
"0.6011616",
"0.59940445",
"0.59923047",
"0.5966073",
"0.5963192",
"0.5945607",
"0.59372145",
"0.5874328",
"0.58722484",
"0.58667225",
"0.583387",
"0.5826592",
"0.57771856",
"0.5752226",
"0.57381135",
"0.57265204",
"0.57245135",
"0.57150275",
"0.57061684",
"0.5699539",
"0.56722206",
"0.5662583",
"0.5652138",
"0.56444937",
"0.56442964",
"0.5640157",
"0.56273186",
"0.5622341",
"0.5600083",
"0.5582112",
"0.5572779",
"0.5566657",
"0.55619985",
"0.5553258",
"0.5552294",
"0.5550946",
"0.5549582",
"0.5544284",
"0.55381536",
"0.5526288",
"0.5522296",
"0.551651",
"0.55163246",
"0.5511829",
"0.5507984",
"0.55034304",
"0.5498629",
"0.549405",
"0.5491654",
"0.5469603",
"0.5459778",
"0.5444409",
"0.54229915",
"0.54207075",
"0.5415929",
"0.54149354",
"0.5408608",
"0.5406238",
"0.53893185",
"0.53748536",
"0.5374413",
"0.53667575",
"0.53667575",
"0.5352857",
"0.5350767",
"0.5344309",
"0.53409964",
"0.5337337",
"0.531802",
"0.5316628",
"0.5307612",
"0.5307612",
"0.5289972",
"0.52872354",
"0.52693486",
"0.5267235",
"0.5267095",
"0.52651113",
"0.52596116",
"0.5240489",
"0.52258646",
"0.5190361"
]
| 0.8203113 | 0 |
Gets the sleeve length. | public String getSleeveLength() {
return sleeveLength;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSleeveLength(String sleeveLength) {\r\n\t\tthis.sleeveLength = sleeveLength;\r\n\t}",
"public double get_length() {\n\t\treturn _length;\n\t}",
"public int getLengthOfStay() {\n return this.length_of_stay;\n }",
"public double length () {\n return Math.sqrt(lengthSquared());\n }",
"public double getLength() {\r\n\t\t\treturn length;\r\n\t\t}",
"public double getLength() {\r\n\t\treturn length;\r\n\t}",
"public double getLength()\n\t{\n\t\treturn length;\n\t}",
"public double getLength() {\n\t\treturn length;\n\t}",
"public int getLength()\n\t{\n\t\treturn (int) length;\n\t}",
"public double length()\n {\n return Math.sqrt(this.lengthsq());\n }",
"public double getLength() {\r\n return length;\r\n }",
"public final int getLives() {\n\t\treturn lives;\n\t}",
"public long length() {\n return length;\n }",
"public double getLength(){\r\n\t\treturn length;\r\n\t}",
"public int getLength()\n {\n return encryptionDictionary.getInt( \"Length\", 40 );\n }",
"public double getLength() {\n return length;\n }",
"float getLength();",
"float getLength();",
"public int getLives() {\r\n\t\treturn lives;\r\n\t}",
"public int getLivesRemaining();",
"public long getLength();",
"public long getLength();",
"public int getLength() {\r\n return length;\r\n }",
"public int getLength() {\r\n return length;\r\n }",
"public int getLength() {\r\n return length;\r\n }",
"public float length ()\n {\n return FloatMath.sqrt(lengthSquared());\n }",
"public int getLength()\n\t{\n\t\treturn length;\n\t}",
"public int getLength()\n\t{\n\t\treturn length;\n\t}",
"public int getLength() {\r\n\t\treturn length;\r\n\t}",
"public double getLength();",
"public double getLength()\n {\n return length;\n }",
"public Integer getLength() {\n return _length;\n }",
"public Integer getLength() {\n return _length;\n }",
"public double length() {\n\t\treturn startPoint.distance(endPoint);\n\t}",
"public int getLength() {\n return length;\n }",
"public int getLength() {\n return length;\n }",
"public int getLength()\n {\n\treturn length;\n }",
"int getWayLength();",
"public int getLength() {\n\t\treturn length;\n\t}",
"public int getLength() {\n\t\treturn length;\n\t}",
"public int getLength() {\n\t\treturn length;\n\t}",
"public int getLength() {\n\t\treturn length;\n\t}",
"public int getLength() {\n\t\treturn length;\n\t}",
"public int getLength() {\n\t\treturn length;\n\t}",
"public int getLives() {\n return lives;\n }",
"public int getLength() {\n return length;\n }",
"public int get_length();",
"public double length()\n {\n return this.getR();\n }",
"public int length() {\n \t \n \t //return the length\n \t return(len);\n }",
"public int getLength()\n {\n return length;\n }",
"public int getLength(){\n\t\treturn length;\n\t}",
"public int getLength(){\n\t\treturn length;\n\t}",
"public int getLength() {\n\t\treturn length & 0xffff;\n\t}",
"int getLength();",
"int getLength();",
"int getLength();",
"int getLength();",
"int getLength();",
"int getLength();",
"int getLength();",
"int getLength();",
"int getLength();",
"int getLength();",
"public int getLength() {\n return length_;\n }",
"protected int getLength() {\n return length;\n }",
"public int getLength() {\n return mySize.getLength();\n }",
"public int length() {\n return length;\n }",
"public int length() {\n return length;\n }",
"public int length() {\n return length;\n }",
"public int getAttackLength() {\r\n\t\treturn attackLength;\r\n\t}",
"public int getLength()\n\t{\n\t\treturn mLength;\n\t}",
"public String getlength()\n\t{\n\t\treturn length.getText();\n\t}",
"public int length()\n\t{\n\t\treturn length;\n\t}",
"public double length() {\n return Math.sqrt(\n (Math.pow(getX(), 2)) +\n (Math.pow(getY(), 2)) +\n (Math.pow(getZ(), 2))\n );\n }",
"private int length() { return length; }",
"public Duration length() {\n return getObject(Duration.class, FhirPropertyNames.PROPERTY_LENGTH);\n }",
"public int getLives()\n {\n return lives;\n }",
"public int getLength() {\n return this.sideLength;\n }",
"public int getLength() { return length;\t}",
"public int getLength() {\n return length_;\n }",
"public int length() {\n \treturn length;\n }",
"int length()\n\t{\n\t\treturn length;\n\t}",
"public double length(){\n return end.distance(getStart());\n }",
"public int length() {\n\t\treturn length;\n\t}",
"public int length() {\n\t\treturn length;\n\t}",
"public int getLength() {\n\t\treturn this.length;\n\t}",
"private int length() {\n\t\treturn this.lenght;\n\t}",
"public Double getLength()\n {\n return length;\n }",
"public double getLength() {\n return count;\n }",
"private float getRunwayLength() {\n\t\treturn runwayLength;\n\t}",
"protected int getLength() {\n int length = super.getLength(); //see if it is defined in the ncml\n if (length < 0) {\n double[] t = getTimes();\n if (t != null) length = t.length;\n else length = 0;\n }\n return length;\n }",
"public long getLength() { \n return length; \n }",
"public int getLength();",
"public int getLength();",
"public int getLength();",
"public int getLength() {\n return this.length;\n }",
"public int getLength() {\n return this.length;\n }",
"public int getTimeLength() {\r\n return timeLength;\r\n }",
"public int getLength(){\n return length;\n }",
"protected int getLength() {\n\t\treturn this.length;\n\t}"
]
| [
"0.6825573",
"0.663453",
"0.6616817",
"0.6607963",
"0.6513091",
"0.64858",
"0.6477909",
"0.64718634",
"0.64429367",
"0.64173245",
"0.64062864",
"0.6389171",
"0.63851446",
"0.6378495",
"0.6371947",
"0.6366502",
"0.6353353",
"0.6353353",
"0.635128",
"0.6347906",
"0.633764",
"0.633764",
"0.6335294",
"0.6335294",
"0.6335294",
"0.6327986",
"0.6320647",
"0.6320647",
"0.63135636",
"0.63047713",
"0.62908316",
"0.6281014",
"0.6281014",
"0.6277613",
"0.62750787",
"0.62750787",
"0.6274401",
"0.6273438",
"0.626982",
"0.626982",
"0.626982",
"0.626982",
"0.626982",
"0.626982",
"0.6268896",
"0.6266026",
"0.6265896",
"0.62649256",
"0.62491006",
"0.62434435",
"0.6233535",
"0.6233535",
"0.6217921",
"0.62128097",
"0.62128097",
"0.62128097",
"0.62128097",
"0.62128097",
"0.62128097",
"0.62128097",
"0.62128097",
"0.62128097",
"0.62128097",
"0.62035626",
"0.6202721",
"0.619888",
"0.6181802",
"0.6181802",
"0.6181802",
"0.6169278",
"0.6164292",
"0.61589587",
"0.615698",
"0.6140979",
"0.61366075",
"0.61308825",
"0.6129701",
"0.61286294",
"0.6120569",
"0.611208",
"0.61102515",
"0.6107473",
"0.6106355",
"0.610327",
"0.610327",
"0.6090122",
"0.6057262",
"0.6050323",
"0.6045249",
"0.6044419",
"0.6027443",
"0.60196054",
"0.6019334",
"0.6019334",
"0.6019334",
"0.6008157",
"0.6008157",
"0.5998263",
"0.59938043",
"0.59889704"
]
| 0.86309415 | 0 |
Sets the sleeve length. | public void setSleeveLength(String sleeveLength) {
this.sleeveLength = sleeveLength;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setLength(long length);",
"public void setLength(long length);",
"void setLength(int length);",
"void setLength( long length );",
"public String getSleeveLength() {\r\n\t\treturn sleeveLength;\r\n\t}",
"public void setLengthOfStay(int len) {\n this.length_of_stay=len;\n }",
"public void setLength(int length)\n {\n this.length = length;\n }",
"synchronized void setLength(int length) {\n this.length = length;\n }",
"public void setLength(int length) {\r\n this.length = length;\r\n }",
"public void setLength(int length) {\r\n this.length = length;\r\n }",
"public void setLength(double len) throws IllegalArgumentException\n {\n if (len<0) throw new IllegalArgumentException (\"Length cannot be negative\" + len);\n else length = len;\n }",
"public void setLength(int length) {\r\n\t\tthis.length = length;\r\n\t}",
"public void setLength(long length) {\r\n\t\tthis.length = length;\r\n\t}",
"public void setLength(long length) { \n this.length = length; \n }",
"@Override\n\tpublic void setLength(int length) {\n\t\t\n\t}",
"public void setLength(double length)\r\n {\r\n this.length = length;\r\n }",
"public void setLength(double newLength) {\n length = newLength;\n }",
"public void setLength(int length) {\n\t\tthis.length = length;\n\t}",
"public void setLength(int length) {\n\t\tthis.length = length;\n\t}",
"public void setLength(int length) {\n\t\tthis.length = length;\n\t}",
"public void setLength(int length) {\n\t\tif (length <= 0)\n\t\t\tthrow new IllegalArgumentException(\"length must be > 0\");\n\n\t\tthis.length = length;\n\t}",
"public void setLength(double length) {\r\n this.length = length;\r\n }",
"public void setLength(double length) {\n this.length = length;\n }",
"public boolean setLength(double Length);",
"public void setLength(int length){\n\t\tif(length > 0){\n\t\t\tthis.length = length; //this.length is the length were in right now. and = length is the length the object is given\n\t\t}\n\t\t\n\t\t\n\t}",
"public void setLength( int length ) { setCapacity( length ); this.length = length; }",
"public void setLength(double length){this.length=length;}",
"public void setLength(double length) {\n\t\tthis.length = length;\n\t}",
"public Builder setLength(int value) {\n \n length_ = value;\n onChanged();\n return this;\n }",
"public void setLength(int length)\n {\n encryptionDictionary.setInt(\"Length\", length);\n }",
"public void setLength(int duration){\n\t\tlength = duration;\n\t}",
"public void setLength(float length) { // l = 2.3\r\n\t\tthis.length = length; // length = 2.3\r\n\t\t\r\n\t}",
"public void setLives(int l) {\r\n\t\tlives = l;\r\n\t}",
"public void setLength(Double newlength)\n {\n length = newlength;\n }",
"default void setLength(double t) {\r\n scaleDirection(t / getLength());\r\n }",
"public void setLives(int lives) {this.lives = lives;}",
"public void set_length(short value) {\n setUIntElement(offsetBits_length(), 8, value);\n }",
"public void setSleepInterval(int len) {\n\t\tsleepSpinner.setValue(len);\n\t}",
"public void setLength(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), LENGTH, value);\r\n\t}",
"public void setCurrentLength(long currentLength) { \n this.currentLength = currentLength; \n }",
"@Override\n\tpublic void SetLength(long value)\n\t{\n\t\tthrow new UnsupportedOperationException(\"TarInputStream SetLength not supported\");\n\t}",
"public void setAttackLength(int attackLength) {\r\n\t\tif (attackLength < 0) {\r\n\t\t\tcreateFeatureNotSupportedEvent(attackLength);\r\n\t\t\tthis.attackLength = 0;\r\n\t\t} else if (attackLength > MAX_DELAY) {\r\n\t\t\tcreateFeatureNotSupportedEvent(attackLength);\r\n\t\t\tthis.attackLength = MAX_DELAY;\r\n\t\t} else {\r\n\t\t\tthis.attackLength = attackLength;\r\n\t\t}\r\n\t}",
"@Option(name = \"-sl\", aliases = \"--select-length\", metaVar = \"<length>\", usage = \"Length of select in seconds.\")\n void setSelectLength(Duration selectLength) {\n m_selectLength = selectLength;\n }",
"public void setLength( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), LENGTH, value);\r\n\t}",
"public void setLength(int n){ // Setter method\n \n length = n; // set the class attribute (variable) radius equal to num\n }",
"public void setVestLength(String vestLength) {\r\n\t\tthis.vestLength = vestLength;\r\n\t}",
"public void setLength(Integer length) throws DBException {\n _length = length;\n }",
"public void setLength(Integer length) throws DBException {\n _length = length;\n }",
"public void setLength(int newLength) {\r\n\t\tif (cursor + newLength > buffer.length)\r\n\t\t\tthrow new IllegalArgumentException(\"Can't set new length if it exceeds buffer\");\r\n\t\tlimit = cursor + newLength;\r\n\t}",
"public void setLives(int lives) {\r\n\t\tthis.lives = lives;\r\n\t}",
"public static void setLength( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, LENGTH, value);\r\n\t}",
"public void set_size(int s);",
"public static void setLength(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.set(model, instanceResource, LENGTH, value);\r\n\t}",
"public void setLength(Point e) {\r\n int Dx = Math.abs(this.origin.getX() - e.getX());\r\n int Dy = Math.abs(this.origin.getY() - e.getY());\r\n if (Dx > Dy) {\r\n this.length = Dx;\r\n } else { this.length = Dy; }\r\n }",
"public void setLives(int lives){\n liveCount = lives;\n }",
"public ExtractedSummarySentence setLength(int length) {\n this.length = length;\n return this;\n }",
"public void setMaxLength(int value) {\n this.maxLength = value;\n }",
"public void setStrength(final int s) {\n this.strength = s;\n }",
"public void setLength(int length) throws TVAnytimeException\n\t{\n\t\tif ((length >= 0) && (length < 3)) {\n\t\t\tthis.length = length;\n\t\t\tsynopsisLengthSet = true;\n\t\t}\n else if (length == UNDEFINED) {\n this.length = length;\n\t\t\tsynopsisLengthSet = false;\n }\n\t\telse throw new TVAnytimeException(\"Synopsis: Not a valid Synopsis length.\");\n\t}",
"public void setSiegeWeaponDamage(short siegeWeaponDamage);",
"public void setSleepTime(final long l) {\n if (l <= 0) {\n throw new IllegalArgumentException(\"Sleep Time must be a non-zero positive number\");\n }\n sleepTime = l;\n }",
"public void setLength(){\n out.print(\"Please enter a number greater than 0:\\t\");\n while (true) {\n try {\n this.sideLength = Integer.parseInt(sc.next());\n if (this.sideLength > 0) {\n break;\n } else {\n out.print(\"Please re-enter a number greater than 0!:\\t\");\n }// End if else\n } catch (NumberFormatException e) {\n out.print(\"Please enter a number (not a letter) greater than 0!:\\t\");\n //this.sideLength = 0;\n }// End try catch\n }// End running while loop\n }",
"public void setLength(int length) {\n\t\tloadProgress.setLength(length);\n\t}",
"public RADIUSAttribute setLength(final byte length) {\n this.length = length;\n return this;\n }",
"public void setSaltLength(int saltLength) {\n\t\tthis.saltLength = saltLength;\n\t}",
"public void handleIncreaseLengthPowerup(){\n myRectangle.setWidth(myRectangle.getWidth()*increaseLengthPowerupSizeFactor);\n myLength=(int)(myLength*increaseLengthPowerupSizeFactor);\n }",
"public void setSleeveRound(String sleeveRound) {\r\n\t\tthis.sleeveRound = sleeveRound;\r\n\t}",
"public void setTimeLength(int timeLength) {\r\n this.timeLength = timeLength;\r\n }",
"public void setDataRetentionPeriodLength(short dataRetentionPeriodLength)\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(DATARETENTIONPERIODLENGTH$26, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DATARETENTIONPERIODLENGTH$26);\n }\n target.setShortValue(dataRetentionPeriodLength);\n }\n }",
"void setLegs(int legs);",
"public void setSideSlitLength(String sideSlitLength) {\r\n\t\tthis.sideSlitLength = sideSlitLength;\r\n\t}",
"public void setLength(long newLength) throws IOException {\n flush();\n this.randomAccessFile.setLength(newLength);\n if (newLength < this.fileOffset) {\n this.fileOffset = newLength;\n }\n }",
"public void setLendeveille(Integer lendeveille) {\r\n\t\tthis.lendeveille = lendeveille;\r\n\t}",
"public void setStepLength(double length) {\n\t\tm_dStepLength = length;\n\t}",
"public void setCoolDown(long value) {\n\t\tcooldown = value;\n\t}",
"public abstract void setSplayLimit(int limit);",
"void setSpawnsRequired(double spawnsRequired);",
"public void set_estLength(short value) {\n setUIntElement(offsetBits_estLength(), 8, value);\n }",
"public void setLineLength(int len) {\n lineLength = len / 4 * 4;\n }",
"void setSpokes(long spokes);",
"public void setValue(int size) {\n s.setValue(-size);\n }",
"public void setLength(){\n this.length = 0;\n for (Music track : this.tracks){\n this.length += track.getLength();\n }\n }",
"public void setDataLength(int length) {\n // should be below 255, check!\n m_DataLength = length + 2;\n }",
"public ColumnMetadataBuilder length(int length) {\n this.length = length;\n return this;\n }",
"private void setTextAreaLenght(int len) {\n // check for logical error\n if(len <= 0) {\n // error ..\n eHandler.newError(ErrorType.INVALID_ARGUMENT, \"setTextAreaLenght\", \"Zero or negative lenght\");\n\n // set to default\n textAreaLenght = DEFAULT_TEXT_AREA_LENGHT;\n\n // exit from method\n return;\n } // end of if statement\n\n // set the textAreaLenght\n textAreaLenght = len;\n\n }",
"@Override\r\n\tpublic void setHealth(int strike) {\n\t\t\r\n\t}",
"public void setRunwayLength(float runwayLength) {\n\t\tif(this.getRunwayLength() != 0f){\n\t\t\treturn;\n\t\t}\n\t\tthis.runwayLength = runwayLength;\n\t}",
"public void setLife(int amount){\r\n\t\tthis.life = amount;\r\n\t}",
"void setDuration(int duration);",
"public void setSoul(int soul) {\n \t\tthis.soul = soul;\n \t}",
"public void setSize(long value) {\n this.size = value;\n }",
"public void setKeyLength(int keyLength) {\n\t\tthis.keyLength = keyLength;\n\t}",
"public void setHeight(int newValue)\r\n {\r\n seatHeight = newValue;\r\n }",
"public void SetDuration(int duration)\n {\n TimerMax = duration;\n if (Timer > TimerMax)\n {\n Timer = TimerMax;\n }\n }",
"private void setSize(int s){\n\t\tsize = s;\n\t}",
"public void setMaxLength(int maxLength) {\r\n _maxLength = maxLength;\r\n }",
"public void setSizeV(long s){\n\t\tthis.sizeV = s;\n\t}",
"public LimitedPlayer() {\r\n\t\tsuper.setturnsLimit(10);\r\n\t}",
"public void setChainLength(int c)\n {\n this.chainLength = c;\n }",
"private void set_size(int size)\r\n\t{\r\n\t\tthis.size = size;\r\n\t}"
]
| [
"0.70230883",
"0.70230883",
"0.70029914",
"0.69308317",
"0.65799135",
"0.65378493",
"0.6507313",
"0.64803535",
"0.64667624",
"0.64667624",
"0.6407479",
"0.63961655",
"0.6383362",
"0.6367234",
"0.63396156",
"0.63194",
"0.63070124",
"0.6305433",
"0.6305433",
"0.6305433",
"0.6283353",
"0.62825227",
"0.62436956",
"0.6230492",
"0.6214533",
"0.6206785",
"0.61964285",
"0.6155772",
"0.6148687",
"0.6128292",
"0.6121308",
"0.61021435",
"0.60734177",
"0.600548",
"0.59349203",
"0.59168816",
"0.5861666",
"0.58153886",
"0.5806678",
"0.5795714",
"0.5788128",
"0.57656693",
"0.5757739",
"0.57381165",
"0.57185185",
"0.57130176",
"0.56829584",
"0.56829584",
"0.56811154",
"0.565875",
"0.56567454",
"0.55829364",
"0.5551448",
"0.5539415",
"0.55018586",
"0.5489572",
"0.5471632",
"0.54511154",
"0.54379874",
"0.54265255",
"0.5408547",
"0.53857434",
"0.5381275",
"0.53788716",
"0.5369457",
"0.53668994",
"0.5364805",
"0.5352054",
"0.533006",
"0.532932",
"0.53292495",
"0.52925956",
"0.52830464",
"0.52721924",
"0.5270438",
"0.5266722",
"0.52502966",
"0.5246668",
"0.5220738",
"0.52183294",
"0.51913965",
"0.5191349",
"0.51841056",
"0.51839286",
"0.5180517",
"0.5177803",
"0.51771605",
"0.5167181",
"0.51563305",
"0.51362896",
"0.51317996",
"0.51278096",
"0.51208574",
"0.5110486",
"0.51032305",
"0.50985634",
"0.5085499",
"0.5077105",
"0.5072689",
"0.50686204"
]
| 0.8517374 | 0 |
Gets the sleeve round. | public String getSleeveRound() {
return sleeveRound;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSleeveRound(String sleeveRound) {\r\n\t\tthis.sleeveRound = sleeveRound;\r\n\t}",
"public Player round() {\n chooseFighter(player1, player2);\n // It's not allowed to construct a Fighter with Health (or Attack) equals 0\n\n Player winner = fight();\n\n gameOver = winner.scoreAPoint(winningScoreLimit);\n\n return winner;\n }",
"public int getCurrentGameRound(){\n\t\treturn currentGameRound;\n\t}",
"int getRent(Player owner, int tenantDiceRoll);",
"public int getRoundNum(){\n return gameRounds;\n }",
"public int getRound() {\n return round;\n }",
"public int getSpongeRadius() {\n return spongeRadius;\n }",
"public int getRound()\r\n\t{\r\n\t\treturn this.round;\r\n\t}",
"public Integer getRound() {\n return round;\n }",
"public int getRoundsToWait() {\n\t\treturn this.roundsToWait;\n\t}",
"public int getCurrentRound()\n\t{\n \treturn currentRound;\n\t}",
"public String getSleeveLength() {\r\n\t\treturn sleeveLength;\r\n\t}",
"public long getSleeping() { return sleeping; }",
"public int fight() {\r\n\t\treturn -this.randomObject.nextInt(50);\r\n\t}",
"public int getTriggerRound() {\n return triggerRound;\n }",
"public Round getRound(){\n return mRound;\n }",
"private long getSleepTime()\n {\n return sleepTime;\n }",
"public double getWaist() {\n return waist;\n }",
"public double getWaist() {\n return waist;\n }",
"public int tossDice(){\n\t\tRandom r = new Random();\n\t\tdiceValue = r.nextInt(6)+1;\n\t\tdiceTossed = true;\n\t\treturn diceValue;\n\t}",
"int getPokeballValue();",
"public int getWinner();",
"public int getWinner() {return winner();}",
"public float getSpawningChance()\n {\n return 0.1F;\n }",
"@Override\n public int getSleepTime() {\n return this.sleepTime;\n }",
"int getTurn();",
"public int getBTStreak50()\n\t{\n\t\treturn battletowerCurrentStreakLvl50;\n\t}",
"public FishingRod getBestRod();",
"private Scorestreak getScorestreak(Player player) {\n Game game = Dogfight.instance.getGame(player);\n\n if (game != null) {\n return game.getScoreRegistry().getScorestreak(player);\n }\n\n return null; //No game found\n }",
"public int getHealSnPort() {\n return healSnPort_;\n }",
"public int getCurrentRound() {\n\t\treturn roundNumber;\n\t}",
"RatSightingManager getSightingManager() {return sightingManager;}",
"public int getHealSnPort() {\n return healSnPort_;\n }",
"public int getPointsGainedLastRound(){return pointsGainedLastRound;}",
"int getSightRadius(Unit unit);",
"int getRightMonster();",
"public int getRoundNumber() {\n return roundNumber;\n }",
"public int getRespawnRate() {\r\n return respawnRate;\r\n }",
"public BigDecimal getStake() {\n return stake;\n }",
"public double getRise(\n )\n {return rise;}",
"public int getBet(Shoe shoe, OUTCOME lastOutcome) {\n\t\treturn baseBet;\r\n\t}",
"public static int getEnemyLives(){\n return 1 + currentLvl * 2;\n\n }",
"int getSleepBeforeRetry();",
"float getGte();",
"public int getDroneDelay()\r\n {\r\n return droneDelay;\r\n }",
"int getNextLevelGold();",
"public WeaponDeck getWeaponSpawnpoint() {\n return weaponSpawnpoint;\n }",
"public UUID getSoul() {\n return soul;\n }",
"public static double valueOfRush(int attack) {\n return valueOfMinionDamage(attack) * 0.5;\n }",
"public double getSleepEfficiency() {\n\t\treturn sleepEfficiency;\n\t}",
"public int throwDice() {\n //create new random number between 1 and 6\n int nr = ThreadLocalRandom.current().nextInt(1, 6 + 1);\n //throw the number\n throwDice(nr);\n //return number\n return nr;\n }",
"Piece getWinner();",
"public long getSleepTime() {\n return sleepTime;\n }",
"public String getSick() {\r\n\t\treturn getSick(random.nextInt(4), random.nextInt(4));\r\n\t}",
"public int getRunnerW() {\n return runnerW;\n }",
"public Integer getBetDelay(){\n return betDelay;\n }",
"public int getNround()\n {\n \treturn this.nround;\n }",
"public int topKnight() {\r\n\t\treturn knights[numKnights - 1];\r\n\t}",
"public int getShotsOnTarget () {\r\n\t\treturn shotsOnTarget;\r\n\t}",
"Move getBestMove() {\n //System.out.println(\"AI chooses: \" + m.toString());\n return moves.get((int) (Math.random() * moves.size()));\n }",
"private TeamId findWinningTeam(){\n if (state.score().totalPoints(TeamId.TEAM_1)>=Jass.WINNING_POINTS) {\n return TeamId.TEAM_1;\n }\n else {\n return TeamId.TEAM_2;\n }\n }",
"private static double getWinRate() {\n\t\treturn winRate ;\n\t}",
"public int getSpins() {\n return spinsLeft;\n }",
"java.lang.Long getToasterDoneness();",
"int getHealSnId();",
"public int getCooldown() {\n \t\treturn cooldown + ((int) 0.5*level);\n \t}",
"public int getHealSnId() {\n return healSnId_;\n }",
"public int attackRoll(){\r\n\t\treturn (int) (Math.random() * 100);\r\n\t}",
"int getHealSnPort();",
"public GtSpins findNextSpin() {\r\n\t\treturn gtSpinsServiceImpl.findNextSpin();\r\n\t}",
"private double enemyKills()\n {\n return (double)enemyResult.shipsLost();\n }",
"public int getTurn()\n {\n return turn;\n }",
"public int getDice(){\n\t\treturn diceValue;\n\t\t\n\t}",
"int getAttackRoll();",
"String getWinner();",
"public int getHealSnId() {\n return healSnId_;\n }",
"public int updateSleeping() {\n //sleeping = 1.3 + 7-energy/10 -- Eat until foodAmt == 0 or 2 more than the lowest stat\n //wake up = 1.0 + 7-stat/10 -- Get the highest value to compare to eating value\n options[0] = (1.0 + ((5.0-(double)energy)/10.0)); // sleep\n options[1] = (1.0 + ((7.0-(double)food)/10.0)); // eat\n options[2] = (1.0 + ((7.0-(double)water)/10.0)); // drink\n \n int maxStat = getMax();\n \n if(maxStat == 0)\n return 0;\n else\n return 1;\n }",
"public int getRound() {\n\t\treturn myHistory.size() + opponentHistory.size();\n\t}",
"public int getSleepInterval() {\n if ((curAd < 0) || (tozAdCampaign.isEmpty())) {\n AppyAdService.getInstance().debugOut(TAG, \"Sleep interval defaulting to \" + AppyAdService.getInstance().getDefaultSleepInterval());\n return (AppyAdService.getInstance().getDefaultSleepInterval());\n }\n else {\n AppyAdService.getInstance().debugOut(TAG,\"Sleep interval for current ad is \"+tozAdCampaign.get(curAd).mAdDuration);\n return (tozAdCampaign.get(curAd).mAdDuration);\n }\n //else return (sleepInterval);\n }",
"int getSimspeed();",
"public int checkChasingPlayer()\n {\n if(stunCountdown > 0)\n {\n chasingPlayer = false;\n return stunCountdown;\n }\n if(Game.getInstance().getPlayer().getCurrentRoom().isControlRoom())\n {\n chasingPlayer = false;\n return(-1);\n }\n else\n {\n List<Exit> neighbors = getCurrentRoom().getCollectionOfExits();\n for(Exit neighbor : neighbors)\n {\n if(getCurrentRoom().getExit(neighbor).equals(Game.getInstance().getPlayer().getCurrentRoom()) && neighbor.isOperating())\n {\n chasingPlayer = true;\n return(5 + (int) Math.floor(Math.random() * 6));\n }\n }\n chasingPlayer = false;\n return(-1);\n }\n }",
"public Boolean getWinner(){\n return spil.erSpilletVundet();\n }",
"public double getReward() {\n if (inGoalRegion()) {\n return REWARD_AT_GOAL;\n } else {\n return REWARD_PER_STEP;\n }\n }",
"public BigDecimal getYIELD() {\r\n return YIELD;\r\n }",
"public int NewMonster(){\n int r = (int) (Math.random() * (9 - 2 + 1) + 2);\n return r;\n }",
"public Integer getRentWay() {\n return rentWay;\n }",
"long getRunner();",
"public static Player whoLostGame() {\r\n\t\tint lowest = Main.loseScoreNumb;\r\n\t\tPlayer loser = null;\r\n\t\t\r\n\t\t\r\n\t\t//Three handed play.\r\n\t\tif (Main.isThreeHanded){\r\n\t\t\tif (Utils.stringToInt(Main.player1Score) <= lowest) {\r\n\t\t\t\tlowest = Utils.stringToInt(Main.player1Score);\r\n\t\t\t\tloser = Main.playerOne;\r\n\t\t\t}\r\n\t\t\tif (Utils.stringToInt(Main.player2Score) <= lowest) {\r\n\t\t\t\tlowest = Utils.stringToInt(Main.player2Score);\r\n\t\t\t\tloser = Main.playerTwo;\r\n\t\t\t}\r\n\t\t\tif (Utils.stringToInt(Main.player3Score) <= lowest) {\r\n\t\t\t\tlowest = Utils.stringToInt(Main.player3Score);\r\n\t\t\t\tloser = Main.playerThree;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Four handed play with no teams.\r\n\t\tif (Main.isFourHandedSingle){\r\n\t\t\tif (Utils.stringToInt(Main.player1Score) <= lowest) {\r\n\t\t\t\tlowest = Utils.stringToInt(Main.player1Score);\r\n\t\t\t\tloser = Main.playerOne;\r\n\t\t\t}\r\n\t\t\tif (Utils.stringToInt(Main.player2Score) <= lowest) {\r\n\t\t\t\tlowest = Utils.stringToInt(Main.player2Score);\r\n\t\t\t\tloser = Main.playerTwo;\r\n\t\t\t}\r\n\t\t\tif (Utils.stringToInt(Main.player3Score) <= lowest) {\r\n\t\t\t\tlowest = Utils.stringToInt(Main.player3Score);\r\n\t\t\t\tloser = Main.playerThree;\r\n\t\t\t}\r\n\t\t\tif (Utils.stringToInt(Main.player4Score) <= lowest) {\r\n\t\t\t\tlowest = Utils.stringToInt(Main.player4Score);\r\n\t\t\t\tloser = Main.playerFour;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn loser;\r\n\t}",
"public int getRoundScore() {\n return score;\n }",
"private GameResponse playNextRound() {\n if(gameResponse.getPoint() == 0) {\n gameResponse.setMessage(null);\n roll();\n gameResponse.setPoint(currentRoll);\n if (WINS.contains(gameResponse.getPoint())) {\n completeRound(GameEnum.WON);\n return gameResponse;\n } else if (LOSES.contains(gameResponse.getPoint())) {\n completeRound(GameEnum.LOST);\n return gameResponse;\n }\n } else {\n roll();\n if (currentRoll == gameResponse.getPoint()) {\n completeRound(GameEnum.WON);\n return gameResponse;\n } else if (currentRoll == 7) {\n completeRound(GameEnum.LOST);\n return gameResponse;\n }\n }\n return gameResponse;\n }",
"public synchronized int getCurrentRoundNumber()\r\n {\r\n return currentRoundNumber;\r\n }",
"public int getTurnaround (){\n return finishingTime-arrival_time;\n }",
"public int throwDice() {\n Double randNumber = 1 + Math.random() * 5;\n this.face = randNumber.intValue();\n return this.face;\n }",
"@Override\r\n\t\tpublic Double get() {\n\t\t\treturn Math.random();\r\n\t\t}",
"public short getSiegeWeaponDamage();",
"public int getSleepPoints() {\n return localSleepPoints;\n }",
"public int getGold();",
"int getLeftMonster();",
"public int getEat_time()\n\t{\n\t\treturn eat_time;\n\t}",
"public int getWorth()\n {\n return worth;\n }"
]
| [
"0.6675053",
"0.63289887",
"0.6126625",
"0.6098423",
"0.60451955",
"0.5951561",
"0.59003365",
"0.58475816",
"0.5797395",
"0.5760068",
"0.57171184",
"0.56497806",
"0.56372875",
"0.5634977",
"0.5622753",
"0.5621076",
"0.5579834",
"0.5537854",
"0.5537854",
"0.5511393",
"0.5498205",
"0.54904693",
"0.54595095",
"0.5450696",
"0.5417263",
"0.5411511",
"0.54113436",
"0.54071814",
"0.5397191",
"0.5394753",
"0.5365772",
"0.53618586",
"0.53602964",
"0.53585386",
"0.53564405",
"0.5336421",
"0.533624",
"0.5329831",
"0.53285694",
"0.53277117",
"0.5326916",
"0.53259754",
"0.53215307",
"0.53013855",
"0.529685",
"0.5293677",
"0.5293529",
"0.52923054",
"0.5286379",
"0.5282751",
"0.52719617",
"0.5270662",
"0.52689046",
"0.5264527",
"0.52625823",
"0.52509034",
"0.52487737",
"0.5245593",
"0.5238898",
"0.5234099",
"0.5232102",
"0.5231838",
"0.5230777",
"0.5230458",
"0.5225107",
"0.52168417",
"0.52050763",
"0.52018625",
"0.51830477",
"0.518238",
"0.51822585",
"0.51815146",
"0.51795375",
"0.51775247",
"0.51774746",
"0.5168918",
"0.51621324",
"0.51603246",
"0.5158784",
"0.51582444",
"0.515646",
"0.51494133",
"0.5136408",
"0.5136355",
"0.5135495",
"0.51352894",
"0.5134965",
"0.51316077",
"0.51263994",
"0.51224804",
"0.51139015",
"0.5111397",
"0.51070595",
"0.51067734",
"0.51067036",
"0.5106606",
"0.5104798",
"0.50981337",
"0.5094674",
"0.50869125"
]
| 0.82932633 | 0 |
Sets the sleeve round. | public void setSleeveRound(String sleeveRound) {
this.sleeveRound = sleeveRound;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getSleeveRound() {\r\n\t\treturn sleeveRound;\r\n\t}",
"public void setSleeveLength(String sleeveLength) {\r\n\t\tthis.sleeveLength = sleeveLength;\r\n\t}",
"public void setRound(int round) {\r\n this.round = round;\r\n }",
"public void setRound(final int value) {\n round = value;\n }",
"public void setRoundNum(int roundNum){\n gameRounds = roundNum;\n }",
"@Override\r\n\tpublic void setRound(int round) {\n\t\tthis.round = \"Round: \"+round;\r\n\t\tupdate();\r\n\t}",
"@Override\n public void setSleepTime(int st) {\n this.sleepTime = st;\n\n // notify the update thread so that it can recalculate\n if (updateThread.isRunning())\n updateThread.interrupt();\n }",
"void setSpawnsRequired(double spawnsRequired);",
"public void setRan(int R)\t\n\t{\t//start of setRan method\n\t\trandomNum = R;\n\t}",
"private void setRound(ChesspairingRound round) {\n\t\tint rNumber = round.getRoundNumber();\n\t\tif (rNumber < 1) {\n\t\t\tthrow new IllegalStateException();\n\t\t}\n\t\tList<ChesspairingRound> rounds = mTournament.getRounds();\n\t\tif (rounds.size() >= rNumber) {\n\t\t\trounds.remove(rNumber - 1);\n\t\t}\n\t\trounds.add(rNumber - 1, round);\n\t}",
"public void setGameRound(boolean gameRound){\n this.gameRound = gameRound;\n }",
"public void setBTStreak50(int s)\n\t{\n\t\tbattletowerCurrentStreakLvl50 = s;\n\t}",
"public void setFighterPoints(int points) {\n if (pointsPullCheck(points)) {\n fighterPoints += points;\n }\n }",
"private void resetRoundVars() {\n\t\tmAttackerDelay = 0;\n\t\tmRoundTimeElapsed = 0;\n\t\tmRoundScore = 0f;\n\t\tmKnightSpawnChance = 0.35f + (0.1f * (mRoundNumber - 1)); // +10% chance per round, starting at 35%\n\t\tif(mKnightSpawnChance > 0.65f) mKnightSpawnChance = 0.65f; // Hard cap at 65%\n\t\tmRoundMaxAttackers = 5 + mRoundNumber * 2;\n\t\tmRoundMaxTime = 50 + (mRoundNumber * 1.5f);\n\t\tmRoundSaved = false;\n\t\tmRoundText = \"Round: \" + mRoundNumber;\n\t\tmSpawnTimeMin = mSpawnTimeMin - (mRoundNumber * 5);\n\t\tmSpawnTimeMax = mSpawnTimeMax - (mRoundNumber * 5);\n\n\t\t// Kill all living attackers\n\t\tfor(int i = 0; i < ATTACKER_ARRAY_SIZE; i++) {\n\t\t\tmAttackers[i].kill();\n\t\t}\n\t}",
"@Override\r\n\tpublic void setHealth(int strike) {\n\t\t\r\n\t}",
"public void setCurrentGameRound(int round){\n\t\tcurrentGameRound = round;\n\t\trepaint();\n\t}",
"public Turn(int sleep) {\n\t\tsuper();\n\t\tthis.turn = 1;\n\t\tthis.step = STEP_VIRUS;\n\t\tthis.sleep = sleep;\n\t}",
"public void setSeed(Square.State seed) {\n this.mySeed = seed;\n oppSeed = (mySeed == Square.State.CROSS) ? Square.State.NOUGHT : Square.State.CROSS;\n }",
"public void snakeUp(){\r\n\t\tspeedUp();\r\n\t\tpoints += 100;\r\n\t}",
"public void liftDown() {\n set(m_defaultLiftSpeedDown);\n }",
"public void setSiegeWeaponDamage(short siegeWeaponDamage);",
"void setSpokes(long spokes);",
"@Override\r\n\tpublic void setRound(int x) {\n\t\troundNum = x;\r\n\t\tupdate();\r\n\t}",
"public void setSpeed(int s){\r\n\t\tspeed = s;\r\n\t}",
"public void liftUp(){\n set(m_defaultLiftSpeedUp);\n }",
"public void setElevatorSpeed(double spd)\n {\n mSpeed = spd;\n }",
"@Override\n public void SetSpawnProb(double SP){\n if(SP > 0.5){\n spawn = true;\n }else{\n spawn = false;\n }\n }",
"public void setStripWeaponsOnNewRound(boolean value)\n\t{\n\t\tsetIntSetting(0, value ? 0 : 1);\n\t}",
"public void setSlow(double s) {\n slow = Math.abs(s);\n }",
"public void setPlayerRoll20()\r\n {\r\n \r\n roll2 = ((int)(Math.random() * 100) % HIGHEST_DIE_VALUE20 + LOWEST_DIE_VALUE20);\r\n \r\n }",
"public void setSteak(double countNo) {\n steak = countNo;\r\n }",
"public void setSleepTime(final long l) {\n if (l <= 0) {\n throw new IllegalArgumentException(\"Sleep Time must be a non-zero positive number\");\n }\n sleepTime = l;\n }",
"private void setAttemptsPerTurn(final String s) {\n attemptsPerTurn = getInt(s);\n setAttemptsLeftThisTurn(attemptsPerTurn);\n }",
"void setSleeping(boolean sleeping);",
"public Melee(ScrGame game, Player player){\n super();\n this.game = game;\n this.player = player;\n isPlayer = true;\n\n nSpray = 0;\n nShotsPerFire = 1;\n nAmmo = 1;\n nAmmoMax = nAmmo;\n }",
"public void setBet(double bet){\n\t\tthis.bet = bet;\n\t\ttotalMoney -= bet;\n\t}",
"void setBet(int bet) {\n\t\tif (bet > _money) { // all in if you bet more than you have\n\t\t\t_bet = _money;\n\t\t\t_money = 0;\n\t\t\t\n\t\t}\n\t\telse if (bet < 1) {\n\t\t\t_bet = 1;\n\t\t\t_money -= _bet;\n\t\t}\n\t\telse {\n\t\t\t_bet = bet;\n\t\t\t_money -= bet;\n\t\t}\n\t}",
"public void setSneaking ( boolean sneak ) {\n\t\texecute ( handle -> handle.setSneaking ( sneak ) );\n\t}",
"public Builder setHealSnPort(int value) {\n \n healSnPort_ = value;\n onChanged();\n return this;\n }",
"public void setBetDelay(Integer betDelay){\n this.betDelay = betDelay;\n }",
"protected void setScore(int s)\r\n\t{\r\n\t\tGame.score = s;\r\n\t}",
"public void resetSpeed()\r\n\t{\r\n\t\tcurrentSpeed = SnakeSpeed.DEFAULT;\r\n\t\tsnakes.get(snakeIndex).setSnakeSpeed(currentSpeed);\r\n\t}",
"void setSalario(double salario);",
"public void setBTStreakAny(int s)\n\t{\n\t\tbattletowerCurrentStreakAnyLvl = s;\n\t}",
"public void setDirection(int dice){\n\t}",
"public void setSoul(int soul) {\n \t\tthis.soul = soul;\n \t}",
"public EdgeNeon setRadius(double value) throws ParameterOutOfRangeException\n {\n\t\tif(value > 1500.00 || value < 1.00)\n\t {\n\t throw new ParameterOutOfRangeException(value, 1.00, 1500.00);\n\t }\n\n m_Radius = value;\n setProperty(\"radius\", value);\n return this;\n }",
"void setSeed(long seed);",
"public void setWalkSpeed(int n)\n{\n walkSpeed = n;\n}",
"void setHousekeepingSleep(int housekeepingSleep) {\r\n\t\tif( housekeepingSleep <= 0 ) {\r\n\t\t\tthrow new IllegalArgumentException(\"housekeepingSleep must be positive\");\r\n\t\t}\r\n\t\tthis.housekeepingSleep = housekeepingSleep;\r\n\t}",
"void setGoalRPM(double goalRPM);",
"void setTurn(int turn);",
"public void setPrayerPoints(double amount) {\r\n prayerPoints = amount;\r\n if (entity instanceof Player) {\r\n PacketRepository.send(SkillLevel.class, new SkillContext((Player) entity, PRAYER));\r\n }\r\n }",
"public void set(double speed) {\n climb_spark_max.set(speed);\n }",
"public void setSeed(long seed) {\n\tif (seed < POW3_33 + 100) {\n\t seed += POW3_33 + 100;\n\t}\n\tseed &= (POW2_53 - 1L);\n\tsetSeedRaw(seed);\n }",
"public void setDroneDelay(int delay)\r\n {\r\n droneDelay=delay;\r\n }",
"@BinderThread\n public void setRoll(float roll) {\n this.roll = -roll;\n }",
"protected void setSpies() {\n\t\tint numberOfSpies = SPIES[numberOfPlayers-5];\n\t\tfor(int i = 0; i < numberOfSpies; i++) {\n\t\t\tplayers[i].setSpy();\n\t\t}\n\t}",
"public void setPlayerRoll10()\r\n {\r\n \r\n roll1 = ((int)(Math.random() * 100) % HIGHEST_DIE_VALUE10 + LOWEST_DIE_VALUE10);\r\n }",
"public GameSettingBuilder setMaxRound(int maxRound) {\n this.maxRound = maxRound;\n return this;\n }",
"private void setCurrentTurnpike(Point t){\n\t\t\n\t\t_currentTurnpikeStart = t;\n\t\n\t}",
"public void setRadius(double r) { radius.set(clamp(r, RADIUS_MIN, RADIUS_MAX)); }",
"public WB_RandomPoint setSeed(final long seed);",
"public synchronized void set (double speed){\n m_liftSpeed = speed;\n if (m_liftSpeed < 0 && isLowerLimit() == false) {\n m_liftMotor.set(m_liftSpeed);\n } else if (m_liftSpeed > 0 && isUpperLimit() == false){\n m_liftMotor.set(m_liftSpeed);\n } else {\n m_liftSpeed = 0;\n m_liftMotor.set(0); \n }\n }",
"public void increaseRound() {\n\t\tif(this.activePlayer==this.player1) {\n\t\t\tthis.setScorePlayer1(this.getScorePlayer1()+1);\n\t\t}else {\n\t\t\tthis.setScorePlayer2(this.getScorePlayer2()+1);\n\t\t}\n\t\t//On check si c'est le dernier round\n\t\tif (round != ROUNDMAX) {\n\t\tthis.round++;\n\t\t//On change un round sur deux le premier joueur de la manche\n\t\t\n\t\tif (0==round%2) {\n\t\t\t\n\t\t\tthis.setActivePlayer(player2);\n\t\t}else {\n\t\t\n\t\t\tthis.setActivePlayer(player1);\n\t\t}\n\t\t}else {\n\t\t\t//Sinon la partie est gagne\n\t\t\tdraw.win = true;\n\t\t}\n\t\t}",
"@Override\n\tpublic void setMontant(double s) {\n\t\t\n\t}",
"public void setSightRange(int n){\n\tsightRange = n;\n }",
"public void setDice(Dice dice) {\n this.dice = dice;\n }",
"private SleeperTask()\r\n\t{\r\n\t\ttimer = new Timer();\r\n\t\tprovider = null;\r\n\t\taction = \"\";\r\n\t\tverbose = false;\r\n\t\tsetRepeat(5);\r\n\t}",
"@Override\n\tpublic void setTow(float tow) {\n\t\t\n\t}",
"public void set(double speed, CANTalon talon) {\n\t\ttalon.set(speed);\n\t}",
"@Override\n\tpublic void setAdderSn(Long adderSn) {\n\t\t\n\t}",
"public void setPrice(double price){\r\n Random chance = new Random();\r\n int crashChance = chance.nextInt(100);\r\n double droppedPrice = price * ThreadLocalRandom.current().nextDouble(0.6, 0.8);\r\n if (crashChance > 95) {\r\n setPlusMinus(\"Down\");\r\n System.out.println(\"This stock has crashed.\");\r\n super.setPrice(price - droppedPrice);\r\n } else if(crashChance < 5){\r\n setPlusMinus(\"Up\");\r\n System.out.println(\"This stock has surged.\");\r\n super.setPrice(price + droppedPrice);\r\n } else {\r\n super.setPrice(price);\r\n }\r\n }",
"public void setDamage() {\n\t\tRandom rand = new Random();\n\t\tint damage = rand.nextInt(getMaxDamage()) + 1;\n\t\tthis.damage = damage;\n\t}",
"public void setPickRadius(double r) {\n\t\t\n\t}",
"@Override\n\tpublic void drink() {\n\t\tthis.setDrunkTurns(params.getParamValue(\"traineeDrunkTurns\"));\n\t}",
"public static void setLevel(int level) {\n Game.level = level;\n movingSpeed = level * 5;\n }",
"private void turnAround() {\n d = Math.random();\n if (d < 0.1) {\n changeAppearance();\n }\n }",
"private void startSleeper() {\n if (fSleeper == null)\n fSleeper = new SleeperThread(this);\n fSleeper.start();\n }",
"public void setLives(int lives) {this.lives = lives;}",
"public void setSleepy(boolean sleepy) {\n\t\tthis.sleepy = sleepy;\n\t}",
"public void setGreatMurderSequence() {\n\t\tfor (int i = 0; i < killers.size(); i++) {\n\t\t\tint sequence = getMurderSequence(killers.get(i).getName());\n\t\t\tkillers.get(i).setMurderSequence(sequence);\n\t\t}\n\t}",
"public Builder setSimspeed(int value) {\n bitField0_ |= 0x00000004;\n simspeed_ = value;\n onChanged();\n return this;\n }",
"void setSeed(final long seed);",
"public void setSueldo(double sueldo) {\n this.sueldo = sueldo;\n }",
"void setTarget(String target) {\n try {\n int value = Integer.valueOf(target);\n game.setTarget(value);\n } catch (NumberFormatException e) {\n // caused by inputting strings\n } catch (IllegalArgumentException e) {\n // caused by number < 6.\n game.setTarget(10);\n }\n }",
"public void setCoolDown(long value) {\n\t\tcooldown = value;\n\t}",
"public void setSpeed() {\n\t\tthis.ySpd = this.MINSPEED + randGen.nextFloat() * (this.MAXSPEED - this.MINSPEED);\n\t\tthis.xSpd = this.MINSPEED + randGen.nextFloat() * (this.MAXSPEED - this.MINSPEED);\n\t}",
"public void setStone(int stoneIn){\r\n\t\tstone = stoneIn;\r\n\t}",
"public abstract void setSpeed(int sp);",
"public void set(double speed) {\n\t\tleftIntake.set(speed);\n\t\trightIntake.set(-speed);\n\t}",
"public void setDefaultSpeed (double speedUp, double speedDown){\n m_defaultLiftSpeedUp = speedUp;\n m_defaultLiftSpeedDown = speedDown;\n }",
"public void setEngineerPoints(int points) {\n if (pointsPullCheck(points)) {\n engineerPoints += points;\n }\n }",
"public void setSleepInterval(int len) {\n\t\tsleepSpinner.setValue(len);\n\t}",
"public GameMode(int s)\n {\n bird3.y+=15;\n bird3.goUp = true;\n \n state = s;\n sprite = 0; \n }",
"public Round() {\n\t\tthis.niceMoves = null;\n\t\tthis.roundNo = 1;\n\t}",
"protected void setSleeping() {\n isSleeping = true;\n }",
"private void setSteine() {\n\t\tfor(int i = 0; i<mulden.length; i++) {\n\t\t\tmulden[i] = 5;\n\t\t}\n\t}",
"public void setRadSpacing(double value) {\n radSpacing = value;\n }",
"private void setCurrentRadius(double r){\n\t\t\n\t\t_currentRadius = r;\n\t\t\n\t}"
]
| [
"0.6310815",
"0.60068077",
"0.6000782",
"0.59167236",
"0.5909505",
"0.57995903",
"0.57408357",
"0.57071954",
"0.57013434",
"0.5698863",
"0.56960326",
"0.566161",
"0.5654575",
"0.564785",
"0.56093",
"0.5580136",
"0.554528",
"0.55339694",
"0.5502492",
"0.5480382",
"0.5466468",
"0.5464205",
"0.54565865",
"0.5430204",
"0.54267377",
"0.5402976",
"0.5399822",
"0.53973526",
"0.53845274",
"0.53728116",
"0.53685164",
"0.53645706",
"0.53364277",
"0.5334754",
"0.53147256",
"0.5309865",
"0.53052527",
"0.5300906",
"0.5297169",
"0.5297083",
"0.5289426",
"0.52877915",
"0.5286663",
"0.5283185",
"0.52766234",
"0.52733654",
"0.52720535",
"0.52619904",
"0.5245577",
"0.5234728",
"0.5232836",
"0.5198149",
"0.5195869",
"0.5192553",
"0.51922965",
"0.51881385",
"0.51849717",
"0.51847684",
"0.51820904",
"0.5170624",
"0.5166925",
"0.516417",
"0.51556295",
"0.5155322",
"0.5152576",
"0.51480347",
"0.5145601",
"0.51444536",
"0.5141197",
"0.5137718",
"0.51341766",
"0.5133605",
"0.51297426",
"0.5126235",
"0.5116485",
"0.51126766",
"0.5111877",
"0.51086694",
"0.5108574",
"0.51051193",
"0.5103195",
"0.5102554",
"0.509827",
"0.50973773",
"0.50959814",
"0.50951993",
"0.509484",
"0.50945795",
"0.5094263",
"0.5093734",
"0.507915",
"0.5079016",
"0.5074852",
"0.5074149",
"0.5074054",
"0.5072549",
"0.5071716",
"0.507142",
"0.50693464",
"0.50644505"
]
| 0.81554127 | 0 |
Gets the bottom width. | public String getBottomWidth() {
return bottomWidth;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int width()\n {\n return Math.max(top, bottom);\n }",
"public int getBottomWeight(){\r\n\t \treturn this.bottomWeight;\r\n\t }",
"public int getBottom() {\n return position[0] + (size - 1) / 2;\n }",
"public int getBottom() {\n\t\treturn this.bottom;\n\t}",
"public void setBottomWidth(String bottomWidth) {\r\n\t\tthis.bottomWidth = bottomWidth;\r\n\t}",
"public int getWidth() {\n return bala.getWidth();\n }",
"public double Bottom(){\n\t\tdouble fary = y + sizeY - 1;\n\t\treturn (fary);\n\t}",
"public float getBottom() {\r\n\t\treturn top + height;\r\n\t}",
"public double getBottom() {\n return this.yD;\n }",
"public double getWidth() {\n\t\t\treturn width.get();\n\t\t}",
"public int getYBottom() {\n return getYTop() + getYWidth();\n }",
"public double getWidth() {\r\n\r\n\t\treturn w;\r\n\r\n\t}",
"public static int getWidth()\r\n\t{\r\n\t\treturn width;\r\n\t}",
"public int getWidth() {\n return (int) Math.round(width);\n }",
"private double getWidth() {\n\t\treturn width;\n\t}",
"public double getWidth () {\n return width;\n }",
"public double getBaseHeight();",
"public double getWidth() {\n return width;\n }",
"public double getWidth() {\n return width;\n }",
"public double getWidth() {\n return width;\n }",
"public double getWidth()\r\n {\r\n return width;\r\n }",
"public int getWingLength() {\n if (arrowhead != null) {\n return arrowhead.getWingLength();\n }\n return 0;\n }",
"public double getWidth()\n {\n return width;\n }",
"public int getHeight() {\n\t\t\treturn 1;\n\t\t}",
"public double getWidth() {\r\n return width;\r\n }",
"public double getWidth() {\r\n\t\treturn width;\r\n\t}",
"public double getWidth() {\n\t\treturn width;\n\t}",
"public double getWidth() {\n\t\treturn width;\n\t}",
"public double getWidth() {\n\t\treturn width;\n\t}",
"final public double getWidth()\n\t{\n\t\treturn width;\n\t}",
"public int getWidthNumOfBytes() {\n return widthNumOfBytes;\n }",
"public int getWidth() {\n return mWidth;\n }",
"public double getBoundingBoxBottom() {\n return boundingBoxBottom;\n }",
"public Integer getWidth() {\n\t\t\treturn width;\n\t\t}",
"public int getHeight() {\n return (int) Math.round(height);\n }",
"public static int getHeight()\r\n\t{\r\n\t\treturn height;\r\n\t}",
"public int getBottomY() {\n\t\treturn 0;\r\n\t}",
"public double getWidth();",
"public double getWidth();",
"long getWidth();",
"public int getWidth(){\n Window w = vc.getFullScreenWindow();\n if(w != null){\n return w.getWidth();\n } else {\n return 0;\n }\n }",
"public int getHeight() {\n return bala.getHeight();\n }",
"public Integer getWidth()\n {\n return (Integer) getStateHelper().eval(PropertyKeys.width, null);\n }",
"public float getWidth() {\n return width;\n }",
"public int getHeight() {\n\t\treturn getHeight(this);\n\t}",
"public int getWidth() {\n\t\treturn width;\r\n\t}",
"double getWidth();",
"double getWidth();",
"public int getWidth() {\r\n return width;\r\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth()\r\n\t{\r\n\t\treturn mWidth;\r\n\t}",
"public int getLargeur() {\n return getWidth();\n }",
"public String getWidth() {\n return width;\n }",
"Integer getCurrentHeight();",
"public int getWidth() {\r\n\t\treturn width;\r\n\t}",
"public int getWidth() {\r\n\t\treturn width;\r\n\t}",
"public float getWidth()\n {\n return getBounds().width();\n }",
"public float getWidth() {\r\n\t\treturn width;\r\n\t}",
"public int getWidth() {\n return width_;\n }",
"public List<Integer> getBottomDiameters() {\n return bottomDiameters;\n }",
"public final float getWidth() {\n return mWidth;\n }",
"public int getWidth()\n {\n return width;\n }",
"public int getWidth()\n {\n return width;\n }",
"public int getWidth()\n {\n return width;\n }",
"public double getBaseWidth() {\n return baseWidth;\n }",
"public int getWidth() {\n return width_;\n }",
"public int getWidth() {\n return width_;\n }",
"public int getWidth() {\r\n return width;\r\n }",
"public double getwidth(Block bl,MainWindow M){\r\n\t\tPoint3D pT = Map.gpsToPix(bl.getpoint_BlockTopRight().y(),bl.getpoint_BlockTopRight().x(),M.getHeight(),M.getWidth());\r\n\t\tPoint3D pD = Map.gpsToPix(bl.getpoint_BlockDownleft().y(),bl.getpoint_BlockDownleft().x(),M.getHeight(),M.getWidth());\r\n\t\tint width = (int)(pT.x() - pD.x());\r\n\t\treturn width;\r\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public final int getWidth() {\r\n return width;\r\n }",
"long getHeight();",
"String getWidth();",
"String getWidth();",
"public Integer getWidth() {\n return this.width;\n }",
"public double getWidth() {\n\treturn width;\n }"
]
| [
"0.7739838",
"0.72915846",
"0.70347935",
"0.70281506",
"0.69557875",
"0.68985647",
"0.68454206",
"0.67391926",
"0.6721019",
"0.66424507",
"0.66071206",
"0.6606158",
"0.6568776",
"0.6514468",
"0.6466044",
"0.6451858",
"0.644978",
"0.64429146",
"0.64429146",
"0.64429146",
"0.64428216",
"0.6435221",
"0.6431658",
"0.64316344",
"0.6429857",
"0.6428655",
"0.64125425",
"0.64125425",
"0.64125425",
"0.64025784",
"0.6400497",
"0.6395316",
"0.63793856",
"0.63768804",
"0.6373529",
"0.6371993",
"0.6368035",
"0.636314",
"0.636314",
"0.63492894",
"0.6346415",
"0.63368046",
"0.633037",
"0.6328235",
"0.63267845",
"0.6325662",
"0.63227266",
"0.63227266",
"0.6317141",
"0.6315212",
"0.6315212",
"0.6315212",
"0.6315212",
"0.6315212",
"0.6315212",
"0.6315212",
"0.6315212",
"0.6315212",
"0.6315212",
"0.6315212",
"0.6315212",
"0.6315212",
"0.63144445",
"0.6308421",
"0.6301127",
"0.62977743",
"0.6293816",
"0.6293816",
"0.6290553",
"0.62898237",
"0.6289721",
"0.6287346",
"0.62870026",
"0.62855566",
"0.62855566",
"0.62855566",
"0.6283146",
"0.6282713",
"0.6282713",
"0.62802744",
"0.62802225",
"0.62794477",
"0.62794477",
"0.62794477",
"0.62794477",
"0.62794477",
"0.62794477",
"0.62794477",
"0.62794477",
"0.62794477",
"0.62794477",
"0.62794477",
"0.62794477",
"0.62794477",
"0.62787485",
"0.627865",
"0.6278643",
"0.6278643",
"0.627853",
"0.627656"
]
| 0.8867935 | 0 |
Sets the bottom width. | public void setBottomWidth(String bottomWidth) {
this.bottomWidth = bottomWidth;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getBottomWidth() {\r\n\t\treturn bottomWidth;\r\n\t}",
"public void setBottom(int x) {\r\n bottomSide = x;\r\n }",
"public void setBottom() {\n reset(State.BOTTOM);\n }",
"public UtilsPadding setBottom(Number bottom) {\n if (jsBase == null) {\n this.bottom = null;\n this.bottom1 = null;\n \n this.bottom = bottom;\n } else {\n this.bottom = bottom;\n if (!isChain) {\n js.append(jsBase);\n isChain = true;\n }\n \n js.append(String.format(Locale.US, \".bottom(%s)\", bottom));\n\n if (isRendered) {\n onChangeListener.onChange(String.format(Locale.US, jsBase + \".bottom(%s);\", bottom));\n js.setLength(0);\n }\n }\n return this;\n }",
"public void setWitdh(int newValue)\n {\n width = newValue;\n }",
"public void setWidth(double w)\n { this.widthDefault = w; }",
"void setWidth(int width);",
"void setWidth(int width);",
"public void setWidth(Integer width) {\n this.width = width;\n control.draw();\n }",
"public Position setBottom(Size size) {\n\t\tbottom = size.clone();\n\t\treturn this;\n\t}",
"public void setWidth(int w)\n {\n width = w;\n }",
"public void setWidth(double width) {\n this.width = width;\n }",
"public void setWidth(double width) {\r\n this.width = width;\r\n }",
"private void setBottomCounter() {\n\t\tVBox bottomBox = new VBox();\n\t\tbottomBox.setAlignment(Pos.BOTTOM_CENTER);\n\t\tbottomBox.setPadding(new Insets(10, 10, 10, 10));\n\t\tbottomBox.setSpacing(5);\n\t\t\n\t\tlastProperty = new Text(\"\");\n\t\tlastProperty.setFont(Font.font(\"TimesNewRoman\", FontWeight.BOLD, 24));\n\t\tlastProperty.setFill(Color.GREEN);\n\t\t\n\t\tcounterText = new Text(\"Total number of properties listed: \" + Property.getTotalProperties());\n\t\tcounterText.setFont(Font.font(\"Bauhaus 93\", FontWeight.BOLD, 24));\n\t\tcounterText.setFill(Color.rgb(100, 0, 150));\n\t\t\n\t\t\n\t\tbottomBox.getChildren().addAll(lastProperty, counterText);\n\t\t\n\t\tmainPane.setBottom(bottomBox);\n\t\t\n\t}",
"public void setWidth(double value) {\n this.width = value;\n }",
"public void setWidth(double width) {\n this.width = width;\n }",
"void setWidthHeight() {\n\t\tsetWidthHeight(getNcols() * grid().gridW, getNvisibleRows() * grid().gridH);\n\t}",
"public void setYWidth(int width) {\n this.yWidth = width;\n }",
"public void setWidth(int w){\n \twidth = w;\n }",
"public void setBoundingBoxBottom(double value) {\n this.boundingBoxBottom = value;\n }",
"public void setWidth(int w) {\n this.width = w;\n }",
"public void alignBottom() {\n\t\ttop.bottom();\n\t}",
"public int getBottomWeight(){\r\n\t \treturn this.bottomWeight;\r\n\t }",
"public void setWidth(double w) {\n\t\t\twidth.set(clamp(w, WIDTH_MIN, WIDTH_MAX));\n\t\t}",
"public void setWidth(int w) {\n this.W = w;\n }",
"@Override\n\tpublic void setWidth(float width) {\n\n\t}",
"public void setWidth(int width) {\n this.width = width;\n }",
"void setHeight(int height);",
"void setHeight(int height);",
"public abstract Builder setOutputWidth(int value);",
"public void setWidth(int width)\n {\n this.width = width;\n }",
"void setFitWidth(short width);",
"public void setWidth(Double width) {\n\t\tthis.width = width;\n\t}",
"public void setWidth(double width) {\n\t\tthis.width = width;\n\t}",
"public void setWidth(double width) {\n\t\tthis.width = width;\n\t}",
"public void setWidth(final int theWidth) {\n myWidth = theWidth;\n }",
"public void adjustSize() {\r\n /*\r\n * Calculate target width: max of header, adjusted window, content\r\n * \r\n * TODO: restrict to available desktop space\r\n */\r\n int targetWidth = TOTAL_BORDER_THICKNESS\r\n + MathUtils.maxInt(headerBar.getOffsetWidth(),\r\n contentWidget.getOffsetWidth(), getWidth()\r\n - TOTAL_BORDER_THICKNESS);\r\n /*\r\n * Calculate target height: max of adjusted window, content\r\n * \r\n * TODO: restrict to available desktop space\r\n */\r\n int targetHeight = TOTAL_BORDER_THICKNESS\r\n + MathUtils.maxInt(contentWidget.getOffsetHeight(), getHeight()\r\n - TOTAL_BORDER_THICKNESS - headerBar.getOffsetHeight());\r\n\r\n setPixelSize(targetWidth, targetHeight);\r\n }",
"@Override\r\n\tpublic void setWidth(int width) {\n\t\t\r\n\t}",
"private void setTargetWidth(int width)\r\n\t{\r\n\t\tsynchronized (mMutex)\r\n\t\t{\r\n\t\t\tmTargetWidth = width;\r\n\t\t}\r\n\t}",
"@NonNull\n public Builder setBottom(@NonNull DpProp bottom) {\n if (bottom.getDynamicValue() != null) {\n throw new IllegalArgumentException(\"setBottom doesn't support dynamic values.\");\n }\n mImpl.setBottom(bottom.toProto());\n mFingerprint.recordPropertyUpdate(\n 4, checkNotNull(bottom.getFingerprint()).aggregateValueAsInt());\n return this;\n }",
"private void setWindowWidth(int width) {\n this.width = width;\n }",
"public abstract Builder setOutputHeight(int value);",
"public void setWidth(int width) {\n if (width > 0) {\n this.width = width;\n }\n }",
"public void adjustWidth() {\n int width = Short.MIN_VALUE;\n\n for (final TextBox tb : getAllTextBox()) {\n final int tbWidth = tb.getTextDim().width;\n\n if (tbWidth > width) width = tbWidth; // get the longer content\n }\n\n if (fullWidthStereotype > width) width = fullWidthStereotype;\n\n Change.push(new BufferBounds(this));\n\n setBounds(new Rectangle(\n bounds.x, bounds.y, width + GraphicView.getGridSize() + 15, bounds.height));\n\n Change.push(new BufferBounds(this));\n }",
"public void setHeight(int height);",
"public void setHeight(int height);",
"public void setWidth(int width) {\n\t\tw = width;\n\t}",
"public UtilsPadding setBottom(String bottom1) {\n if (jsBase == null) {\n this.bottom = null;\n this.bottom1 = null;\n \n this.bottom1 = bottom1;\n } else {\n this.bottom1 = bottom1;\n if (!isChain) {\n js.append(jsBase);\n isChain = true;\n }\n \n js.append(String.format(Locale.US, \".bottom(%s)\", wrapQuotes(bottom1)));\n\n if (isRendered) {\n onChangeListener.onChange(String.format(Locale.US, jsBase + \".bottom(%s);\", wrapQuotes(bottom1)));\n js.setLength(0);\n }\n }\n return this;\n }",
"public void setWidth(int w) {\n\t\twidth = w;\n\t}",
"public void setWidth(int width) {\n\tthis.width = width;\n\tcalculateWidthRatio();\n }",
"private void setWidth(long value) {\n bitField0_ |= 0x00000004;\n width_ = value;\n }",
"public void setClipBottom(int bottom) {\n if (bottom != mClipRect.bottom) {\n mClipRect.bottom = bottom;\n mSourceView.invalidateOutline();\n }\n }",
"void setFitHeight(short height);",
"@Override\r\n\tpublic int setWidth() {\n\t\treturn 0;\r\n\t}",
"private void setWidth() {\n\n for (int i = 0; i < historicList.size(); i++) {\n RelativeLayout layout = layoutsList.get(i);\n\n ViewGroup.LayoutParams params = layout.getLayoutParams();\n int position = historicList.get(i).position;\n if (position > 4) {\n position = 4;\n } else if (position < 0) {\n position = 0;\n }\n WidthScreen(position, params);\n }\n }",
"public void setMarginBottom( int marginBottom )\n {\n this.marginBottom = marginBottom;\n }",
"public void setMaxPaddleLength(){\n myRectangle.setWidth(myScreenWidth - SIDEBAR_WIDTH);\n }",
"private void setBorderWidth(int width) {\n this.borderWidth = width;\n Rectangle r = (Rectangle) this.getChildren().get(0);\n r.setStrokeWidth(width);\n }",
"public void setWidth(Integer width) {\n\t\tthis.width = width;\n\t\tthis.handleConfig(\"width\", width);\n\t}",
"void setHeight(VariableAmount height);",
"public void setWidth( int width ) {\n\t\t_width = width;\n\t}",
"public int width()\n {\n return Math.max(top, bottom);\n }",
"void setDimension(double width, double height);",
"public void setWidth (int width) {\r\n\tcheckWidget();\r\n\tif ((style & SWT.SEPARATOR) == 0) return;\r\n\tif (width < 0) return;\r\n\tOS.PtSetResource (handle, OS.Pt_ARG_WIDTH, width, 0);\r\n\tif (control != null && !control.isDisposed ()) {\r\n\t\tcontrol.setBounds (getBounds ());\r\n\t}\r\n}",
"public void setHeight(double value) {\n this.height = value;\n }",
"@Override\r\n public void setWidth(String width) {\n }",
"public void setWidth(int width) {\n\t\tthis.width = width;\n\t}",
"void setTubeUpDimension(double width, double height);",
"void setTubeDownDimension(double width, double height);",
"public Builder setWidth(int value) {\n bitField0_ |= 0x00000004;\n width_ = value;\n onChanged();\n return this;\n }",
"@JSProperty(\"bottom\")\n void setBottom(Chart3dFrameBottomOptions value);",
"public final void mo71534e(int i) {\n ((MarginLayoutParams) this.mBottomView.getLayoutParams()).bottomMargin = i;\n this.mBottomView.requestLayout();\n }",
"public void setHeight(Integer height) {\n this.height = height;\n control.draw();\n }",
"public void SetWidth(double width) {\n OCCwrapJavaJNI.ShapeAnalysis_FreeBoundData_SetWidth(swigCPtr, this, width);\n }",
"public void setWidth(final String value)\n {\n width = value;\n }",
"public void updateWidth() {\n\t\t// Update width\n\t\tif (this.getFamily() != null) {\n\t\t\tthis.getFamily().updateFamilyWidth();\n\t\t\tthis.setWidth(this.getFamily().getWidth()\n\t\t\t\t\t+ this.getFamily().getNextWidth());\n\t\t} else {\n\t\t\tthis.setWidth(1);\n\t\t}\n\t}",
"public void setSize(double aWidth, double aHeight) { setWidth(aWidth); setHeight(aHeight); }",
"public void setWidth(int width) {\n this.width = width;\n this.rightEdge = RRConstants.getRightEdge(width);\n }",
"public final native void setWidth(double width) /*-{\n this.setWidth(width);\n }-*/;",
"public void setHeight(int l){\n \theight = l;\n }",
"public void setWidth(String width) {\r\n this.width = width;\r\n }",
"public void setLineWidth(Integer width) {\n style.setBorderWidth(width);\n }",
"public Builder setWidth(int value) {\n \n width_ = value;\n onChanged();\n return this;\n }",
"public void yBindWidth(String bind_name, ObservableValue<? extends Number> width, boolean stroke_included);",
"public void setBaseWidth(double baseWidth) {\n this.baseWidth = baseWidth;\n }",
"public void setBarWidth(float mBarWidth) {\n this.mBarWidth = mBarWidth;\n }",
"public void setHeight(float top, float bottom) {\n this.top = top;\n this.bottom = bottom;\n }",
"@Override\n\tpublic void setWidth(int newWidth) {\n\t\tint width = (int) (newWidth * 0.5);\n\t\tif (width > mainContainer.getMinWidth()) {\n\t\t\tscreenWidth = width;\n\t\t\tmainContainer.setPrefWidth(screenWidth);\n\t\t}\n\t\tcenterScreenX(newWidth);\n\t}",
"@Override\n @SimpleProperty()\n public void Width(int width) {\n if (width == LENGTH_PREFERRED) {\n width = LENGTH_FILL_PARENT;\n }\n super.Width(width);\n }",
"protected final void setSize(float width, float height)\n {\n boolean flag = this.bokoblinWidth > 0.0F && this.bokoblinHeight > 0.0F;\n this.bokoblinWidth = width;\n this.bokoblinHeight = height;\n\n if (!flag)\n {\n this.multiplySize(1.0F);\n }\n }",
"private void autoSetBarSize() {\n float statusBarHeight = Utils.getStatusBarHeight(ModifyPassActivity.this);\n mStatusView = findViewById(R.id.view_modify_status_bar);\n LinearLayout.LayoutParams Params1 = new LinearLayout.LayoutParams(\n ViewGroup.LayoutParams.MATCH_PARENT, (int) statusBarHeight);\n mStatusView.setLayoutParams(Params1);\n }",
"void setSize(float w, float h) {\n _w = w;\n _h = h;\n }",
"public boolean setOnBottom(int i) {\n return windows.setOnBottom(i);\n }",
"public void setWidth(int newWidth) {\n roomWidth = newWidth;\n }",
"public void setHeight(int value) {\n this.height = value;\n }",
"public void setWidth(final int width) {\n\t\tthis.width = width;\n\t\tthis.widthString = \"%-\" + width + \"s\";\n\t}",
"@Override\n\tpublic void setHeight(short arg0) {\n\t\t\n\t}",
"public void setWidth(int w){ widthRadius = w; }",
"public void setHeight(double height){\n h=height;\r\n }",
"public void resetPaddleWidth(){\n myRectangle.setWidth(myLength);\n }"
]
| [
"0.7194655",
"0.6660363",
"0.66382855",
"0.6200252",
"0.6115339",
"0.6078501",
"0.6060527",
"0.6060527",
"0.60012656",
"0.59949386",
"0.5973079",
"0.596996",
"0.5945359",
"0.59445506",
"0.5919954",
"0.5917569",
"0.5896704",
"0.58501005",
"0.5844383",
"0.5840099",
"0.5838901",
"0.58256996",
"0.5823537",
"0.5813816",
"0.5801242",
"0.5780591",
"0.5775083",
"0.5764736",
"0.5764736",
"0.57513577",
"0.5744627",
"0.57411414",
"0.5737578",
"0.5711759",
"0.5711759",
"0.56855977",
"0.56639725",
"0.56598663",
"0.5658034",
"0.5657403",
"0.56543535",
"0.5644184",
"0.5642049",
"0.5636288",
"0.56293213",
"0.56293213",
"0.5627325",
"0.5622064",
"0.5609048",
"0.5607314",
"0.5598845",
"0.5583319",
"0.55801105",
"0.5575913",
"0.55647355",
"0.55548733",
"0.55492043",
"0.5544944",
"0.5542538",
"0.5527547",
"0.55223936",
"0.55178255",
"0.5514315",
"0.551157",
"0.5503598",
"0.54943806",
"0.54673314",
"0.5465714",
"0.54644334",
"0.5457161",
"0.5446976",
"0.54457754",
"0.54415005",
"0.5418877",
"0.5415269",
"0.54119676",
"0.5403927",
"0.5398781",
"0.53979546",
"0.5388901",
"0.5379369",
"0.537578",
"0.53753394",
"0.5367216",
"0.5345673",
"0.53385156",
"0.5337807",
"0.5328256",
"0.532324",
"0.53232",
"0.53171796",
"0.5313503",
"0.53050053",
"0.5304233",
"0.5296109",
"0.5296056",
"0.5295738",
"0.5294987",
"0.52914274",
"0.528857"
]
| 0.83187157 | 0 |
Gets the side slit length. | public String getSideSlitLength() {
return sideSlitLength;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getLength() {\n return this.sideLength;\n }",
"public double getSideLength() {\n\t\treturn this.sideLength;\n\t}",
"public int getSide() {\n\t\treturn getLength() ;\n\t}",
"public void setSideSlitLength(String sideSlitLength) {\r\n\t\tthis.sideSlitLength = sideSlitLength;\r\n\t}",
"public double length()\n {\n return this.getR();\n }",
"public double getWidth() {\n\t\tdouble width = Math.round(sideLength + (2 * sideLength * \n\t\t\t\tMath.sin(Math.PI / 4)));\n\t\treturn width;\n\t}",
"public double get_length() {\n\t\treturn _length;\n\t}",
"int side() {\n return s;\n }",
"public double length()\n {\n return Math.sqrt(this.lengthsq());\n }",
"public double getLength() {\r\n\t\t\treturn length;\r\n\t\t}",
"public double getLength() {\r\n\t\treturn length;\r\n\t}",
"public double getLength()\n\t{\n\t\treturn length;\n\t}",
"public double getLength() {\n\t\treturn length;\n\t}",
"public int getLength ()\r\n {\r\n return glyph.getBounds().width;\r\n }",
"public double length () {\n return Math.sqrt(lengthSquared());\n }",
"public double getLength() {\r\n return length;\r\n }",
"Length getWidth();",
"public double getLength();",
"public double getLength(){\r\n\t\treturn length;\r\n\t}",
"public double getLength() {\n return length;\n }",
"public String halfwidth() {\n return this.halfwidth;\n }",
"public double getLength()\n {\n return length;\n }",
"public float length ()\n {\n return FloatMath.sqrt(lengthSquared());\n }",
"public Double getLength()\n {\n return length;\n }",
"public double length() {\n return Math.sqrt(\n (Math.pow(getX(), 2)) +\n (Math.pow(getY(), 2)) +\n (Math.pow(getZ(), 2))\n );\n }",
"public Integer getLength() {\n return _length;\n }",
"public Integer getLength() {\n return _length;\n }",
"public int get_length();",
"float getLength();",
"float getLength();",
"public int getLength()\n\t{\n\t\treturn (int) length;\n\t}",
"public SVGLength getWidth() {\n return width;\n }",
"public double sideArea()\r\n {\r\n double sideArea = slantHeight() * radius * Math.PI;\r\n return sideArea;\r\n }",
"public String getlength()\n\t{\n\t\treturn length.getText();\n\t}",
"public int getLength() {\r\n return length;\r\n }",
"public int getLength() {\r\n return length;\r\n }",
"public int getLength() {\r\n return length;\r\n }",
"public double getLength() {\n return hi - lo;\n }",
"public int getHalfWidth() {\n\t\t\treturn halfWidth;\n\t\t}",
"public double length() {\n\t\treturn Math.sqrt(x * x + y * y + z * z + w * w);\n\t}",
"public int getRoadLength() {\n \t\treturn roadLength;\n \t}",
"public int getLength() {\r\n\t\treturn length;\r\n\t}",
"public int getLength() { return length;\t}",
"abstract double getLength();",
"public int getLength() {\n return length_;\n }",
"public double length()\n\t{\n\t\treturn Math.sqrt(x*x + y*y);\n\t}",
"public int getLength()\n\t{\n\t\treturn length;\n\t}",
"public int getLength()\n\t{\n\t\treturn length;\n\t}",
"String getWidth();",
"String getWidth();",
"int getWayLength();",
"public int getLength() {\n return length;\n }",
"public int getLength() {\n return length;\n }",
"public int getLength()\n {\n\treturn length;\n }",
"protected int getLength() {\n return length;\n }",
"public int getLength() {\n return length;\n }",
"int getLength();",
"int getLength();",
"int getLength();",
"int getLength();",
"int getLength();",
"int getLength();",
"int getLength();",
"int getLength();",
"int getLength();",
"int getLength();",
"public double Length() {\n return OCCwrapJavaJNI.Units_Dimensions_Length(swigCPtr, this);\n }",
"public int getLength() {\n\t\treturn length;\n\t}",
"public int getLength() {\n\t\treturn length;\n\t}",
"public int getLength() {\n\t\treturn length;\n\t}",
"public int getLength() {\n\t\treturn length;\n\t}",
"public int getLength() {\n\t\treturn length;\n\t}",
"public int getLength() {\n\t\treturn length;\n\t}",
"protected int length() { return FormatTools.getRasterLength(lengths); }",
"public int getLength() {\n return length_;\n }",
"public int getLength(){\n\t\treturn length;\n\t}",
"public int getLength(){\n\t\treturn length;\n\t}",
"public double getSquareLength() {\n return r * r + i * i;\n }",
"public int getLength()\n {\n return length;\n }",
"public double getSide()\n\t{\n\t\treturn this.side;\n\t}",
"public double getBboxHorizontalSidelength() {\n return getDouble(\"thor\");\n }",
"public int getLength();",
"public int getLength();",
"public int getLength();",
"int getSides()\n\t\t{\n\t\t\treturn sides;\n\t\t}",
"public void setSideLength(double sideLength) {\n\t\tthis.sideLength = sideLength;\n\t}",
"public double getLength() {\n return count;\n }",
"public long getLength();",
"public long getLength();",
"@Field(2) \n\tpublic int width() {\n\t\treturn this.io.getIntField(this, 2);\n\t}",
"public double getLength(){\n return length;\n }",
"public long length() {\n return length;\n }",
"public int getLength() {\n return mySize.getLength();\n }",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public int length() {\n \t\tif (-1 == n_points) setupForDisplay();\n \t\treturn n_points;\n \t}",
"public double lengthsq()\n {\n return Math.pow(this.x, 2) + Math.pow(this.y, 2);\n }",
"public int length() {\n \t \n \t //return the length\n \t return(len);\n }",
"public double length(){\n return end.distance(getStart());\n }",
"@Override\n\tpublic int getWidth() {\n\t\treturn POWER_STATION_WIDTH;\n\t}",
"protected int getLength() {\n\t\treturn this.length;\n\t}"
]
| [
"0.80968916",
"0.807994",
"0.7442542",
"0.73169637",
"0.69133246",
"0.6899971",
"0.67797726",
"0.6739905",
"0.6737174",
"0.673121",
"0.67230326",
"0.6716578",
"0.6688525",
"0.66829646",
"0.663963",
"0.66200876",
"0.6618948",
"0.6617185",
"0.66145676",
"0.6576708",
"0.6515605",
"0.6495643",
"0.6487105",
"0.64455754",
"0.6432019",
"0.63942754",
"0.63942754",
"0.6372645",
"0.63653606",
"0.63653606",
"0.6360616",
"0.6358938",
"0.63328385",
"0.6322293",
"0.63210976",
"0.63210976",
"0.63210976",
"0.63157076",
"0.63138914",
"0.6307568",
"0.63023406",
"0.6292854",
"0.62917405",
"0.6290358",
"0.6282324",
"0.62778217",
"0.62766254",
"0.62766254",
"0.6271786",
"0.6271786",
"0.62710834",
"0.6251132",
"0.6251132",
"0.6245248",
"0.6245198",
"0.62431794",
"0.62340134",
"0.62340134",
"0.62340134",
"0.62340134",
"0.62340134",
"0.62340134",
"0.62340134",
"0.62340134",
"0.62340134",
"0.62340134",
"0.62320256",
"0.6231301",
"0.6231301",
"0.6231301",
"0.6231301",
"0.6231301",
"0.6231301",
"0.62229645",
"0.62137276",
"0.6210314",
"0.6210314",
"0.62045264",
"0.61899364",
"0.61816597",
"0.61755025",
"0.6169433",
"0.6169433",
"0.6169433",
"0.6152406",
"0.61500394",
"0.6134701",
"0.613343",
"0.613343",
"0.61268675",
"0.61182964",
"0.611662",
"0.61115485",
"0.6109979",
"0.61088115",
"0.6100541",
"0.60980946",
"0.60942674",
"0.6090096",
"0.6085078"
]
| 0.8762473 | 0 |
Sets the side slit length. | public void setSideSlitLength(String sideSlitLength) {
this.sideSlitLength = sideSlitLength;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSquareSide (int newLength){\r\n model.setSideLength(newLength);\r\n view.resetView(model);\r\n }",
"public void setSideLength(double sideLength) {\n\t\tthis.sideLength = sideLength;\n\t}",
"public String getSideSlitLength() {\r\n\t\treturn sideSlitLength;\r\n\t}",
"void setLength(int length);",
"public void setLength(long length);",
"public void setLength(long length);",
"void setLength( long length );",
"public void setLength(double length)\r\n {\r\n this.length = length;\r\n }",
"synchronized void setLength(int length) {\n this.length = length;\n }",
"public void setLength(int length)\n {\n this.length = length;\n }",
"public void setLength(double newLength) {\n length = newLength;\n }",
"public void setLength(int length) {\r\n this.length = length;\r\n }",
"public void setLength(int length) {\r\n this.length = length;\r\n }",
"public void setLength(double length) {\r\n this.length = length;\r\n }",
"public void setLength(int length) {\r\n\t\tthis.length = length;\r\n\t}",
"@Override\n\tpublic void setLength(int length) {\n\t\t\n\t}",
"public void setLength(double length) {\n this.length = length;\n }",
"public void setLength(Double newlength)\n {\n length = newlength;\n }",
"public void setLength(double length){this.length=length;}",
"public void setLength(int length) {\n\t\tthis.length = length;\n\t}",
"public void setLength(int length) {\n\t\tthis.length = length;\n\t}",
"public void setLength(int length) {\n\t\tthis.length = length;\n\t}",
"public void setLength(double length) {\n\t\tthis.length = length;\n\t}",
"public void setLength(float length) { // l = 2.3\r\n\t\tthis.length = length; // length = 2.3\r\n\t\t\r\n\t}",
"public void setLength(long length) { \n this.length = length; \n }",
"public void setLength(double len) throws IllegalArgumentException\n {\n if (len<0) throw new IllegalArgumentException (\"Length cannot be negative\" + len);\n else length = len;\n }",
"public void setLength(long length) {\r\n\t\tthis.length = length;\r\n\t}",
"public void setLength( int length ) { setCapacity( length ); this.length = length; }",
"public void setWitdh(int newValue)\n {\n width = newValue;\n }",
"public boolean setLength(double Length);",
"public void setLength(){\n out.print(\"Please enter a number greater than 0:\\t\");\n while (true) {\n try {\n this.sideLength = Integer.parseInt(sc.next());\n if (this.sideLength > 0) {\n break;\n } else {\n out.print(\"Please re-enter a number greater than 0!:\\t\");\n }// End if else\n } catch (NumberFormatException e) {\n out.print(\"Please enter a number (not a letter) greater than 0!:\\t\");\n //this.sideLength = 0;\n }// End try catch\n }// End running while loop\n }",
"public void setWidth(int newWidth) {\n roomWidth = newWidth;\n }",
"void setWidth(int width);",
"void setWidth(int width);",
"public void setCurrentLength(long currentLength) { \n this.currentLength = currentLength; \n }",
"public void setLength(int length){\n\t\tif(length > 0){\n\t\t\tthis.length = length; //this.length is the length were in right now. and = length is the length the object is given\n\t\t}\n\t\t\n\t\t\n\t}",
"public void setLength( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), LENGTH, value);\r\n\t}",
"public void setLength(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), LENGTH, value);\r\n\t}",
"default void setLength(double t) {\r\n scaleDirection(t / getLength());\r\n }",
"public void setWidth( int width )\n {\n int charWidth = ChatMenuAPI.getCharacterWidth( getCharacter( ) );\n length = width / charWidth;\n }",
"public void setEdgeLen(double len) {\n fEdgeLen = len;\n }",
"public void setLength(int length) {\n\t\tif (length <= 0)\n\t\t\tthrow new IllegalArgumentException(\"length must be > 0\");\n\n\t\tthis.length = length;\n\t}",
"public void setRight(int x) {\r\n rightSide = x;\r\n }",
"@Override\r\n public void setWidth(String width) {\n }",
"public void setWidth(final int theWidth) {\n myWidth = theWidth;\n }",
"public void setWidth(final String value)\n {\n width = value;\n }",
"public int getLength() {\n return this.sideLength;\n }",
"private void setWidth(long value) {\n bitField0_ |= 0x00000004;\n width_ = value;\n }",
"public void setLength(int length)\n {\n encryptionDictionary.setInt(\"Length\", length);\n }",
"public double getSideLength() {\n\t\treturn this.sideLength;\n\t}",
"public Builder setLength(int value) {\n \n length_ = value;\n onChanged();\n return this;\n }",
"public void resetPaddleWidth(){\n myRectangle.setWidth(myLength);\n }",
"public void setLength(int n){ // Setter method\n \n length = n; // set the class attribute (variable) radius equal to num\n }",
"public static void setLength(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.set(model, instanceResource, LENGTH, value);\r\n\t}",
"@Override\n @SimpleProperty()\n public void Width(int width) {\n if (width == LENGTH_PREFERRED) {\n width = LENGTH_FILL_PARENT;\n }\n super.Width(width);\n }",
"@Override\r\n\tpublic void setWidth(int width) {\n\t\t\r\n\t}",
"public void resetPaddleWidthToOriginal(){\n myRectangle.setWidth(PADDLE_LENGTH);\n myLength = PADDLE_LENGTH;\n }",
"public void setMaxPaddleLength(){\n myRectangle.setWidth(myScreenWidth - SIDEBAR_WIDTH);\n }",
"private void setSize(int s){\n\t\tsize = s;\n\t}",
"public void setLineLength(int len) {\n lineLength = len / 4 * 4;\n }",
"public void set_size(int s);",
"public static void setLength( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, LENGTH, value);\r\n\t}",
"@Override\n public void setVisibleLength(int length) {}",
"public void setWidth(int width)\n {\n this.width = width;\n }",
"public void setWidth(int w){\n \twidth = w;\n }",
"public void setWidth(int w)\n {\n width = w;\n }",
"public void setLengthOfStay(int len) {\n this.length_of_stay=len;\n }",
"public final void setTermLength(int length) {\n initTermBuffer();\n termLength = length;\n }",
"public void setWidth(String string) {\r\n\t\t_width = string;\r\n\t}",
"public void setWidth(int width) {\n this.width = width;\n }",
"public void setWidth(double value) {\n this.width = value;\n }",
"public void setXLength(int length) {\n this.xLength = length;\n }",
"public void setSleeveLength(String sleeveLength) {\r\n\t\tthis.sleeveLength = sleeveLength;\r\n\t}",
"public void setWidth(double width) {\n this.width = width;\n }",
"public void setLength(Integer length) throws DBException {\n _length = length;\n }",
"public void setLength(Integer length) throws DBException {\n _length = length;\n }",
"public void set_length(short value) {\n setUIntElement(offsetBits_length(), 8, value);\n }",
"public void setWidth(double width) {\r\n this.width = width;\r\n }",
"public Builder setWidth(long value) {\n copyOnWrite();\n instance.setWidth(value);\n return this;\n }",
"public void setLength(int length) throws TVAnytimeException\n\t{\n\t\tif ((length >= 0) && (length < 3)) {\n\t\t\tthis.length = length;\n\t\t\tsynopsisLengthSet = true;\n\t\t}\n else if (length == UNDEFINED) {\n this.length = length;\n\t\t\tsynopsisLengthSet = false;\n }\n\t\telse throw new TVAnytimeException(\"Synopsis: Not a valid Synopsis length.\");\n\t}",
"public void setWidth(String width) {\r\n this.width = width;\r\n }",
"public void setSideId(int value) {\r\n this.sideId = value;\r\n }",
"@Override\n\tpublic void setBoxWidth(int l) {\n\t\tmaxwid = l;\n\t}",
"void setAxisLength(CalibratedAxis axis, long length);",
"public void setWidth(int w) {\n this.W = w;\n }",
"public void setValue(int size) {\n s.setValue(-size);\n }",
"public void setWidth(int w) {\n this.width = w;\n }",
"void setFitWidth(short width);",
"public void setWidth(double width) {\n this.width = width;\n }",
"public void SetWidth(double width) {\n OCCwrapJavaJNI.ShapeAnalysis_FreeBoundData_SetWidth(swigCPtr, this, width);\n }",
"public void setLength(int newLength) {\r\n\t\tif (cursor + newLength > buffer.length)\r\n\t\t\tthrow new IllegalArgumentException(\"Can't set new length if it exceeds buffer\");\r\n\t\tlimit = cursor + newLength;\r\n\t}",
"public void setWidth(int w){ widthRadius = w; }",
"public final native void setWidth(double width) /*-{\n this.setWidth(width);\n }-*/;",
"@JsProperty\n public void setWidth(int width);",
"public void setLength(Point e) {\r\n int Dx = Math.abs(this.origin.getX() - e.getX());\r\n int Dy = Math.abs(this.origin.getY() - e.getY());\r\n if (Dx > Dy) {\r\n this.length = Dx;\r\n } else { this.length = Dy; }\r\n }",
"public void setWidth(int width) {\n this.width = width;\n this.rightEdge = RRConstants.getRightEdge(width);\n }",
"public void handleIncreaseLengthPowerup(){\n myRectangle.setWidth(myRectangle.getWidth()*increaseLengthPowerupSizeFactor);\n myLength=(int)(myLength*increaseLengthPowerupSizeFactor);\n }",
"public void setWidth(Integer width) {\n this.width = width;\n control.draw();\n }",
"public void setWidth(int width) {\n if (width > 0) {\n this.width = width;\n }\n }",
"public void setWidth(int nuova_larghezza)\n {\n \tboolean bo = informaPreUpdate();\n larghezza = nuova_larghezza;\n\t\tinformaPostUpdate(bo);\n }"
]
| [
"0.7350068",
"0.73237324",
"0.71611077",
"0.68904215",
"0.67841786",
"0.67841786",
"0.6692474",
"0.6555115",
"0.65292025",
"0.65272766",
"0.6517221",
"0.6516721",
"0.6516721",
"0.6481679",
"0.6452471",
"0.644456",
"0.6444107",
"0.6395657",
"0.63705695",
"0.63490254",
"0.63490254",
"0.63490254",
"0.6338669",
"0.6332457",
"0.6300834",
"0.62819654",
"0.62557405",
"0.6188861",
"0.61370087",
"0.6120931",
"0.6108757",
"0.6078199",
"0.6063534",
"0.6063534",
"0.6010053",
"0.60017055",
"0.59824264",
"0.59818405",
"0.59815615",
"0.5965125",
"0.5961962",
"0.5926207",
"0.5895351",
"0.5890905",
"0.5883715",
"0.5881558",
"0.5861926",
"0.5841712",
"0.58333486",
"0.5831716",
"0.58307296",
"0.58231324",
"0.579878",
"0.57977474",
"0.5783127",
"0.5775095",
"0.5768043",
"0.5764695",
"0.5737704",
"0.5736261",
"0.573094",
"0.57182664",
"0.5711258",
"0.5708651",
"0.57051665",
"0.56967825",
"0.56965506",
"0.5695101",
"0.56905425",
"0.5673263",
"0.5649223",
"0.5639535",
"0.5633934",
"0.5631899",
"0.56245595",
"0.56245595",
"0.56190526",
"0.56063914",
"0.5593081",
"0.5580641",
"0.5577276",
"0.55716354",
"0.5565436",
"0.5563777",
"0.5563714",
"0.5562119",
"0.555287",
"0.5551661",
"0.55398494",
"0.5537309",
"0.55243313",
"0.55147487",
"0.5513306",
"0.5498144",
"0.54882073",
"0.54830194",
"0.54619753",
"0.5455696",
"0.54396826",
"0.5438955"
]
| 0.8378812 | 0 |
Gets the upper chest. | public String getUpperChest() {
return upperChest;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getChest() {\n return chest;\n }",
"public double getChest() {\n return chest;\n }",
"public double getUpperValue() {\n return this.upperMeasure.getValue();\n }",
"public int getUpperValue() {\n return getValue() + getExtent();\n }",
"public Point getupperRigth() {\n Point upperRigth = new Point(this.upperLeft.getX() + this.getWidth(), this.upperLeft.getY());\n return upperRigth;\n }",
"private Point getUpper() {\n int upperX;\n int upperY;\n upperY = (int) (gameCanvas.getHeight() + mapOffsetY * 2);\n upperX = (int) (gameCanvas.getWidth() + mapOffsetX * 2);\n return new Point(upperX, upperY);\n }",
"@Pure\n public QuadTreeNode<D> getUpperRightChild() {\n QuadTreeNode<D>[] _children = this.children;\n QuadTreeNode<D> _get = null;\n if (_children!=null) {\n _get=_children[3];\n }\n return _get;\n }",
"public Card top() {\r\n\t\treturn cards.get(cards.size() - 1);\r\n\t}",
"public Cell highestCell() {\n for (Cell c : this.board) {\n if (c.height == ForbiddenIslandWorld.ISLAND_SIZE / 2 && !c.isCoastCell()) {\n return c;\n }\n }\n return highestCell();\n }",
"public Coords getUpperRight()\r\n {\r\n return new Coords(x + width, y);\r\n }",
"public Point getUpperPoint() {\n return upper;\n }",
"public Measure<?, ?> getUpperMeasure() {\n return this.upperMeasure;\n }",
"public String getUpper() {\n return upperBound;\n }",
"public int getUpper() {\n return upper;\n }",
"public int upperBoundary(){\r\n\t\treturn yStart - Constants.FLOOR_HEIGHT;\r\n\t}",
"public int getUpperBound() {\r\n return upperBound;\r\n }",
"private Cell get_top_cell(int row, int col) {\n return get_cell(--row, col);\n }",
"@Pure\n public QuadTreeNode<D> getUpperLeftChild() {\n QuadTreeNode<D>[] _children = this.children;\n QuadTreeNode<D> _get = null;\n if (_children!=null) {\n _get=_children[1];\n }\n return _get;\n }",
"public Pixel topRight() {\n if (this.up == null) {\n return null;\n }\n else {\n return this.up.right;\n }\n }",
"public int getUpperThreshold() {\r\n\t\tint upperThreshold;\r\n\t\tupperThreshold=this.upperThreshold;\r\n\t\treturn upperThreshold;\r\n\t}",
"public void setUpperChest(String upperChest) {\r\n\t\tthis.upperChest = upperChest;\r\n\t}",
"public int getUpperBound() {\n\t\treturn this.upperBound;\n\t}",
"public float getUpperRightY()\n {\n return ((COSNumber)rectArray.get(3)).floatValue();\n }",
"public int topKnight() {\r\n\t\treturn knights[numKnights - 1];\r\n\t}",
"public T top() {\n \treturn stack.get(stack.size() - 1);\n }",
"public double getCellUpperPrice() {\r\n\t\treturn CellUpperPrice;\r\n\t}",
"public int top() {\r\n int value = this.pop();\r\n this.stack.offer(value);\r\n return value;\r\n }",
"public Coords getUpperLeft()\r\n {\r\n return new Coords(x, y);\r\n }",
"public Item max() {\n return heap[0];\n }",
"public int getUpperBound() {\n\t\treturn upperBound;\n\t}",
"public int top() {\n return top.value;\n }",
"@Override\n public E top()throws EmptyStackException{\n E c = null;\n if(!isEmpty()){\n c = stackArray[count-1];\n return c;\n }\n \n else \n throw new EmptyStackException();\n }",
"public Card getTopCard() {\r\n\t\tthis.sort();\r\n\t\treturn this.getCard(2); //Center card will always be part of quad after sorting, so has to be highest card\r\n\t}",
"public int pop() {\n\n if (top > 0) {\n top --;\n }\n else {\n System.out.println(\"Stack Underflow\");\n return -100;\n }\n return stack[top];\n }",
"public int top() {\n if (data.size() != 0) {\n return data.get(data.size() - 1);\n }\n throw new RuntimeException(\"top: 栈为空,非法操作\");\n }",
"public MinecartManiaDoubleChest getLargeChest() {\n\t\tif (getNeighborChest() != null) {\n\t\t\treturn new MinecartManiaDoubleChest(this, getNeighborChest());\n\t\t}\n\t\treturn null;\n\t}",
"public Floor getHeight() {\r\n return height;\r\n }",
"public double getBoundingBoxTop() {\n return boundingBoxTop;\n }",
"public Inventory getEnderChest ( ) {\n\t\treturn extract ( handle -> handle.getEnderChest ( ) );\n\t}",
"public ILocation top()\n {\n EmptyStackException ex = new EmptyStackException();\n if (top <= 0)\n {\n throw ex;\n }\n else\n {\n return stack.get(top - 1);\n }\n }",
"public float getTop() {\n return internalGroup.getTop();\n }",
"public int theHighest() {\r\n\t\tint highest = 0;\r\n\t\tfor(int i = 0; i < rows_size; i++) {\r\n\t\t\tfor(int j = 0; j < columns_size; j++) {\r\n\t\t\t\tif(game[i][j].getValue() > highest)\r\n\t\t\t\t\thighest = game[i][j].getValue();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn highest;\r\n\t}",
"public double getBestHeight() { return getBestHeight(-1); }",
"public java.math.BigDecimal getHigh() {\n return high;\n }",
"public Point getUpperLeft() {\n return this.upperLeft;\n }",
"public Card getBottom()\n {\n return cards.firstElement();\n }",
"public Square getLastSquare() {\n\t\treturn squares.get(squares.size()-1);\n\t}",
"public double upper()\n\t{\n\t\treturn _dblUpper;\n\t}",
"public int top() {\n move();\n return reverseQueue.peek();\n }",
"public int getHeight() {\n\t\t\treturn this.rank; \n\t\t}",
"public double Top(){\n\t\treturn (y);\n\t}",
"public Place tail(){\n return places.get(places.size()-1);\n }",
"public E findMax() {\r\n\t\treturn heap.get(0);\r\n\t}",
"public Integer getTop() {\n return top;\n }",
"public K topValue() {\n\t\tif(top!=null)\r\n\t\t\treturn top.data;\r\n\t\t\r\n\t\treturn null;\r\n\t}",
"public MinecartManiaChest getNeighborChest() {\n\t\treturn getNeighborChest(chest.getWorld(), getX(), getY(), getZ());\n\t}",
"public Card bestEight()\n {\n String mostSuit = \"\";\n int most = 0;\n Hashtable<String, Integer> cardSuit = new Hashtable<String, Integer>();\n //Count the number of cards in players hand for each suit\n for(Card cardInHand: this.hand)\n {\n String suit = cardInHand.getSuit();\n if(cardSuit.containsKey(suit))\n {\n cardSuit.put(suit, cardSuit.get(suit) + 1);\n }\n else\n {\n cardSuit.put(suit, 1);\n }\n }\n //find the highest one.\n for(String key: cardSuit.keySet())\n {\n if(cardSuit.get(key) > most) {\n mostSuit = key;\n most = cardSuit.get(key);\n }\n }\n return new Card(mostSuit, \"8\");\n }",
"public double[] getUpperLeft() {\n this.upperLeft = new double[]{minX, maxY};\n return upperLeft;\n }",
"int pop() {\r\n\t\ttop--;\r\n\t\treturn stack[top];\r\n\t}",
"public Line getUpperLine() {\n\n return new Line(this.getUpperLeft(), this.getupperRigth());\n }",
"public WorldDistance getInvestigateHeight()\n\t{\n\t\treturn _investigateHeight;\n\t}",
"public int getBottom() {\n return position[0] + (size - 1) / 2;\n }",
"@Override\n\tpublic BaseLayer GetUpperLayer(int nindex) {\n\t\tif (nindex < 0 || nindex > nUpperLayerCount || nUpperLayerCount < 0)\n\t\t\treturn null;\n\t\treturn p_aUpperLayer.get(nindex);\n\t}",
"public double Bottom(){\n\t\tdouble fary = y + sizeY - 1;\n\t\treturn (fary);\n\t}",
"public double getTop() {\n return this.yT;\n }",
"public int getHeight(){\n return this.baseLevel.getHeight();\n }",
"public final int getHigh() {\n\treturn(this.high);\n }",
"public int getTop() {\n return position[0] - (size - 1) / 2;\n }",
"public int getTop() {\n\t\treturn this.top;\n\t}",
"public int top() { return 0; }",
"public int getTop() {\n return top;\n }",
"public Building mostFitInPopulation(){\n\t\tCollections.sort(population);\n\t\treturn population.get(population.size() - 1);\n\t}",
"public int getBottom() {\n\t\treturn this.bottom;\n\t}",
"@Override\n\tpublic int pop() {\n\t\tint topValue;\n\t\tif (top != -1) {\n\t\t\ttopValue = intContainer[top];\n\t\t\ttop = top - 1;\n\t\t\treturn topValue;\n\t\t} else {\n\t\t\tSystem.out.println(\"Stack Undeflow\");\n\t\t\treturn -1;\n\t\t}\n\t}",
"public int top() {\n return queue.peekLast();\n }",
"public int top() {\n return top;\n }",
"E top();",
"public Individual getWorst() {\n\t\treturn individuals[individuals.length-1];\n\t}",
"public Card getTopCard(){\n\t\treturn getCard(4);\n\t\t\n\t}",
"public int getHeight() {\n return getTileHeight() * getHeightInTiles();\n }",
"public Entity getHighestCombatActionsEntity() {\n Entity mostCombatActionsEntity = playerInCombat; // Entity accumulator\n for (Entity entity : enemiesInCombat) {\n if (entity.getCombatActions() > mostCombatActionsEntity.getCombatActions()) {\n mostCombatActionsEntity = entity;\n }\n }\n return mostCombatActionsEntity;\n }",
"public Block getBlockBelow() {\r\n\t\tif(onGround) {\r\n\t\t\tVector4f hitbox = getHitBox(worldPos);\r\n\t\t\tfloat x = hitbox.x + (hitbox.z - hitbox.x) / 2f;\r\n\t\t\tfloat y = hitbox.y - 0.1f;\r\n\t\t\tBlock b = BlockManager.getBlock(new Vector2f(x, y));\r\n\t\t\treturn b;\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"protected abstract D getUpper(R range);",
"public int upperIntValue() {\n\t\treturn getSection().upperIntValue();\n\t}",
"public int pullHighest() {\n\t\tint highest = 0;\n\t\tif (isEmpty()) {\n\t\t\tthrow new IllegalArgumentException(\"Queue is Empty\");\n\t\t}\n\n\t\telse if (currentSize == 1) {\n\t\t\thighest = heap[1];\n\t\t\theap[1] = heap[0];\n\t\t\tcurrentSize--;\n\t\t} else {\n\t\t\thighest = heap[1];\n\t\t\theap[1] = heap[size - 1];\n\t\t\tcompareAndSwap();\n\t\t\tcurrentSize--;\n\t\t}\n\t\treturn highest;\n\t}",
"public Vector2f getUpperLeftCorner() {\n return upperLeftCorner;\n }",
"public float getUpperBound()\n {\n return fUpperBound;\n }",
"public int height()\n {\n return Math.max(left, right);\n }",
"public E top() {\n\t\tif (this.top == null) {\n\t\t\tthrow new EmptyStackException( );\n\t\t}\n\t\treturn this.top.data;\n\t\t\t\n\t}",
"int getChestsAmount();",
"public Card topCard() {\n return this.deck.peek();\n }",
"Location getTop() {\n // -\n if(!isEmpty())\n return top.getLocation();\n return null;\n }",
"public Bounds getBounds() {\n\t\treturn boss.getBoundsInParent();\n\t}",
"int getUpper();",
"public T pop() {\n if (this.top == null) {\n throw new EmptyStackException();\n }\n T data = this.top.data;\n this.top = this.top.below;\n return data;\n }",
"public int getTop() {\n\treturn top;\n }",
"public Card drawChest() {\n\t\treturn chestDeck.draw();\n\t}",
"public int getYLeftUpper() {\n return yLeftUpper;\n }",
"@Override\n public int getTileHeight() {\n return this.tileHeight;\n }",
"public float getBottom() {\r\n\t\treturn top + height;\r\n\t}"
]
| [
"0.71634597",
"0.71634597",
"0.65223694",
"0.65107095",
"0.6488749",
"0.6411528",
"0.63918865",
"0.6366561",
"0.6350312",
"0.62817305",
"0.62667245",
"0.62421715",
"0.6220167",
"0.61237353",
"0.6114779",
"0.6056619",
"0.6047784",
"0.6041529",
"0.60303414",
"0.6014203",
"0.59967273",
"0.5996431",
"0.5988682",
"0.5988517",
"0.59829897",
"0.59784406",
"0.5975821",
"0.5965351",
"0.5945654",
"0.59309447",
"0.5929852",
"0.59266967",
"0.5911936",
"0.590867",
"0.58906996",
"0.58710146",
"0.58623755",
"0.58614826",
"0.58457035",
"0.58311963",
"0.58303106",
"0.5811173",
"0.58067304",
"0.5805653",
"0.5802277",
"0.57971555",
"0.5785896",
"0.5783615",
"0.57828665",
"0.5777986",
"0.57709646",
"0.5770492",
"0.5766747",
"0.57446814",
"0.5742312",
"0.5741552",
"0.57331425",
"0.57314277",
"0.57289416",
"0.57067955",
"0.57034266",
"0.5700647",
"0.56984556",
"0.56981444",
"0.56939924",
"0.5681934",
"0.5681741",
"0.5673493",
"0.5667583",
"0.5665817",
"0.5665655",
"0.56647277",
"0.5663762",
"0.56630427",
"0.56499165",
"0.5649237",
"0.56475264",
"0.564549",
"0.5644165",
"0.56405133",
"0.56379616",
"0.5633137",
"0.56297815",
"0.5627647",
"0.56269294",
"0.5623636",
"0.56227833",
"0.56224877",
"0.5622422",
"0.56220263",
"0.56107897",
"0.56043714",
"0.560302",
"0.5602069",
"0.5598889",
"0.55943006",
"0.5590589",
"0.55894053",
"0.5587895",
"0.55791587"
]
| 0.7568423 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.